@ekyc_qoobiss/qbs-ect-cmp 3.6.46 → 3.6.48
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-8f794c41.js → TranslationUtils-22bb2d54.js} +8 -7
- package/dist/cjs/agreement-check_17.cjs.entry.js +10 -16
- package/dist/cjs/random-actions.cjs.entry.js +1 -1
- package/dist/collection/components/flow/landing-validation/landing-validation.js +1 -7
- package/dist/collection/components/identification-component/identification-component.js +8 -8
- package/dist/collection/helpers/ApiCall.js +4 -3
- package/dist/collection/helpers/textValues.js +4 -4
- package/dist/esm/{TranslationUtils-770d32d7.js → TranslationUtils-f13d895b.js} +8 -7
- package/dist/esm/agreement-check_17.entry.js +10 -16
- package/dist/esm/random-actions.entry.js +1 -1
- package/dist/qbs-ect-cmp/{p-1aa8595e.entry.js → p-5ecc31ff.entry.js} +1 -1
- package/dist/qbs-ect-cmp/{p-36eff211.entry.js → p-619d99e2.entry.js} +2 -2
- package/dist/qbs-ect-cmp/p-8dcaf6b9.js +1 -0
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/package.json +1 -1
- package/dist/qbs-ect-cmp/p-a073c59e.js +0 -1
|
@@ -255,7 +255,7 @@ SessionKeys.RefreshDoneKey = 'qbs-ect-refresh-done';
|
|
|
255
255
|
class ApiUrls {
|
|
256
256
|
constructor() {
|
|
257
257
|
this.uriEnv = '/';
|
|
258
|
-
this.uriEnv = state.environment
|
|
258
|
+
this.uriEnv = ['QA', 'DEMO'].includes(state.environment) ? '/dev_' : '/';
|
|
259
259
|
this.OtpSend = this.uriEnv + 'validation/otp/send';
|
|
260
260
|
this.OtpCheck = this.uriEnv + 'validation/otp/check';
|
|
261
261
|
this.IdentityInsert = this.uriEnv + 'validation/identity/insert';
|
|
@@ -268,9 +268,9 @@ class ApiUrls {
|
|
|
268
268
|
this.AddStep = this.uriEnv + 'validation/logs/step';
|
|
269
269
|
this.AbortRequest = this.uriEnv + 'validation/identity/abort';
|
|
270
270
|
this.Translations = this.uriEnv + 'validation/translations/get';
|
|
271
|
-
this.StartFlow = this.uriEnv + 'flowstate/startflow';
|
|
272
|
-
this.NextFlowState = this.uriEnv + 'flowstate/
|
|
273
|
-
this.CurrentFlowState = this.uriEnv + 'flowstate/
|
|
271
|
+
this.StartFlow = this.uriEnv + 'validation/flowstate/startflow';
|
|
272
|
+
this.NextFlowState = this.uriEnv + 'validation/flowstate/nextstate';
|
|
273
|
+
this.CurrentFlowState = this.uriEnv + 'validation/flowstate/currentstate';
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
|
|
@@ -486,6 +486,7 @@ class ApiCall {
|
|
|
486
486
|
redirectId: state.redirectId,
|
|
487
487
|
phoneNumber: state.phoneNumber,
|
|
488
488
|
version: version,
|
|
489
|
+
demoMode: state.environment == 'DEMO',
|
|
489
490
|
};
|
|
490
491
|
let jsonResp = await this.post(this.urls.IdentityInsert, JSON.stringify(data));
|
|
491
492
|
if (state.requestId == '') {
|
|
@@ -552,15 +553,15 @@ class ApiCall {
|
|
|
552
553
|
return result;
|
|
553
554
|
}
|
|
554
555
|
async LandingValidationStartFlow(cameraIsAccessible) {
|
|
555
|
-
let result = await this.post(this.urls.StartFlow, JSON.stringify({
|
|
556
|
+
let result = await this.post(this.urls.StartFlow, JSON.stringify({ requestId: state.requestId, cameraIsAccessible: cameraIsAccessible }));
|
|
556
557
|
return exports.FlowStatus[result.state];
|
|
557
558
|
}
|
|
558
559
|
async GetNextFlowState() {
|
|
559
|
-
let result = await this.get(this.urls.
|
|
560
|
+
let result = await this.get(this.urls.NextFlowState + '?requestId=' + state.requestId);
|
|
560
561
|
return exports.FlowStatus[result.state];
|
|
561
562
|
}
|
|
562
563
|
async GetFlowState() {
|
|
563
|
-
let result = await this.get(this.urls.CurrentFlowState + '?
|
|
564
|
+
let result = await this.get(this.urls.CurrentFlowState + '?requestId=' + state.requestId);
|
|
564
565
|
return exports.FlowStatus[result.state];
|
|
565
566
|
}
|
|
566
567
|
}
|
|
@@ -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-22bb2d54.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.48";
|
|
5152
5152
|
const description = "Person Identification Component";
|
|
5153
5153
|
const main = "./dist/index.cjs.js";
|
|
5154
5154
|
const module$1 = "./dist/index.js";
|
|
@@ -5364,7 +5364,6 @@ const IdentificationComponent = class {
|
|
|
5364
5364
|
this.lang_iso = undefined;
|
|
5365
5365
|
this.errorMessage = undefined;
|
|
5366
5366
|
this.errorTitle = undefined;
|
|
5367
|
-
TranslationUtils.ApiCall.getInstance();
|
|
5368
5367
|
}
|
|
5369
5368
|
async componentWillLoad() {
|
|
5370
5369
|
Events.init(window);
|
|
@@ -5373,6 +5372,7 @@ const IdentificationComponent = class {
|
|
|
5373
5372
|
if (this.env && this.env != '') {
|
|
5374
5373
|
TranslationUtils.state.environment = this.env;
|
|
5375
5374
|
}
|
|
5375
|
+
TranslationUtils.ApiCall.getInstance();
|
|
5376
5376
|
if (TranslationUtils.state.debug)
|
|
5377
5377
|
this.logInit = getLogMessage(this.order_id, this.redirect_id, this.token);
|
|
5378
5378
|
if (this.token) {
|
|
@@ -5386,6 +5386,9 @@ const IdentificationComponent = class {
|
|
|
5386
5386
|
if (TranslationUtils.state.debug)
|
|
5387
5387
|
console.log('Store Token set with session value: ' + TranslationUtils.state.token);
|
|
5388
5388
|
}
|
|
5389
|
+
if (!TranslationUtils.state.token) {
|
|
5390
|
+
await delay(2000);
|
|
5391
|
+
}
|
|
5389
5392
|
if (this.redirect_id) {
|
|
5390
5393
|
TranslationUtils.state.redirectId = this.redirect_id;
|
|
5391
5394
|
}
|
|
@@ -5423,9 +5426,6 @@ const IdentificationComponent = class {
|
|
|
5423
5426
|
return;
|
|
5424
5427
|
}
|
|
5425
5428
|
this.initialised = true;
|
|
5426
|
-
if (TranslationUtils.state.environment == 'DEMO') {
|
|
5427
|
-
return;
|
|
5428
|
-
}
|
|
5429
5429
|
if (!TranslationUtils.state.device) {
|
|
5430
5430
|
TranslationUtils.state.device = new DeviceDetection().getDevice();
|
|
5431
5431
|
}
|
|
@@ -5439,7 +5439,7 @@ const IdentificationComponent = class {
|
|
|
5439
5439
|
}
|
|
5440
5440
|
catch (_a) { }
|
|
5441
5441
|
try {
|
|
5442
|
-
if (!TranslationUtils.state.device.isMobile && TranslationUtils.state.redirectId == '') {
|
|
5442
|
+
if (!TranslationUtils.state.device.isMobile && TranslationUtils.state.redirectId == '' && TranslationUtils.state.environment != 'DEMO') {
|
|
5443
5443
|
TranslationUtils.state.redirectId = v4();
|
|
5444
5444
|
this.redirect_id = TranslationUtils.state.redirectId;
|
|
5445
5445
|
}
|
|
@@ -5478,10 +5478,10 @@ const IdentificationComponent = class {
|
|
|
5478
5478
|
if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.CODEERROR) {
|
|
5479
5479
|
currentBlock = index.h("sms-code-validation", null);
|
|
5480
5480
|
}
|
|
5481
|
-
if (
|
|
5481
|
+
if ([TranslationUtils.FlowStatus.IDFRONT, TranslationUtils.FlowStatus.IDBACK, TranslationUtils.FlowStatus.IDTILT].includes(TranslationUtils.state.flowStatus)) {
|
|
5482
5482
|
currentBlock = index.h("process-id", null);
|
|
5483
5483
|
}
|
|
5484
|
-
if (
|
|
5484
|
+
if ([TranslationUtils.FlowStatus.LIVENESS, TranslationUtils.FlowStatus.LIVENESSGESTURE].includes(TranslationUtils.state.flowStatus)) {
|
|
5485
5485
|
currentBlock = index.h("user-liveness", null);
|
|
5486
5486
|
}
|
|
5487
5487
|
if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.COMPLETE) {
|
|
@@ -5520,9 +5520,7 @@ const LandingValidation = class {
|
|
|
5520
5520
|
await this.initRequest();
|
|
5521
5521
|
}
|
|
5522
5522
|
async componentDidLoad() {
|
|
5523
|
-
|
|
5524
|
-
await BaseComponent.initialize(TranslationUtils.FlowSteps.Landing);
|
|
5525
|
-
}
|
|
5523
|
+
await BaseComponent.initialize(TranslationUtils.FlowSteps.Landing);
|
|
5526
5524
|
}
|
|
5527
5525
|
async initRequest() {
|
|
5528
5526
|
this.warningText = this.translations.LandingValues.Warning;
|
|
@@ -5530,10 +5528,6 @@ const LandingValidation = class {
|
|
|
5530
5528
|
async startFlow() {
|
|
5531
5529
|
if (!this.buttonDisabled) {
|
|
5532
5530
|
this.buttonDisabled = true;
|
|
5533
|
-
if (TranslationUtils.state.environment === 'DEMO') {
|
|
5534
|
-
TranslationUtils.state.flowStatus = TranslationUtils.FlowStatus.COMPLETE;
|
|
5535
|
-
return;
|
|
5536
|
-
}
|
|
5537
5531
|
var cameraIsAccessible = await Cameras.InitCameras(TranslationUtils.state.device);
|
|
5538
5532
|
if (!cameraIsAccessible) {
|
|
5539
5533
|
if (TranslationUtils.state.device.mobileOS == MobileOS.iOS)
|
|
@@ -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-22bb2d54.js');
|
|
7
7
|
|
|
8
8
|
const randomActionsCss = "";
|
|
9
9
|
|
|
@@ -26,9 +26,7 @@ export class LandingValidation {
|
|
|
26
26
|
await this.initRequest();
|
|
27
27
|
}
|
|
28
28
|
async componentDidLoad() {
|
|
29
|
-
|
|
30
|
-
await BaseComponent.initialize(FlowSteps.Landing);
|
|
31
|
-
}
|
|
29
|
+
await BaseComponent.initialize(FlowSteps.Landing);
|
|
32
30
|
}
|
|
33
31
|
async initRequest() {
|
|
34
32
|
this.warningText = this.translations.LandingValues.Warning;
|
|
@@ -36,10 +34,6 @@ export class LandingValidation {
|
|
|
36
34
|
async startFlow() {
|
|
37
35
|
if (!this.buttonDisabled) {
|
|
38
36
|
this.buttonDisabled = true;
|
|
39
|
-
if (store.environment === 'DEMO') {
|
|
40
|
-
store.flowStatus = FlowStatus.COMPLETE;
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
37
|
var cameraIsAccessible = await Cameras.InitCameras(store.device);
|
|
44
38
|
if (!cameraIsAccessible) {
|
|
45
39
|
if (store.device.mobileOS == MobileOS.iOS)
|
|
@@ -6,7 +6,7 @@ import { FlowStatus } from '../../models/FlowStatus';
|
|
|
6
6
|
import Events from '../../helpers/Events';
|
|
7
7
|
import * as uuid from 'uuid';
|
|
8
8
|
import packageJson from '../../../package.json';
|
|
9
|
-
import { getLogMessage } from '../../utils/utils';
|
|
9
|
+
import { delay, getLogMessage } from '../../utils/utils';
|
|
10
10
|
import { Browser } from '../../models/IDevice';
|
|
11
11
|
import { FlowMoments, FlowSteps } from '../../models/FlowSteps';
|
|
12
12
|
// @ts-ignore
|
|
@@ -75,7 +75,6 @@ export class IdentificationComponent {
|
|
|
75
75
|
this.lang_iso = undefined;
|
|
76
76
|
this.errorMessage = undefined;
|
|
77
77
|
this.errorTitle = undefined;
|
|
78
|
-
ApiCall.getInstance();
|
|
79
78
|
}
|
|
80
79
|
async componentWillLoad() {
|
|
81
80
|
Events.init(window);
|
|
@@ -84,6 +83,7 @@ export class IdentificationComponent {
|
|
|
84
83
|
if (this.env && this.env != '') {
|
|
85
84
|
store.environment = this.env;
|
|
86
85
|
}
|
|
86
|
+
ApiCall.getInstance();
|
|
87
87
|
if (store.debug)
|
|
88
88
|
this.logInit = getLogMessage(this.order_id, this.redirect_id, this.token);
|
|
89
89
|
if (this.token) {
|
|
@@ -97,6 +97,9 @@ export class IdentificationComponent {
|
|
|
97
97
|
if (store.debug)
|
|
98
98
|
console.log('Store Token set with session value: ' + store.token);
|
|
99
99
|
}
|
|
100
|
+
if (!store.token) {
|
|
101
|
+
await delay(2000);
|
|
102
|
+
}
|
|
100
103
|
if (this.redirect_id) {
|
|
101
104
|
store.redirectId = this.redirect_id;
|
|
102
105
|
}
|
|
@@ -134,9 +137,6 @@ export class IdentificationComponent {
|
|
|
134
137
|
return;
|
|
135
138
|
}
|
|
136
139
|
this.initialised = true;
|
|
137
|
-
if (store.environment == 'DEMO') {
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
140
140
|
if (!store.device) {
|
|
141
141
|
store.device = new DeviceDetection().getDevice();
|
|
142
142
|
}
|
|
@@ -150,7 +150,7 @@ export class IdentificationComponent {
|
|
|
150
150
|
}
|
|
151
151
|
catch (_a) { }
|
|
152
152
|
try {
|
|
153
|
-
if (!store.device.isMobile && store.redirectId == '') {
|
|
153
|
+
if (!store.device.isMobile && store.redirectId == '' && store.environment != 'DEMO') {
|
|
154
154
|
store.redirectId = uuid.v4();
|
|
155
155
|
this.redirect_id = store.redirectId;
|
|
156
156
|
}
|
|
@@ -189,10 +189,10 @@ export class IdentificationComponent {
|
|
|
189
189
|
if (store.flowStatus == FlowStatus.CODEERROR) {
|
|
190
190
|
currentBlock = h("sms-code-validation", null);
|
|
191
191
|
}
|
|
192
|
-
if (
|
|
192
|
+
if ([FlowStatus.IDFRONT, FlowStatus.IDBACK, FlowStatus.IDTILT].includes(store.flowStatus)) {
|
|
193
193
|
currentBlock = h("process-id", null);
|
|
194
194
|
}
|
|
195
|
-
if (
|
|
195
|
+
if ([FlowStatus.LIVENESS, FlowStatus.LIVENESSGESTURE].includes(store.flowStatus)) {
|
|
196
196
|
currentBlock = h("user-liveness", null);
|
|
197
197
|
}
|
|
198
198
|
if (store.flowStatus == FlowStatus.COMPLETE) {
|
|
@@ -156,6 +156,7 @@ export class ApiCall {
|
|
|
156
156
|
redirectId: store.redirectId,
|
|
157
157
|
phoneNumber: store.phoneNumber,
|
|
158
158
|
version: version,
|
|
159
|
+
demoMode: store.environment == 'DEMO',
|
|
159
160
|
};
|
|
160
161
|
let jsonResp = await this.post(this.urls.IdentityInsert, JSON.stringify(data));
|
|
161
162
|
if (store.requestId == '') {
|
|
@@ -222,15 +223,15 @@ export class ApiCall {
|
|
|
222
223
|
return result;
|
|
223
224
|
}
|
|
224
225
|
async LandingValidationStartFlow(cameraIsAccessible) {
|
|
225
|
-
let result = await this.post(this.urls.StartFlow, JSON.stringify({
|
|
226
|
+
let result = await this.post(this.urls.StartFlow, JSON.stringify({ requestId: store.requestId, cameraIsAccessible: cameraIsAccessible }));
|
|
226
227
|
return FlowStatus[result.state];
|
|
227
228
|
}
|
|
228
229
|
async GetNextFlowState() {
|
|
229
|
-
let result = await this.get(this.urls.
|
|
230
|
+
let result = await this.get(this.urls.NextFlowState + '?requestId=' + store.requestId);
|
|
230
231
|
return FlowStatus[result.state];
|
|
231
232
|
}
|
|
232
233
|
async GetFlowState() {
|
|
233
|
-
let result = await this.get(this.urls.CurrentFlowState + '?
|
|
234
|
+
let result = await this.get(this.urls.CurrentFlowState + '?requestId=' + store.requestId);
|
|
234
235
|
return FlowStatus[result.state];
|
|
235
236
|
}
|
|
236
237
|
}
|
|
@@ -32,7 +32,7 @@ SessionKeys.RefreshDoneKey = 'qbs-ect-refresh-done';
|
|
|
32
32
|
export class ApiUrls {
|
|
33
33
|
constructor() {
|
|
34
34
|
this.uriEnv = '/';
|
|
35
|
-
this.uriEnv = store.environment
|
|
35
|
+
this.uriEnv = ['QA', 'DEMO'].includes(store.environment) ? '/dev_' : '/';
|
|
36
36
|
this.OtpSend = this.uriEnv + 'validation/otp/send';
|
|
37
37
|
this.OtpCheck = this.uriEnv + 'validation/otp/check';
|
|
38
38
|
this.IdentityInsert = this.uriEnv + 'validation/identity/insert';
|
|
@@ -45,8 +45,8 @@ export class ApiUrls {
|
|
|
45
45
|
this.AddStep = this.uriEnv + 'validation/logs/step';
|
|
46
46
|
this.AbortRequest = this.uriEnv + 'validation/identity/abort';
|
|
47
47
|
this.Translations = this.uriEnv + 'validation/translations/get';
|
|
48
|
-
this.StartFlow = this.uriEnv + 'flowstate/startflow';
|
|
49
|
-
this.NextFlowState = this.uriEnv + 'flowstate/
|
|
50
|
-
this.CurrentFlowState = this.uriEnv + 'flowstate/
|
|
48
|
+
this.StartFlow = this.uriEnv + 'validation/flowstate/startflow';
|
|
49
|
+
this.NextFlowState = this.uriEnv + 'validation/flowstate/nextstate';
|
|
50
|
+
this.CurrentFlowState = this.uriEnv + 'validation/flowstate/currentstate';
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -253,7 +253,7 @@ SessionKeys.RefreshDoneKey = 'qbs-ect-refresh-done';
|
|
|
253
253
|
class ApiUrls {
|
|
254
254
|
constructor() {
|
|
255
255
|
this.uriEnv = '/';
|
|
256
|
-
this.uriEnv = state.environment
|
|
256
|
+
this.uriEnv = ['QA', 'DEMO'].includes(state.environment) ? '/dev_' : '/';
|
|
257
257
|
this.OtpSend = this.uriEnv + 'validation/otp/send';
|
|
258
258
|
this.OtpCheck = this.uriEnv + 'validation/otp/check';
|
|
259
259
|
this.IdentityInsert = this.uriEnv + 'validation/identity/insert';
|
|
@@ -266,9 +266,9 @@ class ApiUrls {
|
|
|
266
266
|
this.AddStep = this.uriEnv + 'validation/logs/step';
|
|
267
267
|
this.AbortRequest = this.uriEnv + 'validation/identity/abort';
|
|
268
268
|
this.Translations = this.uriEnv + 'validation/translations/get';
|
|
269
|
-
this.StartFlow = this.uriEnv + 'flowstate/startflow';
|
|
270
|
-
this.NextFlowState = this.uriEnv + 'flowstate/
|
|
271
|
-
this.CurrentFlowState = this.uriEnv + 'flowstate/
|
|
269
|
+
this.StartFlow = this.uriEnv + 'validation/flowstate/startflow';
|
|
270
|
+
this.NextFlowState = this.uriEnv + 'validation/flowstate/nextstate';
|
|
271
|
+
this.CurrentFlowState = this.uriEnv + 'validation/flowstate/currentstate';
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
|
|
@@ -484,6 +484,7 @@ class ApiCall {
|
|
|
484
484
|
redirectId: state.redirectId,
|
|
485
485
|
phoneNumber: state.phoneNumber,
|
|
486
486
|
version: version,
|
|
487
|
+
demoMode: state.environment == 'DEMO',
|
|
487
488
|
};
|
|
488
489
|
let jsonResp = await this.post(this.urls.IdentityInsert, JSON.stringify(data));
|
|
489
490
|
if (state.requestId == '') {
|
|
@@ -550,15 +551,15 @@ class ApiCall {
|
|
|
550
551
|
return result;
|
|
551
552
|
}
|
|
552
553
|
async LandingValidationStartFlow(cameraIsAccessible) {
|
|
553
|
-
let result = await this.post(this.urls.StartFlow, JSON.stringify({
|
|
554
|
+
let result = await this.post(this.urls.StartFlow, JSON.stringify({ requestId: state.requestId, cameraIsAccessible: cameraIsAccessible }));
|
|
554
555
|
return FlowStatus[result.state];
|
|
555
556
|
}
|
|
556
557
|
async GetNextFlowState() {
|
|
557
|
-
let result = await this.get(this.urls.
|
|
558
|
+
let result = await this.get(this.urls.NextFlowState + '?requestId=' + state.requestId);
|
|
558
559
|
return FlowStatus[result.state];
|
|
559
560
|
}
|
|
560
561
|
async GetFlowState() {
|
|
561
|
-
let result = await this.get(this.urls.CurrentFlowState + '?
|
|
562
|
+
let result = await this.get(this.urls.CurrentFlowState + '?requestId=' + state.requestId);
|
|
562
563
|
return FlowStatus[result.state];
|
|
563
564
|
}
|
|
564
565
|
}
|
|
@@ -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-f13d895b.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.48";
|
|
5148
5148
|
const description = "Person Identification Component";
|
|
5149
5149
|
const main = "./dist/index.cjs.js";
|
|
5150
5150
|
const module = "./dist/index.js";
|
|
@@ -5360,7 +5360,6 @@ const IdentificationComponent = class {
|
|
|
5360
5360
|
this.lang_iso = undefined;
|
|
5361
5361
|
this.errorMessage = undefined;
|
|
5362
5362
|
this.errorTitle = undefined;
|
|
5363
|
-
ApiCall.getInstance();
|
|
5364
5363
|
}
|
|
5365
5364
|
async componentWillLoad() {
|
|
5366
5365
|
Events.init(window);
|
|
@@ -5369,6 +5368,7 @@ const IdentificationComponent = class {
|
|
|
5369
5368
|
if (this.env && this.env != '') {
|
|
5370
5369
|
state.environment = this.env;
|
|
5371
5370
|
}
|
|
5371
|
+
ApiCall.getInstance();
|
|
5372
5372
|
if (state.debug)
|
|
5373
5373
|
this.logInit = getLogMessage(this.order_id, this.redirect_id, this.token);
|
|
5374
5374
|
if (this.token) {
|
|
@@ -5382,6 +5382,9 @@ const IdentificationComponent = class {
|
|
|
5382
5382
|
if (state.debug)
|
|
5383
5383
|
console.log('Store Token set with session value: ' + state.token);
|
|
5384
5384
|
}
|
|
5385
|
+
if (!state.token) {
|
|
5386
|
+
await delay(2000);
|
|
5387
|
+
}
|
|
5385
5388
|
if (this.redirect_id) {
|
|
5386
5389
|
state.redirectId = this.redirect_id;
|
|
5387
5390
|
}
|
|
@@ -5419,9 +5422,6 @@ const IdentificationComponent = class {
|
|
|
5419
5422
|
return;
|
|
5420
5423
|
}
|
|
5421
5424
|
this.initialised = true;
|
|
5422
|
-
if (state.environment == 'DEMO') {
|
|
5423
|
-
return;
|
|
5424
|
-
}
|
|
5425
5425
|
if (!state.device) {
|
|
5426
5426
|
state.device = new DeviceDetection().getDevice();
|
|
5427
5427
|
}
|
|
@@ -5435,7 +5435,7 @@ const IdentificationComponent = class {
|
|
|
5435
5435
|
}
|
|
5436
5436
|
catch (_a) { }
|
|
5437
5437
|
try {
|
|
5438
|
-
if (!state.device.isMobile && state.redirectId == '') {
|
|
5438
|
+
if (!state.device.isMobile && state.redirectId == '' && state.environment != 'DEMO') {
|
|
5439
5439
|
state.redirectId = v4();
|
|
5440
5440
|
this.redirect_id = state.redirectId;
|
|
5441
5441
|
}
|
|
@@ -5474,10 +5474,10 @@ const IdentificationComponent = class {
|
|
|
5474
5474
|
if (state.flowStatus == FlowStatus.CODEERROR) {
|
|
5475
5475
|
currentBlock = h("sms-code-validation", null);
|
|
5476
5476
|
}
|
|
5477
|
-
if (
|
|
5477
|
+
if ([FlowStatus.IDFRONT, FlowStatus.IDBACK, FlowStatus.IDTILT].includes(state.flowStatus)) {
|
|
5478
5478
|
currentBlock = h("process-id", null);
|
|
5479
5479
|
}
|
|
5480
|
-
if (
|
|
5480
|
+
if ([FlowStatus.LIVENESS, FlowStatus.LIVENESSGESTURE].includes(state.flowStatus)) {
|
|
5481
5481
|
currentBlock = h("user-liveness", null);
|
|
5482
5482
|
}
|
|
5483
5483
|
if (state.flowStatus == FlowStatus.COMPLETE) {
|
|
@@ -5516,9 +5516,7 @@ const LandingValidation = class {
|
|
|
5516
5516
|
await this.initRequest();
|
|
5517
5517
|
}
|
|
5518
5518
|
async componentDidLoad() {
|
|
5519
|
-
|
|
5520
|
-
await BaseComponent.initialize(FlowSteps.Landing);
|
|
5521
|
-
}
|
|
5519
|
+
await BaseComponent.initialize(FlowSteps.Landing);
|
|
5522
5520
|
}
|
|
5523
5521
|
async initRequest() {
|
|
5524
5522
|
this.warningText = this.translations.LandingValues.Warning;
|
|
@@ -5526,10 +5524,6 @@ const LandingValidation = class {
|
|
|
5526
5524
|
async startFlow() {
|
|
5527
5525
|
if (!this.buttonDisabled) {
|
|
5528
5526
|
this.buttonDisabled = true;
|
|
5529
|
-
if (state.environment === 'DEMO') {
|
|
5530
|
-
state.flowStatus = FlowStatus.COMPLETE;
|
|
5531
|
-
return;
|
|
5532
|
-
}
|
|
5533
5527
|
var cameraIsAccessible = await Cameras.InitCameras(state.device);
|
|
5534
5528
|
if (!cameraIsAccessible) {
|
|
5535
5529
|
if (state.device.mobileOS == MobileOS.iOS)
|
|
@@ -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-8dcaf6b9.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}
|