gbc-kyc-kit 1.5.9 → 1.6.1
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 +18 -17
- package/dist/gbc-kyc-kit.umd.js +33 -33
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/gbc-kyc-kit.es.js
CHANGED
|
@@ -25438,6 +25438,7 @@ const DocumentReaderController = (dataDocument, clientId, authorize, inProductio
|
|
|
25438
25438
|
}, [geolocation, countryCodeAllowed]);
|
|
25439
25439
|
const clearState = () => {
|
|
25440
25440
|
setDocImage({});
|
|
25441
|
+
setDualMode(false);
|
|
25441
25442
|
setBase64({});
|
|
25442
25443
|
setStatus("");
|
|
25443
25444
|
setMessage("");
|
|
@@ -25568,7 +25569,7 @@ function CustomCheckbox({
|
|
|
25568
25569
|
className: "checkbox",
|
|
25569
25570
|
children: /* @__PURE__ */ jsx(FormControlLabel$1, {
|
|
25570
25571
|
control: /* @__PURE__ */ jsx(Checkbox$1, {
|
|
25571
|
-
|
|
25572
|
+
checked: isActive,
|
|
25572
25573
|
color: "primary",
|
|
25573
25574
|
onChange
|
|
25574
25575
|
}),
|
|
@@ -25673,7 +25674,10 @@ function DocumentReader({
|
|
|
25673
25674
|
}), /* @__PURE__ */ jsxs(Box$1, {
|
|
25674
25675
|
width: "100%",
|
|
25675
25676
|
children: [!status && /* @__PURE__ */ jsxs(Box$1, {
|
|
25676
|
-
mx:
|
|
25677
|
+
mx: {
|
|
25678
|
+
xs: 0,
|
|
25679
|
+
sm: 3
|
|
25680
|
+
},
|
|
25677
25681
|
children: [/* @__PURE__ */ jsx(CustomCheckbox, {
|
|
25678
25682
|
label: "Cargar reverso del documento",
|
|
25679
25683
|
isActive: dualMode,
|
|
@@ -25682,22 +25686,19 @@ function DocumentReader({
|
|
|
25682
25686
|
type: "submit",
|
|
25683
25687
|
children: "Procesar"
|
|
25684
25688
|
})]
|
|
25685
|
-
}),
|
|
25686
|
-
|
|
25687
|
-
|
|
25688
|
-
|
|
25689
|
-
|
|
25690
|
-
|
|
25691
|
-
|
|
25692
|
-
|
|
25693
|
-
|
|
25694
|
-
|
|
25695
|
-
|
|
25696
|
-
children: /* @__PURE__ */ jsx(CustomButton, {
|
|
25697
|
-
onClick: () => clearState(),
|
|
25698
|
-
children: "Volver a cargar la foto frontal"
|
|
25689
|
+
}), docImage.firstImage && dualMode && !status && docImage.secondImage || !dualMode && !status && docImage.secondImage ? /* @__PURE__ */ jsx(Box$1, {
|
|
25690
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
25691
|
+
className: "both-button",
|
|
25692
|
+
children: [/* @__PURE__ */ jsx(CustomButton, {
|
|
25693
|
+
type: "warning",
|
|
25694
|
+
onClick: () => clearState(),
|
|
25695
|
+
children: "Volver"
|
|
25696
|
+
}), /* @__PURE__ */ jsx(CustomButton, {
|
|
25697
|
+
type: "submit",
|
|
25698
|
+
children: "Procesar"
|
|
25699
|
+
})]
|
|
25699
25700
|
})
|
|
25700
|
-
})
|
|
25701
|
+
}) : null]
|
|
25701
25702
|
})]
|
|
25702
25703
|
})
|
|
25703
25704
|
})]
|