idmission-web-sdk 2.3.74 → 2.3.76
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/customer_flows/SignatureKYC.d.ts +2 -0
- package/dist/components/customer_flows/SignatureKYC.d.ts.map +1 -1
- package/dist/components/video_signature_capture/VideoSignatureGuides.d.ts +2 -1
- package/dist/components/video_signature_capture/VideoSignatureGuides.d.ts.map +1 -1
- package/dist/components/video_signature_capture/VideoSignaturePad.d.ts +1 -0
- package/dist/components/video_signature_capture/VideoSignaturePad.d.ts.map +1 -1
- package/dist/components/video_signature_capture/VideoSignatureWizard.d.ts +2 -1
- package/dist/components/video_signature_capture/VideoSignatureWizard.d.ts.map +1 -1
- package/dist/lib/locales/de.d.ts +1 -0
- package/dist/lib/locales/de.d.ts.map +1 -1
- package/dist/lib/locales/es.d.ts +1 -0
- package/dist/lib/locales/es.d.ts.map +1 -1
- package/dist/lib/locales/fr.d.ts +1 -0
- package/dist/lib/locales/fr.d.ts.map +1 -1
- package/dist/lib/locales/index.d.ts +8 -0
- package/dist/lib/locales/index.d.ts.map +1 -1
- package/dist/lib/locales/it.d.ts +1 -0
- package/dist/lib/locales/it.d.ts.map +1 -1
- package/dist/lib/locales/ja.d.ts +1 -0
- package/dist/lib/locales/ja.d.ts.map +1 -1
- package/dist/lib/locales/pt.d.ts +1 -0
- package/dist/lib/locales/pt.d.ts.map +1 -1
- package/dist/lib/locales/ru.d.ts +1 -0
- package/dist/lib/locales/ru.d.ts.map +1 -1
- package/dist/lib/locales/zh.d.ts +1 -0
- package/dist/lib/locales/zh.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +125 -84
- 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 +125 -84
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +125 -84
- package/dist/sdk2.umd.development.js.map +1 -1
- package/dist/sdk2.umd.production.js +1 -1
- package/dist/sdk2.umd.production.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/sdk2.esm.js
CHANGED
|
@@ -205,7 +205,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
205
205
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
206
206
|
};
|
|
207
207
|
|
|
208
|
-
var webSdkVersion = '2.3.
|
|
208
|
+
var webSdkVersion = '2.3.76';
|
|
209
209
|
|
|
210
210
|
function getPlatform() {
|
|
211
211
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -494,7 +494,7 @@ var OverlayInner$2 = styled.div(templateObject_2$G || (templateObject_2$G = __ma
|
|
|
494
494
|
});
|
|
495
495
|
var OverlayImageContainer = styled.div(templateObject_3$t || (templateObject_3$t = __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"])));
|
|
496
496
|
var OverlayImageRow = styled.div(templateObject_4$n || (templateObject_4$n = __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"])));
|
|
497
|
-
var GrayOverlayContainer = styled(OverlayContainer)(templateObject_5$
|
|
497
|
+
var GrayOverlayContainer = styled(OverlayContainer)(templateObject_5$f || (templateObject_5$f = __makeTemplateObject(["\n background: #f7f6fb;\n"], ["\n background: #f7f6fb;\n"])));
|
|
498
498
|
var ButtonsColumn = styled.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"])));
|
|
499
499
|
var WideButton = styled(LoaderButton)(templateObject_7$5 || (templateObject_7$5 = __makeTemplateObject(["\n width: 100%;\n border-radius: 30px;\n"], ["\n width: 100%;\n border-radius: 30px;\n"])));
|
|
500
500
|
var WideBorderButton = styled(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) {
|
|
@@ -534,7 +534,7 @@ var LoadingOverlayLoadingListItem = styled.li(templateObject_19 || (templateObje
|
|
|
534
534
|
var LoadingOverlayProgressContainer = styled.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"])));
|
|
535
535
|
var LoadingOverlayCustomLoadingGraphic = styled.img(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n transform-style: preserve-3d;\n"], ["\n transform-style: preserve-3d;\n"])));
|
|
536
536
|
var LoadingOverlayContinueButtonContainer = styled.div(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
537
|
-
var templateObject_1$N, templateObject_2$G, templateObject_3$t, templateObject_4$n, templateObject_5$
|
|
537
|
+
var templateObject_1$N, templateObject_2$G, templateObject_3$t, templateObject_4$n, templateObject_5$f, templateObject_6$9, templateObject_7$5, templateObject_8$4, templateObject_9$2, 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;
|
|
538
538
|
|
|
539
539
|
var GeolocationAccessDeniedOverlay = function GeolocationAccessDeniedOverlay(_a) {
|
|
540
540
|
var accessBlockedImageUrl = _a.accessBlockedImageUrl;
|
|
@@ -3860,7 +3860,8 @@ var es = {
|
|
|
3860
3860
|
'Upload the back of the ID if it is not included in the front image.': 'Adjuntar el reverso de la ID si no se incluye en la imagen del frente',
|
|
3861
3861
|
'Camera tampering detected': 'Se ha detectado un intento de manipulación de la cámara',
|
|
3862
3862
|
"We're sorry, but it looks like the camera is being tampered with. Please check your device and try again by reloading the page.": 'Lo sentimos, pero parece que la cámara está siendo manipulada. Por favor, verifique su dispositivo y vuelva a intentarlo recargando la página.',
|
|
3863
|
-
'Position your face in the circle and click to capture.': 'Enfoca tu cara en el círculo y da clic en capturar.'
|
|
3863
|
+
'Position your face in the circle and click to capture.': 'Enfoca tu cara en el círculo y da clic en capturar.',
|
|
3864
|
+
'Sign here': 'Firma aquí'
|
|
3864
3865
|
};
|
|
3865
3866
|
|
|
3866
3867
|
var de = {
|
|
@@ -3990,7 +3991,8 @@ var de = {
|
|
|
3990
3991
|
'Upload the back of the ID if it is not included in the front image.': 'Laden Sie die Rückseite des Ausweises hoch, wenn diese nicht im Bild der Vorderseite enthalten ist.',
|
|
3991
3992
|
'Camera tampering detected': 'Kamera manipuliert',
|
|
3992
3993
|
"We're sorry, but it looks like the camera is being tampered with. Please check your device and try again by reloading the page.": 'Leider scheint die Kamera manipuliert zu werden. Bitte prüfen Sie Ihr Gerät und laden Sie die Seite neu.',
|
|
3993
|
-
'Position your face in the circle and click to capture.': 'Stellen Sie Ihr Gesicht im Kreis ein und klicken Sie auf Erfassen.'
|
|
3994
|
+
'Position your face in the circle and click to capture.': 'Stellen Sie Ihr Gesicht im Kreis ein und klicken Sie auf Erfassen.',
|
|
3995
|
+
'Sign here': 'Hier unterschreiben'
|
|
3994
3996
|
};
|
|
3995
3997
|
|
|
3996
3998
|
var fr = {
|
|
@@ -4120,7 +4122,8 @@ var fr = {
|
|
|
4120
4122
|
'Upload the back of the ID if it is not included in the front image.': "Téléchargez le verso de la pièce d'identité si ce n'est pas inclus dans l'image du recto.",
|
|
4121
4123
|
'Camera tampering detected': 'Manipulation de la caméra détectée',
|
|
4122
4124
|
"We're sorry, but it looks like the camera is being tampered with. Please check your device and try again by reloading the page.": 'Nous sommes désolés, mais il semble que la caméra soit manipulée. Veuillez vérifier votre appareil et réessayer en rechargeant la page.',
|
|
4123
|
-
'Position your face in the circle and click to capture.': 'Positionnez votre visage dans le cercle et cliquez pour capturer.'
|
|
4125
|
+
'Position your face in the circle and click to capture.': 'Positionnez votre visage dans le cercle et cliquez pour capturer.',
|
|
4126
|
+
'Sign here': 'Signer ici'
|
|
4124
4127
|
};
|
|
4125
4128
|
|
|
4126
4129
|
var it = {
|
|
@@ -4250,7 +4253,8 @@ var it = {
|
|
|
4250
4253
|
'Upload the back of the ID if it is not included in the front image.': "Carica il retro dell'ID se non è incluso nell'immagine del fronte.",
|
|
4251
4254
|
'Camera tampering detected': 'Manipolazione della fotocamera rilevata',
|
|
4252
4255
|
"We're sorry, but it looks like the camera is being tampered with. Please check your device and try again by reloading the page.": 'Siamo spiacenti, ma sembra che la fotocamera stia venendo manipolata. Controlla il tuo dispositivo e riprova ricaricando la pagina.',
|
|
4253
|
-
'Position your face in the circle and click to capture.': 'Posiziona il tuo volto nel cerchio e clicca per acquisire.'
|
|
4256
|
+
'Position your face in the circle and click to capture.': 'Posiziona il tuo volto nel cerchio e clicca per acquisire.',
|
|
4257
|
+
'Sign here': 'Firma qui'
|
|
4254
4258
|
};
|
|
4255
4259
|
|
|
4256
4260
|
var ja = {
|
|
@@ -4380,7 +4384,8 @@ var ja = {
|
|
|
4380
4384
|
'Upload the back of the ID if it is not included in the front image.': '表面画像に裏面が含まれていない場合は、裏面をアップロードしてください。',
|
|
4381
4385
|
'Camera tampering detected': 'カメラの操作が検出されました',
|
|
4382
4386
|
"We're sorry, but it looks like the camera is being tampered with. Please check your device and try again by reloading the page.": 'カメラの操作が検出されました。デバイスを確認し、ページを再読み込みしてください。',
|
|
4383
|
-
'Position your face in the circle and click to capture.': '顔を円の中に合わせてクリックして撮影してください。'
|
|
4387
|
+
'Position your face in the circle and click to capture.': '顔を円の中に合わせてクリックして撮影してください。',
|
|
4388
|
+
'Sign here': 'ここに署名'
|
|
4384
4389
|
};
|
|
4385
4390
|
|
|
4386
4391
|
var pt = {
|
|
@@ -4510,7 +4515,8 @@ var pt = {
|
|
|
4510
4515
|
'Upload the back of the ID if it is not included in the front image.': 'Carregue o verso do ID se não estiver incluído na imagem da frente.',
|
|
4511
4516
|
'Camera tampering detected': 'Manipulação da câmera detectada',
|
|
4512
4517
|
"We're sorry, but it looks like the camera is being tampered with. Please check your device and try again by reloading the page.": 'Lamentamos, mas parece que a câmera está sendo manipulada. Verifique seu dispositivo e tente novamente recarregando a página.',
|
|
4513
|
-
'Position your face in the circle and click to capture.': 'Posicione seu rosto no círculo e clique para capturar.'
|
|
4518
|
+
'Position your face in the circle and click to capture.': 'Posicione seu rosto no círculo e clique para capturar.',
|
|
4519
|
+
'Sign here': 'Assinar aqui'
|
|
4514
4520
|
};
|
|
4515
4521
|
|
|
4516
4522
|
var ru = {
|
|
@@ -4640,7 +4646,8 @@ var ru = {
|
|
|
4640
4646
|
'Upload the back of the ID if it is not included in the front image.': 'Загрузите заднюю сторону удостоверения, если она не включена в изображение передней стороны.',
|
|
4641
4647
|
'Camera tampering detected': 'Обнаружена манипуляция с камерой',
|
|
4642
4648
|
"We're sorry, but it looks like the camera is being tampered with. Please check your device and try again by reloading the page.": 'К сожалению, кажется, что камера подвергается манипуляциям. Пожалуйста, проверьте свое устройство и попробуйте снова, перезагрузив страницу.',
|
|
4643
|
-
'Position your face in the circle and click to capture.': 'Поместите свое лицо в круг и нажмите для съемки.'
|
|
4649
|
+
'Position your face in the circle and click to capture.': 'Поместите свое лицо в круг и нажмите для съемки.',
|
|
4650
|
+
'Sign here': 'Подписать здесь'
|
|
4644
4651
|
};
|
|
4645
4652
|
|
|
4646
4653
|
var zh = {
|
|
@@ -4770,7 +4777,8 @@ var zh = {
|
|
|
4770
4777
|
'Upload the back of the ID if it is not included in the front image.': '如果正面照片没有包含身份证背面,请上传背面照片。',
|
|
4771
4778
|
'Camera tampering detected': '檢測到相機被篡改',
|
|
4772
4779
|
"We're sorry, but it looks like the camera is being tampered with. Please check your device and try again by reloading the page.": '很抱歉,看起來相機被篡改了。請檢查您的設備並重新載入頁面。',
|
|
4773
|
-
'Position your face in the circle and click to capture.': '將您的臉部置於圓圈中,點擊拍攝。'
|
|
4780
|
+
'Position your face in the circle and click to capture.': '將您的臉部置於圓圈中,點擊拍攝。',
|
|
4781
|
+
'Sign here': '在此簽名'
|
|
4774
4782
|
};
|
|
4775
4783
|
|
|
4776
4784
|
function renderVerbiage(verbiage) {
|
|
@@ -6581,8 +6589,8 @@ var Container$7 = styled.div(templateObject_1$J || (templateObject_1$J = __makeT
|
|
|
6581
6589
|
var InnerContainer = styled.div(templateObject_2$D || (templateObject_2$D = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n padding: 16px 24px;\n margin: auto 0;\n width: 100%;\n"], ["\n display: flex;\n flex-direction: row;\n padding: 16px 24px;\n margin: auto 0;\n width: 100%;\n"])));
|
|
6582
6590
|
var Message = styled.span(templateObject_3$r || (templateObject_3$r = __makeTemplateObject(["\n display: block;\n margin: auto 12px auto 0;\n"], ["\n display: block;\n margin: auto 12px auto 0;\n"])));
|
|
6583
6591
|
var ButtonContainer = styled.div(templateObject_4$l || (templateObject_4$l = __makeTemplateObject(["\n display: flex;\n margin-left: auto;\n"], ["\n display: flex;\n margin-left: auto;\n"])));
|
|
6584
|
-
var Button$1 = styled(LoaderButton)(templateObject_5$
|
|
6585
|
-
var templateObject_1$J, templateObject_2$D, templateObject_3$r, templateObject_4$l, templateObject_5$
|
|
6592
|
+
var Button$1 = styled(LoaderButton)(templateObject_5$e || (templateObject_5$e = __makeTemplateObject(["\n white-space: nowrap;\n margin: auto;\n"], ["\n white-space: nowrap;\n margin: auto;\n"])));
|
|
6593
|
+
var templateObject_1$J, templateObject_2$D, templateObject_3$r, templateObject_4$l, templateObject_5$e;
|
|
6586
6594
|
|
|
6587
6595
|
// This is a simplified version of https://github.com/ZeeCoder/use-resize-observer.
|
|
6588
6596
|
// We have removed all options and made it compliant with React Compiler/React 19.
|
|
@@ -7713,7 +7721,7 @@ var OverlayInner$1 = styled(LoadingOverlayInner)(templateObject_1$F || (template
|
|
|
7713
7721
|
var ContinuityCameraCheckboxContainer$1 = styled.div(templateObject_2$A || (templateObject_2$A = __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"])));
|
|
7714
7722
|
var ContinuityCameraCheckboxInner = styled(GuidanceMessage)(templateObject_3$o || (templateObject_3$o = __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"])));
|
|
7715
7723
|
var ContinuityCameraCheckbox$1 = styled.input(templateObject_4$i || (templateObject_4$i = __makeTemplateObject(["\n margin: 0;\n"], ["\n margin: 0;\n"])));
|
|
7716
|
-
var ButtonsRow$1 = styled(LoadingOverlayButtonsRow)(templateObject_5$
|
|
7724
|
+
var ButtonsRow$1 = styled(LoadingOverlayButtonsRow)(templateObject_5$d || (templateObject_5$d = __makeTemplateObject(["\n color: ", ";\n ", "\n"], ["\n color: ", ";\n ", "\n"])), function (props) {
|
|
7717
7725
|
var _a, _b, _c, _d;
|
|
7718
7726
|
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';
|
|
7719
7727
|
}, function (props) {
|
|
@@ -7750,7 +7758,7 @@ var ContinueButton$1 = styled(LoaderButton)(templateObject_8$3 || (templateObjec
|
|
|
7750
7758
|
var _a, _b, _c, _d;
|
|
7751
7759
|
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';
|
|
7752
7760
|
});
|
|
7753
|
-
var templateObject_1$F, templateObject_2$A, templateObject_3$o, templateObject_4$i, templateObject_5$
|
|
7761
|
+
var templateObject_1$F, templateObject_2$A, templateObject_3$o, templateObject_4$i, templateObject_5$d, templateObject_6$8, templateObject_7$4, templateObject_8$3;
|
|
7754
7762
|
|
|
7755
7763
|
var ContinuityCameraCheckboxContainer = styled.div(templateObject_1$E || (templateObject_1$E = __makeTemplateObject(["\n margin-top: 15px;\n margin-bottom: 15px;\n"], ["\n margin-top: 15px;\n margin-bottom: 15px;\n"])));
|
|
7756
7764
|
var ContinuityCameraCheckbox = styled.input(templateObject_2$z || (templateObject_2$z = __makeTemplateObject(["\n margin-right: 8px;\n"], ["\n margin-right: 8px;\n"])));
|
|
@@ -8000,9 +8008,9 @@ var Heading$a = styled.h1(templateObject_1$C || (templateObject_1$C = __makeTemp
|
|
|
8000
8008
|
var ImagesContainer = styled(OverlayImageContainer)(templateObject_2$x || (templateObject_2$x = __makeTemplateObject(["\n flex-grow: 1;\n overflow-y: auto;\n padding-bottom: 0;\n max-width: 100%;\n"], ["\n flex-grow: 1;\n overflow-y: auto;\n padding-bottom: 0;\n max-width: 100%;\n"])));
|
|
8001
8009
|
var ImageRow = styled(OverlayImageRow)(templateObject_3$n || (templateObject_3$n = __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"])));
|
|
8002
8010
|
var ImageCol$1 = styled.div(templateObject_4$h || (templateObject_4$h = __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"])));
|
|
8003
|
-
var StyledImage = styled(CapturedDocumentImg)(templateObject_5$
|
|
8011
|
+
var StyledImage = styled(CapturedDocumentImg)(templateObject_5$c || (templateObject_5$c = __makeTemplateObject(["\n width: 100%;\n border-radius: 12px;\n"], ["\n width: 100%;\n border-radius: 12px;\n"])));
|
|
8004
8012
|
var DebugPre = styled.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"])));
|
|
8005
|
-
var templateObject_1$C, templateObject_2$x, templateObject_3$n, templateObject_4$h, templateObject_5$
|
|
8013
|
+
var templateObject_1$C, templateObject_2$x, templateObject_3$n, templateObject_4$h, templateObject_5$c, templateObject_6$7;
|
|
8006
8014
|
|
|
8007
8015
|
function useShowSuccessScreen(skipSuccessScreen, successScreenReady, onDoneCallback) {
|
|
8008
8016
|
var _this = this;
|
|
@@ -8211,7 +8219,7 @@ function IdCardBorderSvg(_a) {
|
|
|
8211
8219
|
}
|
|
8212
8220
|
var IdCardBorderContainer = styled.div(templateObject_3$m || (templateObject_3$m = __makeTemplateObject(["\n align-items: center;\n justify-content: center;\n display: flex;\n position: relative;\n margin: auto;\n\n & .idmSdkWaves {\n position: absolute;\n animation: ", " 2s ease-out infinite;\n transform-style: preserve-3d;\n\n &:nth-child(3) {\n animation-delay: 0.66s;\n }\n\n &:nth-child(4) {\n animation-delay: 1.33s;\n }\n }\n"], ["\n align-items: center;\n justify-content: center;\n display: flex;\n position: relative;\n margin: auto;\n\n & .idmSdkWaves {\n position: absolute;\n animation: ", " 2s ease-out infinite;\n transform-style: preserve-3d;\n\n &:nth-child(3) {\n animation-delay: 0.66s;\n }\n\n &:nth-child(4) {\n animation-delay: 1.33s;\n }\n }\n"])), wavesAnimation);
|
|
8213
8221
|
var IdCardBorderInner = styled.div(templateObject_4$g || (templateObject_4$g = __makeTemplateObject(["\n max-height: 100%;\n max-width: 100%;\n flex: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n"], ["\n max-height: 100%;\n max-width: 100%;\n flex: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n"])));
|
|
8214
|
-
var SvgOverlay = styled.svg(templateObject_5$
|
|
8222
|
+
var SvgOverlay = styled.svg(templateObject_5$b || (templateObject_5$b = __makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n"], ["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n"])));
|
|
8215
8223
|
var IdCardBorderRect = styled.rect(templateObject_6$6 || (templateObject_6$6 = __makeTemplateObject(["\n &.idmSdkProgressBorder {\n animation: ", " ", "\n ", ";\n }\n\n &.idmSdkProgressPaused {\n animation-play-state: paused;\n }\n"], ["\n &.idmSdkProgressBorder {\n animation: ", " ", "\n ", ";\n }\n\n &.idmSdkProgressPaused {\n animation-play-state: paused;\n }\n"])), progressBorderAnimation, function (props) {
|
|
8216
8224
|
var _a;
|
|
8217
8225
|
return (_a = props.$speed) !== null && _a !== void 0 ? _a : '3s';
|
|
@@ -8219,7 +8227,7 @@ var IdCardBorderRect = styled.rect(templateObject_6$6 || (templateObject_6$6 = _
|
|
|
8219
8227
|
var _a;
|
|
8220
8228
|
return (_a = props.$fillMode) !== null && _a !== void 0 ? _a : 'forwards';
|
|
8221
8229
|
});
|
|
8222
|
-
var templateObject_1$B, templateObject_2$w, templateObject_3$m, templateObject_4$g, templateObject_5$
|
|
8230
|
+
var templateObject_1$B, templateObject_2$w, templateObject_3$m, templateObject_4$g, templateObject_5$b, templateObject_6$6;
|
|
8223
8231
|
|
|
8224
8232
|
var defaultIdCaptureGuideImages = {
|
|
8225
8233
|
portrait: {
|
|
@@ -8718,7 +8726,7 @@ var GuideRegion = styled.div(templateObject_4$f || (templateObject_4$f = __makeT
|
|
|
8718
8726
|
}, function (props) {
|
|
8719
8727
|
return props.$minHeight ? "min-height: ".concat(props.$minHeight, "px;") : "";
|
|
8720
8728
|
});
|
|
8721
|
-
var Spacer = styled(GuideRegion)(templateObject_5$
|
|
8729
|
+
var Spacer = styled(GuideRegion)(templateObject_5$a || (templateObject_5$a = __makeTemplateObject(["\n display: block;\n width: auto;\n"], ["\n display: block;\n width: auto;\n"])));
|
|
8722
8730
|
var GuideCenterRegion = styled.div(templateObject_6$5 || (templateObject_6$5 = __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) {
|
|
8723
8731
|
return props.$minWidth ? "min-width: ".concat(props.$minWidth, "px;") : "";
|
|
8724
8732
|
}, function (props) {
|
|
@@ -8734,7 +8742,7 @@ var GuideText = styled.span(templateObject_8$2 || (templateObject_8$2 = __makeTe
|
|
|
8734
8742
|
var GuideCenterInner = styled.div(templateObject_9$1 || (templateObject_9$1 = __makeTemplateObject(["\n position: relative;\n top: 0;\n margin: auto;\n ", "\n max-height: 100%;\n max-width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n"], ["\n position: relative;\n top: 0;\n margin: auto;\n ", "\n max-height: 100%;\n max-width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n"])), function (props) {
|
|
8735
8743
|
return props.$isLandscape ? 'height: 100%;' : 'width: 90%;';
|
|
8736
8744
|
});
|
|
8737
|
-
var templateObject_1$y, templateObject_2$u, templateObject_3$l, templateObject_4$f, templateObject_5$
|
|
8745
|
+
var templateObject_1$y, templateObject_2$u, templateObject_3$l, templateObject_4$f, templateObject_5$a, templateObject_6$5, templateObject_7$3, templateObject_8$2, templateObject_9$1;
|
|
8738
8746
|
|
|
8739
8747
|
var IdCaptureFitGuide = function IdCaptureFitGuide(_a) {
|
|
8740
8748
|
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
@@ -9598,13 +9606,13 @@ var Heading$9 = styled.h1(templateObject_3$j || (templateObject_3$j = __makeTemp
|
|
|
9598
9606
|
var FooterRow = styled.div(templateObject_4$d || (templateObject_4$d = __makeTemplateObject(["\n background: ", ";\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 0 20px 20px;\n height: auto;\n color: white;\n"], ["\n background: ", ";\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 0 20px 20px;\n height: auto;\n color: white;\n"])), function (props) {
|
|
9599
9607
|
return props.$maskColor;
|
|
9600
9608
|
});
|
|
9601
|
-
var Instructions = styled.div(templateObject_5$
|
|
9609
|
+
var Instructions = styled.div(templateObject_5$9 || (templateObject_5$9 = __makeTemplateObject(["\n max-height: ", ";\n overflow-y: auto;\n"], ["\n max-height: ", ";\n overflow-y: auto;\n"])), function (props) {
|
|
9602
9610
|
var _a, _b, _c;
|
|
9603
9611
|
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';
|
|
9604
9612
|
});
|
|
9605
9613
|
var StyledButtonsRow$8 = styled(ButtonsRow$2)(templateObject_6$4 || (templateObject_6$4 = __makeTemplateObject(["\n padding-top: 20px;\n"], ["\n padding-top: 20px;\n"])));
|
|
9606
9614
|
var PreviewImage = styled.img(templateObject_7$2 || (templateObject_7$2 = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n object-fit: cover;\n"], ["\n width: 100%;\n height: 100%;\n object-fit: cover;\n"])));
|
|
9607
|
-
var templateObject_1$r, templateObject_2$p, templateObject_3$j, templateObject_4$d, templateObject_5$
|
|
9615
|
+
var templateObject_1$r, templateObject_2$p, templateObject_3$j, templateObject_4$d, templateObject_5$9, templateObject_6$4, templateObject_7$2;
|
|
9608
9616
|
|
|
9609
9617
|
var DocumentCaptureWizard = function DocumentCaptureWizard(_a) {
|
|
9610
9618
|
var onSuccess = _a.onSuccess,
|
|
@@ -9879,9 +9887,9 @@ var StyledOverlayInner$2 = styled(OverlayInner$2)(templateObject_1$q || (templat
|
|
|
9879
9887
|
var Heading$8 = styled.h3(templateObject_2$o || (templateObject_2$o = __makeTemplateObject(["\n margin-bottom: 8px;\n"], ["\n margin-bottom: 8px;\n"])));
|
|
9880
9888
|
var Description$3 = styled.p(templateObject_3$i || (templateObject_3$i = __makeTemplateObject(["\n margin-bottom: 8px;\n"], ["\n margin-bottom: 8px;\n"])));
|
|
9881
9889
|
var Instruction = styled.p(templateObject_4$c || (templateObject_4$c = __makeTemplateObject(["\n font-weight: bold;\n"], ["\n font-weight: bold;\n"])));
|
|
9882
|
-
var ImageCol = styled.div(templateObject_5$
|
|
9890
|
+
var ImageCol = styled.div(templateObject_5$8 || (templateObject_5$8 = __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"])));
|
|
9883
9891
|
var StyledButtonsRow$7 = styled(ButtonsRow$2)(templateObject_6$3 || (templateObject_6$3 = __makeTemplateObject(["\n margin-top: 32px;\n"], ["\n margin-top: 32px;\n"])));
|
|
9884
|
-
var templateObject_1$q, templateObject_2$o, templateObject_3$i, templateObject_4$c, templateObject_5$
|
|
9892
|
+
var templateObject_1$q, templateObject_2$o, templateObject_3$i, templateObject_4$c, templateObject_5$8, templateObject_6$3;
|
|
9885
9893
|
|
|
9886
9894
|
function ScalingCameraFeed() {
|
|
9887
9895
|
var _a = useIdCaptureStore(),
|
|
@@ -10240,7 +10248,7 @@ var ScreenContainer = styled.div(templateObject_1$p || (templateObject_1$p = __m
|
|
|
10240
10248
|
var ScreenPanel = styled.div(templateObject_2$n || (templateObject_2$n = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 100%;\n flex-grow: 1;\n background: #f7f6fb;\n box-sizing: border-box;\n padding: 40px;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 100%;\n flex-grow: 1;\n background: #f7f6fb;\n box-sizing: border-box;\n padding: 40px;\n"])));
|
|
10241
10249
|
var SelectIdCardScreenPanel = styled(ScreenPanel)(templateObject_3$h || (templateObject_3$h = __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"])));
|
|
10242
10250
|
var ScreenPanelHeading = styled.h3(templateObject_4$b || (templateObject_4$b = __makeTemplateObject(["\n margin: 0 0 30px;\n"], ["\n margin: 0 0 30px;\n"])));
|
|
10243
|
-
var ScreenActionsBar = styled.div(templateObject_5$
|
|
10251
|
+
var ScreenActionsBar = styled.div(templateObject_5$7 || (templateObject_5$7 = __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"])));
|
|
10244
10252
|
var DashedSeparator = styled.div(templateObject_6$2 || (templateObject_6$2 = __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"])));
|
|
10245
10253
|
var OrWrapper = styled.div(templateObject_7$1 || (templateObject_7$1 = __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"])));
|
|
10246
10254
|
var UploadIdBackHelpText = styled.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"])));
|
|
@@ -10522,7 +10530,7 @@ function humanFileSize(bytes, si, dp) {
|
|
|
10522
10530
|
} while (Math.round(Math.abs(bytes) * r) / r >= thresh && u < units.length - 1);
|
|
10523
10531
|
return bytes.toFixed(dp) + ' ' + units[u];
|
|
10524
10532
|
}
|
|
10525
|
-
var templateObject_1$p, templateObject_2$n, templateObject_3$h, templateObject_4$b, templateObject_5$
|
|
10533
|
+
var templateObject_1$p, templateObject_2$n, templateObject_3$h, templateObject_4$b, templateObject_5$7, templateObject_6$2, templateObject_7$1, templateObject_8$1, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13;
|
|
10526
10534
|
|
|
10527
10535
|
var lastDocumentDetectedAtDefaults = {
|
|
10528
10536
|
idCardFront: null,
|
|
@@ -11907,8 +11915,8 @@ var StyledOverlayInner$1 = styled(OverlayInner$2)(templateObject_1$m || (templat
|
|
|
11907
11915
|
var Heading$7 = styled.h3(templateObject_2$k || (templateObject_2$k = __makeTemplateObject(["\n margin-bottom: 8px;\n"], ["\n margin-bottom: 8px;\n"])));
|
|
11908
11916
|
var Description$2 = styled.p(templateObject_3$f || (templateObject_3$f = __makeTemplateObject(["\n margin-bottom: 8px;\n"], ["\n margin-bottom: 8px;\n"])));
|
|
11909
11917
|
var ImageContainer$6 = styled(OverlayImageContainer)(templateObject_4$a || (templateObject_4$a = __makeTemplateObject(["\n margin-top: 32px;\n"], ["\n margin-top: 32px;\n"])));
|
|
11910
|
-
var StyledButtonsRow$6 = styled(ButtonsRow$2)(templateObject_5$
|
|
11911
|
-
var templateObject_1$m, templateObject_2$k, templateObject_3$f, templateObject_4$a, templateObject_5$
|
|
11918
|
+
var StyledButtonsRow$6 = styled(ButtonsRow$2)(templateObject_5$6 || (templateObject_5$6 = __makeTemplateObject(["\n margin-top: 32px;\n"], ["\n margin-top: 32px;\n"])));
|
|
11919
|
+
var templateObject_1$m, templateObject_2$k, templateObject_3$f, templateObject_4$a, templateObject_5$6;
|
|
11912
11920
|
|
|
11913
11921
|
var initialState$4 = {
|
|
11914
11922
|
busy: false,
|
|
@@ -12875,7 +12883,7 @@ var ProgressIndicator = styled(LoadingOverlayProgressIndicator)(templateObject_4
|
|
|
12875
12883
|
var _a, _b, _c, _d;
|
|
12876
12884
|
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)';
|
|
12877
12885
|
});
|
|
12878
|
-
var ContinueButton = styled(LoaderButton)(templateObject_5$
|
|
12886
|
+
var ContinueButton = styled(LoaderButton)(templateObject_5$5 || (templateObject_5$5 = __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) {
|
|
12879
12887
|
var _a, _b, _c, _d, _e, _f;
|
|
12880
12888
|
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, ";") : '';
|
|
12881
12889
|
}, function (props) {
|
|
@@ -12894,7 +12902,7 @@ var ContinueButton = styled(LoaderButton)(templateObject_5$4 || (templateObject_
|
|
|
12894
12902
|
var _a, _b, _c, _d;
|
|
12895
12903
|
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';
|
|
12896
12904
|
});
|
|
12897
|
-
var templateObject_1$g, templateObject_2$e, templateObject_3$c, templateObject_4$8, templateObject_5$
|
|
12905
|
+
var templateObject_1$g, templateObject_2$e, templateObject_3$c, templateObject_4$8, templateObject_5$5;
|
|
12898
12906
|
|
|
12899
12907
|
var components = {
|
|
12900
12908
|
"default": SelfieCaptureLoadingOverlayDefault,
|
|
@@ -13973,11 +13981,10 @@ function VideoSignaturePad(_a) {
|
|
|
13973
13981
|
signaturePadEmptyText: '',
|
|
13974
13982
|
headTrackingUnsatisfiedText: '',
|
|
13975
13983
|
clearSignatureBtnText: 'Clear',
|
|
13976
|
-
acceptSignatureBtnText: 'Accept'
|
|
13984
|
+
acceptSignatureBtnText: 'Accept',
|
|
13985
|
+
signHereText: 'Sign here'
|
|
13977
13986
|
});
|
|
13978
|
-
return /*#__PURE__*/React__default.createElement(
|
|
13979
|
-
className: classNames.signaturePadContainer
|
|
13980
|
-
}, /*#__PURE__*/React__default.createElement(SignatureCanvasContainer, {
|
|
13987
|
+
return /*#__PURE__*/React__default.createElement(SignatureCanvasContainer, {
|
|
13981
13988
|
className: cn(classNames.signatureCanvasContainer, disabled && classNames.signatureCanvasContainerDisabled),
|
|
13982
13989
|
"$disabled": disabled,
|
|
13983
13990
|
"$headTrackingUnsatisfied": !headTrackingSatisfied
|
|
@@ -14013,7 +14020,7 @@ function VideoSignaturePad(_a) {
|
|
|
14013
14020
|
}
|
|
14014
14021
|
}, /*#__PURE__*/React__default.createElement(SignaturePadContentInner, {
|
|
14015
14022
|
className: classNames.emptyContentInner
|
|
14016
|
-
}, verbiage.signaturePadEmptyText)))), /*#__PURE__*/React__default.createElement(SignatureButtonsContainer, {
|
|
14023
|
+
}, verbiage.signaturePadEmptyText))), /*#__PURE__*/React__default.createElement(SignHereText, null, verbiage.signHereText)), /*#__PURE__*/React__default.createElement(SignatureButtonsContainer, {
|
|
14017
14024
|
className: classNames.signatureButtonsRow
|
|
14018
14025
|
}, /*#__PURE__*/React__default.createElement(LoaderButton, {
|
|
14019
14026
|
variant: "secondary",
|
|
@@ -14027,21 +14034,21 @@ function VideoSignaturePad(_a) {
|
|
|
14027
14034
|
disabled: !canSubmit,
|
|
14028
14035
|
onClick: onAcceptBtnClicked,
|
|
14029
14036
|
finished: true
|
|
14030
|
-
}, verbiage.acceptSignatureBtnText)))
|
|
14037
|
+
}, verbiage.acceptSignatureBtnText)));
|
|
14031
14038
|
}
|
|
14032
|
-
var
|
|
14033
|
-
var SignatureCanvasContainer = styled.div(templateObject_2$a || (templateObject_2$a = __makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: calc(100% - 67px);\n ", "\n ", "\n"], ["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: calc(100% - 67px);\n ", "\n ", "\n"])), function (props) {
|
|
14039
|
+
var SignatureCanvasContainer = styled.div(templateObject_1$b || (templateObject_1$b = __makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: calc(100% - 67px);\n ", "\n ", "\n"], ["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: calc(100% - 67px);\n ", "\n ", "\n"])), function (props) {
|
|
14034
14040
|
return props.$disabled ? 'opacity: 0.5; pointer-events: none;' : '';
|
|
14035
14041
|
}, function (props) {
|
|
14036
14042
|
return props.$headTrackingUnsatisfied ? 'pointer-events: none;' : '';
|
|
14037
14043
|
});
|
|
14038
|
-
var AcceptBtn = styled(LoaderButton)(
|
|
14039
|
-
var SignaturePadContentContainer = styled.div(
|
|
14040
|
-
var SignaturePadContentInner = styled.div(
|
|
14044
|
+
var AcceptBtn = styled(LoaderButton)(templateObject_2$a || (templateObject_2$a = __makeTemplateObject(["\n margin-left: auto;\n"], ["\n margin-left: auto;\n"])));
|
|
14045
|
+
var SignaturePadContentContainer = styled.div(templateObject_3$9 || (templateObject_3$9 = __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"])));
|
|
14046
|
+
var SignaturePadContentInner = styled.div(templateObject_4$5 || (templateObject_4$5 = __makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n pointer-events: none;\n color: ", ";\n"], ["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n pointer-events: none;\n color: ", ";\n"])), function (props) {
|
|
14041
14047
|
var _a, _b, _c;
|
|
14042
14048
|
return (_c = (_b = (_a = props.theme.signatureCapture) === null || _a === void 0 ? void 0 : _a.canvas) === null || _b === void 0 ? void 0 : _b.emptyTextColor) !== null && _c !== void 0 ? _c : 'black';
|
|
14043
14049
|
});
|
|
14044
|
-
var
|
|
14050
|
+
var SignHereText = styled.div(templateObject_5$4 || (templateObject_5$4 = __makeTemplateObject(["\n position: absolute;\n bottom: 18px;\n left: 0;\n right: 0;\n width: 90%;\n color: black;\n display: flex;\n justify-content: center;\n border-top: 2px solid black;\n margin: 0 auto;\n padding-top: 18px;\n font-size: 18px;\n font-weight: bold;\n pointer-events: none;\n"], ["\n position: absolute;\n bottom: 18px;\n left: 0;\n right: 0;\n width: 90%;\n color: black;\n display: flex;\n justify-content: center;\n border-top: 2px solid black;\n margin: 0 auto;\n padding-top: 18px;\n font-size: 18px;\n font-weight: bold;\n pointer-events: none;\n"])));
|
|
14051
|
+
var templateObject_1$b, templateObject_2$a, templateObject_3$9, templateObject_4$5, templateObject_5$4;
|
|
14045
14052
|
|
|
14046
14053
|
function VideoSignatureGuides(_a) {
|
|
14047
14054
|
var onAcceptBtnClicked = _a.onAcceptBtnClicked,
|
|
@@ -14058,12 +14065,29 @@ function VideoSignatureGuides(_a) {
|
|
|
14058
14065
|
headTrackingSatisfied = _e === void 0 ? true : _e,
|
|
14059
14066
|
_f = _a.classNames,
|
|
14060
14067
|
classNames = _f === void 0 ? {} : _f,
|
|
14061
|
-
verbiage = _a.verbiage
|
|
14068
|
+
verbiage = _a.verbiage,
|
|
14069
|
+
guideToDisplay = _a.guideToDisplay;
|
|
14070
|
+
var _g = useState(guideToDisplay ? 'face' : 'both'),
|
|
14071
|
+
mode = _g[0],
|
|
14072
|
+
setMode = _g[1];
|
|
14073
|
+
useEffect(function () {
|
|
14074
|
+
var delayedTransition = setTimeout(function () {
|
|
14075
|
+
if (guideToDisplay) setMode(guideToDisplay);
|
|
14076
|
+
}, 2000);
|
|
14077
|
+
return function () {
|
|
14078
|
+
return clearTimeout(delayedTransition);
|
|
14079
|
+
};
|
|
14080
|
+
}, [guideToDisplay]);
|
|
14062
14081
|
return /*#__PURE__*/React__default.createElement(Container$3, {
|
|
14063
14082
|
className: classNames.container
|
|
14064
14083
|
}, /*#__PURE__*/React__default.createElement(Inner$1, {
|
|
14065
14084
|
className: classNames.inner
|
|
14066
14085
|
}, /*#__PURE__*/React__default.createElement(FaceGuideContainer$1, {
|
|
14086
|
+
style: {
|
|
14087
|
+
opacity: mode === 'both' || mode === 'face' ? 1 : 0,
|
|
14088
|
+
transitionDelay: '2s',
|
|
14089
|
+
transition: 'opacity 500ms ease-in-out'
|
|
14090
|
+
},
|
|
14067
14091
|
className: classNames.faceGuideContainer
|
|
14068
14092
|
}, /*#__PURE__*/React__default.createElement(StyledSelfieCaptureAnimatedMask, {
|
|
14069
14093
|
className: classNames.faceGuide,
|
|
@@ -14071,7 +14095,14 @@ function VideoSignatureGuides(_a) {
|
|
|
14071
14095
|
borderWidth: faceGuideBorderWidth,
|
|
14072
14096
|
borderColor: faceGuideBorderColor,
|
|
14073
14097
|
verticalAlign: "bottom"
|
|
14074
|
-
})), /*#__PURE__*/React__default.createElement(
|
|
14098
|
+
})), /*#__PURE__*/React__default.createElement(SignaturePadContainer, {
|
|
14099
|
+
style: {
|
|
14100
|
+
opacity: mode === 'both' || mode === 'signature' ? 1 : 0,
|
|
14101
|
+
transitionDelay: '2s',
|
|
14102
|
+
transition: 'opacity 500ms ease-in-out'
|
|
14103
|
+
},
|
|
14104
|
+
className: classNames.signaturePadContainer
|
|
14105
|
+
}, /*#__PURE__*/React__default.createElement(VideoSignaturePad, {
|
|
14075
14106
|
onAcceptBtnClicked: onAcceptBtnClicked,
|
|
14076
14107
|
onClearBtnClicked: onClearBtnClicked,
|
|
14077
14108
|
disabled: requestedAction !== 'CAPTURE_SIGNATURE',
|
|
@@ -14079,7 +14110,7 @@ function VideoSignatureGuides(_a) {
|
|
|
14079
14110
|
minSignaturePadPoints: minSignaturePadPoints,
|
|
14080
14111
|
classNames: classNames,
|
|
14081
14112
|
verbiage: verbiage
|
|
14082
|
-
})));
|
|
14113
|
+
}))));
|
|
14083
14114
|
}
|
|
14084
14115
|
var Container$3 = styled.div(templateObject_1$a || (templateObject_1$a = __makeTemplateObject(["\n display: flex;\n max-height: 100%;\n position: absolute;\n z-index: 1000;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n font-family: ", ";\n box-sizing: border-box;\n overflow: hidden;\n padding: 40px;\n"], ["\n display: flex;\n max-height: 100%;\n position: absolute;\n z-index: 1000;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n font-family: ", ";\n box-sizing: border-box;\n overflow: hidden;\n padding: 40px;\n"])), function (props) {
|
|
14085
14116
|
var _a;
|
|
@@ -14088,7 +14119,8 @@ var Container$3 = styled.div(templateObject_1$a || (templateObject_1$a = __makeT
|
|
|
14088
14119
|
var Inner$1 = styled.div(templateObject_2$9 || (templateObject_2$9 = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n max-height: 1280px;\n display: flex;\n margin: auto;\n align-items: center;\n flex-direction: column;\n"], ["\n width: 100%;\n height: 100%;\n max-height: 1280px;\n display: flex;\n margin: auto;\n align-items: center;\n flex-direction: column;\n"])));
|
|
14089
14120
|
var FaceGuideContainer$1 = styled.div(templateObject_3$8 || (templateObject_3$8 = __makeTemplateObject(["\n position: relative;\n height: 50%;\n"], ["\n position: relative;\n height: 50%;\n"])));
|
|
14090
14121
|
var StyledSelfieCaptureAnimatedMask = styled(SelfieCaptureAnimatedMaskWithStatus)(templateObject_4$4 || (templateObject_4$4 = __makeTemplateObject(["\n max-width: 100%;\n height: 100%;\n"], ["\n max-width: 100%;\n height: 100%;\n"])));
|
|
14091
|
-
var
|
|
14122
|
+
var SignaturePadContainer = styled.div(templateObject_5$3 || (templateObject_5$3 = __makeTemplateObject(["\n position: relative;\n max-width: 100%;\n height: 50%;\n aspect-ratio: 2;\n"], ["\n position: relative;\n max-width: 100%;\n height: 50%;\n aspect-ratio: 2;\n"])));
|
|
14123
|
+
var templateObject_1$a, templateObject_2$9, templateObject_3$8, templateObject_4$4, templateObject_5$3;
|
|
14092
14124
|
|
|
14093
14125
|
var DEFAULT_MIN_SIGNATURE_PAD_POINTS = 10;
|
|
14094
14126
|
var DEFAULT_HEAD_TRACKING_BOUNDARY_PERCENTAGE = 0.01;
|
|
@@ -14530,37 +14562,39 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
|
|
|
14530
14562
|
allowManualSelfieCaptureOnLoadingError = _m === void 0 ? false : _m,
|
|
14531
14563
|
faceLivenessProps = _a.faceLivenessProps,
|
|
14532
14564
|
guidesComponent = _a.guidesComponent,
|
|
14533
|
-
_o = _a.
|
|
14534
|
-
|
|
14535
|
-
_p = _a.
|
|
14536
|
-
|
|
14537
|
-
_q = _a.
|
|
14538
|
-
|
|
14539
|
-
_r = _a.
|
|
14540
|
-
|
|
14541
|
-
_s = _a.
|
|
14542
|
-
|
|
14543
|
-
|
|
14544
|
-
|
|
14545
|
-
|
|
14546
|
-
|
|
14547
|
-
|
|
14548
|
-
|
|
14549
|
-
|
|
14565
|
+
_o = _a.showFaceGuideThenSignaturePad,
|
|
14566
|
+
showFaceGuideThenSignaturePad = _o === void 0 ? false : _o,
|
|
14567
|
+
_p = _a.assets,
|
|
14568
|
+
assets = _p === void 0 ? {} : _p,
|
|
14569
|
+
_q = _a.classNames,
|
|
14570
|
+
classNames = _q === void 0 ? {} : _q,
|
|
14571
|
+
_r = _a.colors,
|
|
14572
|
+
colors = _r === void 0 ? {} : _r,
|
|
14573
|
+
_s = _a.verbiage,
|
|
14574
|
+
verbiage = _s === void 0 ? {} : _s,
|
|
14575
|
+
_t = _a.debugMode,
|
|
14576
|
+
debugMode = _t === void 0 ? false : _t;
|
|
14577
|
+
var _u = useSubmissionContext(),
|
|
14578
|
+
selfieImage = _u.selfieImage,
|
|
14579
|
+
setSelfieImage = _u.setSelfieImage,
|
|
14580
|
+
setSignatureData = _u.setSignatureData,
|
|
14581
|
+
setSignatureVideoUrl = _u.setSignatureVideoUrl,
|
|
14582
|
+
logSelfieCaptureAttempt = _u.logSelfieCaptureAttempt,
|
|
14583
|
+
uploadDocument = _u.uploadDocument;
|
|
14550
14584
|
var cameraAccessDenied = useCameraStore(useShallow(function (state) {
|
|
14551
14585
|
return {
|
|
14552
14586
|
cameraAccessDenied: state.cameraAccessDenied
|
|
14553
14587
|
};
|
|
14554
14588
|
})).cameraAccessDenied;
|
|
14555
|
-
var
|
|
14556
|
-
captureState =
|
|
14557
|
-
setCaptureState =
|
|
14589
|
+
var _v = useState(skipLivenessValidation ? 'CAPTURING_SELFIE' : 'CHECKING_LIVENESS'),
|
|
14590
|
+
captureState = _v[0],
|
|
14591
|
+
setCaptureState = _v[1];
|
|
14558
14592
|
var operationStartedAt = useRef();
|
|
14559
14593
|
var captureStartedAt = useRef();
|
|
14560
14594
|
var captureEndedAt = useRef();
|
|
14561
|
-
var
|
|
14562
|
-
start =
|
|
14563
|
-
stop =
|
|
14595
|
+
var _w = useSelfieGuidanceModelsContext(),
|
|
14596
|
+
start = _w.start,
|
|
14597
|
+
stop = _w.stop;
|
|
14564
14598
|
useEffect(function () {
|
|
14565
14599
|
operationStartedAt.current = new Date();
|
|
14566
14600
|
}, []);
|
|
@@ -14610,17 +14644,17 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
|
|
|
14610
14644
|
setCaptureState('SUCCESS');
|
|
14611
14645
|
onVideoCaptured === null || onVideoCaptured === void 0 ? void 0 : onVideoCaptured(videoData, signatureData, signatureImageData);
|
|
14612
14646
|
}, [onVideoCaptured, setSignatureData, setSignatureVideoUrl]);
|
|
14613
|
-
var
|
|
14614
|
-
showLoadingOverlay =
|
|
14615
|
-
setShowLoadingOverlay =
|
|
14647
|
+
var _x = useState(true),
|
|
14648
|
+
showLoadingOverlay = _x[0],
|
|
14649
|
+
setShowLoadingOverlay = _x[1];
|
|
14616
14650
|
var onSignatureCaptureFacesNotDetected = useCallback(function () {
|
|
14617
14651
|
setShowLoadingOverlay(false);
|
|
14618
14652
|
setCaptureState(skipLivenessValidation ? 'CAPTURING_SELFIE' : 'CHECKING_LIVENESS');
|
|
14619
14653
|
useVideoSignatureStore.getState().clearRecordedData();
|
|
14620
14654
|
}, [skipLivenessValidation]);
|
|
14621
|
-
var
|
|
14622
|
-
attempt =
|
|
14623
|
-
setAttempt =
|
|
14655
|
+
var _y = useState(0),
|
|
14656
|
+
attempt = _y[0],
|
|
14657
|
+
setAttempt = _y[1];
|
|
14624
14658
|
var onRetry = useCallback(function () {
|
|
14625
14659
|
onRetryClicked === null || onRetryClicked === void 0 ? void 0 : onRetryClicked();
|
|
14626
14660
|
setAttempt(function (n) {
|
|
@@ -14651,7 +14685,8 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
|
|
|
14651
14685
|
verbiage: verbiage === null || verbiage === void 0 ? void 0 : verbiage.guides,
|
|
14652
14686
|
restartVideoOnSignaturePadCleared: restartVideoOnSignaturePadCleared,
|
|
14653
14687
|
captureAudio: captureAudio,
|
|
14654
|
-
component: guidesComponent
|
|
14688
|
+
component: guidesComponent,
|
|
14689
|
+
showFaceGuideThenSignaturePad: showFaceGuideThenSignaturePad
|
|
14655
14690
|
}));
|
|
14656
14691
|
}, [captureAudio, classNames === null || classNames === void 0 ? void 0 : classNames.guides, guidesComponent, restartVideoOnSignaturePadCleared, verbiage === null || verbiage === void 0 ? void 0 : verbiage.guides]);
|
|
14657
14692
|
var onExitAfterFailureProp = faceLivenessProps === null || faceLivenessProps === void 0 ? void 0 : faceLivenessProps.onExitAfterFailure;
|
|
@@ -14760,7 +14795,9 @@ function VideoSignatureWizardGuides(_a) {
|
|
|
14760
14795
|
_c = _a.captureAudio,
|
|
14761
14796
|
captureAudio = _c === void 0 ? false : _c,
|
|
14762
14797
|
component = _a.component,
|
|
14763
|
-
|
|
14798
|
+
_d = _a.showFaceGuideThenSignaturePad,
|
|
14799
|
+
showFaceGuideThenSignaturePad = _d === void 0 ? false : _d,
|
|
14800
|
+
props = __rest(_a, ["status", "restartVideoOnSignaturePadCleared", "captureAudio", "component", "showFaceGuideThenSignaturePad"]);
|
|
14764
14801
|
var Component = component !== null && component !== void 0 ? component : VideoSignatureGuides;
|
|
14765
14802
|
var onAcceptBtnClicked = useCallback(function () {
|
|
14766
14803
|
var signaturePad = useVideoSignatureStore.getState().signaturePad;
|
|
@@ -14792,7 +14829,8 @@ function VideoSignatureWizardGuides(_a) {
|
|
|
14792
14829
|
faceGuideStatus: status,
|
|
14793
14830
|
onAcceptBtnClicked: onAcceptBtnClicked,
|
|
14794
14831
|
onClearBtnClicked: onClearBtnClicked,
|
|
14795
|
-
requestedAction: status === 'success' ? 'CAPTURE_SIGNATURE' : 'VERIFY_LIVENESS'
|
|
14832
|
+
requestedAction: status === 'success' ? 'CAPTURE_SIGNATURE' : 'VERIFY_LIVENESS',
|
|
14833
|
+
guideToDisplay: !showFaceGuideThenSignaturePad ? undefined : status === 'success' ? 'signature' : 'face'
|
|
14796
14834
|
}));
|
|
14797
14835
|
}
|
|
14798
14836
|
var VideoSignatureWizardWithProviders = function VideoSignatureWizardWithProviders(props) {
|
|
@@ -18573,15 +18611,17 @@ var SignatureKYC = function SignatureKYC(_a) {
|
|
|
18573
18611
|
_p = _a.allowManualSelfieCaptureOnLoadingError,
|
|
18574
18612
|
allowManualSelfieCaptureOnLoadingError = _p === void 0 ? false : _p,
|
|
18575
18613
|
guidesComponent = _a.guidesComponent,
|
|
18576
|
-
_q = _a.
|
|
18577
|
-
|
|
18614
|
+
_q = _a.showFaceGuideThenSignaturePad,
|
|
18615
|
+
showFaceGuideThenSignaturePad = _q === void 0 ? false : _q,
|
|
18616
|
+
_r = _a.theme,
|
|
18617
|
+
theme = _r === void 0 ? 'default' : _r,
|
|
18578
18618
|
classNames = _a.classNames,
|
|
18579
18619
|
colors = _a.colors,
|
|
18580
18620
|
verbiage = _a.verbiage,
|
|
18581
18621
|
geolocationEnabled = _a.geolocationEnabled,
|
|
18582
18622
|
geolocationRequired = _a.geolocationRequired,
|
|
18583
|
-
|
|
18584
|
-
debugMode =
|
|
18623
|
+
_s = _a.debugMode,
|
|
18624
|
+
debugMode = _s === void 0 ? false : _s;
|
|
18585
18625
|
useLanguage(lang);
|
|
18586
18626
|
useDebugLogging(debugMode);
|
|
18587
18627
|
return /*#__PURE__*/React__default.createElement(AuthProvider, {
|
|
@@ -18642,6 +18682,7 @@ var SignatureKYC = function SignatureKYC(_a) {
|
|
|
18642
18682
|
skipLivenessValidation: skipLivenessValidation,
|
|
18643
18683
|
allowManualSelfieCaptureOnLoadingError: allowManualSelfieCaptureOnLoadingError,
|
|
18644
18684
|
guidesComponent: guidesComponent,
|
|
18685
|
+
showFaceGuideThenSignaturePad: showFaceGuideThenSignaturePad,
|
|
18645
18686
|
classNames: classNames,
|
|
18646
18687
|
colors: colors,
|
|
18647
18688
|
debugMode: debugMode,
|
|
@@ -18649,7 +18690,7 @@ var SignatureKYC = function SignatureKYC(_a) {
|
|
|
18649
18690
|
onModelError: onModelError,
|
|
18650
18691
|
onUserCancel: onUserCancel
|
|
18651
18692
|
};
|
|
18652
|
-
}, [onLoadingStarted, onLoadingProgress, onLoadingCompleted, onLoadingFailed, onSelfieCaptured, customOverlayContent, onLoadingOverlayDismissed, loadingOverlayMode, skipSuccessScreen, captureAudio, minSignaturePadPoints, headTrackingDisabled, headTrackingBoundaryPercentage, headTrackingBoundaryType, modelLoadTimeoutMs, faceLivenessProps, allowSignatureAfterLivenessCheckFailure, restartVideoOnSignaturePadCleared, skipLivenessValidation, allowManualSelfieCaptureOnLoadingError, guidesComponent, classNames, colors, debugMode, verbiage, onModelError, onUserCancel])
|
|
18693
|
+
}, [onLoadingStarted, onLoadingProgress, onLoadingCompleted, onLoadingFailed, onSelfieCaptured, customOverlayContent, onLoadingOverlayDismissed, loadingOverlayMode, skipSuccessScreen, captureAudio, minSignaturePadPoints, headTrackingDisabled, headTrackingBoundaryPercentage, headTrackingBoundaryType, modelLoadTimeoutMs, faceLivenessProps, allowSignatureAfterLivenessCheckFailure, restartVideoOnSignaturePadCleared, skipLivenessValidation, allowManualSelfieCaptureOnLoadingError, guidesComponent, showFaceGuideThenSignaturePad, classNames, colors, debugMode, verbiage, onModelError, onUserCancel])
|
|
18653
18694
|
})))));
|
|
18654
18695
|
};
|
|
18655
18696
|
|