@ekyc_qoobiss/qbs-ect-cmp 1.12.7 → 1.12.9
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/agreement-check_17.cjs.entry.js +15 -8
- package/dist/collection/components/identification-component/identification-component.js +14 -5
- package/dist/collection/libs/IDML5Detector/IDML5Detector.js +1 -3
- package/dist/esm/agreement-check_17.entry.js +15 -8
- package/dist/qbs-ect-cmp/{p-1497c772.entry.js → p-1071c7e5.entry.js} +1 -1
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/package.json +1 -1
|
@@ -1938,9 +1938,6 @@ class IDML5Detector {
|
|
|
1938
1938
|
this.stream.verificationReady();
|
|
1939
1939
|
}
|
|
1940
1940
|
}
|
|
1941
|
-
if (this.full == 1 && this.tilted == 0) {
|
|
1942
|
-
this.stream.autoCapturing();
|
|
1943
|
-
}
|
|
1944
1941
|
if (Date.now() - this.initTime >= this.MAX_DETECTION) {
|
|
1945
1942
|
this.continue = false;
|
|
1946
1943
|
this.stream.timeElapsed();
|
|
@@ -1956,6 +1953,7 @@ class IDML5Detector {
|
|
|
1956
1953
|
}
|
|
1957
1954
|
if (results[0].label == 'full' && results[0].confidence > 0.9 && this.full == 0) {
|
|
1958
1955
|
this.full = 1;
|
|
1956
|
+
this.stream.autoCapturing();
|
|
1959
1957
|
await this.drawFrame('green');
|
|
1960
1958
|
this.stream.changeIDPose(IDPose.Tilted);
|
|
1961
1959
|
await this.delay(GlobalValues.VideoLenght);
|
|
@@ -6001,6 +5999,7 @@ const IdentificationComponent = class {
|
|
|
6001
5999
|
if (state.requestId !== newValue) {
|
|
6002
6000
|
state.requestId = newValue;
|
|
6003
6001
|
state.initialised = false;
|
|
6002
|
+
sessionStorage.clear();
|
|
6004
6003
|
if (state.flowStatus != FlowStatus.LANDING) {
|
|
6005
6004
|
state.flowStatus = FlowStatus.LANDING;
|
|
6006
6005
|
}
|
|
@@ -6078,15 +6077,14 @@ const IdentificationComponent = class {
|
|
|
6078
6077
|
}
|
|
6079
6078
|
async componentWillLoad() {
|
|
6080
6079
|
Events.init(window);
|
|
6080
|
+
state.apiBaseUrl = this.api_url;
|
|
6081
|
+
state.environment = this.env;
|
|
6081
6082
|
if (this.token) {
|
|
6082
6083
|
state.token = this.token;
|
|
6083
6084
|
}
|
|
6084
6085
|
else {
|
|
6085
6086
|
state.token = sessionStorage.getItem(SessionKeys.TokenKey);
|
|
6086
6087
|
}
|
|
6087
|
-
if (this.order_id) {
|
|
6088
|
-
state.requestId = this.order_id;
|
|
6089
|
-
}
|
|
6090
6088
|
if (this.redirect_id) {
|
|
6091
6089
|
state.redirectId = this.redirect_id;
|
|
6092
6090
|
}
|
|
@@ -6113,8 +6111,17 @@ const IdentificationComponent = class {
|
|
|
6113
6111
|
if (phoneVal && phoneVal.toLowerCase() == 'true') {
|
|
6114
6112
|
state.phoneValidation = true;
|
|
6115
6113
|
}
|
|
6116
|
-
|
|
6117
|
-
|
|
6114
|
+
const savedRequest = sessionStorage.getItem(SessionKeys.RequestIdKey);
|
|
6115
|
+
if (this.order_id) {
|
|
6116
|
+
if (savedRequest && savedRequest != this.order_id) {
|
|
6117
|
+
sessionStorage.clear();
|
|
6118
|
+
state.flowStatus = FlowStatus.LANDING;
|
|
6119
|
+
state.initialised = false;
|
|
6120
|
+
}
|
|
6121
|
+
else {
|
|
6122
|
+
state.requestId = this.order_id;
|
|
6123
|
+
}
|
|
6124
|
+
}
|
|
6118
6125
|
this.apiCall = new ApiCall();
|
|
6119
6126
|
await this.initializeRequest();
|
|
6120
6127
|
}
|
|
@@ -22,6 +22,7 @@ export class IdentificationComponent {
|
|
|
22
22
|
if (store.requestId !== newValue) {
|
|
23
23
|
store.requestId = newValue;
|
|
24
24
|
store.initialised = false;
|
|
25
|
+
sessionStorage.clear();
|
|
25
26
|
if (store.flowStatus != FlowStatus.LANDING) {
|
|
26
27
|
store.flowStatus = FlowStatus.LANDING;
|
|
27
28
|
}
|
|
@@ -98,15 +99,14 @@ export class IdentificationComponent {
|
|
|
98
99
|
}
|
|
99
100
|
async componentWillLoad() {
|
|
100
101
|
Events.init(window);
|
|
102
|
+
store.apiBaseUrl = this.api_url;
|
|
103
|
+
store.environment = this.env;
|
|
101
104
|
if (this.token) {
|
|
102
105
|
store.token = this.token;
|
|
103
106
|
}
|
|
104
107
|
else {
|
|
105
108
|
store.token = sessionStorage.getItem(SessionKeys.TokenKey);
|
|
106
109
|
}
|
|
107
|
-
if (this.order_id) {
|
|
108
|
-
store.requestId = this.order_id;
|
|
109
|
-
}
|
|
110
110
|
if (this.redirect_id) {
|
|
111
111
|
store.redirectId = this.redirect_id;
|
|
112
112
|
}
|
|
@@ -133,8 +133,17 @@ export class IdentificationComponent {
|
|
|
133
133
|
if (phoneVal && phoneVal.toLowerCase() == 'true') {
|
|
134
134
|
store.phoneValidation = true;
|
|
135
135
|
}
|
|
136
|
-
|
|
137
|
-
|
|
136
|
+
const savedRequest = sessionStorage.getItem(SessionKeys.RequestIdKey);
|
|
137
|
+
if (this.order_id) {
|
|
138
|
+
if (savedRequest && savedRequest != this.order_id) {
|
|
139
|
+
sessionStorage.clear();
|
|
140
|
+
store.flowStatus = FlowStatus.LANDING;
|
|
141
|
+
store.initialised = false;
|
|
142
|
+
}
|
|
143
|
+
else {
|
|
144
|
+
store.requestId = this.order_id;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
138
147
|
this.apiCall = new ApiCall();
|
|
139
148
|
await this.initializeRequest();
|
|
140
149
|
}
|
|
@@ -43,9 +43,6 @@ export class IDML5Detector {
|
|
|
43
43
|
this.stream.verificationReady();
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
if (this.full == 1 && this.tilted == 0) {
|
|
47
|
-
this.stream.autoCapturing();
|
|
48
|
-
}
|
|
49
46
|
if (Date.now() - this.initTime >= this.MAX_DETECTION) {
|
|
50
47
|
this.continue = false;
|
|
51
48
|
this.stream.timeElapsed();
|
|
@@ -61,6 +58,7 @@ export class IDML5Detector {
|
|
|
61
58
|
}
|
|
62
59
|
if (results[0].label == 'full' && results[0].confidence > 0.9 && this.full == 0) {
|
|
63
60
|
this.full = 1;
|
|
61
|
+
this.stream.autoCapturing();
|
|
64
62
|
await this.drawFrame('green');
|
|
65
63
|
this.stream.changeIDPose(IDPose.Tilted);
|
|
66
64
|
await this.delay(GlobalValues.VideoLenght);
|
|
@@ -1934,9 +1934,6 @@ class IDML5Detector {
|
|
|
1934
1934
|
this.stream.verificationReady();
|
|
1935
1935
|
}
|
|
1936
1936
|
}
|
|
1937
|
-
if (this.full == 1 && this.tilted == 0) {
|
|
1938
|
-
this.stream.autoCapturing();
|
|
1939
|
-
}
|
|
1940
1937
|
if (Date.now() - this.initTime >= this.MAX_DETECTION) {
|
|
1941
1938
|
this.continue = false;
|
|
1942
1939
|
this.stream.timeElapsed();
|
|
@@ -1952,6 +1949,7 @@ class IDML5Detector {
|
|
|
1952
1949
|
}
|
|
1953
1950
|
if (results[0].label == 'full' && results[0].confidence > 0.9 && this.full == 0) {
|
|
1954
1951
|
this.full = 1;
|
|
1952
|
+
this.stream.autoCapturing();
|
|
1955
1953
|
await this.drawFrame('green');
|
|
1956
1954
|
this.stream.changeIDPose(IDPose.Tilted);
|
|
1957
1955
|
await this.delay(GlobalValues.VideoLenght);
|
|
@@ -5997,6 +5995,7 @@ const IdentificationComponent = class {
|
|
|
5997
5995
|
if (state.requestId !== newValue) {
|
|
5998
5996
|
state.requestId = newValue;
|
|
5999
5997
|
state.initialised = false;
|
|
5998
|
+
sessionStorage.clear();
|
|
6000
5999
|
if (state.flowStatus != FlowStatus.LANDING) {
|
|
6001
6000
|
state.flowStatus = FlowStatus.LANDING;
|
|
6002
6001
|
}
|
|
@@ -6074,15 +6073,14 @@ const IdentificationComponent = class {
|
|
|
6074
6073
|
}
|
|
6075
6074
|
async componentWillLoad() {
|
|
6076
6075
|
Events.init(window);
|
|
6076
|
+
state.apiBaseUrl = this.api_url;
|
|
6077
|
+
state.environment = this.env;
|
|
6077
6078
|
if (this.token) {
|
|
6078
6079
|
state.token = this.token;
|
|
6079
6080
|
}
|
|
6080
6081
|
else {
|
|
6081
6082
|
state.token = sessionStorage.getItem(SessionKeys.TokenKey);
|
|
6082
6083
|
}
|
|
6083
|
-
if (this.order_id) {
|
|
6084
|
-
state.requestId = this.order_id;
|
|
6085
|
-
}
|
|
6086
6084
|
if (this.redirect_id) {
|
|
6087
6085
|
state.redirectId = this.redirect_id;
|
|
6088
6086
|
}
|
|
@@ -6109,8 +6107,17 @@ const IdentificationComponent = class {
|
|
|
6109
6107
|
if (phoneVal && phoneVal.toLowerCase() == 'true') {
|
|
6110
6108
|
state.phoneValidation = true;
|
|
6111
6109
|
}
|
|
6112
|
-
|
|
6113
|
-
|
|
6110
|
+
const savedRequest = sessionStorage.getItem(SessionKeys.RequestIdKey);
|
|
6111
|
+
if (this.order_id) {
|
|
6112
|
+
if (savedRequest && savedRequest != this.order_id) {
|
|
6113
|
+
sessionStorage.clear();
|
|
6114
|
+
state.flowStatus = FlowStatus.LANDING;
|
|
6115
|
+
state.initialised = false;
|
|
6116
|
+
}
|
|
6117
|
+
else {
|
|
6118
|
+
state.requestId = this.order_id;
|
|
6119
|
+
}
|
|
6120
|
+
}
|
|
6114
6121
|
this.apiCall = new ApiCall();
|
|
6115
6122
|
await this.initializeRequest();
|
|
6116
6123
|
}
|