@ekyc_qoobiss/qbs-ect-cmp 2.1.15 → 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';
@@ -5189,13 +5190,18 @@ const CameraError = class {
5189
5190
  this.title = CameraErrorValues.Title;
5190
5191
  this.description = CameraErrorValues.Description;
5191
5192
  this.buttonText = CameraErrorValues.Button;
5193
+ }
5194
+ async componentDidLoad() {
5192
5195
  if (!this.device.isIos) {
5193
5196
  this.demoVideo.src = CameraErrorValues.HowToLink;
5194
5197
  this.demoVideo.loop = true;
5195
5198
  this.demoVideo.play();
5196
5199
  }
5197
- }
5198
- async componentDidLoad() {
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.15";
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';
@@ -18,13 +18,18 @@ export class CameraError {
18
18
  this.title = CameraErrorValues.Title;
19
19
  this.description = CameraErrorValues.Description;
20
20
  this.buttonText = CameraErrorValues.Button;
21
+ }
22
+ async componentDidLoad() {
21
23
  if (!this.device.isIos) {
22
24
  this.demoVideo.src = CameraErrorValues.HowToLink;
23
25
  this.demoVideo.loop = true;
24
26
  this.demoVideo.play();
25
27
  }
26
- }
27
- async componentDidLoad() {
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';
@@ -5185,13 +5186,18 @@ const CameraError = class {
5185
5186
  this.title = CameraErrorValues.Title;
5186
5187
  this.description = CameraErrorValues.Description;
5187
5188
  this.buttonText = CameraErrorValues.Button;
5189
+ }
5190
+ async componentDidLoad() {
5188
5191
  if (!this.device.isIos) {
5189
5192
  this.demoVideo.src = CameraErrorValues.HowToLink;
5190
5193
  this.demoVideo.loop = true;
5191
5194
  this.demoVideo.play();
5192
5195
  }
5193
- }
5194
- async componentDidLoad() {
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.15";
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) {