@credithub/harlan-components 1.16.0 → 1.16.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/lib/cjs/index.js
CHANGED
|
@@ -47542,17 +47542,17 @@ var __makeTemplateObject$4 = (undefined && undefined.__makeTemplateObject) || fu
|
|
|
47542
47542
|
};
|
|
47543
47543
|
var Content = styled.div(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject$4(["\n display: ", ";\n"], ["\n display: ", ";\n"])), function (props) { return (props.isOpen ? "block" : "none"); });
|
|
47544
47544
|
var ChartSystem = function (_a) {
|
|
47545
|
-
var _b, _c, _d;
|
|
47545
|
+
var _b, _c, _d, _e, _f;
|
|
47546
47546
|
var documento = _a.documento;
|
|
47547
|
-
var
|
|
47547
|
+
var _g = useChartData(documento), data = _g.data, isLoading = _g.isLoading, error = _g.error;
|
|
47548
47548
|
var errorMessage = typeof error === "string" ? error : error === null || error === void 0 ? void 0 : error.toString();
|
|
47549
|
-
var
|
|
47549
|
+
var _h = useToggle(true), isOpen = _h[0], toggleOpen = _h[1];
|
|
47550
47550
|
var ultimaOcorrenciaCCF = useUltimaOcorrenciaCCF();
|
|
47551
47551
|
var quantidadeProtestos = ((_c = (_b = data === null || data === void 0 ? void 0 : data.protestos) === null || _b === void 0 ? void 0 : _b[(data === null || data === void 0 ? void 0 : data.protestos.length) - 1]) === null || _c === void 0 ? void 0 : _c.quantidade) || 0;
|
|
47552
|
-
var valorTotalProtestos =
|
|
47553
|
-
var
|
|
47554
|
-
var
|
|
47555
|
-
var
|
|
47552
|
+
var valorTotalProtestos = ((_e = (_d = data === null || data === void 0 ? void 0 : data.protestos) === null || _d === void 0 ? void 0 : _d[(data === null || data === void 0 ? void 0 : data.protestos.length) - 1]) === null || _e === void 0 ? void 0 : _e.valorTotal) || 0;
|
|
47553
|
+
var _j = useDividasPublicas(), quantidadeDividas = _j.quantidade, valorTotalDividas = _j.valorTotal;
|
|
47554
|
+
var _k = useCalculation((data === null || data === void 0 ? void 0 : data.serasa) || []), quantidadeSerasa = _k.quantidade, valorTotalSerasa = _k.valorTotal;
|
|
47555
|
+
var _l = useCalculation((data === null || data === void 0 ? void 0 : data.boaVista) || []), quantidadeBoaVista = _l.quantidade, valorTotalBoaVista = _l.valorTotal;
|
|
47556
47556
|
var quantidadeCCFs = useCalculation((data === null || data === void 0 ? void 0 : data.ccfs) || []).quantidade;
|
|
47557
47557
|
var ultimaOcorrenciaProtestos = "";
|
|
47558
47558
|
if ((data === null || data === void 0 ? void 0 : data.protestos) && data.protestos.length > 0) {
|
|
@@ -47563,7 +47563,7 @@ var ChartSystem = function (_a) {
|
|
|
47563
47563
|
React.createElement(Result, null,
|
|
47564
47564
|
React.createElement(Content, { isOpen: isOpen },
|
|
47565
47565
|
data && React.createElement(ChartContent, { dataInput: data }),
|
|
47566
|
-
!isLoading && (React.createElement(QuantidadeResultados, { quantidadeProtestos: quantidadeProtestos, quantidadeProcessos: (
|
|
47566
|
+
!isLoading && (React.createElement(QuantidadeResultados, { quantidadeProtestos: quantidadeProtestos, quantidadeProcessos: (_f = data === null || data === void 0 ? void 0 : data.pieChartTotalConfig) === null || _f === void 0 ? void 0 : _f.processosJuridicos, quantidadeDividas: quantidadeDividas, quantidadeDividasSerasa: quantidadeSerasa, quantidadeDividasBoaVista: quantidadeBoaVista, quantidadeChequesSemFundos: quantidadeCCFs, ultimaOcorrenciaChequesSemFundos: ultimaOcorrenciaCCF, valorTotalDividasSerasa: valorTotalSerasa, valorTotalDividasBoaVista: valorTotalBoaVista, valorTotalProtestos: valorTotalProtestos, valorTotalDividas: valorTotalDividas, ultimaOcorrenciaProtestos: ultimaOcorrenciaProtestos }))))));
|
|
47567
47567
|
};
|
|
47568
47568
|
var templateObject_1$4;
|
|
47569
47569
|
|
|
@@ -18,17 +18,17 @@ import { Result } from "../interface/result";
|
|
|
18
18
|
import ResumoDeNegativacoesIcon from "../../assets/icones/resumoNegativacoes";
|
|
19
19
|
var Content = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: ", ";\n"], ["\n display: ", ";\n"])), function (props) { return (props.isOpen ? "block" : "none"); });
|
|
20
20
|
var ChartSystem = function (_a) {
|
|
21
|
-
var _b, _c, _d;
|
|
21
|
+
var _b, _c, _d, _e, _f;
|
|
22
22
|
var documento = _a.documento;
|
|
23
|
-
var
|
|
23
|
+
var _g = useChartData(documento), data = _g.data, isLoading = _g.isLoading, error = _g.error;
|
|
24
24
|
var errorMessage = typeof error === "string" ? error : error === null || error === void 0 ? void 0 : error.toString();
|
|
25
|
-
var
|
|
25
|
+
var _h = useToggle(true), isOpen = _h[0], toggleOpen = _h[1];
|
|
26
26
|
var ultimaOcorrenciaCCF = useUltimaOcorrenciaCCF();
|
|
27
27
|
var quantidadeProtestos = ((_c = (_b = data === null || data === void 0 ? void 0 : data.protestos) === null || _b === void 0 ? void 0 : _b[(data === null || data === void 0 ? void 0 : data.protestos.length) - 1]) === null || _c === void 0 ? void 0 : _c.quantidade) || 0;
|
|
28
|
-
var valorTotalProtestos =
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
var
|
|
28
|
+
var valorTotalProtestos = ((_e = (_d = data === null || data === void 0 ? void 0 : data.protestos) === null || _d === void 0 ? void 0 : _d[(data === null || data === void 0 ? void 0 : data.protestos.length) - 1]) === null || _e === void 0 ? void 0 : _e.valorTotal) || 0;
|
|
29
|
+
var _j = useDividasPublicas(), quantidadeDividas = _j.quantidade, valorTotalDividas = _j.valorTotal;
|
|
30
|
+
var _k = useCalculation((data === null || data === void 0 ? void 0 : data.serasa) || []), quantidadeSerasa = _k.quantidade, valorTotalSerasa = _k.valorTotal;
|
|
31
|
+
var _l = useCalculation((data === null || data === void 0 ? void 0 : data.boaVista) || []), quantidadeBoaVista = _l.quantidade, valorTotalBoaVista = _l.valorTotal;
|
|
32
32
|
var quantidadeCCFs = useCalculation((data === null || data === void 0 ? void 0 : data.ccfs) || []).quantidade;
|
|
33
33
|
var ultimaOcorrenciaProtestos = "";
|
|
34
34
|
if ((data === null || data === void 0 ? void 0 : data.protestos) && data.protestos.length > 0) {
|
|
@@ -39,7 +39,7 @@ var ChartSystem = function (_a) {
|
|
|
39
39
|
React.createElement(Result, null,
|
|
40
40
|
React.createElement(Content, { isOpen: isOpen },
|
|
41
41
|
data && React.createElement(ChartContent, { dataInput: data }),
|
|
42
|
-
!isLoading && (React.createElement(QuantidadeResultados, { quantidadeProtestos: quantidadeProtestos, quantidadeProcessos: (
|
|
42
|
+
!isLoading && (React.createElement(QuantidadeResultados, { quantidadeProtestos: quantidadeProtestos, quantidadeProcessos: (_f = data === null || data === void 0 ? void 0 : data.pieChartTotalConfig) === null || _f === void 0 ? void 0 : _f.processosJuridicos, quantidadeDividas: quantidadeDividas, quantidadeDividasSerasa: quantidadeSerasa, quantidadeDividasBoaVista: quantidadeBoaVista, quantidadeChequesSemFundos: quantidadeCCFs, ultimaOcorrenciaChequesSemFundos: ultimaOcorrenciaCCF, valorTotalDividasSerasa: valorTotalSerasa, valorTotalDividasBoaVista: valorTotalBoaVista, valorTotalProtestos: valorTotalProtestos, valorTotalDividas: valorTotalDividas, ultimaOcorrenciaProtestos: ultimaOcorrenciaProtestos }))))));
|
|
43
43
|
};
|
|
44
44
|
export default ChartSystem;
|
|
45
45
|
var templateObject_1;
|