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.
- package/dist/gbc-kyc-kit.es.js +20 -28
- package/dist/gbc-kyc-kit.umd.js +32 -32
- package/package.json +2 -2
package/dist/gbc-kyc-kit.es.js
CHANGED
|
@@ -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__ */
|
|
21780
|
-
|
|
21781
|
-
|
|
21782
|
-
|
|
21783
|
-
|
|
21784
|
-
|
|
21785
|
-
|
|
21786
|
-
|
|
21787
|
-
|
|
21788
|
-
|
|
21789
|
-
|
|
21790
|
-
|
|
21791
|
-
|
|
21792
|
-
|
|
21793
|
-
|
|
21794
|
-
|
|
21795
|
-
|
|
21796
|
-
|
|
21797
|
-
|
|
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 = {
|