@ekyc_qoobiss/qbs-ect-cmp 2.1.16 → 2.1.17

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.
@@ -269,6 +269,7 @@ SessionKeys.InitialisedKey = 'qbs-ect-initialised';
269
269
  SessionKeys.HasIdBackKey = 'qbs-ect-has-id-back';
270
270
  SessionKeys.AgreementValidationKey = 'qbs-ect-agreement-validation';
271
271
  SessionKeys.PhoneValidationKey = 'qbs-ect-phone-validation';
272
+ SessionKeys.RefreshDoneKey = 'qbs-ect-refresh-done';
272
273
  class IdCaptureValues extends GlobalValues {
273
274
  }
274
275
  IdCaptureValues.Button = 'Încerc din nou';
@@ -5196,6 +5197,11 @@ const CameraError = class {
5196
5197
  this.demoVideo.loop = true;
5197
5198
  this.demoVideo.play();
5198
5199
  }
5200
+ else {
5201
+ var loaded = sessionStorage.getItem(SessionKeys.RefreshDoneKey);
5202
+ if (loaded === 'true')
5203
+ state.flowStatus = FlowStatus.LANDING;
5204
+ }
5199
5205
  try {
5200
5206
  await this.apiCall.AddStep(FlowSteps.CameraError);
5201
5207
  }
@@ -5206,6 +5212,7 @@ const CameraError = class {
5206
5212
  async buttonClick() {
5207
5213
  this.buttonDisabled = true;
5208
5214
  if (this.device.isIos) {
5215
+ sessionStorage.setItem(SessionKeys.RefreshDoneKey, 'true');
5209
5216
  window.location.reload();
5210
5217
  }
5211
5218
  state.flowStatus = FlowStatus.LANDING;
@@ -6164,7 +6171,7 @@ function v4(options, buf, offset) {
6164
6171
  }
6165
6172
 
6166
6173
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
6167
- const version$1 = "2.1.16";
6174
+ const version$1 = "2.1.17";
6168
6175
  const description = "Person Identification Component";
6169
6176
  const main = "./dist/index.cjs.js";
6170
6177
  const module$1 = "./dist/index.js";
@@ -6542,6 +6549,8 @@ const LandingValidation = class {
6542
6549
  if (state.initialised) {
6543
6550
  this.buttonDisabled = true;
6544
6551
  if (!(await Cameras.InitCameras(this.device))) {
6552
+ if (this.device.isIos)
6553
+ sessionStorage.setItem(SessionKeys.RefreshDoneKey, 'false');
6545
6554
  state.flowStatus = FlowStatus.CAMERAERROR;
6546
6555
  }
6547
6556
  else if (state.agreementsValidation) {
@@ -1,5 +1,5 @@
1
1
  import { h } from '@stencil/core';
2
- import { CameraErrorValues } from '../../../helpers/textValues';
2
+ import { CameraErrorValues, SessionKeys } from '../../../helpers/textValues';
3
3
  import store from '../../../helpers/store';
4
4
  import { FlowStatus } from '../../../models/FlowStatus';
5
5
  import { ApiCall } from '../../../helpers/ApiCall';
@@ -25,6 +25,11 @@ export class CameraError {
25
25
  this.demoVideo.loop = true;
26
26
  this.demoVideo.play();
27
27
  }
28
+ else {
29
+ var loaded = sessionStorage.getItem(SessionKeys.RefreshDoneKey);
30
+ if (loaded === 'true')
31
+ store.flowStatus = FlowStatus.LANDING;
32
+ }
28
33
  try {
29
34
  await this.apiCall.AddStep(FlowSteps.CameraError);
30
35
  }
@@ -35,6 +40,7 @@ export class CameraError {
35
40
  async buttonClick() {
36
41
  this.buttonDisabled = true;
37
42
  if (this.device.isIos) {
43
+ sessionStorage.setItem(SessionKeys.RefreshDoneKey, 'true');
38
44
  window.location.reload();
39
45
  }
40
46
  store.flowStatus = FlowStatus.LANDING;
@@ -1,5 +1,5 @@
1
1
  import { h } from '@stencil/core';
2
- import { LandingValues } from '../../../helpers/textValues';
2
+ import { LandingValues, SessionKeys } from '../../../helpers/textValues';
3
3
  // @ts-ignore
4
4
  import info from '../../../assets/landing/info.svg';
5
5
  import idSvg from '../../../assets/landing/id.svg';
@@ -44,6 +44,8 @@ export class LandingValidation {
44
44
  if (store.initialised) {
45
45
  this.buttonDisabled = true;
46
46
  if (!(await Cameras.InitCameras(this.device))) {
47
+ if (this.device.isIos)
48
+ sessionStorage.setItem(SessionKeys.RefreshDoneKey, 'false');
47
49
  store.flowStatus = FlowStatus.CAMERAERROR;
48
50
  }
49
51
  else if (store.agreementsValidation) {
@@ -50,6 +50,7 @@ SessionKeys.InitialisedKey = 'qbs-ect-initialised';
50
50
  SessionKeys.HasIdBackKey = 'qbs-ect-has-id-back';
51
51
  SessionKeys.AgreementValidationKey = 'qbs-ect-agreement-validation';
52
52
  SessionKeys.PhoneValidationKey = 'qbs-ect-phone-validation';
53
+ SessionKeys.RefreshDoneKey = 'qbs-ect-refresh-done';
53
54
  export class IdCaptureValues extends GlobalValues {
54
55
  }
55
56
  IdCaptureValues.Button = 'Încerc din nou';
@@ -265,6 +265,7 @@ SessionKeys.InitialisedKey = 'qbs-ect-initialised';
265
265
  SessionKeys.HasIdBackKey = 'qbs-ect-has-id-back';
266
266
  SessionKeys.AgreementValidationKey = 'qbs-ect-agreement-validation';
267
267
  SessionKeys.PhoneValidationKey = 'qbs-ect-phone-validation';
268
+ SessionKeys.RefreshDoneKey = 'qbs-ect-refresh-done';
268
269
  class IdCaptureValues extends GlobalValues {
269
270
  }
270
271
  IdCaptureValues.Button = 'Încerc din nou';
@@ -5192,6 +5193,11 @@ const CameraError = class {
5192
5193
  this.demoVideo.loop = true;
5193
5194
  this.demoVideo.play();
5194
5195
  }
5196
+ else {
5197
+ var loaded = sessionStorage.getItem(SessionKeys.RefreshDoneKey);
5198
+ if (loaded === 'true')
5199
+ state.flowStatus = FlowStatus.LANDING;
5200
+ }
5195
5201
  try {
5196
5202
  await this.apiCall.AddStep(FlowSteps.CameraError);
5197
5203
  }
@@ -5202,6 +5208,7 @@ const CameraError = class {
5202
5208
  async buttonClick() {
5203
5209
  this.buttonDisabled = true;
5204
5210
  if (this.device.isIos) {
5211
+ sessionStorage.setItem(SessionKeys.RefreshDoneKey, 'true');
5205
5212
  window.location.reload();
5206
5213
  }
5207
5214
  state.flowStatus = FlowStatus.LANDING;
@@ -6160,7 +6167,7 @@ function v4(options, buf, offset) {
6160
6167
  }
6161
6168
 
6162
6169
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
6163
- const version$1 = "2.1.16";
6170
+ const version$1 = "2.1.17";
6164
6171
  const description = "Person Identification Component";
6165
6172
  const main = "./dist/index.cjs.js";
6166
6173
  const module = "./dist/index.js";
@@ -6538,6 +6545,8 @@ const LandingValidation = class {
6538
6545
  if (state.initialised) {
6539
6546
  this.buttonDisabled = true;
6540
6547
  if (!(await Cameras.InitCameras(this.device))) {
6548
+ if (this.device.isIos)
6549
+ sessionStorage.setItem(SessionKeys.RefreshDoneKey, 'false');
6541
6550
  state.flowStatus = FlowStatus.CAMERAERROR;
6542
6551
  }
6543
6552
  else if (state.agreementsValidation) {