@ekyc_qoobiss/qbs-ect-cmp 3.6.30 → 3.6.32

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.
@@ -566,9 +566,6 @@ class ApiCall {
566
566
  }
567
567
 
568
568
  class TranslationsController {
569
- constructor() {
570
- this.apiCall = new ApiCall();
571
- }
572
569
  async getValues() {
573
570
  if (this.values) {
574
571
  return this.values;
@@ -589,22 +586,16 @@ class TranslationsController {
589
586
  }
590
587
  async fetchTranslations() {
591
588
  const locale = this.getLocale();
592
- const existingTranslations = JSON.parse(sessionStorage.getItem(`i18n.${locale}`));
593
- if (existingTranslations && Object.keys(existingTranslations).length > 0) {
594
- return existingTranslations;
595
- }
596
- else {
597
- try {
598
- const result = this.apiCall.GetTranslations(locale);
599
- if (result) {
600
- sessionStorage.setItem(`i18n.${locale}`, JSON.stringify(result));
601
- return result;
602
- }
603
- }
604
- catch (exception) {
605
- console.error(`Error loading locale: ${locale}`, exception);
589
+ try {
590
+ const result = new ApiCall().GetTranslations(locale);
591
+ if (result) {
592
+ return result;
606
593
  }
607
594
  }
595
+ catch (exception) {
596
+ console.error(`Error loading locale: ${locale}`, exception);
597
+ return null;
598
+ }
608
599
  }
609
600
  }
610
601
  const Translations = new TranslationsController();
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-41696e0e.js');
6
- const TranslationUtils = require('./TranslationUtils-e23d3c71.js');
6
+ const TranslationUtils = require('./TranslationUtils-bfe4477a.js');
7
7
 
8
8
  var MobileOS;
9
9
  (function (MobileOS) {
@@ -5541,7 +5541,7 @@ function v4(options, buf, offset) {
5541
5541
  }
5542
5542
 
5543
5543
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
5544
- const version$1 = "3.6.30";
5544
+ const version$1 = "3.6.32";
5545
5545
  const description = "Person Identification Component";
5546
5546
  const main = "./dist/index.cjs.js";
5547
5547
  const module$1 = "./dist/index.js";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-41696e0e.js');
6
- const TranslationUtils = require('./TranslationUtils-e23d3c71.js');
6
+ const TranslationUtils = require('./TranslationUtils-bfe4477a.js');
7
7
 
8
8
  const randomActionsCss = "";
9
9
 
@@ -1,9 +1,6 @@
1
1
  import { ApiCall } from './ApiCall';
2
2
  import store from './store';
3
3
  class TranslationsController {
4
- constructor() {
5
- this.apiCall = new ApiCall();
6
- }
7
4
  async getValues() {
8
5
  if (this.values) {
9
6
  return this.values;
@@ -24,22 +21,16 @@ class TranslationsController {
24
21
  }
25
22
  async fetchTranslations() {
26
23
  const locale = this.getLocale();
27
- const existingTranslations = JSON.parse(sessionStorage.getItem(`i18n.${locale}`));
28
- if (existingTranslations && Object.keys(existingTranslations).length > 0) {
29
- return existingTranslations;
30
- }
31
- else {
32
- try {
33
- const result = this.apiCall.GetTranslations(locale);
34
- if (result) {
35
- sessionStorage.setItem(`i18n.${locale}`, JSON.stringify(result));
36
- return result;
37
- }
38
- }
39
- catch (exception) {
40
- console.error(`Error loading locale: ${locale}`, exception);
24
+ try {
25
+ const result = new ApiCall().GetTranslations(locale);
26
+ if (result) {
27
+ return result;
41
28
  }
42
29
  }
30
+ catch (exception) {
31
+ console.error(`Error loading locale: ${locale}`, exception);
32
+ return null;
33
+ }
43
34
  }
44
35
  }
45
36
  export const Translations = new TranslationsController();
@@ -564,9 +564,6 @@ class ApiCall {
564
564
  }
565
565
 
566
566
  class TranslationsController {
567
- constructor() {
568
- this.apiCall = new ApiCall();
569
- }
570
567
  async getValues() {
571
568
  if (this.values) {
572
569
  return this.values;
@@ -587,22 +584,16 @@ class TranslationsController {
587
584
  }
588
585
  async fetchTranslations() {
589
586
  const locale = this.getLocale();
590
- const existingTranslations = JSON.parse(sessionStorage.getItem(`i18n.${locale}`));
591
- if (existingTranslations && Object.keys(existingTranslations).length > 0) {
592
- return existingTranslations;
593
- }
594
- else {
595
- try {
596
- const result = this.apiCall.GetTranslations(locale);
597
- if (result) {
598
- sessionStorage.setItem(`i18n.${locale}`, JSON.stringify(result));
599
- return result;
600
- }
601
- }
602
- catch (exception) {
603
- console.error(`Error loading locale: ${locale}`, exception);
587
+ try {
588
+ const result = new ApiCall().GetTranslations(locale);
589
+ if (result) {
590
+ return result;
604
591
  }
605
592
  }
593
+ catch (exception) {
594
+ console.error(`Error loading locale: ${locale}`, exception);
595
+ return null;
596
+ }
606
597
  }
607
598
  }
608
599
  const Translations = new TranslationsController();
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, g as getElement } from './index-cf54a432.js';
2
- import { A as ApiCall, s as state, F as FlowMoments, a as FlowSteps, T as Translations, b as FlowStatus, S as SessionKeys, I as IdCaptureValues, O as OrderStatuses, c as SelfieCaptureValues } from './TranslationUtils-7c1f0f39.js';
2
+ import { A as ApiCall, s as state, F as FlowMoments, a as FlowSteps, T as Translations, b as FlowStatus, S as SessionKeys, I as IdCaptureValues, O as OrderStatuses, c as SelfieCaptureValues } from './TranslationUtils-7e68bc94.js';
3
3
 
4
4
  var MobileOS;
5
5
  (function (MobileOS) {
@@ -5537,7 +5537,7 @@ function v4(options, buf, offset) {
5537
5537
  }
5538
5538
 
5539
5539
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
5540
- const version$1 = "3.6.30";
5540
+ const version$1 = "3.6.32";
5541
5541
  const description = "Person Identification Component";
5542
5542
  const main = "./dist/index.cjs.js";
5543
5543
  const module = "./dist/index.js";
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h } from './index-cf54a432.js';
2
- import { T as Translations } from './TranslationUtils-7c1f0f39.js';
2
+ import { T as Translations } from './TranslationUtils-7e68bc94.js';
3
3
 
4
4
  const randomActionsCss = "";
5
5