gbc-kyc-kit 3.0.29 → 3.0.30
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/gbc-kyc-kit.es.js +7 -3
- package/dist/gbc-kyc-kit.umd.js +49 -49
- package/package.json +2 -2
package/dist/gbc-kyc-kit.es.js
CHANGED
|
@@ -18253,7 +18253,7 @@ const response_of_check_ip_use_vpn = "yes";
|
|
|
18253
18253
|
const limit_of_request = "Limite de consultas - Verificar con el proveedor";
|
|
18254
18254
|
const MAX_WIDTH = 1920;
|
|
18255
18255
|
const MAX_HEIGHT = 1080;
|
|
18256
|
-
const BlackListController = (clientId, authorize, inProduction, source2, eventId, countryCodeAllowed, validateVpn, successMessage, alertMessage, dataBulkVerification) => {
|
|
18256
|
+
const BlackListController = (clientId, authorize, inProduction, source2, eventId, countryCodeAllowed, validateVpn, successMessage, alertMessage, dataBlackList, dataBulkVerification) => {
|
|
18257
18257
|
const [isLoading, setIsLoading] = useState(false);
|
|
18258
18258
|
const [status, setStatus] = useState(clientId === void 0 ? status_client_id : authorize === void 0 ? status_token : "");
|
|
18259
18259
|
const [message, setMessage] = useState("");
|
|
@@ -18327,6 +18327,7 @@ const BlackListController = (clientId, authorize, inProduction, source2, eventId
|
|
|
18327
18327
|
birth_date
|
|
18328
18328
|
} = data2;
|
|
18329
18329
|
setIsLoading(true);
|
|
18330
|
+
let dataToRegisterBlackList = null;
|
|
18330
18331
|
try {
|
|
18331
18332
|
const res = await authorize();
|
|
18332
18333
|
const customHeaders = {
|
|
@@ -18356,7 +18357,7 @@ const BlackListController = (clientId, authorize, inProduction, source2, eventId
|
|
|
18356
18357
|
status: status2,
|
|
18357
18358
|
payload
|
|
18358
18359
|
} = resOfBlacklist.data.data;
|
|
18359
|
-
|
|
18360
|
+
dataToRegisterBlackList = {
|
|
18360
18361
|
request_match: match2,
|
|
18361
18362
|
request_payload: payload,
|
|
18362
18363
|
first_name: first_name === "" ? null : first_name,
|
|
@@ -18384,7 +18385,6 @@ const BlackListController = (clientId, authorize, inProduction, source2, eventId
|
|
|
18384
18385
|
} else {
|
|
18385
18386
|
setMessage(successMessage ? successMessage : message2);
|
|
18386
18387
|
}
|
|
18387
|
-
await dataBulkVerification(match2);
|
|
18388
18388
|
setStatus(status2);
|
|
18389
18389
|
} catch (error) {
|
|
18390
18390
|
let message2 = "";
|
|
@@ -18412,6 +18412,9 @@ const BlackListController = (clientId, authorize, inProduction, source2, eventId
|
|
|
18412
18412
|
setStatus(status2);
|
|
18413
18413
|
ErrorHandler(error);
|
|
18414
18414
|
} finally {
|
|
18415
|
+
if (dataToRegisterBlackList) {
|
|
18416
|
+
await dataBlackList(dataToRegisterBlackList.match);
|
|
18417
|
+
}
|
|
18415
18418
|
setIsLoading(false);
|
|
18416
18419
|
}
|
|
18417
18420
|
};
|
|
@@ -39273,6 +39276,7 @@ function BlackList({
|
|
|
39273
39276
|
clearState,
|
|
39274
39277
|
countryCode
|
|
39275
39278
|
} = BlackListController(clientId, authorize, inProduction, source2, eventId, countryCodeAllowed, validateVpn, successMessage, alertMessage, dataBlackList);
|
|
39279
|
+
console.log(dataBlackList);
|
|
39276
39280
|
return /* @__PURE__ */ jsxs("div", {
|
|
39277
39281
|
className: `kit-gbc ${mode}`,
|
|
39278
39282
|
style: {
|