@ekyc_qoobiss/qbs-ect-cmp 3.6.36 → 3.6.37

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.
@@ -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 getInstance(mode) {
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.getInstance(captureMode);
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.getInstance(VerificationMode.Full);
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.getInstance(VerificationMode.Full).dropStream();
5214
+ Stream.instance.dropStream();
5214
5215
  }
5215
5216
  }
5216
5217
  disconnectedCallback() {
@@ -5239,8 +5240,13 @@ const IdBackCapture = class {
5239
5240
  if (this.captureTaken)
5240
5241
  return;
5241
5242
  this.captureTaken = true;
5242
- let res = await Stream.getInstance(VerificationMode.Full).takePhoto();
5243
- this.photoIsReady(res);
5243
+ if (Stream.instance) {
5244
+ let res = await Stream.instance.takePhoto();
5245
+ this.photoIsReady(res);
5246
+ }
5247
+ else {
5248
+ this.eventTimeElapsed.emit();
5249
+ }
5244
5250
  await this.baseComponent.logStep(TranslationUtils.FlowSteps.CiBackCapture, TranslationUtils.FlowMoments.Finalized);
5245
5251
  }
5246
5252
  render() {
@@ -5311,7 +5317,7 @@ const IdCapture = class {
5311
5317
  navigator.mediaDevices
5312
5318
  .getUserMedia(constraints)
5313
5319
  .then(stream => {
5314
- const superStream = Stream.getInstance(VerificationMode.Full);
5320
+ const superStream = Stream.getNewInstance(VerificationMode.Full);
5315
5321
  superStream.initStream(stream);
5316
5322
  })
5317
5323
  .catch(e => {
@@ -5322,7 +5328,7 @@ const IdCapture = class {
5322
5328
  }
5323
5329
  closeCamera() {
5324
5330
  if (Stream.instance) {
5325
- Stream.getInstance(VerificationMode.Full).dropStream();
5331
+ Stream.instance.dropStream();
5326
5332
  }
5327
5333
  }
5328
5334
  disconnectedCallback() {
@@ -5335,8 +5341,13 @@ const IdCapture = class {
5335
5341
  if (this.captureTaken)
5336
5342
  return;
5337
5343
  this.captureTaken = true;
5338
- let res = await Stream.getInstance(VerificationMode.Full).takePhoto();
5339
- this.photoIsReady(res);
5344
+ if (Stream.instance) {
5345
+ let res = await Stream.instance.takePhoto();
5346
+ this.photoIsReady(res);
5347
+ }
5348
+ else {
5349
+ this.eventTimeElapsed.emit();
5350
+ }
5340
5351
  await this.baseComponent.logStep(TranslationUtils.FlowSteps.CiFrontCapture, TranslationUtils.FlowMoments.Finalized);
5341
5352
  }
5342
5353
  async verificationFinished() {
@@ -5428,7 +5439,7 @@ const IdTilt = class {
5428
5439
  navigator.mediaDevices
5429
5440
  .getUserMedia(constraints)
5430
5441
  .then(stream => {
5431
- const superStream = Stream.getInstance(VerificationMode.Full);
5442
+ const superStream = Stream.getNewInstance(VerificationMode.Tilt);
5432
5443
  superStream.initStream(stream);
5433
5444
  })
5434
5445
  .catch(e => {
@@ -5439,7 +5450,7 @@ const IdTilt = class {
5439
5450
  }
5440
5451
  closeCamera() {
5441
5452
  if (Stream.instance) {
5442
- Stream.getInstance(VerificationMode.Full).dropStream();
5453
+ Stream.instance.dropStream();
5443
5454
  }
5444
5455
  }
5445
5456
  disconnectedCallback() {
@@ -5452,8 +5463,13 @@ const IdTilt = class {
5452
5463
  if (this.captureTaken)
5453
5464
  return;
5454
5465
  this.captureTaken = true;
5455
- let res = await Stream.getInstance(VerificationMode.Full).takePhoto();
5456
- this.photoIsReady(res);
5466
+ if (Stream.instance) {
5467
+ let res = await Stream.instance.takePhoto();
5468
+ this.photoIsReady(res);
5469
+ }
5470
+ else {
5471
+ this.eventTimeElapsed.emit();
5472
+ }
5457
5473
  await this.baseComponent.logStep(TranslationUtils.FlowSteps.CiTilt, TranslationUtils.FlowMoments.Finalized);
5458
5474
  }
5459
5475
  async verificationFinished() {
@@ -5559,7 +5575,7 @@ function v4(options, buf, offset) {
5559
5575
  }
5560
5576
 
5561
5577
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
5562
- const version$1 = "3.6.36";
5578
+ const version$1 = "3.6.37";
5563
5579
  const description = "Person Identification Component";
5564
5580
  const main = "./dist/index.cjs.js";
5565
5581
  const module$1 = "./dist/index.js";
@@ -9272,7 +9288,7 @@ const SelfieCapture = class {
9272
9288
  navigator.mediaDevices
9273
9289
  .getUserMedia(constraints)
9274
9290
  .then(stream => {
9275
- const superStream = Stream.getInstance(VerificationMode.Full);
9291
+ const superStream = Stream.getNewInstance(VerificationMode.Full);
9276
9292
  superStream.initStream(stream);
9277
9293
  })
9278
9294
  .catch(e => {
@@ -9283,7 +9299,7 @@ const SelfieCapture = class {
9283
9299
  }
9284
9300
  closeCamera() {
9285
9301
  if (Stream.instance) {
9286
- Stream.getInstance(VerificationMode.Full).dropStream();
9302
+ Stream.instance.dropStream();
9287
9303
  }
9288
9304
  }
9289
9305
  disconnectedCallback() {
@@ -9295,8 +9311,13 @@ const SelfieCapture = class {
9295
9311
  if (this.captureTaken)
9296
9312
  return;
9297
9313
  this.captureTaken = true;
9298
- let res = await Stream.getInstance(VerificationMode.Full).takePhoto();
9299
- this.photoIsReady(res);
9314
+ if (Stream.instance) {
9315
+ let res = await Stream.instance.takePhoto();
9316
+ this.photoIsReady(res);
9317
+ }
9318
+ else {
9319
+ this.eventTimeElapsed.emit();
9320
+ }
9300
9321
  await this.baseComponent.logStep(TranslationUtils.FlowSteps.SelfieCapture, TranslationUtils.FlowMoments.Finalized);
9301
9322
  }
9302
9323
  async verificationFinished() {
@@ -9381,7 +9402,7 @@ const SelfieTilt = class {
9381
9402
  }
9382
9403
  }
9383
9404
  async componentDidLoad() {
9384
- this.mainStream = Stream.getInstance(VerificationMode.Tilt);
9405
+ this.mainStream = Stream.getNewInstance(VerificationMode.Tilt);
9385
9406
  await this.baseComponent.logStep(TranslationUtils.FlowSteps.SelfieTilt, TranslationUtils.FlowMoments.Initialized);
9386
9407
  this.titleMesage = this.translations.SelfieCaptureValues.FacePoseMapping[this.mainStream.facePose];
9387
9408
  this.demoEnded = false;
@@ -9421,7 +9442,7 @@ const SelfieTilt = class {
9421
9442
  this.captureTaken = true;
9422
9443
  let res = this.mainStream.takePhoto();
9423
9444
  this.photoIsReady(res);
9424
- await this.baseComponent.logStep(TranslationUtils.FlowSteps.SelfieCapture, TranslationUtils.FlowMoments.Finalized);
9445
+ await this.baseComponent.logStep(TranslationUtils.FlowSteps.SelfieTilt, TranslationUtils.FlowMoments.Finalized);
9425
9446
  }
9426
9447
  async verificationFinished() {
9427
9448
  if (this.verified)
@@ -62,7 +62,7 @@ export class IdBackCapture {
62
62
  navigator.mediaDevices
63
63
  .getUserMedia(constraints)
64
64
  .then(stream => {
65
- const superStream = Stream.getInstance(VerificationMode.Full);
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.getInstance(VerificationMode.Full).dropStream();
76
+ Stream.instance.dropStream();
77
77
  }
78
78
  }
79
79
  disconnectedCallback() {
@@ -102,8 +102,13 @@ export class IdBackCapture {
102
102
  if (this.captureTaken)
103
103
  return;
104
104
  this.captureTaken = true;
105
- let res = await Stream.getInstance(VerificationMode.Full).takePhoto();
106
- this.photoIsReady(res);
105
+ if (Stream.instance) {
106
+ let res = await Stream.instance.takePhoto();
107
+ this.photoIsReady(res);
108
+ }
109
+ else {
110
+ this.eventTimeElapsed.emit();
111
+ }
107
112
  await this.baseComponent.logStep(FlowSteps.CiBackCapture, FlowMoments.Finalized);
108
113
  }
109
114
  render() {
@@ -58,7 +58,7 @@ export class IdCapture {
58
58
  navigator.mediaDevices
59
59
  .getUserMedia(constraints)
60
60
  .then(stream => {
61
- const superStream = Stream.getInstance(VerificationMode.Full);
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.getInstance(VerificationMode.Full).dropStream();
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
- let res = await Stream.getInstance(VerificationMode.Full).takePhoto();
86
- this.photoIsReady(res);
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() {
@@ -58,7 +58,7 @@ export class IdTilt {
58
58
  navigator.mediaDevices
59
59
  .getUserMedia(constraints)
60
60
  .then(stream => {
61
- const superStream = Stream.getInstance(VerificationMode.Full);
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.getInstance(VerificationMode.Full).dropStream();
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
- let res = await Stream.getInstance(VerificationMode.Full).takePhoto();
86
- this.photoIsReady(res);
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() {
@@ -62,7 +62,7 @@ export class SelfieCapture {
62
62
  navigator.mediaDevices
63
63
  .getUserMedia(constraints)
64
64
  .then(stream => {
65
- const superStream = Stream.getInstance(VerificationMode.Full);
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.getInstance(VerificationMode.Full).dropStream();
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
- let res = await Stream.getInstance(VerificationMode.Full).takePhoto();
89
- this.photoIsReady(res);
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() {
@@ -48,7 +48,7 @@ export class SelfieTilt {
48
48
  }
49
49
  }
50
50
  async componentDidLoad() {
51
- this.mainStream = Stream.getInstance(VerificationMode.Tilt);
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.SelfieCapture, FlowMoments.Finalized);
91
+ await this.baseComponent.logStep(FlowSteps.SelfieTilt, FlowMoments.Finalized);
92
92
  }
93
93
  async verificationFinished() {
94
94
  if (this.verified)
@@ -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.getInstance(captureMode);
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 getInstance(mode) {
65
+ static getNewInstance(mode) {
66
66
  if (!Stream.instance) {
67
67
  Stream.instance = new Stream(mode);
68
68
  }
@@ -175,6 +175,7 @@ export class FaceML5Detector {
175
175
  if (this.stream.facePose !== null) {
176
176
  await delay(3000);
177
177
  this.validFacePose = true;
178
+ this.stream.autoCapturing();
178
179
  await this.drawFrame('green', true);
179
180
  }
180
181
  }
@@ -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 getInstance(mode) {
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.getInstance(captureMode);
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.getInstance(VerificationMode.Full);
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.getInstance(VerificationMode.Full).dropStream();
5210
+ Stream.instance.dropStream();
5210
5211
  }
5211
5212
  }
5212
5213
  disconnectedCallback() {
@@ -5235,8 +5236,13 @@ const IdBackCapture = class {
5235
5236
  if (this.captureTaken)
5236
5237
  return;
5237
5238
  this.captureTaken = true;
5238
- let res = await Stream.getInstance(VerificationMode.Full).takePhoto();
5239
- this.photoIsReady(res);
5239
+ if (Stream.instance) {
5240
+ let res = await Stream.instance.takePhoto();
5241
+ this.photoIsReady(res);
5242
+ }
5243
+ else {
5244
+ this.eventTimeElapsed.emit();
5245
+ }
5240
5246
  await this.baseComponent.logStep(FlowSteps.CiBackCapture, FlowMoments.Finalized);
5241
5247
  }
5242
5248
  render() {
@@ -5307,7 +5313,7 @@ const IdCapture = class {
5307
5313
  navigator.mediaDevices
5308
5314
  .getUserMedia(constraints)
5309
5315
  .then(stream => {
5310
- const superStream = Stream.getInstance(VerificationMode.Full);
5316
+ const superStream = Stream.getNewInstance(VerificationMode.Full);
5311
5317
  superStream.initStream(stream);
5312
5318
  })
5313
5319
  .catch(e => {
@@ -5318,7 +5324,7 @@ const IdCapture = class {
5318
5324
  }
5319
5325
  closeCamera() {
5320
5326
  if (Stream.instance) {
5321
- Stream.getInstance(VerificationMode.Full).dropStream();
5327
+ Stream.instance.dropStream();
5322
5328
  }
5323
5329
  }
5324
5330
  disconnectedCallback() {
@@ -5331,8 +5337,13 @@ const IdCapture = class {
5331
5337
  if (this.captureTaken)
5332
5338
  return;
5333
5339
  this.captureTaken = true;
5334
- let res = await Stream.getInstance(VerificationMode.Full).takePhoto();
5335
- this.photoIsReady(res);
5340
+ if (Stream.instance) {
5341
+ let res = await Stream.instance.takePhoto();
5342
+ this.photoIsReady(res);
5343
+ }
5344
+ else {
5345
+ this.eventTimeElapsed.emit();
5346
+ }
5336
5347
  await this.baseComponent.logStep(FlowSteps.CiFrontCapture, FlowMoments.Finalized);
5337
5348
  }
5338
5349
  async verificationFinished() {
@@ -5424,7 +5435,7 @@ const IdTilt = class {
5424
5435
  navigator.mediaDevices
5425
5436
  .getUserMedia(constraints)
5426
5437
  .then(stream => {
5427
- const superStream = Stream.getInstance(VerificationMode.Full);
5438
+ const superStream = Stream.getNewInstance(VerificationMode.Tilt);
5428
5439
  superStream.initStream(stream);
5429
5440
  })
5430
5441
  .catch(e => {
@@ -5435,7 +5446,7 @@ const IdTilt = class {
5435
5446
  }
5436
5447
  closeCamera() {
5437
5448
  if (Stream.instance) {
5438
- Stream.getInstance(VerificationMode.Full).dropStream();
5449
+ Stream.instance.dropStream();
5439
5450
  }
5440
5451
  }
5441
5452
  disconnectedCallback() {
@@ -5448,8 +5459,13 @@ const IdTilt = class {
5448
5459
  if (this.captureTaken)
5449
5460
  return;
5450
5461
  this.captureTaken = true;
5451
- let res = await Stream.getInstance(VerificationMode.Full).takePhoto();
5452
- this.photoIsReady(res);
5462
+ if (Stream.instance) {
5463
+ let res = await Stream.instance.takePhoto();
5464
+ this.photoIsReady(res);
5465
+ }
5466
+ else {
5467
+ this.eventTimeElapsed.emit();
5468
+ }
5453
5469
  await this.baseComponent.logStep(FlowSteps.CiTilt, FlowMoments.Finalized);
5454
5470
  }
5455
5471
  async verificationFinished() {
@@ -5555,7 +5571,7 @@ function v4(options, buf, offset) {
5555
5571
  }
5556
5572
 
5557
5573
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
5558
- const version$1 = "3.6.36";
5574
+ const version$1 = "3.6.37";
5559
5575
  const description = "Person Identification Component";
5560
5576
  const main = "./dist/index.cjs.js";
5561
5577
  const module = "./dist/index.js";
@@ -9268,7 +9284,7 @@ const SelfieCapture = class {
9268
9284
  navigator.mediaDevices
9269
9285
  .getUserMedia(constraints)
9270
9286
  .then(stream => {
9271
- const superStream = Stream.getInstance(VerificationMode.Full);
9287
+ const superStream = Stream.getNewInstance(VerificationMode.Full);
9272
9288
  superStream.initStream(stream);
9273
9289
  })
9274
9290
  .catch(e => {
@@ -9279,7 +9295,7 @@ const SelfieCapture = class {
9279
9295
  }
9280
9296
  closeCamera() {
9281
9297
  if (Stream.instance) {
9282
- Stream.getInstance(VerificationMode.Full).dropStream();
9298
+ Stream.instance.dropStream();
9283
9299
  }
9284
9300
  }
9285
9301
  disconnectedCallback() {
@@ -9291,8 +9307,13 @@ const SelfieCapture = class {
9291
9307
  if (this.captureTaken)
9292
9308
  return;
9293
9309
  this.captureTaken = true;
9294
- let res = await Stream.getInstance(VerificationMode.Full).takePhoto();
9295
- this.photoIsReady(res);
9310
+ if (Stream.instance) {
9311
+ let res = await Stream.instance.takePhoto();
9312
+ this.photoIsReady(res);
9313
+ }
9314
+ else {
9315
+ this.eventTimeElapsed.emit();
9316
+ }
9296
9317
  await this.baseComponent.logStep(FlowSteps.SelfieCapture, FlowMoments.Finalized);
9297
9318
  }
9298
9319
  async verificationFinished() {
@@ -9377,7 +9398,7 @@ const SelfieTilt = class {
9377
9398
  }
9378
9399
  }
9379
9400
  async componentDidLoad() {
9380
- this.mainStream = Stream.getInstance(VerificationMode.Tilt);
9401
+ this.mainStream = Stream.getNewInstance(VerificationMode.Tilt);
9381
9402
  await this.baseComponent.logStep(FlowSteps.SelfieTilt, FlowMoments.Initialized);
9382
9403
  this.titleMesage = this.translations.SelfieCaptureValues.FacePoseMapping[this.mainStream.facePose];
9383
9404
  this.demoEnded = false;
@@ -9417,7 +9438,7 @@ const SelfieTilt = class {
9417
9438
  this.captureTaken = true;
9418
9439
  let res = this.mainStream.takePhoto();
9419
9440
  this.photoIsReady(res);
9420
- await this.baseComponent.logStep(FlowSteps.SelfieCapture, FlowMoments.Finalized);
9441
+ await this.baseComponent.logStep(FlowSteps.SelfieTilt, FlowMoments.Finalized);
9421
9442
  }
9422
9443
  async verificationFinished() {
9423
9444
  if (this.verified)