idmission-web-sdk 2.3.0 → 2.3.2

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.
Files changed (41) hide show
  1. package/dist/components/common/ButtonsRow.d.ts.map +1 -1
  2. package/dist/components/customer_flows/IdValidation.d.ts +2 -0
  3. package/dist/components/customer_flows/IdValidation.d.ts.map +1 -1
  4. package/dist/components/id_capture/IdCaptureLoadingOverlay.d.ts +1 -0
  5. package/dist/components/id_capture/IdCaptureLoadingOverlay.d.ts.map +1 -1
  6. package/dist/components/id_capture/IdCaptureLoadingOverlayDefault.d.ts.map +1 -1
  7. package/dist/components/selfie_capture/SelfieCaptureLoadingOverlay.d.ts +1 -0
  8. package/dist/components/selfie_capture/SelfieCaptureLoadingOverlay.d.ts.map +1 -1
  9. package/dist/components/selfie_capture/SelfieCaptureLoadingOverlayDefault.d.ts.map +1 -1
  10. package/dist/lib/locales/de.d.ts +1 -0
  11. package/dist/lib/locales/de.d.ts.map +1 -1
  12. package/dist/lib/locales/es.d.ts +1 -0
  13. package/dist/lib/locales/es.d.ts.map +1 -1
  14. package/dist/lib/locales/fr.d.ts +1 -0
  15. package/dist/lib/locales/fr.d.ts.map +1 -1
  16. package/dist/lib/locales/index.d.ts +8 -0
  17. package/dist/lib/locales/index.d.ts.map +1 -1
  18. package/dist/lib/locales/it.d.ts +1 -0
  19. package/dist/lib/locales/it.d.ts.map +1 -1
  20. package/dist/lib/locales/ja.d.ts +1 -0
  21. package/dist/lib/locales/ja.d.ts.map +1 -1
  22. package/dist/lib/locales/pt.d.ts +1 -0
  23. package/dist/lib/locales/pt.d.ts.map +1 -1
  24. package/dist/lib/locales/ru.d.ts +1 -0
  25. package/dist/lib/locales/ru.d.ts.map +1 -1
  26. package/dist/lib/locales/zh.d.ts +1 -0
  27. package/dist/lib/locales/zh.d.ts.map +1 -1
  28. package/dist/sdk2.cjs.development.js +150 -112
  29. package/dist/sdk2.cjs.development.js.map +1 -1
  30. package/dist/sdk2.cjs.production.js +1 -1
  31. package/dist/sdk2.cjs.production.js.map +1 -1
  32. package/dist/sdk2.esm.js +150 -112
  33. package/dist/sdk2.esm.js.map +1 -1
  34. package/dist/sdk2.umd.development.js +150 -112
  35. package/dist/sdk2.umd.development.js.map +1 -1
  36. package/dist/sdk2.umd.production.js +1 -1
  37. package/dist/sdk2.umd.production.js.map +1 -1
  38. package/dist/themes/index.d.ts +11 -0
  39. package/dist/themes/index.d.ts.map +1 -1
  40. package/dist/version.d.ts +1 -1
  41. package/package.json +3 -3
@@ -235,7 +235,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
235
235
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
236
236
  };
237
237
 
238
- var webSdkVersion = '2.3.0';
238
+ var webSdkVersion = '2.3.2';
239
239
 
240
240
  function getPlatform() {
241
241
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -461,7 +461,7 @@ var StyledButton = styled__default.default.button(templateObject_1$P || (templat
461
461
  });
462
462
  var templateObject_1$P;
463
463
 
464
- var ButtonsRow$2 = styled__default.default.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"])));
464
+ var ButtonsRow$2 = styled__default.default.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"])));
465
465
  var templateObject_1$O;
466
466
 
467
467
  var GuidanceMessageContainerDiv = styled__default.default.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) {
@@ -3723,6 +3723,7 @@ var es = {
3723
3723
  'Loading guided capture experience...': 'Cargando la experiencia guiada para la captura....',
3724
3724
  'Guided capture experience ready': 'Experiencia guiada lista',
3725
3725
  "Let's Go!": '¡Vamos!',
3726
+ 'Please wait...': 'Espere...',
3726
3727
  '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?',
3727
3728
  OK: 'Sí',
3728
3729
  'Capture with Camera': 'Capturar con la cámara',
@@ -3851,6 +3852,7 @@ var de = {
3851
3852
  'Loading guided capture experience...': 'Geführte Erfassung wird geladen...',
3852
3853
  'Guided capture experience ready': 'Geführte Erfassung bereit',
3853
3854
  "Let's Go!": "Los geht's!",
3855
+ 'Please wait...': 'Bitte warten...',
3854
3856
  '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?',
3855
3857
  OK: 'OK',
3856
3858
  'Capture with Camera': 'Mit der Kamera aufnehmen',
@@ -3978,7 +3980,8 @@ var fr = {
3978
3980
  'Camera ready': 'Caméra prête',
3979
3981
  'Loading guided capture experience...': "Chargement de l'expérience de capture guidée...",
3980
3982
  'Guided capture experience ready': 'Expérience de capture guidée prête',
3981
- "Let's Go!": 'Allons-y !',
3983
+ "Let's Go!": 'Allons-y!',
3984
+ 'Please wait...': 'Veuillez patienter...',
3982
3985
  '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 ?",
3983
3986
  OK: 'OK',
3984
3987
  'Capture with Camera': "Capture avec l'appareil photo",
@@ -4107,6 +4110,7 @@ var it = {
4107
4110
  'Loading guided capture experience...': "Caricamento dell'esperienza di acquisizione guidata...",
4108
4111
  'Guided capture experience ready': 'Esperienza di acquisizione guidata pronta',
4109
4112
  "Let's Go!": 'Iniziamo!',
4113
+ 'Please wait...': 'Attendere...',
4110
4114
  '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?",
4111
4115
  OK: 'OK',
4112
4116
  'Capture with Camera': 'Acquisisci con la fotocamera',
@@ -4235,6 +4239,7 @@ var ja = {
4235
4239
  'Loading guided capture experience...': '撮影ガイダンスのエクスペリエンスを読み込み中…',
4236
4240
  'Guided capture experience ready': '撮影ガイダンスのエクスペリエンスが準備完了',
4237
4241
  "Let's Go!": '始めましょう',
4242
+ 'Please wait...': 'お待ちください…',
4238
4243
  'We are having trouble identifying the correct side of your id do you want to continue with capture anyway?': '身分証の正しい寸法を特定できません。それでも撮影を続行しますか?',
4239
4244
  OK: 'OK',
4240
4245
  'Capture with Camera': 'カメラで撮影',
@@ -4363,6 +4368,7 @@ var pt = {
4363
4368
  'Loading guided capture experience...': 'Carregando a experiência de captura guiada...',
4364
4369
  'Guided capture experience ready': 'Experiência de captura guiada pronta',
4365
4370
  "Let's Go!": 'Vamos lá!',
4371
+ 'Please wait...': 'Aguarde...',
4366
4372
  '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?',
4367
4373
  OK: 'OK',
4368
4374
  'Capture with Camera': 'Capturar com a câmera',
@@ -4491,6 +4497,7 @@ var ru = {
4491
4497
  'Loading guided capture experience...': 'Загрузка данных опыта управляемой съемки…',
4492
4498
  'Guided capture experience ready': 'Данные опыта управляемой съемки готовы',
4493
4499
  "Let's Go!": 'Поехали!',
4500
+ 'Please wait...': 'Подождите…',
4494
4501
  'We are having trouble identifying the correct side of your id do you want to continue with capture anyway?': 'У нас возникли проблемы с определением правильной стороны вашего удостоверения личности. Все равно хотите продолжить съемку?',
4495
4502
  OK: 'OK',
4496
4503
  'Capture with Camera': 'Снимок с камеры',
@@ -4619,6 +4626,7 @@ var zh = {
4619
4626
  'Loading guided capture experience...': '正在載入引導式拍攝體驗...',
4620
4627
  'Guided capture experience ready': '引導式拍攝體驗就緒',
4621
4628
  "Let's Go!": '開始!',
4629
+ 'Please wait...': '請稍候...',
4622
4630
  'We are having trouble identifying the correct side of your id do you want to continue with capture anyway?': '無法識別證件的正確一面,是否仍要繼續拍攝?',
4623
4631
  OK: '確定',
4624
4632
  'Capture with Camera': '使用相机拍摄',
@@ -7284,34 +7292,35 @@ function LoadingListItemIndicator(_a) {
7284
7292
 
7285
7293
  var legacyInstructionImageUrl$1 = "".concat(DEFAULT_CDN_URL, "/WebSDK-Instruction-DL-Capture-3-Portrait.png");
7286
7294
  var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a) {
7287
- var _b, _c, _d, _e;
7295
+ var _b, _c, _d, _e, _f, _g;
7288
7296
  var onDismissed = _a.onDismissed,
7289
7297
  onUserCancel = _a.onUserCancel,
7290
7298
  instructions = _a.instructions,
7291
- _f = _a.rotateImage,
7292
- rotateImage = _f === void 0 ? false : _f,
7293
- _g = _a.assets,
7294
- assets = _g === void 0 ? {} : _g,
7295
- _h = _a.classNames,
7296
- classNames = _h === void 0 ? {} : _h,
7297
- _j = _a.colors,
7298
- colors = _j === void 0 ? {} : _j,
7299
- _k = _a.verbiage,
7300
- rawVerbiage = _k === void 0 ? {} : _k,
7299
+ _h = _a.rotateImage,
7300
+ rotateImage = _h === void 0 ? false : _h,
7301
+ _j = _a.assets,
7302
+ assets = _j === void 0 ? {} : _j,
7303
+ _k = _a.classNames,
7304
+ classNames = _k === void 0 ? {} : _k,
7305
+ _l = _a.colors,
7306
+ colors = _l === void 0 ? {} : _l,
7307
+ _m = _a.verbiage,
7308
+ rawVerbiage = _m === void 0 ? {} : _m,
7301
7309
  customOverlayContent = _a.customOverlayContent;
7302
7310
  var sessionCheckState = useAuthContext()[0].sessionCheckState;
7303
7311
  var sessionReady = sessionCheckState === 'PASSED';
7304
- var _l = useIdCaptureModelsContext(),
7305
- modelsReady = _l.ready,
7306
- modelDownloadProgress = _l.modelDownloadProgress;
7307
- var _m = useCameraStore(),
7308
- cameraReady = _m.cameraReady,
7309
- cameraAccessDenied = _m.cameraAccessDenied,
7310
- iphoneContinuityCameraAvailable = _m.iphoneContinuityCameraAvailable,
7311
- setIphoneContinuityCameraAllowed = _m.setIphoneContinuityCameraAllowed;
7312
- var _o = React.useState(false),
7313
- dismissed = _o[0],
7314
- setDismissed = _o[1];
7312
+ var _o = useIdCaptureModelsContext(),
7313
+ modelsReady = _o.ready,
7314
+ modelDownloadProgress = _o.modelDownloadProgress;
7315
+ var _p = useCameraStore(),
7316
+ cameraReady = _p.cameraReady,
7317
+ cameraAccessDenied = _p.cameraAccessDenied,
7318
+ iphoneContinuityCameraAvailable = _p.iphoneContinuityCameraAvailable,
7319
+ setIphoneContinuityCameraAllowed = _p.setIphoneContinuityCameraAllowed;
7320
+ var _q = React.useState(false),
7321
+ dismissed = _q[0],
7322
+ setDismissed = _q[1];
7323
+ var theme = styled.useTheme();
7315
7324
  assets.instructionImageUrl || (assets.instructionImageUrl = legacyInstructionImageUrl$1);
7316
7325
  var verbiage = useTranslations(rawVerbiage, {
7317
7326
  headingText: 'Use your device camera to capture your ID',
@@ -7322,6 +7331,7 @@ var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a)
7322
7331
  cameraInitializingText: 'Camera initializing...',
7323
7332
  cameraInitializedText: 'Camera ready',
7324
7333
  continueText: "Let's Go!",
7334
+ pleaseWaitText: 'Please wait...',
7325
7335
  sessionCheckingText: 'Authenticating...'
7326
7336
  });
7327
7337
  var ready = sessionReady && modelsReady && cameraReady;
@@ -7416,17 +7426,18 @@ var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a)
7416
7426
  state: sessionReady && modelsReady ? 'done' : 'running'
7417
7427
  }), !sessionReady ? verbiage.sessionCheckingText : modelsReady ? verbiage.modelsReadyText : modelDownloadProgress >= 100 ? verbiage.modelsWarmingUpText : "".concat(verbiage.downloadingText, " (").concat(modelDownloadProgress, "%)")))), /*#__PURE__*/React__namespace.default.createElement(ContinueButtonContainer$1, {
7418
7428
  className: classNames.continueBtnContainer
7419
- }, ready && ( /*#__PURE__*/React__namespace.default.createElement(ContinueButton$1, {
7429
+ }, (ready || ((_g = (_f = theme.idCapture) === null || _f === void 0 ? void 0 : _f.loadingOverlay) === null || _g === void 0 ? void 0 : _g.displayDisabledContinueBtn)) && ( /*#__PURE__*/React__namespace.default.createElement(ContinueButton$1, {
7420
7430
  autoFocus: true,
7421
- finished: true,
7431
+ finished: ready,
7422
7432
  className: classNames.continueBtn,
7433
+ disabled: !ready,
7423
7434
  variant: "positive",
7424
7435
  colors: colors.continueBtn,
7425
7436
  onClick: function onClick() {
7426
7437
  setDismissed(true);
7427
7438
  onDismissed === null || onDismissed === void 0 ? void 0 : onDismissed();
7428
7439
  }
7429
- }, verbiage.continueText))))));
7440
+ }, ready ? verbiage.continueText : verbiage.pleaseWaitText))))));
7430
7441
  };
7431
7442
  var OverlayInner$1 = styled__default.default(LoadingOverlayInner)(templateObject_1$D || (templateObject_1$D = __makeTemplateObject(["\n background: ", ";\n color: ", ";\n"], ["\n background: ", ";\n color: ", ";\n"])), function (props) {
7432
7443
  var _a, _b, _c, _d;
@@ -7455,7 +7466,7 @@ var ProgressBarBackground$1 = styled__default.default(LoadingOverlayProgressBarB
7455
7466
  var ProgressIndicator$1 = styled__default.default(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);
7456
7467
  var CustomLoadingGraphic$1 = styled__default.default.img(templateObject_8$2 || (templateObject_8$2 = __makeTemplateObject(["\n transform-style: preserve-3d;\n"], ["\n transform-style: preserve-3d;\n"])));
7457
7468
  var ContinueButtonContainer$1 = styled__default.default.div(templateObject_9$2 || (templateObject_9$2 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
7458
- var ContinueButton$1 = styled__default.default(LoaderButton)(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n"], ["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n"])), function (props) {
7469
+ var ContinueButton$1 = styled__default.default(LoaderButton)(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n\n &.disabled {\n background: ", ";\n color: ", ";\n border: ", ";\n }\n"], ["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n\n &.disabled {\n background: ", ";\n color: ", ";\n border: ", ";\n }\n"])), function (props) {
7459
7470
  var _a, _b, _c, _d, _e, _f;
7460
7471
  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, ";") : '';
7461
7472
  }, function (props) {
@@ -7464,6 +7475,15 @@ var ContinueButton$1 = styled__default.default(LoaderButton)(templateObject_10$1
7464
7475
  }, function (props) {
7465
7476
  var _a, _b, _c, _d, _e, _f;
7466
7477
  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, ";") : '';
7478
+ }, function (props) {
7479
+ var _a, _b, _c, _d;
7480
+ 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)';
7481
+ }, function (props) {
7482
+ var _a, _b, _c, _d;
7483
+ 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';
7484
+ }, function (props) {
7485
+ var _a, _b, _c, _d;
7486
+ 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';
7467
7487
  });
7468
7488
  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;
7469
7489
 
@@ -12293,40 +12313,43 @@ var templateObject_1$g, templateObject_2$e;
12293
12313
 
12294
12314
  var legacyInstructionImageUrl = "".concat(DEFAULT_CDN_URL, "/Selfie-Image-1.png");
12295
12315
  var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDefault(_a) {
12316
+ var _b, _c;
12296
12317
  var onDismissed = _a.onDismissed,
12297
12318
  onUserCancel = _a.onUserCancel,
12298
12319
  customOverlayContent = _a.customOverlayContent,
12299
- _b = _a.waitForIdCaptureModels,
12300
- waitForIdCaptureModels = _b === void 0 ? false : _b,
12301
- _c = _a.assets,
12302
- assets = _c === void 0 ? {} : _c,
12303
- _d = _a.classNames,
12304
- classNames = _d === void 0 ? {} : _d,
12305
- _e = _a.colors,
12306
- colors = _e === void 0 ? {} : _e,
12307
- _f = _a.verbiage,
12308
- rawVerbiage = _f === void 0 ? {} : _f;
12320
+ _d = _a.waitForIdCaptureModels,
12321
+ waitForIdCaptureModels = _d === void 0 ? false : _d,
12322
+ _e = _a.assets,
12323
+ assets = _e === void 0 ? {} : _e,
12324
+ _f = _a.classNames,
12325
+ classNames = _f === void 0 ? {} : _f,
12326
+ _g = _a.colors,
12327
+ colors = _g === void 0 ? {} : _g,
12328
+ _h = _a.verbiage,
12329
+ rawVerbiage = _h === void 0 ? {} : _h;
12309
12330
  var sessionCheckState = useAuthContext()[0].sessionCheckState;
12310
12331
  var sessionReady = sessionCheckState === 'PASSED';
12311
- var _g = useCameraStore(shallow.useShallow(function (state) {
12332
+ var _j = useCameraStore(shallow.useShallow(function (state) {
12312
12333
  return {
12313
12334
  cameraReady: state.cameraReady,
12314
12335
  cameraAccessDenied: state.cameraAccessDenied,
12315
12336
  microphoneAccessDenied: state.microphoneAccessDenied
12316
12337
  };
12317
12338
  })),
12318
- cameraReady = _g.cameraReady,
12319
- cameraAccessDenied = _g.cameraAccessDenied,
12320
- microphoneAccessDenied = _g.microphoneAccessDenied;
12321
- var _h = useSelfieGuidanceModelsContext(),
12322
- modelsReady = _h.ready,
12323
- modelDownloadProgress = _h.modelDownloadProgress;
12339
+ cameraReady = _j.cameraReady,
12340
+ cameraAccessDenied = _j.cameraAccessDenied,
12341
+ microphoneAccessDenied = _j.microphoneAccessDenied;
12342
+ var _k = useSelfieGuidanceModelsContext(),
12343
+ modelsReady = _k.ready,
12344
+ modelDownloadProgress = _k.modelDownloadProgress;
12324
12345
  var idCaptureModelsContext = React.useContext(IdCaptureModelsContext);
12346
+ var theme = styled.useTheme();
12325
12347
  var verbiage = useTranslations(rawVerbiage, {
12326
12348
  headingText: 'Use your device camera to capture your face',
12327
12349
  removeEyeCoveringsText: 'Remove Sunglasses & Hat',
12328
12350
  avoidExcessiveBacklightingText: 'Avoid Excessive Backlighting',
12329
12351
  continueText: "Let's Go!",
12352
+ pleaseWaitText: 'Please wait...',
12330
12353
  cameraInitializingText: 'Accessing camera...',
12331
12354
  cameraInitializedText: 'Camera ready',
12332
12355
  downloadingText: 'Downloading...',
@@ -12334,9 +12357,9 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
12334
12357
  modelsReadyText: 'Guided capture experience ready',
12335
12358
  sessionCheckingText: 'Authenticating...'
12336
12359
  });
12337
- var _j = React.useState(0),
12338
- headingTextIndex = _j[0],
12339
- setHeadingTextIndex = _j[1];
12360
+ var _l = React.useState(0),
12361
+ headingTextIndex = _l[0],
12362
+ setHeadingTextIndex = _l[1];
12340
12363
  var headingText = [verbiage.headingText, verbiage.removeEyeCoveringsText, verbiage.avoidExcessiveBacklightingText][headingTextIndex];
12341
12364
  React.useEffect(function () {
12342
12365
  setInterval(function () {
@@ -12345,9 +12368,9 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
12345
12368
  });
12346
12369
  }, 3000);
12347
12370
  }, []);
12348
- var _k = React.useState(false),
12349
- dismissed = _k[0],
12350
- setDismissed = _k[1];
12371
+ var _m = React.useState(false),
12372
+ dismissed = _m[0],
12373
+ setDismissed = _m[1];
12351
12374
  if (dismissed) return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null);
12352
12375
  if (cameraAccessDenied) {
12353
12376
  return /*#__PURE__*/React__namespace.default.createElement(CameraAccessDeniedOverlay, {
@@ -12413,9 +12436,10 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
12413
12436
  state: sessionReady && allModelsReady ? 'done' : 'running'
12414
12437
  }), !sessionReady ? verbiage.sessionCheckingText : allModelsReady ? verbiage.modelsReadyText : modelDownloadProgress >= 100 ? verbiage.modelsWarmingUpText : "".concat(verbiage.downloadingText, " (").concat(modelDownloadProgress, "%)")))), /*#__PURE__*/React__namespace.default.createElement(ContinueButtonContainer, {
12415
12438
  className: classNames.continueBtnContainer
12416
- }, ready && ( /*#__PURE__*/React__namespace.default.createElement(ContinueButton, {
12439
+ }, (ready || ((_c = (_b = theme.selfieCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.displayDisabledContinueBtn)) && ( /*#__PURE__*/React__namespace.default.createElement(ContinueButton, {
12417
12440
  autoFocus: true,
12418
- finished: true,
12441
+ finished: ready,
12442
+ disabled: !ready,
12419
12443
  className: classNames.continueBtn,
12420
12444
  variant: "positive",
12421
12445
  colors: colors.continueBtn,
@@ -12423,7 +12447,7 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
12423
12447
  setDismissed(true);
12424
12448
  onDismissed === null || onDismissed === void 0 ? void 0 : onDismissed();
12425
12449
  }
12426
- }, verbiage.continueText))))));
12450
+ }, ready ? verbiage.continueText : verbiage.pleaseWaitText))))));
12427
12451
  };
12428
12452
  var OverlayInner = styled__default.default(LoadingOverlayInner)(templateObject_1$f || (templateObject_1$f = __makeTemplateObject(["\n background: ", ";\n color: ", ";\n"], ["\n background: ", ";\n color: ", ";\n"])), function (props) {
12429
12453
  var _a, _b, _c, _d;
@@ -12452,7 +12476,7 @@ var ProgressIndicator = styled__default.default(LoadingOverlayProgressIndicator)
12452
12476
  });
12453
12477
  var CustomLoadingGraphic = styled__default.default.img(templateObject_5$4 || (templateObject_5$4 = __makeTemplateObject(["\n transform-style: preserve-3d;\n"], ["\n transform-style: preserve-3d;\n"])));
12454
12478
  var ContinueButtonContainer = styled__default.default.div(templateObject_6$3 || (templateObject_6$3 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
12455
- var ContinueButton = styled__default.default(LoaderButton)(templateObject_7$2 || (templateObject_7$2 = __makeTemplateObject(["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n"], ["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n"])), function (props) {
12479
+ var ContinueButton = styled__default.default(LoaderButton)(templateObject_7$2 || (templateObject_7$2 = __makeTemplateObject(["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n\n &.disabled {\n background: ", ";\n color: ", ";\n border: ", ";\n box-shadow: none;\n }\n"], ["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n\n &.disabled {\n background: ", ";\n color: ", ";\n border: ", ";\n box-shadow: none;\n }\n"])), function (props) {
12456
12480
  var _a, _b, _c, _d, _e, _f;
12457
12481
  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, ";") : '';
12458
12482
  }, function (props) {
@@ -12461,6 +12485,15 @@ var ContinueButton = styled__default.default(LoaderButton)(templateObject_7$2 ||
12461
12485
  }, function (props) {
12462
12486
  var _a, _b, _c, _d, _e, _f;
12463
12487
  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, ";") : '';
12488
+ }, function (props) {
12489
+ var _a, _b, _c, _d;
12490
+ 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)';
12491
+ }, function (props) {
12492
+ var _a, _b, _c, _d;
12493
+ 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';
12494
+ }, function (props) {
12495
+ var _a, _b, _c, _d;
12496
+ 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';
12464
12497
  });
12465
12498
  var templateObject_1$f, templateObject_2$d, templateObject_3$b, templateObject_4$6, templateObject_5$4, templateObject_6$3, templateObject_7$2;
12466
12499
 
@@ -15399,7 +15432,10 @@ var defaultTheme = {
15399
15432
  progressBarBackgroundOpacity: 0.75,
15400
15433
  progressBarIndicatorColor: 'var(--idm-color-positive-600)',
15401
15434
  progressBarTextColor: 'white',
15402
- continueBtnBorder: '2px solid white'
15435
+ continueBtnBorder: '2px solid white',
15436
+ continueBtnDisabledBackgroundColor: 'var(--idm-color-positive-600)',
15437
+ continueBtnDisabledTextColor: 'white',
15438
+ continueBtnDisabledBorder: 'none'
15403
15439
  },
15404
15440
  guideOverlay: {
15405
15441
  backgroundColor: '#708090',
@@ -15564,42 +15600,44 @@ var IdValidation = function IdValidation(_a) {
15564
15600
  sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
15565
15601
  customerDataMatchConfig = _a.customerDataMatchConfig,
15566
15602
  useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
15603
+ _c = _a.captureOnly,
15604
+ captureOnly = _c === void 0 ? false : _c,
15567
15605
  precapturedDocuments = _a.precapturedDocuments,
15568
- _c = _a.loadingOverlayMode,
15569
- loadingOverlayMode = _c === void 0 ? 'default' : _c,
15606
+ _d = _a.loadingOverlayMode,
15607
+ loadingOverlayMode = _d === void 0 ? 'default' : _d,
15570
15608
  customOverlayContent = _a.customOverlayContent,
15571
15609
  onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
15572
- _d = _a.idCaptureRequirement,
15573
- idCaptureRequirement = _d === void 0 ? 'idCardOrPassport' : _d,
15574
- _e = _a.allowSinglePageIdCapture,
15575
- allowSinglePageIdCapture = _e === void 0 ? false : _e,
15576
- _f = _a.separateIdCardCaptureSequence,
15577
- separateIdCardCaptureSequence = _f === void 0 ? false : _f,
15578
- _g = _a.idCaptureThresholds,
15579
- idCaptureThresholds = _g === void 0 ? defaultIdCaptureThresholds : _g,
15580
- _h = _a.skipSuccessScreen,
15581
- skipSuccessScreen = _h === void 0 ? false : _h,
15610
+ _e = _a.idCaptureRequirement,
15611
+ idCaptureRequirement = _e === void 0 ? 'idCardOrPassport' : _e,
15612
+ _f = _a.allowSinglePageIdCapture,
15613
+ allowSinglePageIdCapture = _f === void 0 ? false : _f,
15614
+ _g = _a.separateIdCardCaptureSequence,
15615
+ separateIdCardCaptureSequence = _g === void 0 ? false : _g,
15616
+ _h = _a.idCaptureThresholds,
15617
+ idCaptureThresholds = _h === void 0 ? defaultIdCaptureThresholds : _h,
15618
+ _j = _a.skipSuccessScreen,
15619
+ skipSuccessScreen = _j === void 0 ? false : _j,
15582
15620
  instructions = _a.instructions,
15583
- _j = _a.guideType,
15584
- guideType = _j === void 0 ? 'fit' : _j,
15585
- _k = _a.guideImages,
15586
- guideImages = _k === void 0 ? defaultIdCaptureGuideImages : _k,
15587
- _l = _a.portraitGuidesOnMobile,
15588
- portraitGuidesOnMobile = _l === void 0 ? true : _l,
15589
- _m = _a.rotateLoadingOverlayImageWhenPortrait,
15590
- rotateLoadingOverlayImageWhenPortrait = _m === void 0 ? true : _m,
15591
- _o = _a.modelLoadTimeoutMs,
15592
- modelLoadTimeoutMs = _o === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _o,
15593
- _p = _a.forceFallbackMode,
15594
- forceFallbackMode = _p === void 0 ? false : _p,
15595
- _q = _a.allowIdCardBackToFrontCapture,
15596
- allowIdCardBackToFrontCapture = _q === void 0 ? false : _q,
15597
- _r = _a.enableOverrideWrongDocumentTypeDialog,
15598
- enableOverrideWrongDocumentTypeDialog = _r === void 0 ? false : _r,
15599
- _s = _a.allowOverrideWrongDocumentTypeAfterMs,
15600
- allowOverrideWrongDocumentTypeAfterMs = _s === void 0 ? 8000 : _s,
15601
- _t = _a.allowUploadingDocumentsFromStorage,
15602
- allowUploadingDocumentsFromStorage = _t === void 0 ? false : _t,
15621
+ _k = _a.guideType,
15622
+ guideType = _k === void 0 ? 'fit' : _k,
15623
+ _l = _a.guideImages,
15624
+ guideImages = _l === void 0 ? defaultIdCaptureGuideImages : _l,
15625
+ _m = _a.portraitGuidesOnMobile,
15626
+ portraitGuidesOnMobile = _m === void 0 ? true : _m,
15627
+ _o = _a.rotateLoadingOverlayImageWhenPortrait,
15628
+ rotateLoadingOverlayImageWhenPortrait = _o === void 0 ? true : _o,
15629
+ _p = _a.modelLoadTimeoutMs,
15630
+ modelLoadTimeoutMs = _p === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _p,
15631
+ _q = _a.forceFallbackMode,
15632
+ forceFallbackMode = _q === void 0 ? false : _q,
15633
+ _r = _a.allowIdCardBackToFrontCapture,
15634
+ allowIdCardBackToFrontCapture = _r === void 0 ? false : _r,
15635
+ _s = _a.enableOverrideWrongDocumentTypeDialog,
15636
+ enableOverrideWrongDocumentTypeDialog = _s === void 0 ? false : _s,
15637
+ _t = _a.allowOverrideWrongDocumentTypeAfterMs,
15638
+ allowOverrideWrongDocumentTypeAfterMs = _t === void 0 ? 8000 : _t,
15639
+ _u = _a.allowUploadingDocumentsFromStorage,
15640
+ allowUploadingDocumentsFromStorage = _u === void 0 ? false : _u,
15603
15641
  onBeforeSubmit = _a.onBeforeSubmit,
15604
15642
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
15605
15643
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
@@ -15615,28 +15653,28 @@ var IdValidation = function IdValidation(_a) {
15615
15653
  onModelError = _a.onModelError,
15616
15654
  onCameraAccessDenied = _a.onCameraAccessDenied,
15617
15655
  onCameraTamperingDetected = _a.onCameraTamperingDetected,
15618
- _u = _a.theme,
15619
- theme = _u === void 0 ? 'default' : _u,
15620
- _v = _a.assets,
15621
- assets = _v === void 0 ? {} : _v,
15622
- _w = _a.classNames,
15623
- classNames = _w === void 0 ? {} : _w,
15624
- _x = _a.colors,
15625
- colors = _x === void 0 ? {} : _x,
15626
- _y = _a.verbiage,
15627
- verbiage = _y === void 0 ? {} : _y,
15628
- _z = _a.captureSignature,
15629
- captureSignature = _z === void 0 ? false : _z,
15630
- _0 = _a.captureSignatureVideo,
15631
- captureSignatureVideo = _0 === void 0 ? false : _0,
15632
- _1 = _a.captureAdditionalDocuments,
15633
- captureAdditionalDocuments = _1 === void 0 ? [] : _1,
15634
- _2 = _a.geolocationEnabled,
15635
- geolocationEnabled = _2 === void 0 ? true : _2,
15636
- _3 = _a.geolocationRequired,
15637
- geolocationRequired = _3 === void 0 ? false : _3,
15638
- _4 = _a.debugMode,
15639
- debugMode = _4 === void 0 ? false : _4;
15656
+ _v = _a.theme,
15657
+ theme = _v === void 0 ? 'default' : _v,
15658
+ _w = _a.assets,
15659
+ assets = _w === void 0 ? {} : _w,
15660
+ _x = _a.classNames,
15661
+ classNames = _x === void 0 ? {} : _x,
15662
+ _y = _a.colors,
15663
+ colors = _y === void 0 ? {} : _y,
15664
+ _z = _a.verbiage,
15665
+ verbiage = _z === void 0 ? {} : _z,
15666
+ _0 = _a.captureSignature,
15667
+ captureSignature = _0 === void 0 ? false : _0,
15668
+ _1 = _a.captureSignatureVideo,
15669
+ captureSignatureVideo = _1 === void 0 ? false : _1,
15670
+ _2 = _a.captureAdditionalDocuments,
15671
+ captureAdditionalDocuments = _2 === void 0 ? [] : _2,
15672
+ _3 = _a.geolocationEnabled,
15673
+ geolocationEnabled = _3 === void 0 ? true : _3,
15674
+ _4 = _a.geolocationRequired,
15675
+ geolocationRequired = _4 === void 0 ? false : _4,
15676
+ _5 = _a.debugMode,
15677
+ debugMode = _5 === void 0 ? false : _5;
15640
15678
  useLanguage(lang);
15641
15679
  useDebugLogging(debugMode);
15642
15680
  var idCaptureProps = React.useMemo(function () {
@@ -15709,7 +15747,7 @@ var IdValidation = function IdValidation(_a) {
15709
15747
  }, /*#__PURE__*/React__namespace.default.createElement(ThemeProvider, {
15710
15748
  theme: theme
15711
15749
  }, /*#__PURE__*/React__namespace.default.createElement(SubmissionProvider, {
15712
- action: SubmissionAction.VALIDATE,
15750
+ action: captureOnly ? SubmissionAction.NONE : SubmissionAction.VALIDATE,
15713
15751
  submissionUrl: submissionUrl,
15714
15752
  clientRequestID: clientRequestID,
15715
15753
  documentServiceUrl: documentServiceUrl,