@ekyc_qoobiss/qbs-ect-cmp 3.6.78 → 3.6.79

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.
@@ -294,6 +294,7 @@ const { state, onChange } = createStore({
294
294
  device: null,
295
295
  langIso: 'ro',
296
296
  logSteps: false,
297
+ modelsPath: '',
297
298
  });
298
299
  onChange('environment', value => {
299
300
  state.debug = value == 'QA';
@@ -503,6 +504,7 @@ class ApiCall {
503
504
  state.flowStatus = exports.FlowStatus[jsonResp.state];
504
505
  state.logSteps = jsonResp.logSteps;
505
506
  state.debug = jsonResp.debug;
507
+ state.modelsPath = jsonResp.modelsPath;
506
508
  return true;
507
509
  }
508
510
  async UploadFileForRequestB64(requestId, type, file) {
@@ -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-84b58b58.js');
6
+ const TranslationUtils = require('./TranslationUtils-6fdf7b55.js');
7
7
 
8
8
  const agreementCheckCss = "";
9
9
 
@@ -1485,7 +1485,7 @@ class ML5 {
1485
1485
  }
1486
1486
  async init() {
1487
1487
  return new Promise(async (resolve) => {
1488
- const modelPath = TranslationUtils.state.apiBaseUrl.includes("apimd") ? 'https://ekyc.blob.core.windows.net/$web/md/model.json' : 'https://ekyc.blob.core.windows.net/$web/model.json';
1488
+ const modelPath = TranslationUtils.state.modelsPath;
1489
1489
  this.classifier = await ml5.imageClassifier(modelPath, this.loaded);
1490
1490
  this.faceapi = await ml5.faceApi({ withLandmarks: true, withDescriptors: false }, this.loaded);
1491
1491
  //warmup
@@ -5247,7 +5247,7 @@ function v4(options, buf, offset) {
5247
5247
  }
5248
5248
 
5249
5249
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
5250
- const version$1 = "3.6.78";
5250
+ const version$1 = "3.6.79";
5251
5251
  const description = "Person Identification Component";
5252
5252
  const main = "./dist/index.cjs.js";
5253
5253
  const module$1 = "./dist/index.js";
@@ -5547,12 +5547,12 @@ const IdentificationComponent = class {
5547
5547
  if (!this.order_id || this.order_id == '') {
5548
5548
  this.order_id = TranslationUtils.state.requestId;
5549
5549
  }
5550
+ ML5.getInstance();
5550
5551
  }
5551
5552
  }
5552
5553
  catch (e) {
5553
5554
  this.apiErrorEmitter(e, 'Request Initialisation RequestId:' + TranslationUtils.state.requestId + ' RedirectId:' + TranslationUtils.state.redirectId);
5554
5555
  }
5555
- ML5.getInstance();
5556
5556
  }
5557
5557
  disconnectedCallback() {
5558
5558
  Events.flowEvent(TranslationUtils.FlowSteps.ComponentLoaded, TranslationUtils.FlowMoments.Finalized);
@@ -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-84b58b58.js');
6
+ const TranslationUtils = require('./TranslationUtils-6fdf7b55.js');
7
7
 
8
8
  const randomActionsCss = "";
9
9
 
@@ -159,12 +159,12 @@ export class IdentificationComponent {
159
159
  if (!this.order_id || this.order_id == '') {
160
160
  this.order_id = store.requestId;
161
161
  }
162
+ ML5.getInstance();
162
163
  }
163
164
  }
164
165
  catch (e) {
165
166
  this.apiErrorEmitter(e, 'Request Initialisation RequestId:' + store.requestId + ' RedirectId:' + store.redirectId);
166
167
  }
167
- ML5.getInstance();
168
168
  }
169
169
  disconnectedCallback() {
170
170
  Events.flowEvent(FlowSteps.ComponentLoaded, FlowMoments.Finalized);
@@ -166,6 +166,7 @@ export class ApiCall {
166
166
  store.flowStatus = FlowStatus[jsonResp.state];
167
167
  store.logSteps = jsonResp.logSteps;
168
168
  store.debug = jsonResp.debug;
169
+ store.modelsPath = jsonResp.modelsPath;
169
170
  return true;
170
171
  }
171
172
  async UploadFileForRequestB64(requestId, type, file) {
@@ -14,7 +14,7 @@ export class ML5 {
14
14
  }
15
15
  async init() {
16
16
  return new Promise(async (resolve) => {
17
- const modelPath = store.apiBaseUrl.includes("apimd") ? 'https://ekyc.blob.core.windows.net/$web/md/model.json' : 'https://ekyc.blob.core.windows.net/$web/model.json';
17
+ const modelPath = store.modelsPath;
18
18
  this.classifier = await ml5.imageClassifier(modelPath, this.loaded);
19
19
  this.faceapi = await ml5.faceApi({ withLandmarks: true, withDescriptors: false }, this.loaded);
20
20
  //warmup
@@ -15,6 +15,7 @@ const { state, onChange } = createStore({
15
15
  device: null,
16
16
  langIso: 'ro',
17
17
  logSteps: false,
18
+ modelsPath: '',
18
19
  });
19
20
  onChange('environment', value => {
20
21
  state.debug = value == 'QA';
@@ -292,6 +292,7 @@ const { state, onChange } = createStore({
292
292
  device: null,
293
293
  langIso: 'ro',
294
294
  logSteps: false,
295
+ modelsPath: '',
295
296
  });
296
297
  onChange('environment', value => {
297
298
  state.debug = value == 'QA';
@@ -501,6 +502,7 @@ class ApiCall {
501
502
  state.flowStatus = FlowStatus[jsonResp.state];
502
503
  state.logSteps = jsonResp.logSteps;
503
504
  state.debug = jsonResp.debug;
505
+ state.modelsPath = jsonResp.modelsPath;
504
506
  return true;
505
507
  }
506
508
  async UploadFileForRequestB64(requestId, type, file) {
@@ -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, T as Translations, F as FlowMoments, a as FlowSteps, s as state, S as SessionKeys, b as FlowStatus, I as IdCaptureValues, O as OrderStatuses, c as SelfieCaptureValues } from './TranslationUtils-93e9abe8.js';
2
+ import { A as ApiCall, T as Translations, F as FlowMoments, a as FlowSteps, s as state, S as SessionKeys, b as FlowStatus, I as IdCaptureValues, O as OrderStatuses, c as SelfieCaptureValues } from './TranslationUtils-57159270.js';
3
3
 
4
4
  const agreementCheckCss = "";
5
5
 
@@ -1481,7 +1481,7 @@ class ML5 {
1481
1481
  }
1482
1482
  async init() {
1483
1483
  return new Promise(async (resolve) => {
1484
- const modelPath = state.apiBaseUrl.includes("apimd") ? 'https://ekyc.blob.core.windows.net/$web/md/model.json' : 'https://ekyc.blob.core.windows.net/$web/model.json';
1484
+ const modelPath = state.modelsPath;
1485
1485
  this.classifier = await ml5.imageClassifier(modelPath, this.loaded);
1486
1486
  this.faceapi = await ml5.faceApi({ withLandmarks: true, withDescriptors: false }, this.loaded);
1487
1487
  //warmup
@@ -5243,7 +5243,7 @@ function v4(options, buf, offset) {
5243
5243
  }
5244
5244
 
5245
5245
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
5246
- const version$1 = "3.6.78";
5246
+ const version$1 = "3.6.79";
5247
5247
  const description = "Person Identification Component";
5248
5248
  const main = "./dist/index.cjs.js";
5249
5249
  const module = "./dist/index.js";
@@ -5543,12 +5543,12 @@ const IdentificationComponent = class {
5543
5543
  if (!this.order_id || this.order_id == '') {
5544
5544
  this.order_id = state.requestId;
5545
5545
  }
5546
+ ML5.getInstance();
5546
5547
  }
5547
5548
  }
5548
5549
  catch (e) {
5549
5550
  this.apiErrorEmitter(e, 'Request Initialisation RequestId:' + state.requestId + ' RedirectId:' + state.redirectId);
5550
5551
  }
5551
- ML5.getInstance();
5552
5552
  }
5553
5553
  disconnectedCallback() {
5554
5554
  Events.flowEvent(FlowSteps.ComponentLoaded, FlowMoments.Finalized);
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h } from './index-cf54a432.js';
2
- import { T as Translations } from './TranslationUtils-93e9abe8.js';
2
+ import { T as Translations } from './TranslationUtils-57159270.js';
3
3
 
4
4
  const randomActionsCss = "";
5
5