@ekyc_qoobiss/qbs-ect-cmp 3.6.27 → 3.6.29
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/cjs/TranslationUtils-b918ffb1.js +346 -0
- package/dist/cjs/agreement-check_19.cjs.entry.js +9997 -0
- package/dist/cjs/index-41696e0e.js +1573 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader-dots.cjs.entry.js +19 -0
- package/dist/cjs/loader.cjs.js +22 -0
- package/dist/cjs/qbs-ect-cmp.cjs.js +23 -0
- package/dist/cjs/random-actions.cjs.entry.js +22 -0
- package/dist/collection/assets/canvas-masks/face_green.svg +8 -0
- package/dist/collection/assets/canvas-masks/face_white.svg +8 -0
- package/dist/collection/assets/canvas-masks/id_green.svg +6 -0
- package/dist/collection/assets/canvas-masks/id_white.svg +6 -0
- package/dist/collection/assets/complete.svg +4 -0
- package/dist/collection/assets/landing/device.svg +14 -0
- package/dist/collection/assets/landing/id.svg +3 -0
- package/dist/collection/assets/landing/info.svg +3 -0
- package/dist/collection/assets/landing/validation.svg +16 -0
- package/dist/collection/assets/loader.svg +29 -0
- package/dist/collection/collection-manifest.json +32 -0
- package/dist/collection/components/base-component.js +59 -0
- package/dist/collection/components/common/agreement-check/agreement-check.css +0 -0
- package/dist/collection/components/common/agreement-check/agreement-check.js +108 -0
- package/dist/collection/components/common/camera-error/camera-error.css +0 -0
- package/dist/collection/components/common/camera-error/camera-error.js +93 -0
- package/dist/collection/components/common/capture-error/capture-error.css +0 -0
- package/dist/collection/components/common/capture-error/capture-error.js +102 -0
- package/dist/collection/components/common/how-to-info/how-to-info.css +0 -0
- package/dist/collection/components/common/how-to-info/how-to-info.js +123 -0
- package/dist/collection/components/common/id-back-capture/id-back-capture.css +35 -0
- package/dist/{qbs-ect-cmp/id-back-capture.entry.js → collection/components/common/id-back-capture/id-back-capture.js} +102 -30
- package/dist/collection/components/common/id-capture/id-capture.css +35 -0
- package/dist/{qbs-ect-cmp/id-capture.entry.js → collection/components/common/id-capture/id-capture.js} +100 -28
- package/dist/collection/components/common/id-tilt/id-tilt.css +35 -0
- package/dist/{qbs-ect-cmp/id-tilt.entry.js → collection/components/common/id-tilt/id-tilt.js} +100 -28
- package/dist/collection/components/common/random-actions/random-actions.css +0 -0
- package/dist/collection/components/common/random-actions/random-actions.js +23 -0
- package/dist/collection/components/common/selfie-capture/selfie-capture.css +7 -0
- package/dist/{qbs-ect-cmp/selfie-capture.entry.js → collection/components/common/selfie-capture/selfie-capture.js} +102 -29
- package/dist/collection/components/common/selfie-tilt/selfie-tilt.css +7 -0
- package/dist/{qbs-ect-cmp/selfie-tilt.entry.js → collection/components/common/selfie-tilt/selfie-tilt.js} +103 -30
- package/dist/collection/components/controls/camera/camera.css +47 -0
- package/dist/collection/components/controls/camera/camera.js +289 -0
- package/dist/collection/components/controls/loader-dots/loader-dots.css +61 -0
- package/dist/collection/components/controls/loader-dots/loader-dots.js +18 -0
- package/dist/collection/components/flow/agreement-info/agreement-info.css +0 -0
- package/dist/collection/components/flow/agreement-info/agreement-info.js +107 -0
- package/dist/collection/components/flow/end-redirect/end-redirect.css +128 -0
- package/dist/collection/components/flow/end-redirect/end-redirect.js +48 -0
- package/dist/collection/components/flow/error-end/error-end.css +0 -0
- package/dist/collection/components/flow/error-end/error-end.js +61 -0
- package/dist/collection/components/flow/landing-validation/landing-validation.css +0 -0
- package/dist/collection/components/flow/landing-validation/landing-validation.js +124 -0
- package/dist/collection/components/flow/mobile-redirect/mobile-redirect.css +10 -0
- package/dist/collection/components/flow/mobile-redirect/mobile-redirect.js +145 -0
- package/dist/collection/components/flow/process-id/process-id.css +0 -0
- package/dist/{qbs-ect-cmp/process-id.entry.js → collection/components/flow/process-id/process-id.js} +100 -32
- package/dist/collection/components/flow/sms-code-validation/sms-code-validation.css +0 -0
- package/dist/collection/components/flow/sms-code-validation/sms-code-validation.js +141 -0
- package/dist/collection/components/flow/user-liveness/user-liveness.css +0 -0
- package/dist/{qbs-ect-cmp/user-liveness.entry.js → collection/components/flow/user-liveness/user-liveness.js} +91 -25
- package/dist/collection/components/identification-component/identification-component.css +991 -0
- package/dist/collection/components/identification-component/identification-component.js +408 -0
- package/dist/collection/global.js +0 -0
- package/dist/collection/helpers/ApiCall.js +223 -0
- package/dist/{qbs-ect-cmp/Cameras-dfbebc29.js → collection/helpers/Cameras.js} +6 -9
- package/dist/collection/helpers/DeviceDetection.js +85 -0
- package/dist/collection/helpers/Events.js +58 -0
- package/dist/collection/helpers/ML5.js +38 -0
- package/dist/collection/helpers/Stream.js +229 -0
- package/dist/collection/helpers/TranslationUtils.js +37 -0
- package/dist/collection/helpers/canvas.js +10 -0
- package/dist/collection/helpers/index.js +21 -0
- package/dist/collection/helpers/security.js +25 -0
- package/dist/collection/helpers/store.js +48 -0
- package/dist/collection/helpers/textValues.js +48 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/libs/FaceML5Detector/FaceML5Detector.js +182 -0
- package/dist/collection/libs/FaceML5Detector/FacePose.js +85 -0
- package/dist/collection/libs/IDML5Detector/IDML5Detector.js +99 -0
- package/dist/{qbs-ect-cmp/IDPose-181bcb25.js → collection/libs/IDML5Detector/IDPose.js} +2 -4
- package/dist/{qbs-ect-cmp/CaptureFlow-db5d90a4.js → collection/models/CaptureFlow.js} +4 -6
- package/dist/collection/models/FlowStatus.js +14 -0
- package/dist/collection/models/FlowSteps.js +30 -0
- package/dist/collection/models/IAbortResult.js +1 -0
- package/dist/collection/models/IAddRequest.js +1 -0
- package/dist/collection/models/IAgreement.js +1 -0
- package/dist/collection/models/ICamera.js +1 -0
- package/dist/{qbs-ect-cmp/IDevice-15ecfdeb.js → collection/models/IDevice.js} +4 -6
- package/dist/collection/models/IEctStore.js +1 -0
- package/dist/collection/models/IGeneration.js +1 -0
- package/dist/collection/models/ILinkSend.js +1 -0
- package/dist/collection/models/ILogResult.js +1 -0
- package/dist/collection/models/IOrderStatus.js +1 -0
- package/dist/collection/models/IOtpCheck.js +1 -0
- package/dist/collection/models/IOtpSend.js +1 -0
- package/dist/collection/models/ITranslationValues.js +1 -0
- package/dist/collection/models/IUploadFile.js +1 -0
- package/dist/collection/models/IVerificationMode.js +5 -0
- package/dist/collection/models/OrderStatuses.js +8 -0
- package/dist/{qbs-ect-cmp/utils-8225f0b7.js → collection/utils/utils.js} +8 -10
- package/dist/{qbs-ect-cmp/textValues-6bcc85dd.js → esm/TranslationUtils-8ceeb437.js} +84 -47
- package/dist/esm/agreement-check_19.entry.js +9975 -0
- package/dist/esm/index-cf54a432.js +1543 -0
- package/dist/esm/index.js +1 -0
- package/dist/{qbs-ect-cmp → esm}/loader-dots.entry.js +1 -1
- package/dist/esm/loader.js +18 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/qbs-ect-cmp.js +18 -0
- package/dist/{qbs-ect-cmp → esm}/random-actions.entry.js +6 -9
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +3 -0
- package/dist/loader/index.cjs.js +3 -0
- package/dist/loader/index.d.ts +21 -0
- package/dist/loader/index.es2017.js +3 -0
- package/dist/loader/index.js +4 -0
- package/dist/loader/package.json +11 -0
- package/dist/qbs-ect-cmp/index.esm.js +0 -1
- package/dist/qbs-ect-cmp/p-054dc5b3.entry.js +1 -0
- package/dist/qbs-ect-cmp/p-473a4636.entry.js +1 -0
- package/dist/qbs-ect-cmp/p-8942656c.js +2 -0
- package/dist/qbs-ect-cmp/p-b2c9c8d7.entry.js +1373 -0
- package/dist/qbs-ect-cmp/p-e568a07c.js +1 -0
- package/dist/qbs-ect-cmp/qbs-ect-cmp.css +1 -320
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -148
- package/dist/types/components/base-component.d.ts +0 -2
- package/dist/types/components/common/agreement-check/agreement-check.d.ts +2 -0
- package/dist/types/components/common/camera-error/camera-error.d.ts +1 -0
- package/dist/types/components/common/capture-error/capture-error.d.ts +1 -0
- package/dist/types/components/common/how-to-info/how-to-info.d.ts +2 -1
- package/dist/types/components/common/id-back-capture/id-back-capture.d.ts +1 -0
- package/dist/types/components/common/id-capture/id-capture.d.ts +1 -0
- package/dist/types/components/common/id-tilt/id-tilt.d.ts +1 -0
- package/dist/types/components/common/random-actions/random-actions.d.ts +2 -2
- package/dist/types/components/common/selfie-capture/selfie-capture.d.ts +2 -1
- package/dist/types/components/common/selfie-tilt/selfie-tilt.d.ts +2 -1
- package/dist/types/components/flow/agreement-info/agreement-info.d.ts +2 -1
- package/dist/types/components/flow/end-redirect/end-redirect.d.ts +2 -1
- package/dist/types/components/flow/landing-validation/landing-validation.d.ts +1 -0
- package/dist/types/components/flow/mobile-redirect/mobile-redirect.d.ts +1 -0
- package/dist/types/components/flow/sms-code-validation/sms-code-validation.d.ts +2 -1
- package/package.json +1 -1
- package/dist/qbs-ect-cmp/ML5-657ef934.js +0 -1370
- package/dist/qbs-ect-cmp/Stream-b867a2be.js +0 -3104
- package/dist/qbs-ect-cmp/_commonjsHelpers-321aa363.js +0 -44
- package/dist/qbs-ect-cmp/agreement-check.entry.js +0 -41
- package/dist/qbs-ect-cmp/agreement-info.entry.js +0 -66
- package/dist/qbs-ect-cmp/app-globals-0f993ce5.js +0 -3
- package/dist/qbs-ect-cmp/base-component-2e490fd9.js +0 -502
- package/dist/qbs-ect-cmp/camera-comp.entry.js +0 -103
- package/dist/qbs-ect-cmp/camera-error.entry.js +0 -59
- package/dist/qbs-ect-cmp/capture-error.entry.js +0 -53
- package/dist/qbs-ect-cmp/css-shim-b7d3d95f.js +0 -4
- package/dist/qbs-ect-cmp/dom-64053c71.js +0 -73
- package/dist/qbs-ect-cmp/end-redirect.entry.js +0 -25
- package/dist/qbs-ect-cmp/error-end.entry.js +0 -19
- package/dist/qbs-ect-cmp/how-to-info.entry.js +0 -52
- package/dist/qbs-ect-cmp/identification-component.entry.js +0 -909
- package/dist/qbs-ect-cmp/index-78a05b9e.js +0 -3371
- package/dist/qbs-ect-cmp/landing-validation.entry.js +0 -90
- package/dist/qbs-ect-cmp/mobile-redirect.entry.js +0 -2984
- package/dist/qbs-ect-cmp/shadow-css-98135883.js +0 -387
- package/dist/qbs-ect-cmp/sms-code-validation.entry.js +0 -106
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { h } from '@stencil/core';
|
|
2
|
+
import store from '../../../helpers/store';
|
|
3
|
+
import { FlowStatus } from '../../../models/FlowStatus';
|
|
4
|
+
import { FlowSteps } from '../../../models/FlowSteps';
|
|
5
|
+
import { BaseComponent } from '../../base-component';
|
|
6
|
+
import { Translations } from '../../../helpers/TranslationUtils';
|
|
7
|
+
export class SmsCodeValidation {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.title = undefined;
|
|
10
|
+
this.details = undefined;
|
|
11
|
+
this.buttonText = undefined;
|
|
12
|
+
this.phoneNumber = undefined;
|
|
13
|
+
this.code = undefined;
|
|
14
|
+
this.prefilledPhone = false;
|
|
15
|
+
this.canSend = false;
|
|
16
|
+
if (store.flowStatus == FlowStatus.PHONE) {
|
|
17
|
+
this.baseComponent = new BaseComponent(FlowSteps.OtpSend);
|
|
18
|
+
}
|
|
19
|
+
if (store.flowStatus == FlowStatus.CODE) {
|
|
20
|
+
this.baseComponent = new BaseComponent(FlowSteps.OtpCheck);
|
|
21
|
+
}
|
|
22
|
+
this.baseComponent.setEventEmitter(this.apiErrorEvent);
|
|
23
|
+
}
|
|
24
|
+
async doAction() {
|
|
25
|
+
try {
|
|
26
|
+
this.canSend = false;
|
|
27
|
+
if (store.flowStatus == FlowStatus.CODE || store.flowStatus == FlowStatus.CODEERROR) {
|
|
28
|
+
var codeChecked = await this.baseComponent.apiCall.CheckOTPCode(store.requestId, this.code);
|
|
29
|
+
if (codeChecked === true) {
|
|
30
|
+
store.flowStatus = FlowStatus.ID;
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
store.flowStatus = FlowStatus.CODEERROR;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
if (store.flowStatus == FlowStatus.PHONE) {
|
|
37
|
+
var codeSent = await this.baseComponent.apiCall.SendOTPCode(store.requestId, this.phoneNumber);
|
|
38
|
+
if (codeSent === true) {
|
|
39
|
+
store.flowStatus = FlowStatus.CODE;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
catch (e) {
|
|
44
|
+
this.apiErrorEvent.emit(e);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
async disconnectedCallback() {
|
|
48
|
+
await this.baseComponent.finalize();
|
|
49
|
+
}
|
|
50
|
+
async componentWillRender() {
|
|
51
|
+
this.translations = await Translations.getValues();
|
|
52
|
+
if (store.flowStatus == FlowStatus.PHONE) {
|
|
53
|
+
this.title = this.translations.PhoneValidationValues.Title;
|
|
54
|
+
this.details = this.translations.PhoneValidationValues.Description;
|
|
55
|
+
this.buttonText = this.translations.PhoneValidationValues.Button;
|
|
56
|
+
if (store.phoneNumber && store.phoneNumber != '') {
|
|
57
|
+
this.phoneNumber = store.phoneNumber;
|
|
58
|
+
this.prefilledPhone = true;
|
|
59
|
+
this.canSend = true;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
if (store.flowStatus == FlowStatus.CODE || store.flowStatus == FlowStatus.CODEERROR) {
|
|
63
|
+
this.title = this.translations.CodeValidationValues.Title;
|
|
64
|
+
this.details = this.translations.CodeValidationValues.Description;
|
|
65
|
+
this.buttonText = this.translations.CodeValidationValues.Button;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
async componentDidLoad() {
|
|
69
|
+
await this.baseComponent.initialize();
|
|
70
|
+
}
|
|
71
|
+
handleChangePhone(ev) {
|
|
72
|
+
let value = ev.target ? ev.target.value : '';
|
|
73
|
+
this.phoneNumber = value.replace(/\D/g, '');
|
|
74
|
+
if (this.phoneNumber.length > 10)
|
|
75
|
+
this.phoneNumber = this.phoneNumber.substring(0, 10);
|
|
76
|
+
this.canSend = this.phoneNumber.length == 10;
|
|
77
|
+
ev.target.value = this.phoneNumber;
|
|
78
|
+
}
|
|
79
|
+
handleChangeCode(ev) {
|
|
80
|
+
let value = ev.target ? ev.target.value : '';
|
|
81
|
+
this.code = value;
|
|
82
|
+
if (this.code.length > 4)
|
|
83
|
+
this.code = this.code.substring(0, 4);
|
|
84
|
+
this.canSend = this.code.length == 4;
|
|
85
|
+
ev.target.value = this.code;
|
|
86
|
+
}
|
|
87
|
+
render() {
|
|
88
|
+
let inputBlock;
|
|
89
|
+
let errorBlock;
|
|
90
|
+
if (store.flowStatus == FlowStatus.CODEERROR) {
|
|
91
|
+
errorBlock = h("p", { class: "main-text font-size-18 mt-15 color-red text-center" }, this.translations.CodeValidationValues.Error);
|
|
92
|
+
}
|
|
93
|
+
if (store.flowStatus == FlowStatus.PHONE) {
|
|
94
|
+
inputBlock = (h("div", { class: "input-container mb-15" }, h("label", { class: "font-size-18 mb-1" }, h("b", null, this.translations.PhoneValidationValues.Label)), h("input", { type: "tel", id: "phoneInput", class: "main-input", disabled: this.prefilledPhone, onInput: ev => this.handleChangePhone(ev), value: this.phoneNumber })));
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
inputBlock = (h("div", { class: "input-container mb-15" }, h("input", { type: "text", id: "codeInput", class: "main-input", onInput: ev => this.handleChangeCode(ev), value: this.code })));
|
|
98
|
+
}
|
|
99
|
+
return (h("div", { class: "container" }, h("div", { class: "row row-validare" }, h("div", null, h("h1", { class: "text-center" }, this.title), errorBlock == null ? h("p", { class: "main-text font-size-2 mt-15 mb-20 text-center" }, this.details) : errorBlock), inputBlock, h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { id: "action", disabled: !this.canSend, class: "main-button", onClick: () => this.doAction() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.translations.GlobalValues.FooterText))))));
|
|
100
|
+
}
|
|
101
|
+
static get is() { return "sms-code-validation"; }
|
|
102
|
+
static get originalStyleUrls() {
|
|
103
|
+
return {
|
|
104
|
+
"$": ["sms-code-validation.css"]
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
static get styleUrls() {
|
|
108
|
+
return {
|
|
109
|
+
"$": ["sms-code-validation.css"]
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
static get states() {
|
|
113
|
+
return {
|
|
114
|
+
"title": {},
|
|
115
|
+
"details": {},
|
|
116
|
+
"buttonText": {},
|
|
117
|
+
"phoneNumber": {},
|
|
118
|
+
"code": {},
|
|
119
|
+
"prefilledPhone": {},
|
|
120
|
+
"canSend": {}
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
static get events() {
|
|
124
|
+
return [{
|
|
125
|
+
"method": "apiErrorEvent",
|
|
126
|
+
"name": "apiError",
|
|
127
|
+
"bubbles": true,
|
|
128
|
+
"cancelable": true,
|
|
129
|
+
"composed": true,
|
|
130
|
+
"docs": {
|
|
131
|
+
"tags": [],
|
|
132
|
+
"text": ""
|
|
133
|
+
},
|
|
134
|
+
"complexType": {
|
|
135
|
+
"original": "any",
|
|
136
|
+
"resolved": "any",
|
|
137
|
+
"references": {}
|
|
138
|
+
}
|
|
139
|
+
}];
|
|
140
|
+
}
|
|
141
|
+
}
|
|
File without changes
|
|
@@ -1,19 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import '
|
|
8
|
-
import '
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const userLivenessCss = "";
|
|
12
|
-
|
|
13
|
-
const UserLiveness = class {
|
|
14
|
-
constructor(hostRef) {
|
|
15
|
-
registerInstance(this, hostRef);
|
|
16
|
-
this.apiErrorEvent = createEvent(this, "apiError", 7);
|
|
1
|
+
import { h } from '@stencil/core';
|
|
2
|
+
import store from '../../../helpers/store';
|
|
3
|
+
import { Stream } from '../../../helpers/Stream';
|
|
4
|
+
import { FlowStatus } from '../../../models/FlowStatus';
|
|
5
|
+
import { FlowSteps } from '../../../models/FlowSteps';
|
|
6
|
+
import { getLogMessage } from '../../../utils/utils';
|
|
7
|
+
import { BaseComponent } from '../../base-component';
|
|
8
|
+
import { CaptureUploadTypes, SelfieFlowStatus } from '../../../models/CaptureFlow';
|
|
9
|
+
export class UserLiveness {
|
|
10
|
+
constructor() {
|
|
17
11
|
this.recordingResultCount = 0;
|
|
18
12
|
this.recordingRetryCount = 0;
|
|
19
13
|
this.showError = undefined;
|
|
@@ -38,7 +32,7 @@ const UserLiveness = class {
|
|
|
38
32
|
back: null,
|
|
39
33
|
tilt: null,
|
|
40
34
|
};
|
|
41
|
-
if (
|
|
35
|
+
if (store.hasSelfieGesture) {
|
|
42
36
|
this.flow.tilt = {
|
|
43
37
|
photoDone: true,
|
|
44
38
|
recordingDone: false,
|
|
@@ -129,7 +123,7 @@ const UserLiveness = class {
|
|
|
129
123
|
if (this.flow.front.photoDone) {
|
|
130
124
|
return;
|
|
131
125
|
}
|
|
132
|
-
this.flow.front.photoDone = await this.baseComponent.apiCall.UploadFileForRequestB64(
|
|
126
|
+
this.flow.front.photoDone = await this.baseComponent.apiCall.UploadFileForRequestB64(store.requestId, photoType, photoFile);
|
|
133
127
|
if (this.flow.front.photoDone) {
|
|
134
128
|
await this.endFlow();
|
|
135
129
|
}
|
|
@@ -138,7 +132,7 @@ const UserLiveness = class {
|
|
|
138
132
|
}
|
|
139
133
|
}
|
|
140
134
|
async uploadRecording(uploadRec, recType) {
|
|
141
|
-
let uplodDone = await this.baseComponent.apiCall.UploadFileForRequestB64(
|
|
135
|
+
let uplodDone = await this.baseComponent.apiCall.UploadFileForRequestB64(store.requestId, recType, uploadRec);
|
|
142
136
|
if (uplodDone) {
|
|
143
137
|
return true;
|
|
144
138
|
}
|
|
@@ -153,7 +147,7 @@ const UserLiveness = class {
|
|
|
153
147
|
async endFlow() {
|
|
154
148
|
if (this.captureStep == SelfieFlowStatus.Selfie) {
|
|
155
149
|
if (this.flow.front.photoDone && this.flow.front.recordingDone) {
|
|
156
|
-
if (
|
|
150
|
+
if (store.hasSelfieGesture) {
|
|
157
151
|
this.captureStep = SelfieFlowStatus.Gesture;
|
|
158
152
|
}
|
|
159
153
|
else {
|
|
@@ -175,7 +169,7 @@ const UserLiveness = class {
|
|
|
175
169
|
if (this.captureStep != SelfieFlowStatus.End) {
|
|
176
170
|
return;
|
|
177
171
|
}
|
|
178
|
-
|
|
172
|
+
store.flowStatus = FlowStatus.COMPLETE;
|
|
179
173
|
}
|
|
180
174
|
render() {
|
|
181
175
|
let howTo = h("how-to-info", { idSide: "" });
|
|
@@ -196,7 +190,79 @@ const UserLiveness = class {
|
|
|
196
190
|
}
|
|
197
191
|
return capture;
|
|
198
192
|
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
193
|
+
static get is() { return "user-liveness"; }
|
|
194
|
+
static get originalStyleUrls() {
|
|
195
|
+
return {
|
|
196
|
+
"$": ["user-liveness.css"]
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
static get styleUrls() {
|
|
200
|
+
return {
|
|
201
|
+
"$": ["user-liveness.css"]
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
static get states() {
|
|
205
|
+
return {
|
|
206
|
+
"showError": {},
|
|
207
|
+
"captureStep": {},
|
|
208
|
+
"flow": {}
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
static get events() {
|
|
212
|
+
return [{
|
|
213
|
+
"method": "apiErrorEvent",
|
|
214
|
+
"name": "apiError",
|
|
215
|
+
"bubbles": true,
|
|
216
|
+
"cancelable": true,
|
|
217
|
+
"composed": true,
|
|
218
|
+
"docs": {
|
|
219
|
+
"tags": [],
|
|
220
|
+
"text": ""
|
|
221
|
+
},
|
|
222
|
+
"complexType": {
|
|
223
|
+
"original": "any",
|
|
224
|
+
"resolved": "any",
|
|
225
|
+
"references": {}
|
|
226
|
+
}
|
|
227
|
+
}];
|
|
228
|
+
}
|
|
229
|
+
static get listeners() {
|
|
230
|
+
return [{
|
|
231
|
+
"name": "howToInfoDone",
|
|
232
|
+
"method": "howToDone",
|
|
233
|
+
"target": undefined,
|
|
234
|
+
"capture": false,
|
|
235
|
+
"passive": false
|
|
236
|
+
}, {
|
|
237
|
+
"name": "timeElapsed",
|
|
238
|
+
"method": "timeElapsed",
|
|
239
|
+
"target": undefined,
|
|
240
|
+
"capture": false,
|
|
241
|
+
"passive": false
|
|
242
|
+
}, {
|
|
243
|
+
"name": "captureErrorDone",
|
|
244
|
+
"method": "captureErrorDone",
|
|
245
|
+
"target": undefined,
|
|
246
|
+
"capture": false,
|
|
247
|
+
"passive": false
|
|
248
|
+
}, {
|
|
249
|
+
"name": "photoSelfieCapture",
|
|
250
|
+
"method": "captureSelfieImage",
|
|
251
|
+
"target": undefined,
|
|
252
|
+
"capture": false,
|
|
253
|
+
"passive": false
|
|
254
|
+
}, {
|
|
255
|
+
"name": "recordingSelfieCapture",
|
|
256
|
+
"method": "capturedSelfieRecording",
|
|
257
|
+
"target": undefined,
|
|
258
|
+
"capture": false,
|
|
259
|
+
"passive": false
|
|
260
|
+
}, {
|
|
261
|
+
"name": "verificationFinished",
|
|
262
|
+
"method": "verificationFinished",
|
|
263
|
+
"target": undefined,
|
|
264
|
+
"capture": false,
|
|
265
|
+
"passive": false
|
|
266
|
+
}];
|
|
267
|
+
}
|
|
268
|
+
}
|