idmission-web-sdk 2.2.177 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/common/ButtonsRow.d.ts.map +1 -1
- package/dist/components/id_capture/IdCaptureLoadingOverlay.d.ts +1 -0
- package/dist/components/id_capture/IdCaptureLoadingOverlay.d.ts.map +1 -1
- package/dist/components/id_capture/IdCaptureLoadingOverlayDefault.d.ts.map +1 -1
- package/dist/components/selfie_capture/SelfieCaptureLoadingOverlay.d.ts +1 -0
- package/dist/components/selfie_capture/SelfieCaptureLoadingOverlay.d.ts.map +1 -1
- package/dist/components/selfie_capture/SelfieCaptureLoadingOverlayDefault.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 +93 -57
- 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 +93 -57
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +93 -57
- 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/themes/index.d.ts +11 -0
- package/dist/themes/index.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +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.
|
|
214
|
+
var webSdkVersion = '2.3.1';
|
|
215
215
|
|
|
216
216
|
function getPlatform() {
|
|
217
217
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -437,7 +437,7 @@
|
|
|
437
437
|
});
|
|
438
438
|
var templateObject_1$P;
|
|
439
439
|
|
|
440
|
-
var ButtonsRow$2 = styled.div(templateObject_1$O || (templateObject_1$O = __makeTemplateObject(["\n display: flex;\n gap: 0 15px;\n justify-content: center;\n"], ["\n display: flex;\n gap: 0 15px;\n justify-content: center;\n"])));
|
|
440
|
+
var ButtonsRow$2 = styled.div(templateObject_1$O || (templateObject_1$O = __makeTemplateObject(["\n display: flex;\n gap: 0 15px;\n justify-content: center;\n text-align: left;\n"], ["\n display: flex;\n gap: 0 15px;\n justify-content: center;\n text-align: left;\n"])));
|
|
441
441
|
var templateObject_1$O;
|
|
442
442
|
|
|
443
443
|
var GuidanceMessageContainerDiv = styled.div(templateObject_1$N || (templateObject_1$N = __makeTemplateObject(["\n position: absolute;\n top: calc(", ");\n ", "\n font-weight: bold;\n width: 100%;\n display: flex;\n"], ["\n position: absolute;\n top: calc(", ");\n ", "\n font-weight: bold;\n width: 100%;\n display: flex;\n"])), function (_a) {
|
|
@@ -12452,6 +12452,7 @@
|
|
|
12452
12452
|
'Loading guided capture experience...': 'Cargando la experiencia guiada para la captura....',
|
|
12453
12453
|
'Guided capture experience ready': 'Experiencia guiada lista',
|
|
12454
12454
|
"Let's Go!": '¡Vamos!',
|
|
12455
|
+
'Please wait...': 'Espere...',
|
|
12455
12456
|
'We are having trouble identifying the correct side of your id do you want to continue with capture anyway?': 'Estamos teniendo problemas para identificar el lado correcto de la identificación,¿continuar con la captura?',
|
|
12456
12457
|
OK: 'Sí',
|
|
12457
12458
|
'Capture with Camera': 'Capturar con la cámara',
|
|
@@ -12580,6 +12581,7 @@
|
|
|
12580
12581
|
'Loading guided capture experience...': 'Geführte Erfassung wird geladen...',
|
|
12581
12582
|
'Guided capture experience ready': 'Geführte Erfassung bereit',
|
|
12582
12583
|
"Let's Go!": "Los geht's!",
|
|
12584
|
+
'Please wait...': 'Bitte warten...',
|
|
12583
12585
|
'We are having trouble identifying the correct side of your id do you want to continue with capture anyway?': 'Wir haben Probleme, die richtige Seite Ihres Ausweises zu erkennen. Möchten Sie dennoch mit der Erfassung fortfahren?',
|
|
12584
12586
|
OK: 'OK',
|
|
12585
12587
|
'Capture with Camera': 'Mit der Kamera aufnehmen',
|
|
@@ -12707,7 +12709,8 @@
|
|
|
12707
12709
|
'Camera ready': 'Caméra prête',
|
|
12708
12710
|
'Loading guided capture experience...': "Chargement de l'expérience de capture guidée...",
|
|
12709
12711
|
'Guided capture experience ready': 'Expérience de capture guidée prête',
|
|
12710
|
-
"Let's Go!": 'Allons-y
|
|
12712
|
+
"Let's Go!": 'Allons-y!',
|
|
12713
|
+
'Please wait...': 'Veuillez patienter...',
|
|
12711
12714
|
'We are having trouble identifying the correct side of your id do you want to continue with capture anyway?': "Nous rencontrons des difficultés pour identifier la bonne face de votre pièce d'identité. Voulez-vous quand même continuer la capture ?",
|
|
12712
12715
|
OK: 'OK',
|
|
12713
12716
|
'Capture with Camera': "Capture avec l'appareil photo",
|
|
@@ -12836,6 +12839,7 @@
|
|
|
12836
12839
|
'Loading guided capture experience...': "Caricamento dell'esperienza di acquisizione guidata...",
|
|
12837
12840
|
'Guided capture experience ready': 'Esperienza di acquisizione guidata pronta',
|
|
12838
12841
|
"Let's Go!": 'Iniziamo!',
|
|
12842
|
+
'Please wait...': 'Attendere...',
|
|
12839
12843
|
'We are having trouble identifying the correct side of your id do you want to continue with capture anyway?': "Si stanno verificando problemi nell'identificare il lato corretto del documento d'identità. Procedere con l'acquisizione?",
|
|
12840
12844
|
OK: 'OK',
|
|
12841
12845
|
'Capture with Camera': 'Acquisisci con la fotocamera',
|
|
@@ -12964,6 +12968,7 @@
|
|
|
12964
12968
|
'Loading guided capture experience...': '撮影ガイダンスのエクスペリエンスを読み込み中…',
|
|
12965
12969
|
'Guided capture experience ready': '撮影ガイダンスのエクスペリエンスが準備完了',
|
|
12966
12970
|
"Let's Go!": '始めましょう',
|
|
12971
|
+
'Please wait...': 'お待ちください…',
|
|
12967
12972
|
'We are having trouble identifying the correct side of your id do you want to continue with capture anyway?': '身分証の正しい寸法を特定できません。それでも撮影を続行しますか?',
|
|
12968
12973
|
OK: 'OK',
|
|
12969
12974
|
'Capture with Camera': 'カメラで撮影',
|
|
@@ -13092,6 +13097,7 @@
|
|
|
13092
13097
|
'Loading guided capture experience...': 'Carregando a experiência de captura guiada...',
|
|
13093
13098
|
'Guided capture experience ready': 'Experiência de captura guiada pronta',
|
|
13094
13099
|
"Let's Go!": 'Vamos lá!',
|
|
13100
|
+
'Please wait...': 'Aguarde...',
|
|
13095
13101
|
'We are having trouble identifying the correct side of your id do you want to continue with capture anyway?': 'Estamos com dificuldades para identificar o lado correto da sua identidade. Deseja continuar com a captura mesmo assim?',
|
|
13096
13102
|
OK: 'OK',
|
|
13097
13103
|
'Capture with Camera': 'Capturar com a câmera',
|
|
@@ -13220,6 +13226,7 @@
|
|
|
13220
13226
|
'Loading guided capture experience...': 'Загрузка данных опыта управляемой съемки…',
|
|
13221
13227
|
'Guided capture experience ready': 'Данные опыта управляемой съемки готовы',
|
|
13222
13228
|
"Let's Go!": 'Поехали!',
|
|
13229
|
+
'Please wait...': 'Подождите…',
|
|
13223
13230
|
'We are having trouble identifying the correct side of your id do you want to continue with capture anyway?': 'У нас возникли проблемы с определением правильной стороны вашего удостоверения личности. Все равно хотите продолжить съемку?',
|
|
13224
13231
|
OK: 'OK',
|
|
13225
13232
|
'Capture with Camera': 'Снимок с камеры',
|
|
@@ -13348,6 +13355,7 @@
|
|
|
13348
13355
|
'Loading guided capture experience...': '正在載入引導式拍攝體驗...',
|
|
13349
13356
|
'Guided capture experience ready': '引導式拍攝體驗就緒',
|
|
13350
13357
|
"Let's Go!": '開始!',
|
|
13358
|
+
'Please wait...': '請稍候...',
|
|
13351
13359
|
'We are having trouble identifying the correct side of your id do you want to continue with capture anyway?': '無法識別證件的正確一面,是否仍要繼續拍攝?',
|
|
13352
13360
|
OK: '確定',
|
|
13353
13361
|
'Capture with Camera': '使用相机拍摄',
|
|
@@ -16391,34 +16399,35 @@
|
|
|
16391
16399
|
|
|
16392
16400
|
var legacyInstructionImageUrl$1 = "".concat(DEFAULT_CDN_URL, "/WebSDK-Instruction-DL-Capture-3-Portrait.png");
|
|
16393
16401
|
var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a) {
|
|
16394
|
-
var _b, _c, _d, _e;
|
|
16402
|
+
var _b, _c, _d, _e, _f, _g;
|
|
16395
16403
|
var onDismissed = _a.onDismissed,
|
|
16396
16404
|
onUserCancel = _a.onUserCancel,
|
|
16397
16405
|
instructions = _a.instructions,
|
|
16398
|
-
|
|
16399
|
-
rotateImage =
|
|
16400
|
-
|
|
16401
|
-
assets =
|
|
16402
|
-
|
|
16403
|
-
classNames =
|
|
16404
|
-
|
|
16405
|
-
colors =
|
|
16406
|
-
|
|
16407
|
-
rawVerbiage =
|
|
16406
|
+
_h = _a.rotateImage,
|
|
16407
|
+
rotateImage = _h === void 0 ? false : _h,
|
|
16408
|
+
_j = _a.assets,
|
|
16409
|
+
assets = _j === void 0 ? {} : _j,
|
|
16410
|
+
_k = _a.classNames,
|
|
16411
|
+
classNames = _k === void 0 ? {} : _k,
|
|
16412
|
+
_l = _a.colors,
|
|
16413
|
+
colors = _l === void 0 ? {} : _l,
|
|
16414
|
+
_m = _a.verbiage,
|
|
16415
|
+
rawVerbiage = _m === void 0 ? {} : _m,
|
|
16408
16416
|
customOverlayContent = _a.customOverlayContent;
|
|
16409
16417
|
var sessionCheckState = useAuthContext()[0].sessionCheckState;
|
|
16410
16418
|
var sessionReady = sessionCheckState === 'PASSED';
|
|
16411
|
-
var
|
|
16412
|
-
modelsReady =
|
|
16413
|
-
modelDownloadProgress =
|
|
16414
|
-
var
|
|
16415
|
-
cameraReady =
|
|
16416
|
-
cameraAccessDenied =
|
|
16417
|
-
iphoneContinuityCameraAvailable =
|
|
16418
|
-
setIphoneContinuityCameraAllowed =
|
|
16419
|
-
var
|
|
16420
|
-
dismissed =
|
|
16421
|
-
setDismissed =
|
|
16419
|
+
var _o = useIdCaptureModelsContext(),
|
|
16420
|
+
modelsReady = _o.ready,
|
|
16421
|
+
modelDownloadProgress = _o.modelDownloadProgress;
|
|
16422
|
+
var _p = useCameraStore(),
|
|
16423
|
+
cameraReady = _p.cameraReady,
|
|
16424
|
+
cameraAccessDenied = _p.cameraAccessDenied,
|
|
16425
|
+
iphoneContinuityCameraAvailable = _p.iphoneContinuityCameraAvailable,
|
|
16426
|
+
setIphoneContinuityCameraAllowed = _p.setIphoneContinuityCameraAllowed;
|
|
16427
|
+
var _q = React.useState(false),
|
|
16428
|
+
dismissed = _q[0],
|
|
16429
|
+
setDismissed = _q[1];
|
|
16430
|
+
var theme = styled.useTheme();
|
|
16422
16431
|
assets.instructionImageUrl || (assets.instructionImageUrl = legacyInstructionImageUrl$1);
|
|
16423
16432
|
var verbiage = useTranslations(rawVerbiage, {
|
|
16424
16433
|
headingText: 'Use your device camera to capture your ID',
|
|
@@ -16429,6 +16438,7 @@
|
|
|
16429
16438
|
cameraInitializingText: 'Camera initializing...',
|
|
16430
16439
|
cameraInitializedText: 'Camera ready',
|
|
16431
16440
|
continueText: "Let's Go!",
|
|
16441
|
+
pleaseWaitText: 'Please wait...',
|
|
16432
16442
|
sessionCheckingText: 'Authenticating...'
|
|
16433
16443
|
});
|
|
16434
16444
|
var ready = sessionReady && modelsReady && cameraReady;
|
|
@@ -16523,17 +16533,18 @@
|
|
|
16523
16533
|
state: sessionReady && modelsReady ? 'done' : 'running'
|
|
16524
16534
|
}), !sessionReady ? verbiage.sessionCheckingText : modelsReady ? verbiage.modelsReadyText : modelDownloadProgress >= 100 ? verbiage.modelsWarmingUpText : "".concat(verbiage.downloadingText, " (").concat(modelDownloadProgress, "%)")))), /*#__PURE__*/React.createElement(ContinueButtonContainer$1, {
|
|
16525
16535
|
className: classNames.continueBtnContainer
|
|
16526
|
-
}, ready && ( /*#__PURE__*/React.createElement(ContinueButton$1, {
|
|
16536
|
+
}, (ready || ((_g = (_f = theme.idCapture) === null || _f === void 0 ? void 0 : _f.loadingOverlay) === null || _g === void 0 ? void 0 : _g.displayDisabledContinueBtn)) && ( /*#__PURE__*/React.createElement(ContinueButton$1, {
|
|
16527
16537
|
autoFocus: true,
|
|
16528
|
-
finished:
|
|
16538
|
+
finished: ready,
|
|
16529
16539
|
className: classNames.continueBtn,
|
|
16540
|
+
disabled: !ready,
|
|
16530
16541
|
variant: "positive",
|
|
16531
16542
|
colors: colors.continueBtn,
|
|
16532
16543
|
onClick: function onClick() {
|
|
16533
16544
|
setDismissed(true);
|
|
16534
16545
|
onDismissed === null || onDismissed === void 0 ? void 0 : onDismissed();
|
|
16535
16546
|
}
|
|
16536
|
-
}, verbiage.continueText))))));
|
|
16547
|
+
}, ready ? verbiage.continueText : verbiage.pleaseWaitText))))));
|
|
16537
16548
|
};
|
|
16538
16549
|
var OverlayInner$1 = styled(LoadingOverlayInner)(templateObject_1$D || (templateObject_1$D = __makeTemplateObject(["\n background: ", ";\n color: ", ";\n"], ["\n background: ", ";\n color: ", ";\n"])), function (props) {
|
|
16539
16550
|
var _a, _b, _c, _d;
|
|
@@ -16562,7 +16573,7 @@
|
|
|
16562
16573
|
var ProgressIndicator$1 = styled(LoadingOverlayProgressIndicator)(templateObject_7$6 || (templateObject_7$6 = __makeTemplateObject(["\n animation: ", " 3s ease-in-out;\n animation-fill-mode: both;\n"], ["\n animation: ", " 3s ease-in-out;\n animation-fill-mode: both;\n"])), progressBarAnimation);
|
|
16563
16574
|
var CustomLoadingGraphic$1 = styled.img(templateObject_8$2 || (templateObject_8$2 = __makeTemplateObject(["\n transform-style: preserve-3d;\n"], ["\n transform-style: preserve-3d;\n"])));
|
|
16564
16575
|
var ContinueButtonContainer$1 = styled.div(templateObject_9$2 || (templateObject_9$2 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
16565
|
-
var ContinueButton$1 = styled(LoaderButton)(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n"], ["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n"])), function (props) {
|
|
16576
|
+
var ContinueButton$1 = styled(LoaderButton)(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n\n &.disabled {\n background: ", ";\n color: ", ";\n border: ", ";\n }\n"], ["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n\n &.disabled {\n background: ", ";\n color: ", ";\n border: ", ";\n }\n"])), function (props) {
|
|
16566
16577
|
var _a, _b, _c, _d, _e, _f;
|
|
16567
16578
|
return ((_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.idCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.progressBarFontSize) ? "font-size: ".concat((_f = (_e = (_d = props.theme) === null || _d === void 0 ? void 0 : _d.idCapture) === null || _e === void 0 ? void 0 : _e.loadingOverlay) === null || _f === void 0 ? void 0 : _f.progressBarFontSize, ";") : '';
|
|
16568
16579
|
}, function (props) {
|
|
@@ -16571,6 +16582,15 @@
|
|
|
16571
16582
|
}, function (props) {
|
|
16572
16583
|
var _a, _b, _c, _d, _e, _f;
|
|
16573
16584
|
return ((_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.idCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.continueBtnBorder) ? "border: ".concat((_f = (_e = (_d = props.theme) === null || _d === void 0 ? void 0 : _d.idCapture) === null || _e === void 0 ? void 0 : _e.loadingOverlay) === null || _f === void 0 ? void 0 : _f.continueBtnBorder, ";") : '';
|
|
16585
|
+
}, function (props) {
|
|
16586
|
+
var _a, _b, _c, _d;
|
|
16587
|
+
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.continueBtnDisabledBackgroundColor) !== null && _d !== void 0 ? _d : 'var(--idm-color-positive-600)';
|
|
16588
|
+
}, function (props) {
|
|
16589
|
+
var _a, _b, _c, _d;
|
|
16590
|
+
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.continueBtnDisabledTextColor) !== null && _d !== void 0 ? _d : 'white';
|
|
16591
|
+
}, function (props) {
|
|
16592
|
+
var _a, _b, _c, _d;
|
|
16593
|
+
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';
|
|
16574
16594
|
});
|
|
16575
16595
|
var templateObject_1$D, templateObject_2$x, templateObject_3$m, templateObject_4$g, templateObject_5$c, templateObject_6$9, templateObject_7$6, templateObject_8$2, templateObject_9$2, templateObject_10$1;
|
|
16576
16596
|
|
|
@@ -21400,40 +21420,43 @@
|
|
|
21400
21420
|
|
|
21401
21421
|
var legacyInstructionImageUrl = "".concat(DEFAULT_CDN_URL, "/Selfie-Image-1.png");
|
|
21402
21422
|
var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDefault(_a) {
|
|
21423
|
+
var _b, _c;
|
|
21403
21424
|
var onDismissed = _a.onDismissed,
|
|
21404
21425
|
onUserCancel = _a.onUserCancel,
|
|
21405
21426
|
customOverlayContent = _a.customOverlayContent,
|
|
21406
|
-
|
|
21407
|
-
waitForIdCaptureModels =
|
|
21408
|
-
|
|
21409
|
-
assets =
|
|
21410
|
-
|
|
21411
|
-
classNames =
|
|
21412
|
-
|
|
21413
|
-
colors =
|
|
21414
|
-
|
|
21415
|
-
rawVerbiage =
|
|
21427
|
+
_d = _a.waitForIdCaptureModels,
|
|
21428
|
+
waitForIdCaptureModels = _d === void 0 ? false : _d,
|
|
21429
|
+
_e = _a.assets,
|
|
21430
|
+
assets = _e === void 0 ? {} : _e,
|
|
21431
|
+
_f = _a.classNames,
|
|
21432
|
+
classNames = _f === void 0 ? {} : _f,
|
|
21433
|
+
_g = _a.colors,
|
|
21434
|
+
colors = _g === void 0 ? {} : _g,
|
|
21435
|
+
_h = _a.verbiage,
|
|
21436
|
+
rawVerbiage = _h === void 0 ? {} : _h;
|
|
21416
21437
|
var sessionCheckState = useAuthContext()[0].sessionCheckState;
|
|
21417
21438
|
var sessionReady = sessionCheckState === 'PASSED';
|
|
21418
|
-
var
|
|
21439
|
+
var _j = useCameraStore(useShallow(function (state) {
|
|
21419
21440
|
return {
|
|
21420
21441
|
cameraReady: state.cameraReady,
|
|
21421
21442
|
cameraAccessDenied: state.cameraAccessDenied,
|
|
21422
21443
|
microphoneAccessDenied: state.microphoneAccessDenied
|
|
21423
21444
|
};
|
|
21424
21445
|
})),
|
|
21425
|
-
cameraReady =
|
|
21426
|
-
cameraAccessDenied =
|
|
21427
|
-
microphoneAccessDenied =
|
|
21428
|
-
var
|
|
21429
|
-
modelsReady =
|
|
21430
|
-
modelDownloadProgress =
|
|
21446
|
+
cameraReady = _j.cameraReady,
|
|
21447
|
+
cameraAccessDenied = _j.cameraAccessDenied,
|
|
21448
|
+
microphoneAccessDenied = _j.microphoneAccessDenied;
|
|
21449
|
+
var _k = useSelfieGuidanceModelsContext(),
|
|
21450
|
+
modelsReady = _k.ready,
|
|
21451
|
+
modelDownloadProgress = _k.modelDownloadProgress;
|
|
21431
21452
|
var idCaptureModelsContext = React.useContext(IdCaptureModelsContext);
|
|
21453
|
+
var theme = styled.useTheme();
|
|
21432
21454
|
var verbiage = useTranslations(rawVerbiage, {
|
|
21433
21455
|
headingText: 'Use your device camera to capture your face',
|
|
21434
21456
|
removeEyeCoveringsText: 'Remove Sunglasses & Hat',
|
|
21435
21457
|
avoidExcessiveBacklightingText: 'Avoid Excessive Backlighting',
|
|
21436
21458
|
continueText: "Let's Go!",
|
|
21459
|
+
pleaseWaitText: 'Please wait...',
|
|
21437
21460
|
cameraInitializingText: 'Accessing camera...',
|
|
21438
21461
|
cameraInitializedText: 'Camera ready',
|
|
21439
21462
|
downloadingText: 'Downloading...',
|
|
@@ -21441,9 +21464,9 @@
|
|
|
21441
21464
|
modelsReadyText: 'Guided capture experience ready',
|
|
21442
21465
|
sessionCheckingText: 'Authenticating...'
|
|
21443
21466
|
});
|
|
21444
|
-
var
|
|
21445
|
-
headingTextIndex =
|
|
21446
|
-
setHeadingTextIndex =
|
|
21467
|
+
var _l = React.useState(0),
|
|
21468
|
+
headingTextIndex = _l[0],
|
|
21469
|
+
setHeadingTextIndex = _l[1];
|
|
21447
21470
|
var headingText = [verbiage.headingText, verbiage.removeEyeCoveringsText, verbiage.avoidExcessiveBacklightingText][headingTextIndex];
|
|
21448
21471
|
React.useEffect(function () {
|
|
21449
21472
|
setInterval(function () {
|
|
@@ -21452,9 +21475,9 @@
|
|
|
21452
21475
|
});
|
|
21453
21476
|
}, 3000);
|
|
21454
21477
|
}, []);
|
|
21455
|
-
var
|
|
21456
|
-
dismissed =
|
|
21457
|
-
setDismissed =
|
|
21478
|
+
var _m = React.useState(false),
|
|
21479
|
+
dismissed = _m[0],
|
|
21480
|
+
setDismissed = _m[1];
|
|
21458
21481
|
if (dismissed) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
21459
21482
|
if (cameraAccessDenied) {
|
|
21460
21483
|
return /*#__PURE__*/React.createElement(CameraAccessDeniedOverlay, {
|
|
@@ -21520,9 +21543,10 @@
|
|
|
21520
21543
|
state: sessionReady && allModelsReady ? 'done' : 'running'
|
|
21521
21544
|
}), !sessionReady ? verbiage.sessionCheckingText : allModelsReady ? verbiage.modelsReadyText : modelDownloadProgress >= 100 ? verbiage.modelsWarmingUpText : "".concat(verbiage.downloadingText, " (").concat(modelDownloadProgress, "%)")))), /*#__PURE__*/React.createElement(ContinueButtonContainer, {
|
|
21522
21545
|
className: classNames.continueBtnContainer
|
|
21523
|
-
}, ready && ( /*#__PURE__*/React.createElement(ContinueButton, {
|
|
21546
|
+
}, (ready || ((_c = (_b = theme.selfieCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.displayDisabledContinueBtn)) && ( /*#__PURE__*/React.createElement(ContinueButton, {
|
|
21524
21547
|
autoFocus: true,
|
|
21525
|
-
finished:
|
|
21548
|
+
finished: ready,
|
|
21549
|
+
disabled: !ready,
|
|
21526
21550
|
className: classNames.continueBtn,
|
|
21527
21551
|
variant: "positive",
|
|
21528
21552
|
colors: colors.continueBtn,
|
|
@@ -21530,7 +21554,7 @@
|
|
|
21530
21554
|
setDismissed(true);
|
|
21531
21555
|
onDismissed === null || onDismissed === void 0 ? void 0 : onDismissed();
|
|
21532
21556
|
}
|
|
21533
|
-
}, verbiage.continueText))))));
|
|
21557
|
+
}, ready ? verbiage.continueText : verbiage.pleaseWaitText))))));
|
|
21534
21558
|
};
|
|
21535
21559
|
var OverlayInner = styled(LoadingOverlayInner)(templateObject_1$f || (templateObject_1$f = __makeTemplateObject(["\n background: ", ";\n color: ", ";\n"], ["\n background: ", ";\n color: ", ";\n"])), function (props) {
|
|
21536
21560
|
var _a, _b, _c, _d;
|
|
@@ -21559,7 +21583,7 @@
|
|
|
21559
21583
|
});
|
|
21560
21584
|
var CustomLoadingGraphic = styled.img(templateObject_5$4 || (templateObject_5$4 = __makeTemplateObject(["\n transform-style: preserve-3d;\n"], ["\n transform-style: preserve-3d;\n"])));
|
|
21561
21585
|
var ContinueButtonContainer = styled.div(templateObject_6$3 || (templateObject_6$3 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
21562
|
-
var ContinueButton = styled(LoaderButton)(templateObject_7$2 || (templateObject_7$2 = __makeTemplateObject(["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n"], ["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n"])), function (props) {
|
|
21586
|
+
var ContinueButton = styled(LoaderButton)(templateObject_7$2 || (templateObject_7$2 = __makeTemplateObject(["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n\n &.disabled {\n background: ", ";\n color: ", ";\n border: ", ";\n box-shadow: none;\n }\n"], ["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n\n &.disabled {\n background: ", ";\n color: ", ";\n border: ", ";\n box-shadow: none;\n }\n"])), function (props) {
|
|
21563
21587
|
var _a, _b, _c, _d, _e, _f;
|
|
21564
21588
|
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, ";") : '';
|
|
21565
21589
|
}, function (props) {
|
|
@@ -21568,6 +21592,15 @@
|
|
|
21568
21592
|
}, function (props) {
|
|
21569
21593
|
var _a, _b, _c, _d, _e, _f;
|
|
21570
21594
|
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.continueBtnBorder) ? "border: ".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.continueBtnBorder, ";") : '';
|
|
21595
|
+
}, function (props) {
|
|
21596
|
+
var _a, _b, _c, _d;
|
|
21597
|
+
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.continueBtnDisabledBackgroundColor) !== null && _d !== void 0 ? _d : 'var(--idm-color-positive-600)';
|
|
21598
|
+
}, function (props) {
|
|
21599
|
+
var _a, _b, _c, _d;
|
|
21600
|
+
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.continueBtnDisabledTextColor) !== null && _d !== void 0 ? _d : 'white';
|
|
21601
|
+
}, function (props) {
|
|
21602
|
+
var _a, _b, _c, _d;
|
|
21603
|
+
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';
|
|
21571
21604
|
});
|
|
21572
21605
|
var templateObject_1$f, templateObject_2$d, templateObject_3$b, templateObject_4$6, templateObject_5$4, templateObject_6$3, templateObject_7$2;
|
|
21573
21606
|
|
|
@@ -25274,7 +25307,10 @@
|
|
|
25274
25307
|
progressBarBackgroundOpacity: 0.75,
|
|
25275
25308
|
progressBarIndicatorColor: 'var(--idm-color-positive-600)',
|
|
25276
25309
|
progressBarTextColor: 'white',
|
|
25277
|
-
continueBtnBorder: '2px solid white'
|
|
25310
|
+
continueBtnBorder: '2px solid white',
|
|
25311
|
+
continueBtnDisabledBackgroundColor: 'var(--idm-color-positive-600)',
|
|
25312
|
+
continueBtnDisabledTextColor: 'white',
|
|
25313
|
+
continueBtnDisabledBorder: 'none'
|
|
25278
25314
|
},
|
|
25279
25315
|
guideOverlay: {
|
|
25280
25316
|
backgroundColor: '#708090',
|