@credithub/harlan-components 1.1.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/README.md +44 -0
- package/lib/cjs/components/adresses/adresses.d.ts +18 -0
- package/lib/cjs/components/adresses/adresses.js +68 -0
- package/lib/cjs/components/adresses/getGeocode.d.ts +6 -0
- package/lib/cjs/components/adresses/getGeocode.js +74 -0
- package/lib/cjs/components/adresses/map.d.ts +11 -0
- package/lib/cjs/components/adresses/map.js +50 -0
- package/lib/cjs/components/bank-accounts/bank-accounts.d.ts +3 -0
- package/lib/cjs/components/bank-accounts/bank-accounts.js +28 -0
- package/lib/cjs/components/ccf/ccf.d.ts +6 -0
- package/lib/cjs/components/ccf/ccf.js +31 -0
- package/lib/cjs/components/ccf/ccfList.d.ts +13 -0
- package/lib/cjs/components/ccf/ccfList.js +46 -0
- package/lib/cjs/components/common/addItem.d.ts +11 -0
- package/lib/cjs/components/common/addItem.js +40 -0
- package/lib/cjs/components/common/button.d.ts +5 -0
- package/lib/cjs/components/common/button.js +15 -0
- package/lib/cjs/components/common/carousel.d.ts +4 -0
- package/lib/cjs/components/common/carousel.js +24 -0
- package/lib/cjs/components/common/headerAction.d.ts +9 -0
- package/lib/cjs/components/common/headerAction.js +15 -0
- package/lib/cjs/components/contacts/contacts.d.ts +14 -0
- package/lib/cjs/components/contacts/contacts.js +68 -0
- package/lib/cjs/components/contacts/contactsLikeDislike.d.ts +9 -0
- package/lib/cjs/components/contacts/contactsLikeDislike.js +14 -0
- package/lib/cjs/components/contacts/thumbsButton.d.ts +10 -0
- package/lib/cjs/components/contacts/thumbsButton.js +22 -0
- package/lib/cjs/components/dossie/carrousel/carrousel.d.ts +8 -0
- package/lib/cjs/components/dossie/carrousel/carrousel.js +15 -0
- package/lib/cjs/components/dossie/companyLogo/companyLogo.d.ts +7 -0
- package/lib/cjs/components/dossie/companyLogo/companyLogo.js +19 -0
- package/lib/cjs/components/dossie/dossie.d.ts +35 -0
- package/lib/cjs/components/dossie/dossie.js +66 -0
- package/lib/cjs/components/dossie/summary/summary.d.ts +17 -0
- package/lib/cjs/components/dossie/summary/summary.js +187 -0
- package/lib/cjs/components/dossie/transactionTable/transactionTable.d.ts +6 -0
- package/lib/cjs/components/dossie/transactionTable/transactionTable.js +39 -0
- package/lib/cjs/components/interface/header.d.ts +16 -0
- package/lib/cjs/components/interface/header.js +56 -0
- package/lib/cjs/components/interface/result.d.ts +7 -0
- package/lib/cjs/components/interface/result.js +38 -0
- package/lib/cjs/components/interface/section.d.ts +14 -0
- package/lib/cjs/components/interface/section.js +45 -0
- package/lib/cjs/components/partners/partnerField.d.ts +9 -0
- package/lib/cjs/components/partners/partnerField.js +14 -0
- package/lib/cjs/components/partners/partnerList.d.ts +16 -0
- package/lib/cjs/components/partners/partnerList.js +43 -0
- package/lib/cjs/components/partners/partners.d.ts +3 -0
- package/lib/cjs/components/partners/partners.js +55 -0
- package/lib/cjs/components/processos-juridicos/envolvidosList.d.ts +9 -0
- package/lib/cjs/components/processos-juridicos/envolvidosList.js +22 -0
- package/lib/cjs/components/processos-juridicos/processosJuridicos.d.ts +7 -0
- package/lib/cjs/components/processos-juridicos/processosJuridicos.js +24 -0
- package/lib/cjs/components/processos-juridicos/processosJuridicosList.d.ts +15 -0
- package/lib/cjs/components/processos-juridicos/processosJuridicosList.js +52 -0
- package/lib/cjs/components/protestos/protestos.d.ts +3 -0
- package/lib/cjs/components/protestos/protestos.js +69 -0
- package/lib/cjs/components/protestos/protestosCategory.d.ts +7 -0
- package/lib/cjs/components/protestos/protestosCategory.js +21 -0
- package/lib/cjs/components/protestos/protestosList.d.ts +33 -0
- package/lib/cjs/components/protestos/protestosList.js +73 -0
- package/lib/cjs/components/reclameAqui/reclameAquiCarousel.d.ts +26 -0
- package/lib/cjs/components/reclameAqui/reclameAquiCarousel.js +64 -0
- package/lib/cjs/components/resultWithoutInformation/ResultWithoutInformation.d.ts +4 -0
- package/lib/cjs/components/resultWithoutInformation/ResultWithoutInformation.js +37 -0
- package/lib/cjs/components/webservice.d.ts +67 -0
- package/lib/cjs/components/webservice.js +150 -0
- package/lib/cjs/constants/regex.d.ts +2 -0
- package/lib/cjs/constants/regex.js +5 -0
- package/lib/cjs/hooks/useToggle.d.ts +10 -0
- package/lib/cjs/hooks/useToggle.js +26 -0
- package/lib/cjs/index.d.ts +12 -0
- package/lib/cjs/index.js +43 -0
- package/lib/cjs/mock/dossie.d.ts +207 -0
- package/lib/cjs/mock/dossie.js +630 -0
- package/lib/cjs/utils/number.d.ts +1 -0
- package/lib/cjs/utils/number.js +10 -0
- package/lib/cjs/utils/string.d.ts +3 -0
- package/lib/cjs/utils/string.js +22 -0
- package/lib/cjs/utils/xpath.d.ts +4 -0
- package/lib/cjs/utils/xpath.js +12 -0
- package/lib/esm/components/adresses/adresses.d.ts +18 -0
- package/lib/esm/components/adresses/adresses.js +40 -0
- package/lib/esm/components/adresses/getGeocode.d.ts +6 -0
- package/lib/esm/components/adresses/getGeocode.js +67 -0
- package/lib/esm/components/adresses/map.d.ts +11 -0
- package/lib/esm/components/adresses/map.js +25 -0
- package/lib/esm/components/bank-accounts/bank-accounts.d.ts +3 -0
- package/lib/esm/components/bank-accounts/bank-accounts.js +23 -0
- package/lib/esm/components/ccf/ccf.d.ts +6 -0
- package/lib/esm/components/ccf/ccf.js +26 -0
- package/lib/esm/components/ccf/ccfList.d.ts +13 -0
- package/lib/esm/components/ccf/ccfList.js +18 -0
- package/lib/esm/components/common/addItem.d.ts +11 -0
- package/lib/esm/components/common/addItem.js +35 -0
- package/lib/esm/components/common/button.d.ts +5 -0
- package/lib/esm/components/common/button.js +10 -0
- package/lib/esm/components/common/carousel.d.ts +4 -0
- package/lib/esm/components/common/carousel.js +19 -0
- package/lib/esm/components/common/headerAction.d.ts +9 -0
- package/lib/esm/components/common/headerAction.js +10 -0
- package/lib/esm/components/contacts/contacts.d.ts +14 -0
- package/lib/esm/components/contacts/contacts.js +40 -0
- package/lib/esm/components/contacts/contactsLikeDislike.d.ts +9 -0
- package/lib/esm/components/contacts/contactsLikeDislike.js +9 -0
- package/lib/esm/components/contacts/thumbsButton.d.ts +10 -0
- package/lib/esm/components/contacts/thumbsButton.js +17 -0
- package/lib/esm/components/dossie/carrousel/carrousel.d.ts +8 -0
- package/lib/esm/components/dossie/carrousel/carrousel.js +8 -0
- package/lib/esm/components/dossie/companyLogo/companyLogo.d.ts +7 -0
- package/lib/esm/components/dossie/companyLogo/companyLogo.js +14 -0
- package/lib/esm/components/dossie/dossie.d.ts +35 -0
- package/lib/esm/components/dossie/dossie.js +38 -0
- package/lib/esm/components/dossie/summary/summary.d.ts +17 -0
- package/lib/esm/components/dossie/summary/summary.js +180 -0
- package/lib/esm/components/dossie/transactionTable/transactionTable.d.ts +6 -0
- package/lib/esm/components/dossie/transactionTable/transactionTable.js +32 -0
- package/lib/esm/components/interface/header.d.ts +16 -0
- package/lib/esm/components/interface/header.js +51 -0
- package/lib/esm/components/interface/result.d.ts +7 -0
- package/lib/esm/components/interface/result.js +31 -0
- package/lib/esm/components/interface/section.d.ts +14 -0
- package/lib/esm/components/interface/section.js +40 -0
- package/lib/esm/components/partners/partnerField.d.ts +9 -0
- package/lib/esm/components/partners/partnerField.js +9 -0
- package/lib/esm/components/partners/partnerList.d.ts +16 -0
- package/lib/esm/components/partners/partnerList.js +15 -0
- package/lib/esm/components/partners/partners.d.ts +3 -0
- package/lib/esm/components/partners/partners.js +27 -0
- package/lib/esm/components/processos-juridicos/envolvidosList.d.ts +9 -0
- package/lib/esm/components/processos-juridicos/envolvidosList.js +17 -0
- package/lib/esm/components/processos-juridicos/processosJuridicos.d.ts +7 -0
- package/lib/esm/components/processos-juridicos/processosJuridicos.js +19 -0
- package/lib/esm/components/processos-juridicos/processosJuridicosList.d.ts +15 -0
- package/lib/esm/components/processos-juridicos/processosJuridicosList.js +24 -0
- package/lib/esm/components/protestos/protestos.d.ts +3 -0
- package/lib/esm/components/protestos/protestos.js +41 -0
- package/lib/esm/components/protestos/protestosCategory.d.ts +7 -0
- package/lib/esm/components/protestos/protestosCategory.js +16 -0
- package/lib/esm/components/protestos/protestosList.d.ts +33 -0
- package/lib/esm/components/protestos/protestosList.js +43 -0
- package/lib/esm/components/reclameAqui/reclameAquiCarousel.d.ts +26 -0
- package/lib/esm/components/reclameAqui/reclameAquiCarousel.js +57 -0
- package/lib/esm/components/resultWithoutInformation/ResultWithoutInformation.d.ts +4 -0
- package/lib/esm/components/resultWithoutInformation/ResultWithoutInformation.js +32 -0
- package/lib/esm/components/webservice.d.ts +67 -0
- package/lib/esm/components/webservice.js +119 -0
- package/lib/esm/constants/regex.d.ts +2 -0
- package/lib/esm/constants/regex.js +2 -0
- package/lib/esm/hooks/useToggle.d.ts +10 -0
- package/lib/esm/hooks/useToggle.js +24 -0
- package/lib/esm/index.d.ts +12 -0
- package/lib/esm/index.js +12 -0
- package/lib/esm/mock/dossie.d.ts +207 -0
- package/lib/esm/mock/dossie.js +628 -0
- package/lib/esm/utils/number.d.ts +1 -0
- package/lib/esm/utils/number.js +6 -0
- package/lib/esm/utils/string.d.ts +3 -0
- package/lib/esm/utils/string.js +16 -0
- package/lib/esm/utils/xpath.d.ts +4 -0
- package/lib/esm/utils/xpath.js +10 -0
- package/package.json +79 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type CardsAndProducts = {
|
|
3
|
+
cards: {
|
|
4
|
+
type?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
header?: string;
|
|
7
|
+
}[];
|
|
8
|
+
products: {
|
|
9
|
+
title: string;
|
|
10
|
+
price: number;
|
|
11
|
+
}[];
|
|
12
|
+
};
|
|
13
|
+
interface SummaryProps {
|
|
14
|
+
finderResponse: Document;
|
|
15
|
+
}
|
|
16
|
+
export declare const Summary: React.FC<SummaryProps>;
|
|
17
|
+
export default Summary;
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import cn from "classnames";
|
|
3
|
+
import AddItemField from "../../../components/common/addItem";
|
|
4
|
+
import XPathUtils from "../../../utils/xpath";
|
|
5
|
+
import Button from "../../../components/common/button";
|
|
6
|
+
import { formatCnpj, formatCpf } from "../../../utils/string";
|
|
7
|
+
import { formatMoney } from "../../../utils/number";
|
|
8
|
+
export var Summary = function (_a) {
|
|
9
|
+
var finderResponse = _a.finderResponse;
|
|
10
|
+
var getField = function (path, formatter) {
|
|
11
|
+
var value = XPathUtils.select("string(".concat(path, ")"), XPathUtils.select('//cadastro', finderResponse)[0]);
|
|
12
|
+
return formatter ? formatter(value) : value;
|
|
13
|
+
};
|
|
14
|
+
var isPF = !!getField('cpf');
|
|
15
|
+
var _b = {
|
|
16
|
+
cards: [{
|
|
17
|
+
title: getField('nome'),
|
|
18
|
+
header: "Nome",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
title: getField('cpf', formatCpf),
|
|
22
|
+
header: "Cpf",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
title: getField('sexo', function (value) { return isPF && (value == 'M' ? 'Masculino' : 'Feminino') || ''; }),
|
|
26
|
+
header: "Sexo",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
title: getField('dataNascimento'),
|
|
30
|
+
header: "Data De Nascimento",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
title: getField('idade'),
|
|
34
|
+
header: "Idade"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
title: isPF && getField('faixaIdade'),
|
|
38
|
+
header: "Faixa De Idade"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
title: getField('signo'),
|
|
42
|
+
header: "Signo"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
title: getField('rg'),
|
|
46
|
+
header: "Rg"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
title: getField('ufRg'),
|
|
50
|
+
header: "Uf Do Rg"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
title: getField('status'),
|
|
54
|
+
header: "Situação"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
title: getField('statusData'),
|
|
58
|
+
header: "Data Da Situação"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
title: getField('maeNome'),
|
|
62
|
+
header: "Nome Da Mãe"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
title: getField('maeCpf'),
|
|
66
|
+
header: "Cpf Da Mãe"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
title: getField('obitoProvavel'),
|
|
70
|
+
header: "Óbito Provável"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
title: getField('tituloEleitoral'),
|
|
74
|
+
header: "Titulo Eleitoral"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
title: getField('grauInstrucao'),
|
|
78
|
+
header: "Grau De Instrução"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
title: getField('dependentes'),
|
|
82
|
+
header: "Dependentes"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
title: getField('estadoCivil'),
|
|
86
|
+
header: "Estado Civil"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
title: getField('renda', formatMoney),
|
|
90
|
+
header: "Renda"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
title: getField('ppe', function (value) { return isPF && (value ? 'Sim' : 'Não') || ''; }),
|
|
94
|
+
header: "Pessoa Politicamente Exposta"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
title: getField('nomeFantasia'),
|
|
98
|
+
header: "Nome Fantasia",
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
title: formatCnpj(getField('cnpj')),
|
|
102
|
+
header: "Cnpj",
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
title: getField('receitaStatus'),
|
|
106
|
+
header: "Status da Receita",
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
title: getField('dataReceitaStatus'),
|
|
110
|
+
header: "Data do Status na Receita",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
title: getField('tipoEmpresa'),
|
|
114
|
+
header: "Tipo da Empresa"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
title: getField('cnaeDescricao'),
|
|
118
|
+
header: "Atividade Econômica",
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
title: getField('naturezaJuridica'),
|
|
122
|
+
header: 'Natureza Jurídica',
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
title: getField('dataAbertura'),
|
|
126
|
+
header: "Data De Abertura",
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
title: getField('idadeEmpresa'),
|
|
130
|
+
header: "Idade Da Empresa",
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
title: isPF && getField('faixaIdade'),
|
|
134
|
+
header: "Faixa De Idade da Empresa"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
title: getField('quantidadeFuncionarios'),
|
|
138
|
+
header: "Quantidade De Funcionários",
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
title: getField('faixaFuncionarios'),
|
|
142
|
+
header: "Faixa De Funcionários",
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
title: getField('porteEmpresa'),
|
|
146
|
+
header: "Porte Da Empresa",
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
title: getField('capitalSocial', formatMoney),
|
|
150
|
+
header: "Capital Social",
|
|
151
|
+
},].filter(function (card) { return card.title; }),
|
|
152
|
+
products: [{
|
|
153
|
+
title: "Consultar SCR",
|
|
154
|
+
price: 7.0,
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
title: "Consultar Veículos",
|
|
158
|
+
price: 7.0,
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
title: "Consultar Pefin/refin Boa Vista",
|
|
162
|
+
price: 7.0,
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
title: "Consultar Score Boa Vista",
|
|
166
|
+
price: 7.0,
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
title: "Consultar Pefin/refin Boa Serasa",
|
|
170
|
+
price: 7.0,
|
|
171
|
+
},
|
|
172
|
+
],
|
|
173
|
+
}, cards = _b.cards, products = _b.products;
|
|
174
|
+
return (React.createElement("div", { className: cn("container") },
|
|
175
|
+
React.createElement("div", { className: cn("content", "summary-content") },
|
|
176
|
+
cards.map(function (card, index) { return (React.createElement(AddItemField, { key: index, name: card.header, value: card.title, className: cn("field"), style: { display: "inline-block" } })); }),
|
|
177
|
+
products.map(function (product, index) { return (React.createElement("div", { key: index, className: cn("field", "summary-divider") },
|
|
178
|
+
React.createElement(Button, { price: "R$".concat(product.price) }, product.title))); }))));
|
|
179
|
+
};
|
|
180
|
+
export default Summary;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import cn from "classnames";
|
|
3
|
+
import AddItemField from "../../common/addItem";
|
|
4
|
+
import XPathUtils from "../../../utils/xpath";
|
|
5
|
+
export var TransactionsTable = function (_a) {
|
|
6
|
+
var _b = _a.events, events = _b === void 0 ? [] : _b;
|
|
7
|
+
return (React.createElement("div", null,
|
|
8
|
+
React.createElement("div", { className: cn("container") },
|
|
9
|
+
React.createElement("div", null,
|
|
10
|
+
React.createElement("div", { className: cn("field", "transaction-content-header"
|
|
11
|
+
//"mdl-cell",
|
|
12
|
+
//"mdl-cell--9-col",
|
|
13
|
+
//"transaction-field"
|
|
14
|
+
) },
|
|
15
|
+
React.createElement("span", { className: cn("span", "transaction-span") },
|
|
16
|
+
"Quem Consultou esse Documento?",
|
|
17
|
+
" "),
|
|
18
|
+
React.createElement("span", { className: cn("quantidade-quem-consultou") },
|
|
19
|
+
"(", events === null || events === void 0 ? void 0 :
|
|
20
|
+
events.length,
|
|
21
|
+
" usu\u00E1rios consultaram esse documento)")))),
|
|
22
|
+
events.map(function (event, index) {
|
|
23
|
+
var _a;
|
|
24
|
+
return (React.createElement("div", { key: index, className: cn("container", "container-quem-consultou") },
|
|
25
|
+
React.createElement("div", { className: cn("transaction-content") },
|
|
26
|
+
React.createElement(AddItemField, { name: "Usu\u00E1rio", value: XPathUtils.select('string(./usuario)', event),
|
|
27
|
+
//className={cn("mdl-cell", "mdl-cell--6-col")}
|
|
28
|
+
style: { display: "inline-block" } }),
|
|
29
|
+
React.createElement(AddItemField, { name: "Data", value: (_a = new Date(XPathUtils.select('string(./ultimaConsulta)', event))) === null || _a === void 0 ? void 0 : _a.toLocaleDateString(), style: { display: "inline-block" } }))));
|
|
30
|
+
})));
|
|
31
|
+
};
|
|
32
|
+
export default TransactionsTable;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React, { DetailedHTMLProps, HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
export type HeaderProps = DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement> & {
|
|
3
|
+
title?: ReactNode;
|
|
4
|
+
subtitle?: ReactNode;
|
|
5
|
+
description?: ReactNode;
|
|
6
|
+
actions?: ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
titleClassName?: string;
|
|
9
|
+
subtitleClassName?: string;
|
|
10
|
+
descriptionClassName?: string;
|
|
11
|
+
containerClassName?: string;
|
|
12
|
+
contentClassName?: string;
|
|
13
|
+
actionsClassName?: string;
|
|
14
|
+
};
|
|
15
|
+
declare const Header: React.FC<HeaderProps>;
|
|
16
|
+
export default Header;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import React from "react";
|
|
24
|
+
import classNames from "classnames";
|
|
25
|
+
var Title = function (_a) {
|
|
26
|
+
var title = _a.title, className = _a.className;
|
|
27
|
+
return (React.createElement("h2", { className: classNames("section-title", className), id: "section-title" }, title));
|
|
28
|
+
};
|
|
29
|
+
var Subtitle = function (_a) {
|
|
30
|
+
var subtitle = _a.subtitle, className = _a.className;
|
|
31
|
+
return (subtitle ? React.createElement("h3", { className: classNames(className) }, subtitle) : null);
|
|
32
|
+
};
|
|
33
|
+
var Description = function (_a) {
|
|
34
|
+
var description = _a.description, className = _a.className;
|
|
35
|
+
return description ? (React.createElement("div", { className: classNames("results-display", "section-description", className), id: "section-description" }, description)) : null;
|
|
36
|
+
};
|
|
37
|
+
var Header = function (_a) {
|
|
38
|
+
var title = _a.title, subtitle = _a.subtitle, description = _a.description, actions = _a.actions, className = _a.className, titleClassName = _a.titleClassName, subtitleClassName = _a.subtitleClassName, descriptionClassName = _a.descriptionClassName, containerClassName = _a.containerClassName, contentClassName = _a.contentClassName, actionsClassName = _a.actionsClassName, props = __rest(_a, ["title", "subtitle", "description", "actions", "className", "titleClassName", "subtitleClassName", "descriptionClassName", "containerClassName", "contentClassName", "actionsClassName"]);
|
|
39
|
+
var headerClass = classNames(className);
|
|
40
|
+
var containerClass = classNames("container", containerClassName);
|
|
41
|
+
var contentClass = classNames("content", contentClassName);
|
|
42
|
+
var actionsClass = classNames("actions", actionsClassName);
|
|
43
|
+
return (React.createElement("header", __assign({ className: headerClass }, props),
|
|
44
|
+
React.createElement("div", { className: containerClass },
|
|
45
|
+
React.createElement("div", { className: contentClass },
|
|
46
|
+
actions && React.createElement("ul", { className: actionsClass }, actions),
|
|
47
|
+
title && React.createElement(Title, { title: title, className: titleClassName }),
|
|
48
|
+
subtitle && (React.createElement(Subtitle, { subtitle: subtitle, className: subtitleClassName })),
|
|
49
|
+
description && (React.createElement(Description, { description: description, className: descriptionClassName }))))));
|
|
50
|
+
};
|
|
51
|
+
export default Header;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface ResultProps extends React.PropsWithChildren<React.HTMLProps<HTMLDivElement>> {
|
|
3
|
+
isContainer?: boolean;
|
|
4
|
+
contentClassName?: string;
|
|
5
|
+
contentProps?: React.HTMLProps<HTMLDivElement>;
|
|
6
|
+
}
|
|
7
|
+
export declare const Result: React.FC<ResultProps>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import React from "react";
|
|
24
|
+
import classNames from "classnames";
|
|
25
|
+
export var Result = function (_a) {
|
|
26
|
+
var children = _a.children, isContainer = _a.isContainer, className = _a.className, contentClassName = _a.contentClassName, contentProps = _a.contentProps, divProps = __rest(_a, ["children", "isContainer", "className", "contentClassName", "contentProps"]);
|
|
27
|
+
var combinedClassName = classNames({ result: !isContainer, container: isContainer }, className);
|
|
28
|
+
var combinedContentClassName = classNames("content", contentClassName);
|
|
29
|
+
return !isContainer ? (React.createElement("div", __assign({ className: combinedClassName }, divProps), children)) : (React.createElement("div", __assign({ className: combinedClassName }, divProps),
|
|
30
|
+
React.createElement("div", __assign({ className: combinedContentClassName }, contentProps), children)));
|
|
31
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface SectionProps extends React.PropsWithChildren<{
|
|
3
|
+
title?: string;
|
|
4
|
+
subtitle?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
actions?: React.ReactNode;
|
|
8
|
+
minimized?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
contentClassName?: string;
|
|
11
|
+
}> {
|
|
12
|
+
}
|
|
13
|
+
declare const Section: React.FC<SectionProps>;
|
|
14
|
+
export default Section;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import React from "react";
|
|
24
|
+
import classNames from "classnames";
|
|
25
|
+
import useToggle from "../../hooks/useToggle";
|
|
26
|
+
import Header from "./header";
|
|
27
|
+
import HeaderAction from "../common/headerAction";
|
|
28
|
+
var Section = function (_a) {
|
|
29
|
+
var title = _a.title, subtitle = _a.subtitle, description = _a.description, _b = _a.minimized, minimized = _b === void 0 ? false : _b, onClose = _a.onClose, actions = _a.actions, children = _a.children, className = _a.className, contentClassName = _a.contentClassName, props = __rest(_a, ["title", "subtitle", "description", "minimized", "onClose", "actions", "children", "className", "contentClassName"]);
|
|
30
|
+
var _c = useToggle(!minimized), isOpen = _c[0], toggleOpen = _c[1];
|
|
31
|
+
var sectionClass = classNames("group-type", className);
|
|
32
|
+
var sectionContentClass = classNames("results", contentClassName);
|
|
33
|
+
return (React.createElement("section", __assign({ className: sectionClass }, props),
|
|
34
|
+
React.createElement(Header, { title: title, subtitle: subtitle, description: description, actions: React.createElement(React.Fragment, null,
|
|
35
|
+
React.createElement(HeaderAction, { iconClass: isOpen ? "minus-square-o" : "plus-square-o", onClick: toggleOpen }),
|
|
36
|
+
onClose && (React.createElement(HeaderAction, { iconClass: "times-circle", onClick: onClose })),
|
|
37
|
+
actions) }),
|
|
38
|
+
isOpen && React.createElement("div", { className: sectionContentClass }, children)));
|
|
39
|
+
};
|
|
40
|
+
export default Section;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import AddItemField from "../common/addItem";
|
|
3
|
+
import cn from "classnames";
|
|
4
|
+
var PartnerField = function (_a) {
|
|
5
|
+
var name = _a.name, value = _a.value, onClick = _a.onClick, className = _a.className;
|
|
6
|
+
var combinedClassName = cn(className);
|
|
7
|
+
return (React.createElement(AddItemField, { name: name, value: value, onClick: onClick, className: combinedClassName }));
|
|
8
|
+
};
|
|
9
|
+
export default PartnerField;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type Partner = {
|
|
3
|
+
nome: string;
|
|
4
|
+
cargo?: string;
|
|
5
|
+
cpf?: string;
|
|
6
|
+
cnpj?: string;
|
|
7
|
+
protestos: number;
|
|
8
|
+
receitaStatus: string;
|
|
9
|
+
dividasPublicas: number;
|
|
10
|
+
onClickCpfCnpj?: (doc?: string) => void;
|
|
11
|
+
};
|
|
12
|
+
type PartnerListProps = {
|
|
13
|
+
partners: Partner[];
|
|
14
|
+
};
|
|
15
|
+
declare const PartnerList: React.MemoExoticComponent<({ partners }: PartnerListProps) => React.JSX.Element>;
|
|
16
|
+
export default PartnerList;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { memo } from "react";
|
|
2
|
+
import PartnerField from "../common/addItem";
|
|
3
|
+
var PartnerList = memo(function (_a) {
|
|
4
|
+
var partners = _a.partners;
|
|
5
|
+
return (React.createElement("div", { className: "container" }, partners.map(function (partner, key) {
|
|
6
|
+
var _a, _b;
|
|
7
|
+
return (React.createElement("div", { key: key, className: "content partners-grid" },
|
|
8
|
+
React.createElement(PartnerField, { name: partner.cnpj ? "Empresa" : (_a = partner.cargo) !== null && _a !== void 0 ? _a : "", value: partner.nome }),
|
|
9
|
+
React.createElement(PartnerField, { name: partner.cnpj ? "CNPJ" : "CPF", value: (_b = (partner.cnpj || partner.cpf)) !== null && _b !== void 0 ? _b : "", onClick: function () { var _a, _b; return (_a = partner.onClickCpfCnpj) === null || _a === void 0 ? void 0 : _a.call(partner, (_b = (partner.cnpj || partner.cpf)) !== null && _b !== void 0 ? _b : ""); } }),
|
|
10
|
+
React.createElement(PartnerField, { name: "Protestos", value: partner.protestos.toString() }),
|
|
11
|
+
React.createElement(PartnerField, { name: "Receita Status", value: partner.receitaStatus }),
|
|
12
|
+
React.createElement(PartnerField, { name: "Dividas P\u00FAblicas", value: partner.dividasPublicas.toString() })));
|
|
13
|
+
})));
|
|
14
|
+
});
|
|
15
|
+
export default PartnerList;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React, { useContext } from "react";
|
|
2
|
+
import { Result } from "../interface/result";
|
|
3
|
+
import PartnerList from "./partnerList";
|
|
4
|
+
import { Queries } from "../webservice";
|
|
5
|
+
import XPathUtils from "../../utils/xpath";
|
|
6
|
+
import { formatCnpj, formatCpf, isCnpj } from "../../utils/string";
|
|
7
|
+
var Partners = function () {
|
|
8
|
+
var ctx = useContext(Queries.Finder);
|
|
9
|
+
var Section = ctx.Section;
|
|
10
|
+
return (React.createElement(Section, { ctx: ctx, title: "Quadro Societ\u00E1rio", subtitle: "S\u00F3cios/Empresas A Qual Faz Parte", onLoading: function () { return React.createElement(React.Fragment, null, "Carregando..."); }, onError: function () { return React.createElement(React.Fragment, null, "Erro"); }, onSuccess: function (data) {
|
|
11
|
+
var partners = XPathUtils.select('//participacoesEmpresas/participacoesEmpresas', data).map(function (partner) {
|
|
12
|
+
var documento = XPathUtils.select('string(documento)', partner);
|
|
13
|
+
return {
|
|
14
|
+
nome: XPathUtils.select('string(nome)', partner),
|
|
15
|
+
cpf: (!isCnpj(documento) && formatCpf(documento)) || '',
|
|
16
|
+
cargo: XPathUtils.select('string(qualificacaoSocio)', partner),
|
|
17
|
+
cnpj: (isCnpj(documento) && formatCnpj(documento)) || '',
|
|
18
|
+
receitaStatus: 'Ativa',
|
|
19
|
+
dividasPublicas: 0,
|
|
20
|
+
protestos: 0
|
|
21
|
+
};
|
|
22
|
+
});
|
|
23
|
+
return (React.createElement(Result, null,
|
|
24
|
+
React.createElement(PartnerList, { partners: partners })));
|
|
25
|
+
} }));
|
|
26
|
+
};
|
|
27
|
+
export default Partners;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import AddItemField from '../common/addItem';
|
|
3
|
+
import useToggle from '../../hooks/useToggle';
|
|
4
|
+
var EnvolvidosList = function (_a) {
|
|
5
|
+
var envolvidos = _a.envolvidos;
|
|
6
|
+
var _b = useToggle(false), open = _b[0], toggle = _b[1];
|
|
7
|
+
return (React.createElement(React.Fragment, null,
|
|
8
|
+
React.createElement("div", { className: "envolvidos-list-button" },
|
|
9
|
+
"Envolvidos na \u00DAltima Movimenta\u00E7\u00E3o",
|
|
10
|
+
React.createElement("br", null),
|
|
11
|
+
React.createElement("i", { className: "fa fa-chevron-circle-up envolvidos-list-icon", onClick: toggle })),
|
|
12
|
+
open && envolvidos.map(function (envolvido, i) { return (React.createElement("div", { key: i, className: "envolvidos-list" },
|
|
13
|
+
React.createElement("div", { className: "content" },
|
|
14
|
+
React.createElement(AddItemField, { name: "Nome", value: envolvido.nome }),
|
|
15
|
+
React.createElement(AddItemField, { name: "Envolvimento", value: envolvido.envolvimento })))); })));
|
|
16
|
+
};
|
|
17
|
+
export default EnvolvidosList;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Header from '../interface/header';
|
|
3
|
+
import { Result } from '../interface/result';
|
|
4
|
+
import ProcessosJuridicosList from './processosJuridicosList';
|
|
5
|
+
import classNames from 'classnames';
|
|
6
|
+
import HeaderAction from '../common/headerAction';
|
|
7
|
+
import useToggle from '../../hooks/useToggle';
|
|
8
|
+
var ProcessosJuridicos = function (_a) {
|
|
9
|
+
var data = _a.data, onClickConsultarProcessoJuridico = _a.onClickConsultarProcessoJuridico;
|
|
10
|
+
var _b = useToggle(false), isOpen = _b[0], toggleOpen = _b[1];
|
|
11
|
+
return (React.createElement(Result, null,
|
|
12
|
+
React.createElement(Header, { title: "Processos Jur\u00EDdicos", subtitle: "Veja Os Processos Jur\u00EDdicos Para Este Cnpj", description: "Pesquisa concluída",
|
|
13
|
+
//style={{ background: 'url("images/textures/brilliant.png"), linear-gradient(rgb(247, 8, 8), rgb(255, 255, 255) 160%)' }}
|
|
14
|
+
className: classNames({
|
|
15
|
+
'gradient-error': data === null || data === void 0 ? void 0 : data.length
|
|
16
|
+
}), actions: React.createElement(HeaderAction, { iconClass: isOpen ? "minus-square-o" : "plus-square-o", onClick: toggleOpen }) }),
|
|
17
|
+
isOpen && (React.createElement(ProcessosJuridicosList, { processos: data, onClickConsultarProcessoJuridico: onClickConsultarProcessoJuridico }))));
|
|
18
|
+
};
|
|
19
|
+
export default ProcessosJuridicos;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Envolvido } from "./envolvidosList";
|
|
3
|
+
export type ProcessosJuridicosData = {
|
|
4
|
+
numeroCnj: string;
|
|
5
|
+
assuntos: string;
|
|
6
|
+
classeProcessual: string;
|
|
7
|
+
siglaDoDiario: string;
|
|
8
|
+
estado: string;
|
|
9
|
+
envolvidosUltimaMovimentacao: Envolvido[];
|
|
10
|
+
};
|
|
11
|
+
declare const ProcessosJuridicosList: React.FC<{
|
|
12
|
+
processos: ProcessosJuridicosData[];
|
|
13
|
+
onClickConsultarProcessoJuridico: () => void;
|
|
14
|
+
}>;
|
|
15
|
+
export default ProcessosJuridicosList;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React, { memo } from "react";
|
|
2
|
+
import { Result } from "../interface/result";
|
|
3
|
+
import AddProcessoJuridicoField from "../common/addItem";
|
|
4
|
+
import Button from "../common/button";
|
|
5
|
+
import EnvolvidosList from "./envolvidosList";
|
|
6
|
+
var ProcessoJuridicoItem = memo(function (_a) {
|
|
7
|
+
var processo = _a.processo, children = _a.children;
|
|
8
|
+
return (React.createElement("div", { className: "content-layout" },
|
|
9
|
+
React.createElement(AddProcessoJuridicoField, { name: "N\u00FAmero CNJ", value: processo.numeroCnj }),
|
|
10
|
+
React.createElement(AddProcessoJuridicoField, { name: "Assunto(s)", value: processo.assuntos }),
|
|
11
|
+
React.createElement(AddProcessoJuridicoField, { name: "Classe Processual", value: processo.classeProcessual }),
|
|
12
|
+
React.createElement(AddProcessoJuridicoField, { name: "Sigla do Di\u00E1rio", value: processo.siglaDoDiario }),
|
|
13
|
+
React.createElement(AddProcessoJuridicoField, { name: "Estado", value: processo.estado }),
|
|
14
|
+
children));
|
|
15
|
+
});
|
|
16
|
+
var ProcessosJuridicosList = function (_a) {
|
|
17
|
+
var processos = _a.processos, onClickConsultarProcessoJuridico = _a.onClickConsultarProcessoJuridico;
|
|
18
|
+
return (React.createElement(React.Fragment, null, processos.map(function (processo, i) { return (React.createElement(React.Fragment, null,
|
|
19
|
+
React.createElement(Result, { isContainer: true, contentClassName: 'container-layout' },
|
|
20
|
+
React.createElement(ProcessoJuridicoItem, { key: i, processo: processo },
|
|
21
|
+
React.createElement(Button, { onClick: function () { return onClickConsultarProcessoJuridico(); }, price: "R$ 1" }, "Consultar Processo Jur\u00EDdico"))),
|
|
22
|
+
React.createElement(EnvolvidosList, { envolvidos: processo === null || processo === void 0 ? void 0 : processo.envolvidosUltimaMovimentacao }))); })));
|
|
23
|
+
};
|
|
24
|
+
export default ProcessosJuridicosList;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
import React, { useContext } from "react";
|
|
3
|
+
import { Queries } from "../webservice";
|
|
4
|
+
import { Result } from "../interface/result";
|
|
5
|
+
import ProtestosCategory from "./protestosCategory";
|
|
6
|
+
import { ProtestoItem } from "./protestosList";
|
|
7
|
+
import XPathUtils from "../../utils/xpath";
|
|
8
|
+
import { REGEX_PROTESTOS_DE_CREDITO, REGEX_PROTESTOS_DE_IMPOSTO, } from "../../constants/regex";
|
|
9
|
+
import ResultWithoutInformation from "../resultWithoutInformation/ResultWithoutInformation";
|
|
10
|
+
var Protestos = function () {
|
|
11
|
+
var ctx = useContext(Queries.Protestos);
|
|
12
|
+
var Section = ctx.Section;
|
|
13
|
+
var filterProtestos = function (regex, data) {
|
|
14
|
+
return XPathUtils.select("//body//protesto", data).filter(function (protesto) {
|
|
15
|
+
return regex.test(XPathUtils.select("string(./nomeCedente)", protesto));
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
return (React.createElement(Section, { ctx: ctx, title: "Protestos", subtitle: "Consulta de Protestos ao CENPROT", onError: function () { return React.createElement(React.Fragment, null, "Erro"); }, onLoading: function () { return React.createElement(React.Fragment, null, "Carregando..."); }, onSuccess: function (data) {
|
|
19
|
+
var registros = XPathUtils.select("number(//registros)", data);
|
|
20
|
+
var protestosDeCredito = filterProtestos(REGEX_PROTESTOS_DE_CREDITO, data);
|
|
21
|
+
var protestosDeImposto = filterProtestos(REGEX_PROTESTOS_DE_IMPOSTO, data);
|
|
22
|
+
var protestosGerais = XPathUtils.select("//body//protesto", data).filter(function (protesto) {
|
|
23
|
+
var nomeCedente = XPathUtils.select("string(./nomeCedente)", protesto);
|
|
24
|
+
return (!REGEX_PROTESTOS_DE_IMPOSTO.test(nomeCedente) &&
|
|
25
|
+
!REGEX_PROTESTOS_DE_CREDITO.test(nomeCedente));
|
|
26
|
+
});
|
|
27
|
+
var children = registros ? (React.createElement(Result, null,
|
|
28
|
+
React.createElement(ProtestosCategory, { title: "Protestos de Cr\u00E9dito", registros: protestosDeCredito === null || protestosDeCredito === void 0 ? void 0 : protestosDeCredito.length }, protestosDeCredito.map(function (protesto, i) { return (React.createElement(ProtestoItem, { protesto: protesto, key: i })); })),
|
|
29
|
+
React.createElement(ProtestosCategory, { title: "Protestos de Cr\u00E9dito", subtitle: "Confira os protestos da Categoria Cr\u00E9dito deste Documento", registros: protestosDeCredito === null || protestosDeCredito === void 0 ? void 0 : protestosDeCredito.length }, protestosDeCredito.map(function (protestoElement, index) { return (React.createElement(ProtestoItem, { protesto: protestoElement, key: index })); })),
|
|
30
|
+
React.createElement(ProtestosCategory, { title: "Protestos de Imposto", subtitle: "Confira os protestos da Categoria Imposto deste Documento", registros: protestosDeImposto === null || protestosDeImposto === void 0 ? void 0 : protestosDeImposto.length }, protestosDeImposto.map(function (protestoElement, index) { return (React.createElement(ProtestoItem, { protesto: protestoElement, key: index })); })),
|
|
31
|
+
React.createElement(ProtestosCategory, { title: "Protestos Gerais", subtitle: "Confira os protestos da Categoria Geral deste Documento", registros: protestosGerais === null || protestosGerais === void 0 ? void 0 : protestosGerais.length }, protestosGerais.map(function (protestoElement, index) { return (React.createElement(ProtestoItem, { protesto: protestoElement, key: index })); })))) : React.createElement(ResultWithoutInformation, null);
|
|
32
|
+
return {
|
|
33
|
+
children: children,
|
|
34
|
+
className: registros && 'gradient-error' || '',
|
|
35
|
+
description: registros
|
|
36
|
+
? (registros === 1 ? 'Encontrado um protesto.' : "Encontrados ".concat(registros, " protestos."))
|
|
37
|
+
: "Não há ocorrência de protesto.",
|
|
38
|
+
};
|
|
39
|
+
} }));
|
|
40
|
+
};
|
|
41
|
+
export default Protestos;
|