@ekyc_qoobiss/qbs-ect-cmp 3.6.37 → 3.6.39
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 +18 -12
- package/dist/collection/components/common/id-back-capture/id-back-capture.js +1 -0
- package/dist/collection/components/common/id-capture/id-capture.js +1 -0
- package/dist/collection/components/common/id-tilt/id-tilt.js +1 -0
- package/dist/collection/components/common/selfie-capture/selfie-capture.js +1 -0
- package/dist/collection/components/common/selfie-tilt/selfie-tilt.js +1 -0
- package/dist/collection/components/flow/process-id/process-id.js +7 -6
- package/dist/collection/components/flow/user-liveness/user-liveness.js +5 -5
- package/dist/esm/agreement-check_19.entry.js +18 -12
- package/dist/qbs-ect-cmp/{p-562fcd8b.entry.js → p-4e3b735b.entry.js} +1 -1
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/components/flow/user-liveness/user-liveness.d.ts +1 -1
- package/package.json +1 -1
|
@@ -5231,6 +5231,7 @@ const IdBackCapture = class {
|
|
|
5231
5231
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
5232
5232
|
this.demoVideo.loop = false;
|
|
5233
5233
|
while (loops < 7) {
|
|
5234
|
+
loops++;
|
|
5234
5235
|
this.demoVideo.play();
|
|
5235
5236
|
await delay(this.translations.GlobalValues.VideoLenght);
|
|
5236
5237
|
}
|
|
@@ -5361,6 +5362,7 @@ const IdCapture = class {
|
|
|
5361
5362
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
5362
5363
|
this.demoVideo.loop = false;
|
|
5363
5364
|
while (loops < 7) {
|
|
5365
|
+
loops++;
|
|
5364
5366
|
this.demoVideo.play();
|
|
5365
5367
|
await delay(this.translations.GlobalValues.VideoLenght);
|
|
5366
5368
|
}
|
|
@@ -5483,6 +5485,7 @@ const IdTilt = class {
|
|
|
5483
5485
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
5484
5486
|
this.demoVideo.loop = false;
|
|
5485
5487
|
while (loops < 7) {
|
|
5488
|
+
loops++;
|
|
5486
5489
|
this.demoVideo.play();
|
|
5487
5490
|
await delay(this.translations.GlobalValues.VideoLenght);
|
|
5488
5491
|
}
|
|
@@ -5575,7 +5578,7 @@ function v4(options, buf, offset) {
|
|
|
5575
5578
|
}
|
|
5576
5579
|
|
|
5577
5580
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
5578
|
-
const version$1 = "3.6.
|
|
5581
|
+
const version$1 = "3.6.39";
|
|
5579
5582
|
const description = "Person Identification Component";
|
|
5580
5583
|
const main = "./dist/index.cjs.js";
|
|
5581
5584
|
const module$1 = "./dist/index.js";
|
|
@@ -9078,11 +9081,11 @@ const ProcessId = class {
|
|
|
9078
9081
|
let frontRec = new File([idRecording], this.flow.front.recName + mimeType.extension, { type: mimeType.type });
|
|
9079
9082
|
this.flow.front.recordingDone = await this.uploadRecording(this.flow.front.recType, frontRec);
|
|
9080
9083
|
}
|
|
9081
|
-
else if (this.
|
|
9084
|
+
else if (this.captureStep == IdCaptureFlowStatus.IdBack) {
|
|
9082
9085
|
let backRec = new File([idRecording], this.flow.back.recName + mimeType.extension, { type: mimeType.type });
|
|
9083
9086
|
this.flow.back.recordingDone = await this.uploadRecording(this.flow.back.recType, backRec);
|
|
9084
9087
|
}
|
|
9085
|
-
else if (this.
|
|
9088
|
+
else if (this.captureStep == IdCaptureFlowStatus.Tilt) {
|
|
9086
9089
|
let tiltRec = new File([idRecording], this.flow.tilt.recName + mimeType.extension, { type: mimeType.type });
|
|
9087
9090
|
this.flow.tilt.recordingDone = await this.uploadRecording(this.flow.tilt.recType, tiltRec);
|
|
9088
9091
|
}
|
|
@@ -9135,11 +9138,11 @@ const ProcessId = class {
|
|
|
9135
9138
|
this.flow.front.photoDone = false;
|
|
9136
9139
|
this.flow.front.recordingDone = false;
|
|
9137
9140
|
}
|
|
9138
|
-
if (this.
|
|
9141
|
+
if (this.captureStep == IdCaptureFlowStatus.IdBack) {
|
|
9139
9142
|
this.flow.back.photoDone = false;
|
|
9140
9143
|
this.flow.back.recordingDone = false;
|
|
9141
9144
|
}
|
|
9142
|
-
if (this.
|
|
9145
|
+
if (this.captureStep == IdCaptureFlowStatus.Tilt) {
|
|
9143
9146
|
this.flow.tilt.photoDone = true;
|
|
9144
9147
|
this.flow.tilt.recordingDone = false;
|
|
9145
9148
|
}
|
|
@@ -9162,7 +9165,7 @@ const ProcessId = class {
|
|
|
9162
9165
|
return;
|
|
9163
9166
|
}
|
|
9164
9167
|
}
|
|
9165
|
-
if (this.
|
|
9168
|
+
if (this.captureStep == IdCaptureFlowStatus.IdBack && TranslationUtils.state.hasIdBack) {
|
|
9166
9169
|
if (this.flow.back.photoDone && this.flow.back.recordingDone) {
|
|
9167
9170
|
if (TranslationUtils.state.hasIdTilt) {
|
|
9168
9171
|
this.captureStep = IdCaptureFlowStatus.Tilt;
|
|
@@ -9175,7 +9178,7 @@ const ProcessId = class {
|
|
|
9175
9178
|
return;
|
|
9176
9179
|
}
|
|
9177
9180
|
}
|
|
9178
|
-
if (this.
|
|
9181
|
+
if (this.captureStep == IdCaptureFlowStatus.Tilt && TranslationUtils.state.hasIdTilt) {
|
|
9179
9182
|
if (this.flow.tilt.photoDone && this.flow.tilt.recordingDone) {
|
|
9180
9183
|
this.captureStep = IdCaptureFlowStatus.End;
|
|
9181
9184
|
}
|
|
@@ -9226,6 +9229,7 @@ const ProcessId = class {
|
|
|
9226
9229
|
if (this.captureStep == IdCaptureFlowStatus.Tilt) {
|
|
9227
9230
|
return tiltCapture;
|
|
9228
9231
|
}
|
|
9232
|
+
return index.h("div", null);
|
|
9229
9233
|
}
|
|
9230
9234
|
};
|
|
9231
9235
|
ProcessId.style = processIdCss;
|
|
@@ -9331,6 +9335,7 @@ const SelfieCapture = class {
|
|
|
9331
9335
|
this.demoVideo.src = this.uploadingLink;
|
|
9332
9336
|
this.demoVideo.loop = false;
|
|
9333
9337
|
while (loops < 7) {
|
|
9338
|
+
loops++;
|
|
9334
9339
|
this.demoVideo.play();
|
|
9335
9340
|
await delay(this.translations.GlobalValues.VideoLenght);
|
|
9336
9341
|
}
|
|
@@ -9455,6 +9460,7 @@ const SelfieTilt = class {
|
|
|
9455
9460
|
this.demoVideo.src = this.uploadingLink;
|
|
9456
9461
|
this.demoVideo.loop = false;
|
|
9457
9462
|
while (loops < 7) {
|
|
9463
|
+
loops++;
|
|
9458
9464
|
this.demoVideo.play();
|
|
9459
9465
|
await delay(this.translations.GlobalValues.VideoLenght);
|
|
9460
9466
|
}
|
|
@@ -9681,7 +9687,7 @@ const UserLiveness = class {
|
|
|
9681
9687
|
else {
|
|
9682
9688
|
this.triggerErrorFlow();
|
|
9683
9689
|
}
|
|
9684
|
-
|
|
9690
|
+
this.endFlow();
|
|
9685
9691
|
}
|
|
9686
9692
|
catch (e) {
|
|
9687
9693
|
if (this.recordingRetryCount < 3) {
|
|
@@ -9694,7 +9700,7 @@ const UserLiveness = class {
|
|
|
9694
9700
|
}
|
|
9695
9701
|
}
|
|
9696
9702
|
async verificationFinished(_event) {
|
|
9697
|
-
|
|
9703
|
+
this.endFlow();
|
|
9698
9704
|
}
|
|
9699
9705
|
async disconnectedCallback() {
|
|
9700
9706
|
await this.baseComponent.finalize();
|
|
@@ -9705,7 +9711,7 @@ const UserLiveness = class {
|
|
|
9705
9711
|
}
|
|
9706
9712
|
this.flow.front.photoDone = await this.baseComponent.apiCall.UploadFileForRequestB64(TranslationUtils.state.requestId, photoType, photoFile);
|
|
9707
9713
|
if (this.flow.front.photoDone) {
|
|
9708
|
-
|
|
9714
|
+
this.endFlow();
|
|
9709
9715
|
}
|
|
9710
9716
|
else {
|
|
9711
9717
|
this.triggerErrorFlow();
|
|
@@ -9724,7 +9730,7 @@ const UserLiveness = class {
|
|
|
9724
9730
|
triggerErrorFlow() {
|
|
9725
9731
|
this.showError = true;
|
|
9726
9732
|
}
|
|
9727
|
-
|
|
9733
|
+
endFlow() {
|
|
9728
9734
|
if (this.captureStep == SelfieFlowStatus.Selfie) {
|
|
9729
9735
|
if (this.flow.front.photoDone && this.flow.front.recordingDone) {
|
|
9730
9736
|
if (TranslationUtils.state.hasSelfieGesture) {
|
|
@@ -9768,7 +9774,7 @@ const UserLiveness = class {
|
|
|
9768
9774
|
if (this.captureStep == SelfieFlowStatus.Gesture) {
|
|
9769
9775
|
return tilt;
|
|
9770
9776
|
}
|
|
9771
|
-
return
|
|
9777
|
+
return index.h("div", null);
|
|
9772
9778
|
}
|
|
9773
9779
|
};
|
|
9774
9780
|
UserLiveness.style = userLivenessCss;
|
|
@@ -93,6 +93,7 @@ export class IdBackCapture {
|
|
|
93
93
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
94
94
|
this.demoVideo.loop = false;
|
|
95
95
|
while (loops < 7) {
|
|
96
|
+
loops++;
|
|
96
97
|
this.demoVideo.play();
|
|
97
98
|
await delay(this.translations.GlobalValues.VideoLenght);
|
|
98
99
|
}
|
|
@@ -102,6 +102,7 @@ export class IdCapture {
|
|
|
102
102
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
103
103
|
this.demoVideo.loop = false;
|
|
104
104
|
while (loops < 7) {
|
|
105
|
+
loops++;
|
|
105
106
|
this.demoVideo.play();
|
|
106
107
|
await delay(this.translations.GlobalValues.VideoLenght);
|
|
107
108
|
}
|
|
@@ -102,6 +102,7 @@ export class IdTilt {
|
|
|
102
102
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
103
103
|
this.demoVideo.loop = false;
|
|
104
104
|
while (loops < 7) {
|
|
105
|
+
loops++;
|
|
105
106
|
this.demoVideo.play();
|
|
106
107
|
await delay(this.translations.GlobalValues.VideoLenght);
|
|
107
108
|
}
|
|
@@ -123,11 +123,11 @@ export class ProcessId {
|
|
|
123
123
|
let frontRec = new File([idRecording], this.flow.front.recName + mimeType.extension, { type: mimeType.type });
|
|
124
124
|
this.flow.front.recordingDone = await this.uploadRecording(this.flow.front.recType, frontRec);
|
|
125
125
|
}
|
|
126
|
-
else if (this.
|
|
126
|
+
else if (this.captureStep == IdCaptureFlowStatus.IdBack) {
|
|
127
127
|
let backRec = new File([idRecording], this.flow.back.recName + mimeType.extension, { type: mimeType.type });
|
|
128
128
|
this.flow.back.recordingDone = await this.uploadRecording(this.flow.back.recType, backRec);
|
|
129
129
|
}
|
|
130
|
-
else if (this.
|
|
130
|
+
else if (this.captureStep == IdCaptureFlowStatus.Tilt) {
|
|
131
131
|
let tiltRec = new File([idRecording], this.flow.tilt.recName + mimeType.extension, { type: mimeType.type });
|
|
132
132
|
this.flow.tilt.recordingDone = await this.uploadRecording(this.flow.tilt.recType, tiltRec);
|
|
133
133
|
}
|
|
@@ -180,11 +180,11 @@ export class ProcessId {
|
|
|
180
180
|
this.flow.front.photoDone = false;
|
|
181
181
|
this.flow.front.recordingDone = false;
|
|
182
182
|
}
|
|
183
|
-
if (this.
|
|
183
|
+
if (this.captureStep == IdCaptureFlowStatus.IdBack) {
|
|
184
184
|
this.flow.back.photoDone = false;
|
|
185
185
|
this.flow.back.recordingDone = false;
|
|
186
186
|
}
|
|
187
|
-
if (this.
|
|
187
|
+
if (this.captureStep == IdCaptureFlowStatus.Tilt) {
|
|
188
188
|
this.flow.tilt.photoDone = true;
|
|
189
189
|
this.flow.tilt.recordingDone = false;
|
|
190
190
|
}
|
|
@@ -207,7 +207,7 @@ export class ProcessId {
|
|
|
207
207
|
return;
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
if (this.
|
|
210
|
+
if (this.captureStep == IdCaptureFlowStatus.IdBack && store.hasIdBack) {
|
|
211
211
|
if (this.flow.back.photoDone && this.flow.back.recordingDone) {
|
|
212
212
|
if (store.hasIdTilt) {
|
|
213
213
|
this.captureStep = IdCaptureFlowStatus.Tilt;
|
|
@@ -220,7 +220,7 @@ export class ProcessId {
|
|
|
220
220
|
return;
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
|
-
if (this.
|
|
223
|
+
if (this.captureStep == IdCaptureFlowStatus.Tilt && store.hasIdTilt) {
|
|
224
224
|
if (this.flow.tilt.photoDone && this.flow.tilt.recordingDone) {
|
|
225
225
|
this.captureStep = IdCaptureFlowStatus.End;
|
|
226
226
|
}
|
|
@@ -271,6 +271,7 @@ export class ProcessId {
|
|
|
271
271
|
if (this.captureStep == IdCaptureFlowStatus.Tilt) {
|
|
272
272
|
return tiltCapture;
|
|
273
273
|
}
|
|
274
|
+
return h("div", null);
|
|
274
275
|
}
|
|
275
276
|
static get is() { return "process-id"; }
|
|
276
277
|
static get originalStyleUrls() {
|
|
@@ -101,7 +101,7 @@ export class UserLiveness {
|
|
|
101
101
|
else {
|
|
102
102
|
this.triggerErrorFlow();
|
|
103
103
|
}
|
|
104
|
-
|
|
104
|
+
this.endFlow();
|
|
105
105
|
}
|
|
106
106
|
catch (e) {
|
|
107
107
|
if (this.recordingRetryCount < 3) {
|
|
@@ -114,7 +114,7 @@ export class UserLiveness {
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
async verificationFinished(_event) {
|
|
117
|
-
|
|
117
|
+
this.endFlow();
|
|
118
118
|
}
|
|
119
119
|
async disconnectedCallback() {
|
|
120
120
|
await this.baseComponent.finalize();
|
|
@@ -125,7 +125,7 @@ export class UserLiveness {
|
|
|
125
125
|
}
|
|
126
126
|
this.flow.front.photoDone = await this.baseComponent.apiCall.UploadFileForRequestB64(store.requestId, photoType, photoFile);
|
|
127
127
|
if (this.flow.front.photoDone) {
|
|
128
|
-
|
|
128
|
+
this.endFlow();
|
|
129
129
|
}
|
|
130
130
|
else {
|
|
131
131
|
this.triggerErrorFlow();
|
|
@@ -144,7 +144,7 @@ export class UserLiveness {
|
|
|
144
144
|
triggerErrorFlow() {
|
|
145
145
|
this.showError = true;
|
|
146
146
|
}
|
|
147
|
-
|
|
147
|
+
endFlow() {
|
|
148
148
|
if (this.captureStep == SelfieFlowStatus.Selfie) {
|
|
149
149
|
if (this.flow.front.photoDone && this.flow.front.recordingDone) {
|
|
150
150
|
if (store.hasSelfieGesture) {
|
|
@@ -188,7 +188,7 @@ export class UserLiveness {
|
|
|
188
188
|
if (this.captureStep == SelfieFlowStatus.Gesture) {
|
|
189
189
|
return tilt;
|
|
190
190
|
}
|
|
191
|
-
return
|
|
191
|
+
return h("div", null);
|
|
192
192
|
}
|
|
193
193
|
static get is() { return "user-liveness"; }
|
|
194
194
|
static get originalStyleUrls() {
|
|
@@ -5227,6 +5227,7 @@ const IdBackCapture = class {
|
|
|
5227
5227
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
5228
5228
|
this.demoVideo.loop = false;
|
|
5229
5229
|
while (loops < 7) {
|
|
5230
|
+
loops++;
|
|
5230
5231
|
this.demoVideo.play();
|
|
5231
5232
|
await delay(this.translations.GlobalValues.VideoLenght);
|
|
5232
5233
|
}
|
|
@@ -5357,6 +5358,7 @@ const IdCapture = class {
|
|
|
5357
5358
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
5358
5359
|
this.demoVideo.loop = false;
|
|
5359
5360
|
while (loops < 7) {
|
|
5361
|
+
loops++;
|
|
5360
5362
|
this.demoVideo.play();
|
|
5361
5363
|
await delay(this.translations.GlobalValues.VideoLenght);
|
|
5362
5364
|
}
|
|
@@ -5479,6 +5481,7 @@ const IdTilt = class {
|
|
|
5479
5481
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
5480
5482
|
this.demoVideo.loop = false;
|
|
5481
5483
|
while (loops < 7) {
|
|
5484
|
+
loops++;
|
|
5482
5485
|
this.demoVideo.play();
|
|
5483
5486
|
await delay(this.translations.GlobalValues.VideoLenght);
|
|
5484
5487
|
}
|
|
@@ -5571,7 +5574,7 @@ function v4(options, buf, offset) {
|
|
|
5571
5574
|
}
|
|
5572
5575
|
|
|
5573
5576
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
5574
|
-
const version$1 = "3.6.
|
|
5577
|
+
const version$1 = "3.6.39";
|
|
5575
5578
|
const description = "Person Identification Component";
|
|
5576
5579
|
const main = "./dist/index.cjs.js";
|
|
5577
5580
|
const module = "./dist/index.js";
|
|
@@ -9074,11 +9077,11 @@ const ProcessId = class {
|
|
|
9074
9077
|
let frontRec = new File([idRecording], this.flow.front.recName + mimeType.extension, { type: mimeType.type });
|
|
9075
9078
|
this.flow.front.recordingDone = await this.uploadRecording(this.flow.front.recType, frontRec);
|
|
9076
9079
|
}
|
|
9077
|
-
else if (this.
|
|
9080
|
+
else if (this.captureStep == IdCaptureFlowStatus.IdBack) {
|
|
9078
9081
|
let backRec = new File([idRecording], this.flow.back.recName + mimeType.extension, { type: mimeType.type });
|
|
9079
9082
|
this.flow.back.recordingDone = await this.uploadRecording(this.flow.back.recType, backRec);
|
|
9080
9083
|
}
|
|
9081
|
-
else if (this.
|
|
9084
|
+
else if (this.captureStep == IdCaptureFlowStatus.Tilt) {
|
|
9082
9085
|
let tiltRec = new File([idRecording], this.flow.tilt.recName + mimeType.extension, { type: mimeType.type });
|
|
9083
9086
|
this.flow.tilt.recordingDone = await this.uploadRecording(this.flow.tilt.recType, tiltRec);
|
|
9084
9087
|
}
|
|
@@ -9131,11 +9134,11 @@ const ProcessId = class {
|
|
|
9131
9134
|
this.flow.front.photoDone = false;
|
|
9132
9135
|
this.flow.front.recordingDone = false;
|
|
9133
9136
|
}
|
|
9134
|
-
if (this.
|
|
9137
|
+
if (this.captureStep == IdCaptureFlowStatus.IdBack) {
|
|
9135
9138
|
this.flow.back.photoDone = false;
|
|
9136
9139
|
this.flow.back.recordingDone = false;
|
|
9137
9140
|
}
|
|
9138
|
-
if (this.
|
|
9141
|
+
if (this.captureStep == IdCaptureFlowStatus.Tilt) {
|
|
9139
9142
|
this.flow.tilt.photoDone = true;
|
|
9140
9143
|
this.flow.tilt.recordingDone = false;
|
|
9141
9144
|
}
|
|
@@ -9158,7 +9161,7 @@ const ProcessId = class {
|
|
|
9158
9161
|
return;
|
|
9159
9162
|
}
|
|
9160
9163
|
}
|
|
9161
|
-
if (this.
|
|
9164
|
+
if (this.captureStep == IdCaptureFlowStatus.IdBack && state.hasIdBack) {
|
|
9162
9165
|
if (this.flow.back.photoDone && this.flow.back.recordingDone) {
|
|
9163
9166
|
if (state.hasIdTilt) {
|
|
9164
9167
|
this.captureStep = IdCaptureFlowStatus.Tilt;
|
|
@@ -9171,7 +9174,7 @@ const ProcessId = class {
|
|
|
9171
9174
|
return;
|
|
9172
9175
|
}
|
|
9173
9176
|
}
|
|
9174
|
-
if (this.
|
|
9177
|
+
if (this.captureStep == IdCaptureFlowStatus.Tilt && state.hasIdTilt) {
|
|
9175
9178
|
if (this.flow.tilt.photoDone && this.flow.tilt.recordingDone) {
|
|
9176
9179
|
this.captureStep = IdCaptureFlowStatus.End;
|
|
9177
9180
|
}
|
|
@@ -9222,6 +9225,7 @@ const ProcessId = class {
|
|
|
9222
9225
|
if (this.captureStep == IdCaptureFlowStatus.Tilt) {
|
|
9223
9226
|
return tiltCapture;
|
|
9224
9227
|
}
|
|
9228
|
+
return h("div", null);
|
|
9225
9229
|
}
|
|
9226
9230
|
};
|
|
9227
9231
|
ProcessId.style = processIdCss;
|
|
@@ -9327,6 +9331,7 @@ const SelfieCapture = class {
|
|
|
9327
9331
|
this.demoVideo.src = this.uploadingLink;
|
|
9328
9332
|
this.demoVideo.loop = false;
|
|
9329
9333
|
while (loops < 7) {
|
|
9334
|
+
loops++;
|
|
9330
9335
|
this.demoVideo.play();
|
|
9331
9336
|
await delay(this.translations.GlobalValues.VideoLenght);
|
|
9332
9337
|
}
|
|
@@ -9451,6 +9456,7 @@ const SelfieTilt = class {
|
|
|
9451
9456
|
this.demoVideo.src = this.uploadingLink;
|
|
9452
9457
|
this.demoVideo.loop = false;
|
|
9453
9458
|
while (loops < 7) {
|
|
9459
|
+
loops++;
|
|
9454
9460
|
this.demoVideo.play();
|
|
9455
9461
|
await delay(this.translations.GlobalValues.VideoLenght);
|
|
9456
9462
|
}
|
|
@@ -9677,7 +9683,7 @@ const UserLiveness = class {
|
|
|
9677
9683
|
else {
|
|
9678
9684
|
this.triggerErrorFlow();
|
|
9679
9685
|
}
|
|
9680
|
-
|
|
9686
|
+
this.endFlow();
|
|
9681
9687
|
}
|
|
9682
9688
|
catch (e) {
|
|
9683
9689
|
if (this.recordingRetryCount < 3) {
|
|
@@ -9690,7 +9696,7 @@ const UserLiveness = class {
|
|
|
9690
9696
|
}
|
|
9691
9697
|
}
|
|
9692
9698
|
async verificationFinished(_event) {
|
|
9693
|
-
|
|
9699
|
+
this.endFlow();
|
|
9694
9700
|
}
|
|
9695
9701
|
async disconnectedCallback() {
|
|
9696
9702
|
await this.baseComponent.finalize();
|
|
@@ -9701,7 +9707,7 @@ const UserLiveness = class {
|
|
|
9701
9707
|
}
|
|
9702
9708
|
this.flow.front.photoDone = await this.baseComponent.apiCall.UploadFileForRequestB64(state.requestId, photoType, photoFile);
|
|
9703
9709
|
if (this.flow.front.photoDone) {
|
|
9704
|
-
|
|
9710
|
+
this.endFlow();
|
|
9705
9711
|
}
|
|
9706
9712
|
else {
|
|
9707
9713
|
this.triggerErrorFlow();
|
|
@@ -9720,7 +9726,7 @@ const UserLiveness = class {
|
|
|
9720
9726
|
triggerErrorFlow() {
|
|
9721
9727
|
this.showError = true;
|
|
9722
9728
|
}
|
|
9723
|
-
|
|
9729
|
+
endFlow() {
|
|
9724
9730
|
if (this.captureStep == SelfieFlowStatus.Selfie) {
|
|
9725
9731
|
if (this.flow.front.photoDone && this.flow.front.recordingDone) {
|
|
9726
9732
|
if (state.hasSelfieGesture) {
|
|
@@ -9764,7 +9770,7 @@ const UserLiveness = class {
|
|
|
9764
9770
|
if (this.captureStep == SelfieFlowStatus.Gesture) {
|
|
9765
9771
|
return tilt;
|
|
9766
9772
|
}
|
|
9767
|
-
return
|
|
9773
|
+
return h("div", null);
|
|
9768
9774
|
}
|
|
9769
9775
|
};
|
|
9770
9776
|
UserLiveness.style = userLivenessCss;
|