@ekyc_qoobiss/qbs-ect-cmp 3.6.45 → 3.6.46
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.
- package/dist/cjs/{TranslationUtils-006f5c9e.js → TranslationUtils-8f794c41.js} +5 -0
- package/dist/cjs/agreement-check_17.cjs.entry.js +7 -14
- package/dist/cjs/random-actions.cjs.entry.js +1 -1
- package/dist/collection/components/identification-component/identification-component.js +5 -12
- package/dist/collection/helpers/ApiCall.js +4 -0
- package/dist/collection/helpers/textValues.js +1 -0
- package/dist/esm/{TranslationUtils-13cb9b8c.js → TranslationUtils-770d32d7.js} +5 -0
- package/dist/esm/agreement-check_17.entry.js +7 -14
- package/dist/esm/random-actions.entry.js +1 -1
- package/dist/qbs-ect-cmp/{p-c93d153b.entry.js → p-1aa8595e.entry.js} +1 -1
- package/dist/qbs-ect-cmp/{p-44d4faec.entry.js → p-36eff211.entry.js} +2 -2
- package/dist/qbs-ect-cmp/p-a073c59e.js +1 -0
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/components/identification-component/identification-component.d.ts +0 -1
- package/dist/types/helpers/ApiCall.d.ts +1 -0
- package/dist/types/helpers/textValues.d.ts +1 -0
- package/package.json +1 -1
- package/dist/qbs-ect-cmp/p-004a2264.js +0 -1
|
@@ -270,6 +270,7 @@ class ApiUrls {
|
|
|
270
270
|
this.Translations = this.uriEnv + 'validation/translations/get';
|
|
271
271
|
this.StartFlow = this.uriEnv + 'flowstate/startflow';
|
|
272
272
|
this.NextFlowState = this.uriEnv + 'flowstate/getnextstate';
|
|
273
|
+
this.CurrentFlowState = this.uriEnv + 'flowstate/getcurrentstate';
|
|
273
274
|
}
|
|
274
275
|
}
|
|
275
276
|
|
|
@@ -558,6 +559,10 @@ class ApiCall {
|
|
|
558
559
|
let result = await this.get(this.urls.StartFlow + '?requesId=' + state.requestId);
|
|
559
560
|
return exports.FlowStatus[result.state];
|
|
560
561
|
}
|
|
562
|
+
async GetFlowState() {
|
|
563
|
+
let result = await this.get(this.urls.CurrentFlowState + '?requesId=' + state.requestId);
|
|
564
|
+
return exports.FlowStatus[result.state];
|
|
565
|
+
}
|
|
561
566
|
}
|
|
562
567
|
|
|
563
568
|
class 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-
|
|
6
|
+
const TranslationUtils = require('./TranslationUtils-8f794c41.js');
|
|
7
7
|
|
|
8
8
|
const agreementCheckCss = "";
|
|
9
9
|
|
|
@@ -5148,7 +5148,7 @@ function v4(options, buf, offset) {
|
|
|
5148
5148
|
}
|
|
5149
5149
|
|
|
5150
5150
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
5151
|
-
const version$1 = "3.6.
|
|
5151
|
+
const version$1 = "3.6.46";
|
|
5152
5152
|
const description = "Person Identification Component";
|
|
5153
5153
|
const main = "./dist/index.cjs.js";
|
|
5154
5154
|
const module$1 = "./dist/index.js";
|
|
@@ -5354,7 +5354,6 @@ const IdentificationComponent = class {
|
|
|
5354
5354
|
constructor(hostRef) {
|
|
5355
5355
|
index.registerInstance(this, hostRef);
|
|
5356
5356
|
this.logInit = {};
|
|
5357
|
-
this.flowStatusToSet = TranslationUtils.FlowStatus.NONE;
|
|
5358
5357
|
this.initialised = false;
|
|
5359
5358
|
this.token = undefined;
|
|
5360
5359
|
this.order_id = undefined;
|
|
@@ -5365,6 +5364,7 @@ const IdentificationComponent = class {
|
|
|
5365
5364
|
this.lang_iso = undefined;
|
|
5366
5365
|
this.errorMessage = undefined;
|
|
5367
5366
|
this.errorTitle = undefined;
|
|
5367
|
+
TranslationUtils.ApiCall.getInstance();
|
|
5368
5368
|
}
|
|
5369
5369
|
async componentWillLoad() {
|
|
5370
5370
|
Events.init(window);
|
|
@@ -5410,19 +5410,13 @@ const IdentificationComponent = class {
|
|
|
5410
5410
|
TranslationUtils.state.requestId = savedRequest;
|
|
5411
5411
|
this.order_id = savedRequest;
|
|
5412
5412
|
}
|
|
5413
|
-
if (this.flowStatusToSet == TranslationUtils.FlowStatus.NONE) {
|
|
5414
|
-
var flowSt = sessionStorage.getItem(TranslationUtils.SessionKeys.FlowStatusKey);
|
|
5415
|
-
if (flowSt) {
|
|
5416
|
-
this.flowStatusToSet = TranslationUtils.FlowStatus[flowSt];
|
|
5417
|
-
}
|
|
5418
|
-
else {
|
|
5419
|
-
this.flowStatusToSet = TranslationUtils.FlowStatus.LANDING;
|
|
5420
|
-
}
|
|
5421
|
-
}
|
|
5422
5413
|
}
|
|
5423
5414
|
async componentDidLoad() {
|
|
5415
|
+
try {
|
|
5416
|
+
TranslationUtils.state.flowStatus = await TranslationUtils.ApiCall.instance.GetFlowState();
|
|
5417
|
+
}
|
|
5418
|
+
catch (e) { }
|
|
5424
5419
|
await this.initializeRequest();
|
|
5425
|
-
TranslationUtils.state.flowStatus = this.flowStatusToSet;
|
|
5426
5420
|
}
|
|
5427
5421
|
async initializeRequest() {
|
|
5428
5422
|
if (this.initialised) {
|
|
@@ -5435,7 +5429,6 @@ const IdentificationComponent = class {
|
|
|
5435
5429
|
if (!TranslationUtils.state.device) {
|
|
5436
5430
|
TranslationUtils.state.device = new DeviceDetection().getDevice();
|
|
5437
5431
|
}
|
|
5438
|
-
TranslationUtils.ApiCall.getInstance();
|
|
5439
5432
|
if (TranslationUtils.state.device.browser == Browser.Mi) {
|
|
5440
5433
|
this.apiErrorEmitter('Mi Browser nu este acceptat. Va rugam utilizati Chrome.', 'Request Initialisation RequestId:' + TranslationUtils.state.requestId + ' RedirectId:' + TranslationUtils.state.redirectId);
|
|
5441
5434
|
return;
|
|
@@ -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-
|
|
6
|
+
const TranslationUtils = require('./TranslationUtils-8f794c41.js');
|
|
7
7
|
|
|
8
8
|
const randomActionsCss = "";
|
|
9
9
|
|
|
@@ -65,7 +65,6 @@ export class IdentificationComponent {
|
|
|
65
65
|
}
|
|
66
66
|
constructor() {
|
|
67
67
|
this.logInit = {};
|
|
68
|
-
this.flowStatusToSet = FlowStatus.NONE;
|
|
69
68
|
this.initialised = false;
|
|
70
69
|
this.token = undefined;
|
|
71
70
|
this.order_id = undefined;
|
|
@@ -76,6 +75,7 @@ export class IdentificationComponent {
|
|
|
76
75
|
this.lang_iso = undefined;
|
|
77
76
|
this.errorMessage = undefined;
|
|
78
77
|
this.errorTitle = undefined;
|
|
78
|
+
ApiCall.getInstance();
|
|
79
79
|
}
|
|
80
80
|
async componentWillLoad() {
|
|
81
81
|
Events.init(window);
|
|
@@ -121,19 +121,13 @@ export class IdentificationComponent {
|
|
|
121
121
|
store.requestId = savedRequest;
|
|
122
122
|
this.order_id = savedRequest;
|
|
123
123
|
}
|
|
124
|
-
if (this.flowStatusToSet == FlowStatus.NONE) {
|
|
125
|
-
var flowSt = sessionStorage.getItem(SessionKeys.FlowStatusKey);
|
|
126
|
-
if (flowSt) {
|
|
127
|
-
this.flowStatusToSet = FlowStatus[flowSt];
|
|
128
|
-
}
|
|
129
|
-
else {
|
|
130
|
-
this.flowStatusToSet = FlowStatus.LANDING;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
124
|
}
|
|
134
125
|
async componentDidLoad() {
|
|
126
|
+
try {
|
|
127
|
+
store.flowStatus = await ApiCall.instance.GetFlowState();
|
|
128
|
+
}
|
|
129
|
+
catch (e) { }
|
|
135
130
|
await this.initializeRequest();
|
|
136
|
-
store.flowStatus = this.flowStatusToSet;
|
|
137
131
|
}
|
|
138
132
|
async initializeRequest() {
|
|
139
133
|
if (this.initialised) {
|
|
@@ -146,7 +140,6 @@ export class IdentificationComponent {
|
|
|
146
140
|
if (!store.device) {
|
|
147
141
|
store.device = new DeviceDetection().getDevice();
|
|
148
142
|
}
|
|
149
|
-
ApiCall.getInstance();
|
|
150
143
|
if (store.device.browser == Browser.Mi) {
|
|
151
144
|
this.apiErrorEmitter('Mi Browser nu este acceptat. Va rugam utilizati Chrome.', 'Request Initialisation RequestId:' + store.requestId + ' RedirectId:' + store.redirectId);
|
|
152
145
|
return;
|
|
@@ -229,4 +229,8 @@ export class ApiCall {
|
|
|
229
229
|
let result = await this.get(this.urls.StartFlow + '?requesId=' + store.requestId);
|
|
230
230
|
return FlowStatus[result.state];
|
|
231
231
|
}
|
|
232
|
+
async GetFlowState() {
|
|
233
|
+
let result = await this.get(this.urls.CurrentFlowState + '?requesId=' + store.requestId);
|
|
234
|
+
return FlowStatus[result.state];
|
|
235
|
+
}
|
|
232
236
|
}
|
|
@@ -47,5 +47,6 @@ export class ApiUrls {
|
|
|
47
47
|
this.Translations = this.uriEnv + 'validation/translations/get';
|
|
48
48
|
this.StartFlow = this.uriEnv + 'flowstate/startflow';
|
|
49
49
|
this.NextFlowState = this.uriEnv + 'flowstate/getnextstate';
|
|
50
|
+
this.CurrentFlowState = this.uriEnv + 'flowstate/getcurrentstate';
|
|
50
51
|
}
|
|
51
52
|
}
|
|
@@ -268,6 +268,7 @@ class ApiUrls {
|
|
|
268
268
|
this.Translations = this.uriEnv + 'validation/translations/get';
|
|
269
269
|
this.StartFlow = this.uriEnv + 'flowstate/startflow';
|
|
270
270
|
this.NextFlowState = this.uriEnv + 'flowstate/getnextstate';
|
|
271
|
+
this.CurrentFlowState = this.uriEnv + 'flowstate/getcurrentstate';
|
|
271
272
|
}
|
|
272
273
|
}
|
|
273
274
|
|
|
@@ -556,6 +557,10 @@ class ApiCall {
|
|
|
556
557
|
let result = await this.get(this.urls.StartFlow + '?requesId=' + state.requestId);
|
|
557
558
|
return FlowStatus[result.state];
|
|
558
559
|
}
|
|
560
|
+
async GetFlowState() {
|
|
561
|
+
let result = await this.get(this.urls.CurrentFlowState + '?requesId=' + state.requestId);
|
|
562
|
+
return FlowStatus[result.state];
|
|
563
|
+
}
|
|
559
564
|
}
|
|
560
565
|
|
|
561
566
|
class 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, 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-
|
|
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-770d32d7.js';
|
|
3
3
|
|
|
4
4
|
const agreementCheckCss = "";
|
|
5
5
|
|
|
@@ -5144,7 +5144,7 @@ function v4(options, buf, offset) {
|
|
|
5144
5144
|
}
|
|
5145
5145
|
|
|
5146
5146
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
5147
|
-
const version$1 = "3.6.
|
|
5147
|
+
const version$1 = "3.6.46";
|
|
5148
5148
|
const description = "Person Identification Component";
|
|
5149
5149
|
const main = "./dist/index.cjs.js";
|
|
5150
5150
|
const module = "./dist/index.js";
|
|
@@ -5350,7 +5350,6 @@ const IdentificationComponent = class {
|
|
|
5350
5350
|
constructor(hostRef) {
|
|
5351
5351
|
registerInstance(this, hostRef);
|
|
5352
5352
|
this.logInit = {};
|
|
5353
|
-
this.flowStatusToSet = FlowStatus.NONE;
|
|
5354
5353
|
this.initialised = false;
|
|
5355
5354
|
this.token = undefined;
|
|
5356
5355
|
this.order_id = undefined;
|
|
@@ -5361,6 +5360,7 @@ const IdentificationComponent = class {
|
|
|
5361
5360
|
this.lang_iso = undefined;
|
|
5362
5361
|
this.errorMessage = undefined;
|
|
5363
5362
|
this.errorTitle = undefined;
|
|
5363
|
+
ApiCall.getInstance();
|
|
5364
5364
|
}
|
|
5365
5365
|
async componentWillLoad() {
|
|
5366
5366
|
Events.init(window);
|
|
@@ -5406,19 +5406,13 @@ const IdentificationComponent = class {
|
|
|
5406
5406
|
state.requestId = savedRequest;
|
|
5407
5407
|
this.order_id = savedRequest;
|
|
5408
5408
|
}
|
|
5409
|
-
if (this.flowStatusToSet == FlowStatus.NONE) {
|
|
5410
|
-
var flowSt = sessionStorage.getItem(SessionKeys.FlowStatusKey);
|
|
5411
|
-
if (flowSt) {
|
|
5412
|
-
this.flowStatusToSet = FlowStatus[flowSt];
|
|
5413
|
-
}
|
|
5414
|
-
else {
|
|
5415
|
-
this.flowStatusToSet = FlowStatus.LANDING;
|
|
5416
|
-
}
|
|
5417
|
-
}
|
|
5418
5409
|
}
|
|
5419
5410
|
async componentDidLoad() {
|
|
5411
|
+
try {
|
|
5412
|
+
state.flowStatus = await ApiCall.instance.GetFlowState();
|
|
5413
|
+
}
|
|
5414
|
+
catch (e) { }
|
|
5420
5415
|
await this.initializeRequest();
|
|
5421
|
-
state.flowStatus = this.flowStatusToSet;
|
|
5422
5416
|
}
|
|
5423
5417
|
async initializeRequest() {
|
|
5424
5418
|
if (this.initialised) {
|
|
@@ -5431,7 +5425,6 @@ const IdentificationComponent = class {
|
|
|
5431
5425
|
if (!state.device) {
|
|
5432
5426
|
state.device = new DeviceDetection().getDevice();
|
|
5433
5427
|
}
|
|
5434
|
-
ApiCall.getInstance();
|
|
5435
5428
|
if (state.device.browser == Browser.Mi) {
|
|
5436
5429
|
this.apiErrorEmitter('Mi Browser nu este acceptat. Va rugam utilizati Chrome.', 'Request Initialisation RequestId:' + state.requestId + ' RedirectId:' + state.redirectId);
|
|
5437
5430
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as s}from"./p-8942656c.js";import{T as i}from"./p-
|
|
1
|
+
import{r as t,h as s}from"./p-8942656c.js";import{T as i}from"./p-a073c59e.js";const o=class{constructor(s){t(this,s)}async componentWillLoad(){this.translations=await i.getValues()}buttonClick(){}render(){return s("div",{class:"container"},s("div",{class:"row"},s("div",{class:"text-center"},s("h1",null,this.topTitle)),s("div",{class:"pos-relative show-bottom"},s("div",{class:"btn-buletin"},s("button",{class:"main-button",onClick:()=>this.buttonClick()},this.buttonText),s("p",{class:"main-text font-size-18 text-right mb-0"},this.translations.GlobalValues.FooterText)))))}};o.style="";export{o as random_actions}
|