@unissey-web/web-components 5.0.0-rc.3 → 5.0.0-rc.5

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.
@@ -4,4 +4,4 @@ function commonjsRequire (path) {
4
4
  throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
5
5
  }
6
6
 
7
- export { commonjsGlobal as a, commonjsRequire as c };
7
+ export { commonjsRequire as a, commonjsGlobal as c };
package/dist/button.js CHANGED
@@ -1,5 +1,5 @@
1
- import { i, d as _taggedTemplateLiteral, _ as _inherits, a as _createClass, x, s, b as _classCallCheck, c as _callSuper } from './lit-element-ac3d3a27.js';
2
- import { b as buttonsVars, d as defaultVars } from './variables-b4a2d316.js';
1
+ import { i, d as _taggedTemplateLiteral, _ as _inherits, a as _createClass, x, s, b as _classCallCheck, c as _callSuper } from './lit-element-83035a6f.js';
2
+ import { e as buttonsVars, d as defaultVars } from './variables-be2b795f.js';
3
3
 
4
4
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
5
5
  var Button = /*#__PURE__*/function (_LitElement) {
@@ -1,5 +1,5 @@
1
- import { i, d as _taggedTemplateLiteral, _ as _inherits, a as _createClass, x, s, b as _classCallCheck, c as _callSuper } from './lit-element-ac3d3a27.js';
2
- import { d as defaultVars, e as directionCardsVars } from './variables-b4a2d316.js';
1
+ import { i, d as _taggedTemplateLiteral, _ as _inherits, a as _createClass, x, s, b as _classCallCheck, c as _callSuper } from './lit-element-83035a6f.js';
2
+ import { d as defaultVars, c as directionCardsVars } from './variables-be2b795f.js';
3
3
 
4
4
  var _templateObject$1;
5
5
  var directionsStyle = i(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n .layout {\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n\n .item {\n margin-top: 15px;\n width: 100%;\n }\n"])));
@@ -21,7 +21,10 @@ var videoRecorder = {
21
21
  capture: "Record a video",
22
22
  retry: "Retry",
23
23
  errors: {
24
- noFace: "We couldn't detect a face, please try again."
24
+ noFace: "We couldn't detect a face, please try again.",
25
+ activeChallenge: "Action failed. Please try again.",
26
+ sdkError: "There has been an error while processing",
27
+ unsupportedFaceDetector: "The face detector is not supported on the current device, please try again."
25
28
  },
26
29
  hints: {
27
30
  up: "Move your face up",
@@ -1,7 +1,7 @@
1
- import { i, d as _taggedTemplateLiteral, _ as _inherits, a as _createClass, x, s, b as _classCallCheck, c as _callSuper, e as _objectSpread2, g as _asyncToGenerator, h as _regeneratorRuntime } from './lit-element-ac3d3a27.js';
2
- import { E as EN } from './en-e76ed5a0.js';
3
- import { f as fileUploadVars } from './variables-b4a2d316.js';
4
- import { a as commonjsGlobal } from './_commonjsHelpers-cef27602.js';
1
+ import { i, d as _taggedTemplateLiteral, _ as _inherits, a as _createClass, x, s, b as _classCallCheck, c as _callSuper, e as _objectSpread2, f as _asyncToGenerator, g as _regenerator } from './lit-element-83035a6f.js';
2
+ import { E as EN } from './en-066d960b.js';
3
+ import { f as fileUploadVars } from './variables-be2b795f.js';
4
+ import { c as commonjsGlobal } from './_commonjsHelpers-02146103.js';
5
5
 
6
6
  var heic2any$1 = {exports: {}};
7
7
 
@@ -319,54 +319,53 @@ var FileUpload = /*#__PURE__*/function (_LitElement) {
319
319
  }, {
320
320
  key: "handleFileSelection",
321
321
  value: function () {
322
- var _handleFileSelection = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(files) {
322
+ var _handleFileSelection = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(files) {
323
323
  var file, _this$validateFile, isFileValid, error, convertedFile;
324
- return _regeneratorRuntime().wrap(function _callee$(_context) {
325
- while (1) switch (_context.prev = _context.next) {
324
+ return _regenerator().w(function (_context) {
325
+ while (1) switch (_context.n) {
326
326
  case 0:
327
327
  if (!(files.length === 1)) {
328
- _context.next = 16;
328
+ _context.n = 5;
329
329
  break;
330
330
  }
331
331
  file = files.item(0);
332
332
  _this$validateFile = _objectSpread2({}, this.validateFile("".concat(file === null || file === void 0 ? void 0 : file.type), (file === null || file === void 0 ? void 0 : file.size) || 0)), isFileValid = _this$validateFile.valid, error = _this$validateFile.error;
333
333
  if (!isFileValid) {
334
- _context.next = 15;
334
+ _context.n = 4;
335
335
  break;
336
336
  }
337
337
  if (!(file && file.type === "image/heic")) {
338
- _context.next = 11;
338
+ _context.n = 2;
339
339
  break;
340
340
  }
341
- _context.next = 7;
341
+ _context.n = 1;
342
342
  return heic2any({
343
343
  blob: file,
344
344
  toType: "image/jpg"
345
345
  });
346
- case 7:
347
- convertedFile = _context.sent;
346
+ case 1:
347
+ convertedFile = _context.v;
348
348
  this.dispatchEvent(new CustomEvent("change", {
349
349
  detail: {
350
350
  file: convertedFile
351
351
  }
352
352
  }));
353
- _context.next = 12;
353
+ _context.n = 3;
354
354
  break;
355
- case 11:
355
+ case 2:
356
356
  this.dispatchEvent(new CustomEvent("change", {
357
357
  detail: {
358
358
  file: file
359
359
  }
360
360
  }));
361
- case 12:
361
+ case 3:
362
362
  this.error = "";
363
- _context.next = 16;
363
+ _context.n = 5;
364
364
  break;
365
- case 15:
365
+ case 4:
366
366
  this.error = error;
367
- case 16:
368
- case "end":
369
- return _context.stop();
367
+ case 5:
368
+ return _context.a(2);
370
369
  }
371
370
  }, _callee, this);
372
371
  }));
@@ -1,13 +1,13 @@
1
- import { _ as _inherits, a as _createClass, x, d as _taggedTemplateLiteral, s, b as _classCallCheck, c as _callSuper } from './lit-element-ac3d3a27.js';
1
+ import { _ as _inherits, a as _createClass, x, d as _taggedTemplateLiteral, s, b as _classCallCheck, c as _callSuper } from './lit-element-83035a6f.js';
2
2
  import { selfieCaptureStrings } from './selfie-capture.js';
3
3
  import { referenceCaptureStrings } from './reference-capture.js';
4
4
  import './button.js';
5
- import './en-e76ed5a0.js';
6
- import './video-recorder-4f57f554.js';
7
- import './_commonjsHelpers-cef27602.js';
8
- import './variables-b4a2d316.js';
5
+ import './en-066d960b.js';
6
+ import './video-recorder-06fc27aa.js';
7
+ import './_commonjsHelpers-02146103.js';
8
+ import './variables-be2b795f.js';
9
9
  import './video-record-directions.js';
10
- import './direction-card-df682b7a.js';
10
+ import './direction-card-143ab05d.js';
11
11
  import './image-capture-directions.js';
12
12
  import './file-upload.js';
13
13
  import './picture-recorder.js';
@@ -58,6 +58,20 @@ var FullCapture = /*#__PURE__*/function (_LitElement) {
58
58
  }
59
59
  }));
60
60
  }
61
+ }, {
62
+ key: "handleReferenceActiveChallenge",
63
+ value: function handleReferenceActiveChallenge(e) {
64
+ this.dispatchEvent(new CustomEvent("referenceActiveChallenge", {
65
+ detail: e.detail
66
+ }));
67
+ }
68
+ }, {
69
+ key: "handleSelfieActiveChallenge",
70
+ value: function handleSelfieActiveChallenge(e) {
71
+ this.dispatchEvent(new CustomEvent("selfieActiveChallenge", {
72
+ detail: e.detail
73
+ }));
74
+ }
61
75
  }, {
62
76
  key: "handleBack",
63
77
  value: function handleBack() {
@@ -67,13 +81,13 @@ var FullCapture = /*#__PURE__*/function (_LitElement) {
67
81
  key: "renderReferenceStep",
68
82
  value: function renderReferenceStep() {
69
83
  var _this$strings$referen, _this$strings$referen2, _this$strings$referen3;
70
- return x(_templateObject || (_templateObject = _taggedTemplateLiteral([" <uni-reference-capture\n @reference=\"", "\"\n @recorderReady=\"", "\"\n recorder-options=\"", "\"\n strings=\"", "\"\n ?hide-capture-btn=", "\n ?disable-debug-mode=", "\n >\n <slot name=\"reference-directions\" slot=\"directions\">\n <uni-image-capture-directions\n strings=\"", "\"\n ></uni-image-capture-directions>\n </slot>\n\n <slot name=\"reference-action-button\" slot=\"action-button\"></slot>\n </uni-reference-capture>"])), this.handleReference, this.handleRecoderReady, JSON.stringify(this.recorderOptions), JSON.stringify((_this$strings$referen = this.strings.reference) !== null && _this$strings$referen !== void 0 ? _this$strings$referen : referenceCaptureStrings), this.hideReferenceCaptureBtn, this.disableDebugMode, JSON.stringify((_this$strings$referen2 = (_this$strings$referen3 = this.strings.reference) === null || _this$strings$referen3 === void 0 ? void 0 : _this$strings$referen3.directions) !== null && _this$strings$referen2 !== void 0 ? _this$strings$referen2 : referenceCaptureStrings.directions));
84
+ return x(_templateObject || (_templateObject = _taggedTemplateLiteral([" <uni-reference-capture\n @reference=\"", "\"\n @recorderReady=\"", "\"\n @activeChallenge=\"", "\"\n recorder-options=\"", "\"\n strings=\"", "\"\n ?hide-capture-btn=", "\n ?disable-debug-mode=", "\n >\n <slot name=\"reference-directions\" slot=\"directions\">\n <uni-image-capture-directions\n strings=\"", "\"\n ></uni-image-capture-directions>\n </slot>\n\n <slot name=\"reference-action-button\" slot=\"action-button\"></slot>\n </uni-reference-capture>"])), this.handleReference, this.handleRecoderReady, this.handleReferenceActiveChallenge, JSON.stringify(this.recorderOptions), JSON.stringify((_this$strings$referen = this.strings.reference) !== null && _this$strings$referen !== void 0 ? _this$strings$referen : referenceCaptureStrings), this.hideReferenceCaptureBtn, this.disableDebugMode, JSON.stringify((_this$strings$referen2 = (_this$strings$referen3 = this.strings.reference) === null || _this$strings$referen3 === void 0 ? void 0 : _this$strings$referen3.directions) !== null && _this$strings$referen2 !== void 0 ? _this$strings$referen2 : referenceCaptureStrings.directions));
71
85
  }
72
86
  }, {
73
87
  key: "renderSelfieStep",
74
88
  value: function renderSelfieStep() {
75
89
  var _this$strings$selfie, _this$strings$selfie$, _this$strings$selfie2, _this$strings$selfie$2, _this$strings$selfie3;
76
- return x(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["<uni-selfie-capture\n @selfie=\"", "\"\n @recorderReady=\"", "\"\n strings=\"", "\"\n recorder-options=\"", "\"\n ?hide-capture-btn=", "\n ?disable-debug-mode=", "\n >\n <slot name=\"selfie-directions\" slot=\"directions\">\n <uni-video-record-directions\n strings=\"", "\"\n >\n </uni-video-record-directions>\n </slot>\n <uni-button slot=\"action-button\" variant=\"outlined\" @click=\"", "\">\n <uni-back-arrow-icon slot=\"icon\"></uni-back-arrow-icon>\n ", "\n </uni-button>\n </uni-selfie-capture>"])), this.handleSelfie, this.handleRecoderReady, JSON.stringify((_this$strings$selfie = this.strings.selfie) !== null && _this$strings$selfie !== void 0 ? _this$strings$selfie : selfieCaptureStrings), JSON.stringify(this.recorderOptions), this.hideSelfieCaptureBtn, this.disableDebugMode, JSON.stringify((_this$strings$selfie$ = (_this$strings$selfie2 = this.strings.selfie) === null || _this$strings$selfie2 === void 0 ? void 0 : _this$strings$selfie2.directions) !== null && _this$strings$selfie$ !== void 0 ? _this$strings$selfie$ : selfieCaptureStrings.directions), this.handleBack, (_this$strings$selfie$2 = (_this$strings$selfie3 = this.strings.selfie) === null || _this$strings$selfie3 === void 0 ? void 0 : _this$strings$selfie3.back) !== null && _this$strings$selfie$2 !== void 0 ? _this$strings$selfie$2 : selfieCaptureStrings.back);
90
+ return x(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["<uni-selfie-capture\n @selfie=\"", "\"\n @recorderReady=\"", "\"\n @activeChallenge=\"", "\"\n strings=\"", "\"\n recorder-options=\"", "\"\n ?hide-capture-btn=", "\n ?disable-debug-mode=", "\n >\n <slot name=\"selfie-directions\" slot=\"directions\">\n <uni-video-record-directions\n strings=\"", "\"\n >\n </uni-video-record-directions>\n </slot>\n <uni-button slot=\"action-button\" variant=\"outlined\" @click=\"", "\">\n <uni-back-arrow-icon slot=\"icon\"></uni-back-arrow-icon>\n ", "\n </uni-button>\n </uni-selfie-capture>"])), this.handleSelfie, this.handleRecoderReady, this.handleSelfieActiveChallenge, JSON.stringify((_this$strings$selfie = this.strings.selfie) !== null && _this$strings$selfie !== void 0 ? _this$strings$selfie : selfieCaptureStrings), JSON.stringify(this.recorderOptions), this.hideSelfieCaptureBtn, this.disableDebugMode, JSON.stringify((_this$strings$selfie$ = (_this$strings$selfie2 = this.strings.selfie) === null || _this$strings$selfie2 === void 0 ? void 0 : _this$strings$selfie2.directions) !== null && _this$strings$selfie$ !== void 0 ? _this$strings$selfie$ : selfieCaptureStrings.directions), this.handleBack, (_this$strings$selfie$2 = (_this$strings$selfie3 = this.strings.selfie) === null || _this$strings$selfie3 === void 0 ? void 0 : _this$strings$selfie3.back) !== null && _this$strings$selfie$2 !== void 0 ? _this$strings$selfie$2 : selfieCaptureStrings.back);
77
91
  }
78
92
  }, {
79
93
  key: "render",
@@ -1,7 +1,7 @@
1
- import { _ as _inherits, a as _createClass, x, d as _taggedTemplateLiteral, s, b as _classCallCheck, c as _callSuper, i, e as _objectSpread2 } from './lit-element-ac3d3a27.js';
2
- import { d as directionsStyle } from './direction-card-df682b7a.js';
3
- import { d as defaultVars } from './variables-b4a2d316.js';
4
- import { E as EN } from './en-e76ed5a0.js';
1
+ import { _ as _inherits, a as _createClass, x, d as _taggedTemplateLiteral, s, b as _classCallCheck, c as _callSuper, i, e as _objectSpread2 } from './lit-element-83035a6f.js';
2
+ import { d as directionsStyle } from './direction-card-143ab05d.js';
3
+ import { d as defaultVars } from './variables-be2b795f.js';
4
+ import { E as EN } from './en-066d960b.js';
5
5
 
6
6
  var _templateObject$3;
7
7
  var FaceCardPicto = /*#__PURE__*/function (_LitElement) {
package/dist/index.d.ts CHANGED
@@ -93,6 +93,9 @@ declare const EN: {
93
93
  retry: string;
94
94
  errors: {
95
95
  noFace: string;
96
+ activeChallenge: string;
97
+ sdkError: string;
98
+ unsupportedFaceDetector: string;
96
99
  };
97
100
  hints: {
98
101
  up: string;
@@ -180,6 +183,9 @@ declare const EN: {
180
183
  retry: string;
181
184
  errors: {
182
185
  noFace: string;
186
+ activeChallenge: string;
187
+ sdkError: string;
188
+ unsupportedFaceDetector: string;
183
189
  };
184
190
  hints: {
185
191
  up: string;
@@ -238,6 +244,9 @@ declare const EN: {
238
244
  retry: string;
239
245
  errors: {
240
246
  noFace: string;
247
+ activeChallenge: string;
248
+ sdkError: string;
249
+ unsupportedFaceDetector: string;
241
250
  };
242
251
  hints: {
243
252
  up: string;
@@ -298,15 +307,15 @@ declare class Recorder extends LitElement {
298
307
  };
299
308
  mediaType: string;
300
309
  faceChecker: FaceChecker;
301
- instructionMessage: string;
302
- instructionTimer: number;
303
310
  instructions: string[];
304
- instructionNumber: number;
305
311
  defaultStrings: {
306
312
  capture: string;
307
313
  retry: string;
308
314
  errors: {
309
315
  noFace: string;
316
+ activeChallenge: string;
317
+ sdkError: string;
318
+ unsupportedFaceDetector: string;
310
319
  };
311
320
  hints: {
312
321
  up: string;
@@ -350,8 +359,8 @@ declare class Recorder extends LitElement {
350
359
  willRetryCapture: boolean;
351
360
  isCameraFlipped: boolean;
352
361
  faceDetectionFails: boolean;
362
+ activeChallengeFails: boolean;
353
363
  disableDebugMode: boolean;
354
- actionToDisplay: string | undefined;
355
364
  actionState: "success" | "error" | undefined;
356
365
  static properties: {
357
366
  preset: {
@@ -409,15 +418,6 @@ declare class Recorder extends LitElement {
409
418
  instructions: {
410
419
  state: boolean;
411
420
  };
412
- instructionMessage: {
413
- state: boolean;
414
- };
415
- instructionTimer: {
416
- state: boolean;
417
- };
418
- actionToDisplay: {
419
- state: boolean;
420
- };
421
421
  isActionSuccessful: {
422
422
  state: boolean;
423
423
  };
@@ -436,6 +436,7 @@ declare class Recorder extends LitElement {
436
436
  private releaseSdkJs;
437
437
  private sdkJsListener_status;
438
438
  private sdkJsListener_faceInfo;
439
+ private handleError;
439
440
  private sdkJsListener_issue;
440
441
  private sdkJsListener_activeChallenge;
441
442
  private buildSessionConfig;
@@ -641,6 +642,9 @@ declare const selfieCaptureStrings: {
641
642
  retry: string;
642
643
  errors: {
643
644
  noFace: string;
645
+ activeChallenge: string;
646
+ sdkError: string;
647
+ unsupportedFaceDetector: string;
644
648
  };
645
649
  hints: {
646
650
  up: string;
@@ -735,6 +739,10 @@ declare class SelfieCapture extends LitElement {
735
739
  handleRecordStarting(e: CustomEvent): void;
736
740
  handleRecordCapturing(e: CustomEvent): void;
737
741
  handleRecordInterrupted(e: CustomEvent): void;
742
+ handleActiveChallenge(e: CustomEvent<{
743
+ action?: string;
744
+ status?: string;
745
+ }>): void;
738
746
  renderDirections(): lit_html.TemplateResult<1>;
739
747
  renderRecorder(): lit_html.TemplateResult<1>;
740
748
  render(): lit_html.TemplateResult<1>;
@@ -798,6 +806,9 @@ declare const referenceCaptureStrings: {
798
806
  retry: string;
799
807
  errors: {
800
808
  noFace: string;
809
+ activeChallenge: string;
810
+ sdkError: string;
811
+ unsupportedFaceDetector: string;
801
812
  };
802
813
  hints: {
803
814
  up: string;
@@ -905,6 +916,10 @@ declare class ReferenceCapture extends LitElement {
905
916
  handleRecordStarting(e: CustomEvent): void;
906
917
  handleRecordCapturing(e: CustomEvent): void;
907
918
  handleRecordInterrupted(e: CustomEvent): void;
919
+ handleActiveChallenge(e: CustomEvent<{
920
+ action?: string;
921
+ status?: string;
922
+ }>): void;
908
923
  renderDirections(): lit_html.TemplateResult<1>;
909
924
  renderFileUpload(): lit_html.TemplateResult<1>;
910
925
  renderPictureEditor(): lit_html.TemplateResult<1>;
@@ -943,6 +958,9 @@ declare const fullCaptureStrings: {
943
958
  retry: string;
944
959
  errors: {
945
960
  noFace: string;
961
+ activeChallenge: string;
962
+ sdkError: string;
963
+ unsupportedFaceDetector: string;
946
964
  };
947
965
  hints: {
948
966
  up: string;
@@ -1004,6 +1022,9 @@ declare const fullCaptureStrings: {
1004
1022
  retry: string;
1005
1023
  errors: {
1006
1024
  noFace: string;
1025
+ activeChallenge: string;
1026
+ sdkError: string;
1027
+ unsupportedFaceDetector: string;
1007
1028
  };
1008
1029
  hints: {
1009
1030
  up: string;
@@ -1084,6 +1105,14 @@ declare class FullCapture extends LitElement {
1084
1105
  contentKind: string;
1085
1106
  acquisitionTime?: number;
1086
1107
  }>): void;
1108
+ handleReferenceActiveChallenge(e: CustomEvent<{
1109
+ action?: string;
1110
+ status?: string;
1111
+ }>): void;
1112
+ handleSelfieActiveChallenge(e: CustomEvent<{
1113
+ action?: string;
1114
+ status?: string;
1115
+ }>): void;
1087
1116
  handleBack(): void;
1088
1117
  renderReferenceStep(): lit_html.TemplateResult<1>;
1089
1118
  renderSelfieStep(): lit_html.TemplateResult<1>;
package/dist/index.js CHANGED
@@ -1,20 +1,20 @@
1
1
  export { Button } from './button.js';
2
- import { R as Recorder } from './video-recorder-4f57f554.js';
3
- export { A as Animation, C as CameraVideoOutlinedIcon, O as OverlayHints } from './video-recorder-4f57f554.js';
2
+ import { R as Recorder } from './video-recorder-06fc27aa.js';
3
+ export { A as Animation, C as CameraVideoOutlinedIcon, O as OverlayHints } from './video-recorder-06fc27aa.js';
4
4
  export { VideoRecordDirections } from './video-record-directions.js';
5
5
  export { PictureRecorder } from './picture-recorder.js';
6
6
  export { PictureEditor } from './picture-editor.js';
7
7
  export { FileUpload } from './file-upload.js';
8
8
  export { ImageCaptureDirections } from './image-capture-directions.js';
9
- import { _ as _inherits, a as _createClass, b as _classCallCheck, c as _callSuper } from './lit-element-ac3d3a27.js';
9
+ import { _ as _inherits, a as _createClass, b as _classCallCheck, c as _callSuper } from './lit-element-83035a6f.js';
10
10
  export { RetryResult } from './retry-result.js';
11
11
  export { SelfieCapture } from './selfie-capture.js';
12
12
  export { ReferenceCapture } from './reference-capture.js';
13
13
  export { FullCapture } from './full-capture.js';
14
- export { D as DirectionCard } from './direction-card-df682b7a.js';
15
- export { E as EN } from './en-e76ed5a0.js';
16
- import './variables-b4a2d316.js';
17
- import './_commonjsHelpers-cef27602.js';
14
+ export { D as DirectionCard } from './direction-card-143ab05d.js';
15
+ export { E as EN } from './en-066d960b.js';
16
+ import './variables-be2b795f.js';
17
+ import './_commonjsHelpers-02146103.js';
18
18
 
19
19
  // @ts-ignore
20
20
 
@@ -32,7 +32,10 @@ var videoRecorder = {
32
32
  capture: "Enregistrer une vidéo",
33
33
  retry: "Réessayer",
34
34
  errors: {
35
- noFace: "Votre visage n'a pas pu être détecté, veuillez réessayer."
35
+ noFace: "Votre visage n'a pas pu être détecté, veuillez réessayer.",
36
+ activeChallenge: "Action échouée. Veuillez réessayer.",
37
+ sdkError: "Une erreur s'est produite lors du traitement",
38
+ unsupportedFaceDetector: "Le détecteur de visage n'est pas supporté sur l'appareil actuel, veuillez réessayer."
36
39
  },
37
40
  hints: {
38
41
  up: "Plus vers le haut",
@@ -152,11 +155,18 @@ var AcquisitionPreset = /*#__PURE__*/function (AcquisitionPreset) {
152
155
  }({});
153
156
  var IadMode = /*#__PURE__*/function (IadMode) {
154
157
  IadMode["DISABLED"] = "disabled";
158
+ // No IAD (equivalent to keep 'iadConfig' undefined)
155
159
  IadMode["INTEGRITY"] = "integrity";
160
+ // No IAD measures as such, but compute a hash to ensure that the media is not corrupted after capture
156
161
  IadMode["BASIC"] = "basic";
162
+ // IadMode.MEDIA_INTEGRITY + Basic IAD check (Virtual Camera and Emulators detection). No Randomness.
157
163
  IadMode["PASSIVE"] = "passive";
164
+ // IadMode.BASIC + passive randomness when applicable = All passive countermeasures: Substantial passive (with randomness) countermeasures when applicable, otherwise Baseline (passive) countermeasures
158
165
  IadMode["SUBSTANTIAL"] = "substantial";
166
+ // IadMode.PASSIVE + Active Challenge when passive randomness is not applicable
167
+ /** @deprecated Use 'INTEGRITY' instead */
159
168
  IadMode["MEDIA_INTEGRITY"] = "integrity";
169
+ /** @deprecated Use 'BASIC' instead - but it requires preparation 'data'*/
160
170
  IadMode["PASSIVE_LT"] = "basic";
161
171
  return IadMode;
162
172
  }({});