@ekyc_qoobiss/qbs-ect-cmp 3.6.33 → 3.6.35
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 +48 -18
- package/dist/collection/components/common/id-back-capture/id-back-capture.js +23 -3
- package/dist/collection/components/common/id-capture/id-capture.js +22 -2
- package/dist/collection/components/common/id-tilt/id-tilt.js +22 -2
- package/dist/collection/components/common/selfie-capture/selfie-capture.js +23 -3
- package/dist/collection/components/common/selfie-tilt/selfie-tilt.js +24 -5
- package/dist/collection/helpers/Cameras.js +3 -3
- package/dist/esm/agreement-check_19.entry.js +48 -18
- package/dist/qbs-ect-cmp/{p-ed5bf5bc.entry.js → p-b7c5b575.entry.js} +1 -1
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/components/common/id-back-capture/id-back-capture.d.ts +2 -1
- 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/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.d.ts +5 -0
- package/dist/types/helpers/Cameras.d.ts +1 -1
- package/package.json +1 -1
|
@@ -5012,7 +5012,7 @@ class Cameras {
|
|
|
5012
5012
|
const devices = await navigator.mediaDevices.enumerateDevices();
|
|
5013
5013
|
const videoDevices = devices.filter(device => device.kind === 'videoinput');
|
|
5014
5014
|
for (const device of videoDevices) {
|
|
5015
|
-
const updatedConstraints = this.GetConstraints(device.deviceId, deviceInfo);
|
|
5015
|
+
const updatedConstraints = this.GetConstraints(device.deviceId, deviceInfo, false, false);
|
|
5016
5016
|
const stream = await navigator.mediaDevices.getUserMedia(updatedConstraints);
|
|
5017
5017
|
stream.getVideoTracks().forEach(track => {
|
|
5018
5018
|
var _a, _b;
|
|
@@ -5070,9 +5070,9 @@ class Cameras {
|
|
|
5070
5070
|
}
|
|
5071
5071
|
return allDevices;
|
|
5072
5072
|
}
|
|
5073
|
-
GetConstraints(selectedDeviceId, device, portrait = false) {
|
|
5073
|
+
GetConstraints(selectedDeviceId, device, portrait = false, audio = true) {
|
|
5074
5074
|
let constraints = {
|
|
5075
|
-
audio:
|
|
5075
|
+
audio: audio,
|
|
5076
5076
|
};
|
|
5077
5077
|
let mediaTrack = {
|
|
5078
5078
|
frameRate: 30,
|
|
@@ -5151,6 +5151,7 @@ const IdBackCapture = class {
|
|
|
5151
5151
|
index.registerInstance(this, hostRef);
|
|
5152
5152
|
this.eventPhotoCapture = index.createEvent(this, "photoIdBackCapture", 7);
|
|
5153
5153
|
this.apiErrorEvent = index.createEvent(this, "apiError", 7);
|
|
5154
|
+
this.eventTimeElapsed = index.createEvent(this, "timeElapsed", 7);
|
|
5154
5155
|
this.photoIsReady = photos => {
|
|
5155
5156
|
//this.closeCamera();
|
|
5156
5157
|
this.eventPhotoCapture.emit(photos);
|
|
@@ -5218,16 +5219,21 @@ const IdBackCapture = class {
|
|
|
5218
5219
|
IDML5Detector.instance = null;
|
|
5219
5220
|
FaceML5Detector.instance = null;
|
|
5220
5221
|
}
|
|
5221
|
-
verificationFinished() {
|
|
5222
|
+
async verificationFinished() {
|
|
5222
5223
|
if (this.verified)
|
|
5223
5224
|
return;
|
|
5224
5225
|
this.verified = true;
|
|
5225
5226
|
this.titleMesage = this.translations.IdCaptureValues.Loading;
|
|
5226
5227
|
this.closeCamera();
|
|
5227
5228
|
this.showDemo = true;
|
|
5229
|
+
var loops = 0;
|
|
5228
5230
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
5229
|
-
this.demoVideo.loop =
|
|
5230
|
-
|
|
5231
|
+
this.demoVideo.loop = false;
|
|
5232
|
+
while (loops < 5) {
|
|
5233
|
+
this.demoVideo.play();
|
|
5234
|
+
await delay(this.translations.GlobalValues.VideoLenght);
|
|
5235
|
+
}
|
|
5236
|
+
this.eventTimeElapsed.emit();
|
|
5231
5237
|
}
|
|
5232
5238
|
async takePhoto() {
|
|
5233
5239
|
if (this.captureTaken)
|
|
@@ -5261,6 +5267,7 @@ const IdCapture = class {
|
|
|
5261
5267
|
index.registerInstance(this, hostRef);
|
|
5262
5268
|
this.eventPhotoCapture = index.createEvent(this, "photoIdCapture", 7);
|
|
5263
5269
|
this.apiErrorEvent = index.createEvent(this, "apiError", 7);
|
|
5270
|
+
this.eventTimeElapsed = index.createEvent(this, "timeElapsed", 7);
|
|
5264
5271
|
this.photoIsReady = photos => {
|
|
5265
5272
|
//this.closeCamera();
|
|
5266
5273
|
this.eventPhotoCapture.emit(photos);
|
|
@@ -5339,9 +5346,14 @@ const IdCapture = class {
|
|
|
5339
5346
|
this.titleMesage = this.translations.IdCaptureValues.Loading;
|
|
5340
5347
|
this.closeCamera();
|
|
5341
5348
|
this.showDemo = true;
|
|
5349
|
+
var loops = 0;
|
|
5342
5350
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
5343
|
-
this.demoVideo.loop =
|
|
5344
|
-
|
|
5351
|
+
this.demoVideo.loop = false;
|
|
5352
|
+
while (loops < 5) {
|
|
5353
|
+
this.demoVideo.play();
|
|
5354
|
+
await delay(this.translations.GlobalValues.VideoLenght);
|
|
5355
|
+
}
|
|
5356
|
+
this.eventTimeElapsed.emit();
|
|
5345
5357
|
}
|
|
5346
5358
|
render() {
|
|
5347
5359
|
let cameraStyle;
|
|
@@ -5372,6 +5384,7 @@ const IdTilt = class {
|
|
|
5372
5384
|
index.registerInstance(this, hostRef);
|
|
5373
5385
|
this.eventPhotoCapture = index.createEvent(this, "photoTiltCapture", 7);
|
|
5374
5386
|
this.apiErrorEvent = index.createEvent(this, "apiError", 7);
|
|
5387
|
+
this.eventTimeElapsed = index.createEvent(this, "timeElapsed", 7);
|
|
5375
5388
|
this.photoIsReady = photos => {
|
|
5376
5389
|
//this.closeCamera();
|
|
5377
5390
|
this.eventPhotoCapture.emit(photos);
|
|
@@ -5450,9 +5463,14 @@ const IdTilt = class {
|
|
|
5450
5463
|
this.titleMesage = this.translations.IdCaptureValues.Loading;
|
|
5451
5464
|
this.closeCamera();
|
|
5452
5465
|
this.showDemo = true;
|
|
5466
|
+
var loops = 0;
|
|
5453
5467
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
5454
|
-
this.demoVideo.loop =
|
|
5455
|
-
|
|
5468
|
+
this.demoVideo.loop = false;
|
|
5469
|
+
while (loops < 5) {
|
|
5470
|
+
this.demoVideo.play();
|
|
5471
|
+
await delay(this.translations.GlobalValues.VideoLenght);
|
|
5472
|
+
}
|
|
5473
|
+
this.eventTimeElapsed.emit();
|
|
5456
5474
|
}
|
|
5457
5475
|
render() {
|
|
5458
5476
|
let cameraStyle;
|
|
@@ -5541,7 +5559,7 @@ function v4(options, buf, offset) {
|
|
|
5541
5559
|
}
|
|
5542
5560
|
|
|
5543
5561
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
5544
|
-
const version$1 = "3.6.
|
|
5562
|
+
const version$1 = "3.6.35";
|
|
5545
5563
|
const description = "Person Identification Component";
|
|
5546
5564
|
const main = "./dist/index.cjs.js";
|
|
5547
5565
|
const module$1 = "./dist/index.js";
|
|
@@ -9199,6 +9217,7 @@ const SelfieCapture = class {
|
|
|
9199
9217
|
index.registerInstance(this, hostRef);
|
|
9200
9218
|
this.eventPhotoCapture = index.createEvent(this, "photoSelfieCapture", 7);
|
|
9201
9219
|
this.apiErrorEvent = index.createEvent(this, "apiError", 7);
|
|
9220
|
+
this.eventTimeElapsed = index.createEvent(this, "timeElapsed", 7);
|
|
9202
9221
|
this.photoIsReady = photos => {
|
|
9203
9222
|
//this.closeCamera();
|
|
9204
9223
|
this.eventPhotoCapture.emit(photos);
|
|
@@ -9275,16 +9294,21 @@ const SelfieCapture = class {
|
|
|
9275
9294
|
this.photoIsReady(res);
|
|
9276
9295
|
await this.baseComponent.logStep(TranslationUtils.FlowSteps.SelfieCapture, TranslationUtils.FlowMoments.Finalized);
|
|
9277
9296
|
}
|
|
9278
|
-
verificationFinished() {
|
|
9297
|
+
async verificationFinished() {
|
|
9279
9298
|
if (this.verified)
|
|
9280
9299
|
return;
|
|
9281
9300
|
this.verified = true;
|
|
9282
9301
|
this.titleMesage = this.translations.SelfieCaptureValues.Loading;
|
|
9283
9302
|
this.closeCamera();
|
|
9284
9303
|
this.demoEnded = false;
|
|
9304
|
+
var loops = 0;
|
|
9285
9305
|
this.demoVideo.src = this.uploadingLink;
|
|
9286
|
-
this.demoVideo.loop =
|
|
9287
|
-
|
|
9306
|
+
this.demoVideo.loop = false;
|
|
9307
|
+
while (loops < 5) {
|
|
9308
|
+
this.demoVideo.play();
|
|
9309
|
+
await delay(this.translations.GlobalValues.VideoLenght);
|
|
9310
|
+
}
|
|
9311
|
+
this.eventTimeElapsed.emit();
|
|
9288
9312
|
}
|
|
9289
9313
|
render() {
|
|
9290
9314
|
let cameraStyle;
|
|
@@ -9315,6 +9339,7 @@ const SelfieTilt = class {
|
|
|
9315
9339
|
index.registerInstance(this, hostRef);
|
|
9316
9340
|
this.eventPhotoCapture = index.createEvent(this, "photoSelfieTiltCapture", 7);
|
|
9317
9341
|
this.apiErrorEvent = index.createEvent(this, "apiError", 7);
|
|
9342
|
+
this.eventTimeElapsed = index.createEvent(this, "timeElapsed", 7);
|
|
9318
9343
|
this.photoIsReady = photos => {
|
|
9319
9344
|
//this.closeCamera();
|
|
9320
9345
|
this.eventPhotoCapture.emit(photos);
|
|
@@ -9353,7 +9378,7 @@ const SelfieTilt = class {
|
|
|
9353
9378
|
async componentDidLoad() {
|
|
9354
9379
|
this.mainStream = Stream.getInstance(VerificationMode.Tilt);
|
|
9355
9380
|
await this.baseComponent.logStep(TranslationUtils.FlowSteps.SelfieTilt, TranslationUtils.FlowMoments.Initialized);
|
|
9356
|
-
this.titleMesage = this.translations.SelfieCaptureValues.FacePoseMapping[
|
|
9381
|
+
this.titleMesage = this.translations.SelfieCaptureValues.FacePoseMapping[this.mainStream.facePose];
|
|
9357
9382
|
this.demoEnded = false;
|
|
9358
9383
|
this.demoVideo.src = TranslationUtils.SelfieCaptureValues.FacePoseDemoMapping[this.mainStream.facePose];
|
|
9359
9384
|
this.demoVideo.play();
|
|
@@ -9393,16 +9418,21 @@ const SelfieTilt = class {
|
|
|
9393
9418
|
this.photoIsReady(res);
|
|
9394
9419
|
await this.baseComponent.logStep(TranslationUtils.FlowSteps.SelfieCapture, TranslationUtils.FlowMoments.Finalized);
|
|
9395
9420
|
}
|
|
9396
|
-
verificationFinished() {
|
|
9421
|
+
async verificationFinished() {
|
|
9397
9422
|
if (this.verified)
|
|
9398
9423
|
return;
|
|
9399
9424
|
this.verified = true;
|
|
9400
9425
|
this.titleMesage = this.translations.SelfieCaptureValues.Loading;
|
|
9401
9426
|
this.closeCamera();
|
|
9402
9427
|
this.demoEnded = false;
|
|
9428
|
+
var loops = 0;
|
|
9403
9429
|
this.demoVideo.src = this.uploadingLink;
|
|
9404
|
-
this.demoVideo.loop =
|
|
9405
|
-
|
|
9430
|
+
this.demoVideo.loop = false;
|
|
9431
|
+
while (loops < 5) {
|
|
9432
|
+
this.demoVideo.play();
|
|
9433
|
+
await delay(this.translations.GlobalValues.VideoLenght);
|
|
9434
|
+
}
|
|
9435
|
+
this.eventTimeElapsed.emit();
|
|
9406
9436
|
}
|
|
9407
9437
|
render() {
|
|
9408
9438
|
let cameraStyle;
|
|
@@ -82,16 +82,21 @@ export class IdBackCapture {
|
|
|
82
82
|
IDML5Detector.instance = null;
|
|
83
83
|
FaceML5Detector.instance = null;
|
|
84
84
|
}
|
|
85
|
-
verificationFinished() {
|
|
85
|
+
async verificationFinished() {
|
|
86
86
|
if (this.verified)
|
|
87
87
|
return;
|
|
88
88
|
this.verified = true;
|
|
89
89
|
this.titleMesage = this.translations.IdCaptureValues.Loading;
|
|
90
90
|
this.closeCamera();
|
|
91
91
|
this.showDemo = true;
|
|
92
|
+
var loops = 0;
|
|
92
93
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
93
|
-
this.demoVideo.loop =
|
|
94
|
-
|
|
94
|
+
this.demoVideo.loop = false;
|
|
95
|
+
while (loops < 5) {
|
|
96
|
+
this.demoVideo.play();
|
|
97
|
+
await delay(this.translations.GlobalValues.VideoLenght);
|
|
98
|
+
}
|
|
99
|
+
this.eventTimeElapsed.emit();
|
|
95
100
|
}
|
|
96
101
|
async takePhoto() {
|
|
97
102
|
if (this.captureTaken)
|
|
@@ -166,6 +171,21 @@ export class IdBackCapture {
|
|
|
166
171
|
"resolved": "any",
|
|
167
172
|
"references": {}
|
|
168
173
|
}
|
|
174
|
+
}, {
|
|
175
|
+
"method": "eventTimeElapsed",
|
|
176
|
+
"name": "timeElapsed",
|
|
177
|
+
"bubbles": true,
|
|
178
|
+
"cancelable": true,
|
|
179
|
+
"composed": true,
|
|
180
|
+
"docs": {
|
|
181
|
+
"tags": [],
|
|
182
|
+
"text": ""
|
|
183
|
+
},
|
|
184
|
+
"complexType": {
|
|
185
|
+
"original": "any",
|
|
186
|
+
"resolved": "any",
|
|
187
|
+
"references": {}
|
|
188
|
+
}
|
|
169
189
|
}];
|
|
170
190
|
}
|
|
171
191
|
static get elementRef() { return "component"; }
|
|
@@ -93,9 +93,14 @@ export class IdCapture {
|
|
|
93
93
|
this.titleMesage = this.translations.IdCaptureValues.Loading;
|
|
94
94
|
this.closeCamera();
|
|
95
95
|
this.showDemo = true;
|
|
96
|
+
var loops = 0;
|
|
96
97
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
97
|
-
this.demoVideo.loop =
|
|
98
|
-
|
|
98
|
+
this.demoVideo.loop = false;
|
|
99
|
+
while (loops < 5) {
|
|
100
|
+
this.demoVideo.play();
|
|
101
|
+
await delay(this.translations.GlobalValues.VideoLenght);
|
|
102
|
+
}
|
|
103
|
+
this.eventTimeElapsed.emit();
|
|
99
104
|
}
|
|
100
105
|
render() {
|
|
101
106
|
let cameraStyle;
|
|
@@ -167,6 +172,21 @@ export class IdCapture {
|
|
|
167
172
|
"resolved": "any",
|
|
168
173
|
"references": {}
|
|
169
174
|
}
|
|
175
|
+
}, {
|
|
176
|
+
"method": "eventTimeElapsed",
|
|
177
|
+
"name": "timeElapsed",
|
|
178
|
+
"bubbles": true,
|
|
179
|
+
"cancelable": true,
|
|
180
|
+
"composed": true,
|
|
181
|
+
"docs": {
|
|
182
|
+
"tags": [],
|
|
183
|
+
"text": ""
|
|
184
|
+
},
|
|
185
|
+
"complexType": {
|
|
186
|
+
"original": "any",
|
|
187
|
+
"resolved": "any",
|
|
188
|
+
"references": {}
|
|
189
|
+
}
|
|
170
190
|
}];
|
|
171
191
|
}
|
|
172
192
|
static get elementRef() { return "component"; }
|
|
@@ -93,9 +93,14 @@ export class IdTilt {
|
|
|
93
93
|
this.titleMesage = this.translations.IdCaptureValues.Loading;
|
|
94
94
|
this.closeCamera();
|
|
95
95
|
this.showDemo = true;
|
|
96
|
+
var loops = 0;
|
|
96
97
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
97
|
-
this.demoVideo.loop =
|
|
98
|
-
|
|
98
|
+
this.demoVideo.loop = false;
|
|
99
|
+
while (loops < 5) {
|
|
100
|
+
this.demoVideo.play();
|
|
101
|
+
await delay(this.translations.GlobalValues.VideoLenght);
|
|
102
|
+
}
|
|
103
|
+
this.eventTimeElapsed.emit();
|
|
99
104
|
}
|
|
100
105
|
render() {
|
|
101
106
|
let cameraStyle;
|
|
@@ -167,6 +172,21 @@ export class IdTilt {
|
|
|
167
172
|
"resolved": "any",
|
|
168
173
|
"references": {}
|
|
169
174
|
}
|
|
175
|
+
}, {
|
|
176
|
+
"method": "eventTimeElapsed",
|
|
177
|
+
"name": "timeElapsed",
|
|
178
|
+
"bubbles": true,
|
|
179
|
+
"cancelable": true,
|
|
180
|
+
"composed": true,
|
|
181
|
+
"docs": {
|
|
182
|
+
"tags": [],
|
|
183
|
+
"text": ""
|
|
184
|
+
},
|
|
185
|
+
"complexType": {
|
|
186
|
+
"original": "any",
|
|
187
|
+
"resolved": "any",
|
|
188
|
+
"references": {}
|
|
189
|
+
}
|
|
170
190
|
}];
|
|
171
191
|
}
|
|
172
192
|
static get elementRef() { return "component"; }
|
|
@@ -89,16 +89,21 @@ export class SelfieCapture {
|
|
|
89
89
|
this.photoIsReady(res);
|
|
90
90
|
await this.baseComponent.logStep(FlowSteps.SelfieCapture, FlowMoments.Finalized);
|
|
91
91
|
}
|
|
92
|
-
verificationFinished() {
|
|
92
|
+
async verificationFinished() {
|
|
93
93
|
if (this.verified)
|
|
94
94
|
return;
|
|
95
95
|
this.verified = true;
|
|
96
96
|
this.titleMesage = this.translations.SelfieCaptureValues.Loading;
|
|
97
97
|
this.closeCamera();
|
|
98
98
|
this.demoEnded = false;
|
|
99
|
+
var loops = 0;
|
|
99
100
|
this.demoVideo.src = this.uploadingLink;
|
|
100
|
-
this.demoVideo.loop =
|
|
101
|
-
|
|
101
|
+
this.demoVideo.loop = false;
|
|
102
|
+
while (loops < 5) {
|
|
103
|
+
this.demoVideo.play();
|
|
104
|
+
await delay(this.translations.GlobalValues.VideoLenght);
|
|
105
|
+
}
|
|
106
|
+
this.eventTimeElapsed.emit();
|
|
102
107
|
}
|
|
103
108
|
render() {
|
|
104
109
|
let cameraStyle;
|
|
@@ -172,6 +177,21 @@ export class SelfieCapture {
|
|
|
172
177
|
"resolved": "any",
|
|
173
178
|
"references": {}
|
|
174
179
|
}
|
|
180
|
+
}, {
|
|
181
|
+
"method": "eventTimeElapsed",
|
|
182
|
+
"name": "timeElapsed",
|
|
183
|
+
"bubbles": true,
|
|
184
|
+
"cancelable": true,
|
|
185
|
+
"composed": true,
|
|
186
|
+
"docs": {
|
|
187
|
+
"tags": [],
|
|
188
|
+
"text": ""
|
|
189
|
+
},
|
|
190
|
+
"complexType": {
|
|
191
|
+
"original": "any",
|
|
192
|
+
"resolved": "any",
|
|
193
|
+
"references": {}
|
|
194
|
+
}
|
|
175
195
|
}];
|
|
176
196
|
}
|
|
177
197
|
static get elementRef() { return "component"; }
|
|
@@ -8,7 +8,6 @@ import store from '../../../helpers/store';
|
|
|
8
8
|
import { BaseComponent } from '../../base-component';
|
|
9
9
|
import { FlowMoments, FlowSteps } from '../../../models/FlowSteps';
|
|
10
10
|
import { VerificationMode } from '../../../models/IVerificationMode';
|
|
11
|
-
import { FacePose } from '../../../libs/FaceML5Detector/FacePose';
|
|
12
11
|
import { Translations } from '../../../helpers/TranslationUtils';
|
|
13
12
|
export class SelfieTilt {
|
|
14
13
|
// @State() private animationPath: string;
|
|
@@ -51,7 +50,7 @@ export class SelfieTilt {
|
|
|
51
50
|
async componentDidLoad() {
|
|
52
51
|
this.mainStream = Stream.getInstance(VerificationMode.Tilt);
|
|
53
52
|
await this.baseComponent.logStep(FlowSteps.SelfieTilt, FlowMoments.Initialized);
|
|
54
|
-
this.titleMesage = this.translations.SelfieCaptureValues.FacePoseMapping[
|
|
53
|
+
this.titleMesage = this.translations.SelfieCaptureValues.FacePoseMapping[this.mainStream.facePose];
|
|
55
54
|
this.demoEnded = false;
|
|
56
55
|
this.demoVideo.src = SelfieCaptureValues.FacePoseDemoMapping[this.mainStream.facePose];
|
|
57
56
|
this.demoVideo.play();
|
|
@@ -91,16 +90,21 @@ export class SelfieTilt {
|
|
|
91
90
|
this.photoIsReady(res);
|
|
92
91
|
await this.baseComponent.logStep(FlowSteps.SelfieCapture, FlowMoments.Finalized);
|
|
93
92
|
}
|
|
94
|
-
verificationFinished() {
|
|
93
|
+
async verificationFinished() {
|
|
95
94
|
if (this.verified)
|
|
96
95
|
return;
|
|
97
96
|
this.verified = true;
|
|
98
97
|
this.titleMesage = this.translations.SelfieCaptureValues.Loading;
|
|
99
98
|
this.closeCamera();
|
|
100
99
|
this.demoEnded = false;
|
|
100
|
+
var loops = 0;
|
|
101
101
|
this.demoVideo.src = this.uploadingLink;
|
|
102
|
-
this.demoVideo.loop =
|
|
103
|
-
|
|
102
|
+
this.demoVideo.loop = false;
|
|
103
|
+
while (loops < 5) {
|
|
104
|
+
this.demoVideo.play();
|
|
105
|
+
await delay(this.translations.GlobalValues.VideoLenght);
|
|
106
|
+
}
|
|
107
|
+
this.eventTimeElapsed.emit();
|
|
104
108
|
}
|
|
105
109
|
render() {
|
|
106
110
|
let cameraStyle;
|
|
@@ -174,6 +178,21 @@ export class SelfieTilt {
|
|
|
174
178
|
"resolved": "any",
|
|
175
179
|
"references": {}
|
|
176
180
|
}
|
|
181
|
+
}, {
|
|
182
|
+
"method": "eventTimeElapsed",
|
|
183
|
+
"name": "timeElapsed",
|
|
184
|
+
"bubbles": true,
|
|
185
|
+
"cancelable": true,
|
|
186
|
+
"composed": true,
|
|
187
|
+
"docs": {
|
|
188
|
+
"tags": [],
|
|
189
|
+
"text": ""
|
|
190
|
+
},
|
|
191
|
+
"complexType": {
|
|
192
|
+
"original": "any",
|
|
193
|
+
"resolved": "any",
|
|
194
|
+
"references": {}
|
|
195
|
+
}
|
|
177
196
|
}];
|
|
178
197
|
}
|
|
179
198
|
static get elementRef() { return "component"; }
|
|
@@ -6,7 +6,7 @@ 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 = this.GetConstraints(device.deviceId, deviceInfo);
|
|
9
|
+
const updatedConstraints = this.GetConstraints(device.deviceId, deviceInfo, false, false);
|
|
10
10
|
const stream = await navigator.mediaDevices.getUserMedia(updatedConstraints);
|
|
11
11
|
stream.getVideoTracks().forEach(track => {
|
|
12
12
|
var _a, _b;
|
|
@@ -64,9 +64,9 @@ export class Cameras {
|
|
|
64
64
|
}
|
|
65
65
|
return allDevices;
|
|
66
66
|
}
|
|
67
|
-
GetConstraints(selectedDeviceId, device, portrait = false) {
|
|
67
|
+
GetConstraints(selectedDeviceId, device, portrait = false, audio = true) {
|
|
68
68
|
let constraints = {
|
|
69
|
-
audio:
|
|
69
|
+
audio: audio,
|
|
70
70
|
};
|
|
71
71
|
let mediaTrack = {
|
|
72
72
|
frameRate: 30,
|
|
@@ -5008,7 +5008,7 @@ class Cameras {
|
|
|
5008
5008
|
const devices = await navigator.mediaDevices.enumerateDevices();
|
|
5009
5009
|
const videoDevices = devices.filter(device => device.kind === 'videoinput');
|
|
5010
5010
|
for (const device of videoDevices) {
|
|
5011
|
-
const updatedConstraints = this.GetConstraints(device.deviceId, deviceInfo);
|
|
5011
|
+
const updatedConstraints = this.GetConstraints(device.deviceId, deviceInfo, false, false);
|
|
5012
5012
|
const stream = await navigator.mediaDevices.getUserMedia(updatedConstraints);
|
|
5013
5013
|
stream.getVideoTracks().forEach(track => {
|
|
5014
5014
|
var _a, _b;
|
|
@@ -5066,9 +5066,9 @@ class Cameras {
|
|
|
5066
5066
|
}
|
|
5067
5067
|
return allDevices;
|
|
5068
5068
|
}
|
|
5069
|
-
GetConstraints(selectedDeviceId, device, portrait = false) {
|
|
5069
|
+
GetConstraints(selectedDeviceId, device, portrait = false, audio = true) {
|
|
5070
5070
|
let constraints = {
|
|
5071
|
-
audio:
|
|
5071
|
+
audio: audio,
|
|
5072
5072
|
};
|
|
5073
5073
|
let mediaTrack = {
|
|
5074
5074
|
frameRate: 30,
|
|
@@ -5147,6 +5147,7 @@ const IdBackCapture = class {
|
|
|
5147
5147
|
registerInstance(this, hostRef);
|
|
5148
5148
|
this.eventPhotoCapture = createEvent(this, "photoIdBackCapture", 7);
|
|
5149
5149
|
this.apiErrorEvent = createEvent(this, "apiError", 7);
|
|
5150
|
+
this.eventTimeElapsed = createEvent(this, "timeElapsed", 7);
|
|
5150
5151
|
this.photoIsReady = photos => {
|
|
5151
5152
|
//this.closeCamera();
|
|
5152
5153
|
this.eventPhotoCapture.emit(photos);
|
|
@@ -5214,16 +5215,21 @@ const IdBackCapture = class {
|
|
|
5214
5215
|
IDML5Detector.instance = null;
|
|
5215
5216
|
FaceML5Detector.instance = null;
|
|
5216
5217
|
}
|
|
5217
|
-
verificationFinished() {
|
|
5218
|
+
async verificationFinished() {
|
|
5218
5219
|
if (this.verified)
|
|
5219
5220
|
return;
|
|
5220
5221
|
this.verified = true;
|
|
5221
5222
|
this.titleMesage = this.translations.IdCaptureValues.Loading;
|
|
5222
5223
|
this.closeCamera();
|
|
5223
5224
|
this.showDemo = true;
|
|
5225
|
+
var loops = 0;
|
|
5224
5226
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
5225
|
-
this.demoVideo.loop =
|
|
5226
|
-
|
|
5227
|
+
this.demoVideo.loop = false;
|
|
5228
|
+
while (loops < 5) {
|
|
5229
|
+
this.demoVideo.play();
|
|
5230
|
+
await delay(this.translations.GlobalValues.VideoLenght);
|
|
5231
|
+
}
|
|
5232
|
+
this.eventTimeElapsed.emit();
|
|
5227
5233
|
}
|
|
5228
5234
|
async takePhoto() {
|
|
5229
5235
|
if (this.captureTaken)
|
|
@@ -5257,6 +5263,7 @@ const IdCapture = class {
|
|
|
5257
5263
|
registerInstance(this, hostRef);
|
|
5258
5264
|
this.eventPhotoCapture = createEvent(this, "photoIdCapture", 7);
|
|
5259
5265
|
this.apiErrorEvent = createEvent(this, "apiError", 7);
|
|
5266
|
+
this.eventTimeElapsed = createEvent(this, "timeElapsed", 7);
|
|
5260
5267
|
this.photoIsReady = photos => {
|
|
5261
5268
|
//this.closeCamera();
|
|
5262
5269
|
this.eventPhotoCapture.emit(photos);
|
|
@@ -5335,9 +5342,14 @@ const IdCapture = class {
|
|
|
5335
5342
|
this.titleMesage = this.translations.IdCaptureValues.Loading;
|
|
5336
5343
|
this.closeCamera();
|
|
5337
5344
|
this.showDemo = true;
|
|
5345
|
+
var loops = 0;
|
|
5338
5346
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
5339
|
-
this.demoVideo.loop =
|
|
5340
|
-
|
|
5347
|
+
this.demoVideo.loop = false;
|
|
5348
|
+
while (loops < 5) {
|
|
5349
|
+
this.demoVideo.play();
|
|
5350
|
+
await delay(this.translations.GlobalValues.VideoLenght);
|
|
5351
|
+
}
|
|
5352
|
+
this.eventTimeElapsed.emit();
|
|
5341
5353
|
}
|
|
5342
5354
|
render() {
|
|
5343
5355
|
let cameraStyle;
|
|
@@ -5368,6 +5380,7 @@ const IdTilt = class {
|
|
|
5368
5380
|
registerInstance(this, hostRef);
|
|
5369
5381
|
this.eventPhotoCapture = createEvent(this, "photoTiltCapture", 7);
|
|
5370
5382
|
this.apiErrorEvent = createEvent(this, "apiError", 7);
|
|
5383
|
+
this.eventTimeElapsed = createEvent(this, "timeElapsed", 7);
|
|
5371
5384
|
this.photoIsReady = photos => {
|
|
5372
5385
|
//this.closeCamera();
|
|
5373
5386
|
this.eventPhotoCapture.emit(photos);
|
|
@@ -5446,9 +5459,14 @@ const IdTilt = class {
|
|
|
5446
5459
|
this.titleMesage = this.translations.IdCaptureValues.Loading;
|
|
5447
5460
|
this.closeCamera();
|
|
5448
5461
|
this.showDemo = true;
|
|
5462
|
+
var loops = 0;
|
|
5449
5463
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
5450
|
-
this.demoVideo.loop =
|
|
5451
|
-
|
|
5464
|
+
this.demoVideo.loop = false;
|
|
5465
|
+
while (loops < 5) {
|
|
5466
|
+
this.demoVideo.play();
|
|
5467
|
+
await delay(this.translations.GlobalValues.VideoLenght);
|
|
5468
|
+
}
|
|
5469
|
+
this.eventTimeElapsed.emit();
|
|
5452
5470
|
}
|
|
5453
5471
|
render() {
|
|
5454
5472
|
let cameraStyle;
|
|
@@ -5537,7 +5555,7 @@ function v4(options, buf, offset) {
|
|
|
5537
5555
|
}
|
|
5538
5556
|
|
|
5539
5557
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
5540
|
-
const version$1 = "3.6.
|
|
5558
|
+
const version$1 = "3.6.35";
|
|
5541
5559
|
const description = "Person Identification Component";
|
|
5542
5560
|
const main = "./dist/index.cjs.js";
|
|
5543
5561
|
const module = "./dist/index.js";
|
|
@@ -9195,6 +9213,7 @@ const SelfieCapture = class {
|
|
|
9195
9213
|
registerInstance(this, hostRef);
|
|
9196
9214
|
this.eventPhotoCapture = createEvent(this, "photoSelfieCapture", 7);
|
|
9197
9215
|
this.apiErrorEvent = createEvent(this, "apiError", 7);
|
|
9216
|
+
this.eventTimeElapsed = createEvent(this, "timeElapsed", 7);
|
|
9198
9217
|
this.photoIsReady = photos => {
|
|
9199
9218
|
//this.closeCamera();
|
|
9200
9219
|
this.eventPhotoCapture.emit(photos);
|
|
@@ -9271,16 +9290,21 @@ const SelfieCapture = class {
|
|
|
9271
9290
|
this.photoIsReady(res);
|
|
9272
9291
|
await this.baseComponent.logStep(FlowSteps.SelfieCapture, FlowMoments.Finalized);
|
|
9273
9292
|
}
|
|
9274
|
-
verificationFinished() {
|
|
9293
|
+
async verificationFinished() {
|
|
9275
9294
|
if (this.verified)
|
|
9276
9295
|
return;
|
|
9277
9296
|
this.verified = true;
|
|
9278
9297
|
this.titleMesage = this.translations.SelfieCaptureValues.Loading;
|
|
9279
9298
|
this.closeCamera();
|
|
9280
9299
|
this.demoEnded = false;
|
|
9300
|
+
var loops = 0;
|
|
9281
9301
|
this.demoVideo.src = this.uploadingLink;
|
|
9282
|
-
this.demoVideo.loop =
|
|
9283
|
-
|
|
9302
|
+
this.demoVideo.loop = false;
|
|
9303
|
+
while (loops < 5) {
|
|
9304
|
+
this.demoVideo.play();
|
|
9305
|
+
await delay(this.translations.GlobalValues.VideoLenght);
|
|
9306
|
+
}
|
|
9307
|
+
this.eventTimeElapsed.emit();
|
|
9284
9308
|
}
|
|
9285
9309
|
render() {
|
|
9286
9310
|
let cameraStyle;
|
|
@@ -9311,6 +9335,7 @@ const SelfieTilt = class {
|
|
|
9311
9335
|
registerInstance(this, hostRef);
|
|
9312
9336
|
this.eventPhotoCapture = createEvent(this, "photoSelfieTiltCapture", 7);
|
|
9313
9337
|
this.apiErrorEvent = createEvent(this, "apiError", 7);
|
|
9338
|
+
this.eventTimeElapsed = createEvent(this, "timeElapsed", 7);
|
|
9314
9339
|
this.photoIsReady = photos => {
|
|
9315
9340
|
//this.closeCamera();
|
|
9316
9341
|
this.eventPhotoCapture.emit(photos);
|
|
@@ -9349,7 +9374,7 @@ const SelfieTilt = class {
|
|
|
9349
9374
|
async componentDidLoad() {
|
|
9350
9375
|
this.mainStream = Stream.getInstance(VerificationMode.Tilt);
|
|
9351
9376
|
await this.baseComponent.logStep(FlowSteps.SelfieTilt, FlowMoments.Initialized);
|
|
9352
|
-
this.titleMesage = this.translations.SelfieCaptureValues.FacePoseMapping[
|
|
9377
|
+
this.titleMesage = this.translations.SelfieCaptureValues.FacePoseMapping[this.mainStream.facePose];
|
|
9353
9378
|
this.demoEnded = false;
|
|
9354
9379
|
this.demoVideo.src = SelfieCaptureValues.FacePoseDemoMapping[this.mainStream.facePose];
|
|
9355
9380
|
this.demoVideo.play();
|
|
@@ -9389,16 +9414,21 @@ const SelfieTilt = class {
|
|
|
9389
9414
|
this.photoIsReady(res);
|
|
9390
9415
|
await this.baseComponent.logStep(FlowSteps.SelfieCapture, FlowMoments.Finalized);
|
|
9391
9416
|
}
|
|
9392
|
-
verificationFinished() {
|
|
9417
|
+
async verificationFinished() {
|
|
9393
9418
|
if (this.verified)
|
|
9394
9419
|
return;
|
|
9395
9420
|
this.verified = true;
|
|
9396
9421
|
this.titleMesage = this.translations.SelfieCaptureValues.Loading;
|
|
9397
9422
|
this.closeCamera();
|
|
9398
9423
|
this.demoEnded = false;
|
|
9424
|
+
var loops = 0;
|
|
9399
9425
|
this.demoVideo.src = this.uploadingLink;
|
|
9400
|
-
this.demoVideo.loop =
|
|
9401
|
-
|
|
9426
|
+
this.demoVideo.loop = false;
|
|
9427
|
+
while (loops < 5) {
|
|
9428
|
+
this.demoVideo.play();
|
|
9429
|
+
await delay(this.translations.GlobalValues.VideoLenght);
|
|
9430
|
+
}
|
|
9431
|
+
this.eventTimeElapsed.emit();
|
|
9402
9432
|
}
|
|
9403
9433
|
render() {
|
|
9404
9434
|
let cameraStyle;
|