@unissey-web/web-components 6.0.0-alpha.0 → 6.0.0-alpha.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/button.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { i, d as _taggedTemplateLiteral, _ as _inherits, a as _createClass, x, s, b as _classCallCheck, c as _callSuper } from './lit-element-c42ac26e.js';
2
- import { e as buttonsVars, d as defaultVars } from './variables-0db5ef1b.js';
2
+ import { e as buttonsVars, d as defaultVars } from './variables-513bd26a.js';
3
3
 
4
4
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
5
5
  var Button = /*#__PURE__*/function (_LitElement) {
@@ -38,7 +38,7 @@ Button.properties = {
38
38
  type: Boolean
39
39
  }
40
40
  };
41
- Button.styles = i(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n @media screen and (max-width: 576px) {\n .btn {\n width: ", ";\n }\n }\n\n :host {\n }\n\n .btn {\n display: inline-block;\n align-items: center;\n vertical-align: top;\n padding: ", ";\n border: ", ";\n border-color: ", ";\n border-radius: ", ";\n background-color: ", ";\n color: ", ";\n cursor: pointer;\n font-size: ", ";\n text-transform: ", ";\n }\n\n .btn:hover {\n background-color: ", ";\n }\n\n .btn:disabled {\n cursor: default;\n background-color: ", ";\n border-color: ", ";\n }\n\n .btn-outlined {\n color: ", ";\n background-color: ", ";\n border: ", ";\n }\n\n .btn-outlined:hover {\n background-color: ", ";\n }\n\n .box {\n display: block;\n text-align: center;\n }\n\n .label {\n margin: 0 10px;\n }\n\n .item-center {\n display: inline-block;\n vertical-align: middle;\n }\n "])), buttonsVars.smWidth, buttonsVars.padding, buttonsVars.border, defaultVars.colors.primary, buttonsVars.borderRadius, defaultVars.colors.primary, defaultVars.colors.white, buttonsVars.fontSize, buttonsVars.textTransform, defaultVars.colors.primaryLighter, buttonsVars.btnDisabledBgColor, buttonsVars.btnDisabledBgColor, defaultVars.colors.primary, defaultVars.colors.white, buttonsVars.outlinedBorders, buttonsVars.btnDisabledBgColor);
41
+ Button.styles = i(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n @media screen and (max-width: 576px) {\n .btn {\n width: ", ";\n }\n }\n\n :host {\n }\n\n .btn {\n display: inline-block;\n align-items: center;\n vertical-align: top;\n padding: ", ";\n border: ", ";\n border-color: ", ";\n border-radius: ", ";\n background-color: ", ";\n color: ", ";\n cursor: pointer;\n font-size: ", ";\n text-transform: ", ";\n }\n\n .btn:hover {\n background-color: ", ";\n }\n\n .btn:focus {\n outline: ", ";\n }\n\n .btn:disabled {\n cursor: default;\n background-color: ", ";\n border-color: ", ";\n }\n\n .btn-outlined {\n color: ", ";\n background-color: ", ";\n border: ", ";\n }\n\n .btn-outlined:hover {\n background-color: ", ";\n }\n\n .box {\n display: block;\n text-align: center;\n }\n\n .label {\n margin: 0 10px;\n }\n\n .item-center {\n display: inline-block;\n vertical-align: middle;\n }\n "])), buttonsVars.smWidth, buttonsVars.padding, buttonsVars.border, defaultVars.colors.primary, buttonsVars.borderRadius, defaultVars.colors.primary, defaultVars.colors.white, buttonsVars.fontSize, buttonsVars.textTransform, defaultVars.colors.primaryLighter, buttonsVars.focusOutline, buttonsVars.btnDisabledBgColor, buttonsVars.btnDisabledBgColor, defaultVars.colors.primary, defaultVars.colors.white, buttonsVars.outlinedBorders, buttonsVars.btnDisabledBgColor);
42
42
  customElements.define("uni-button", Button);
43
43
 
44
44
  export { Button };
@@ -1,5 +1,5 @@
1
1
  import { i, d as _taggedTemplateLiteral, _ as _inherits, a as _createClass, x, s, b as _classCallCheck, c as _callSuper } from './lit-element-c42ac26e.js';
2
- import { d as defaultVars, c as directionCardsVars } from './variables-0db5ef1b.js';
2
+ import { d as defaultVars, c as directionCardsVars } from './variables-513bd26a.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"])));
@@ -49,10 +49,18 @@ var videoRecorder = {
49
49
  },
50
50
  rotationWhileCapturingErrorMessage: "Please don't rotate the device during acquisition.",
51
51
  activeChallengeMessages: {
52
- rotateLeft: 'Turn head to the <strong font-size: 18px">left</strong>',
53
- rotateRight: 'Turn head to the <strong font-size: 18px">right</strong>',
54
- rotateUp: 'Turn head <strong font-size: 18px">up</strong>',
55
- rotateDown: 'Turn head <strong font-size: 18px">down</strong>'
52
+ rotateLeft: 'Turn head to the <strong style="font-size: 18px">left</strong>',
53
+ rotateRight: 'Turn head to the <strong style="font-size: 18px">right</strong>',
54
+ rotateUp: 'Turn head <strong style="font-size: 18px">up</strong>',
55
+ rotateDown: 'Turn head <strong style="font-size: 18px">down</strong>'
56
+ },
57
+ accessibility: {
58
+ flipCamera: "Switch camera",
59
+ turnLeft: "Turn left",
60
+ turnRight: "Turn right",
61
+ turnUp: "Turn up",
62
+ turnDown: "Turn down",
63
+ videoFeed: "Camera feed for identity verification"
56
64
  }
57
65
  };
58
66
  var pictureRecorder = {
@@ -1,7 +1,9 @@
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-c42ac26e.js';
2
- import { E as EN } from './en-57f1198e.js';
3
- import { f as fileUploadVars } from './variables-0db5ef1b.js';
4
- import { c as commonjsGlobal } from './_commonjsHelpers-02146103.js';
1
+ import { i, d as _taggedTemplateLiteral, _ as _inherits, a as _createClass, h as _superPropGet, x, s, b as _classCallCheck, c as _callSuper, e as _objectSpread2, f as _asyncToGenerator, g as _regenerator } from './lit-element-c42ac26e.js';
2
+ import { E as EN } from './en-27ff3a75.js';
3
+ import { f as fileUploadVars } from './variables-513bd26a.js';
4
+ import { K as KEY_ENTER, a as KEY_SPACE } from './utils-1f156bdf.js';
5
+
6
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
5
7
 
6
8
  var heic2any$1 = {exports: {}};
7
9
 
@@ -296,11 +298,23 @@ var FileUpload = /*#__PURE__*/function (_LitElement) {
296
298
  _this.strings = _objectSpread2({}, defaultStrings);
297
299
  _this.error = "";
298
300
  _this.inited = false;
301
+ _this.handleKeyboardSelection = function (e) {
302
+ if (e.code === KEY_ENTER || e.code === KEY_SPACE) {
303
+ _this.handleClick();
304
+ }
305
+ };
299
306
  _this.handleFileSelection = _this.handleFileSelection.bind(_this);
300
307
  return _this;
301
308
  }
302
309
  _inherits(FileUpload, _LitElement);
303
310
  return _createClass(FileUpload, [{
311
+ key: "connectedCallback",
312
+ value: function connectedCallback() {
313
+ _superPropGet(FileUpload, "connectedCallback", this, 3)([]);
314
+ this.setAttribute("tabindex", "0");
315
+ this.addEventListener("keydown", this.handleKeyboardSelection);
316
+ }
317
+ }, {
304
318
  key: "validateFile",
305
319
  value: function validateFile(type, size) {
306
320
  var error = "";
@@ -408,6 +422,12 @@ var FileUpload = /*#__PURE__*/function (_LitElement) {
408
422
  value: function updated() {
409
423
  if (!this.inited) this.init();
410
424
  }
425
+ }, {
426
+ key: "disconnectedCallback",
427
+ value: function disconnectedCallback() {
428
+ _superPropGet(FileUpload, "disconnectedCallback", this, 3)([]);
429
+ this.removeEventListener("keydown", this.handleKeyboardSelection);
430
+ }
411
431
  }, {
412
432
  key: "render",
413
433
  value: function render() {
@@ -435,7 +455,7 @@ FileUpload.properties = {
435
455
  state: true
436
456
  }
437
457
  };
438
- FileUpload.styles = i(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n #drop-zone {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: ", ";\n text-align: center;\n\n width: ", ";\n height: ", ";\n border: ", ";\n background-color: ", ";\n\n cursor: pointer;\n }\n\n .text {\n color: ", ";\n font-size: ", ";\n }\n\n .error {\n display: inline-block;\n margin-top: 40px;\n color: ", ";\n font-size: ", ";\n }\n "])), fileUploadVars.padding, fileUploadVars.width, fileUploadVars.height, fileUploadVars.border, fileUploadVars.backgroundColor, fileUploadVars.textColor, fileUploadVars.textFontSize, fileUploadVars.errorTextColor, fileUploadVars.errorTextFontSize);
458
+ FileUpload.styles = i(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n #drop-zone {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: ", ";\n text-align: center;\n\n width: ", ";\n height: ", ";\n border: ", ";\n background-color: ", ";\n\n cursor: pointer;\n }\n\n :host(:focus) #drop-zone {\n outline: ", ";\n }\n\n .text {\n color: ", ";\n font-size: ", ";\n }\n\n .error {\n display: inline-block;\n margin-top: 40px;\n color: ", ";\n font-size: ", ";\n }\n "])), fileUploadVars.padding, fileUploadVars.width, fileUploadVars.height, fileUploadVars.border, fileUploadVars.backgroundColor, fileUploadVars.focusOutline, fileUploadVars.textColor, fileUploadVars.textFontSize, fileUploadVars.errorTextColor, fileUploadVars.errorTextFontSize);
439
459
  customElements.define("uni-file-upload", FileUpload);
440
460
 
441
461
  export { FileUpload };
@@ -2,12 +2,12 @@ import { _ as _inherits, a as _createClass, x, d as _taggedTemplateLiteral, s, b
2
2
  import { selfieCaptureStrings } from './selfie-capture.js';
3
3
  import { referenceCaptureStrings } from './reference-capture.js';
4
4
  import './button.js';
5
- import './en-57f1198e.js';
6
- import './video-recorder-f89d5b58.js';
7
- import './_commonjsHelpers-02146103.js';
8
- import './variables-0db5ef1b.js';
5
+ import './en-27ff3a75.js';
6
+ import './video-recorder-c4fd102c.js';
7
+ import './variables-513bd26a.js';
8
+ import './utils-1f156bdf.js';
9
9
  import './video-record-directions.js';
10
- import './direction-card-fd8d8d8b.js';
10
+ import './direction-card-88c5d34f.js';
11
11
  import './image-capture-directions.js';
12
12
  import './file-upload.js';
13
13
  import './picture-recorder.js';
@@ -1,7 +1,7 @@
1
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-c42ac26e.js';
2
- import { d as directionsStyle } from './direction-card-fd8d8d8b.js';
3
- import { d as defaultVars } from './variables-0db5ef1b.js';
4
- import { E as EN } from './en-57f1198e.js';
2
+ import { d as directionsStyle } from './direction-card-88c5d34f.js';
3
+ import { d as defaultVars } from './variables-513bd26a.js';
4
+ import { E as EN } from './en-27ff3a75.js';
5
5
 
6
6
  var _templateObject$3;
7
7
  var FaceCardPicto = /*#__PURE__*/function (_LitElement) {
package/dist/index.d.ts CHANGED
@@ -125,6 +125,14 @@ declare const EN: {
125
125
  rotateUp: string;
126
126
  rotateDown: string;
127
127
  };
128
+ accessibility: {
129
+ flipCamera: string;
130
+ turnLeft: string;
131
+ turnRight: string;
132
+ turnUp: string;
133
+ turnDown: string;
134
+ videoFeed: string;
135
+ };
128
136
  };
129
137
  pictureRecorder: {
130
138
  capture: string;
@@ -215,6 +223,14 @@ declare const EN: {
215
223
  rotateUp: string;
216
224
  rotateDown: string;
217
225
  };
226
+ accessibility: {
227
+ flipCamera: string;
228
+ turnLeft: string;
229
+ turnRight: string;
230
+ turnUp: string;
231
+ turnDown: string;
232
+ videoFeed: string;
233
+ };
218
234
  };
219
235
  };
220
236
  referenceCapture: {
@@ -276,6 +292,14 @@ declare const EN: {
276
292
  rotateUp: string;
277
293
  rotateDown: string;
278
294
  };
295
+ accessibility: {
296
+ flipCamera: string;
297
+ turnLeft: string;
298
+ turnRight: string;
299
+ turnUp: string;
300
+ turnDown: string;
301
+ videoFeed: string;
302
+ };
279
303
  };
280
304
  pictureRecorder: {
281
305
  capture: string;
@@ -289,6 +313,25 @@ declare const EN: {
289
313
  };
290
314
  type I18n = typeof EN;
291
315
 
316
+ type SdkNotification = {
317
+ message: string;
318
+ type: "info" | "error";
319
+ };
320
+ type NotificationCallback = (notification: SdkNotification) => void;
321
+ declare class NotificationThrottler {
322
+ private nextNotification;
323
+ private isProcessing;
324
+ private readRate;
325
+ private readonly notificationCallback;
326
+ private readonly targetElement;
327
+ constructor(notificationCallback: NotificationCallback, readRate: number | undefined, targetElement: HTMLElement);
328
+ setReadRate(rate: number): void;
329
+ private execAndDelay;
330
+ private processCycleEnd;
331
+ getIsProcessing(): boolean;
332
+ sendNotification(notification: SdkNotification): void;
333
+ }
334
+
292
335
  declare class Recorder extends LitElement {
293
336
  session: UnisseySession | null;
294
337
  sessionPromise: Promise<void> | null;
@@ -341,6 +384,14 @@ declare class Recorder extends LitElement {
341
384
  rotateUp: string;
342
385
  rotateDown: string;
343
386
  };
387
+ accessibility: {
388
+ flipCamera: string;
389
+ turnLeft: string;
390
+ turnRight: string;
391
+ turnUp: string;
392
+ turnDown: string;
393
+ videoFeed: string;
394
+ };
344
395
  };
345
396
  strings: Partial<typeof EN.videoRecorder>;
346
397
  captureButtonPicto: lit_html.TemplateResult<1>;
@@ -350,6 +401,7 @@ declare class Recorder extends LitElement {
350
401
  disconnected: boolean;
351
402
  initSessionInprogress: boolean;
352
403
  hints: HintType;
404
+ internalHints: HintType | undefined;
353
405
  error: string;
354
406
  sdkJsStatus: StatusEvent;
355
407
  willRetryCapture: boolean;
@@ -447,6 +499,7 @@ declare class Recorder extends LitElement {
447
499
  state: boolean;
448
500
  };
449
501
  };
502
+ notificationThrotler: NotificationThrottler;
450
503
  constructor();
451
504
  retryCapture(): Promise<void>;
452
505
  capture(): Promise<void>;
@@ -552,6 +605,8 @@ declare class FileUpload extends LitElement {
552
605
  error: string;
553
606
  inited: boolean;
554
607
  constructor();
608
+ connectedCallback(): void;
609
+ handleKeyboardSelection: (e: KeyboardEvent) => void;
555
610
  static properties: {
556
611
  supportedTypes: {
557
612
  attribute: string;
@@ -580,6 +635,7 @@ declare class FileUpload extends LitElement {
580
635
  handleClick(): void;
581
636
  init(): void;
582
637
  updated(): void;
638
+ disconnectedCallback(): void;
583
639
  static styles: lit.CSSResult;
584
640
  render(): lit_html.TemplateResult<1>;
585
641
  }
@@ -698,6 +754,14 @@ declare const selfieCaptureStrings: {
698
754
  rotateUp: string;
699
755
  rotateDown: string;
700
756
  };
757
+ accessibility: {
758
+ flipCamera: string;
759
+ turnLeft: string;
760
+ turnRight: string;
761
+ turnUp: string;
762
+ turnDown: string;
763
+ videoFeed: string;
764
+ };
701
765
  };
702
766
  };
703
767
  type RecorderOptions$1 = Partial<{
@@ -863,6 +927,14 @@ declare const referenceCaptureStrings: {
863
927
  rotateUp: string;
864
928
  rotateDown: string;
865
929
  };
930
+ accessibility: {
931
+ flipCamera: string;
932
+ turnLeft: string;
933
+ turnRight: string;
934
+ turnUp: string;
935
+ turnDown: string;
936
+ videoFeed: string;
937
+ };
866
938
  };
867
939
  pictureRecorder: {
868
940
  capture: string;
@@ -1017,6 +1089,14 @@ declare const fullCaptureStrings: {
1017
1089
  rotateUp: string;
1018
1090
  rotateDown: string;
1019
1091
  };
1092
+ accessibility: {
1093
+ flipCamera: string;
1094
+ turnLeft: string;
1095
+ turnRight: string;
1096
+ turnUp: string;
1097
+ turnDown: string;
1098
+ videoFeed: string;
1099
+ };
1020
1100
  };
1021
1101
  pictureRecorder: {
1022
1102
  capture: string;
@@ -1081,6 +1161,14 @@ declare const fullCaptureStrings: {
1081
1161
  rotateUp: string;
1082
1162
  rotateDown: string;
1083
1163
  };
1164
+ accessibility: {
1165
+ flipCamera: string;
1166
+ turnLeft: string;
1167
+ turnRight: string;
1168
+ turnUp: string;
1169
+ turnDown: string;
1170
+ videoFeed: string;
1171
+ };
1084
1172
  };
1085
1173
  };
1086
1174
  };
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export { Button } from './button.js';
2
- import { R as Recorder } from './video-recorder-f89d5b58.js';
3
- export { A as Animation, C as CameraVideoOutlinedIcon, O as OverlayHints } from './video-recorder-f89d5b58.js';
2
+ import { R as Recorder } from './video-recorder-c4fd102c.js';
3
+ export { A as Animation, C as CameraVideoOutlinedIcon, O as OverlayHints } from './video-recorder-c4fd102c.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';
@@ -11,10 +11,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-fd8d8d8b.js';
15
- export { E as EN } from './en-57f1198e.js';
16
- import './variables-0db5ef1b.js';
17
- import './_commonjsHelpers-02146103.js';
14
+ export { D as DirectionCard } from './direction-card-88c5d34f.js';
15
+ export { E as EN } from './en-27ff3a75.js';
16
+ import './variables-513bd26a.js';
17
+ import './utils-1f156bdf.js';
18
18
 
19
19
  // @ts-ignore
20
20
 
@@ -60,10 +60,18 @@ var videoRecorder = {
60
60
  },
61
61
  rotationWhileCapturingErrorMessage: "Veuillez ne pas tourner l'appareil pendant l'acquisition.",
62
62
  activeChallengeMessages: {
63
- rotateLeft: 'Tournez la tête à <strong font-size: 18px">gauche</strong>',
64
- rotateRight: 'Tournez la tête à <strong font-size: 18px">droite</strong>',
65
- rotateUp: 'Pivotez la tête en <strong font-size: 18px">haut</strong>',
66
- rotateDown: 'Pivotez la tête en <strong font-size: 18px">bas</strong>'
63
+ rotateLeft: 'Tournez la tête à <strong style="font-size: 18px">gauche</strong>',
64
+ rotateRight: 'Tournez la tête à <strong style="font-size: 18px">droite</strong>',
65
+ rotateUp: 'Pivotez la tête en <strong style="font-size: 18px">haut</strong>',
66
+ rotateDown: 'Pivotez la tête en <strong style="font-size: 18px">bas</strong>'
67
+ },
68
+ accessibility: {
69
+ flipCamera: "Changer de caméra",
70
+ turnLeft: "Tourner à gauche",
71
+ turnRight: "Tourner à droite",
72
+ turnUp: "Tourner vers le haut",
73
+ turnDown: "Tourner vers le bas",
74
+ videoFeed: "Flux caméra pour la vérification d'identité"
67
75
  }
68
76
  };
69
77
  var pictureRecorder = {
@@ -1,5 +1,5 @@
1
1
  import { _ as _inherits, a as _createClass, x, d as _taggedTemplateLiteral, s, b as _classCallCheck, c as _callSuper, i, e as _objectSpread2, f as _asyncToGenerator, g as _regenerator, h as _superPropGet } from './lit-element-c42ac26e.js';
2
- import { E as EN } from './en-57f1198e.js';
2
+ import { E as EN } from './en-27ff3a75.js';
3
3
 
4
4
  var _templateObject$2;
5
5
  var RotateLeftIcon = /*#__PURE__*/function (_LitElement) {
@@ -1,9 +1,9 @@
1
1
  import { _ as _inherits, a as _createClass, x, d as _taggedTemplateLiteral, s, b as _classCallCheck, c as _callSuper, e as _objectSpread2 } from './lit-element-c42ac26e.js';
2
- import { R as Recorder, b as buildPacked } from './video-recorder-f89d5b58.js';
3
- import { E as EN } from './en-57f1198e.js';
4
- import './_commonjsHelpers-02146103.js';
5
- import './variables-0db5ef1b.js';
2
+ import { R as Recorder, b as buildPacked } from './video-recorder-c4fd102c.js';
3
+ import { E as EN } from './en-27ff3a75.js';
4
+ import './variables-513bd26a.js';
6
5
  import './button.js';
6
+ import './utils-1f156bdf.js';
7
7
 
8
8
  var _templateObject$1;
9
9
  var PhotoCameraIcon = /*#__PURE__*/function (_LitElement) {
@@ -3,11 +3,11 @@ import './button.js';
3
3
  import './image-capture-directions.js';
4
4
  import './file-upload.js';
5
5
  import './picture-recorder.js';
6
- import { b as buildPacked } from './video-recorder-f89d5b58.js';
7
- import { E as EN } from './en-57f1198e.js';
8
- import { a as referenceCaptureVars } from './variables-0db5ef1b.js';
9
- import './direction-card-fd8d8d8b.js';
10
- import './_commonjsHelpers-02146103.js';
6
+ import { b as buildPacked } from './video-recorder-c4fd102c.js';
7
+ import { E as EN } from './en-27ff3a75.js';
8
+ import { a as referenceCaptureVars } from './variables-513bd26a.js';
9
+ import './direction-card-88c5d34f.js';
10
+ import './utils-1f156bdf.js';
11
11
 
12
12
  var _templateObject$1;
13
13
  var UploadIcon = /*#__PURE__*/function (_LitElement) {
@@ -1,7 +1,7 @@
1
1
  import { _ as _inherits, a as _createClass, x, d as _taggedTemplateLiteral, s, b as _classCallCheck, c as _callSuper, i } from './lit-element-c42ac26e.js';
2
2
  import './button.js';
3
- import { d as defaultVars, r as retryResultVars } from './variables-0db5ef1b.js';
4
- import { E as EN } from './en-57f1198e.js';
3
+ import { d as defaultVars, r as retryResultVars } from './variables-513bd26a.js';
4
+ import { E as EN } from './en-27ff3a75.js';
5
5
 
6
6
  var _templateObject$3;
7
7
  var GenericHintIcon = /*#__PURE__*/function (_LitElement) {
@@ -1,11 +1,11 @@
1
1
  import { _ as _inherits, a as _createClass, x, d as _taggedTemplateLiteral, s, b as _classCallCheck, c as _callSuper, i } from './lit-element-c42ac26e.js';
2
- import { E as EN } from './en-57f1198e.js';
3
- import { b as buildPacked } from './video-recorder-f89d5b58.js';
2
+ import { E as EN } from './en-27ff3a75.js';
3
+ import { b as buildPacked } from './video-recorder-c4fd102c.js';
4
4
  import './video-record-directions.js';
5
5
  import './button.js';
6
- import { s as selfieCaptureVars } from './variables-0db5ef1b.js';
7
- import './_commonjsHelpers-02146103.js';
8
- import './direction-card-fd8d8d8b.js';
6
+ import { s as selfieCaptureVars } from './variables-513bd26a.js';
7
+ import './utils-1f156bdf.js';
8
+ import './direction-card-88c5d34f.js';
9
9
 
10
10
  var _templateObject$1;
11
11
  var BackArrowIcon = /*#__PURE__*/function (_LitElement) {
@@ -0,0 +1,15 @@
1
+ var KEY_ENTER = "Enter";
2
+ var KEY_SPACE = "Space";
3
+
4
+ //add new isMobileDevice() function from sdk-js;
5
+ function isMobileDevice() {
6
+ var navigator = window.navigator;
7
+ var check = false;
8
+ (function (a) {
9
+ if (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(a.substr(0, 4))) check = true;
10
+ // @ts-ignore ('window.opera' is not officially defined. Actually only on Opera.)
11
+ })(navigator.userAgent || navigator.vendor || window.opera);
12
+ return check;
13
+ }
14
+
15
+ export { KEY_ENTER as K, KEY_SPACE as a, isMobileDevice as i };
@@ -1,6 +1,6 @@
1
1
  import { i, d as _taggedTemplateLiteral } from './lit-element-c42ac26e.js';
2
2
 
3
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44, _templateObject45, _templateObject46, _templateObject47, _templateObject48, _templateObject49, _templateObject50, _templateObject51, _templateObject52, _templateObject53, _templateObject54, _templateObject55, _templateObject56, _templateObject57, _templateObject58, _templateObject59, _templateObject60, _templateObject61, _templateObject62, _templateObject63, _templateObject64, _templateObject65, _templateObject66, _templateObject67, _templateObject68, _templateObject69, _templateObject70, _templateObject71, _templateObject72, _templateObject73, _templateObject74, _templateObject75;
3
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44, _templateObject45, _templateObject46, _templateObject47, _templateObject48, _templateObject49, _templateObject50, _templateObject51, _templateObject52, _templateObject53, _templateObject54, _templateObject55, _templateObject56, _templateObject57, _templateObject58, _templateObject59, _templateObject60, _templateObject61, _templateObject62, _templateObject63, _templateObject64, _templateObject65, _templateObject66, _templateObject67, _templateObject68, _templateObject69, _templateObject70, _templateObject71, _templateObject72, _templateObject73, _templateObject74, _templateObject75, _templateObject76, _templateObject77;
4
4
  var recorderVars = {
5
5
  borderRadius: i(_templateObject || (_templateObject = _taggedTemplateLiteral(["var(--uni-recorder-border-radius, 10px)"]))),
6
6
  buttonsMargin: i(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["var(--uni-recorder-buttons-margin, 30px 0)"]))),
@@ -59,42 +59,44 @@ var fileUploadVars = {
59
59
  width: i(_templateObject43 || (_templateObject43 = _taggedTemplateLiteral(["var(--uni-file-upload-width, 80%)"]))),
60
60
  height: i(_templateObject44 || (_templateObject44 = _taggedTemplateLiteral(["var(--uni-file-upload-height, 80%)"]))),
61
61
  border: i(_templateObject45 || (_templateObject45 = _taggedTemplateLiteral(["var(--uni-file-upload-border, dashed 2px #eee)"]))),
62
- backgroundColor: i(_templateObject46 || (_templateObject46 = _taggedTemplateLiteral(["var(--uni-file-upload-bg-color, #fafafa)"]))),
63
- textColor: i(_templateObject47 || (_templateObject47 = _taggedTemplateLiteral(["var(--uni-file-upload-txt-color, #ccc)"]))),
64
- textFontSize: i(_templateObject48 || (_templateObject48 = _taggedTemplateLiteral(["var(--uni-file-upload-txt-font-size, 20px)"]))),
65
- errorTextColor: i(_templateObject49 || (_templateObject49 = _taggedTemplateLiteral(["var(--uni-file-upload-err-txt-color, #333)"]))),
66
- errorTextFontSize: i(_templateObject50 || (_templateObject50 = _taggedTemplateLiteral(["var(--uni-file-upload-err-txt-font-size, 16px)"])))
62
+ focusOutline: i(_templateObject46 || (_templateObject46 = _taggedTemplateLiteral(["var(--uni-file-upload-focus-outline, 2px solid #3b54f0)"]))),
63
+ backgroundColor: i(_templateObject47 || (_templateObject47 = _taggedTemplateLiteral(["var(--uni-file-upload-bg-color, #fafafa)"]))),
64
+ textColor: i(_templateObject48 || (_templateObject48 = _taggedTemplateLiteral(["var(--uni-file-upload-txt-color, #ccc)"]))),
65
+ textFontSize: i(_templateObject49 || (_templateObject49 = _taggedTemplateLiteral(["var(--uni-file-upload-txt-font-size, 20px)"]))),
66
+ errorTextColor: i(_templateObject50 || (_templateObject50 = _taggedTemplateLiteral(["var(--uni-file-upload-err-txt-color, #333)"]))),
67
+ errorTextFontSize: i(_templateObject51 || (_templateObject51 = _taggedTemplateLiteral(["var(--uni-file-upload-err-txt-font-size, 16px)"])))
67
68
  };
68
69
  var buttonsVars = {
69
- padding: i(_templateObject51 || (_templateObject51 = _taggedTemplateLiteral(["var(--uni-btn-padding, 8px 15px)"]))),
70
- border: i(_templateObject52 || (_templateObject52 = _taggedTemplateLiteral(["var(--uni-btn-border, solid 1px)"]))),
71
- borderRadius: i(_templateObject53 || (_templateObject53 = _taggedTemplateLiteral(["var(--uni-btn-border-radius, 7px)"]))),
72
- fontSize: i(_templateObject54 || (_templateObject54 = _taggedTemplateLiteral(["var(--uni-btn-font-size, 14px)"]))),
73
- textTransform: i(_templateObject55 || (_templateObject55 = _taggedTemplateLiteral(["var(--uni-btn-text-transform, normal)"]))),
74
- outlinedBorders: i(_templateObject56 || (_templateObject56 = _taggedTemplateLiteral(["var(--uni-btn-border-outlined, solid 1px)"]))),
75
- btnLabelMargin: i(_templateObject57 || (_templateObject57 = _taggedTemplateLiteral(["var(--uni-btn-label-margin, 10px 0px)"]))),
76
- btnDisabledBgColor: i(_templateObject58 || (_templateObject58 = _taggedTemplateLiteral(["var(--uni-btn-disabled-bg-color, #eee)"]))),
77
- smWidth: i(_templateObject59 || (_templateObject59 = _taggedTemplateLiteral(["var(--uni-btn-sm-width, 250px)"])))
70
+ padding: i(_templateObject52 || (_templateObject52 = _taggedTemplateLiteral(["var(--uni-btn-padding, 8px 15px)"]))),
71
+ border: i(_templateObject53 || (_templateObject53 = _taggedTemplateLiteral(["var(--uni-btn-border, solid 1px)"]))),
72
+ borderRadius: i(_templateObject54 || (_templateObject54 = _taggedTemplateLiteral(["var(--uni-btn-border-radius, 7px)"]))),
73
+ fontSize: i(_templateObject55 || (_templateObject55 = _taggedTemplateLiteral(["var(--uni-btn-font-size, 14px)"]))),
74
+ focusOutline: i(_templateObject56 || (_templateObject56 = _taggedTemplateLiteral(["var(--uni-btn-focus-outline, 3px solid #3b54f0)"]))),
75
+ textTransform: i(_templateObject57 || (_templateObject57 = _taggedTemplateLiteral(["var(--uni-btn-text-transform, normal)"]))),
76
+ outlinedBorders: i(_templateObject58 || (_templateObject58 = _taggedTemplateLiteral(["var(--uni-btn-border-outlined, solid 1px)"]))),
77
+ btnLabelMargin: i(_templateObject59 || (_templateObject59 = _taggedTemplateLiteral(["var(--uni-btn-label-margin, 10px 0px)"]))),
78
+ btnDisabledBgColor: i(_templateObject60 || (_templateObject60 = _taggedTemplateLiteral(["var(--uni-btn-disabled-bg-color, #eee)"]))),
79
+ smWidth: i(_templateObject61 || (_templateObject61 = _taggedTemplateLiteral(["var(--uni-btn-sm-width, 250px)"])))
78
80
  };
79
81
  var directionCardsVars = {
80
- padding: i(_templateObject60 || (_templateObject60 = _taggedTemplateLiteral(["var(--uni-card-padding, 8px 4%)"]))),
81
- margin: i(_templateObject61 || (_templateObject61 = _taggedTemplateLiteral(["var(--uni-card-margin, 0px)"]))),
82
- width: i(_templateObject62 || (_templateObject62 = _taggedTemplateLiteral(["var(--uni-card-width, 92%)"]))),
83
- radius: i(_templateObject63 || (_templateObject63 = _taggedTemplateLiteral(["var(--uni-card-border-radius, 20px)"]))),
84
- fontSize: i(_templateObject64 || (_templateObject64 = _taggedTemplateLiteral(["var(--uni-card-font-size, 16px)"]))),
85
- fontWeight: i(_templateObject65 || (_templateObject65 = _taggedTemplateLiteral(["var(--uni-card-font-weight, normal)"]))),
86
- textMarginLeft: i(_templateObject66 || (_templateObject66 = _taggedTemplateLiteral(["var(--uni-card-text-margin-left, 25px)"]))),
87
- iconHeight: i(_templateObject67 || (_templateObject67 = _taggedTemplateLiteral(["var(--uni-card-icon-height, 55px)"]))),
88
- iconWidth: i(_templateObject68 || (_templateObject68 = _taggedTemplateLiteral(["var(--uni-card-icon-width, auto)"]))),
89
- backgroundColor: i(_templateObject69 || (_templateObject69 = _taggedTemplateLiteral(["var(--uni-card-bg-color, #f2f5f8)"])))
82
+ padding: i(_templateObject62 || (_templateObject62 = _taggedTemplateLiteral(["var(--uni-card-padding, 8px 4%)"]))),
83
+ margin: i(_templateObject63 || (_templateObject63 = _taggedTemplateLiteral(["var(--uni-card-margin, 0px)"]))),
84
+ width: i(_templateObject64 || (_templateObject64 = _taggedTemplateLiteral(["var(--uni-card-width, 92%)"]))),
85
+ radius: i(_templateObject65 || (_templateObject65 = _taggedTemplateLiteral(["var(--uni-card-border-radius, 20px)"]))),
86
+ fontSize: i(_templateObject66 || (_templateObject66 = _taggedTemplateLiteral(["var(--uni-card-font-size, 16px)"]))),
87
+ fontWeight: i(_templateObject67 || (_templateObject67 = _taggedTemplateLiteral(["var(--uni-card-font-weight, normal)"]))),
88
+ textMarginLeft: i(_templateObject68 || (_templateObject68 = _taggedTemplateLiteral(["var(--uni-card-text-margin-left, 25px)"]))),
89
+ iconHeight: i(_templateObject69 || (_templateObject69 = _taggedTemplateLiteral(["var(--uni-card-icon-height, 55px)"]))),
90
+ iconWidth: i(_templateObject70 || (_templateObject70 = _taggedTemplateLiteral(["var(--uni-card-icon-width, auto)"]))),
91
+ backgroundColor: i(_templateObject71 || (_templateObject71 = _taggedTemplateLiteral(["var(--uni-card-bg-color, #f2f5f8)"])))
90
92
  };
91
93
  var retryResultVars = {
92
- retriesColor: i(_templateObject70 || (_templateObject70 = _taggedTemplateLiteral(["var(--uni-retry-result-retries-color, grey)"]))),
93
- fontSizeMd: i(_templateObject71 || (_templateObject71 = _taggedTemplateLiteral(["var(--uni-retry-result-font-size-md, 22px)"]))),
94
- lineHeightMd: i(_templateObject72 || (_templateObject72 = _taggedTemplateLiteral(["var(--uni-retry-result-line-height-md, 24px)"]))),
95
- fontSizeSm: i(_templateObject73 || (_templateObject73 = _taggedTemplateLiteral(["var(--uni-retry-result-font-size-sm, 16px)"]))),
96
- lineHeightSm: i(_templateObject74 || (_templateObject74 = _taggedTemplateLiteral(["var(--uni-retry-result-line-height-sm, 18px)"]))),
97
- iconWidth: i(_templateObject75 || (_templateObject75 = _taggedTemplateLiteral(["var(--uni-retry-result-icon-width, 150px)"])))
94
+ retriesColor: i(_templateObject72 || (_templateObject72 = _taggedTemplateLiteral(["var(--uni-retry-result-retries-color, grey)"]))),
95
+ fontSizeMd: i(_templateObject73 || (_templateObject73 = _taggedTemplateLiteral(["var(--uni-retry-result-font-size-md, 22px)"]))),
96
+ lineHeightMd: i(_templateObject74 || (_templateObject74 = _taggedTemplateLiteral(["var(--uni-retry-result-line-height-md, 24px)"]))),
97
+ fontSizeSm: i(_templateObject75 || (_templateObject75 = _taggedTemplateLiteral(["var(--uni-retry-result-font-size-sm, 16px)"]))),
98
+ lineHeightSm: i(_templateObject76 || (_templateObject76 = _taggedTemplateLiteral(["var(--uni-retry-result-line-height-sm, 18px)"]))),
99
+ iconWidth: i(_templateObject77 || (_templateObject77 = _taggedTemplateLiteral(["var(--uni-retry-result-icon-width, 150px)"])))
98
100
  };
99
101
 
100
102
  export { referenceCaptureVars as a, recorderVars as b, directionCardsVars as c, defaultVars as d, buttonsVars as e, fileUploadVars as f, retryResultVars as r, selfieCaptureVars as s };
@@ -1,7 +1,7 @@
1
1
  import { _ as _inherits, a as _createClass, x, d as _taggedTemplateLiteral, s, b as _classCallCheck, c as _callSuper, e as _objectSpread2 } from './lit-element-c42ac26e.js';
2
- import { d as directionsStyle } from './direction-card-fd8d8d8b.js';
3
- import { d as defaultVars } from './variables-0db5ef1b.js';
4
- import { E as EN } from './en-57f1198e.js';
2
+ import { d as directionsStyle } from './direction-card-88c5d34f.js';
3
+ import { d as defaultVars } from './variables-513bd26a.js';
4
+ import { E as EN } from './en-27ff3a75.js';
5
5
 
6
6
  var _templateObject$4;
7
7
  var LightPicto = /*#__PURE__*/function (_LitElement) {