@unissey-web/web-components 5.0.0-beta.5 → 5.0.0-beta.6
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 +1 -1
- package/dist/{direction-card-143ab05d.js → direction-card-5904f865.js} +1 -1
- package/dist/file-upload.js +1 -1
- package/dist/full-capture.js +5 -5
- package/dist/image-capture-directions.js +2 -2
- package/dist/index.d.ts +2 -8
- package/dist/index.js +4 -4
- package/dist/picture-recorder.js +2 -2
- package/dist/reference-capture.js +4 -4
- package/dist/retry-result.js +1 -1
- package/dist/selfie-capture.js +5 -5
- package/dist/{variables-be2b795f.js → variables-c07a8719.js} +64 -63
- package/dist/video-record-directions.js +2 -2
- package/dist/video-recorder-46c15f8e.js +1177 -0
- package/dist/video-recorder.js +2 -2
- package/package.json +2 -2
- package/dist/video-recorder-40306157.js +0 -1222
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-83035a6f.js';
|
|
2
|
-
import { e as buttonsVars, d as defaultVars } from './variables-
|
|
2
|
+
import { e as buttonsVars, d as defaultVars } from './variables-c07a8719.js';
|
|
3
3
|
|
|
4
4
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
5
5
|
var Button = /*#__PURE__*/function (_LitElement) {
|
|
@@ -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-83035a6f.js';
|
|
2
|
-
import { d as defaultVars, c as directionCardsVars } from './variables-
|
|
2
|
+
import { d as defaultVars, c as directionCardsVars } from './variables-c07a8719.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"])));
|
package/dist/file-upload.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
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
2
|
import { E as EN } from './en-066d960b.js';
|
|
3
|
-
import { f as fileUploadVars } from './variables-
|
|
3
|
+
import { f as fileUploadVars } from './variables-c07a8719.js';
|
|
4
4
|
import { c as commonjsGlobal } from './_commonjsHelpers-02146103.js';
|
|
5
5
|
|
|
6
6
|
var heic2any$1 = {exports: {}};
|
package/dist/full-capture.js
CHANGED
|
@@ -3,11 +3,11 @@ import { selfieCaptureStrings } from './selfie-capture.js';
|
|
|
3
3
|
import { referenceCaptureStrings } from './reference-capture.js';
|
|
4
4
|
import './button.js';
|
|
5
5
|
import './en-066d960b.js';
|
|
6
|
-
import './video-recorder-
|
|
6
|
+
import './video-recorder-46c15f8e.js';
|
|
7
7
|
import './_commonjsHelpers-02146103.js';
|
|
8
|
-
import './variables-
|
|
8
|
+
import './variables-c07a8719.js';
|
|
9
9
|
import './video-record-directions.js';
|
|
10
|
-
import './direction-card-
|
|
10
|
+
import './direction-card-5904f865.js';
|
|
11
11
|
import './image-capture-directions.js';
|
|
12
12
|
import './file-upload.js';
|
|
13
13
|
import './picture-recorder.js';
|
|
@@ -82,13 +82,13 @@ var FullCapture = /*#__PURE__*/function (_LitElement) {
|
|
|
82
82
|
key: "renderReferenceStep",
|
|
83
83
|
value: function renderReferenceStep() {
|
|
84
84
|
var _this$strings$referen, _this$strings$referen2, _this$strings$referen3;
|
|
85
|
-
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=\"
|
|
85
|
+
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));
|
|
86
86
|
}
|
|
87
87
|
}, {
|
|
88
88
|
key: "renderSelfieStep",
|
|
89
89
|
value: function renderSelfieStep() {
|
|
90
90
|
var _this$strings$selfie, _this$strings$selfie$, _this$strings$selfie2, _this$strings$selfie$2, _this$strings$selfie3;
|
|
91
|
-
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=\"
|
|
91
|
+
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);
|
|
92
92
|
}
|
|
93
93
|
}, {
|
|
94
94
|
key: "render",
|
|
@@ -1,6 +1,6 @@
|
|
|
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-83035a6f.js';
|
|
2
|
-
import { d as directionsStyle } from './direction-card-
|
|
3
|
-
import { d as defaultVars } from './variables-
|
|
2
|
+
import { d as directionsStyle } from './direction-card-5904f865.js';
|
|
3
|
+
import { d as defaultVars } from './variables-c07a8719.js';
|
|
4
4
|
import { E as EN } from './en-066d960b.js';
|
|
5
5
|
|
|
6
6
|
var _templateObject$3;
|
package/dist/index.d.ts
CHANGED
|
@@ -289,10 +289,6 @@ declare const EN: {
|
|
|
289
289
|
};
|
|
290
290
|
type I18n = typeof EN;
|
|
291
291
|
|
|
292
|
-
type InstructionMessage = {
|
|
293
|
-
message: string;
|
|
294
|
-
duration: number;
|
|
295
|
-
};
|
|
296
292
|
declare class Recorder extends LitElement {
|
|
297
293
|
session: UnisseySession | null;
|
|
298
294
|
sessionPromise: Promise<void> | null;
|
|
@@ -444,8 +440,7 @@ declare class Recorder extends LitElement {
|
|
|
444
440
|
private initSession;
|
|
445
441
|
private handleBadFacePos;
|
|
446
442
|
private resetHints;
|
|
447
|
-
private
|
|
448
|
-
private adjustContainerSize;
|
|
443
|
+
private setVideoCustomStyle;
|
|
449
444
|
private displaySpinner;
|
|
450
445
|
private hideSpinner;
|
|
451
446
|
displayError(message?: string): Promise<void>;
|
|
@@ -681,7 +676,6 @@ type RecorderOptions$1 = Partial<{
|
|
|
681
676
|
logLevel: LogLevel$1;
|
|
682
677
|
config: Partial<SessionConfig$1>;
|
|
683
678
|
faceChecker: FaceChecker;
|
|
684
|
-
instructionMessages: InstructionMessage[];
|
|
685
679
|
}>;
|
|
686
680
|
declare class SelfieCapture extends LitElement {
|
|
687
681
|
captureStep: CaptureStep$2;
|
|
@@ -1244,4 +1238,4 @@ interface SessionConfig {
|
|
|
1244
1238
|
};
|
|
1245
1239
|
}
|
|
1246
1240
|
|
|
1247
|
-
export { AcquisitionPreset, ActiveChallengeConfig, Animation, Button, CameraConfig, CameraVideoOutlinedIcon, ColorRGBA, CustomAction, DirectionCard, EN, FR, FaceChecker, FacingMode, FileUpload, FullCapture, IadConfig, IadMode, ImageCaptureDirections,
|
|
1241
|
+
export { AcquisitionPreset, ActiveChallengeConfig, Animation, Button, CameraConfig, CameraVideoOutlinedIcon, ColorRGBA, CustomAction, DirectionCard, EN, FR, FaceChecker, FacingMode, FileUpload, FullCapture, IadConfig, IadMode, ImageCaptureDirections, LogLevel, OverlayColors, OverlayConfig, OverlayDisplayMode, OverlayHints, PictureEditor, PictureRecorder, Recorder, RecorderExt, RecorderOptions$1 as RecorderOptions, RecordingConfig, ReferenceCapture, RetryResult, SelfieCapture, SessionConfig, VideoLength, VideoOrientation, VideoRecordDirections, VideoResolutionPreset };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { Button } from './button.js';
|
|
2
|
-
import { R as Recorder } from './video-recorder-
|
|
3
|
-
export { A as Animation, C as CameraVideoOutlinedIcon, O as OverlayHints } from './video-recorder-
|
|
2
|
+
import { R as Recorder } from './video-recorder-46c15f8e.js';
|
|
3
|
+
export { A as Animation, C as CameraVideoOutlinedIcon, O as OverlayHints } from './video-recorder-46c15f8e.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,9 +11,9 @@ 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-
|
|
14
|
+
export { D as DirectionCard } from './direction-card-5904f865.js';
|
|
15
15
|
export { E as EN } from './en-066d960b.js';
|
|
16
|
-
import './variables-
|
|
16
|
+
import './variables-c07a8719.js';
|
|
17
17
|
import './_commonjsHelpers-02146103.js';
|
|
18
18
|
|
|
19
19
|
// @ts-ignore
|
package/dist/picture-recorder.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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-83035a6f.js';
|
|
2
|
-
import { R as Recorder, b as buildPacked } from './video-recorder-
|
|
2
|
+
import { R as Recorder, b as buildPacked } from './video-recorder-46c15f8e.js';
|
|
3
3
|
import { E as EN } from './en-066d960b.js';
|
|
4
4
|
import './_commonjsHelpers-02146103.js';
|
|
5
|
-
import './variables-
|
|
5
|
+
import './variables-c07a8719.js';
|
|
6
6
|
import './button.js';
|
|
7
7
|
|
|
8
8
|
var _templateObject$1;
|
|
@@ -3,10 +3,10 @@ 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-
|
|
6
|
+
import { b as buildPacked } from './video-recorder-46c15f8e.js';
|
|
7
7
|
import { E as EN } from './en-066d960b.js';
|
|
8
|
-
import { a as referenceCaptureVars } from './variables-
|
|
9
|
-
import './direction-card-
|
|
8
|
+
import { a as referenceCaptureVars } from './variables-c07a8719.js';
|
|
9
|
+
import './direction-card-5904f865.js';
|
|
10
10
|
import './_commonjsHelpers-02146103.js';
|
|
11
11
|
|
|
12
12
|
var _templateObject$1;
|
|
@@ -260,7 +260,7 @@ var ReferenceCapture = /*#__PURE__*/function (_LitElement) {
|
|
|
260
260
|
key: "renderVideoRecord",
|
|
261
261
|
value: function renderVideoRecord() {
|
|
262
262
|
var _this$strings$title3, _this$strings$videoRe, _this$strings$videoRe2, _this$recorderOptions2, _this$strings$back3;
|
|
263
|
-
return x(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n <div class=\"box\">\n <h1 class=\"title\">", "</h1>\n <span class=\"subtitle\">", "</span>\n\n <div class=\"recorder v-space\">\n <uni-video-recorder\n id=\"uni-video-recorder\"\n strings=\"", "\"\n preset=\"", "\"\n log-level=\"", "\"\n face-checker=\"disabled\"\n @record=\"", "\"\n @recorderReady=\"", "\"\n @recordCompleted=\"", "\"\n @recordStarting=\"", "\"\n @recordCapturing=\"", "\"\n @recordInterrupted=\"", "\"\n ?hide-capture-btn=", "\n ?disable-debug-mode=", "\n >\n <
|
|
263
|
+
return x(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n <div class=\"box\">\n <h1 class=\"title\">", "</h1>\n <span class=\"subtitle\">", "</span>\n\n <div class=\"recorder v-space\">\n <uni-video-recorder\n id=\"uni-video-recorder\"\n strings=\"", "\"\n preset=\"", "\"\n log-level=\"", "\"\n face-checker=\"disabled\"\n @record=\"", "\"\n @recorderReady=\"", "\"\n @recordCompleted=\"", "\"\n @recordStarting=\"", "\"\n @recordCapturing=\"", "\"\n @recordInterrupted=\"", "\"\n ?hide-capture-btn=", "\n ?disable-debug-mode=", "\n >\n <div slot=\"left\">\n <uni-button variant=\"outlined\" @click=\"", "\">\n <uni-back-arrow-icon slot=\"icon\"></uni-back-arrow-icon>\n ", "\n </uni-button>\n </div>\n </uni-video-recorder>\n </div>\n </div>\n "])), (_this$strings$title3 = this.strings.title) !== null && _this$strings$title3 !== void 0 ? _this$strings$title3 : referenceCaptureStrings.title, (_this$strings$videoRe = this.strings.videoRecordSubtitle) !== null && _this$strings$videoRe !== void 0 ? _this$strings$videoRe : referenceCaptureStrings.videoRecordSubtitle, JSON.stringify((_this$strings$videoRe2 = this.strings.videoRecorder) !== null && _this$strings$videoRe2 !== void 0 ? _this$strings$videoRe2 : referenceCaptureStrings.videoRecorder), buildPacked.exports.AcquisitionPreset.DOC_VIDEO, (_this$recorderOptions2 = this.recorderOptions) === null || _this$recorderOptions2 === void 0 ? void 0 : _this$recorderOptions2.logLevel, this.handleVideoRecord, this.handleVideoRecoderReady, this.handleRecordCompleted, this.handleRecordStarting, this.handleRecordCapturing, this.handleRecordInterrupted, this.hideCaptureBtn, this.disableDebugMode, this.displayDirectionsStep, (_this$strings$back3 = this.strings.back) !== null && _this$strings$back3 !== void 0 ? _this$strings$back3 : referenceCaptureStrings.back);
|
|
264
264
|
}
|
|
265
265
|
}, {
|
|
266
266
|
key: "renderVideoReplay",
|
package/dist/retry-result.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as _inherits, a as _createClass, x, d as _taggedTemplateLiteral, s, b as _classCallCheck, c as _callSuper, i } from './lit-element-83035a6f.js';
|
|
2
2
|
import './button.js';
|
|
3
|
-
import { d as defaultVars, r as retryResultVars } from './variables-
|
|
3
|
+
import { d as defaultVars, r as retryResultVars } from './variables-c07a8719.js';
|
|
4
4
|
import { E as EN } from './en-066d960b.js';
|
|
5
5
|
|
|
6
6
|
var _templateObject$3;
|
package/dist/selfie-capture.js
CHANGED
|
@@ -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-83035a6f.js';
|
|
2
2
|
import { E as EN } from './en-066d960b.js';
|
|
3
|
-
import { b as buildPacked } from './video-recorder-
|
|
3
|
+
import { b as buildPacked } from './video-recorder-46c15f8e.js';
|
|
4
4
|
import './video-record-directions.js';
|
|
5
5
|
import './button.js';
|
|
6
|
-
import { s as selfieCaptureVars } from './variables-
|
|
6
|
+
import { s as selfieCaptureVars } from './variables-c07a8719.js';
|
|
7
7
|
import './_commonjsHelpers-02146103.js';
|
|
8
|
-
import './direction-card-
|
|
8
|
+
import './direction-card-5904f865.js';
|
|
9
9
|
|
|
10
10
|
var _templateObject$1;
|
|
11
11
|
var BackArrowIcon = /*#__PURE__*/function (_LitElement) {
|
|
@@ -111,8 +111,8 @@ var SelfieCapture = /*#__PURE__*/function (_LitElement) {
|
|
|
111
111
|
}, {
|
|
112
112
|
key: "renderRecorder",
|
|
113
113
|
value: function renderRecorder() {
|
|
114
|
-
var _this$strings$title2, _this$strings$acquisi, _this$strings$acquisi2, _this$strings$acquisi3, _this$strings$acquisi4, _this$strings$acquisi5, _this$strings$acquisi6, _this$strings$recorde, _this$recorderOptions, _this$recorderOptions2, _this$recorderOptions3, _this$
|
|
115
|
-
return x(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n <div class=\"box\">\n <h1 class=\"title\">", "</h1>\n ", "\n\n <div class=\"v-space\"></div>\n\n <div class=\"recorder\">\n <uni-video-recorder\n id=\"uni-video-recorder\"\n @record=\"", "\"\n @recorderReady=\"", "\"\n @recordCompleted=\"", "\"\n @recordStarting=\"", "\"\n @recordCapturing=\"", "\"\n @recordInterrupted=\"", "\"\n @activeChallenge=\"", "\"\n strings=\"", "\"\n preset=\"", "\"\n log-level=\"", "\"\n config=\"", "\"\n face-checker=\"", "\"\n
|
|
114
|
+
var _this$strings$title2, _this$strings$acquisi, _this$strings$acquisi2, _this$strings$acquisi3, _this$strings$acquisi4, _this$strings$acquisi5, _this$strings$acquisi6, _this$strings$recorde, _this$recorderOptions, _this$recorderOptions2, _this$recorderOptions3, _this$strings$back;
|
|
115
|
+
return x(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n <div class=\"box\">\n <h1 class=\"title\">", "</h1>\n ", "\n\n <div class=\"v-space\"></div>\n\n <div class=\"recorder\">\n <uni-video-recorder\n id=\"uni-video-recorder\"\n @record=\"", "\"\n @recorderReady=\"", "\"\n @recordCompleted=\"", "\"\n @recordStarting=\"", "\"\n @recordCapturing=\"", "\"\n @recordInterrupted=\"", "\"\n @activeChallenge=\"", "\"\n strings=\"", "\"\n preset=\"", "\"\n log-level=\"", "\"\n config=\"", "\"\n face-checker=\"", "\"\n ?hide-capture-btn=", "\n ?disable-debug-mode=", "\n >\n ", "\n </uni-video-recorder>\n </div>\n </div>\n "])), (_this$strings$title2 = this.strings.title) !== null && _this$strings$title2 !== void 0 ? _this$strings$title2 : selfieCaptureStrings.title, this.acquisitionTime !== 0 ? x(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n <span class=\"text\">\n ", "\n ", "\n ", "\n </span>\n "])), (_this$strings$acquisi = (_this$strings$acquisi2 = this.strings.acquisitionDuration) === null || _this$strings$acquisi2 === void 0 ? void 0 : _this$strings$acquisi2.base) !== null && _this$strings$acquisi !== void 0 ? _this$strings$acquisi : selfieCaptureStrings.acquisitionDuration.base, Math.ceil(this.acquisitionTime), Math.ceil(this.acquisitionTime) === 1 ? (_this$strings$acquisi3 = (_this$strings$acquisi4 = this.strings.acquisitionDuration) === null || _this$strings$acquisi4 === void 0 ? void 0 : _this$strings$acquisi4.singular) !== null && _this$strings$acquisi3 !== void 0 ? _this$strings$acquisi3 : selfieCaptureStrings.acquisitionDuration.singular : (_this$strings$acquisi5 = (_this$strings$acquisi6 = this.strings.acquisitionDuration) === null || _this$strings$acquisi6 === void 0 ? void 0 : _this$strings$acquisi6.plural) !== null && _this$strings$acquisi5 !== void 0 ? _this$strings$acquisi5 : selfieCaptureStrings.acquisitionDuration.plural) : "", this.handleRecord, this.handleRecoderReady, this.handleRecordCompleted, this.handleRecordStarting, this.handleRecordCapturing, this.handleRecordInterrupted, this.handleActiveChallenge, JSON.stringify((_this$strings$recorde = this.strings.recorder) !== null && _this$strings$recorde !== void 0 ? _this$strings$recorde : selfieCaptureStrings.recorder), (_this$recorderOptions = this.recorderOptions.preset) !== null && _this$recorderOptions !== void 0 ? _this$recorderOptions : buildPacked.exports.AcquisitionPreset.SELFIE_MJPEG, this.recorderOptions.logLevel, JSON.stringify((_this$recorderOptions2 = this.recorderOptions.config) !== null && _this$recorderOptions2 !== void 0 ? _this$recorderOptions2 : {}), (_this$recorderOptions3 = this.recorderOptions.faceChecker) !== null && _this$recorderOptions3 !== void 0 ? _this$recorderOptions3 : "disabled-on-retry", this.hideCaptureBtn, this.disableDebugMode, this.hideCapturePrevBtn ? x(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral([""]))) : x(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["<div slot=\"left\">\n <uni-button variant=\"outlined\" @click=\"", "\">\n <uni-back-arrow-icon slot=\"icon\"></uni-back-arrow-icon>\n ", "\n </uni-button>\n </div>"])), this.handleBack, (_this$strings$back = this.strings.back) !== null && _this$strings$back !== void 0 ? _this$strings$back : selfieCaptureStrings.back));
|
|
116
116
|
}
|
|
117
117
|
}, {
|
|
118
118
|
key: "render",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i, d as _taggedTemplateLiteral } from './lit-element-83035a6f.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;
|
|
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;
|
|
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)"]))),
|
|
@@ -16,84 +16,85 @@ var recorderVars = {
|
|
|
16
16
|
instructionsTimerPositionLeft: i(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["var(--uni-recorder-instructions-timer-position-left, 3%)"]))),
|
|
17
17
|
instructionsPositionTop: i(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["var(--uni-recorder-instructions-position-top, -10%)"]))),
|
|
18
18
|
instructionsPadding: i(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["var(--uni-recorder-instructions-padding, 0px)"]))),
|
|
19
|
-
videoFilter: i(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["var(--uni-recorder-video-filter, none)"])))
|
|
19
|
+
videoFilter: i(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["var(--uni-recorder-video-filter, none)"]))),
|
|
20
|
+
videoWidth: i(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["var(--uni-recorder-video-width, 300px)"])))
|
|
20
21
|
};
|
|
21
22
|
var selfieCaptureVars = {
|
|
22
|
-
videoRecorderWidth: i(
|
|
23
|
-
videoRecorderSmWidth: i(
|
|
24
|
-
titleFont: i(
|
|
25
|
-
titleLineHeight: i(
|
|
26
|
-
titleColor: i(
|
|
27
|
-
subTitleFont: i(
|
|
28
|
-
subTitleLineHeight: i(
|
|
29
|
-
subTitleColor: i(
|
|
23
|
+
videoRecorderWidth: i(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["var(--uni-selfie-capture-video-recorder-width, 400px)"]))),
|
|
24
|
+
videoRecorderSmWidth: i(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["var(--uni-selfie-capture-video-recorder-sm-width, 95%)"]))),
|
|
25
|
+
titleFont: i(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["var(--uni-selfie-capture-title-font, 24px normal)"]))),
|
|
26
|
+
titleLineHeight: i(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["var(--uni-selfie-capture-title-line-height, 18px)"]))),
|
|
27
|
+
titleColor: i(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["var(--uni-selfie-capture-title-color, #8e8e8e)"]))),
|
|
28
|
+
subTitleFont: i(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["var(--uni-selfie-capture-sub-title-font, 16px normal)"]))),
|
|
29
|
+
subTitleLineHeight: i(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["var(--uni-selfie-capture-sub-title-line-height, 18px)"]))),
|
|
30
|
+
subTitleColor: i(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["var(--uni-selfie-capture-sub-title-color, #8e8e8e)"])))
|
|
30
31
|
};
|
|
31
32
|
var referenceCaptureVars = {
|
|
32
|
-
videoRecorderWidth: i(
|
|
33
|
-
videoRecorderSmWidth: i(
|
|
34
|
-
titleFont: i(
|
|
35
|
-
titleLineHeight: i(
|
|
36
|
-
titleColor: i(
|
|
37
|
-
subTitleFont: i(
|
|
38
|
-
subTitleLineHeight: i(
|
|
39
|
-
subTitleColor: i(
|
|
33
|
+
videoRecorderWidth: i(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["var(--uni-reference-capture-video-recorder-width, 400px)"]))),
|
|
34
|
+
videoRecorderSmWidth: i(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["var(--uni-reference-capture-video-recorder-sm-width, 95%)"]))),
|
|
35
|
+
titleFont: i(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["var(--uni-reference-capture-title-font, 24px normal)"]))),
|
|
36
|
+
titleLineHeight: i(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["var(--uni-reference-capture-title-line-height, 18px)"]))),
|
|
37
|
+
titleColor: i(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["var(--uni-reference-capture-title-color, #8e8e8e)"]))),
|
|
38
|
+
subTitleFont: i(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["var(--uni-reference-capture-sub-title-font, 16px normal)"]))),
|
|
39
|
+
subTitleLineHeight: i(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["var(--uni-reference-capture-sub-title-line-height, 18px)"]))),
|
|
40
|
+
subTitleColor: i(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral(["var(--uni-reference-capture-sub-title-color, #8e8e8e)"])))
|
|
40
41
|
};
|
|
41
42
|
var defaultVars = {
|
|
42
43
|
colors: {
|
|
43
|
-
primary: i(
|
|
44
|
-
secondary: i(
|
|
45
|
-
primaryLighter: i(
|
|
46
|
-
secondaryLighter: i(
|
|
47
|
-
alt: i(
|
|
48
|
-
altLighter: i(
|
|
49
|
-
lightVariant1: i(
|
|
50
|
-
lightVariant2: i(
|
|
51
|
-
white: i(
|
|
52
|
-
dark: i(
|
|
53
|
-
error: i(
|
|
44
|
+
primary: i(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["var(--uni-primary-color, #0a175c)"]))),
|
|
45
|
+
secondary: i(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral(["var(--uni-secondary-color, #05db91)"]))),
|
|
46
|
+
primaryLighter: i(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral(["var(--uni-primary-color-lighter, #222f6c)"]))),
|
|
47
|
+
secondaryLighter: i(_templateObject34 || (_templateObject34 = _taggedTemplateLiteral(["var(--uni-secondary-color-lighter, #00df89)"]))),
|
|
48
|
+
alt: i(_templateObject35 || (_templateObject35 = _taggedTemplateLiteral(["var(--uni-alt-color, #1943ba)"]))),
|
|
49
|
+
altLighter: i(_templateObject36 || (_templateObject36 = _taggedTemplateLiteral(["var(--uni-alt-color-lighter, #3b54f0)"]))),
|
|
50
|
+
lightVariant1: i(_templateObject37 || (_templateObject37 = _taggedTemplateLiteral(["var(--uni-light-color-variant-1, #e8edfe)"]))),
|
|
51
|
+
lightVariant2: i(_templateObject38 || (_templateObject38 = _taggedTemplateLiteral(["var(--uni-light-color-variant-2, #d8e1fd)"]))),
|
|
52
|
+
white: i(_templateObject39 || (_templateObject39 = _taggedTemplateLiteral(["var(--uni-light-color, #fff)"]))),
|
|
53
|
+
dark: i(_templateObject40 || (_templateObject40 = _taggedTemplateLiteral(["var(--uni-dark-color, #202020)"]))),
|
|
54
|
+
error: i(_templateObject41 || (_templateObject41 = _taggedTemplateLiteral(["var(--uni-error-color, #f44336)"])))
|
|
54
55
|
}
|
|
55
56
|
};
|
|
56
57
|
var fileUploadVars = {
|
|
57
|
-
padding: i(
|
|
58
|
-
width: i(
|
|
59
|
-
height: i(
|
|
60
|
-
border: i(
|
|
61
|
-
backgroundColor: i(
|
|
62
|
-
textColor: i(
|
|
63
|
-
textFontSize: i(
|
|
64
|
-
errorTextColor: i(
|
|
65
|
-
errorTextFontSize: i(
|
|
58
|
+
padding: i(_templateObject42 || (_templateObject42 = _taggedTemplateLiteral(["var(--uni-file-upload-padding, 9.5%)"]))),
|
|
59
|
+
width: i(_templateObject43 || (_templateObject43 = _taggedTemplateLiteral(["var(--uni-file-upload-width, 80%)"]))),
|
|
60
|
+
height: i(_templateObject44 || (_templateObject44 = _taggedTemplateLiteral(["var(--uni-file-upload-height, 80%)"]))),
|
|
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)"])))
|
|
66
67
|
};
|
|
67
68
|
var buttonsVars = {
|
|
68
|
-
padding: i(
|
|
69
|
-
border: i(
|
|
70
|
-
borderRadius: i(
|
|
71
|
-
fontSize: i(
|
|
72
|
-
textTransform: i(
|
|
73
|
-
outlinedBorders: i(
|
|
74
|
-
btnLabelMargin: i(
|
|
75
|
-
btnDisabledBgColor: i(
|
|
76
|
-
smWidth: i(
|
|
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)"])))
|
|
77
78
|
};
|
|
78
79
|
var directionCardsVars = {
|
|
79
|
-
padding: i(
|
|
80
|
-
margin: i(
|
|
81
|
-
width: i(
|
|
82
|
-
radius: i(
|
|
83
|
-
fontSize: i(
|
|
84
|
-
fontWeight: i(
|
|
85
|
-
textMarginLeft: i(
|
|
86
|
-
iconHeight: i(
|
|
87
|
-
iconWidth: i(
|
|
88
|
-
backgroundColor: i(
|
|
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)"])))
|
|
89
90
|
};
|
|
90
91
|
var retryResultVars = {
|
|
91
|
-
retriesColor: i(
|
|
92
|
-
fontSizeMd: i(
|
|
93
|
-
lineHeightMd: i(
|
|
94
|
-
fontSizeSm: i(
|
|
95
|
-
lineHeightSm: i(
|
|
96
|
-
iconWidth: i(
|
|
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)"])))
|
|
97
98
|
};
|
|
98
99
|
|
|
99
100
|
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,6 +1,6 @@
|
|
|
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-83035a6f.js';
|
|
2
|
-
import { d as directionsStyle } from './direction-card-
|
|
3
|
-
import { d as defaultVars } from './variables-
|
|
2
|
+
import { d as directionsStyle } from './direction-card-5904f865.js';
|
|
3
|
+
import { d as defaultVars } from './variables-c07a8719.js';
|
|
4
4
|
import { E as EN } from './en-066d960b.js';
|
|
5
5
|
|
|
6
6
|
var _templateObject$4;
|