gbc-kyc-kit 1.2.4 → 1.2.6

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.
@@ -20348,7 +20348,6 @@ const DocumentReaderController = (dataDocument, clientId, authorize, inProductio
20348
20348
  setMessage("Documento verificado con \xE9xito");
20349
20349
  } catch (error) {
20350
20350
  let message2 = "";
20351
- console.log(error);
20352
20351
  const {
20353
20352
  status: status2
20354
20353
  } = error.response;
@@ -20541,7 +20540,6 @@ const LivenessCheckController = (clientId, authorize, inProduction) => {
20541
20540
  const [status, setStatus] = useState(clientId === void 0 ? "CLIENTID" : authorize === void 0 ? "TOKEN" : "");
20542
20541
  const [message, setMessage] = useState("");
20543
20542
  const listener = (event) => {
20544
- console.log(event.detail);
20545
20543
  if (event.detail) {
20546
20544
  if (event.detail.action === "PROCESS_FINISHED") {
20547
20545
  const {
@@ -20588,7 +20586,6 @@ const LivenessCheckController = (clientId, authorize, inProduction) => {
20588
20586
  const res2 = await request2(parseReq);
20589
20587
  } catch (error) {
20590
20588
  let message2 = "";
20591
- console.log(error);
20592
20589
  const {
20593
20590
  status: status2
20594
20591
  } = error.response;
@@ -21776,31 +21773,26 @@ function LivenessCheck({
21776
21773
  component.addEventListener("face-liveness", listener);
21777
21774
  }
21778
21775
  }, []);
21779
- return /* @__PURE__ */ jsxs("div", {
21780
- id: "liveness-check",
21781
- className: `kit-gbc liveness-container ${mode}`,
21782
- children: [/* @__PURE__ */ jsx(k$1, {
21783
- position: "top-center",
21784
- autoClose: 5e3,
21785
- hideProgressBar: false,
21786
- newestOnTop: false,
21787
- closeOnClick: true,
21788
- rtl: false,
21789
- pauseOnFocusLoss: true,
21790
- draggable: true,
21791
- pauseOnHover: true
21792
- }), isLoading && /* @__PURE__ */ jsx(BackDropLoader, {}), !lib$1(status) ? /* @__PURE__ */ jsx("div", {
21793
- className: "sub",
21794
- children: /* @__PURE__ */ jsx(StatusComponent, {
21795
- status,
21796
- message,
21797
- clearState
21798
- })
21799
- }) : /* @__PURE__ */ jsx("face-liveness", {
21800
- locale: "es",
21801
- class: "liveness",
21802
- url: "https://regula.globalbridgeconnections.com.py/face-sdk"
21803
- })]
21776
+ return /* @__PURE__ */ jsx("div", {
21777
+ className: `kit-gbc liveness-container ${mode} ${status === "NOT_VERIFY" && "error"}`,
21778
+ children: /* @__PURE__ */ jsxs("div", {
21779
+ id: "liveness-check",
21780
+ children: [/* @__PURE__ */ jsx(k$1, {
21781
+ position: "top-center",
21782
+ autoClose: 5e3,
21783
+ hideProgressBar: false,
21784
+ newestOnTop: false,
21785
+ closeOnClick: true,
21786
+ rtl: false,
21787
+ pauseOnFocusLoss: true,
21788
+ draggable: true,
21789
+ pauseOnHover: true
21790
+ }), isLoading && /* @__PURE__ */ jsx(BackDropLoader, {}), /* @__PURE__ */ jsx("face-liveness", {
21791
+ locale: "es",
21792
+ class: "liveness",
21793
+ url: "https://regula.globalbridgeconnections.com.py/face-sdk"
21794
+ })]
21795
+ })
21804
21796
  });
21805
21797
  }
21806
21798
  LivenessCheck.defaultProps = {