idmission-web-sdk 2.3.7 → 2.3.9
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/common/overlay.d.ts +2 -0
- package/dist/components/common/overlay.d.ts.map +1 -1
- package/dist/components/customer_flows/CustomerBiometricsEnrollment.d.ts +6 -0
- package/dist/components/customer_flows/CustomerBiometricsEnrollment.d.ts.map +1 -1
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts +6 -0
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts.map +1 -1
- package/dist/components/customer_flows/CustomerIdentification.d.ts +6 -0
- package/dist/components/customer_flows/CustomerIdentification.d.ts.map +1 -1
- package/dist/components/customer_flows/CustomerVerification.d.ts +6 -0
- package/dist/components/customer_flows/CustomerVerification.d.ts.map +1 -1
- package/dist/components/customer_flows/FaceValidation.d.ts +6 -0
- package/dist/components/customer_flows/FaceValidation.d.ts.map +1 -1
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts +6 -0
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts.map +1 -1
- package/dist/components/customer_flows/SignatureKYC.d.ts +6 -0
- package/dist/components/customer_flows/SignatureKYC.d.ts.map +1 -1
- package/dist/components/customer_flows/VideoIdValidation.d.ts +6 -0
- package/dist/components/customer_flows/VideoIdValidation.d.ts.map +1 -1
- package/dist/components/customer_identification/CustomerIdentificationWizard.d.ts +4 -1
- package/dist/components/customer_identification/CustomerIdentificationWizard.d.ts.map +1 -1
- package/dist/components/customer_verification/CustomerVerificationWizard.d.ts +4 -1
- package/dist/components/customer_verification/CustomerVerificationWizard.d.ts.map +1 -1
- package/dist/components/face_liveness/FaceLivenessWizard.d.ts +4 -1
- package/dist/components/face_liveness/FaceLivenessWizard.d.ts.map +1 -1
- package/dist/components/id_capture/IdCaptureLoadingOverlayDefault.d.ts.map +1 -1
- package/dist/components/selfie_capture/SelfieCaptureLoadingOverlay.d.ts +3 -0
- package/dist/components/selfie_capture/SelfieCaptureLoadingOverlay.d.ts.map +1 -1
- package/dist/components/selfie_capture/SelfieCaptureLoadingOverlayDefault.d.ts +1 -1
- package/dist/components/selfie_capture/SelfieCaptureLoadingOverlayDefault.d.ts.map +1 -1
- package/dist/components/video_id/IdVideoCaptureWizard.d.ts +4 -1
- package/dist/components/video_id/IdVideoCaptureWizard.d.ts.map +1 -1
- package/dist/components/video_signature_capture/VideoSignatureWizard.d.ts +4 -1
- package/dist/components/video_signature_capture/VideoSignatureWizard.d.ts.map +1 -1
- package/dist/lib/locales/de.d.ts +3 -3
- package/dist/lib/locales/es.d.ts +3 -3
- package/dist/lib/locales/fr.d.ts +3 -3
- package/dist/lib/locales/index.d.ts +24 -24
- package/dist/lib/locales/it.d.ts +3 -3
- package/dist/lib/locales/ja.d.ts +3 -3
- package/dist/lib/locales/pt.d.ts +3 -3
- package/dist/lib/locales/ru.d.ts +3 -3
- package/dist/lib/locales/zh.d.ts +3 -3
- package/dist/lib/models/loadProgressHooks.d.ts +10 -0
- package/dist/lib/models/loadProgressHooks.d.ts.map +1 -0
- package/dist/sdk2.cjs.development.js +227 -108
- 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 +227 -108
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +227 -108
- 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 +3 -3
|
@@ -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.9';
|
|
239
239
|
|
|
240
240
|
function getPlatform() {
|
|
241
241
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -506,8 +506,8 @@ var OverlayInner$2 = styled__default.default.div(templateObject_2$D || (template
|
|
|
506
506
|
var OverlayImageContainer = styled__default.default.div(templateObject_3$r || (templateObject_3$r = __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"])));
|
|
507
507
|
var OverlayImageRow = styled__default.default.div(templateObject_4$l || (templateObject_4$l = __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"])));
|
|
508
508
|
var GrayOverlayContainer = styled__default.default(OverlayContainer)(templateObject_5$e || (templateObject_5$e = __makeTemplateObject(["\n background: #f7f6fb;\n"], ["\n background: #f7f6fb;\n"])));
|
|
509
|
-
var ButtonsColumn = styled__default.default.div(templateObject_6$
|
|
510
|
-
var WideButton = styled__default.default(LoaderButton)(templateObject_7$
|
|
509
|
+
var ButtonsColumn = styled__default.default.div(templateObject_6$9 || (templateObject_6$9 = __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"])));
|
|
510
|
+
var WideButton = styled__default.default(LoaderButton)(templateObject_7$6 || (templateObject_7$6 = __makeTemplateObject(["\n width: 100%;\n border-radius: 30px;\n"], ["\n width: 100%;\n border-radius: 30px;\n"])));
|
|
511
511
|
var WideBorderButton = styled__default.default(WideButton)(templateObject_8$4 || (templateObject_8$4 = __makeTemplateObject(["\n color: ", ";\n background: ", ";\n border: 1px solid\n ", ";\n box-sizing: border-box;\n"], ["\n color: ", ";\n background: ", ";\n border: 1px solid\n ", ";\n box-sizing: border-box;\n"])), function (props) {
|
|
512
512
|
var _a, _b;
|
|
513
513
|
return (_b = (_a = props.colors) === null || _a === void 0 ? void 0 : _a.textColor) !== null && _b !== void 0 ? _b : 'black';
|
|
@@ -518,8 +518,8 @@ var WideBorderButton = styled__default.default(WideButton)(templateObject_8$4 ||
|
|
|
518
518
|
var _a, _b;
|
|
519
519
|
return (_b = (_a = props.colors) === null || _a === void 0 ? void 0 : _a.borderColor) !== null && _b !== void 0 ? _b : 'var(--idm-color-secondary-500)';
|
|
520
520
|
});
|
|
521
|
-
var LoadingOverlayInner = styled__default.default(OverlayInner$2)(templateObject_9$
|
|
522
|
-
var LoadingOverlayHeader = styled__default.default.div(templateObject_10$
|
|
521
|
+
var LoadingOverlayInner = styled__default.default(OverlayInner$2)(templateObject_9$3 || (templateObject_9$3 = __makeTemplateObject(["\n position: relative;\n height: 100%;\n display: flex;\n flex-direction: column;\n padding: 0;\n"], ["\n position: relative;\n height: 100%;\n display: flex;\n flex-direction: column;\n padding: 0;\n"])));
|
|
522
|
+
var LoadingOverlayHeader = styled__default.default.div(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\n text-align: ", ";\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n ", "\n padding-bottom: 0;\n"], ["\n text-align: ", ";\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n ", "\n padding-bottom: 0;\n"])), function (props) {
|
|
523
523
|
var _a;
|
|
524
524
|
return (_a = props.theme.textAlign) !== null && _a !== void 0 ? _a : 'center';
|
|
525
525
|
}, function (props) {
|
|
@@ -543,7 +543,9 @@ var LoadingOverlayLoadingListContainer = styled__default.default.div(templateObj
|
|
|
543
543
|
var LoadingOverlayLoadingList = styled__default.default.ul(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n display: block;\n margin: auto;\n list-style: none;\n padding: 0;\n"], ["\n display: block;\n margin: auto;\n list-style: none;\n padding: 0;\n"])));
|
|
544
544
|
var LoadingOverlayLoadingListItem = styled__default.default.li(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n display: inline-flex;\n justify-content: center;\n align-items: center;\n padding: 2px 1.25rem 2px 0;\n line-height: 1rem;\n"], ["\n display: inline-flex;\n justify-content: center;\n align-items: center;\n padding: 2px 1.25rem 2px 0;\n line-height: 1rem;\n"])));
|
|
545
545
|
var LoadingOverlayProgressContainer = styled__default.default.div(templateObject_20 || (templateObject_20 = __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"])));
|
|
546
|
-
var
|
|
546
|
+
var LoadingOverlayCustomLoadingGraphic = styled__default.default.img(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n transform-style: preserve-3d;\n"], ["\n transform-style: preserve-3d;\n"])));
|
|
547
|
+
var LoadingOverlayContinueButtonContainer = styled__default.default.div(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
548
|
+
var templateObject_1$M, templateObject_2$D, templateObject_3$r, templateObject_4$l, templateObject_5$e, templateObject_6$9, templateObject_7$6, templateObject_8$4, templateObject_9$3, templateObject_10$1, templateObject_11$1, templateObject_12$1, templateObject_13$1, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22;
|
|
547
549
|
|
|
548
550
|
var GeolocationAccessDeniedOverlay = function GeolocationAccessDeniedOverlay(_a) {
|
|
549
551
|
var accessBlockedImageUrl = _a.accessBlockedImageUrl;
|
|
@@ -3662,11 +3664,11 @@ var es = {
|
|
|
3662
3664
|
Continue: 'Continuar',
|
|
3663
3665
|
'Processing...': 'Procesando…',
|
|
3664
3666
|
'Your camera permission is disabled': 'El permiso de la cámara está desactivado',
|
|
3665
|
-
'This application requires access to your camera to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for camera permissions you must go to settings and provide camera access to the current browser.': 'Esta aplicación requiere el acceso a la cámara para continuar. Hay que aceptar el permiso una vez que se muestre la ventana en el explorador. Si no aparece la ventana para otorgar permisos entonces hay que dirigirse a Configuración y otorgar el permiso a la cámara en el explorador actual.',
|
|
3667
|
+
'This application requires access to your camera to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for camera permissions, you must go to settings and provide camera access to the current browser.': 'Esta aplicación requiere el acceso a la cámara para continuar. Hay que aceptar el permiso una vez que se muestre la ventana en el explorador. Si no aparece la ventana para otorgar permisos entonces hay que dirigirse a Configuración y otorgar el permiso a la cámara en el explorador actual.',
|
|
3666
3668
|
'Your microphone permission is disabled': 'El permiso del micrófono está desactivado',
|
|
3667
|
-
'This application requires access to your microphone to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for microphone permissions you must go to settings and provide microphone access to the current browser.': 'Esta aplicación requiere tener acceso al micrófono para continuar. Hay que aceptar el permiso una vez que se muestre la ventana en el explorador. Si no aparece la ventana para otorgar permisos entonces hay que dirigirse a Configuración y otorgar el permiso al micrófono en el explorador actual.',
|
|
3669
|
+
'This application requires access to your microphone to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for microphone permissions, you must go to settings and provide microphone access to the current browser.': 'Esta aplicación requiere tener acceso al micrófono para continuar. Hay que aceptar el permiso una vez que se muestre la ventana en el explorador. Si no aparece la ventana para otorgar permisos entonces hay que dirigirse a Configuración y otorgar el permiso al micrófono en el explorador actual.',
|
|
3668
3670
|
'Your location permission is disabled': 'El permiso de la localización está desactivado',
|
|
3669
|
-
'This application requires access to your location to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for location permissions you must go to settings and provide location access to the current browser.': 'Esta aplicación requiere el acceso a la localización para continuar. Hay que aceptar el permiso una vez que se muestre la ventana en el explorador. Si no aparece la ventana para otorgar permisos entonces hay que dirigirse a Configuración y otorgar el permiso a la localización en el explorador actual.',
|
|
3671
|
+
'This application requires access to your location to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for location permissions, you must go to settings and provide location access to the current browser.': 'Esta aplicación requiere el acceso a la localización para continuar. Hay que aceptar el permiso una vez que se muestre la ventana en el explorador. Si no aparece la ventana para otorgar permisos entonces hay que dirigirse a Configuración y otorgar el permiso a la localización en el explorador actual.',
|
|
3670
3672
|
Retry: 'Reintentar',
|
|
3671
3673
|
'Scan the front of ID': 'Escanear el frente de la ID',
|
|
3672
3674
|
'Scan the back of ID': 'Escanear el reverso de la ID',
|
|
@@ -3791,11 +3793,11 @@ var de = {
|
|
|
3791
3793
|
Continue: 'Fortfahren',
|
|
3792
3794
|
'Processing...': 'Verarbeitung läuft...',
|
|
3793
3795
|
'Your camera permission is disabled': 'Ihre Kameraberechtigung ist deaktiviert',
|
|
3794
|
-
'This application requires access to your camera to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for camera permissions you must go to settings and provide camera access to the current browser.': 'Diese Anwendung benötigt zum Fortfahren Zugriff auf Ihre Kamera. Bitte stimmen Sie der Berechtigung bei Aufforderung durch den Browser zu. Wenn der Browser nicht nach Kameraberechtigungen fragt, müssen Sie die Einstellungen aufrufen und der Kamera Zugriff auf den aktuellen Browser gewähren.',
|
|
3796
|
+
'This application requires access to your camera to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for camera permissions, you must go to settings and provide camera access to the current browser.': 'Diese Anwendung benötigt zum Fortfahren Zugriff auf Ihre Kamera. Bitte stimmen Sie der Berechtigung bei Aufforderung durch den Browser zu. Wenn der Browser nicht nach Kameraberechtigungen fragt, müssen Sie die Einstellungen aufrufen und der Kamera Zugriff auf den aktuellen Browser gewähren.',
|
|
3795
3797
|
'Your microphone permission is disabled': 'Ihre Mikrofonberechtigung ist deaktiviert',
|
|
3796
|
-
'This application requires access to your microphone to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for microphone permissions you must go to settings and provide microphone access to the current browser.': 'Diese Anwendung benötigt zum Fortfahren Zugriff auf Ihr Mikrofon. Bitte stimmen Sie der Berechtigung bei Aufforderung durch den Browser zu. Wenn der Browser nicht nach Mikrofonberechtigungen fragt, müssen Sie die Einstellungen aufrufen und dem Mikrofon Zugriff auf den aktuellen Browser gewähren.',
|
|
3798
|
+
'This application requires access to your microphone to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for microphone permissions, you must go to settings and provide microphone access to the current browser.': 'Diese Anwendung benötigt zum Fortfahren Zugriff auf Ihr Mikrofon. Bitte stimmen Sie der Berechtigung bei Aufforderung durch den Browser zu. Wenn der Browser nicht nach Mikrofonberechtigungen fragt, müssen Sie die Einstellungen aufrufen und dem Mikrofon Zugriff auf den aktuellen Browser gewähren.',
|
|
3797
3799
|
'Your location permission is disabled': 'Ihre Standortberechtigung ist deaktiviert',
|
|
3798
|
-
'This application requires access to your location to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for location permissions you must go to settings and provide location access to the current browser.': 'Diese Anwendung benötigt zum Fortfahren Zugriff auf Ihren Standort. Bitte stimmen Sie der Berechtigung bei Aufforderung durch den Browser zu. Wenn der Browser nicht nach Standortberechtigungen fragt, müssen Sie die Einstellungen aufrufen und dem Standort Zugriff auf den aktuellen Browser gewähren.',
|
|
3800
|
+
'This application requires access to your location to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for location permissions, you must go to settings and provide location access to the current browser.': 'Diese Anwendung benötigt zum Fortfahren Zugriff auf Ihren Standort. Bitte stimmen Sie der Berechtigung bei Aufforderung durch den Browser zu. Wenn der Browser nicht nach Standortberechtigungen fragt, müssen Sie die Einstellungen aufrufen und dem Standort Zugriff auf den aktuellen Browser gewähren.',
|
|
3799
3801
|
Retry: 'Erneut versuchen',
|
|
3800
3802
|
'Scan the front of ID': 'Vorderseite des Ausweises scannen',
|
|
3801
3803
|
'Scan the back of ID': 'Rückseite des Ausweises scannen',
|
|
@@ -3920,11 +3922,11 @@ var fr = {
|
|
|
3920
3922
|
Continue: 'Continuer',
|
|
3921
3923
|
'Processing...': 'Traitement en cours...',
|
|
3922
3924
|
'Your camera permission is disabled': "L'autorisation de votre caméra est désactivée",
|
|
3923
|
-
'This application requires access to your camera to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for camera permissions you must go to settings and provide camera access to the current browser.': "Cette application nécessite l'accès à votre caméra pour continuer. Veuillez accepter l'autorisation une fois que le navigateur vous le demande. Si le navigateur ne vous demande pas d'autorisation pour la caméra vous devez accéder aux paramètres et accorder l'accès à la caméra pour le navigateur actuel.",
|
|
3925
|
+
'This application requires access to your camera to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for camera permissions, you must go to settings and provide camera access to the current browser.': "Cette application nécessite l'accès à votre caméra pour continuer. Veuillez accepter l'autorisation une fois que le navigateur vous le demande. Si le navigateur ne vous demande pas d'autorisation pour la caméra vous devez accéder aux paramètres et accorder l'accès à la caméra pour le navigateur actuel.",
|
|
3924
3926
|
'Your microphone permission is disabled': "L'autorisation de votre microphone est désactivée",
|
|
3925
|
-
'This application requires access to your microphone to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for microphone permissions you must go to settings and provide microphone access to the current browser.': "Cette application nécessite l'accès à votre microphone pour continuer. Veuillez accepter l'autorisation une fois que le navigateur vous le demande. Si le navigateur ne vous demande pas d'autorisation pour le microphone vous devez accéder aux paramètres et accorder l'accès au microphone pour le navigateur actuel.",
|
|
3927
|
+
'This application requires access to your microphone to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for microphone permissions, you must go to settings and provide microphone access to the current browser.': "Cette application nécessite l'accès à votre microphone pour continuer. Veuillez accepter l'autorisation une fois que le navigateur vous le demande. Si le navigateur ne vous demande pas d'autorisation pour le microphone vous devez accéder aux paramètres et accorder l'accès au microphone pour le navigateur actuel.",
|
|
3926
3928
|
'Your location permission is disabled': "L'autorisation de votre localisation est désactivée",
|
|
3927
|
-
'This application requires access to your location to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for location permissions you must go to settings and provide location access to the current browser.': "Cette application nécessite l'accès à votre localisation pour continuer. Veuillez accepter l'autorisation une fois que le navigateur vous le demande. Si le navigateur ne vous demande pas d'autorisation pour la localisation vous devez accéder aux paramètres et accorder l'accès à la localisation pour le navigateur actuel.",
|
|
3929
|
+
'This application requires access to your location to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for location permissions, you must go to settings and provide location access to the current browser.': "Cette application nécessite l'accès à votre localisation pour continuer. Veuillez accepter l'autorisation une fois que le navigateur vous le demande. Si le navigateur ne vous demande pas d'autorisation pour la localisation vous devez accéder aux paramètres et accorder l'accès à la localisation pour le navigateur actuel.",
|
|
3928
3930
|
Retry: 'Réessayer',
|
|
3929
3931
|
'Scan the front of ID': "Scannez le recto de la pièce d'identité",
|
|
3930
3932
|
'Scan the back of ID': "Scannez le verso de la pièce d'identité",
|
|
@@ -4049,11 +4051,11 @@ var it = {
|
|
|
4049
4051
|
Continue: 'Continua',
|
|
4050
4052
|
'Processing...': 'Elaborazione...',
|
|
4051
4053
|
'Your camera permission is disabled': 'Autorizzazione fotocamera disabilitata',
|
|
4052
|
-
'This application requires access to your camera to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for camera permissions you must go to settings and provide camera access to the current browser.': "Questa applicazione richiede l'accesso alla fotocamera per continuare. Accettare l'autorizzazione una volta richiesta dal browser. Se il browser non richiede l'autorizzazione della fotocamera, accedere alle impostazioni e fornire l'accesso alla fotocamera al browser corrente.",
|
|
4054
|
+
'This application requires access to your camera to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for camera permissions, you must go to settings and provide camera access to the current browser.': "Questa applicazione richiede l'accesso alla fotocamera per continuare. Accettare l'autorizzazione una volta richiesta dal browser. Se il browser non richiede l'autorizzazione della fotocamera, accedere alle impostazioni e fornire l'accesso alla fotocamera al browser corrente.",
|
|
4053
4055
|
'Your microphone permission is disabled': 'Autorizzazione microfono disabilitata',
|
|
4054
|
-
'This application requires access to your microphone to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for microphone permissions you must go to settings and provide microphone access to the current browser.': "Questa applicazione richiede l'accesso al microfono per continuare. Accettare l'autorizzazione una volta richiesta dal browser. Se il browser non richiede l'autorizzazione del microfono, accedere alle impostazioni e fornire l'accesso al microfono al browser corrente.",
|
|
4056
|
+
'This application requires access to your microphone to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for microphone permissions, you must go to settings and provide microphone access to the current browser.': "Questa applicazione richiede l'accesso al microfono per continuare. Accettare l'autorizzazione una volta richiesta dal browser. Se il browser non richiede l'autorizzazione del microfono, accedere alle impostazioni e fornire l'accesso al microfono al browser corrente.",
|
|
4055
4057
|
'Your location permission is disabled': 'Autorizzazione posizione disabilitata',
|
|
4056
|
-
'This application requires access to your location to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for location permissions you must go to settings and provide location access to the current browser.': "Questa applicazione richiede l'accesso alla posizione per continuare. Accettare l'autorizzazione una volta richiesta dal browser. Se il browser non richiede l'autorizzazione della posizione, accedere alle impostazioni e fornire l'accesso alla posizione al browser corrente.",
|
|
4058
|
+
'This application requires access to your location to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for location permissions, you must go to settings and provide location access to the current browser.': "Questa applicazione richiede l'accesso alla posizione per continuare. Accettare l'autorizzazione una volta richiesta dal browser. Se il browser non richiede l'autorizzazione della posizione, accedere alle impostazioni e fornire l'accesso alla posizione al browser corrente.",
|
|
4057
4059
|
Retry: 'Riprova',
|
|
4058
4060
|
'Scan the front of ID': 'Scansiona il fronte del documento',
|
|
4059
4061
|
'Scan the back of ID': 'Scansiona il retro del documento',
|
|
@@ -4178,11 +4180,11 @@ var ja = {
|
|
|
4178
4180
|
Continue: '続行',
|
|
4179
4181
|
'Processing...': '処理中…',
|
|
4180
4182
|
'Your camera permission is disabled': 'カメラの許可が停止されました',
|
|
4181
|
-
'This application requires access to your camera to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for camera permissions you must go to settings and provide camera access to the current browser.': 'このアプリケーションが動作するにはカメラへのアクセスが必要です。ブラウザーで許可をプロンプトされたら、同意してください。ブラウザーがカメラの許可をプロンプト表示しない場合は、設定へ進んでお使いのブラウザーへカメラへのアクセスを許可する必要があります。',
|
|
4183
|
+
'This application requires access to your camera to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for camera permissions, you must go to settings and provide camera access to the current browser.': 'このアプリケーションが動作するにはカメラへのアクセスが必要です。ブラウザーで許可をプロンプトされたら、同意してください。ブラウザーがカメラの許可をプロンプト表示しない場合は、設定へ進んでお使いのブラウザーへカメラへのアクセスを許可する必要があります。',
|
|
4182
4184
|
'Your microphone permission is disabled': 'マイクの許可が停止されました',
|
|
4183
|
-
'This application requires access to your microphone to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for microphone permissions you must go to settings and provide microphone access to the current browser.': 'このアプリケーションが動作するにはマイクへのアクセスが必要です。ブラウザーで許可をプロンプトされたら、同意してください。ブラウザーがマイクの許可をプロンプト表示しない場合は、設定へ進んでお使いのブラウザーへマイクへのアクセスを許可する必要があります。',
|
|
4185
|
+
'This application requires access to your microphone to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for microphone permissions, you must go to settings and provide microphone access to the current browser.': 'このアプリケーションが動作するにはマイクへのアクセスが必要です。ブラウザーで許可をプロンプトされたら、同意してください。ブラウザーがマイクの許可をプロンプト表示しない場合は、設定へ進んでお使いのブラウザーへマイクへのアクセスを許可する必要があります。',
|
|
4184
4186
|
'Your location permission is disabled': '位置の許可が停止されました',
|
|
4185
|
-
'This application requires access to your location to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for location permissions you must go to settings and provide location access to the current browser.': 'このアプリケーションが動作するには位置へのアクセスが必要です。ブラウザーで許可をプロンプトされたら、同意してください。ブラウザーが位置の許可をプロンプト表示しない場合は、設定へ進んでお使いのブラウザーへ位置へのアクセスを許可する必要があります。',
|
|
4187
|
+
'This application requires access to your location to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for location permissions, you must go to settings and provide location access to the current browser.': 'このアプリケーションが動作するには位置へのアクセスが必要です。ブラウザーで許可をプロンプトされたら、同意してください。ブラウザーが位置の許可をプロンプト表示しない場合は、設定へ進んでお使いのブラウザーへ位置へのアクセスを許可する必要があります。',
|
|
4186
4188
|
Retry: '再試行',
|
|
4187
4189
|
'Scan the front of ID': '身分証の正面をスキャン',
|
|
4188
4190
|
'Scan the back of ID': '身分証の背面をスキャン',
|
|
@@ -4307,11 +4309,11 @@ var pt = {
|
|
|
4307
4309
|
Continue: 'Continuar',
|
|
4308
4310
|
'Processing...': 'Processando...',
|
|
4309
4311
|
'Your camera permission is disabled': 'A permissão da câmera está desativada',
|
|
4310
|
-
'This application requires access to your camera to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for camera permissions you must go to settings and provide camera access to the current browser.': 'Este aplicativo requer acesso à sua câmera para continuar. Aceite a permissão quando o navegador solicitar. Se o navegador não solicitar permissões para a câmera vá para as configurações e forneça acesso à câmera para o navegador atual.',
|
|
4312
|
+
'This application requires access to your camera to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for camera permissions, you must go to settings and provide camera access to the current browser.': 'Este aplicativo requer acesso à sua câmera para continuar. Aceite a permissão quando o navegador solicitar. Se o navegador não solicitar permissões para a câmera vá para as configurações e forneça acesso à câmera para o navegador atual.',
|
|
4311
4313
|
'Your microphone permission is disabled': 'A permissão do seu microfone está desativada',
|
|
4312
|
-
'This application requires access to your microphone to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for microphone permissions you must go to settings and provide microphone access to the current browser.': 'Este aplicativo requer acesso ao seu microfone para continuar. Aceite a permissão quando o navegador solicitar. Se o navegador não solicitar permissões para o microfone vá para as configurações e forneça acesso ao microfone para o navegador atual.',
|
|
4314
|
+
'This application requires access to your microphone to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for microphone permissions, you must go to settings and provide microphone access to the current browser.': 'Este aplicativo requer acesso ao seu microfone para continuar. Aceite a permissão quando o navegador solicitar. Se o navegador não solicitar permissões para o microfone vá para as configurações e forneça acesso ao microfone para o navegador atual.',
|
|
4313
4315
|
'Your location permission is disabled': 'A permissão do seu local está desativada',
|
|
4314
|
-
'This application requires access to your location to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for location permissions you must go to settings and provide location access to the current browser.': 'Este aplicativo requer acesso ao seu local para continuar. Aceite a permissão quando o navegador solicitar. Se o navegador não solicitar permissões para o local vá para as configurações e forneça acesso do local para o navegador atual.',
|
|
4316
|
+
'This application requires access to your location to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for location permissions, you must go to settings and provide location access to the current browser.': 'Este aplicativo requer acesso ao seu local para continuar. Aceite a permissão quando o navegador solicitar. Se o navegador não solicitar permissões para o local vá para as configurações e forneça acesso do local para o navegador atual.',
|
|
4315
4317
|
Retry: 'Tentar novamente',
|
|
4316
4318
|
'Scan the front of ID': 'Digitalizar a frente da ID',
|
|
4317
4319
|
'Scan the back of ID': 'Digitalize o verso da ID',
|
|
@@ -4436,11 +4438,11 @@ var ru = {
|
|
|
4436
4438
|
Continue: 'Продолжить',
|
|
4437
4439
|
'Processing...': 'Обработка...',
|
|
4438
4440
|
'Your camera permission is disabled': 'Не выдано разрешение для использования камеры',
|
|
4439
|
-
'This application requires access to your camera to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for camera permissions you must go to settings and provide camera access to the current browser.': 'Для продолжения работы данного приложения требуется доступ к камере. Предоставьте разрешение, как только браузер его запросит. Если браузер не запрашивает разрешение на доступ к камере, необходимо перейти в настройки и предоставить текущему браузеру доступ к камере.',
|
|
4441
|
+
'This application requires access to your camera to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for camera permissions, you must go to settings and provide camera access to the current browser.': 'Для продолжения работы данного приложения требуется доступ к камере. Предоставьте разрешение, как только браузер его запросит. Если браузер не запрашивает разрешение на доступ к камере, необходимо перейти в настройки и предоставить текущему браузеру доступ к камере.',
|
|
4440
4442
|
'Your microphone permission is disabled': 'Разрешение на доступ к микрофону отключено',
|
|
4441
|
-
'This application requires access to your microphone to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for microphone permissions you must go to settings and provide microphone access to the current browser.': 'Для продолжения работы данного приложения требуется доступ к микрофону. Предоставьте разрешение, как только браузер его запросит. Если браузер не запрашивает разрешение на доступ к микрофону, необходимо перейти в настройки и предоставить текущему браузеру доступ к микрофону.',
|
|
4443
|
+
'This application requires access to your microphone to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for microphone permissions, you must go to settings and provide microphone access to the current browser.': 'Для продолжения работы данного приложения требуется доступ к микрофону. Предоставьте разрешение, как только браузер его запросит. Если браузер не запрашивает разрешение на доступ к микрофону, необходимо перейти в настройки и предоставить текущему браузеру доступ к микрофону.',
|
|
4442
4444
|
'Your location permission is disabled': 'Разрешение на доступ к местоположению отключено',
|
|
4443
|
-
'This application requires access to your location to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for location permissions you must go to settings and provide location access to the current browser.': 'Для продолжения работы данного приложения требуется доступ к местоположению. Предоставьте разрешение, как только браузер его запросит. Если браузер не запрашивает разрешение на доступ к местоположению, необходимо перейти в настройки и предоставить текущему браузеру доступ к местоположению.',
|
|
4445
|
+
'This application requires access to your location to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for location permissions, you must go to settings and provide location access to the current browser.': 'Для продолжения работы данного приложения требуется доступ к местоположению. Предоставьте разрешение, как только браузер его запросит. Если браузер не запрашивает разрешение на доступ к местоположению, необходимо перейти в настройки и предоставить текущему браузеру доступ к местоположению.',
|
|
4444
4446
|
Retry: 'Повторить попытку',
|
|
4445
4447
|
'Scan the front of ID': 'Сканируйте лицевую сторону удостоверения личности',
|
|
4446
4448
|
'Scan the back of ID': 'Сканируйте оборотную сторону удостоверения личности',
|
|
@@ -4565,11 +4567,11 @@ var zh = {
|
|
|
4565
4567
|
Continue: '繼續',
|
|
4566
4568
|
'Processing...': '正在處理...',
|
|
4567
4569
|
'Your camera permission is disabled': '已停用相機權限',
|
|
4568
|
-
'This application requires access to your camera to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for camera permissions you must go to settings and provide camera access to the current browser.': '此應用程式需要存取相機才能繼續。瀏覽器提示後,請接受權限。如果瀏覽器未提示相機權限,必須前往設定並為目前瀏覽器提供相機存取權限。',
|
|
4570
|
+
'This application requires access to your camera to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for camera permissions, you must go to settings and provide camera access to the current browser.': '此應用程式需要存取相機才能繼續。瀏覽器提示後,請接受權限。如果瀏覽器未提示相機權限,必須前往設定並為目前瀏覽器提供相機存取權限。',
|
|
4569
4571
|
'Your microphone permission is disabled': '已停用麥克風權限',
|
|
4570
|
-
'This application requires access to your microphone to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for microphone permissions you must go to settings and provide microphone access to the current browser.': '此應用程式需要存取麥克風才能繼續。瀏覽器提示後,請接受權限。如果瀏覽器未提示麥克風權限,必須前往設定並為目前瀏覽器提供麥克風存取權限。',
|
|
4572
|
+
'This application requires access to your microphone to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for microphone permissions, you must go to settings and provide microphone access to the current browser.': '此應用程式需要存取麥克風才能繼續。瀏覽器提示後,請接受權限。如果瀏覽器未提示麥克風權限,必須前往設定並為目前瀏覽器提供麥克風存取權限。',
|
|
4571
4573
|
'Your location permission is disabled': '已停用位置權限',
|
|
4572
|
-
'This application requires access to your location to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for location permissions you must go to settings and provide location access to the current browser.': '此應用程式需要存取位置才能繼續。瀏覽器提示後,請接受權限。如果瀏覽器未提示位置權限,必須前往設定並為目前瀏覽器提供位置存取權限。',
|
|
4574
|
+
'This application requires access to your location to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for location permissions, you must go to settings and provide location access to the current browser.': '此應用程式需要存取位置才能繼續。瀏覽器提示後,請接受權限。如果瀏覽器未提示位置權限,必須前往設定並為目前瀏覽器提供位置存取權限。',
|
|
4573
4575
|
Retry: '重試',
|
|
4574
4576
|
'Scan the front of ID': '掃描證件正面',
|
|
4575
4577
|
'Scan the back of ID': '掃描證件背面',
|
|
@@ -7372,6 +7374,42 @@ function LoadingListItemIndicator(_a) {
|
|
|
7372
7374
|
}))))));
|
|
7373
7375
|
}
|
|
7374
7376
|
|
|
7377
|
+
function useLoadProgressHooks(_a) {
|
|
7378
|
+
var ready = _a.ready,
|
|
7379
|
+
modelLoadState = _a.modelLoadState,
|
|
7380
|
+
modelLoadProgress = _a.modelLoadProgress,
|
|
7381
|
+
onLoadingStarted = _a.onLoadingStarted,
|
|
7382
|
+
onLoadingProgress = _a.onLoadingProgress,
|
|
7383
|
+
onLoadingCompleted = _a.onLoadingCompleted;
|
|
7384
|
+
var onLoadingStartedRef = React.useRef(onLoadingStarted);
|
|
7385
|
+
React.useEffect(function () {
|
|
7386
|
+
onLoadingStartedRef.current = onLoadingStarted;
|
|
7387
|
+
}, [onLoadingStarted]);
|
|
7388
|
+
var onLoadingProgressRef = React.useRef(onLoadingProgress);
|
|
7389
|
+
React.useEffect(function () {
|
|
7390
|
+
onLoadingProgressRef.current = onLoadingProgress;
|
|
7391
|
+
}, [onLoadingProgress]);
|
|
7392
|
+
var onLoadingCompletedRef = React.useRef(onLoadingCompleted);
|
|
7393
|
+
React.useEffect(function () {
|
|
7394
|
+
onLoadingCompletedRef.current = onLoadingCompleted;
|
|
7395
|
+
}, [onLoadingCompleted]);
|
|
7396
|
+
var loadingStarted = modelLoadState !== 'not-started';
|
|
7397
|
+
React.useEffect(function () {
|
|
7398
|
+
var _a;
|
|
7399
|
+
if (loadingStarted) (_a = onLoadingStartedRef.current) === null || _a === void 0 ? void 0 : _a.call(onLoadingStartedRef);
|
|
7400
|
+
}, [loadingStarted]);
|
|
7401
|
+
React.useEffect(function () {
|
|
7402
|
+
var _a;
|
|
7403
|
+
if (modelLoadProgress > 0) {
|
|
7404
|
+
(_a = onLoadingProgressRef.current) === null || _a === void 0 ? void 0 : _a.call(onLoadingProgressRef, modelLoadProgress);
|
|
7405
|
+
}
|
|
7406
|
+
}, [modelLoadProgress]);
|
|
7407
|
+
React.useEffect(function () {
|
|
7408
|
+
var _a;
|
|
7409
|
+
if (ready) (_a = onLoadingCompletedRef.current) === null || _a === void 0 ? void 0 : _a.call(onLoadingCompletedRef);
|
|
7410
|
+
}, [ready]);
|
|
7411
|
+
}
|
|
7412
|
+
|
|
7375
7413
|
var legacyInstructionImageUrl$1 = "".concat(DEFAULT_CDN_URL, "/WebSDK-Instruction-DL-Capture-3-Portrait.png");
|
|
7376
7414
|
var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a) {
|
|
7377
7415
|
var _b, _c, _d, _e, _f, _g;
|
|
@@ -7409,6 +7447,7 @@ var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a)
|
|
|
7409
7447
|
setDismissed = _q[1];
|
|
7410
7448
|
var theme = styled.useTheme();
|
|
7411
7449
|
assets.instructionImageUrl || (assets.instructionImageUrl = legacyInstructionImageUrl$1);
|
|
7450
|
+
var hasCustomInstructionGraphic = assets.instructionImageUrl !== legacyInstructionImageUrl$1;
|
|
7412
7451
|
var verbiage = useTranslations(rawVerbiage, {
|
|
7413
7452
|
headingText: 'Use your device camera to capture your ID',
|
|
7414
7453
|
useContinuityCameraText: 'Use your iPhone as a webcam',
|
|
@@ -7421,27 +7460,11 @@ var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a)
|
|
|
7421
7460
|
pleaseWaitText: 'Please wait...',
|
|
7422
7461
|
sessionCheckingText: 'Authenticating...'
|
|
7423
7462
|
});
|
|
7424
|
-
var onLoadingStartedRef = React.useRef(onLoadingStarted);
|
|
7425
|
-
React.useEffect(function () {
|
|
7426
|
-
onLoadingStartedRef.current = onLoadingStarted;
|
|
7427
|
-
}, [onLoadingStarted]);
|
|
7428
|
-
var onLoadingProgressRef = React.useRef(onLoadingProgress);
|
|
7429
|
-
React.useEffect(function () {
|
|
7430
|
-
onLoadingProgressRef.current = onLoadingProgress;
|
|
7431
|
-
}, [onLoadingProgress]);
|
|
7432
|
-
var onLoadingCompletedRef = React.useRef(onLoadingCompleted);
|
|
7433
|
-
React.useEffect(function () {
|
|
7434
|
-
onLoadingCompletedRef.current = onLoadingCompleted;
|
|
7435
|
-
}, [onLoadingCompleted]);
|
|
7436
7463
|
var ready = sessionReady && modelsReady && cameraReady;
|
|
7437
7464
|
React.useEffect(function () {
|
|
7438
|
-
|
|
7439
|
-
|
|
7440
|
-
|
|
7441
|
-
return function () {
|
|
7442
|
-
return null;
|
|
7443
|
-
};
|
|
7444
|
-
}
|
|
7465
|
+
if (ready) return function () {
|
|
7466
|
+
return null;
|
|
7467
|
+
};
|
|
7445
7468
|
var t = setTimeout(function () {
|
|
7446
7469
|
return setDismissed(false);
|
|
7447
7470
|
}, 500);
|
|
@@ -7453,16 +7476,14 @@ var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a)
|
|
|
7453
7476
|
var timeSinceWarmingStarted = modelWarmingStartedAt ? new Date().getTime() - modelWarmingStartedAt : 0;
|
|
7454
7477
|
var warmingProgress = timeSinceWarmingStarted / 5000.0;
|
|
7455
7478
|
var modelLoadProgress = modelsReady ? 100 : modelDownloadProgress * 0.5 + warmingProgress * 49.0;
|
|
7456
|
-
|
|
7457
|
-
|
|
7458
|
-
|
|
7459
|
-
|
|
7460
|
-
|
|
7461
|
-
|
|
7462
|
-
|
|
7463
|
-
|
|
7464
|
-
}
|
|
7465
|
-
}, [modelLoadProgress]);
|
|
7479
|
+
useLoadProgressHooks({
|
|
7480
|
+
ready: ready,
|
|
7481
|
+
modelLoadState: modelLoadState,
|
|
7482
|
+
modelLoadProgress: modelLoadProgress,
|
|
7483
|
+
onLoadingStarted: onLoadingStarted,
|
|
7484
|
+
onLoadingProgress: onLoadingProgress,
|
|
7485
|
+
onLoadingCompleted: onLoadingCompleted
|
|
7486
|
+
});
|
|
7466
7487
|
if (dismissed) return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null);
|
|
7467
7488
|
if (cameraAccessDenied) {
|
|
7468
7489
|
return /*#__PURE__*/React__namespace.default.createElement(CameraAccessDeniedOverlay, {
|
|
@@ -7492,7 +7513,7 @@ var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a)
|
|
|
7492
7513
|
className: classNames.heading
|
|
7493
7514
|
}, verbiage.headingText)), /*#__PURE__*/React__namespace.default.createElement(LoadingOverlayImageContainer, {
|
|
7494
7515
|
className: classNames.imageContainer
|
|
7495
|
-
},
|
|
7516
|
+
}, hasCustomInstructionGraphic ? ( /*#__PURE__*/React__namespace.default.createElement(LoadingOverlayCustomLoadingGraphic, {
|
|
7496
7517
|
ref: imageRef,
|
|
7497
7518
|
alt: verbiage.headingText,
|
|
7498
7519
|
src: assets.instructionImageUrl,
|
|
@@ -7540,7 +7561,7 @@ var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a)
|
|
|
7540
7561
|
}, /*#__PURE__*/React__namespace.default.createElement(LoadingListItemIndicator, {
|
|
7541
7562
|
className: classNames.loadingListItemIndicator,
|
|
7542
7563
|
state: sessionReady && modelsReady ? 'done' : 'running'
|
|
7543
|
-
}), !sessionReady ? verbiage.sessionCheckingText : modelsReady ? verbiage.modelsReadyText : modelLoadState === 'downloading' ? "".concat(verbiage.downloadingText, " (").concat(modelDownloadProgress, "%)") : modelLoadState === 'warming' ? verbiage.modelsWarmingUpText : verbiage.modelsReadyText))), /*#__PURE__*/React__namespace.default.createElement(
|
|
7564
|
+
}), !sessionReady ? verbiage.sessionCheckingText : modelsReady ? verbiage.modelsReadyText : modelLoadState === 'downloading' ? "".concat(verbiage.downloadingText, " (").concat(modelDownloadProgress, "%)") : modelLoadState === 'warming' ? verbiage.modelsWarmingUpText : verbiage.modelsReadyText))), /*#__PURE__*/React__namespace.default.createElement(LoadingOverlayContinueButtonContainer, {
|
|
7544
7565
|
className: classNames.continueBtnContainer
|
|
7545
7566
|
}, (ready || ((_g = (_f = theme.idCapture) === null || _f === void 0 ? void 0 : _f.loadingOverlay) === null || _g === void 0 ? void 0 : _g.displayDisabledContinueBtn)) && ( /*#__PURE__*/React__namespace.default.createElement(ContinueButton$1, {
|
|
7546
7567
|
autoFocus: true,
|
|
@@ -7563,8 +7584,8 @@ var OverlayInner$1 = styled__default.default(LoadingOverlayInner)(templateObject
|
|
|
7563
7584
|
return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.idCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.textColor) !== null && _d !== void 0 ? _d : 'black';
|
|
7564
7585
|
});
|
|
7565
7586
|
var ContinuityCameraCheckboxContainer$1 = styled__default.default.div(templateObject_2$x || (templateObject_2$x = __makeTemplateObject(["\n position: absolute;\n bottom: 120px;\n width: 100%;\n display: flex;\n"], ["\n position: absolute;\n bottom: 120px;\n width: 100%;\n display: flex;\n"])));
|
|
7566
|
-
var ContinuityCameraCheckboxInner = styled__default.default(GuidanceMessage)(templateObject_3$m || (templateObject_3$m = __makeTemplateObject(["\n padding: 12px 18px;\n margin: 0 auto;\n font-size: 14px;\n font-weight: bold;\n background: white;\n box-shadow:\n 0 1px 3px 0 rgb(0 0 0 / 0.1),\n 0 1px 2px -1px rgb(0 0 0 / 0.1);\n"], ["\n padding: 12px 18px;\n margin: 0 auto;\n font-size: 14px;\n font-weight: bold;\n background: white;\n box-shadow:\n 0 1px 3px 0 rgb(0 0 0 / 0.1),\n 0 1px 2px -1px rgb(0 0 0 / 0.1);\n"])));
|
|
7567
|
-
var ContinuityCameraCheckbox$1 = styled__default.default.input(templateObject_4$g || (templateObject_4$g = __makeTemplateObject(["\n margin
|
|
7587
|
+
var ContinuityCameraCheckboxInner = styled__default.default(GuidanceMessage)(templateObject_3$m || (templateObject_3$m = __makeTemplateObject(["\n display: flex;\n gap: 8px;\n align-items: center;\n padding: 12px 18px;\n margin: 0 auto;\n font-size: 14px;\n font-weight: bold;\n background: white;\n box-shadow:\n 0 1px 3px 0 rgb(0 0 0 / 0.1),\n 0 1px 2px -1px rgb(0 0 0 / 0.1);\n"], ["\n display: flex;\n gap: 8px;\n align-items: center;\n padding: 12px 18px;\n margin: 0 auto;\n font-size: 14px;\n font-weight: bold;\n background: white;\n box-shadow:\n 0 1px 3px 0 rgb(0 0 0 / 0.1),\n 0 1px 2px -1px rgb(0 0 0 / 0.1);\n"])));
|
|
7588
|
+
var ContinuityCameraCheckbox$1 = styled__default.default.input(templateObject_4$g || (templateObject_4$g = __makeTemplateObject(["\n margin: 0;\n"], ["\n margin: 0;\n"])));
|
|
7568
7589
|
var ButtonsRow$1 = styled__default.default(LoadingOverlayButtonsRow)(templateObject_5$c || (templateObject_5$c = __makeTemplateObject(["\n color: ", ";\n ", "\n"], ["\n color: ", ";\n ", "\n"])), function (props) {
|
|
7569
7590
|
var _a, _b, _c, _d;
|
|
7570
7591
|
return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.idCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.progressBarTextColor) !== null && _d !== void 0 ? _d : 'white';
|
|
@@ -7572,20 +7593,18 @@ var ButtonsRow$1 = styled__default.default(LoadingOverlayButtonsRow)(templateObj
|
|
|
7572
7593
|
var _a, _b, _c, _d, _e, _f;
|
|
7573
7594
|
return ((_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.idCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.progressBarFontSize) ? "font-size: ".concat((_f = (_e = (_d = props.theme) === null || _d === void 0 ? void 0 : _d.idCapture) === null || _e === void 0 ? void 0 : _e.loadingOverlay) === null || _f === void 0 ? void 0 : _f.progressBarFontSize, ";") : '';
|
|
7574
7595
|
});
|
|
7575
|
-
var ProgressBarBackground$1 = styled__default.default(LoadingOverlayProgressBarBackground)(templateObject_6$
|
|
7596
|
+
var ProgressBarBackground$1 = styled__default.default(LoadingOverlayProgressBarBackground)(templateObject_6$8 || (templateObject_6$8 = __makeTemplateObject(["\n background: ", ";\n opacity: ", ";\n"], ["\n background: ", ";\n opacity: ", ";\n"])), function (props) {
|
|
7576
7597
|
var _a, _b, _c, _d;
|
|
7577
7598
|
return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.idCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.progressBarBackgroundColor) !== null && _d !== void 0 ? _d : 'var(--idm-color-positive-600)';
|
|
7578
7599
|
}, function (props) {
|
|
7579
7600
|
var _a, _b, _c, _d;
|
|
7580
7601
|
return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.idCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.progressBarBackgroundOpacity) !== null && _d !== void 0 ? _d : 0.75;
|
|
7581
7602
|
});
|
|
7582
|
-
var ProgressIndicator$1 = styled__default.default(LoadingOverlayProgressIndicator)(templateObject_7$
|
|
7603
|
+
var ProgressIndicator$1 = styled__default.default(LoadingOverlayProgressIndicator)(templateObject_7$5 || (templateObject_7$5 = __makeTemplateObject(["\n background: ", ";\n"], ["\n background: ", ";\n"])), function (props) {
|
|
7583
7604
|
var _a, _b, _c, _d;
|
|
7584
7605
|
return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.idCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.progressBarIndicatorColor) !== null && _d !== void 0 ? _d : 'var(--idm-color-primary-500)';
|
|
7585
7606
|
});
|
|
7586
|
-
var
|
|
7587
|
-
var ContinueButtonContainer$1 = styled__default.default.div(templateObject_9$3 || (templateObject_9$3 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
7588
|
-
var ContinueButton$1 = styled__default.default(LoaderButton)(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n\n &.disabled {\n background: ", ";\n color: ", ";\n border: ", ";\n }\n"], ["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n\n &.disabled {\n background: ", ";\n color: ", ";\n border: ", ";\n }\n"])), function (props) {
|
|
7607
|
+
var ContinueButton$1 = styled__default.default(LoaderButton)(templateObject_8$3 || (templateObject_8$3 = __makeTemplateObject(["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n\n &.disabled {\n background: ", ";\n color: ", ";\n border: ", ";\n }\n"], ["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n\n &.disabled {\n background: ", ";\n color: ", ";\n border: ", ";\n }\n"])), function (props) {
|
|
7589
7608
|
var _a, _b, _c, _d, _e, _f;
|
|
7590
7609
|
return ((_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.idCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.progressBarFontSize) ? "font-size: ".concat((_f = (_e = (_d = props.theme) === null || _d === void 0 ? void 0 : _d.idCapture) === null || _e === void 0 ? void 0 : _e.loadingOverlay) === null || _f === void 0 ? void 0 : _f.progressBarFontSize, ";") : '';
|
|
7591
7610
|
}, function (props) {
|
|
@@ -7604,7 +7623,7 @@ var ContinueButton$1 = styled__default.default(LoaderButton)(templateObject_10$1
|
|
|
7604
7623
|
var _a, _b, _c, _d;
|
|
7605
7624
|
return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.idCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.continueBtnDisabledBorder) !== null && _d !== void 0 ? _d : 'none';
|
|
7606
7625
|
});
|
|
7607
|
-
var templateObject_1$E, templateObject_2$x, templateObject_3$m, templateObject_4$g, templateObject_5$c, templateObject_6$
|
|
7626
|
+
var templateObject_1$E, templateObject_2$x, templateObject_3$m, templateObject_4$g, templateObject_5$c, templateObject_6$8, templateObject_7$5, templateObject_8$3;
|
|
7608
7627
|
|
|
7609
7628
|
var ContinuityCameraCheckboxContainer = styled__default.default.div(templateObject_1$D || (templateObject_1$D = __makeTemplateObject(["\n margin-top: 15px;\n margin-bottom: 15px;\n"], ["\n margin-top: 15px;\n margin-bottom: 15px;\n"])));
|
|
7610
7629
|
var ContinuityCameraCheckbox = styled__default.default.input(templateObject_2$w || (templateObject_2$w = __makeTemplateObject(["\n margin-right: 8px;\n"], ["\n margin-right: 8px;\n"])));
|
|
@@ -7855,8 +7874,8 @@ var ImagesContainer = styled__default.default(OverlayImageContainer)(templateObj
|
|
|
7855
7874
|
var ImageRow = styled__default.default(OverlayImageRow)(templateObject_3$l || (templateObject_3$l = __makeTemplateObject(["\n max-width: 100%;\n flex-direction: column;\n position: relative;\n width: 100%;\n"], ["\n max-width: 100%;\n flex-direction: column;\n position: relative;\n width: 100%;\n"])));
|
|
7856
7875
|
var ImageCol$1 = styled__default.default.div(templateObject_4$f || (templateObject_4$f = __makeTemplateObject(["\n width: 450px;\n max-width: 100%;\n max-height: none !important;\n"], ["\n width: 450px;\n max-width: 100%;\n max-height: none !important;\n"])));
|
|
7857
7876
|
var StyledImage = styled__default.default(CapturedDocumentImg)(templateObject_5$b || (templateObject_5$b = __makeTemplateObject(["\n width: 100%;\n border-radius: 12px;\n"], ["\n width: 100%;\n border-radius: 12px;\n"])));
|
|
7858
|
-
var DebugPre = styled__default.default.pre(templateObject_6$
|
|
7859
|
-
var templateObject_1$B, templateObject_2$u, templateObject_3$l, templateObject_4$f, templateObject_5$b, templateObject_6$
|
|
7877
|
+
var DebugPre = styled__default.default.pre(templateObject_6$7 || (templateObject_6$7 = __makeTemplateObject(["\n display: block;\n text-align: left;\n width: 100%;\n max-width: 100%;\n overflow-x: auto;\n"], ["\n display: block;\n text-align: left;\n width: 100%;\n max-width: 100%;\n overflow-x: auto;\n"])));
|
|
7878
|
+
var templateObject_1$B, templateObject_2$u, templateObject_3$l, templateObject_4$f, templateObject_5$b, templateObject_6$7;
|
|
7860
7879
|
|
|
7861
7880
|
function useShowSuccessScreen(skipSuccessScreen, successScreenReady, onDoneCallback) {
|
|
7862
7881
|
var _this = this;
|
|
@@ -8547,12 +8566,12 @@ var GuideRegion = styled__default.default.div(templateObject_4$d || (templateObj
|
|
|
8547
8566
|
return props.$minHeight ? "min-height: ".concat(props.$minHeight, "px;") : "";
|
|
8548
8567
|
});
|
|
8549
8568
|
var Spacer = styled__default.default(GuideRegion)(templateObject_5$9 || (templateObject_5$9 = __makeTemplateObject(["\n display: block;\n width: auto;\n"], ["\n display: block;\n width: auto;\n"])));
|
|
8550
|
-
var GuideCenterRegion = styled__default.default.div(templateObject_6$
|
|
8569
|
+
var GuideCenterRegion = styled__default.default.div(templateObject_6$6 || (templateObject_6$6 = __makeTemplateObject(["\n ", "\n ", "\n transform-style: preserve-3d;\n box-sizing: border-box;\n display: flex;\n flex: 1;\n max-height: 100%;\n height: 100%;\n"], ["\n ", "\n ", "\n transform-style: preserve-3d;\n box-sizing: border-box;\n display: flex;\n flex: 1;\n max-height: 100%;\n height: 100%;\n"])), function (props) {
|
|
8551
8570
|
return props.$minWidth ? "min-width: ".concat(props.$minWidth, "px;") : "";
|
|
8552
8571
|
}, function (props) {
|
|
8553
8572
|
return props.$isMirrored ? 'transform: scaleX(-1);' : '';
|
|
8554
8573
|
});
|
|
8555
|
-
var GuideCenterBorder = styled__default.default.div(templateObject_7$
|
|
8574
|
+
var GuideCenterBorder = styled__default.default.div(templateObject_7$4 || (templateObject_7$4 = __makeTemplateObject(["\n box-sizing: border-box;\n border: ", ";\n display: flex;\n flex: 1;\n justify-content: center;\n max-height: 100%;\n min-height: 0;\n position: relative;\n ", "\n"], ["\n box-sizing: border-box;\n border: ", ";\n display: flex;\n flex: 1;\n justify-content: center;\n max-height: 100%;\n min-height: 0;\n position: relative;\n ", "\n"])), function (props) {
|
|
8556
8575
|
var _a, _b;
|
|
8557
8576
|
return "".concat((_a = props.$borderWidth) !== null && _a !== void 0 ? _a : 4, "px solid ").concat((_b = props.$borderColor) !== null && _b !== void 0 ? _b : 'white');
|
|
8558
8577
|
}, function (props) {
|
|
@@ -8560,7 +8579,7 @@ var GuideCenterBorder = styled__default.default.div(templateObject_7$5 || (templ
|
|
|
8560
8579
|
});
|
|
8561
8580
|
var GuideText = styled__default.default.span(templateObject_8$2 || (templateObject_8$2 = __makeTemplateObject(["\n align-content: center;\n margin-top: 12px;\n margin-bottom: 12px;\n"], ["\n align-content: center;\n margin-top: 12px;\n margin-bottom: 12px;\n"])));
|
|
8562
8581
|
var GuideCenterInner = styled__default.default.div(templateObject_9$2 || (templateObject_9$2 = __makeTemplateObject(["\n position: relative;\n margin: auto;\n"], ["\n position: relative;\n margin: auto;\n"])));
|
|
8563
|
-
var templateObject_1$y, templateObject_2$s, templateObject_3$j, templateObject_4$d, templateObject_5$9, templateObject_6$
|
|
8582
|
+
var templateObject_1$y, templateObject_2$s, templateObject_3$j, templateObject_4$d, templateObject_5$9, templateObject_6$6, templateObject_7$4, templateObject_8$2, templateObject_9$2;
|
|
8564
8583
|
|
|
8565
8584
|
var IdCaptureFitGuide = function IdCaptureFitGuide(_a) {
|
|
8566
8585
|
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
@@ -9432,9 +9451,9 @@ var Instructions = styled__default.default.div(templateObject_5$8 || (templateOb
|
|
|
9432
9451
|
var _a, _b, _c;
|
|
9433
9452
|
return (_c = (_b = (_a = props.theme.documentCapture) === null || _a === void 0 ? void 0 : _a.instructions) === null || _b === void 0 ? void 0 : _b.maxHeight) !== null && _c !== void 0 ? _c : '8rem';
|
|
9434
9453
|
});
|
|
9435
|
-
var StyledButtonsRow$8 = styled__default.default(ButtonsRow$2)(templateObject_6$
|
|
9436
|
-
var PreviewImage = styled__default.default.img(templateObject_7$
|
|
9437
|
-
var templateObject_1$r, templateObject_2$n, templateObject_3$h, templateObject_4$b, templateObject_5$8, templateObject_6$
|
|
9454
|
+
var StyledButtonsRow$8 = styled__default.default(ButtonsRow$2)(templateObject_6$5 || (templateObject_6$5 = __makeTemplateObject(["\n padding-top: 20px;\n"], ["\n padding-top: 20px;\n"])));
|
|
9455
|
+
var PreviewImage = styled__default.default.img(templateObject_7$3 || (templateObject_7$3 = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n object-fit: cover;\n"], ["\n width: 100%;\n height: 100%;\n object-fit: cover;\n"])));
|
|
9456
|
+
var templateObject_1$r, templateObject_2$n, templateObject_3$h, templateObject_4$b, templateObject_5$8, templateObject_6$5, templateObject_7$3;
|
|
9438
9457
|
|
|
9439
9458
|
var DocumentCaptureWizard = function DocumentCaptureWizard(_a) {
|
|
9440
9459
|
var onSuccess = _a.onSuccess,
|
|
@@ -9710,8 +9729,8 @@ var Heading$8 = styled__default.default.h3(templateObject_2$m || (templateObject
|
|
|
9710
9729
|
var Description$3 = styled__default.default.p(templateObject_3$g || (templateObject_3$g = __makeTemplateObject(["\n margin-bottom: 8px;\n"], ["\n margin-bottom: 8px;\n"])));
|
|
9711
9730
|
var Instruction = styled__default.default.p(templateObject_4$a || (templateObject_4$a = __makeTemplateObject(["\n font-weight: bold;\n"], ["\n font-weight: bold;\n"])));
|
|
9712
9731
|
var ImageCol = styled__default.default.div(templateObject_5$7 || (templateObject_5$7 = __makeTemplateObject(["\n display: flex;\n justify-content: center;\n flex-grow: 1;\n flex-basis: 0;\n"], ["\n display: flex;\n justify-content: center;\n flex-grow: 1;\n flex-basis: 0;\n"])));
|
|
9713
|
-
var StyledButtonsRow$7 = styled__default.default(ButtonsRow$2)(templateObject_6$
|
|
9714
|
-
var templateObject_1$q, templateObject_2$m, templateObject_3$g, templateObject_4$a, templateObject_5$7, templateObject_6$
|
|
9732
|
+
var StyledButtonsRow$7 = styled__default.default(ButtonsRow$2)(templateObject_6$4 || (templateObject_6$4 = __makeTemplateObject(["\n margin-top: 32px;\n"], ["\n margin-top: 32px;\n"])));
|
|
9733
|
+
var templateObject_1$q, templateObject_2$m, templateObject_3$g, templateObject_4$a, templateObject_5$7, templateObject_6$4;
|
|
9715
9734
|
|
|
9716
9735
|
function ScalingCameraFeed() {
|
|
9717
9736
|
var _a = useIdCaptureStore(),
|
|
@@ -10071,8 +10090,8 @@ var ScreenPanel = styled__default.default.div(templateObject_2$l || (templateObj
|
|
|
10071
10090
|
var SelectIdCardScreenPanel = styled__default.default(ScreenPanel)(templateObject_3$f || (templateObject_3$f = __makeTemplateObject(["\n background: white;\n padding: 80px 0;\n\n @media (max-height: 1000px) {\n padding: 40px 0;\n }\n"], ["\n background: white;\n padding: 80px 0;\n\n @media (max-height: 1000px) {\n padding: 40px 0;\n }\n"])));
|
|
10072
10091
|
var ScreenPanelHeading = styled__default.default.h3(templateObject_4$9 || (templateObject_4$9 = __makeTemplateObject(["\n margin: 0 0 30px;\n"], ["\n margin: 0 0 30px;\n"])));
|
|
10073
10092
|
var ScreenActionsBar = styled__default.default.div(templateObject_5$6 || (templateObject_5$6 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: end;\n gap: 20px;\n padding: 20px;\n width: 100%;\n box-sizing: border-box;\n border-top: 1px solid #ccc;\n\n @media (max-width: 600px) {\n justify-content: center;\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: end;\n gap: 20px;\n padding: 20px;\n width: 100%;\n box-sizing: border-box;\n border-top: 1px solid #ccc;\n\n @media (max-width: 600px) {\n justify-content: center;\n }\n"])));
|
|
10074
|
-
var DashedSeparator = styled__default.default.div(templateObject_6$
|
|
10075
|
-
var OrWrapper = styled__default.default.div(templateObject_7$
|
|
10093
|
+
var DashedSeparator = styled__default.default.div(templateObject_6$3 || (templateObject_6$3 = __makeTemplateObject(["\n width: 100%;\n height: 0;\n border-top: 2px solid #606060;\n border-top-style: dashed;\n display: flex;\n align-items: center;\n justify-content: center;\n"], ["\n width: 100%;\n height: 0;\n border-top: 2px solid #606060;\n border-top-style: dashed;\n display: flex;\n align-items: center;\n justify-content: center;\n"])));
|
|
10094
|
+
var OrWrapper = styled__default.default.div(templateObject_7$2 || (templateObject_7$2 = __makeTemplateObject(["\n color: #323232;\n font-weight: bold;\n background: white;\n border-radius: 50%;\n top: -2px;\n position: relative;\n width: 60px;\n height: 60px;\n display: flex;\n align-items: center;\n justify-content: center;\n"], ["\n color: #323232;\n font-weight: bold;\n background: white;\n border-radius: 50%;\n top: -2px;\n position: relative;\n width: 60px;\n height: 60px;\n display: flex;\n align-items: center;\n justify-content: center;\n"])));
|
|
10076
10095
|
var UploadIdBackHelpText = styled__default.default.p(templateObject_8$1 || (templateObject_8$1 = __makeTemplateObject(["\n color: #323232;\n font-style: italic;\n margin: 30px 0 0;\n"], ["\n color: #323232;\n font-style: italic;\n margin: 30px 0 0;\n"])));
|
|
10077
10096
|
var Button = styled__default.default(WideBorderButton)(templateObject_9$1 || (templateObject_9$1 = __makeTemplateObject(["\n width: auto;\n font-weight: 500;\n padding-left: 40px;\n padding-right: 40px;\n transition: background-color 0.3s ease;\n background-color: #ffffff;\n white-space: nowrap;\n\n &:disabled,\n &.disabled {\n background-color: #f1f1f1 !important;\n border-color: #dbdbdb !important;\n color: #323232 !important;\n }\n\n &:hover {\n filter: none;\n background-color: #fafafa !important;\n }\n"], ["\n width: auto;\n font-weight: 500;\n padding-left: 40px;\n padding-right: 40px;\n transition: background-color 0.3s ease;\n background-color: #ffffff;\n white-space: nowrap;\n\n &:disabled,\n &.disabled {\n background-color: #f1f1f1 !important;\n border-color: #dbdbdb !important;\n color: #323232 !important;\n }\n\n &:hover {\n filter: none;\n background-color: #fafafa !important;\n }\n"])));
|
|
10078
10097
|
var Modal = styled__default.default.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.5);\n z-index: 10000;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"], ["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.5);\n z-index: 10000;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"])));
|
|
@@ -10352,7 +10371,7 @@ function humanFileSize(bytes, si, dp) {
|
|
|
10352
10371
|
} while (Math.round(Math.abs(bytes) * r) / r >= thresh && u < units.length - 1);
|
|
10353
10372
|
return bytes.toFixed(dp) + ' ' + units[u];
|
|
10354
10373
|
}
|
|
10355
|
-
var templateObject_1$p, templateObject_2$l, templateObject_3$f, templateObject_4$9, templateObject_5$6, templateObject_6$
|
|
10374
|
+
var templateObject_1$p, templateObject_2$l, templateObject_3$f, templateObject_4$9, templateObject_5$6, templateObject_6$3, templateObject_7$2, templateObject_8$1, templateObject_9$1, templateObject_10, templateObject_11, templateObject_12, templateObject_13;
|
|
10356
10375
|
|
|
10357
10376
|
var IdCaptureWizard = function IdCaptureWizard(_a) {
|
|
10358
10377
|
var _b, _c, _d, _e, _f;
|
|
@@ -12439,7 +12458,10 @@ var templateObject_1$h, templateObject_2$e;
|
|
|
12439
12458
|
var legacyInstructionImageUrl = "".concat(DEFAULT_CDN_URL, "/Selfie-Image-1.png");
|
|
12440
12459
|
var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDefault(_a) {
|
|
12441
12460
|
var _b, _c;
|
|
12442
|
-
var
|
|
12461
|
+
var onLoadingStarted = _a.onLoadingStarted,
|
|
12462
|
+
onLoadingProgress = _a.onLoadingProgress,
|
|
12463
|
+
onLoadingCompleted = _a.onLoadingCompleted,
|
|
12464
|
+
onDismissed = _a.onDismissed,
|
|
12443
12465
|
onUserCancel = _a.onUserCancel,
|
|
12444
12466
|
customOverlayContent = _a.customOverlayContent,
|
|
12445
12467
|
_d = _a.waitForIdCaptureModels,
|
|
@@ -12465,8 +12487,9 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
|
|
|
12465
12487
|
cameraAccessDenied = _j.cameraAccessDenied,
|
|
12466
12488
|
microphoneAccessDenied = _j.microphoneAccessDenied;
|
|
12467
12489
|
var _k = useSelfieGuidanceModelsContext(),
|
|
12468
|
-
|
|
12469
|
-
modelDownloadProgress = _k.modelDownloadProgress
|
|
12490
|
+
modelLoadState = _k.modelLoadState,
|
|
12491
|
+
modelDownloadProgress = _k.modelDownloadProgress,
|
|
12492
|
+
modelWarmingStartedAt = _k.modelWarmingStartedAt;
|
|
12470
12493
|
var idCaptureModelsContext = React.useContext(IdCaptureModelsContext);
|
|
12471
12494
|
var theme = styled.useTheme();
|
|
12472
12495
|
var verbiage = useTranslations(rawVerbiage, {
|
|
@@ -12493,6 +12516,19 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
|
|
|
12493
12516
|
});
|
|
12494
12517
|
}, 3000);
|
|
12495
12518
|
}, []);
|
|
12519
|
+
var timeSinceWarmingStarted = modelWarmingStartedAt ? new Date().getTime() - modelWarmingStartedAt : 0;
|
|
12520
|
+
var warmingProgress = timeSinceWarmingStarted / 5000.0;
|
|
12521
|
+
var allModelsReady = modelLoadState === 'ready' && (!waitForIdCaptureModels || (idCaptureModelsContext === null || idCaptureModelsContext === void 0 ? void 0 : idCaptureModelsContext.ready));
|
|
12522
|
+
var ready = sessionReady && allModelsReady && cameraReady;
|
|
12523
|
+
var modelLoadProgress = allModelsReady ? 100 : modelDownloadProgress * 0.5 + warmingProgress * 49.0;
|
|
12524
|
+
useLoadProgressHooks({
|
|
12525
|
+
ready: ready,
|
|
12526
|
+
modelLoadState: modelLoadState,
|
|
12527
|
+
modelLoadProgress: modelLoadProgress,
|
|
12528
|
+
onLoadingStarted: onLoadingStarted,
|
|
12529
|
+
onLoadingProgress: onLoadingProgress,
|
|
12530
|
+
onLoadingCompleted: onLoadingCompleted
|
|
12531
|
+
});
|
|
12496
12532
|
var _m = React.useState(false),
|
|
12497
12533
|
dismissed = _m[0],
|
|
12498
12534
|
setDismissed = _m[1];
|
|
@@ -12513,8 +12549,6 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
|
|
|
12513
12549
|
verbiage: rawVerbiage.microphoneAccessDenied
|
|
12514
12550
|
});
|
|
12515
12551
|
}
|
|
12516
|
-
var allModelsReady = modelsReady && (!waitForIdCaptureModels || (idCaptureModelsContext === null || idCaptureModelsContext === void 0 ? void 0 : idCaptureModelsContext.ready));
|
|
12517
|
-
var ready = sessionReady && allModelsReady && cameraReady;
|
|
12518
12552
|
return /*#__PURE__*/React__namespace.default.createElement(OverlayContainer, {
|
|
12519
12553
|
className: classNames.container
|
|
12520
12554
|
}, /*#__PURE__*/React__namespace.default.createElement(OverlayInner, {
|
|
@@ -12528,7 +12562,7 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
|
|
|
12528
12562
|
className: classNames.heading
|
|
12529
12563
|
}, headingText)), /*#__PURE__*/React__namespace.default.createElement(LoadingOverlayImageContainer, {
|
|
12530
12564
|
className: classNames.imageContainer
|
|
12531
|
-
}, (assets === null || assets === void 0 ? void 0 : assets.instructionImageUrl) && assets.instructionImageUrl !== legacyInstructionImageUrl ? ( /*#__PURE__*/React__namespace.default.createElement(
|
|
12565
|
+
}, (assets === null || assets === void 0 ? void 0 : assets.instructionImageUrl) && assets.instructionImageUrl !== legacyInstructionImageUrl ? ( /*#__PURE__*/React__namespace.default.createElement(LoadingOverlayCustomLoadingGraphic, {
|
|
12532
12566
|
className: classNames.image,
|
|
12533
12567
|
alt: verbiage.headingText,
|
|
12534
12568
|
src: assets.instructionImageUrl
|
|
@@ -12541,7 +12575,7 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
|
|
|
12541
12575
|
}, /*#__PURE__*/React__namespace.default.createElement(ProgressBarBackground, {
|
|
12542
12576
|
className: classNames.progressBackground
|
|
12543
12577
|
}), /*#__PURE__*/React__namespace.default.createElement(LoadingOverlayProgressBar, {
|
|
12544
|
-
"$progress":
|
|
12578
|
+
"$progress": modelLoadProgress,
|
|
12545
12579
|
className: classNames.progressBar
|
|
12546
12580
|
}, /*#__PURE__*/React__namespace.default.createElement(ProgressIndicator, {
|
|
12547
12581
|
className: classNames.progressIndicator
|
|
@@ -12559,7 +12593,7 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
|
|
|
12559
12593
|
}, /*#__PURE__*/React__namespace.default.createElement(LoadingListItemIndicator, {
|
|
12560
12594
|
className: classNames.loadingListItemIndicator,
|
|
12561
12595
|
state: sessionReady && allModelsReady ? 'done' : 'running'
|
|
12562
|
-
}), !sessionReady ? verbiage.sessionCheckingText : allModelsReady ? verbiage.modelsReadyText : modelDownloadProgress >= 100 ? verbiage.modelsWarmingUpText : "".concat(verbiage.downloadingText, " (").concat(modelDownloadProgress, "%)")))), /*#__PURE__*/React__namespace.default.createElement(
|
|
12596
|
+
}), !sessionReady ? verbiage.sessionCheckingText : allModelsReady ? verbiage.modelsReadyText : modelDownloadProgress >= 100 ? verbiage.modelsWarmingUpText : "".concat(verbiage.downloadingText, " (").concat(modelDownloadProgress, "%)")))), /*#__PURE__*/React__namespace.default.createElement(LoadingOverlayContinueButtonContainer, {
|
|
12563
12597
|
className: classNames.continueBtnContainer
|
|
12564
12598
|
}, (ready || ((_c = (_b = theme.selfieCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.displayDisabledContinueBtn)) && ( /*#__PURE__*/React__namespace.default.createElement(ContinueButton, {
|
|
12565
12599
|
autoFocus: true,
|
|
@@ -12599,9 +12633,7 @@ var ProgressIndicator = styled__default.default(LoadingOverlayProgressIndicator)
|
|
|
12599
12633
|
var _a, _b, _c, _d;
|
|
12600
12634
|
return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.selfieCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.progressBarIndicatorColor) !== null && _d !== void 0 ? _d : 'var(--idm-color-positive-600)';
|
|
12601
12635
|
});
|
|
12602
|
-
var
|
|
12603
|
-
var ContinueButtonContainer = styled__default.default.div(templateObject_6$3 || (templateObject_6$3 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
12604
|
-
var ContinueButton = styled__default.default(LoaderButton)(templateObject_7$2 || (templateObject_7$2 = __makeTemplateObject(["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n\n &.disabled {\n background: ", ";\n color: ", ";\n border: ", ";\n box-shadow: none;\n }\n"], ["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n\n &.disabled {\n background: ", ";\n color: ", ";\n border: ", ";\n box-shadow: none;\n }\n"])), function (props) {
|
|
12636
|
+
var ContinueButton = styled__default.default(LoaderButton)(templateObject_5$4 || (templateObject_5$4 = __makeTemplateObject(["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n\n &.disabled {\n background: ", ";\n color: ", ";\n border: ", ";\n box-shadow: none;\n }\n"], ["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n\n &.disabled {\n background: ", ";\n color: ", ";\n border: ", ";\n box-shadow: none;\n }\n"])), function (props) {
|
|
12605
12637
|
var _a, _b, _c, _d, _e, _f;
|
|
12606
12638
|
return ((_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.selfieCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.progressBarFontSize) ? "font-size: ".concat((_f = (_e = (_d = props.theme) === null || _d === void 0 ? void 0 : _d.selfieCapture) === null || _e === void 0 ? void 0 : _e.loadingOverlay) === null || _f === void 0 ? void 0 : _f.progressBarFontSize, ";") : '';
|
|
12607
12639
|
}, function (props) {
|
|
@@ -12620,7 +12652,7 @@ var ContinueButton = styled__default.default(LoaderButton)(templateObject_7$2 ||
|
|
|
12620
12652
|
var _a, _b, _c, _d;
|
|
12621
12653
|
return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.selfieCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.continueBtnBorder) !== null && _d !== void 0 ? _d : 'none';
|
|
12622
12654
|
});
|
|
12623
|
-
var templateObject_1$g, templateObject_2$d, templateObject_3$b, templateObject_4$6, templateObject_5$4
|
|
12655
|
+
var templateObject_1$g, templateObject_2$d, templateObject_3$b, templateObject_4$6, templateObject_5$4;
|
|
12624
12656
|
|
|
12625
12657
|
var components = {
|
|
12626
12658
|
"default": SelfieCaptureLoadingOverlayDefault,
|
|
@@ -12637,7 +12669,10 @@ var SelfieCaptureLoadingOverlay = function SelfieCaptureLoadingOverlay(_a) {
|
|
|
12637
12669
|
|
|
12638
12670
|
var FaceLivenessWizard = function FaceLivenessWizard(_a) {
|
|
12639
12671
|
var _b;
|
|
12640
|
-
var
|
|
12672
|
+
var onLoadingStarted = _a.onLoadingStarted,
|
|
12673
|
+
onLoadingProgress = _a.onLoadingProgress,
|
|
12674
|
+
onLoadingCompleted = _a.onLoadingCompleted,
|
|
12675
|
+
onComplete = _a.onComplete,
|
|
12641
12676
|
onSuccess = _a.onSuccess,
|
|
12642
12677
|
onFailure = _a.onFailure,
|
|
12643
12678
|
onTimeout = _a.onTimeout,
|
|
@@ -12904,6 +12939,9 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
|
|
|
12904
12939
|
classNames: classNames.loadingOverlay,
|
|
12905
12940
|
colors: colors.loadingOverlay,
|
|
12906
12941
|
verbiage: verbiage.loadingOverlay,
|
|
12942
|
+
onLoadingStarted: onLoadingStarted,
|
|
12943
|
+
onLoadingProgress: onLoadingProgress,
|
|
12944
|
+
onLoadingCompleted: onLoadingCompleted,
|
|
12907
12945
|
onUserCancel: onUserCancel,
|
|
12908
12946
|
onDismissed: onLoadingOverlayDismissedCallback,
|
|
12909
12947
|
waitForIdCaptureModels: waitForIdCaptureModels
|
|
@@ -13992,7 +14030,10 @@ var StyledVideo$1 = styled__default.default.video(templateObject_1$9 || (templat
|
|
|
13992
14030
|
var templateObject_1$9;
|
|
13993
14031
|
|
|
13994
14032
|
var VideoSignatureWizard = function VideoSignatureWizard(_a) {
|
|
13995
|
-
var
|
|
14033
|
+
var onLoadingStarted = _a.onLoadingStarted,
|
|
14034
|
+
onLoadingProgress = _a.onLoadingProgress,
|
|
14035
|
+
onLoadingCompleted = _a.onLoadingCompleted,
|
|
14036
|
+
onComplete = _a.onComplete,
|
|
13996
14037
|
onVideoCaptured = _a.onVideoCaptured,
|
|
13997
14038
|
onRetryClicked = _a.onRetryClicked,
|
|
13998
14039
|
onExitCapture = _a.onExitCapture,
|
|
@@ -14144,6 +14185,9 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
|
|
|
14144
14185
|
return /*#__PURE__*/React__namespace.default.createElement(FaceLivenessWizard, _assign({
|
|
14145
14186
|
key: "face-liveness-".concat(attempt)
|
|
14146
14187
|
}, faceLivenessProps, {
|
|
14188
|
+
onLoadingStarted: onLoadingStarted,
|
|
14189
|
+
onLoadingProgress: onLoadingProgress,
|
|
14190
|
+
onLoadingCompleted: onLoadingCompleted,
|
|
14147
14191
|
onSuccess: onFaceCaptureSuccess,
|
|
14148
14192
|
onExitCapture: onExitCapture,
|
|
14149
14193
|
onUserCancel: onUserCancel,
|
|
@@ -15089,6 +15133,9 @@ var VideoIdWizard = function VideoIdWizard(_a) {
|
|
|
15089
15133
|
_s = _a.idCaptureLoadingOverlayMode,
|
|
15090
15134
|
idCaptureLoadingOverlayMode = _s === void 0 ? 'default' : _s,
|
|
15091
15135
|
customOverlayContent = _a.customOverlayContent,
|
|
15136
|
+
onLoadingStarted = _a.onLoadingStarted,
|
|
15137
|
+
onLoadingProgress = _a.onLoadingProgress,
|
|
15138
|
+
onLoadingCompleted = _a.onLoadingCompleted,
|
|
15092
15139
|
onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
|
|
15093
15140
|
_t = _a.idDocumentType,
|
|
15094
15141
|
idDocumentType = _t === void 0 ? 'idCardOrPassport' : _t,
|
|
@@ -15246,6 +15293,9 @@ var VideoIdWizard = function VideoIdWizard(_a) {
|
|
|
15246
15293
|
key: "id-capture-".concat(attempt),
|
|
15247
15294
|
loadingOverlayMode: idCaptureLoadingOverlayMode,
|
|
15248
15295
|
customOverlayContent: customOverlayContent,
|
|
15296
|
+
onLoadingStarted: onLoadingStarted,
|
|
15297
|
+
onLoadingProgress: onLoadingProgress,
|
|
15298
|
+
onLoadingCompleted: onLoadingCompleted,
|
|
15249
15299
|
onLoadingOverlayDismissed: onLoadingOverlayDismissed,
|
|
15250
15300
|
silentFallback: silentFallback,
|
|
15251
15301
|
guideImages: idCaptureGuideImages
|
|
@@ -15270,6 +15320,9 @@ var VideoIdWizard = function VideoIdWizard(_a) {
|
|
|
15270
15320
|
key: "face-liveness-".concat(attempt),
|
|
15271
15321
|
loadingOverlayMode: faceLivenessLoadingOverlayMode,
|
|
15272
15322
|
customOverlayContent: customOverlayContent,
|
|
15323
|
+
onLoadingStarted: onLoadingStarted,
|
|
15324
|
+
onLoadingProgress: onLoadingProgress,
|
|
15325
|
+
onLoadingCompleted: onLoadingCompleted,
|
|
15273
15326
|
onLoadingOverlayDismissed: onLoadingOverlayDismissed,
|
|
15274
15327
|
silentFallback: silentFallback
|
|
15275
15328
|
}, faceLivenessProps, {
|
|
@@ -16073,6 +16126,9 @@ var FaceValidation = function FaceValidation(_a) {
|
|
|
16073
16126
|
_h = _a.skipSuccessScreen,
|
|
16074
16127
|
skipSuccessScreen = _h === void 0 ? false : _h,
|
|
16075
16128
|
idCardForFaceMatch = _a.idCardForFaceMatch,
|
|
16129
|
+
onLoadingStarted = _a.onLoadingStarted,
|
|
16130
|
+
onLoadingProgress = _a.onLoadingProgress,
|
|
16131
|
+
onLoadingCompleted = _a.onLoadingCompleted,
|
|
16076
16132
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
16077
16133
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
16078
16134
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -16109,6 +16165,9 @@ var FaceValidation = function FaceValidation(_a) {
|
|
|
16109
16165
|
timeoutDurationMs: timeoutDurationMs,
|
|
16110
16166
|
modelLoadTimeoutMs: modelLoadTimeoutMs,
|
|
16111
16167
|
skipSuccessScreen: skipSuccessScreen,
|
|
16168
|
+
onLoadingStarted: onLoadingStarted,
|
|
16169
|
+
onLoadingProgress: onLoadingProgress,
|
|
16170
|
+
onLoadingCompleted: onLoadingCompleted,
|
|
16112
16171
|
onComplete: onComplete,
|
|
16113
16172
|
onSuccess: onApproved,
|
|
16114
16173
|
onDenied: onDenied,
|
|
@@ -16122,7 +16181,7 @@ var FaceValidation = function FaceValidation(_a) {
|
|
|
16122
16181
|
verbiage: verbiage,
|
|
16123
16182
|
debugMode: debugMode
|
|
16124
16183
|
};
|
|
16125
|
-
}, [assets, classNames, colors, debugMode, initialCaptureDelayMs, loadingOverlayMode, modelLoadTimeoutMs, onApproved, onComplete, onDenied, onExitAfterFailure, onExitCapture, onModelError, onUserCancel, skipSuccessScreen, timeoutDurationMs, verbiage]);
|
|
16184
|
+
}, [assets, classNames, colors, debugMode, initialCaptureDelayMs, loadingOverlayMode, modelLoadTimeoutMs, onApproved, onComplete, onDenied, onExitAfterFailure, onExitCapture, onLoadingCompleted, onLoadingProgress, onLoadingStarted, onModelError, onUserCancel, skipSuccessScreen, timeoutDurationMs, verbiage]);
|
|
16126
16185
|
return /*#__PURE__*/React__namespace.default.createElement(AuthProvider, {
|
|
16127
16186
|
sessionId: sessionId,
|
|
16128
16187
|
authUrl: authUrl
|
|
@@ -16245,6 +16304,9 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
16245
16304
|
enableOverrideWrongDocumentTypeDialog = _w === void 0 ? false : _w,
|
|
16246
16305
|
_x = _a.allowOverrideWrongDocumentTypeAfterMs,
|
|
16247
16306
|
allowOverrideWrongDocumentTypeAfterMs = _x === void 0 ? 8000 : _x,
|
|
16307
|
+
onLoadingStarted = _a.onLoadingStarted,
|
|
16308
|
+
onLoadingProgress = _a.onLoadingProgress,
|
|
16309
|
+
onLoadingCompleted = _a.onLoadingCompleted,
|
|
16248
16310
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
16249
16311
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
16250
16312
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
@@ -16289,6 +16351,9 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
16289
16351
|
useDebugLogging(debugMode);
|
|
16290
16352
|
var idCaptureProps = React.useMemo(function () {
|
|
16291
16353
|
return {
|
|
16354
|
+
onLoadingStarted: onLoadingStarted,
|
|
16355
|
+
onLoadingProgress: onLoadingProgress,
|
|
16356
|
+
onLoadingCompleted: onLoadingCompleted,
|
|
16292
16357
|
onExitCapture: onExitCapture,
|
|
16293
16358
|
onUserCancel: onUserCancel,
|
|
16294
16359
|
onModelError: onIdCaptureModelError,
|
|
@@ -16316,9 +16381,12 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
16316
16381
|
skipSuccessScreen: skipSuccessScreen,
|
|
16317
16382
|
debugMode: debugMode
|
|
16318
16383
|
};
|
|
16319
|
-
}, [onExitCapture, onUserCancel, onIdCaptureModelError, assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, precapturedDocuments, idCaptureRequirement, allowSinglePageIdCapture, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, idCaptureAllowUploadingDocumentsFromStorage, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, idCaptureForceFallbackMode, separateIdCardCaptureSequence, skipSuccessScreen, debugMode]);
|
|
16384
|
+
}, [onLoadingStarted, onLoadingProgress, onLoadingCompleted, onExitCapture, onUserCancel, onIdCaptureModelError, assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, precapturedDocuments, idCaptureRequirement, allowSinglePageIdCapture, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, idCaptureAllowUploadingDocumentsFromStorage, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, idCaptureForceFallbackMode, separateIdCardCaptureSequence, skipSuccessScreen, debugMode]);
|
|
16320
16385
|
var faceLivenessProps = React.useMemo(function () {
|
|
16321
16386
|
return {
|
|
16387
|
+
onLoadingStarted: onLoadingStarted,
|
|
16388
|
+
onLoadingProgress: onLoadingProgress,
|
|
16389
|
+
onLoadingCompleted: onLoadingCompleted,
|
|
16322
16390
|
loadingOverlayMode: faceLivenessLoadingOverlayMode,
|
|
16323
16391
|
initialCaptureDelayMs: faceLivenessInitialCaptureDelayMs,
|
|
16324
16392
|
timeoutDurationMs: faceLivenessTimeoutDurationMs,
|
|
@@ -16336,7 +16404,7 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
16336
16404
|
verbiage: verbiage.faceLiveness,
|
|
16337
16405
|
debugMode: debugMode
|
|
16338
16406
|
};
|
|
16339
|
-
}, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, faceLivenessInitialCaptureDelayMs, faceLivenessLoadingOverlayMode, faceLivenessTimeoutDurationMs, onDenied, onExitAfterFailure, onExitCapture, onSelfieCaptureModelError, onUserCancel, precapturedDocuments, selfieCaptureModelLoadTimeoutMs, skipSuccessScreen, verbiage.faceLiveness]);
|
|
16407
|
+
}, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, faceLivenessInitialCaptureDelayMs, faceLivenessLoadingOverlayMode, faceLivenessTimeoutDurationMs, onDenied, onExitAfterFailure, onExitCapture, onLoadingCompleted, onLoadingProgress, onLoadingStarted, onSelfieCaptureModelError, onUserCancel, precapturedDocuments, selfieCaptureModelLoadTimeoutMs, skipSuccessScreen, verbiage.faceLiveness]);
|
|
16340
16408
|
var additionalDocumentCaptureProps = React.useMemo(function () {
|
|
16341
16409
|
return {
|
|
16342
16410
|
documents: captureAdditionalDocuments,
|
|
@@ -16512,6 +16580,9 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
16512
16580
|
allowUploadingDocumentsFromStorage = _w === void 0 ? false : _w,
|
|
16513
16581
|
_x = _a.separateIdCardCaptureSequence,
|
|
16514
16582
|
separateIdCardCaptureSequence = _x === void 0 ? false : _x,
|
|
16583
|
+
onLoadingStarted = _a.onLoadingStarted,
|
|
16584
|
+
onLoadingProgress = _a.onLoadingProgress,
|
|
16585
|
+
onLoadingCompleted = _a.onLoadingCompleted,
|
|
16515
16586
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
16516
16587
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
16517
16588
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -16558,6 +16629,9 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
16558
16629
|
useDebugLogging(debugMode);
|
|
16559
16630
|
var idCaptureProps = React.useMemo(function () {
|
|
16560
16631
|
return {
|
|
16632
|
+
onLoadingStarted: onLoadingStarted,
|
|
16633
|
+
onLoadingProgress: onLoadingProgress,
|
|
16634
|
+
onLoadingCompleted: onLoadingCompleted,
|
|
16561
16635
|
assets: assets.idCapture,
|
|
16562
16636
|
classNames: classNames.idCapture,
|
|
16563
16637
|
colors: colors.idCapture,
|
|
@@ -16585,9 +16659,12 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
16585
16659
|
skipSuccessScreen: skipSuccessScreen,
|
|
16586
16660
|
debugMode: debugMode
|
|
16587
16661
|
};
|
|
16588
|
-
}, [assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, precapturedDocuments, idCaptureRequirement, allowSinglePageIdCapture, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, idCaptureForceFallbackMode, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, allowUploadingDocumentsFromStorage, separateIdCardCaptureSequence, onExitCapture, onUserCancel, onIdCaptureModelError, skipSuccessScreen, debugMode]);
|
|
16662
|
+
}, [onLoadingCompleted, onLoadingProgress, onLoadingStarted, assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, precapturedDocuments, idCaptureRequirement, allowSinglePageIdCapture, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, idCaptureForceFallbackMode, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, allowUploadingDocumentsFromStorage, separateIdCardCaptureSequence, onExitCapture, onUserCancel, onIdCaptureModelError, skipSuccessScreen, debugMode]);
|
|
16589
16663
|
var faceLivenessProps = React.useMemo(function () {
|
|
16590
16664
|
return {
|
|
16665
|
+
onLoadingStarted: onLoadingStarted,
|
|
16666
|
+
onLoadingProgress: onLoadingProgress,
|
|
16667
|
+
onLoadingCompleted: onLoadingCompleted,
|
|
16591
16668
|
onExitCapture: onExitCapture,
|
|
16592
16669
|
onExitAfterFailure: onExitAfterFailure,
|
|
16593
16670
|
onUserCancel: onUserCancel,
|
|
@@ -16604,7 +16681,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
16604
16681
|
verbiage: verbiage.faceLiveness,
|
|
16605
16682
|
debugMode: debugMode
|
|
16606
16683
|
};
|
|
16607
|
-
}, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, faceLivenessInitialCaptureDelayMs, faceLivenessLoadingOverlayMode, faceLivenessTimeoutDurationMs, onExitAfterFailure, onExitCapture, onSelfieCaptureModelError, onUserCancel, precapturedDocuments, selfieCaptureModelLoadTimeoutMs, skipSuccessScreen, verbiage.faceLiveness]);
|
|
16684
|
+
}, [onLoadingCompleted, onLoadingProgress, onLoadingStarted, assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, faceLivenessInitialCaptureDelayMs, faceLivenessLoadingOverlayMode, faceLivenessTimeoutDurationMs, onExitAfterFailure, onExitCapture, onSelfieCaptureModelError, onUserCancel, precapturedDocuments, selfieCaptureModelLoadTimeoutMs, skipSuccessScreen, verbiage.faceLiveness]);
|
|
16608
16685
|
var videoIdCaptureProps = React.useMemo(function () {
|
|
16609
16686
|
return _assign({
|
|
16610
16687
|
onExitCapture: onExitCapture,
|
|
@@ -17019,7 +17096,10 @@ var templateObject_1$2, templateObject_2$2, templateObject_3$2;
|
|
|
17019
17096
|
|
|
17020
17097
|
var ALLOWED_RETRIES$2 = 2;
|
|
17021
17098
|
var CustomerVerificationWizard = function CustomerVerificationWizard(_a) {
|
|
17022
|
-
var
|
|
17099
|
+
var onLoadingStarted = _a.onLoadingStarted,
|
|
17100
|
+
onLoadingProgress = _a.onLoadingProgress,
|
|
17101
|
+
onLoadingCompleted = _a.onLoadingCompleted,
|
|
17102
|
+
onComplete = _a.onComplete,
|
|
17023
17103
|
onCustomerMatched = _a.onCustomerMatched,
|
|
17024
17104
|
onCustomerNotMatched = _a.onCustomerNotMatched,
|
|
17025
17105
|
onExitCapture = _a.onExitCapture,
|
|
@@ -17149,7 +17229,7 @@ var CustomerVerificationWizard = function CustomerVerificationWizard(_a) {
|
|
|
17149
17229
|
onExitAfterFailure === null || onExitAfterFailure === void 0 ? void 0 : onExitAfterFailure();
|
|
17150
17230
|
},
|
|
17151
17231
|
onRetryClick: function onRetryClick() {
|
|
17152
|
-
setAttempt(function (n) {
|
|
17232
|
+
return setAttempt(function (n) {
|
|
17153
17233
|
return n + 1;
|
|
17154
17234
|
});
|
|
17155
17235
|
}
|
|
@@ -17164,9 +17244,12 @@ var CustomerVerificationWizard = function CustomerVerificationWizard(_a) {
|
|
|
17164
17244
|
classNames: classNames.loadingOverlay,
|
|
17165
17245
|
colors: colors.loadingOverlay,
|
|
17166
17246
|
verbiage: verbiage.loadingOverlay,
|
|
17247
|
+
onLoadingStarted: onLoadingStarted,
|
|
17248
|
+
onLoadingProgress: onLoadingProgress,
|
|
17249
|
+
onLoadingCompleted: onLoadingCompleted,
|
|
17167
17250
|
onUserCancel: onUserCancel,
|
|
17168
17251
|
onDismissed: function onDismissed() {
|
|
17169
|
-
setCaptureState('CAPTURING');
|
|
17252
|
+
return setCaptureState('CAPTURING');
|
|
17170
17253
|
}
|
|
17171
17254
|
}));
|
|
17172
17255
|
};
|
|
@@ -17208,6 +17291,9 @@ var CustomerVerification = function CustomerVerification(_a) {
|
|
|
17208
17291
|
classNames = _a.classNames,
|
|
17209
17292
|
colors = _a.colors,
|
|
17210
17293
|
verbiage = _a.verbiage,
|
|
17294
|
+
onLoadingStarted = _a.onLoadingStarted,
|
|
17295
|
+
onLoadingProgress = _a.onLoadingProgress,
|
|
17296
|
+
onLoadingCompleted = _a.onLoadingCompleted,
|
|
17211
17297
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
17212
17298
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
17213
17299
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -17276,6 +17362,9 @@ var CustomerVerification = function CustomerVerification(_a) {
|
|
|
17276
17362
|
}, /*#__PURE__*/React__namespace.default.createElement(SdkPage, {
|
|
17277
17363
|
className: classNames === null || classNames === void 0 ? void 0 : classNames.container
|
|
17278
17364
|
}, /*#__PURE__*/React__namespace.default.createElement(CustomerVerificationWizard, {
|
|
17365
|
+
onLoadingStarted: onLoadingStarted,
|
|
17366
|
+
onLoadingProgress: onLoadingProgress,
|
|
17367
|
+
onLoadingCompleted: onLoadingCompleted,
|
|
17279
17368
|
onComplete: onComplete,
|
|
17280
17369
|
onCustomerMatched: onCustomerMatched,
|
|
17281
17370
|
onCustomerNotMatched: onCustomerNotMatched,
|
|
@@ -17589,7 +17678,10 @@ var templateObject_1, templateObject_2, templateObject_3;
|
|
|
17589
17678
|
|
|
17590
17679
|
var ALLOWED_RETRIES = 2;
|
|
17591
17680
|
var CustomerIdentificationWizard = function CustomerIdentificationWizard(_a) {
|
|
17592
|
-
var
|
|
17681
|
+
var onLoadingStarted = _a.onLoadingStarted,
|
|
17682
|
+
onLoadingProgress = _a.onLoadingProgress,
|
|
17683
|
+
onLoadingCompleted = _a.onLoadingCompleted,
|
|
17684
|
+
onComplete = _a.onComplete,
|
|
17593
17685
|
onCustomerMatched = _a.onCustomerMatched,
|
|
17594
17686
|
onCustomerNotMatched = _a.onCustomerNotMatched,
|
|
17595
17687
|
onExitCapture = _a.onExitCapture,
|
|
@@ -17734,6 +17826,9 @@ var CustomerIdentificationWizard = function CustomerIdentificationWizard(_a) {
|
|
|
17734
17826
|
classNames: classNames.loadingOverlay,
|
|
17735
17827
|
colors: colors.loadingOverlay,
|
|
17736
17828
|
verbiage: verbiage.loadingOverlay,
|
|
17829
|
+
onLoadingStarted: onLoadingStarted,
|
|
17830
|
+
onLoadingProgress: onLoadingProgress,
|
|
17831
|
+
onLoadingCompleted: onLoadingCompleted,
|
|
17737
17832
|
onUserCancel: onUserCancel,
|
|
17738
17833
|
onDismissed: function onDismissed() {
|
|
17739
17834
|
setCaptureState('CAPTURING');
|
|
@@ -17771,6 +17866,9 @@ var CustomerIdentification = function CustomerIdentification(_a) {
|
|
|
17771
17866
|
modelLoadTimeoutMs = _e === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _e,
|
|
17772
17867
|
_f = _a.skipSuccessScreen,
|
|
17773
17868
|
skipSuccessScreen = _f === void 0 ? false : _f,
|
|
17869
|
+
onLoadingStarted = _a.onLoadingStarted,
|
|
17870
|
+
onLoadingProgress = _a.onLoadingProgress,
|
|
17871
|
+
onLoadingCompleted = _a.onLoadingCompleted,
|
|
17774
17872
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
17775
17873
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
17776
17874
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -17844,6 +17942,9 @@ var CustomerIdentification = function CustomerIdentification(_a) {
|
|
|
17844
17942
|
}, /*#__PURE__*/React__namespace.default.createElement(SdkPage, {
|
|
17845
17943
|
className: classNames === null || classNames === void 0 ? void 0 : classNames.container
|
|
17846
17944
|
}, /*#__PURE__*/React__namespace.default.createElement(CustomerIdentificationWizard, {
|
|
17945
|
+
onLoadingStarted: onLoadingStarted,
|
|
17946
|
+
onLoadingProgress: onLoadingProgress,
|
|
17947
|
+
onLoadingCompleted: onLoadingCompleted,
|
|
17847
17948
|
onComplete: onComplete,
|
|
17848
17949
|
onCustomerMatched: onCustomerMatched,
|
|
17849
17950
|
onCustomerNotMatched: onCustomerNotMatched,
|
|
@@ -17875,6 +17976,9 @@ var SignatureKYC = function SignatureKYC(_a) {
|
|
|
17875
17976
|
documentServiceUrl = _a.documentServiceUrl,
|
|
17876
17977
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
17877
17978
|
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
17979
|
+
onLoadingStarted = _a.onLoadingStarted,
|
|
17980
|
+
onLoadingProgress = _a.onLoadingProgress,
|
|
17981
|
+
onLoadingCompleted = _a.onLoadingCompleted,
|
|
17878
17982
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
17879
17983
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
17880
17984
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -17954,6 +18058,9 @@ var SignatureKYC = function SignatureKYC(_a) {
|
|
|
17954
18058
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
17955
18059
|
videoSignatureCaptureProps: React.useMemo(function () {
|
|
17956
18060
|
return {
|
|
18061
|
+
onLoadingStarted: onLoadingStarted,
|
|
18062
|
+
onLoadingProgress: onLoadingProgress,
|
|
18063
|
+
onLoadingCompleted: onLoadingCompleted,
|
|
17957
18064
|
customOverlayContent: customOverlayContent,
|
|
17958
18065
|
onLoadingOverlayDismissed: onLoadingOverlayDismissed,
|
|
17959
18066
|
loadingOverlayMode: loadingOverlayMode,
|
|
@@ -17972,7 +18079,7 @@ var SignatureKYC = function SignatureKYC(_a) {
|
|
|
17972
18079
|
onModelError: onModelError,
|
|
17973
18080
|
onUserCancel: onUserCancel
|
|
17974
18081
|
};
|
|
17975
|
-
}, [customOverlayContent, onLoadingOverlayDismissed, loadingOverlayMode, skipSuccessScreen, captureAudio, minSignaturePadPoints, headTrackingBoundaryPercentage, modelLoadTimeoutMs, faceLivenessProps, allowSignatureAfterLivenessCheckFailure, restartVideoOnSignaturePadCleared, classNames, colors, debugMode, verbiage, onModelError, onUserCancel])
|
|
18082
|
+
}, [onLoadingStarted, onLoadingProgress, onLoadingCompleted, customOverlayContent, onLoadingOverlayDismissed, loadingOverlayMode, skipSuccessScreen, captureAudio, minSignaturePadPoints, headTrackingBoundaryPercentage, modelLoadTimeoutMs, faceLivenessProps, allowSignatureAfterLivenessCheckFailure, restartVideoOnSignaturePadCleared, classNames, colors, debugMode, verbiage, onModelError, onUserCancel])
|
|
17976
18083
|
})))));
|
|
17977
18084
|
};
|
|
17978
18085
|
|
|
@@ -18010,6 +18117,9 @@ var VideoIdValidation = function VideoIdValidation(_a) {
|
|
|
18010
18117
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
18011
18118
|
customerDataMatchConfig = _a.customerDataMatchConfig,
|
|
18012
18119
|
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
18120
|
+
onLoadingStarted = _a.onLoadingStarted,
|
|
18121
|
+
onLoadingProgress = _a.onLoadingProgress,
|
|
18122
|
+
onLoadingCompleted = _a.onLoadingCompleted,
|
|
18013
18123
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
18014
18124
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
18015
18125
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -18094,6 +18204,9 @@ var VideoIdValidation = function VideoIdValidation(_a) {
|
|
|
18094
18204
|
useDebugLogging(debugMode);
|
|
18095
18205
|
var videoIdCaptureProps = React.useMemo(function () {
|
|
18096
18206
|
return {
|
|
18207
|
+
onLoadingStarted: onLoadingStarted,
|
|
18208
|
+
onLoadingProgress: onLoadingProgress,
|
|
18209
|
+
onLoadingCompleted: onLoadingCompleted,
|
|
18097
18210
|
idCaptureProps: idCaptureProps,
|
|
18098
18211
|
faceLivenessProps: faceLivenessProps,
|
|
18099
18212
|
idCaptureModelsEnabled: idCaptureModelsEnabled,
|
|
@@ -18126,7 +18239,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
|
|
|
18126
18239
|
verbiage: verbiage,
|
|
18127
18240
|
debugMode: debugMode
|
|
18128
18241
|
};
|
|
18129
|
-
}, [idCaptureProps, faceLivenessProps, idCaptureModelsEnabled, videoIdCaptureThresholds, readTextPrompt, readTextTimeoutDurationMs, readTextMinReadingMs, onExitCapture, onExitAfterFailure, onUserCancel, skipSuccessScreen, skipIdCapture, skipShowIdCardBack, idCaptureLoadingOverlayMode, customOverlayContent, onLoadingOverlayDismissed, idDocumentType, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, faceLivenessLoadingOverlayMode, disableFaceDetectionWhileAudioCapture, disableFaceDetectionWhileAudioCaptureMsDelay, silentFallback, mergeAVStreams, assets, classNames, colors, verbiage, debugMode]);
|
|
18242
|
+
}, [onLoadingStarted, onLoadingProgress, onLoadingCompleted, idCaptureProps, faceLivenessProps, idCaptureModelsEnabled, videoIdCaptureThresholds, readTextPrompt, readTextTimeoutDurationMs, readTextMinReadingMs, onExitCapture, onExitAfterFailure, onUserCancel, skipSuccessScreen, skipIdCapture, skipShowIdCardBack, idCaptureLoadingOverlayMode, customOverlayContent, onLoadingOverlayDismissed, idDocumentType, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, faceLivenessLoadingOverlayMode, disableFaceDetectionWhileAudioCapture, disableFaceDetectionWhileAudioCaptureMsDelay, silentFallback, mergeAVStreams, assets, classNames, colors, verbiage, debugMode]);
|
|
18130
18243
|
var additionalDocumentCaptureProps = React.useMemo(function () {
|
|
18131
18244
|
return {
|
|
18132
18245
|
documents: captureAdditionalDocuments,
|
|
@@ -18249,6 +18362,9 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
|
|
|
18249
18362
|
modelLoadTimeoutMs = _f === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _f,
|
|
18250
18363
|
_g = _a.skipSuccessScreen,
|
|
18251
18364
|
skipSuccessScreen = _g === void 0 ? false : _g,
|
|
18365
|
+
onLoadingStarted = _a.onLoadingStarted,
|
|
18366
|
+
onLoadingProgress = _a.onLoadingProgress,
|
|
18367
|
+
onLoadingCompleted = _a.onLoadingCompleted,
|
|
18252
18368
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
18253
18369
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
18254
18370
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -18291,6 +18407,9 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
|
|
|
18291
18407
|
useDebugLogging(debugMode);
|
|
18292
18408
|
var faceLivenessProps = React.useMemo(function () {
|
|
18293
18409
|
return {
|
|
18410
|
+
onLoadingStarted: onLoadingStarted,
|
|
18411
|
+
onLoadingProgress: onLoadingProgress,
|
|
18412
|
+
onLoadingCompleted: onLoadingCompleted,
|
|
18294
18413
|
onExitCapture: onExitCapture,
|
|
18295
18414
|
onUserCancel: onUserCancel,
|
|
18296
18415
|
onExitAfterFailure: onExitAfterFailure,
|
|
@@ -18306,7 +18425,7 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
|
|
|
18306
18425
|
verbiage: verbiage.faceLiveness,
|
|
18307
18426
|
debugMode: debugMode
|
|
18308
18427
|
};
|
|
18309
|
-
}, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, initialCaptureDelayMs, loadingOverlayMode, modelLoadTimeoutMs, onExitAfterFailure, onExitCapture, onModelError, onUserCancel, skipSuccessScreen, timeoutDurationMs, verbiage.faceLiveness]);
|
|
18428
|
+
}, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, initialCaptureDelayMs, loadingOverlayMode, modelLoadTimeoutMs, onExitAfterFailure, onExitCapture, onLoadingCompleted, onLoadingProgress, onLoadingStarted, onModelError, onUserCancel, skipSuccessScreen, timeoutDurationMs, verbiage.faceLiveness]);
|
|
18310
18429
|
var additionalDocumentCaptureProps = React.useMemo(function () {
|
|
18311
18430
|
return {
|
|
18312
18431
|
documents: captureAdditionalDocuments,
|