gbc-kyc-kit 3.0.30 → 3.0.31

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.
@@ -18288,7 +18288,7 @@ const BlackListController = (clientId, authorize, inProduction, source2, eventId
18288
18288
  setIsLoading(false);
18289
18289
  setCsvFile(null);
18290
18290
  setBatchData({});
18291
- dataBulkVerification([]);
18291
+ dataBulkVerification && dataBulkVerification([]);
18292
18292
  };
18293
18293
  const schema = create({
18294
18294
  first_name: create$1().required("Este campo es requerido."),
@@ -18412,7 +18412,7 @@ const BlackListController = (clientId, authorize, inProduction, source2, eventId
18412
18412
  setStatus(status2);
18413
18413
  ErrorHandler(error);
18414
18414
  } finally {
18415
- if (dataToRegisterBlackList) {
18415
+ if (dataToRegisterBlackList && dataBlackList) {
18416
18416
  await dataBlackList(dataToRegisterBlackList.match);
18417
18417
  }
18418
18418
  setIsLoading(false);
@@ -18427,6 +18427,7 @@ const BlackListController = (clientId, authorize, inProduction, source2, eventId
18427
18427
  const onSubmitCsv = async () => {
18428
18428
  var _a;
18429
18429
  setIsLoading(true);
18430
+ let dataToRegisterBlackListBatch = null;
18430
18431
  try {
18431
18432
  const res = await authorize();
18432
18433
  const customHeaders = {
@@ -18451,7 +18452,7 @@ const BlackListController = (clientId, authorize, inProduction, source2, eventId
18451
18452
  id,
18452
18453
  startTime
18453
18454
  } = resOfBlacklistBatch.data.data;
18454
- const dataToRegisterBlackListBatch = {
18455
+ dataToRegisterBlackListBatch = {
18455
18456
  csvFile,
18456
18457
  batch_id: id,
18457
18458
  start_time: startTime,
@@ -18472,11 +18473,6 @@ const BlackListController = (clientId, authorize, inProduction, source2, eventId
18472
18473
  setMessage(alertMessage ? alertMessage : "La verificai\xF3n est\xE1 en proceso. Por favor copie y guarde este ID para su control!");
18473
18474
  setStatus(resOfBlacklistBatch.data.message);
18474
18475
  setBatchData(resOfBlacklistBatch.data.data);
18475
- await dataBulkVerification({
18476
- batchSize,
18477
- id,
18478
- startTime
18479
- });
18480
18476
  } catch (error) {
18481
18477
  let message2 = "Error interno de la aplicai\xF3n";
18482
18478
  console.log(error);
@@ -18509,6 +18505,9 @@ const BlackListController = (clientId, authorize, inProduction, source2, eventId
18509
18505
  setStatus(status2);
18510
18506
  ErrorHandler(error);
18511
18507
  } finally {
18508
+ if (dataToRegisterBlackListBatch && dataBulkVerification) {
18509
+ await dataBulkVerification(dataToRegisterBlackListBatch);
18510
+ }
18512
18511
  setIsLoading(false);
18513
18512
  }
18514
18513
  };
@@ -39276,7 +39275,6 @@ function BlackList({
39276
39275
  clearState,
39277
39276
  countryCode
39278
39277
  } = BlackListController(clientId, authorize, inProduction, source2, eventId, countryCodeAllowed, validateVpn, successMessage, alertMessage, dataBlackList);
39279
- console.log(dataBlackList);
39280
39278
  return /* @__PURE__ */ jsxs("div", {
39281
39279
  className: `kit-gbc ${mode}`,
39282
39280
  style: {