@ekyc_qoobiss/qbs-ect-cmp 3.6.27 → 3.6.28
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/agreement-check_19.cjs.entry.js +9498 -0
- package/dist/cjs/base-component-aa9e52bf.js +832 -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 +23 -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 +63 -0
- package/dist/collection/components/common/agreement-check/agreement-check.css +0 -0
- package/dist/collection/components/common/agreement-check/agreement-check.js +104 -0
- package/dist/collection/components/common/camera-error/camera-error.css +0 -0
- package/dist/{qbs-ect-cmp/camera-error.entry.js → collection/components/common/camera-error/camera-error.js} +52 -20
- package/dist/collection/components/common/capture-error/capture-error.css +0 -0
- package/dist/{qbs-ect-cmp/capture-error.entry.js → collection/components/common/capture-error/capture-error.js} +63 -16
- 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 +121 -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} +94 -24
- 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} +94 -24
- 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} +94 -24
- package/dist/collection/components/common/random-actions/random-actions.css +0 -0
- package/dist/collection/components/common/random-actions/random-actions.js +24 -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} +95 -24
- 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} +95 -24
- 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/{qbs-ect-cmp/agreement-info.entry.js → collection/components/flow/agreement-info/agreement-info.js} +57 -18
- package/dist/collection/components/flow/end-redirect/end-redirect.css +128 -0
- package/dist/collection/components/flow/end-redirect/end-redirect.js +47 -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 +122 -0
- package/dist/collection/components/flow/mobile-redirect/mobile-redirect.css +10 -0
- package/dist/collection/components/flow/mobile-redirect/mobile-redirect.js +143 -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/{qbs-ect-cmp/sms-code-validation.entry.js → collection/components/flow/sms-code-validation/sms-code-validation.js} +63 -30
- 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/esm/agreement-check_19.entry.js +9476 -0
- package/dist/{qbs-ect-cmp/base-component-2e490fd9.js → esm/base-component-b7f50d31.js} +384 -62
- 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 +2 -4
- 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-215a7e76.entry.js +1 -0
- package/dist/qbs-ect-cmp/p-7bedffaa.js +1 -0
- package/dist/qbs-ect-cmp/p-8942656c.js +2 -0
- package/dist/qbs-ect-cmp/p-c32a782a.entry.js +1373 -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/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/app-globals-0f993ce5.js +0 -3
- package/dist/qbs-ect-cmp/camera-comp.entry.js +0 -103
- 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/textValues-6bcc85dd.js +0 -302
|
@@ -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
|
+
}
|