gbc-kyc-kit 2.2.0 → 2.2.2

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.
@@ -18168,7 +18168,7 @@ const status_vpn = "USE_VPN";
18168
18168
  const vpn_not_authorized = "Uso de Proxy o VPN no permitido";
18169
18169
  const response_of_check_ip_use_vpn = "yes";
18170
18170
  const limit_of_request = "Limite de consultas - Verificar con el proveedor";
18171
- const BlackListController = (dataBlackList, clientId, authorize, inProduction, source2, eventId, countryCodeAllowed, validateVpn, successMessage, alertMessage, dataBulkVerification) => {
18171
+ const BlackListController = (clientId, authorize, inProduction, source2, eventId, countryCodeAllowed, validateVpn, successMessage, alertMessage, dataBulkVerification) => {
18172
18172
  const [isLoading, setIsLoading] = useState(false);
18173
18173
  const [status, setStatus] = useState(clientId === void 0 ? status_client_id$1 : authorize === void 0 ? status_token$1 : "");
18174
18174
  const [message, setMessage] = useState("");
@@ -18180,6 +18180,7 @@ const BlackListController = (dataBlackList, clientId, authorize, inProduction, s
18180
18180
  const [csvFile, setCsvFile] = useState(null);
18181
18181
  const fileInputRef = useRef(null);
18182
18182
  const [batchData, setBatchData] = useState({});
18183
+ console.log(countryCodeAllowed);
18183
18184
  useEffect(() => {
18184
18185
  if (countryCodeAllowed && (geolocation == null ? void 0 : geolocation.data_connection.isocode)) {
18185
18186
  if (countryCodeAllowed.length !== 0 && !countryCodeAllowed.some((item) => item.value === (geolocation == null ? void 0 : geolocation.data_connection.isocode))) {
@@ -18202,7 +18203,7 @@ const BlackListController = (dataBlackList, clientId, authorize, inProduction, s
18202
18203
  setIsLoading(false);
18203
18204
  setCsvFile(null);
18204
18205
  setBatchData({});
18205
- dataBlackList([]);
18206
+ dataBulkVerification([]);
18206
18207
  };
18207
18208
  const schema = create({
18208
18209
  first_name: create$1().required("Este campo es requerido."),
@@ -18296,7 +18297,7 @@ const BlackListController = (dataBlackList, clientId, authorize, inProduction, s
18296
18297
  } else {
18297
18298
  setMessage(successMessage ? successMessage : message2);
18298
18299
  }
18299
- await dataBlackList(match2);
18300
+ await dataBulkVerification(match2);
18300
18301
  setStatus(status2);
18301
18302
  } catch (error) {
18302
18303
  let message2 = "";
@@ -38812,6 +38813,9 @@ function BlackList({
38812
38813
  } = BlackListController(dataBlackList, clientId, authorize, inProduction, source2, eventId, countryCodeAllowed, validateVpn, successMessage, alertMessage);
38813
38814
  return /* @__PURE__ */ jsxs("div", {
38814
38815
  className: `kit-gbc ${mode}`,
38816
+ style: {
38817
+ padding: "16px"
38818
+ },
38815
38819
  children: [/* @__PURE__ */ jsx$1(k$2, {
38816
38820
  position: "top-center",
38817
38821
  autoClose: 5e3,
@@ -39071,6 +39075,9 @@ const DocumentReaderController = (dataDocument, clientId, authorize, eventId, so
39071
39075
  aspectRatio: {
39072
39076
  ideal: isPortrait ? 16 / 9 : 9 / 16
39073
39077
  },
39078
+ advanced: [{
39079
+ focusMode: "continuous"
39080
+ }],
39074
39081
  facingMode: "environment"
39075
39082
  }), [isPortrait]);
39076
39083
  useEffect(() => {
@@ -39128,6 +39135,7 @@ function UploadDocument({
39128
39135
  children: [activateCamera && /* @__PURE__ */ jsx$1(Webcam2, {
39129
39136
  ref: webcamRef,
39130
39137
  videoConstraints,
39138
+ screenshotFormat: "image/jpeg",
39131
39139
  forceScreenshotSourceSize: true,
39132
39140
  audio: false,
39133
39141
  style: {
@@ -39266,6 +39274,7 @@ function SideDocsSelector({
39266
39274
  },
39267
39275
  children: [/* @__PURE__ */ jsx$1("img", {
39268
39276
  src: base64.firstImage,
39277
+ onClick: toggleZoom,
39269
39278
  alt: "thumbnail",
39270
39279
  style: {
39271
39280
  width: "100%",
@@ -39370,6 +39379,7 @@ function SideDocsSelector({
39370
39379
  },
39371
39380
  children: [/* @__PURE__ */ jsx$1("img", {
39372
39381
  src: base64.secondImage,
39382
+ onClick: toggleZoom,
39373
39383
  alt: "thumbnail",
39374
39384
  style: {
39375
39385
  width: "100%",
@@ -40154,6 +40164,9 @@ function FaceMatch({
40154
40164
  };
40155
40165
  return /* @__PURE__ */ jsxs("div", {
40156
40166
  className: `kit-gbc ${mode}`,
40167
+ style: {
40168
+ padding: "16px"
40169
+ },
40157
40170
  children: [/* @__PURE__ */ jsx$1(k$2, {
40158
40171
  position: "top-center",
40159
40172
  autoClose: 5e3,
@@ -57883,6 +57896,9 @@ function BulkVerification({
57883
57896
  } = BlackListController(clientId, authorize, inProduction, source2, eventId, countryCodeAllowed, validateVpn, successMessage, alertMessage, dataBulkVerification);
57884
57897
  return /* @__PURE__ */ jsxs("div", {
57885
57898
  className: `kit-gbc ${mode}`,
57899
+ style: {
57900
+ padding: "16px"
57901
+ },
57886
57902
  children: [/* @__PURE__ */ jsx$1(k$2, {
57887
57903
  position: "top-center",
57888
57904
  autoClose: 5e3,