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
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
212
212
|
};
|
|
213
213
|
|
|
214
|
-
var webSdkVersion = '2.3.
|
|
214
|
+
var webSdkVersion = '2.3.76';
|
|
215
215
|
|
|
216
216
|
function getPlatform() {
|
|
217
217
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -500,7 +500,7 @@
|
|
|
500
500
|
});
|
|
501
501
|
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"])));
|
|
502
502
|
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"])));
|
|
503
|
-
var GrayOverlayContainer = styled(OverlayContainer)(templateObject_5$
|
|
503
|
+
var GrayOverlayContainer = styled(OverlayContainer)(templateObject_5$f || (templateObject_5$f = __makeTemplateObject(["\n background: #f7f6fb;\n"], ["\n background: #f7f6fb;\n"])));
|
|
504
504
|
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"])));
|
|
505
505
|
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"])));
|
|
506
506
|
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) {
|
|
@@ -540,7 +540,7 @@
|
|
|
540
540
|
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"])));
|
|
541
541
|
var LoadingOverlayCustomLoadingGraphic = styled.img(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n transform-style: preserve-3d;\n"], ["\n transform-style: preserve-3d;\n"])));
|
|
542
542
|
var LoadingOverlayContinueButtonContainer = styled.div(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
543
|
-
var templateObject_1$N, templateObject_2$G, templateObject_3$t, templateObject_4$n, templateObject_5$
|
|
543
|
+
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;
|
|
544
544
|
|
|
545
545
|
function _extends() {
|
|
546
546
|
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
@@ -12814,7 +12814,8 @@
|
|
|
12814
12814
|
'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',
|
|
12815
12815
|
'Camera tampering detected': 'Se ha detectado un intento de manipulación de la cámara',
|
|
12816
12816
|
"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.',
|
|
12817
|
-
'Position your face in the circle and click to capture.': 'Enfoca tu cara en el círculo y da clic en capturar.'
|
|
12817
|
+
'Position your face in the circle and click to capture.': 'Enfoca tu cara en el círculo y da clic en capturar.',
|
|
12818
|
+
'Sign here': 'Firma aquí'
|
|
12818
12819
|
};
|
|
12819
12820
|
|
|
12820
12821
|
var de = {
|
|
@@ -12944,7 +12945,8 @@
|
|
|
12944
12945
|
'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.',
|
|
12945
12946
|
'Camera tampering detected': 'Kamera manipuliert',
|
|
12946
12947
|
"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.',
|
|
12947
|
-
'Position your face in the circle and click to capture.': 'Stellen Sie Ihr Gesicht im Kreis ein und klicken Sie auf Erfassen.'
|
|
12948
|
+
'Position your face in the circle and click to capture.': 'Stellen Sie Ihr Gesicht im Kreis ein und klicken Sie auf Erfassen.',
|
|
12949
|
+
'Sign here': 'Hier unterschreiben'
|
|
12948
12950
|
};
|
|
12949
12951
|
|
|
12950
12952
|
var fr = {
|
|
@@ -13074,7 +13076,8 @@
|
|
|
13074
13076
|
'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.",
|
|
13075
13077
|
'Camera tampering detected': 'Manipulation de la caméra détectée',
|
|
13076
13078
|
"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.',
|
|
13077
|
-
'Position your face in the circle and click to capture.': 'Positionnez votre visage dans le cercle et cliquez pour capturer.'
|
|
13079
|
+
'Position your face in the circle and click to capture.': 'Positionnez votre visage dans le cercle et cliquez pour capturer.',
|
|
13080
|
+
'Sign here': 'Signer ici'
|
|
13078
13081
|
};
|
|
13079
13082
|
|
|
13080
13083
|
var it = {
|
|
@@ -13204,7 +13207,8 @@
|
|
|
13204
13207
|
'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.",
|
|
13205
13208
|
'Camera tampering detected': 'Manipolazione della fotocamera rilevata',
|
|
13206
13209
|
"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.',
|
|
13207
|
-
'Position your face in the circle and click to capture.': 'Posiziona il tuo volto nel cerchio e clicca per acquisire.'
|
|
13210
|
+
'Position your face in the circle and click to capture.': 'Posiziona il tuo volto nel cerchio e clicca per acquisire.',
|
|
13211
|
+
'Sign here': 'Firma qui'
|
|
13208
13212
|
};
|
|
13209
13213
|
|
|
13210
13214
|
var ja = {
|
|
@@ -13334,7 +13338,8 @@
|
|
|
13334
13338
|
'Upload the back of the ID if it is not included in the front image.': '表面画像に裏面が含まれていない場合は、裏面をアップロードしてください。',
|
|
13335
13339
|
'Camera tampering detected': 'カメラの操作が検出されました',
|
|
13336
13340
|
"We're sorry, but it looks like the camera is being tampered with. Please check your device and try again by reloading the page.": 'カメラの操作が検出されました。デバイスを確認し、ページを再読み込みしてください。',
|
|
13337
|
-
'Position your face in the circle and click to capture.': '顔を円の中に合わせてクリックして撮影してください。'
|
|
13341
|
+
'Position your face in the circle and click to capture.': '顔を円の中に合わせてクリックして撮影してください。',
|
|
13342
|
+
'Sign here': 'ここに署名'
|
|
13338
13343
|
};
|
|
13339
13344
|
|
|
13340
13345
|
var pt = {
|
|
@@ -13464,7 +13469,8 @@
|
|
|
13464
13469
|
'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.',
|
|
13465
13470
|
'Camera tampering detected': 'Manipulação da câmera detectada',
|
|
13466
13471
|
"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.',
|
|
13467
|
-
'Position your face in the circle and click to capture.': 'Posicione seu rosto no círculo e clique para capturar.'
|
|
13472
|
+
'Position your face in the circle and click to capture.': 'Posicione seu rosto no círculo e clique para capturar.',
|
|
13473
|
+
'Sign here': 'Assinar aqui'
|
|
13468
13474
|
};
|
|
13469
13475
|
|
|
13470
13476
|
var ru = {
|
|
@@ -13594,7 +13600,8 @@
|
|
|
13594
13600
|
'Upload the back of the ID if it is not included in the front image.': 'Загрузите заднюю сторону удостоверения, если она не включена в изображение передней стороны.',
|
|
13595
13601
|
'Camera tampering detected': 'Обнаружена манипуляция с камерой',
|
|
13596
13602
|
"We're sorry, but it looks like the camera is being tampered with. Please check your device and try again by reloading the page.": 'К сожалению, кажется, что камера подвергается манипуляциям. Пожалуйста, проверьте свое устройство и попробуйте снова, перезагрузив страницу.',
|
|
13597
|
-
'Position your face in the circle and click to capture.': 'Поместите свое лицо в круг и нажмите для съемки.'
|
|
13603
|
+
'Position your face in the circle and click to capture.': 'Поместите свое лицо в круг и нажмите для съемки.',
|
|
13604
|
+
'Sign here': 'Подписать здесь'
|
|
13598
13605
|
};
|
|
13599
13606
|
|
|
13600
13607
|
var zh = {
|
|
@@ -13724,7 +13731,8 @@
|
|
|
13724
13731
|
'Upload the back of the ID if it is not included in the front image.': '如果正面照片没有包含身份证背面,请上传背面照片。',
|
|
13725
13732
|
'Camera tampering detected': '檢測到相機被篡改',
|
|
13726
13733
|
"We're sorry, but it looks like the camera is being tampered with. Please check your device and try again by reloading the page.": '很抱歉,看起來相機被篡改了。請檢查您的設備並重新載入頁面。',
|
|
13727
|
-
'Position your face in the circle and click to capture.': '將您的臉部置於圓圈中,點擊拍攝。'
|
|
13734
|
+
'Position your face in the circle and click to capture.': '將您的臉部置於圓圈中,點擊拍攝。',
|
|
13735
|
+
'Sign here': '在此簽名'
|
|
13728
13736
|
};
|
|
13729
13737
|
|
|
13730
13738
|
function renderVerbiage(verbiage) {
|
|
@@ -15880,8 +15888,8 @@
|
|
|
15880
15888
|
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"])));
|
|
15881
15889
|
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"])));
|
|
15882
15890
|
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"])));
|
|
15883
|
-
var Button$1 = styled(LoaderButton)(templateObject_5$
|
|
15884
|
-
var templateObject_1$J, templateObject_2$D, templateObject_3$r, templateObject_4$l, templateObject_5$
|
|
15891
|
+
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"])));
|
|
15892
|
+
var templateObject_1$J, templateObject_2$D, templateObject_3$r, templateObject_4$l, templateObject_5$e;
|
|
15885
15893
|
|
|
15886
15894
|
// This is a simplified version of https://github.com/ZeeCoder/use-resize-observer.
|
|
15887
15895
|
// We have removed all options and made it compliant with React Compiler/React 19.
|
|
@@ -17027,7 +17035,7 @@
|
|
|
17027
17035
|
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"])));
|
|
17028
17036
|
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"])));
|
|
17029
17037
|
var ContinuityCameraCheckbox$1 = styled.input(templateObject_4$i || (templateObject_4$i = __makeTemplateObject(["\n margin: 0;\n"], ["\n margin: 0;\n"])));
|
|
17030
|
-
var ButtonsRow$1 = styled(LoadingOverlayButtonsRow)(templateObject_5$
|
|
17038
|
+
var ButtonsRow$1 = styled(LoadingOverlayButtonsRow)(templateObject_5$d || (templateObject_5$d = __makeTemplateObject(["\n color: ", ";\n ", "\n"], ["\n color: ", ";\n ", "\n"])), function (props) {
|
|
17031
17039
|
var _a, _b, _c, _d;
|
|
17032
17040
|
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';
|
|
17033
17041
|
}, function (props) {
|
|
@@ -17064,7 +17072,7 @@
|
|
|
17064
17072
|
var _a, _b, _c, _d;
|
|
17065
17073
|
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';
|
|
17066
17074
|
});
|
|
17067
|
-
var templateObject_1$F, templateObject_2$A, templateObject_3$o, templateObject_4$i, templateObject_5$
|
|
17075
|
+
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;
|
|
17068
17076
|
|
|
17069
17077
|
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"])));
|
|
17070
17078
|
var ContinuityCameraCheckbox = styled.input(templateObject_2$z || (templateObject_2$z = __makeTemplateObject(["\n margin-right: 8px;\n"], ["\n margin-right: 8px;\n"])));
|
|
@@ -17314,9 +17322,9 @@
|
|
|
17314
17322
|
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"])));
|
|
17315
17323
|
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"])));
|
|
17316
17324
|
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"])));
|
|
17317
|
-
var StyledImage = styled(CapturedDocumentImg)(templateObject_5$
|
|
17325
|
+
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"])));
|
|
17318
17326
|
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"])));
|
|
17319
|
-
var templateObject_1$C, templateObject_2$x, templateObject_3$n, templateObject_4$h, templateObject_5$
|
|
17327
|
+
var templateObject_1$C, templateObject_2$x, templateObject_3$n, templateObject_4$h, templateObject_5$c, templateObject_6$7;
|
|
17320
17328
|
|
|
17321
17329
|
function useShowSuccessScreen(skipSuccessScreen, successScreenReady, onDoneCallback) {
|
|
17322
17330
|
var _this = this;
|
|
@@ -17525,7 +17533,7 @@
|
|
|
17525
17533
|
}
|
|
17526
17534
|
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);
|
|
17527
17535
|
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"])));
|
|
17528
|
-
var SvgOverlay = styled.svg(templateObject_5$
|
|
17536
|
+
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"])));
|
|
17529
17537
|
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) {
|
|
17530
17538
|
var _a;
|
|
17531
17539
|
return (_a = props.$speed) !== null && _a !== void 0 ? _a : '3s';
|
|
@@ -17533,7 +17541,7 @@
|
|
|
17533
17541
|
var _a;
|
|
17534
17542
|
return (_a = props.$fillMode) !== null && _a !== void 0 ? _a : 'forwards';
|
|
17535
17543
|
});
|
|
17536
|
-
var templateObject_1$B, templateObject_2$w, templateObject_3$m, templateObject_4$g, templateObject_5$
|
|
17544
|
+
var templateObject_1$B, templateObject_2$w, templateObject_3$m, templateObject_4$g, templateObject_5$b, templateObject_6$6;
|
|
17537
17545
|
|
|
17538
17546
|
var defaultIdCaptureGuideImages = {
|
|
17539
17547
|
portrait: {
|
|
@@ -18032,7 +18040,7 @@
|
|
|
18032
18040
|
}, function (props) {
|
|
18033
18041
|
return props.$minHeight ? "min-height: ".concat(props.$minHeight, "px;") : "";
|
|
18034
18042
|
});
|
|
18035
|
-
var Spacer = styled(GuideRegion)(templateObject_5$
|
|
18043
|
+
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"])));
|
|
18036
18044
|
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) {
|
|
18037
18045
|
return props.$minWidth ? "min-width: ".concat(props.$minWidth, "px;") : "";
|
|
18038
18046
|
}, function (props) {
|
|
@@ -18048,7 +18056,7 @@
|
|
|
18048
18056
|
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) {
|
|
18049
18057
|
return props.$isLandscape ? 'height: 100%;' : 'width: 90%;';
|
|
18050
18058
|
});
|
|
18051
|
-
var templateObject_1$y, templateObject_2$u, templateObject_3$l, templateObject_4$f, templateObject_5$
|
|
18059
|
+
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;
|
|
18052
18060
|
|
|
18053
18061
|
var IdCaptureFitGuide = function IdCaptureFitGuide(_a) {
|
|
18054
18062
|
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
@@ -18912,13 +18920,13 @@
|
|
|
18912
18920
|
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) {
|
|
18913
18921
|
return props.$maskColor;
|
|
18914
18922
|
});
|
|
18915
|
-
var Instructions = styled.div(templateObject_5$
|
|
18923
|
+
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) {
|
|
18916
18924
|
var _a, _b, _c;
|
|
18917
18925
|
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';
|
|
18918
18926
|
});
|
|
18919
18927
|
var StyledButtonsRow$8 = styled(ButtonsRow$2)(templateObject_6$4 || (templateObject_6$4 = __makeTemplateObject(["\n padding-top: 20px;\n"], ["\n padding-top: 20px;\n"])));
|
|
18920
18928
|
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"])));
|
|
18921
|
-
var templateObject_1$r, templateObject_2$p, templateObject_3$j, templateObject_4$d, templateObject_5$
|
|
18929
|
+
var templateObject_1$r, templateObject_2$p, templateObject_3$j, templateObject_4$d, templateObject_5$9, templateObject_6$4, templateObject_7$2;
|
|
18922
18930
|
|
|
18923
18931
|
var DocumentCaptureWizard = function DocumentCaptureWizard(_a) {
|
|
18924
18932
|
var onSuccess = _a.onSuccess,
|
|
@@ -19193,9 +19201,9 @@
|
|
|
19193
19201
|
var Heading$8 = styled.h3(templateObject_2$o || (templateObject_2$o = __makeTemplateObject(["\n margin-bottom: 8px;\n"], ["\n margin-bottom: 8px;\n"])));
|
|
19194
19202
|
var Description$3 = styled.p(templateObject_3$i || (templateObject_3$i = __makeTemplateObject(["\n margin-bottom: 8px;\n"], ["\n margin-bottom: 8px;\n"])));
|
|
19195
19203
|
var Instruction = styled.p(templateObject_4$c || (templateObject_4$c = __makeTemplateObject(["\n font-weight: bold;\n"], ["\n font-weight: bold;\n"])));
|
|
19196
|
-
var ImageCol = styled.div(templateObject_5$
|
|
19204
|
+
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"])));
|
|
19197
19205
|
var StyledButtonsRow$7 = styled(ButtonsRow$2)(templateObject_6$3 || (templateObject_6$3 = __makeTemplateObject(["\n margin-top: 32px;\n"], ["\n margin-top: 32px;\n"])));
|
|
19198
|
-
var templateObject_1$q, templateObject_2$o, templateObject_3$i, templateObject_4$c, templateObject_5$
|
|
19206
|
+
var templateObject_1$q, templateObject_2$o, templateObject_3$i, templateObject_4$c, templateObject_5$8, templateObject_6$3;
|
|
19199
19207
|
|
|
19200
19208
|
function ScalingCameraFeed() {
|
|
19201
19209
|
var _a = useIdCaptureStore(),
|
|
@@ -19554,7 +19562,7 @@
|
|
|
19554
19562
|
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"])));
|
|
19555
19563
|
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"])));
|
|
19556
19564
|
var ScreenPanelHeading = styled.h3(templateObject_4$b || (templateObject_4$b = __makeTemplateObject(["\n margin: 0 0 30px;\n"], ["\n margin: 0 0 30px;\n"])));
|
|
19557
|
-
var ScreenActionsBar = styled.div(templateObject_5$
|
|
19565
|
+
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"])));
|
|
19558
19566
|
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"])));
|
|
19559
19567
|
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"])));
|
|
19560
19568
|
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"])));
|
|
@@ -19836,7 +19844,7 @@
|
|
|
19836
19844
|
} while (Math.round(Math.abs(bytes) * r) / r >= thresh && u < units.length - 1);
|
|
19837
19845
|
return bytes.toFixed(dp) + ' ' + units[u];
|
|
19838
19846
|
}
|
|
19839
|
-
var templateObject_1$p, templateObject_2$n, templateObject_3$h, templateObject_4$b, templateObject_5$
|
|
19847
|
+
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;
|
|
19840
19848
|
|
|
19841
19849
|
var lastDocumentDetectedAtDefaults = {
|
|
19842
19850
|
idCardFront: null,
|
|
@@ -21221,8 +21229,8 @@
|
|
|
21221
21229
|
var Heading$7 = styled.h3(templateObject_2$k || (templateObject_2$k = __makeTemplateObject(["\n margin-bottom: 8px;\n"], ["\n margin-bottom: 8px;\n"])));
|
|
21222
21230
|
var Description$2 = styled.p(templateObject_3$f || (templateObject_3$f = __makeTemplateObject(["\n margin-bottom: 8px;\n"], ["\n margin-bottom: 8px;\n"])));
|
|
21223
21231
|
var ImageContainer$6 = styled(OverlayImageContainer)(templateObject_4$a || (templateObject_4$a = __makeTemplateObject(["\n margin-top: 32px;\n"], ["\n margin-top: 32px;\n"])));
|
|
21224
|
-
var StyledButtonsRow$6 = styled(ButtonsRow$2)(templateObject_5$
|
|
21225
|
-
var templateObject_1$m, templateObject_2$k, templateObject_3$f, templateObject_4$a, templateObject_5$
|
|
21232
|
+
var StyledButtonsRow$6 = styled(ButtonsRow$2)(templateObject_5$6 || (templateObject_5$6 = __makeTemplateObject(["\n margin-top: 32px;\n"], ["\n margin-top: 32px;\n"])));
|
|
21233
|
+
var templateObject_1$m, templateObject_2$k, templateObject_3$f, templateObject_4$a, templateObject_5$6;
|
|
21226
21234
|
|
|
21227
21235
|
var initialState$4 = {
|
|
21228
21236
|
busy: false,
|
|
@@ -22189,7 +22197,7 @@
|
|
|
22189
22197
|
var _a, _b, _c, _d;
|
|
22190
22198
|
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)';
|
|
22191
22199
|
});
|
|
22192
|
-
var ContinueButton = styled(LoaderButton)(templateObject_5$
|
|
22200
|
+
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) {
|
|
22193
22201
|
var _a, _b, _c, _d, _e, _f;
|
|
22194
22202
|
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, ";") : '';
|
|
22195
22203
|
}, function (props) {
|
|
@@ -22208,7 +22216,7 @@
|
|
|
22208
22216
|
var _a, _b, _c, _d;
|
|
22209
22217
|
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';
|
|
22210
22218
|
});
|
|
22211
|
-
var templateObject_1$g, templateObject_2$e, templateObject_3$c, templateObject_4$8, templateObject_5$
|
|
22219
|
+
var templateObject_1$g, templateObject_2$e, templateObject_3$c, templateObject_4$8, templateObject_5$5;
|
|
22212
22220
|
|
|
22213
22221
|
var components = {
|
|
22214
22222
|
"default": SelfieCaptureLoadingOverlayDefault,
|
|
@@ -24055,11 +24063,10 @@
|
|
|
24055
24063
|
signaturePadEmptyText: '',
|
|
24056
24064
|
headTrackingUnsatisfiedText: '',
|
|
24057
24065
|
clearSignatureBtnText: 'Clear',
|
|
24058
|
-
acceptSignatureBtnText: 'Accept'
|
|
24066
|
+
acceptSignatureBtnText: 'Accept',
|
|
24067
|
+
signHereText: 'Sign here'
|
|
24059
24068
|
});
|
|
24060
|
-
return /*#__PURE__*/React.createElement(
|
|
24061
|
-
className: classNames.signaturePadContainer
|
|
24062
|
-
}, /*#__PURE__*/React.createElement(SignatureCanvasContainer, {
|
|
24069
|
+
return /*#__PURE__*/React.createElement(SignatureCanvasContainer, {
|
|
24063
24070
|
className: clsx(classNames.signatureCanvasContainer, disabled && classNames.signatureCanvasContainerDisabled),
|
|
24064
24071
|
"$disabled": disabled,
|
|
24065
24072
|
"$headTrackingUnsatisfied": !headTrackingSatisfied
|
|
@@ -24095,7 +24102,7 @@
|
|
|
24095
24102
|
}
|
|
24096
24103
|
}, /*#__PURE__*/React.createElement(SignaturePadContentInner, {
|
|
24097
24104
|
className: classNames.emptyContentInner
|
|
24098
|
-
}, verbiage.signaturePadEmptyText)))), /*#__PURE__*/React.createElement(SignatureButtonsContainer, {
|
|
24105
|
+
}, verbiage.signaturePadEmptyText))), /*#__PURE__*/React.createElement(SignHereText, null, verbiage.signHereText)), /*#__PURE__*/React.createElement(SignatureButtonsContainer, {
|
|
24099
24106
|
className: classNames.signatureButtonsRow
|
|
24100
24107
|
}, /*#__PURE__*/React.createElement(LoaderButton, {
|
|
24101
24108
|
variant: "secondary",
|
|
@@ -24109,21 +24116,21 @@
|
|
|
24109
24116
|
disabled: !canSubmit,
|
|
24110
24117
|
onClick: onAcceptBtnClicked,
|
|
24111
24118
|
finished: true
|
|
24112
|
-
}, verbiage.acceptSignatureBtnText)))
|
|
24119
|
+
}, verbiage.acceptSignatureBtnText)));
|
|
24113
24120
|
}
|
|
24114
|
-
var
|
|
24115
|
-
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) {
|
|
24121
|
+
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) {
|
|
24116
24122
|
return props.$disabled ? 'opacity: 0.5; pointer-events: none;' : '';
|
|
24117
24123
|
}, function (props) {
|
|
24118
24124
|
return props.$headTrackingUnsatisfied ? 'pointer-events: none;' : '';
|
|
24119
24125
|
});
|
|
24120
|
-
var AcceptBtn = styled(LoaderButton)(
|
|
24121
|
-
var SignaturePadContentContainer = styled.div(
|
|
24122
|
-
var SignaturePadContentInner = styled.div(
|
|
24126
|
+
var AcceptBtn = styled(LoaderButton)(templateObject_2$a || (templateObject_2$a = __makeTemplateObject(["\n margin-left: auto;\n"], ["\n margin-left: auto;\n"])));
|
|
24127
|
+
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"])));
|
|
24128
|
+
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) {
|
|
24123
24129
|
var _a, _b, _c;
|
|
24124
24130
|
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';
|
|
24125
24131
|
});
|
|
24126
|
-
var
|
|
24132
|
+
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"])));
|
|
24133
|
+
var templateObject_1$b, templateObject_2$a, templateObject_3$9, templateObject_4$5, templateObject_5$4;
|
|
24127
24134
|
|
|
24128
24135
|
function VideoSignatureGuides(_a) {
|
|
24129
24136
|
var onAcceptBtnClicked = _a.onAcceptBtnClicked,
|
|
@@ -24140,12 +24147,29 @@
|
|
|
24140
24147
|
headTrackingSatisfied = _e === void 0 ? true : _e,
|
|
24141
24148
|
_f = _a.classNames,
|
|
24142
24149
|
classNames = _f === void 0 ? {} : _f,
|
|
24143
|
-
verbiage = _a.verbiage
|
|
24150
|
+
verbiage = _a.verbiage,
|
|
24151
|
+
guideToDisplay = _a.guideToDisplay;
|
|
24152
|
+
var _g = React.useState(guideToDisplay ? 'face' : 'both'),
|
|
24153
|
+
mode = _g[0],
|
|
24154
|
+
setMode = _g[1];
|
|
24155
|
+
React.useEffect(function () {
|
|
24156
|
+
var delayedTransition = setTimeout(function () {
|
|
24157
|
+
if (guideToDisplay) setMode(guideToDisplay);
|
|
24158
|
+
}, 2000);
|
|
24159
|
+
return function () {
|
|
24160
|
+
return clearTimeout(delayedTransition);
|
|
24161
|
+
};
|
|
24162
|
+
}, [guideToDisplay]);
|
|
24144
24163
|
return /*#__PURE__*/React.createElement(Container$3, {
|
|
24145
24164
|
className: classNames.container
|
|
24146
24165
|
}, /*#__PURE__*/React.createElement(Inner$1, {
|
|
24147
24166
|
className: classNames.inner
|
|
24148
24167
|
}, /*#__PURE__*/React.createElement(FaceGuideContainer$1, {
|
|
24168
|
+
style: {
|
|
24169
|
+
opacity: mode === 'both' || mode === 'face' ? 1 : 0,
|
|
24170
|
+
transitionDelay: '2s',
|
|
24171
|
+
transition: 'opacity 500ms ease-in-out'
|
|
24172
|
+
},
|
|
24149
24173
|
className: classNames.faceGuideContainer
|
|
24150
24174
|
}, /*#__PURE__*/React.createElement(StyledSelfieCaptureAnimatedMask, {
|
|
24151
24175
|
className: classNames.faceGuide,
|
|
@@ -24153,7 +24177,14 @@
|
|
|
24153
24177
|
borderWidth: faceGuideBorderWidth,
|
|
24154
24178
|
borderColor: faceGuideBorderColor,
|
|
24155
24179
|
verticalAlign: "bottom"
|
|
24156
|
-
})), /*#__PURE__*/React.createElement(
|
|
24180
|
+
})), /*#__PURE__*/React.createElement(SignaturePadContainer, {
|
|
24181
|
+
style: {
|
|
24182
|
+
opacity: mode === 'both' || mode === 'signature' ? 1 : 0,
|
|
24183
|
+
transitionDelay: '2s',
|
|
24184
|
+
transition: 'opacity 500ms ease-in-out'
|
|
24185
|
+
},
|
|
24186
|
+
className: classNames.signaturePadContainer
|
|
24187
|
+
}, /*#__PURE__*/React.createElement(VideoSignaturePad, {
|
|
24157
24188
|
onAcceptBtnClicked: onAcceptBtnClicked,
|
|
24158
24189
|
onClearBtnClicked: onClearBtnClicked,
|
|
24159
24190
|
disabled: requestedAction !== 'CAPTURE_SIGNATURE',
|
|
@@ -24161,7 +24192,7 @@
|
|
|
24161
24192
|
minSignaturePadPoints: minSignaturePadPoints,
|
|
24162
24193
|
classNames: classNames,
|
|
24163
24194
|
verbiage: verbiage
|
|
24164
|
-
})));
|
|
24195
|
+
}))));
|
|
24165
24196
|
}
|
|
24166
24197
|
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) {
|
|
24167
24198
|
var _a;
|
|
@@ -24170,7 +24201,8 @@
|
|
|
24170
24201
|
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"])));
|
|
24171
24202
|
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"])));
|
|
24172
24203
|
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"])));
|
|
24173
|
-
var
|
|
24204
|
+
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"])));
|
|
24205
|
+
var templateObject_1$a, templateObject_2$9, templateObject_3$8, templateObject_4$4, templateObject_5$3;
|
|
24174
24206
|
|
|
24175
24207
|
var DEFAULT_MIN_SIGNATURE_PAD_POINTS = 10;
|
|
24176
24208
|
var DEFAULT_HEAD_TRACKING_BOUNDARY_PERCENTAGE = 0.01;
|
|
@@ -24612,37 +24644,39 @@
|
|
|
24612
24644
|
allowManualSelfieCaptureOnLoadingError = _m === void 0 ? false : _m,
|
|
24613
24645
|
faceLivenessProps = _a.faceLivenessProps,
|
|
24614
24646
|
guidesComponent = _a.guidesComponent,
|
|
24615
|
-
_o = _a.
|
|
24616
|
-
|
|
24617
|
-
_p = _a.
|
|
24618
|
-
|
|
24619
|
-
_q = _a.
|
|
24620
|
-
|
|
24621
|
-
_r = _a.
|
|
24622
|
-
|
|
24623
|
-
_s = _a.
|
|
24624
|
-
|
|
24625
|
-
|
|
24626
|
-
|
|
24627
|
-
|
|
24628
|
-
|
|
24629
|
-
|
|
24630
|
-
|
|
24631
|
-
|
|
24647
|
+
_o = _a.showFaceGuideThenSignaturePad,
|
|
24648
|
+
showFaceGuideThenSignaturePad = _o === void 0 ? false : _o,
|
|
24649
|
+
_p = _a.assets,
|
|
24650
|
+
assets = _p === void 0 ? {} : _p,
|
|
24651
|
+
_q = _a.classNames,
|
|
24652
|
+
classNames = _q === void 0 ? {} : _q,
|
|
24653
|
+
_r = _a.colors,
|
|
24654
|
+
colors = _r === void 0 ? {} : _r,
|
|
24655
|
+
_s = _a.verbiage,
|
|
24656
|
+
verbiage = _s === void 0 ? {} : _s,
|
|
24657
|
+
_t = _a.debugMode,
|
|
24658
|
+
debugMode = _t === void 0 ? false : _t;
|
|
24659
|
+
var _u = useSubmissionContext(),
|
|
24660
|
+
selfieImage = _u.selfieImage,
|
|
24661
|
+
setSelfieImage = _u.setSelfieImage,
|
|
24662
|
+
setSignatureData = _u.setSignatureData,
|
|
24663
|
+
setSignatureVideoUrl = _u.setSignatureVideoUrl,
|
|
24664
|
+
logSelfieCaptureAttempt = _u.logSelfieCaptureAttempt,
|
|
24665
|
+
uploadDocument = _u.uploadDocument;
|
|
24632
24666
|
var cameraAccessDenied = useCameraStore(useShallow(function (state) {
|
|
24633
24667
|
return {
|
|
24634
24668
|
cameraAccessDenied: state.cameraAccessDenied
|
|
24635
24669
|
};
|
|
24636
24670
|
})).cameraAccessDenied;
|
|
24637
|
-
var
|
|
24638
|
-
captureState =
|
|
24639
|
-
setCaptureState =
|
|
24671
|
+
var _v = React.useState(skipLivenessValidation ? 'CAPTURING_SELFIE' : 'CHECKING_LIVENESS'),
|
|
24672
|
+
captureState = _v[0],
|
|
24673
|
+
setCaptureState = _v[1];
|
|
24640
24674
|
var operationStartedAt = React.useRef();
|
|
24641
24675
|
var captureStartedAt = React.useRef();
|
|
24642
24676
|
var captureEndedAt = React.useRef();
|
|
24643
|
-
var
|
|
24644
|
-
start =
|
|
24645
|
-
stop =
|
|
24677
|
+
var _w = useSelfieGuidanceModelsContext(),
|
|
24678
|
+
start = _w.start,
|
|
24679
|
+
stop = _w.stop;
|
|
24646
24680
|
React.useEffect(function () {
|
|
24647
24681
|
operationStartedAt.current = new Date();
|
|
24648
24682
|
}, []);
|
|
@@ -24692,17 +24726,17 @@
|
|
|
24692
24726
|
setCaptureState('SUCCESS');
|
|
24693
24727
|
onVideoCaptured === null || onVideoCaptured === void 0 ? void 0 : onVideoCaptured(videoData, signatureData, signatureImageData);
|
|
24694
24728
|
}, [onVideoCaptured, setSignatureData, setSignatureVideoUrl]);
|
|
24695
|
-
var
|
|
24696
|
-
showLoadingOverlay =
|
|
24697
|
-
setShowLoadingOverlay =
|
|
24729
|
+
var _x = React.useState(true),
|
|
24730
|
+
showLoadingOverlay = _x[0],
|
|
24731
|
+
setShowLoadingOverlay = _x[1];
|
|
24698
24732
|
var onSignatureCaptureFacesNotDetected = React.useCallback(function () {
|
|
24699
24733
|
setShowLoadingOverlay(false);
|
|
24700
24734
|
setCaptureState(skipLivenessValidation ? 'CAPTURING_SELFIE' : 'CHECKING_LIVENESS');
|
|
24701
24735
|
useVideoSignatureStore.getState().clearRecordedData();
|
|
24702
24736
|
}, [skipLivenessValidation]);
|
|
24703
|
-
var
|
|
24704
|
-
attempt =
|
|
24705
|
-
setAttempt =
|
|
24737
|
+
var _y = React.useState(0),
|
|
24738
|
+
attempt = _y[0],
|
|
24739
|
+
setAttempt = _y[1];
|
|
24706
24740
|
var onRetry = React.useCallback(function () {
|
|
24707
24741
|
onRetryClicked === null || onRetryClicked === void 0 ? void 0 : onRetryClicked();
|
|
24708
24742
|
setAttempt(function (n) {
|
|
@@ -24733,7 +24767,8 @@
|
|
|
24733
24767
|
verbiage: verbiage === null || verbiage === void 0 ? void 0 : verbiage.guides,
|
|
24734
24768
|
restartVideoOnSignaturePadCleared: restartVideoOnSignaturePadCleared,
|
|
24735
24769
|
captureAudio: captureAudio,
|
|
24736
|
-
component: guidesComponent
|
|
24770
|
+
component: guidesComponent,
|
|
24771
|
+
showFaceGuideThenSignaturePad: showFaceGuideThenSignaturePad
|
|
24737
24772
|
}));
|
|
24738
24773
|
}, [captureAudio, classNames === null || classNames === void 0 ? void 0 : classNames.guides, guidesComponent, restartVideoOnSignaturePadCleared, verbiage === null || verbiage === void 0 ? void 0 : verbiage.guides]);
|
|
24739
24774
|
var onExitAfterFailureProp = faceLivenessProps === null || faceLivenessProps === void 0 ? void 0 : faceLivenessProps.onExitAfterFailure;
|
|
@@ -24842,7 +24877,9 @@
|
|
|
24842
24877
|
_c = _a.captureAudio,
|
|
24843
24878
|
captureAudio = _c === void 0 ? false : _c,
|
|
24844
24879
|
component = _a.component,
|
|
24845
|
-
|
|
24880
|
+
_d = _a.showFaceGuideThenSignaturePad,
|
|
24881
|
+
showFaceGuideThenSignaturePad = _d === void 0 ? false : _d,
|
|
24882
|
+
props = __rest(_a, ["status", "restartVideoOnSignaturePadCleared", "captureAudio", "component", "showFaceGuideThenSignaturePad"]);
|
|
24846
24883
|
var Component = component !== null && component !== void 0 ? component : VideoSignatureGuides;
|
|
24847
24884
|
var onAcceptBtnClicked = React.useCallback(function () {
|
|
24848
24885
|
var signaturePad = useVideoSignatureStore.getState().signaturePad;
|
|
@@ -24874,7 +24911,8 @@
|
|
|
24874
24911
|
faceGuideStatus: status,
|
|
24875
24912
|
onAcceptBtnClicked: onAcceptBtnClicked,
|
|
24876
24913
|
onClearBtnClicked: onClearBtnClicked,
|
|
24877
|
-
requestedAction: status === 'success' ? 'CAPTURE_SIGNATURE' : 'VERIFY_LIVENESS'
|
|
24914
|
+
requestedAction: status === 'success' ? 'CAPTURE_SIGNATURE' : 'VERIFY_LIVENESS',
|
|
24915
|
+
guideToDisplay: !showFaceGuideThenSignaturePad ? undefined : status === 'success' ? 'signature' : 'face'
|
|
24878
24916
|
}));
|
|
24879
24917
|
}
|
|
24880
24918
|
var VideoSignatureWizardWithProviders = function VideoSignatureWizardWithProviders(props) {
|
|
@@ -28655,15 +28693,17 @@
|
|
|
28655
28693
|
_p = _a.allowManualSelfieCaptureOnLoadingError,
|
|
28656
28694
|
allowManualSelfieCaptureOnLoadingError = _p === void 0 ? false : _p,
|
|
28657
28695
|
guidesComponent = _a.guidesComponent,
|
|
28658
|
-
_q = _a.
|
|
28659
|
-
|
|
28696
|
+
_q = _a.showFaceGuideThenSignaturePad,
|
|
28697
|
+
showFaceGuideThenSignaturePad = _q === void 0 ? false : _q,
|
|
28698
|
+
_r = _a.theme,
|
|
28699
|
+
theme = _r === void 0 ? 'default' : _r,
|
|
28660
28700
|
classNames = _a.classNames,
|
|
28661
28701
|
colors = _a.colors,
|
|
28662
28702
|
verbiage = _a.verbiage,
|
|
28663
28703
|
geolocationEnabled = _a.geolocationEnabled,
|
|
28664
28704
|
geolocationRequired = _a.geolocationRequired,
|
|
28665
|
-
|
|
28666
|
-
debugMode =
|
|
28705
|
+
_s = _a.debugMode,
|
|
28706
|
+
debugMode = _s === void 0 ? false : _s;
|
|
28667
28707
|
useLanguage(lang);
|
|
28668
28708
|
useDebugLogging(debugMode);
|
|
28669
28709
|
return /*#__PURE__*/React.createElement(AuthProvider, {
|
|
@@ -28724,6 +28764,7 @@
|
|
|
28724
28764
|
skipLivenessValidation: skipLivenessValidation,
|
|
28725
28765
|
allowManualSelfieCaptureOnLoadingError: allowManualSelfieCaptureOnLoadingError,
|
|
28726
28766
|
guidesComponent: guidesComponent,
|
|
28767
|
+
showFaceGuideThenSignaturePad: showFaceGuideThenSignaturePad,
|
|
28727
28768
|
classNames: classNames,
|
|
28728
28769
|
colors: colors,
|
|
28729
28770
|
debugMode: debugMode,
|
|
@@ -28731,7 +28772,7 @@
|
|
|
28731
28772
|
onModelError: onModelError,
|
|
28732
28773
|
onUserCancel: onUserCancel
|
|
28733
28774
|
};
|
|
28734
|
-
}, [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])
|
|
28775
|
+
}, [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])
|
|
28735
28776
|
})))));
|
|
28736
28777
|
};
|
|
28737
28778
|
|