@ekyc_qoobiss/qbs-ect-cmp 1.12.7 → 1.12.8
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 +14 -5
- package/dist/collection/components/identification-component/identification-component.js +14 -5
- package/dist/esm/agreement-check_17.entry.js +14 -5
- package/dist/qbs-ect-cmp/{p-1497c772.entry.js → p-ee681a53.entry.js} +1 -1
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/package.json +1 -1
|
@@ -6001,6 +6001,7 @@ const IdentificationComponent = class {
|
|
|
6001
6001
|
if (state.requestId !== newValue) {
|
|
6002
6002
|
state.requestId = newValue;
|
|
6003
6003
|
state.initialised = false;
|
|
6004
|
+
sessionStorage.clear();
|
|
6004
6005
|
if (state.flowStatus != FlowStatus.LANDING) {
|
|
6005
6006
|
state.flowStatus = FlowStatus.LANDING;
|
|
6006
6007
|
}
|
|
@@ -6078,15 +6079,14 @@ const IdentificationComponent = class {
|
|
|
6078
6079
|
}
|
|
6079
6080
|
async componentWillLoad() {
|
|
6080
6081
|
Events.init(window);
|
|
6082
|
+
state.apiBaseUrl = this.api_url;
|
|
6083
|
+
state.environment = this.env;
|
|
6081
6084
|
if (this.token) {
|
|
6082
6085
|
state.token = this.token;
|
|
6083
6086
|
}
|
|
6084
6087
|
else {
|
|
6085
6088
|
state.token = sessionStorage.getItem(SessionKeys.TokenKey);
|
|
6086
6089
|
}
|
|
6087
|
-
if (this.order_id) {
|
|
6088
|
-
state.requestId = this.order_id;
|
|
6089
|
-
}
|
|
6090
6090
|
if (this.redirect_id) {
|
|
6091
6091
|
state.redirectId = this.redirect_id;
|
|
6092
6092
|
}
|
|
@@ -6113,8 +6113,17 @@ const IdentificationComponent = class {
|
|
|
6113
6113
|
if (phoneVal && phoneVal.toLowerCase() == 'true') {
|
|
6114
6114
|
state.phoneValidation = true;
|
|
6115
6115
|
}
|
|
6116
|
-
|
|
6117
|
-
|
|
6116
|
+
const savedRequest = sessionStorage.getItem(SessionKeys.RequestIdKey);
|
|
6117
|
+
if (this.order_id) {
|
|
6118
|
+
if (savedRequest && savedRequest != this.order_id) {
|
|
6119
|
+
sessionStorage.clear();
|
|
6120
|
+
state.flowStatus = FlowStatus.LANDING;
|
|
6121
|
+
state.initialised = false;
|
|
6122
|
+
}
|
|
6123
|
+
else {
|
|
6124
|
+
state.requestId = this.order_id;
|
|
6125
|
+
}
|
|
6126
|
+
}
|
|
6118
6127
|
this.apiCall = new ApiCall();
|
|
6119
6128
|
await this.initializeRequest();
|
|
6120
6129
|
}
|
|
@@ -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
|
}
|
|
@@ -5997,6 +5997,7 @@ const IdentificationComponent = class {
|
|
|
5997
5997
|
if (state.requestId !== newValue) {
|
|
5998
5998
|
state.requestId = newValue;
|
|
5999
5999
|
state.initialised = false;
|
|
6000
|
+
sessionStorage.clear();
|
|
6000
6001
|
if (state.flowStatus != FlowStatus.LANDING) {
|
|
6001
6002
|
state.flowStatus = FlowStatus.LANDING;
|
|
6002
6003
|
}
|
|
@@ -6074,15 +6075,14 @@ const IdentificationComponent = class {
|
|
|
6074
6075
|
}
|
|
6075
6076
|
async componentWillLoad() {
|
|
6076
6077
|
Events.init(window);
|
|
6078
|
+
state.apiBaseUrl = this.api_url;
|
|
6079
|
+
state.environment = this.env;
|
|
6077
6080
|
if (this.token) {
|
|
6078
6081
|
state.token = this.token;
|
|
6079
6082
|
}
|
|
6080
6083
|
else {
|
|
6081
6084
|
state.token = sessionStorage.getItem(SessionKeys.TokenKey);
|
|
6082
6085
|
}
|
|
6083
|
-
if (this.order_id) {
|
|
6084
|
-
state.requestId = this.order_id;
|
|
6085
|
-
}
|
|
6086
6086
|
if (this.redirect_id) {
|
|
6087
6087
|
state.redirectId = this.redirect_id;
|
|
6088
6088
|
}
|
|
@@ -6109,8 +6109,17 @@ const IdentificationComponent = class {
|
|
|
6109
6109
|
if (phoneVal && phoneVal.toLowerCase() == 'true') {
|
|
6110
6110
|
state.phoneValidation = true;
|
|
6111
6111
|
}
|
|
6112
|
-
|
|
6113
|
-
|
|
6112
|
+
const savedRequest = sessionStorage.getItem(SessionKeys.RequestIdKey);
|
|
6113
|
+
if (this.order_id) {
|
|
6114
|
+
if (savedRequest && savedRequest != this.order_id) {
|
|
6115
|
+
sessionStorage.clear();
|
|
6116
|
+
state.flowStatus = FlowStatus.LANDING;
|
|
6117
|
+
state.initialised = false;
|
|
6118
|
+
}
|
|
6119
|
+
else {
|
|
6120
|
+
state.requestId = this.order_id;
|
|
6121
|
+
}
|
|
6122
|
+
}
|
|
6114
6123
|
this.apiCall = new ApiCall();
|
|
6115
6124
|
await this.initializeRequest();
|
|
6116
6125
|
}
|