@ekyc_qoobiss/qbs-ect-cmp 3.6.36 → 3.6.38
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 +47 -21
- package/dist/collection/components/common/id-back-capture/id-back-capture.js +10 -4
- package/dist/collection/components/common/id-capture/id-capture.js +10 -4
- package/dist/collection/components/common/id-tilt/id-tilt.js +10 -4
- package/dist/collection/components/common/selfie-capture/selfie-capture.js +10 -4
- package/dist/collection/components/common/selfie-tilt/selfie-tilt.js +3 -2
- package/dist/collection/components/controls/camera/camera.js +1 -1
- package/dist/collection/helpers/Stream.js +1 -1
- package/dist/collection/libs/FaceML5Detector/FaceML5Detector.js +1 -0
- package/dist/esm/agreement-check_19.entry.js +47 -21
- package/dist/qbs-ect-cmp/{p-d0794c84.entry.js → p-3d28b272.entry.js} +1 -1
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/helpers/Stream.d.ts +1 -1
- package/package.json +1 -1
|
@@ -2027,6 +2027,7 @@ class FaceML5Detector {
|
|
|
2027
2027
|
if (this.stream.facePose !== null) {
|
|
2028
2028
|
await delay(3000);
|
|
2029
2029
|
this.validFacePose = true;
|
|
2030
|
+
this.stream.autoCapturing();
|
|
2030
2031
|
await this.drawFrame('green', true);
|
|
2031
2032
|
}
|
|
2032
2033
|
}
|
|
@@ -4562,7 +4563,7 @@ class Stream {
|
|
|
4562
4563
|
this.faceML5Detector = FaceML5Detector.getInstance(this, TranslationUtils.state.device.isMobile);
|
|
4563
4564
|
this.verificationMode = mode;
|
|
4564
4565
|
}
|
|
4565
|
-
static
|
|
4566
|
+
static getNewInstance(mode) {
|
|
4566
4567
|
if (!Stream.instance) {
|
|
4567
4568
|
Stream.instance = new Stream(mode);
|
|
4568
4569
|
}
|
|
@@ -4797,7 +4798,7 @@ const Camera = class {
|
|
|
4797
4798
|
}
|
|
4798
4799
|
startStream() {
|
|
4799
4800
|
var captureMode = this.captureMode == 'tilt' ? VerificationMode.Tilt : VerificationMode.Full;
|
|
4800
|
-
const stream = Stream.
|
|
4801
|
+
const stream = Stream.getNewInstance(captureMode);
|
|
4801
4802
|
stream.updateHtmlElements(this.cameraVideo, this.cameraCanvas, this.component);
|
|
4802
4803
|
if (this.captureMode == 'selfie') {
|
|
4803
4804
|
stream.setFaceDetection(true);
|
|
@@ -5199,7 +5200,7 @@ const IdBackCapture = class {
|
|
|
5199
5200
|
navigator.mediaDevices
|
|
5200
5201
|
.getUserMedia(constraints)
|
|
5201
5202
|
.then(stream => {
|
|
5202
|
-
const superStream = Stream.
|
|
5203
|
+
const superStream = Stream.getNewInstance(VerificationMode.Full);
|
|
5203
5204
|
superStream.initStream(stream);
|
|
5204
5205
|
})
|
|
5205
5206
|
.catch(e => {
|
|
@@ -5210,7 +5211,7 @@ const IdBackCapture = class {
|
|
|
5210
5211
|
}
|
|
5211
5212
|
closeCamera() {
|
|
5212
5213
|
if (Stream.instance) {
|
|
5213
|
-
Stream.
|
|
5214
|
+
Stream.instance.dropStream();
|
|
5214
5215
|
}
|
|
5215
5216
|
}
|
|
5216
5217
|
disconnectedCallback() {
|
|
@@ -5230,6 +5231,7 @@ const IdBackCapture = class {
|
|
|
5230
5231
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
5231
5232
|
this.demoVideo.loop = false;
|
|
5232
5233
|
while (loops < 7) {
|
|
5234
|
+
loops++;
|
|
5233
5235
|
this.demoVideo.play();
|
|
5234
5236
|
await delay(this.translations.GlobalValues.VideoLenght);
|
|
5235
5237
|
}
|
|
@@ -5239,8 +5241,13 @@ const IdBackCapture = class {
|
|
|
5239
5241
|
if (this.captureTaken)
|
|
5240
5242
|
return;
|
|
5241
5243
|
this.captureTaken = true;
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
+
if (Stream.instance) {
|
|
5245
|
+
let res = await Stream.instance.takePhoto();
|
|
5246
|
+
this.photoIsReady(res);
|
|
5247
|
+
}
|
|
5248
|
+
else {
|
|
5249
|
+
this.eventTimeElapsed.emit();
|
|
5250
|
+
}
|
|
5244
5251
|
await this.baseComponent.logStep(TranslationUtils.FlowSteps.CiBackCapture, TranslationUtils.FlowMoments.Finalized);
|
|
5245
5252
|
}
|
|
5246
5253
|
render() {
|
|
@@ -5311,7 +5318,7 @@ const IdCapture = class {
|
|
|
5311
5318
|
navigator.mediaDevices
|
|
5312
5319
|
.getUserMedia(constraints)
|
|
5313
5320
|
.then(stream => {
|
|
5314
|
-
const superStream = Stream.
|
|
5321
|
+
const superStream = Stream.getNewInstance(VerificationMode.Full);
|
|
5315
5322
|
superStream.initStream(stream);
|
|
5316
5323
|
})
|
|
5317
5324
|
.catch(e => {
|
|
@@ -5322,7 +5329,7 @@ const IdCapture = class {
|
|
|
5322
5329
|
}
|
|
5323
5330
|
closeCamera() {
|
|
5324
5331
|
if (Stream.instance) {
|
|
5325
|
-
Stream.
|
|
5332
|
+
Stream.instance.dropStream();
|
|
5326
5333
|
}
|
|
5327
5334
|
}
|
|
5328
5335
|
disconnectedCallback() {
|
|
@@ -5335,8 +5342,13 @@ const IdCapture = class {
|
|
|
5335
5342
|
if (this.captureTaken)
|
|
5336
5343
|
return;
|
|
5337
5344
|
this.captureTaken = true;
|
|
5338
|
-
|
|
5339
|
-
|
|
5345
|
+
if (Stream.instance) {
|
|
5346
|
+
let res = await Stream.instance.takePhoto();
|
|
5347
|
+
this.photoIsReady(res);
|
|
5348
|
+
}
|
|
5349
|
+
else {
|
|
5350
|
+
this.eventTimeElapsed.emit();
|
|
5351
|
+
}
|
|
5340
5352
|
await this.baseComponent.logStep(TranslationUtils.FlowSteps.CiFrontCapture, TranslationUtils.FlowMoments.Finalized);
|
|
5341
5353
|
}
|
|
5342
5354
|
async verificationFinished() {
|
|
@@ -5350,6 +5362,7 @@ const IdCapture = class {
|
|
|
5350
5362
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
5351
5363
|
this.demoVideo.loop = false;
|
|
5352
5364
|
while (loops < 7) {
|
|
5365
|
+
loops++;
|
|
5353
5366
|
this.demoVideo.play();
|
|
5354
5367
|
await delay(this.translations.GlobalValues.VideoLenght);
|
|
5355
5368
|
}
|
|
@@ -5428,7 +5441,7 @@ const IdTilt = class {
|
|
|
5428
5441
|
navigator.mediaDevices
|
|
5429
5442
|
.getUserMedia(constraints)
|
|
5430
5443
|
.then(stream => {
|
|
5431
|
-
const superStream = Stream.
|
|
5444
|
+
const superStream = Stream.getNewInstance(VerificationMode.Tilt);
|
|
5432
5445
|
superStream.initStream(stream);
|
|
5433
5446
|
})
|
|
5434
5447
|
.catch(e => {
|
|
@@ -5439,7 +5452,7 @@ const IdTilt = class {
|
|
|
5439
5452
|
}
|
|
5440
5453
|
closeCamera() {
|
|
5441
5454
|
if (Stream.instance) {
|
|
5442
|
-
Stream.
|
|
5455
|
+
Stream.instance.dropStream();
|
|
5443
5456
|
}
|
|
5444
5457
|
}
|
|
5445
5458
|
disconnectedCallback() {
|
|
@@ -5452,8 +5465,13 @@ const IdTilt = class {
|
|
|
5452
5465
|
if (this.captureTaken)
|
|
5453
5466
|
return;
|
|
5454
5467
|
this.captureTaken = true;
|
|
5455
|
-
|
|
5456
|
-
|
|
5468
|
+
if (Stream.instance) {
|
|
5469
|
+
let res = await Stream.instance.takePhoto();
|
|
5470
|
+
this.photoIsReady(res);
|
|
5471
|
+
}
|
|
5472
|
+
else {
|
|
5473
|
+
this.eventTimeElapsed.emit();
|
|
5474
|
+
}
|
|
5457
5475
|
await this.baseComponent.logStep(TranslationUtils.FlowSteps.CiTilt, TranslationUtils.FlowMoments.Finalized);
|
|
5458
5476
|
}
|
|
5459
5477
|
async verificationFinished() {
|
|
@@ -5467,6 +5485,7 @@ const IdTilt = class {
|
|
|
5467
5485
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
5468
5486
|
this.demoVideo.loop = false;
|
|
5469
5487
|
while (loops < 7) {
|
|
5488
|
+
loops++;
|
|
5470
5489
|
this.demoVideo.play();
|
|
5471
5490
|
await delay(this.translations.GlobalValues.VideoLenght);
|
|
5472
5491
|
}
|
|
@@ -5559,7 +5578,7 @@ function v4(options, buf, offset) {
|
|
|
5559
5578
|
}
|
|
5560
5579
|
|
|
5561
5580
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
5562
|
-
const version$1 = "3.6.
|
|
5581
|
+
const version$1 = "3.6.38";
|
|
5563
5582
|
const description = "Person Identification Component";
|
|
5564
5583
|
const main = "./dist/index.cjs.js";
|
|
5565
5584
|
const module$1 = "./dist/index.js";
|
|
@@ -9272,7 +9291,7 @@ const SelfieCapture = class {
|
|
|
9272
9291
|
navigator.mediaDevices
|
|
9273
9292
|
.getUserMedia(constraints)
|
|
9274
9293
|
.then(stream => {
|
|
9275
|
-
const superStream = Stream.
|
|
9294
|
+
const superStream = Stream.getNewInstance(VerificationMode.Full);
|
|
9276
9295
|
superStream.initStream(stream);
|
|
9277
9296
|
})
|
|
9278
9297
|
.catch(e => {
|
|
@@ -9283,7 +9302,7 @@ const SelfieCapture = class {
|
|
|
9283
9302
|
}
|
|
9284
9303
|
closeCamera() {
|
|
9285
9304
|
if (Stream.instance) {
|
|
9286
|
-
Stream.
|
|
9305
|
+
Stream.instance.dropStream();
|
|
9287
9306
|
}
|
|
9288
9307
|
}
|
|
9289
9308
|
disconnectedCallback() {
|
|
@@ -9295,8 +9314,13 @@ const SelfieCapture = class {
|
|
|
9295
9314
|
if (this.captureTaken)
|
|
9296
9315
|
return;
|
|
9297
9316
|
this.captureTaken = true;
|
|
9298
|
-
|
|
9299
|
-
|
|
9317
|
+
if (Stream.instance) {
|
|
9318
|
+
let res = await Stream.instance.takePhoto();
|
|
9319
|
+
this.photoIsReady(res);
|
|
9320
|
+
}
|
|
9321
|
+
else {
|
|
9322
|
+
this.eventTimeElapsed.emit();
|
|
9323
|
+
}
|
|
9300
9324
|
await this.baseComponent.logStep(TranslationUtils.FlowSteps.SelfieCapture, TranslationUtils.FlowMoments.Finalized);
|
|
9301
9325
|
}
|
|
9302
9326
|
async verificationFinished() {
|
|
@@ -9310,6 +9334,7 @@ const SelfieCapture = class {
|
|
|
9310
9334
|
this.demoVideo.src = this.uploadingLink;
|
|
9311
9335
|
this.demoVideo.loop = false;
|
|
9312
9336
|
while (loops < 7) {
|
|
9337
|
+
loops++;
|
|
9313
9338
|
this.demoVideo.play();
|
|
9314
9339
|
await delay(this.translations.GlobalValues.VideoLenght);
|
|
9315
9340
|
}
|
|
@@ -9381,7 +9406,7 @@ const SelfieTilt = class {
|
|
|
9381
9406
|
}
|
|
9382
9407
|
}
|
|
9383
9408
|
async componentDidLoad() {
|
|
9384
|
-
this.mainStream = Stream.
|
|
9409
|
+
this.mainStream = Stream.getNewInstance(VerificationMode.Tilt);
|
|
9385
9410
|
await this.baseComponent.logStep(TranslationUtils.FlowSteps.SelfieTilt, TranslationUtils.FlowMoments.Initialized);
|
|
9386
9411
|
this.titleMesage = this.translations.SelfieCaptureValues.FacePoseMapping[this.mainStream.facePose];
|
|
9387
9412
|
this.demoEnded = false;
|
|
@@ -9421,7 +9446,7 @@ const SelfieTilt = class {
|
|
|
9421
9446
|
this.captureTaken = true;
|
|
9422
9447
|
let res = this.mainStream.takePhoto();
|
|
9423
9448
|
this.photoIsReady(res);
|
|
9424
|
-
await this.baseComponent.logStep(TranslationUtils.FlowSteps.
|
|
9449
|
+
await this.baseComponent.logStep(TranslationUtils.FlowSteps.SelfieTilt, TranslationUtils.FlowMoments.Finalized);
|
|
9425
9450
|
}
|
|
9426
9451
|
async verificationFinished() {
|
|
9427
9452
|
if (this.verified)
|
|
@@ -9434,6 +9459,7 @@ const SelfieTilt = class {
|
|
|
9434
9459
|
this.demoVideo.src = this.uploadingLink;
|
|
9435
9460
|
this.demoVideo.loop = false;
|
|
9436
9461
|
while (loops < 7) {
|
|
9462
|
+
loops++;
|
|
9437
9463
|
this.demoVideo.play();
|
|
9438
9464
|
await delay(this.translations.GlobalValues.VideoLenght);
|
|
9439
9465
|
}
|
|
@@ -62,7 +62,7 @@ export class IdBackCapture {
|
|
|
62
62
|
navigator.mediaDevices
|
|
63
63
|
.getUserMedia(constraints)
|
|
64
64
|
.then(stream => {
|
|
65
|
-
const superStream = Stream.
|
|
65
|
+
const superStream = Stream.getNewInstance(VerificationMode.Full);
|
|
66
66
|
superStream.initStream(stream);
|
|
67
67
|
})
|
|
68
68
|
.catch(e => {
|
|
@@ -73,7 +73,7 @@ export class IdBackCapture {
|
|
|
73
73
|
}
|
|
74
74
|
closeCamera() {
|
|
75
75
|
if (Stream.instance) {
|
|
76
|
-
Stream.
|
|
76
|
+
Stream.instance.dropStream();
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
disconnectedCallback() {
|
|
@@ -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,8 +103,13 @@ export class IdBackCapture {
|
|
|
102
103
|
if (this.captureTaken)
|
|
103
104
|
return;
|
|
104
105
|
this.captureTaken = true;
|
|
105
|
-
|
|
106
|
-
|
|
106
|
+
if (Stream.instance) {
|
|
107
|
+
let res = await Stream.instance.takePhoto();
|
|
108
|
+
this.photoIsReady(res);
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
this.eventTimeElapsed.emit();
|
|
112
|
+
}
|
|
107
113
|
await this.baseComponent.logStep(FlowSteps.CiBackCapture, FlowMoments.Finalized);
|
|
108
114
|
}
|
|
109
115
|
render() {
|
|
@@ -58,7 +58,7 @@ export class IdCapture {
|
|
|
58
58
|
navigator.mediaDevices
|
|
59
59
|
.getUserMedia(constraints)
|
|
60
60
|
.then(stream => {
|
|
61
|
-
const superStream = Stream.
|
|
61
|
+
const superStream = Stream.getNewInstance(VerificationMode.Full);
|
|
62
62
|
superStream.initStream(stream);
|
|
63
63
|
})
|
|
64
64
|
.catch(e => {
|
|
@@ -69,7 +69,7 @@ export class IdCapture {
|
|
|
69
69
|
}
|
|
70
70
|
closeCamera() {
|
|
71
71
|
if (Stream.instance) {
|
|
72
|
-
Stream.
|
|
72
|
+
Stream.instance.dropStream();
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
disconnectedCallback() {
|
|
@@ -82,8 +82,13 @@ export class IdCapture {
|
|
|
82
82
|
if (this.captureTaken)
|
|
83
83
|
return;
|
|
84
84
|
this.captureTaken = true;
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
if (Stream.instance) {
|
|
86
|
+
let res = await Stream.instance.takePhoto();
|
|
87
|
+
this.photoIsReady(res);
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
this.eventTimeElapsed.emit();
|
|
91
|
+
}
|
|
87
92
|
await this.baseComponent.logStep(FlowSteps.CiFrontCapture, FlowMoments.Finalized);
|
|
88
93
|
}
|
|
89
94
|
async verificationFinished() {
|
|
@@ -97,6 +102,7 @@ export class IdCapture {
|
|
|
97
102
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
98
103
|
this.demoVideo.loop = false;
|
|
99
104
|
while (loops < 7) {
|
|
105
|
+
loops++;
|
|
100
106
|
this.demoVideo.play();
|
|
101
107
|
await delay(this.translations.GlobalValues.VideoLenght);
|
|
102
108
|
}
|
|
@@ -58,7 +58,7 @@ export class IdTilt {
|
|
|
58
58
|
navigator.mediaDevices
|
|
59
59
|
.getUserMedia(constraints)
|
|
60
60
|
.then(stream => {
|
|
61
|
-
const superStream = Stream.
|
|
61
|
+
const superStream = Stream.getNewInstance(VerificationMode.Tilt);
|
|
62
62
|
superStream.initStream(stream);
|
|
63
63
|
})
|
|
64
64
|
.catch(e => {
|
|
@@ -69,7 +69,7 @@ export class IdTilt {
|
|
|
69
69
|
}
|
|
70
70
|
closeCamera() {
|
|
71
71
|
if (Stream.instance) {
|
|
72
|
-
Stream.
|
|
72
|
+
Stream.instance.dropStream();
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
disconnectedCallback() {
|
|
@@ -82,8 +82,13 @@ export class IdTilt {
|
|
|
82
82
|
if (this.captureTaken)
|
|
83
83
|
return;
|
|
84
84
|
this.captureTaken = true;
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
if (Stream.instance) {
|
|
86
|
+
let res = await Stream.instance.takePhoto();
|
|
87
|
+
this.photoIsReady(res);
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
this.eventTimeElapsed.emit();
|
|
91
|
+
}
|
|
87
92
|
await this.baseComponent.logStep(FlowSteps.CiTilt, FlowMoments.Finalized);
|
|
88
93
|
}
|
|
89
94
|
async verificationFinished() {
|
|
@@ -97,6 +102,7 @@ export class IdTilt {
|
|
|
97
102
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
98
103
|
this.demoVideo.loop = false;
|
|
99
104
|
while (loops < 7) {
|
|
105
|
+
loops++;
|
|
100
106
|
this.demoVideo.play();
|
|
101
107
|
await delay(this.translations.GlobalValues.VideoLenght);
|
|
102
108
|
}
|
|
@@ -62,7 +62,7 @@ export class SelfieCapture {
|
|
|
62
62
|
navigator.mediaDevices
|
|
63
63
|
.getUserMedia(constraints)
|
|
64
64
|
.then(stream => {
|
|
65
|
-
const superStream = Stream.
|
|
65
|
+
const superStream = Stream.getNewInstance(VerificationMode.Full);
|
|
66
66
|
superStream.initStream(stream);
|
|
67
67
|
})
|
|
68
68
|
.catch(e => {
|
|
@@ -73,7 +73,7 @@ export class SelfieCapture {
|
|
|
73
73
|
}
|
|
74
74
|
closeCamera() {
|
|
75
75
|
if (Stream.instance) {
|
|
76
|
-
Stream.
|
|
76
|
+
Stream.instance.dropStream();
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
disconnectedCallback() {
|
|
@@ -85,8 +85,13 @@ export class SelfieCapture {
|
|
|
85
85
|
if (this.captureTaken)
|
|
86
86
|
return;
|
|
87
87
|
this.captureTaken = true;
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
if (Stream.instance) {
|
|
89
|
+
let res = await Stream.instance.takePhoto();
|
|
90
|
+
this.photoIsReady(res);
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
this.eventTimeElapsed.emit();
|
|
94
|
+
}
|
|
90
95
|
await this.baseComponent.logStep(FlowSteps.SelfieCapture, FlowMoments.Finalized);
|
|
91
96
|
}
|
|
92
97
|
async verificationFinished() {
|
|
@@ -100,6 +105,7 @@ export class SelfieCapture {
|
|
|
100
105
|
this.demoVideo.src = this.uploadingLink;
|
|
101
106
|
this.demoVideo.loop = false;
|
|
102
107
|
while (loops < 7) {
|
|
108
|
+
loops++;
|
|
103
109
|
this.demoVideo.play();
|
|
104
110
|
await delay(this.translations.GlobalValues.VideoLenght);
|
|
105
111
|
}
|
|
@@ -48,7 +48,7 @@ export class SelfieTilt {
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
async componentDidLoad() {
|
|
51
|
-
this.mainStream = Stream.
|
|
51
|
+
this.mainStream = Stream.getNewInstance(VerificationMode.Tilt);
|
|
52
52
|
await this.baseComponent.logStep(FlowSteps.SelfieTilt, FlowMoments.Initialized);
|
|
53
53
|
this.titleMesage = this.translations.SelfieCaptureValues.FacePoseMapping[this.mainStream.facePose];
|
|
54
54
|
this.demoEnded = false;
|
|
@@ -88,7 +88,7 @@ export class SelfieTilt {
|
|
|
88
88
|
this.captureTaken = true;
|
|
89
89
|
let res = this.mainStream.takePhoto();
|
|
90
90
|
this.photoIsReady(res);
|
|
91
|
-
await this.baseComponent.logStep(FlowSteps.
|
|
91
|
+
await this.baseComponent.logStep(FlowSteps.SelfieTilt, FlowMoments.Finalized);
|
|
92
92
|
}
|
|
93
93
|
async verificationFinished() {
|
|
94
94
|
if (this.verified)
|
|
@@ -101,6 +101,7 @@ export class SelfieTilt {
|
|
|
101
101
|
this.demoVideo.src = this.uploadingLink;
|
|
102
102
|
this.demoVideo.loop = false;
|
|
103
103
|
while (loops < 7) {
|
|
104
|
+
loops++;
|
|
104
105
|
this.demoVideo.play();
|
|
105
106
|
await delay(this.translations.GlobalValues.VideoLenght);
|
|
106
107
|
}
|
|
@@ -60,7 +60,7 @@ export class Camera {
|
|
|
60
60
|
}
|
|
61
61
|
startStream() {
|
|
62
62
|
var captureMode = this.captureMode == 'tilt' ? VerificationMode.Tilt : VerificationMode.Full;
|
|
63
|
-
const stream = Stream.
|
|
63
|
+
const stream = Stream.getNewInstance(captureMode);
|
|
64
64
|
stream.updateHtmlElements(this.cameraVideo, this.cameraCanvas, this.component);
|
|
65
65
|
if (this.captureMode == 'selfie') {
|
|
66
66
|
stream.setFaceDetection(true);
|
|
@@ -62,7 +62,7 @@ export class Stream {
|
|
|
62
62
|
this.faceML5Detector = FaceML5Detector.getInstance(this, store.device.isMobile);
|
|
63
63
|
this.verificationMode = mode;
|
|
64
64
|
}
|
|
65
|
-
static
|
|
65
|
+
static getNewInstance(mode) {
|
|
66
66
|
if (!Stream.instance) {
|
|
67
67
|
Stream.instance = new Stream(mode);
|
|
68
68
|
}
|
|
@@ -2023,6 +2023,7 @@ class FaceML5Detector {
|
|
|
2023
2023
|
if (this.stream.facePose !== null) {
|
|
2024
2024
|
await delay(3000);
|
|
2025
2025
|
this.validFacePose = true;
|
|
2026
|
+
this.stream.autoCapturing();
|
|
2026
2027
|
await this.drawFrame('green', true);
|
|
2027
2028
|
}
|
|
2028
2029
|
}
|
|
@@ -4558,7 +4559,7 @@ class Stream {
|
|
|
4558
4559
|
this.faceML5Detector = FaceML5Detector.getInstance(this, state.device.isMobile);
|
|
4559
4560
|
this.verificationMode = mode;
|
|
4560
4561
|
}
|
|
4561
|
-
static
|
|
4562
|
+
static getNewInstance(mode) {
|
|
4562
4563
|
if (!Stream.instance) {
|
|
4563
4564
|
Stream.instance = new Stream(mode);
|
|
4564
4565
|
}
|
|
@@ -4793,7 +4794,7 @@ const Camera = class {
|
|
|
4793
4794
|
}
|
|
4794
4795
|
startStream() {
|
|
4795
4796
|
var captureMode = this.captureMode == 'tilt' ? VerificationMode.Tilt : VerificationMode.Full;
|
|
4796
|
-
const stream = Stream.
|
|
4797
|
+
const stream = Stream.getNewInstance(captureMode);
|
|
4797
4798
|
stream.updateHtmlElements(this.cameraVideo, this.cameraCanvas, this.component);
|
|
4798
4799
|
if (this.captureMode == 'selfie') {
|
|
4799
4800
|
stream.setFaceDetection(true);
|
|
@@ -5195,7 +5196,7 @@ const IdBackCapture = class {
|
|
|
5195
5196
|
navigator.mediaDevices
|
|
5196
5197
|
.getUserMedia(constraints)
|
|
5197
5198
|
.then(stream => {
|
|
5198
|
-
const superStream = Stream.
|
|
5199
|
+
const superStream = Stream.getNewInstance(VerificationMode.Full);
|
|
5199
5200
|
superStream.initStream(stream);
|
|
5200
5201
|
})
|
|
5201
5202
|
.catch(e => {
|
|
@@ -5206,7 +5207,7 @@ const IdBackCapture = class {
|
|
|
5206
5207
|
}
|
|
5207
5208
|
closeCamera() {
|
|
5208
5209
|
if (Stream.instance) {
|
|
5209
|
-
Stream.
|
|
5210
|
+
Stream.instance.dropStream();
|
|
5210
5211
|
}
|
|
5211
5212
|
}
|
|
5212
5213
|
disconnectedCallback() {
|
|
@@ -5226,6 +5227,7 @@ const IdBackCapture = class {
|
|
|
5226
5227
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
5227
5228
|
this.demoVideo.loop = false;
|
|
5228
5229
|
while (loops < 7) {
|
|
5230
|
+
loops++;
|
|
5229
5231
|
this.demoVideo.play();
|
|
5230
5232
|
await delay(this.translations.GlobalValues.VideoLenght);
|
|
5231
5233
|
}
|
|
@@ -5235,8 +5237,13 @@ const IdBackCapture = class {
|
|
|
5235
5237
|
if (this.captureTaken)
|
|
5236
5238
|
return;
|
|
5237
5239
|
this.captureTaken = true;
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
+
if (Stream.instance) {
|
|
5241
|
+
let res = await Stream.instance.takePhoto();
|
|
5242
|
+
this.photoIsReady(res);
|
|
5243
|
+
}
|
|
5244
|
+
else {
|
|
5245
|
+
this.eventTimeElapsed.emit();
|
|
5246
|
+
}
|
|
5240
5247
|
await this.baseComponent.logStep(FlowSteps.CiBackCapture, FlowMoments.Finalized);
|
|
5241
5248
|
}
|
|
5242
5249
|
render() {
|
|
@@ -5307,7 +5314,7 @@ const IdCapture = class {
|
|
|
5307
5314
|
navigator.mediaDevices
|
|
5308
5315
|
.getUserMedia(constraints)
|
|
5309
5316
|
.then(stream => {
|
|
5310
|
-
const superStream = Stream.
|
|
5317
|
+
const superStream = Stream.getNewInstance(VerificationMode.Full);
|
|
5311
5318
|
superStream.initStream(stream);
|
|
5312
5319
|
})
|
|
5313
5320
|
.catch(e => {
|
|
@@ -5318,7 +5325,7 @@ const IdCapture = class {
|
|
|
5318
5325
|
}
|
|
5319
5326
|
closeCamera() {
|
|
5320
5327
|
if (Stream.instance) {
|
|
5321
|
-
Stream.
|
|
5328
|
+
Stream.instance.dropStream();
|
|
5322
5329
|
}
|
|
5323
5330
|
}
|
|
5324
5331
|
disconnectedCallback() {
|
|
@@ -5331,8 +5338,13 @@ const IdCapture = class {
|
|
|
5331
5338
|
if (this.captureTaken)
|
|
5332
5339
|
return;
|
|
5333
5340
|
this.captureTaken = true;
|
|
5334
|
-
|
|
5335
|
-
|
|
5341
|
+
if (Stream.instance) {
|
|
5342
|
+
let res = await Stream.instance.takePhoto();
|
|
5343
|
+
this.photoIsReady(res);
|
|
5344
|
+
}
|
|
5345
|
+
else {
|
|
5346
|
+
this.eventTimeElapsed.emit();
|
|
5347
|
+
}
|
|
5336
5348
|
await this.baseComponent.logStep(FlowSteps.CiFrontCapture, FlowMoments.Finalized);
|
|
5337
5349
|
}
|
|
5338
5350
|
async verificationFinished() {
|
|
@@ -5346,6 +5358,7 @@ const IdCapture = class {
|
|
|
5346
5358
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
5347
5359
|
this.demoVideo.loop = false;
|
|
5348
5360
|
while (loops < 7) {
|
|
5361
|
+
loops++;
|
|
5349
5362
|
this.demoVideo.play();
|
|
5350
5363
|
await delay(this.translations.GlobalValues.VideoLenght);
|
|
5351
5364
|
}
|
|
@@ -5424,7 +5437,7 @@ const IdTilt = class {
|
|
|
5424
5437
|
navigator.mediaDevices
|
|
5425
5438
|
.getUserMedia(constraints)
|
|
5426
5439
|
.then(stream => {
|
|
5427
|
-
const superStream = Stream.
|
|
5440
|
+
const superStream = Stream.getNewInstance(VerificationMode.Tilt);
|
|
5428
5441
|
superStream.initStream(stream);
|
|
5429
5442
|
})
|
|
5430
5443
|
.catch(e => {
|
|
@@ -5435,7 +5448,7 @@ const IdTilt = class {
|
|
|
5435
5448
|
}
|
|
5436
5449
|
closeCamera() {
|
|
5437
5450
|
if (Stream.instance) {
|
|
5438
|
-
Stream.
|
|
5451
|
+
Stream.instance.dropStream();
|
|
5439
5452
|
}
|
|
5440
5453
|
}
|
|
5441
5454
|
disconnectedCallback() {
|
|
@@ -5448,8 +5461,13 @@ const IdTilt = class {
|
|
|
5448
5461
|
if (this.captureTaken)
|
|
5449
5462
|
return;
|
|
5450
5463
|
this.captureTaken = true;
|
|
5451
|
-
|
|
5452
|
-
|
|
5464
|
+
if (Stream.instance) {
|
|
5465
|
+
let res = await Stream.instance.takePhoto();
|
|
5466
|
+
this.photoIsReady(res);
|
|
5467
|
+
}
|
|
5468
|
+
else {
|
|
5469
|
+
this.eventTimeElapsed.emit();
|
|
5470
|
+
}
|
|
5453
5471
|
await this.baseComponent.logStep(FlowSteps.CiTilt, FlowMoments.Finalized);
|
|
5454
5472
|
}
|
|
5455
5473
|
async verificationFinished() {
|
|
@@ -5463,6 +5481,7 @@ const IdTilt = class {
|
|
|
5463
5481
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
5464
5482
|
this.demoVideo.loop = false;
|
|
5465
5483
|
while (loops < 7) {
|
|
5484
|
+
loops++;
|
|
5466
5485
|
this.demoVideo.play();
|
|
5467
5486
|
await delay(this.translations.GlobalValues.VideoLenght);
|
|
5468
5487
|
}
|
|
@@ -5555,7 +5574,7 @@ function v4(options, buf, offset) {
|
|
|
5555
5574
|
}
|
|
5556
5575
|
|
|
5557
5576
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
5558
|
-
const version$1 = "3.6.
|
|
5577
|
+
const version$1 = "3.6.38";
|
|
5559
5578
|
const description = "Person Identification Component";
|
|
5560
5579
|
const main = "./dist/index.cjs.js";
|
|
5561
5580
|
const module = "./dist/index.js";
|
|
@@ -9268,7 +9287,7 @@ const SelfieCapture = class {
|
|
|
9268
9287
|
navigator.mediaDevices
|
|
9269
9288
|
.getUserMedia(constraints)
|
|
9270
9289
|
.then(stream => {
|
|
9271
|
-
const superStream = Stream.
|
|
9290
|
+
const superStream = Stream.getNewInstance(VerificationMode.Full);
|
|
9272
9291
|
superStream.initStream(stream);
|
|
9273
9292
|
})
|
|
9274
9293
|
.catch(e => {
|
|
@@ -9279,7 +9298,7 @@ const SelfieCapture = class {
|
|
|
9279
9298
|
}
|
|
9280
9299
|
closeCamera() {
|
|
9281
9300
|
if (Stream.instance) {
|
|
9282
|
-
Stream.
|
|
9301
|
+
Stream.instance.dropStream();
|
|
9283
9302
|
}
|
|
9284
9303
|
}
|
|
9285
9304
|
disconnectedCallback() {
|
|
@@ -9291,8 +9310,13 @@ const SelfieCapture = class {
|
|
|
9291
9310
|
if (this.captureTaken)
|
|
9292
9311
|
return;
|
|
9293
9312
|
this.captureTaken = true;
|
|
9294
|
-
|
|
9295
|
-
|
|
9313
|
+
if (Stream.instance) {
|
|
9314
|
+
let res = await Stream.instance.takePhoto();
|
|
9315
|
+
this.photoIsReady(res);
|
|
9316
|
+
}
|
|
9317
|
+
else {
|
|
9318
|
+
this.eventTimeElapsed.emit();
|
|
9319
|
+
}
|
|
9296
9320
|
await this.baseComponent.logStep(FlowSteps.SelfieCapture, FlowMoments.Finalized);
|
|
9297
9321
|
}
|
|
9298
9322
|
async verificationFinished() {
|
|
@@ -9306,6 +9330,7 @@ const SelfieCapture = class {
|
|
|
9306
9330
|
this.demoVideo.src = this.uploadingLink;
|
|
9307
9331
|
this.demoVideo.loop = false;
|
|
9308
9332
|
while (loops < 7) {
|
|
9333
|
+
loops++;
|
|
9309
9334
|
this.demoVideo.play();
|
|
9310
9335
|
await delay(this.translations.GlobalValues.VideoLenght);
|
|
9311
9336
|
}
|
|
@@ -9377,7 +9402,7 @@ const SelfieTilt = class {
|
|
|
9377
9402
|
}
|
|
9378
9403
|
}
|
|
9379
9404
|
async componentDidLoad() {
|
|
9380
|
-
this.mainStream = Stream.
|
|
9405
|
+
this.mainStream = Stream.getNewInstance(VerificationMode.Tilt);
|
|
9381
9406
|
await this.baseComponent.logStep(FlowSteps.SelfieTilt, FlowMoments.Initialized);
|
|
9382
9407
|
this.titleMesage = this.translations.SelfieCaptureValues.FacePoseMapping[this.mainStream.facePose];
|
|
9383
9408
|
this.demoEnded = false;
|
|
@@ -9417,7 +9442,7 @@ const SelfieTilt = class {
|
|
|
9417
9442
|
this.captureTaken = true;
|
|
9418
9443
|
let res = this.mainStream.takePhoto();
|
|
9419
9444
|
this.photoIsReady(res);
|
|
9420
|
-
await this.baseComponent.logStep(FlowSteps.
|
|
9445
|
+
await this.baseComponent.logStep(FlowSteps.SelfieTilt, FlowMoments.Finalized);
|
|
9421
9446
|
}
|
|
9422
9447
|
async verificationFinished() {
|
|
9423
9448
|
if (this.verified)
|
|
@@ -9430,6 +9455,7 @@ const SelfieTilt = class {
|
|
|
9430
9455
|
this.demoVideo.src = this.uploadingLink;
|
|
9431
9456
|
this.demoVideo.loop = false;
|
|
9432
9457
|
while (loops < 7) {
|
|
9458
|
+
loops++;
|
|
9433
9459
|
this.demoVideo.play();
|
|
9434
9460
|
await delay(this.translations.GlobalValues.VideoLenght);
|
|
9435
9461
|
}
|