@ekyc_qoobiss/qbs-ect-cmp 3.6.5 → 3.6.7
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_18.cjs.entry.js +25 -27
- package/dist/collection/components/common/id-capture/id-capture.js +0 -1
- package/dist/collection/components/flow/id-double-side/id-double-side.js +6 -0
- package/dist/collection/components/flow/id-single-side/id-single-side.js +5 -0
- package/dist/collection/components/flow/user-liveness/user-liveness.js +5 -0
- package/dist/collection/helpers/Cameras.js +8 -24
- package/dist/collection/helpers/Stream.js +0 -1
- package/dist/esm/agreement-check_18.entry.js +25 -27
- package/dist/qbs-ect-cmp/{p-1ef31932.entry.js → p-3083aa5e.entry.js} +1 -1
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/components/flow/id-double-side/id-double-side.d.ts +1 -0
- package/dist/types/components/flow/id-single-side/id-single-side.d.ts +1 -0
- package/dist/types/components/flow/user-liveness/user-liveness.d.ts +1 -0
- package/package.json +1 -1
|
@@ -5302,7 +5302,6 @@ class Stream {
|
|
|
5302
5302
|
async initStream(stream) {
|
|
5303
5303
|
this.startStream(stream);
|
|
5304
5304
|
this.recordStream();
|
|
5305
|
-
console.log('Stream initialized');
|
|
5306
5305
|
}
|
|
5307
5306
|
async resumeStream() {
|
|
5308
5307
|
this.streamPaused = false;
|
|
@@ -5683,7 +5682,6 @@ class Cameras {
|
|
|
5683
5682
|
const devices = await navigator.mediaDevices.enumerateDevices();
|
|
5684
5683
|
const videoDevices = devices.filter(device => device.kind === 'videoinput');
|
|
5685
5684
|
for (const device of videoDevices) {
|
|
5686
|
-
//const updatedConstraints = deviceInfo.isAppleDevice ? this.GetConstraintsIOs(deviceInfo) : this.GetConstraints(device.deviceId, deviceInfo);
|
|
5687
5685
|
const updatedConstraints = this.GetConstraints(device.deviceId, deviceInfo);
|
|
5688
5686
|
const stream = await navigator.mediaDevices.getUserMedia(updatedConstraints);
|
|
5689
5687
|
stream.getVideoTracks().forEach(track => {
|
|
@@ -5760,8 +5758,14 @@ class Cameras {
|
|
|
5760
5758
|
else {
|
|
5761
5759
|
mediaTrack.facingMode = 'user';
|
|
5762
5760
|
if (portrait) {
|
|
5763
|
-
|
|
5764
|
-
|
|
5761
|
+
if (device.isAndroidDevice) {
|
|
5762
|
+
mediaTrack.width = { ideal: 1280 };
|
|
5763
|
+
mediaTrack.height = { ideal: 720 };
|
|
5764
|
+
}
|
|
5765
|
+
else {
|
|
5766
|
+
mediaTrack.width = { ideal: 1920 };
|
|
5767
|
+
mediaTrack.height = { ideal: 1080 };
|
|
5768
|
+
}
|
|
5765
5769
|
}
|
|
5766
5770
|
else {
|
|
5767
5771
|
mediaTrack.facingMode = 'environment';
|
|
@@ -5772,27 +5776,6 @@ class Cameras {
|
|
|
5772
5776
|
constraints.video = mediaTrack;
|
|
5773
5777
|
return constraints;
|
|
5774
5778
|
}
|
|
5775
|
-
// public GetConstraintsIOs(device: DeviceState, portrait: boolean = false): MediaStreamConstraints | any {
|
|
5776
|
-
// let constraints: MediaStreamConstraints = {
|
|
5777
|
-
// audio: false,
|
|
5778
|
-
// };
|
|
5779
|
-
// let mediaTrack: MediaTrackConstraints = {};
|
|
5780
|
-
// if (device.isDesktop) {
|
|
5781
|
-
// mediaTrack.width = 1280;
|
|
5782
|
-
// } else {
|
|
5783
|
-
// if (portrait) {
|
|
5784
|
-
// mediaTrack.facingMode = 'user';
|
|
5785
|
-
// mediaTrack.width = 1280;
|
|
5786
|
-
// mediaTrack.height = 720;
|
|
5787
|
-
// } else {
|
|
5788
|
-
// mediaTrack.facingMode = 'environment';
|
|
5789
|
-
// mediaTrack.width = 1280;
|
|
5790
|
-
// mediaTrack.height = 720;
|
|
5791
|
-
// }
|
|
5792
|
-
// }
|
|
5793
|
-
// constraints.video = mediaTrack;
|
|
5794
|
-
// return constraints;
|
|
5795
|
-
// }
|
|
5796
5779
|
GetRecommendedCamera(cameras) {
|
|
5797
5780
|
if (cameras && cameras.length > 0) {
|
|
5798
5781
|
var recommDevice = cameras.find(c => c.recommended);
|
|
@@ -5999,7 +5982,6 @@ const IdCapture = class {
|
|
|
5999
5982
|
}
|
|
6000
5983
|
async openCamera() {
|
|
6001
5984
|
await this.baseComponent.logStep(FlowSteps.CiFrontCapture, FlowMoments.Initialized);
|
|
6002
|
-
//const constraints = store.device.isAppleDevice ? this.cameras.GetConstraintsIOs(store.device) : this.cameras.GetConstraints(store.cameraId, store.device);
|
|
6003
5985
|
const constraints = this.cameras.GetConstraints(state.cameraId, state.device);
|
|
6004
5986
|
setTimeout(() => {
|
|
6005
5987
|
navigator.mediaDevices
|
|
@@ -6071,6 +6053,7 @@ const IdDoubleSide = class {
|
|
|
6071
6053
|
constructor(hostRef) {
|
|
6072
6054
|
index.registerInstance(this, hostRef);
|
|
6073
6055
|
this.apiErrorEvent = index.createEvent(this, "apiError", 7);
|
|
6056
|
+
this.recordingResultCount = 0;
|
|
6074
6057
|
this.showTimeout = undefined;
|
|
6075
6058
|
this.showInvalid = undefined;
|
|
6076
6059
|
this.showHowTo = undefined;
|
|
@@ -6153,11 +6136,16 @@ const IdDoubleSide = class {
|
|
|
6153
6136
|
}
|
|
6154
6137
|
async capturedIdRecording(event) {
|
|
6155
6138
|
let idRecording = event.detail;
|
|
6139
|
+
if (idRecording.size == 0 && this.recordingResultCount == 0) {
|
|
6140
|
+
this.recordingResultCount++;
|
|
6141
|
+
return;
|
|
6142
|
+
}
|
|
6156
6143
|
if (idRecording.size == 0) {
|
|
6157
6144
|
await this.baseComponent.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording }, getLogMessage());
|
|
6158
6145
|
this.triggerErrorFlow();
|
|
6159
6146
|
return;
|
|
6160
6147
|
}
|
|
6148
|
+
this.recordingResultCount = 0;
|
|
6161
6149
|
let mimeType = idRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
|
|
6162
6150
|
try {
|
|
6163
6151
|
this.flow.recordingFile = new File([idRecording], this.flow.recordingFileName + mimeType.extension, { type: mimeType.type });
|
|
@@ -6265,6 +6253,7 @@ const IdSingleSide = class {
|
|
|
6265
6253
|
constructor(hostRef) {
|
|
6266
6254
|
index.registerInstance(this, hostRef);
|
|
6267
6255
|
this.apiErrorEvent = index.createEvent(this, "apiError", 7);
|
|
6256
|
+
this.recordingResultCount = 0;
|
|
6268
6257
|
this.showTimeout = undefined;
|
|
6269
6258
|
this.showHowTo = undefined;
|
|
6270
6259
|
this.idFlow = {
|
|
@@ -6311,6 +6300,10 @@ const IdSingleSide = class {
|
|
|
6311
6300
|
}
|
|
6312
6301
|
async capturedIdRecording(event) {
|
|
6313
6302
|
let idRecording = event.detail;
|
|
6303
|
+
if (idRecording.size == 0 && this.recordingResultCount == 0) {
|
|
6304
|
+
this.recordingResultCount++;
|
|
6305
|
+
return;
|
|
6306
|
+
}
|
|
6314
6307
|
if (idRecording.size == 0) {
|
|
6315
6308
|
await this.baseComponent.apiCall.AddLog({ message: 'Empty ID recording', blobData: idRecording }, getLogMessage());
|
|
6316
6309
|
this.showTimeout = true;
|
|
@@ -6459,7 +6452,7 @@ function v4(options, buf, offset) {
|
|
|
6459
6452
|
}
|
|
6460
6453
|
|
|
6461
6454
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
6462
|
-
const version$1 = "3.6.
|
|
6455
|
+
const version$1 = "3.6.7";
|
|
6463
6456
|
const description = "Person Identification Component";
|
|
6464
6457
|
const main = "./dist/index.cjs.js";
|
|
6465
6458
|
const module$1 = "./dist/index.js";
|
|
@@ -10104,6 +10097,7 @@ const UserLiveness = class {
|
|
|
10104
10097
|
constructor(hostRef) {
|
|
10105
10098
|
index.registerInstance(this, hostRef);
|
|
10106
10099
|
this.apiErrorEvent = index.createEvent(this, "apiError", 7);
|
|
10100
|
+
this.recordingResultCount = 0;
|
|
10107
10101
|
this.showError = undefined;
|
|
10108
10102
|
this.showHowTo = undefined;
|
|
10109
10103
|
this.selfieFlow = {
|
|
@@ -10152,6 +10146,10 @@ const UserLiveness = class {
|
|
|
10152
10146
|
}
|
|
10153
10147
|
async capturedSelfieRecording(event) {
|
|
10154
10148
|
let selfieRecording = event.detail;
|
|
10149
|
+
if (selfieRecording.size == 0 && this.recordingResultCount == 0) {
|
|
10150
|
+
this.recordingResultCount++;
|
|
10151
|
+
return;
|
|
10152
|
+
}
|
|
10155
10153
|
if (selfieRecording.size == 0) {
|
|
10156
10154
|
await this.baseComponent.apiCall.AddLog({ message: 'Empty recording', blobData: selfieRecording }, getLogMessage());
|
|
10157
10155
|
this.triggerErrorFlow();
|
|
@@ -62,7 +62,6 @@ export class IdCapture {
|
|
|
62
62
|
}
|
|
63
63
|
async openCamera() {
|
|
64
64
|
await this.baseComponent.logStep(FlowSteps.CiFrontCapture, FlowMoments.Initialized);
|
|
65
|
-
//const constraints = store.device.isAppleDevice ? this.cameras.GetConstraintsIOs(store.device) : this.cameras.GetConstraints(store.cameraId, store.device);
|
|
66
65
|
const constraints = this.cameras.GetConstraints(store.cameraId, store.device);
|
|
67
66
|
setTimeout(() => {
|
|
68
67
|
navigator.mediaDevices
|
|
@@ -8,6 +8,7 @@ import { BaseComponent } from '../../base-component';
|
|
|
8
8
|
// import { IDPose } from '../../libs/IDML5Detector/IDPose';
|
|
9
9
|
export class IdDoubleSide {
|
|
10
10
|
constructor() {
|
|
11
|
+
this.recordingResultCount = 0;
|
|
11
12
|
this.showTimeout = undefined;
|
|
12
13
|
this.showInvalid = undefined;
|
|
13
14
|
this.showHowTo = undefined;
|
|
@@ -90,11 +91,16 @@ export class IdDoubleSide {
|
|
|
90
91
|
}
|
|
91
92
|
async capturedIdRecording(event) {
|
|
92
93
|
let idRecording = event.detail;
|
|
94
|
+
if (idRecording.size == 0 && this.recordingResultCount == 0) {
|
|
95
|
+
this.recordingResultCount++;
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
93
98
|
if (idRecording.size == 0) {
|
|
94
99
|
await this.baseComponent.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording }, getLogMessage());
|
|
95
100
|
this.triggerErrorFlow();
|
|
96
101
|
return;
|
|
97
102
|
}
|
|
103
|
+
this.recordingResultCount = 0;
|
|
98
104
|
let mimeType = idRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
|
|
99
105
|
try {
|
|
100
106
|
this.flow.recordingFile = new File([idRecording], this.flow.recordingFileName + mimeType.extension, { type: mimeType.type });
|
|
@@ -8,6 +8,7 @@ import { BaseComponent } from '../../base-component';
|
|
|
8
8
|
// import { IDPose } from '../../libs/IDML5Detector/IDPose';
|
|
9
9
|
export class IdSingleSide {
|
|
10
10
|
constructor() {
|
|
11
|
+
this.recordingResultCount = 0;
|
|
11
12
|
this.showTimeout = undefined;
|
|
12
13
|
this.showHowTo = undefined;
|
|
13
14
|
this.idFlow = {
|
|
@@ -54,6 +55,10 @@ export class IdSingleSide {
|
|
|
54
55
|
}
|
|
55
56
|
async capturedIdRecording(event) {
|
|
56
57
|
let idRecording = event.detail;
|
|
58
|
+
if (idRecording.size == 0 && this.recordingResultCount == 0) {
|
|
59
|
+
this.recordingResultCount++;
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
57
62
|
if (idRecording.size == 0) {
|
|
58
63
|
await this.baseComponent.apiCall.AddLog({ message: 'Empty ID recording', blobData: idRecording }, getLogMessage());
|
|
59
64
|
this.showTimeout = true;
|
|
@@ -7,6 +7,7 @@ import { getLogMessage } from '../../../utils/utils';
|
|
|
7
7
|
import { BaseComponent } from '../../base-component';
|
|
8
8
|
export class UserLiveness {
|
|
9
9
|
constructor() {
|
|
10
|
+
this.recordingResultCount = 0;
|
|
10
11
|
this.showError = undefined;
|
|
11
12
|
this.showHowTo = undefined;
|
|
12
13
|
this.selfieFlow = {
|
|
@@ -55,6 +56,10 @@ export class UserLiveness {
|
|
|
55
56
|
}
|
|
56
57
|
async capturedSelfieRecording(event) {
|
|
57
58
|
let selfieRecording = event.detail;
|
|
59
|
+
if (selfieRecording.size == 0 && this.recordingResultCount == 0) {
|
|
60
|
+
this.recordingResultCount++;
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
58
63
|
if (selfieRecording.size == 0) {
|
|
59
64
|
await this.baseComponent.apiCall.AddLog({ message: 'Empty recording', blobData: selfieRecording }, getLogMessage());
|
|
60
65
|
this.triggerErrorFlow();
|
|
@@ -6,7 +6,6 @@ export class Cameras {
|
|
|
6
6
|
const devices = await navigator.mediaDevices.enumerateDevices();
|
|
7
7
|
const videoDevices = devices.filter(device => device.kind === 'videoinput');
|
|
8
8
|
for (const device of videoDevices) {
|
|
9
|
-
//const updatedConstraints = deviceInfo.isAppleDevice ? this.GetConstraintsIOs(deviceInfo) : this.GetConstraints(device.deviceId, deviceInfo);
|
|
10
9
|
const updatedConstraints = this.GetConstraints(device.deviceId, deviceInfo);
|
|
11
10
|
const stream = await navigator.mediaDevices.getUserMedia(updatedConstraints);
|
|
12
11
|
stream.getVideoTracks().forEach(track => {
|
|
@@ -83,8 +82,14 @@ export class Cameras {
|
|
|
83
82
|
else {
|
|
84
83
|
mediaTrack.facingMode = 'user';
|
|
85
84
|
if (portrait) {
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
if (device.isAndroidDevice) {
|
|
86
|
+
mediaTrack.width = { ideal: 1280 };
|
|
87
|
+
mediaTrack.height = { ideal: 720 };
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
mediaTrack.width = { ideal: 1920 };
|
|
91
|
+
mediaTrack.height = { ideal: 1080 };
|
|
92
|
+
}
|
|
88
93
|
}
|
|
89
94
|
else {
|
|
90
95
|
mediaTrack.facingMode = 'environment';
|
|
@@ -95,27 +100,6 @@ export class Cameras {
|
|
|
95
100
|
constraints.video = mediaTrack;
|
|
96
101
|
return constraints;
|
|
97
102
|
}
|
|
98
|
-
// public GetConstraintsIOs(device: DeviceState, portrait: boolean = false): MediaStreamConstraints | any {
|
|
99
|
-
// let constraints: MediaStreamConstraints = {
|
|
100
|
-
// audio: false,
|
|
101
|
-
// };
|
|
102
|
-
// let mediaTrack: MediaTrackConstraints = {};
|
|
103
|
-
// if (device.isDesktop) {
|
|
104
|
-
// mediaTrack.width = 1280;
|
|
105
|
-
// } else {
|
|
106
|
-
// if (portrait) {
|
|
107
|
-
// mediaTrack.facingMode = 'user';
|
|
108
|
-
// mediaTrack.width = 1280;
|
|
109
|
-
// mediaTrack.height = 720;
|
|
110
|
-
// } else {
|
|
111
|
-
// mediaTrack.facingMode = 'environment';
|
|
112
|
-
// mediaTrack.width = 1280;
|
|
113
|
-
// mediaTrack.height = 720;
|
|
114
|
-
// }
|
|
115
|
-
// }
|
|
116
|
-
// constraints.video = mediaTrack;
|
|
117
|
-
// return constraints;
|
|
118
|
-
// }
|
|
119
103
|
GetRecommendedCamera(cameras) {
|
|
120
104
|
if (cameras && cameras.length > 0) {
|
|
121
105
|
var recommDevice = cameras.find(c => c.recommended);
|
|
@@ -5298,7 +5298,6 @@ class Stream {
|
|
|
5298
5298
|
async initStream(stream) {
|
|
5299
5299
|
this.startStream(stream);
|
|
5300
5300
|
this.recordStream();
|
|
5301
|
-
console.log('Stream initialized');
|
|
5302
5301
|
}
|
|
5303
5302
|
async resumeStream() {
|
|
5304
5303
|
this.streamPaused = false;
|
|
@@ -5679,7 +5678,6 @@ class Cameras {
|
|
|
5679
5678
|
const devices = await navigator.mediaDevices.enumerateDevices();
|
|
5680
5679
|
const videoDevices = devices.filter(device => device.kind === 'videoinput');
|
|
5681
5680
|
for (const device of videoDevices) {
|
|
5682
|
-
//const updatedConstraints = deviceInfo.isAppleDevice ? this.GetConstraintsIOs(deviceInfo) : this.GetConstraints(device.deviceId, deviceInfo);
|
|
5683
5681
|
const updatedConstraints = this.GetConstraints(device.deviceId, deviceInfo);
|
|
5684
5682
|
const stream = await navigator.mediaDevices.getUserMedia(updatedConstraints);
|
|
5685
5683
|
stream.getVideoTracks().forEach(track => {
|
|
@@ -5756,8 +5754,14 @@ class Cameras {
|
|
|
5756
5754
|
else {
|
|
5757
5755
|
mediaTrack.facingMode = 'user';
|
|
5758
5756
|
if (portrait) {
|
|
5759
|
-
|
|
5760
|
-
|
|
5757
|
+
if (device.isAndroidDevice) {
|
|
5758
|
+
mediaTrack.width = { ideal: 1280 };
|
|
5759
|
+
mediaTrack.height = { ideal: 720 };
|
|
5760
|
+
}
|
|
5761
|
+
else {
|
|
5762
|
+
mediaTrack.width = { ideal: 1920 };
|
|
5763
|
+
mediaTrack.height = { ideal: 1080 };
|
|
5764
|
+
}
|
|
5761
5765
|
}
|
|
5762
5766
|
else {
|
|
5763
5767
|
mediaTrack.facingMode = 'environment';
|
|
@@ -5768,27 +5772,6 @@ class Cameras {
|
|
|
5768
5772
|
constraints.video = mediaTrack;
|
|
5769
5773
|
return constraints;
|
|
5770
5774
|
}
|
|
5771
|
-
// public GetConstraintsIOs(device: DeviceState, portrait: boolean = false): MediaStreamConstraints | any {
|
|
5772
|
-
// let constraints: MediaStreamConstraints = {
|
|
5773
|
-
// audio: false,
|
|
5774
|
-
// };
|
|
5775
|
-
// let mediaTrack: MediaTrackConstraints = {};
|
|
5776
|
-
// if (device.isDesktop) {
|
|
5777
|
-
// mediaTrack.width = 1280;
|
|
5778
|
-
// } else {
|
|
5779
|
-
// if (portrait) {
|
|
5780
|
-
// mediaTrack.facingMode = 'user';
|
|
5781
|
-
// mediaTrack.width = 1280;
|
|
5782
|
-
// mediaTrack.height = 720;
|
|
5783
|
-
// } else {
|
|
5784
|
-
// mediaTrack.facingMode = 'environment';
|
|
5785
|
-
// mediaTrack.width = 1280;
|
|
5786
|
-
// mediaTrack.height = 720;
|
|
5787
|
-
// }
|
|
5788
|
-
// }
|
|
5789
|
-
// constraints.video = mediaTrack;
|
|
5790
|
-
// return constraints;
|
|
5791
|
-
// }
|
|
5792
5775
|
GetRecommendedCamera(cameras) {
|
|
5793
5776
|
if (cameras && cameras.length > 0) {
|
|
5794
5777
|
var recommDevice = cameras.find(c => c.recommended);
|
|
@@ -5995,7 +5978,6 @@ const IdCapture = class {
|
|
|
5995
5978
|
}
|
|
5996
5979
|
async openCamera() {
|
|
5997
5980
|
await this.baseComponent.logStep(FlowSteps.CiFrontCapture, FlowMoments.Initialized);
|
|
5998
|
-
//const constraints = store.device.isAppleDevice ? this.cameras.GetConstraintsIOs(store.device) : this.cameras.GetConstraints(store.cameraId, store.device);
|
|
5999
5981
|
const constraints = this.cameras.GetConstraints(state.cameraId, state.device);
|
|
6000
5982
|
setTimeout(() => {
|
|
6001
5983
|
navigator.mediaDevices
|
|
@@ -6067,6 +6049,7 @@ const IdDoubleSide = class {
|
|
|
6067
6049
|
constructor(hostRef) {
|
|
6068
6050
|
registerInstance(this, hostRef);
|
|
6069
6051
|
this.apiErrorEvent = createEvent(this, "apiError", 7);
|
|
6052
|
+
this.recordingResultCount = 0;
|
|
6070
6053
|
this.showTimeout = undefined;
|
|
6071
6054
|
this.showInvalid = undefined;
|
|
6072
6055
|
this.showHowTo = undefined;
|
|
@@ -6149,11 +6132,16 @@ const IdDoubleSide = class {
|
|
|
6149
6132
|
}
|
|
6150
6133
|
async capturedIdRecording(event) {
|
|
6151
6134
|
let idRecording = event.detail;
|
|
6135
|
+
if (idRecording.size == 0 && this.recordingResultCount == 0) {
|
|
6136
|
+
this.recordingResultCount++;
|
|
6137
|
+
return;
|
|
6138
|
+
}
|
|
6152
6139
|
if (idRecording.size == 0) {
|
|
6153
6140
|
await this.baseComponent.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording }, getLogMessage());
|
|
6154
6141
|
this.triggerErrorFlow();
|
|
6155
6142
|
return;
|
|
6156
6143
|
}
|
|
6144
|
+
this.recordingResultCount = 0;
|
|
6157
6145
|
let mimeType = idRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
|
|
6158
6146
|
try {
|
|
6159
6147
|
this.flow.recordingFile = new File([idRecording], this.flow.recordingFileName + mimeType.extension, { type: mimeType.type });
|
|
@@ -6261,6 +6249,7 @@ const IdSingleSide = class {
|
|
|
6261
6249
|
constructor(hostRef) {
|
|
6262
6250
|
registerInstance(this, hostRef);
|
|
6263
6251
|
this.apiErrorEvent = createEvent(this, "apiError", 7);
|
|
6252
|
+
this.recordingResultCount = 0;
|
|
6264
6253
|
this.showTimeout = undefined;
|
|
6265
6254
|
this.showHowTo = undefined;
|
|
6266
6255
|
this.idFlow = {
|
|
@@ -6307,6 +6296,10 @@ const IdSingleSide = class {
|
|
|
6307
6296
|
}
|
|
6308
6297
|
async capturedIdRecording(event) {
|
|
6309
6298
|
let idRecording = event.detail;
|
|
6299
|
+
if (idRecording.size == 0 && this.recordingResultCount == 0) {
|
|
6300
|
+
this.recordingResultCount++;
|
|
6301
|
+
return;
|
|
6302
|
+
}
|
|
6310
6303
|
if (idRecording.size == 0) {
|
|
6311
6304
|
await this.baseComponent.apiCall.AddLog({ message: 'Empty ID recording', blobData: idRecording }, getLogMessage());
|
|
6312
6305
|
this.showTimeout = true;
|
|
@@ -6455,7 +6448,7 @@ function v4(options, buf, offset) {
|
|
|
6455
6448
|
}
|
|
6456
6449
|
|
|
6457
6450
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
6458
|
-
const version$1 = "3.6.
|
|
6451
|
+
const version$1 = "3.6.7";
|
|
6459
6452
|
const description = "Person Identification Component";
|
|
6460
6453
|
const main = "./dist/index.cjs.js";
|
|
6461
6454
|
const module = "./dist/index.js";
|
|
@@ -10100,6 +10093,7 @@ const UserLiveness = class {
|
|
|
10100
10093
|
constructor(hostRef) {
|
|
10101
10094
|
registerInstance(this, hostRef);
|
|
10102
10095
|
this.apiErrorEvent = createEvent(this, "apiError", 7);
|
|
10096
|
+
this.recordingResultCount = 0;
|
|
10103
10097
|
this.showError = undefined;
|
|
10104
10098
|
this.showHowTo = undefined;
|
|
10105
10099
|
this.selfieFlow = {
|
|
@@ -10148,6 +10142,10 @@ const UserLiveness = class {
|
|
|
10148
10142
|
}
|
|
10149
10143
|
async capturedSelfieRecording(event) {
|
|
10150
10144
|
let selfieRecording = event.detail;
|
|
10145
|
+
if (selfieRecording.size == 0 && this.recordingResultCount == 0) {
|
|
10146
|
+
this.recordingResultCount++;
|
|
10147
|
+
return;
|
|
10148
|
+
}
|
|
10151
10149
|
if (selfieRecording.size == 0) {
|
|
10152
10150
|
await this.baseComponent.apiCall.AddLog({ message: 'Empty recording', blobData: selfieRecording }, getLogMessage());
|
|
10153
10151
|
this.triggerErrorFlow();
|