@credithub/harlan-components 1.18.3 → 1.19.0
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 +761 -653
- package/lib/esm/assets/btn/chevronDown.d.ts +1 -1
- package/lib/esm/assets/btn/chevronDown.js +1 -1
- package/lib/esm/assets/btn/chevronLeft.d.ts +1 -1
- package/lib/esm/assets/btn/chevronLeft.js +3 -3
- package/lib/esm/assets/btn/chevronRight.d.ts +1 -1
- package/lib/esm/assets/btn/chevronRight.js +3 -3
- package/lib/esm/assets/btn/chevronUp.d.ts +1 -1
- package/lib/esm/assets/btn/chevronUp.js +2 -2
- package/lib/esm/assets/btn/closeIcon.d.ts +1 -1
- package/lib/esm/assets/btn/closeIcon.js +1 -1
- package/lib/esm/assets/btn/thumbUp.d.ts +1 -1
- package/lib/esm/assets/btn/thumbUp.js +4 -4
- package/lib/esm/assets/icones/chequesSemFundo.d.ts +2 -2
- package/lib/esm/assets/icones/chequesSemFundo.js +4 -4
- package/lib/esm/assets/icones/consultaSimples.d.ts +2 -2
- package/lib/esm/assets/icones/consultaSimples.js +4 -4
- package/lib/esm/assets/icones/contasBancarias.d.ts +1 -1
- package/lib/esm/assets/icones/contato.d.ts +2 -2
- package/lib/esm/assets/icones/contato.js +4 -4
- package/lib/esm/assets/icones/dividasVencidasSerasa.d.ts +2 -2
- package/lib/esm/assets/icones/dividasVencidasSerasa.js +3 -3
- package/lib/esm/assets/icones/dominios.d.ts +2 -2
- package/lib/esm/assets/icones/dominios.js +3 -3
- package/lib/esm/assets/icones/endereco.d.ts +3 -3
- package/lib/esm/assets/icones/endereco.js +4 -4
- package/lib/esm/assets/icones/iconeEmpresa.d.ts +1 -1
- package/lib/esm/assets/icones/iconeEmpresa.js +4 -4
- package/lib/esm/assets/icones/iconePessoa.d.ts +1 -1
- package/lib/esm/assets/icones/iconePessoa.js +4 -4
- package/lib/esm/assets/icones/imoveis.d.ts +2 -2
- package/lib/esm/assets/icones/imoveis.js +3 -3
- package/lib/esm/assets/icones/pefinRefinBoaVista.d.ts +1 -1
- package/lib/esm/assets/icones/pefinRefinBoaVista.js +2 -2
- package/lib/esm/assets/icones/pefinRefinSerasa.d.ts +1 -1
- package/lib/esm/assets/icones/pefinRefinSerasa.js +2 -2
- package/lib/esm/assets/icones/processosJuridicos.d.ts +1 -1
- package/lib/esm/assets/icones/protestos.d.ts +2 -2
- package/lib/esm/assets/icones/protestos.js +4 -4
- package/lib/esm/assets/icones/protestosCredito.d.ts +2 -2
- package/lib/esm/assets/icones/protestosCredito.js +4 -4
- package/lib/esm/assets/icones/protestosGerais.d.ts +2 -2
- package/lib/esm/assets/icones/protestosGerais.js +4 -4
- package/lib/esm/assets/icones/protestosImpostos.d.ts +2 -2
- package/lib/esm/assets/icones/protestosImpostos.js +4 -4
- package/lib/esm/assets/icones/resumoNegativacoes.d.ts +1 -1
- package/lib/esm/assets/icones/resumoNegativacoes.js +1 -1
- package/lib/esm/assets/icones/scoreBoaVista.d.ts +2 -2
- package/lib/esm/assets/icones/scoreBoaVista.js +3 -3
- package/lib/esm/assets/icones/scr.d.ts +2 -2
- package/lib/esm/assets/icones/scr.js +3 -3
- package/lib/esm/assets/icones/ultimaMovimentacao.d.ts +2 -2
- package/lib/esm/assets/icones/ultimaMovimentacao.js +4 -4
- package/lib/esm/assets/icones/veiculos.d.ts +2 -2
- package/lib/esm/assets/icones/veiculos.js +3 -3
- package/lib/esm/components/adresses/addresses.d.ts +1 -1
- package/lib/esm/components/adresses/addresses.js +21 -17
- package/lib/esm/components/adresses/getGeocode.js +2 -2
- package/lib/esm/components/adresses/map.d.ts +1 -1
- package/lib/esm/components/adresses/map.js +5 -5
- package/lib/esm/components/bank-accounts/bank-accounts.d.ts +1 -1
- package/lib/esm/components/bank-accounts/bank-accounts.js +19 -15
- package/lib/esm/components/ccf/ccf.d.ts +1 -1
- package/lib/esm/components/ccf/ccf.js +16 -16
- package/lib/esm/components/ccf/ccfList.d.ts +1 -1
- package/lib/esm/components/ccf/ccfList.js +6 -6
- package/lib/esm/components/chart/chartContent.d.ts +2 -2
- package/lib/esm/components/chart/chartContent.js +12 -12
- package/lib/esm/components/chart/chartSystem.d.ts +1 -1
- package/lib/esm/components/chart/chartSystem.js +33 -25
- package/lib/esm/components/chart/components/MixedChart.d.ts +2 -2
- package/lib/esm/components/chart/components/MixedChart.js +15 -15
- package/lib/esm/components/chart/components/PieChart.d.ts +2 -2
- package/lib/esm/components/chart/components/PieChart.js +3 -3
- package/lib/esm/components/chart/components/categoryProtestos.d.ts +3 -3
- package/lib/esm/components/chart/components/categoryProtestos.js +4 -4
- package/lib/esm/components/chart/hooks/useCategoryProtestos.d.ts +5 -5
- package/lib/esm/components/chart/hooks/useCategoryProtestos.js +23 -23
- package/lib/esm/components/chart/hooks/useChartData.d.ts +1 -1
- package/lib/esm/components/chart/hooks/useChartData.js +8 -8
- package/lib/esm/components/chart/hooks/useMixedChartData.d.ts +5 -5
- package/lib/esm/components/chart/hooks/useMixedChartData.js +10 -10
- package/lib/esm/components/chart/hooks/usePieChartData.d.ts +4 -4
- package/lib/esm/components/chart/hooks/usePieChartData.js +34 -34
- package/lib/esm/components/chart/quantityResult.d.ts +2 -2
- package/lib/esm/components/chart/quantityResult.js +6 -6
- package/lib/esm/components/chart/types/iChart.d.ts +4 -4
- package/lib/esm/components/chart/utils/chartCustomization.d.ts +4 -4
- package/lib/esm/components/chart/utils/chartCustomization.js +62 -62
- package/lib/esm/components/chart/utils/chartUtils.d.ts +1 -1
- package/lib/esm/components/chart/utils/chartUtils.js +9 -9
- package/lib/esm/components/chart/utils/dataManipulation.d.ts +1 -1
- package/lib/esm/components/chart/utils/dataManipulation.js +17 -17
- package/lib/esm/components/chart/utils/dataProcessing.d.ts +2 -2
- package/lib/esm/components/chart/utils/dataProcessing.js +16 -16
- package/lib/esm/components/common/addItem.d.ts +1 -1
- package/lib/esm/components/common/addItem.js +6 -6
- package/lib/esm/components/common/button.d.ts +1 -1
- package/lib/esm/components/common/button.js +5 -5
- package/lib/esm/components/common/content.js +2 -2
- package/lib/esm/components/consultaRfb.d.ts +1 -1
- package/lib/esm/components/consultaRfb.js +2 -2
- package/lib/esm/components/consultaSimplesSection/consultaSimplesSection.js +34 -14
- package/lib/esm/components/consultasComplementares.d.ts +6 -6
- package/lib/esm/components/consultasComplementares.js +9 -9
- package/lib/esm/components/contacts/contactLikeDislikeSection.d.ts +3 -3
- package/lib/esm/components/contacts/contactLikeDislikeSection.js +16 -16
- package/lib/esm/components/contacts/contacts.d.ts +1 -1
- package/lib/esm/components/contacts/contacts.js +16 -10
- package/lib/esm/components/contacts/contactsLikeDislike.d.ts +1 -1
- package/lib/esm/components/contacts/contactsLikeDislike.js +2 -2
- package/lib/esm/components/contacts/thumbsButton.d.ts +1 -1
- package/lib/esm/components/contacts/thumbsButton.js +19 -19
- package/lib/esm/components/dividasPublicas/dividasPublicas.d.ts +1 -1
- package/lib/esm/components/dividasPublicas/dividasPublicas.js +10 -10
- package/lib/esm/components/dominios/dominios.d.ts +1 -1
- package/lib/esm/components/dominios/dominios.js +13 -9
- package/lib/esm/components/dossie/carrousel/carrousel.d.ts +1 -1
- package/lib/esm/components/dossie/carrousel/carrousel.js +3 -3
- package/lib/esm/components/dossie/companyLogo/companyLogo.d.ts +1 -1
- package/lib/esm/components/dossie/companyLogo/companyLogo.js +9 -9
- package/lib/esm/components/dossie/dossie.d.ts +1 -1
- package/lib/esm/components/dossie/dossie.js +16 -17
- package/lib/esm/components/dossie/summary/cardsAndProducts.js +98 -90
- package/lib/esm/components/dossie/summary/summary.d.ts +1 -1
- package/lib/esm/components/dossie/summary/summary.js +21 -18
- package/lib/esm/components/dossie/summary/utils.js +8 -8
- package/lib/esm/components/dossie/transactionTable/transactionTable.d.ts +1 -1
- package/lib/esm/components/dossie/transactionTable/transactionTable.js +8 -8
- package/lib/esm/components/imoveis/imoveisService.d.ts +1 -1
- package/lib/esm/components/imoveis/imoveisService.js +12 -12
- package/lib/esm/components/interface/globalStyle.js +1 -1
- package/lib/esm/components/interface/header.d.ts +3 -3
- package/lib/esm/components/interface/header.js +6 -6
- package/lib/esm/components/interface/loadingBar.js +2 -2
- package/lib/esm/components/interface/responsiveGrid.d.ts +1 -1
- package/lib/esm/components/interface/responsiveGrid.js +2 -2
- package/lib/esm/components/interface/result.js +6 -4
- package/lib/esm/components/interface/resultWithoutInformation.js +1 -1
- package/lib/esm/components/interface/section.d.ts +2 -2
- package/lib/esm/components/interface/section.js +11 -12
- package/lib/esm/components/interface/statusMessage.js +3 -3
- package/lib/esm/components/interface/theme.js +34 -34
- package/lib/esm/components/liminar/liminar.d.ts +1 -1
- package/lib/esm/components/liminar/liminar.js +5 -5
- package/lib/esm/components/partners/partner-dividas-publicas.js +3 -3
- package/lib/esm/components/partners/partner-protestos.js +3 -3
- package/lib/esm/components/partners/partner-rfb-status.js +3 -3
- package/lib/esm/components/partners/partnerField.d.ts +1 -1
- package/lib/esm/components/partners/partnerField.js +3 -3
- package/lib/esm/components/partners/partnerList.d.ts +1 -1
- package/lib/esm/components/partners/partnerList.js +8 -8
- package/lib/esm/components/partners/partners.d.ts +1 -1
- package/lib/esm/components/partners/partners.js +18 -16
- package/lib/esm/components/pep/pep.d.ts +1 -1
- package/lib/esm/components/pep/pep.js +11 -8
- package/lib/esm/components/processos-juridicos/envolvidosList.js +2 -2
- package/lib/esm/components/processos-juridicos/processosJuridicos.d.ts +1 -1
- package/lib/esm/components/processos-juridicos/processosJuridicos.js +9 -7
- package/lib/esm/components/processos-juridicos/processosJuridicosList.d.ts +2 -2
- package/lib/esm/components/processos-juridicos/processosJuridicosList.js +12 -10
- package/lib/esm/components/protestos/getTotalProtestos.js +2 -2
- package/lib/esm/components/protestos/protestos.d.ts +1 -1
- package/lib/esm/components/protestos/protestos.js +32 -26
- package/lib/esm/components/protestos/protestosCategory.d.ts +2 -2
- package/lib/esm/components/protestos/protestosCategory.js +15 -13
- package/lib/esm/components/protestos/protestosList.d.ts +2 -2
- package/lib/esm/components/protestos/protestosList.js +20 -20
- package/lib/esm/components/reclameAqui/reclameAquiCarousel.d.ts +1 -1
- package/lib/esm/components/reclameAqui/reclameAquiCarousel.js +20 -20
- package/lib/esm/components/refinBoaVista/refinBoaVista.js +22 -15
- package/lib/esm/components/refinSerasa/refinSerasa.js +26 -9
- package/lib/esm/components/refinSerasa/types.d.ts +1 -1
- package/lib/esm/components/resultadoDaPesquisa/resultado-da-pesquisa.js +6 -6
- package/lib/esm/components/score/scoreService.d.ts +1 -1
- package/lib/esm/components/score/scoreService.js +10 -10
- package/lib/esm/components/scr/getResumoDeCreditos.d.ts +1 -1
- package/lib/esm/components/scr/getResumoDeCreditos.js +9 -9
- package/lib/esm/components/scr/getResumoDeModalidades.d.ts +1 -1
- package/lib/esm/components/scr/getResumoDeModalidades.js +25 -27
- package/lib/esm/components/scr/scr.d.ts +1 -1
- package/lib/esm/components/scr/scr.js +23 -23
- package/lib/esm/components/scr/types.d.ts +5 -5
- package/lib/esm/components/veiculos/veiculos.js +28 -19
- package/lib/esm/components/webservice.d.ts +5 -5
- package/lib/esm/components/webservice.js +35 -31
- package/lib/esm/consultaSimples.d.ts +2 -2
- package/lib/esm/consultaSimples.js +14 -14
- package/lib/esm/hooks/useConsultaRfb.js +3 -3
- package/lib/esm/hooks/useConsultasComplementares.js +3 -3
- package/lib/esm/hooks/useToggle.js +1 -1
- package/lib/esm/hooks/useWindowSize.js +5 -5
- package/lib/esm/index.d.ts +23 -23
- package/lib/esm/index.js +23 -23
- package/lib/esm/utils/calculation.js +4 -4
- package/lib/esm/utils/formatter.js +3 -3
- package/lib/esm/utils/number.js +7 -7
- package/lib/esm/utils/string.js +11 -11
- package/lib/esm/utils/xpath.js +1 -1
- package/package.json +4 -1
- package/lib/esm/components/refinSerasa/usePendencias.d.ts +0 -0
- package/lib/esm/components/refinSerasa/usePendencias.js +0 -0
|
@@ -2,40 +2,40 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
2
2
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
3
|
return cooked;
|
|
4
4
|
};
|
|
5
|
-
import ThumbDown from
|
|
6
|
-
import ThumbUp from
|
|
7
|
-
import React from
|
|
8
|
-
import styled from
|
|
9
|
-
import theme from
|
|
5
|
+
import ThumbDown from '../../assets/btn/thumbDown';
|
|
6
|
+
import ThumbUp from '../../assets/btn/thumbUp';
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import styled from 'styled-components';
|
|
9
|
+
import theme from '../interface/theme';
|
|
10
10
|
var ButtonContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: inline-flex;\n background-color: ", ";\n border-radius: 10px;\n overflow: hidden;\n position: relative;\n font-size: 10px;\n width: fit-content;\n"], ["\n display: inline-flex;\n background-color: ", ";\n border-radius: 10px;\n overflow: hidden;\n position: relative;\n font-size: 10px;\n width: fit-content;\n"])), theme.colors.cinzaClaro);
|
|
11
11
|
var Button = styled.button(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 6px 8px;\n line-height: 8px;\n cursor: pointer !important;\n border: none;\n background-color: ", ";\n color: white;\n flex: none;\n width: 50%;\n margin: 0 auto;\n\n /* &:hover {\n background-color: ", ";\n } */\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 6px 8px;\n line-height: 8px;\n cursor: pointer !important;\n border: none;\n background-color: ", ";\n color: white;\n flex: none;\n width: 50%;\n margin: 0 auto;\n\n /* &:hover {\n background-color: ", ";\n } */\n"])), function (props) {
|
|
12
12
|
return props.isSelected
|
|
13
|
-
? props.action ===
|
|
14
|
-
?
|
|
15
|
-
:
|
|
16
|
-
:
|
|
13
|
+
? props.action === 'like'
|
|
14
|
+
? '#007aff'
|
|
15
|
+
: '#ff4b4b'
|
|
16
|
+
: 'transparent';
|
|
17
17
|
}, function (props) {
|
|
18
18
|
return props.isSelected
|
|
19
|
-
? props.action ===
|
|
20
|
-
?
|
|
21
|
-
:
|
|
22
|
-
:
|
|
19
|
+
? props.action === 'like'
|
|
20
|
+
? '#005ecb'
|
|
21
|
+
: '#d63447'
|
|
22
|
+
: '#f5f5f5';
|
|
23
23
|
});
|
|
24
24
|
var IconWrapper = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n margin-right: 5px;\n"], ["\n margin-right: 5px;\n"])));
|
|
25
|
-
var Count = styled.span(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n line-height: 1;\n display: flex;\n align-items: center;\n margin-right: ", ";\n"], ["\n line-height: 1;\n display: flex;\n align-items: center;\n margin-right: ", ";\n"])), function (props) { return (props.action ===
|
|
26
|
-
var Separator = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n content:
|
|
25
|
+
var Count = styled.span(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n line-height: 1;\n display: flex;\n align-items: center;\n margin-right: ", ";\n"], ["\n line-height: 1;\n display: flex;\n align-items: center;\n margin-right: ", ";\n"])), function (props) { return (props.action === 'dislike' ? '5px' : '0'); });
|
|
26
|
+
var Separator = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n content: '';\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n height: calc(100% - 6px);\n width: 1px;\n background-color: ", ";\n opacity: 0.1;\n z-index: 1;\n"], ["\n content: '';\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n height: calc(100% - 6px);\n width: 1px;\n background-color: ", ";\n opacity: 0.1;\n z-index: 1;\n"])), theme.colors.cinzaEscuro);
|
|
27
27
|
var ThumbsButton = function (_a) {
|
|
28
28
|
var _b = _a.likes, likes = _b === void 0 ? 0 : _b, _c = _a.dislikes, dislikes = _c === void 0 ? 0 : _c, onClickLike = _a.onClickLike, onClickDislike = _a.onClickDislike;
|
|
29
29
|
return (React.createElement(ButtonContainer, null,
|
|
30
30
|
React.createElement(Button, { isSelected: likes > 0, onClick: onClickLike, action: "like" },
|
|
31
31
|
React.createElement(IconWrapper, { isSelected: likes > 0, action: "like" },
|
|
32
|
-
React.createElement(ThumbUp, { fill: likes > 0 ?
|
|
33
|
-
React.createElement(Count, { action: "like" }, likes > 0 ? likes :
|
|
32
|
+
React.createElement(ThumbUp, { fill: likes > 0 ? 'white' : theme.colors.cinzaEscuro })),
|
|
33
|
+
React.createElement(Count, { action: "like" }, likes > 0 ? likes : '')),
|
|
34
34
|
React.createElement(Separator, null),
|
|
35
35
|
React.createElement(Button, { isSelected: dislikes > 0, onClick: onClickDislike, action: "dislike" },
|
|
36
|
-
React.createElement(Count, { action: "dislike" }, dislikes > 0 ? "".concat(dislikes) :
|
|
36
|
+
React.createElement(Count, { action: "dislike" }, dislikes > 0 ? "".concat(dislikes) : ''),
|
|
37
37
|
React.createElement(IconWrapper, { isSelected: dislikes > 0, action: "dislike" },
|
|
38
|
-
React.createElement(ThumbDown, { fill: dislikes > 0 ?
|
|
38
|
+
React.createElement(ThumbDown, { fill: dislikes > 0 ? 'white' : theme.colors.cinzaEscuro })))));
|
|
39
39
|
};
|
|
40
40
|
export default ThumbsButton;
|
|
41
41
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
@@ -7,14 +7,14 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
7
7
|
}
|
|
8
8
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9
9
|
};
|
|
10
|
-
import React, { memo, useContext } from
|
|
11
|
-
import { Queries } from
|
|
12
|
-
import XPathUtils from
|
|
13
|
-
import { Result, ResultContent } from
|
|
14
|
-
import AddItemField from
|
|
15
|
-
import { formatMoney } from
|
|
16
|
-
import DividasVencidasSerasaIcon from
|
|
17
|
-
import StatusMessage from
|
|
10
|
+
import React, { memo, useContext } from 'react';
|
|
11
|
+
import { Queries } from '../webservice';
|
|
12
|
+
import XPathUtils from '../../utils/xpath';
|
|
13
|
+
import { Result, ResultContent } from '../interface/result';
|
|
14
|
+
import AddItemField from '../common/addItem';
|
|
15
|
+
import { formatMoney } from '../../utils/number';
|
|
16
|
+
import DividasVencidasSerasaIcon from '../../assets/icones/dividasVencidasSerasa';
|
|
17
|
+
import StatusMessage from '../interface/statusMessage';
|
|
18
18
|
var DividasPublicas = function () {
|
|
19
19
|
var ctx = useContext(Queries.Finder);
|
|
20
20
|
var Section = ctx.Section;
|
|
@@ -42,9 +42,9 @@ var DividasPublicas = function () {
|
|
|
42
42
|
variant: totalOcorrencias ? 'error' : 'default',
|
|
43
43
|
description: (React.createElement(StatusMessage, { type: totalOcorrencias ? 'error' : 'default' }, totalOcorrencias
|
|
44
44
|
? totalOcorrencias === 1
|
|
45
|
-
?
|
|
45
|
+
? 'Encontrado uma dívida pública'
|
|
46
46
|
: "".concat(totalOcorrencias, " d\u00EDvidas encontradas")
|
|
47
|
-
:
|
|
47
|
+
: 'Nenhuma dívida pública encontrada'))
|
|
48
48
|
};
|
|
49
49
|
} }));
|
|
50
50
|
};
|
|
@@ -2,13 +2,13 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
2
2
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
3
|
return cooked;
|
|
4
4
|
};
|
|
5
|
-
import React, { useContext } from
|
|
6
|
-
import { Queries } from
|
|
7
|
-
import { Result, ResultContent } from
|
|
8
|
-
import AddItemField from
|
|
9
|
-
import styled from
|
|
10
|
-
import StatusMessage from
|
|
11
|
-
import DominiosIcon from
|
|
5
|
+
import React, { useContext } from 'react';
|
|
6
|
+
import { Queries } from '../webservice';
|
|
7
|
+
import { Result, ResultContent } from '../interface/result';
|
|
8
|
+
import AddItemField from '../common/addItem';
|
|
9
|
+
import styled from 'styled-components';
|
|
10
|
+
import StatusMessage from '../interface/statusMessage';
|
|
11
|
+
import DominiosIcon from '../../assets/icones/dominios';
|
|
12
12
|
var Link = styled.a(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: inherit;\n text-decoration: none;\n"], ["\n color: inherit;\n text-decoration: none;\n"])));
|
|
13
13
|
var Dominios = function () {
|
|
14
14
|
var ctx = useContext(Queries.Dominios);
|
|
@@ -16,8 +16,12 @@ var Dominios = function () {
|
|
|
16
16
|
return (React.createElement(Section, { title: "Dom\u00EDnios na Internet", subtitle: "Informa\u00E7\u00F5es de dom\u00EDnios na internet.", icon: DominiosIcon, onSuccess: function (document) {
|
|
17
17
|
return {
|
|
18
18
|
children: (React.createElement(Result, { resultContentStriped: false }, document.map(function (data) { return (React.createElement(ResultContent, { desktop: "1fr 1fr 1fr", tablet: "1fr 1fr", mobile: "1fr 1fr", key: data },
|
|
19
|
-
React.createElement(AddItemField, { name: "Dom\u00EDnio", value: React.createElement(Link, { href: "https://www.".concat(data), target:
|
|
20
|
-
description: (React.createElement(StatusMessage, { type: (document === null || document === void 0 ? void 0 : document.length) ? 'success' : 'default' }, document.length
|
|
19
|
+
React.createElement(AddItemField, { name: "Dom\u00EDnio", value: React.createElement(Link, { href: "https://www.".concat(data), target: "_blank", rel: "noreferrer" }, data) }))); }))),
|
|
20
|
+
description: (React.createElement(StatusMessage, { type: (document === null || document === void 0 ? void 0 : document.length) ? 'success' : 'default' }, document.length
|
|
21
|
+
? (document === null || document === void 0 ? void 0 : document.length) === 1
|
|
22
|
+
? 'Foi encontrado 1 registro de domínio'
|
|
23
|
+
: "Foram encontrados ".concat(document === null || document === void 0 ? void 0 : document.length, " registros de dom\u00EDnios.")
|
|
24
|
+
: 'Não foram encontrados registros de domínios.'))
|
|
21
25
|
};
|
|
22
26
|
} }));
|
|
23
27
|
};
|
|
@@ -2,9 +2,9 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
2
2
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
3
|
return cooked;
|
|
4
4
|
};
|
|
5
|
-
import React from
|
|
6
|
-
import Companylogo from
|
|
7
|
-
import styled from
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import Companylogo from '../companyLogo/companyLogo';
|
|
7
|
+
import styled from 'styled-components';
|
|
8
8
|
var CarouselContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"])));
|
|
9
9
|
export var Carrousel = function (_a) {
|
|
10
10
|
var name = _a.name, document = _a.document;
|
|
@@ -2,15 +2,15 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
2
2
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
3
|
return cooked;
|
|
4
4
|
};
|
|
5
|
-
import React from
|
|
6
|
-
import styled from
|
|
7
|
-
import IconeEmpresa from
|
|
8
|
-
import IconePessoa from
|
|
9
|
-
import { isDocumentoPF } from
|
|
10
|
-
import theme from
|
|
11
|
-
var LogoContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import styled from 'styled-components';
|
|
7
|
+
import IconeEmpresa from '../../../assets/icones/iconeEmpresa';
|
|
8
|
+
import IconePessoa from '../../../assets/icones/iconePessoa';
|
|
9
|
+
import { isDocumentoPF } from '../../../utils/string';
|
|
10
|
+
import theme from '../../../components/interface/theme';
|
|
11
|
+
var LogoContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n row-gap: 20px;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n row-gap: 20px;\n"])));
|
|
12
12
|
var CompanyName = styled.span(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n font-size: ", ";\n color: ", ";\n text-align: center;\n line-height: ", ";\n font-weight: ", ";\n"], ["\n font-size: ", ";\n color: ", ";\n text-align: center;\n line-height: ", ";\n font-weight: ", ";\n"])), theme.typography.headline14.fontSize, theme.colors.cinzaEscuro, theme.typography.headline14.lineHeight, theme.typography.headline14.fontWeight);
|
|
13
|
-
var DocumentContainer = styled.span(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n
|
|
13
|
+
var DocumentContainer = styled.span(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n\n color: ", ";\n background-color: ", ";\n\n text-align: center;\n position: relative;\n padding: 5px 20px;\n border-radius: 60px;\n display: flex;\n align-items: center;\n justify-content: center;\n"], ["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n\n color: ", ";\n background-color: ", ";\n\n text-align: center;\n position: relative;\n padding: 5px 20px;\n border-radius: 60px;\n display: flex;\n align-items: center;\n justify-content: center;\n"])), theme.typography.body14.fontSize, theme.typography.body14.fontWeight, theme.typography.body14.lineHeight, theme.colors.cinzaEscuro, theme.colors.cinzaClaro);
|
|
14
14
|
var Companylogo = function (_a) {
|
|
15
15
|
var name = _a.name, document = _a.document;
|
|
16
16
|
return (React.createElement(React.Fragment, null,
|
|
@@ -18,7 +18,7 @@ var Companylogo = function (_a) {
|
|
|
18
18
|
React.createElement(CompanyName, null, name),
|
|
19
19
|
isDocumentoPF(document) ? (React.createElement(IconePessoa, { size: 60, circleFill: theme.colors.cinzaClaro, pathFill: theme.colors.cinzaEscuro, className: "company-logo-icon" })) : (React.createElement(IconeEmpresa, { size: 60, circleFill: theme.colors.cinzaClaro, className: "company-logo-icon" })),
|
|
20
20
|
React.createElement(DocumentContainer, null,
|
|
21
|
-
isDocumentoPF(document) ?
|
|
21
|
+
isDocumentoPF(document) ? 'CPF: ' : 'CNPJ: ',
|
|
22
22
|
document))));
|
|
23
23
|
};
|
|
24
24
|
export default Companylogo;
|
|
@@ -4,17 +4,17 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
4
4
|
};
|
|
5
5
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
6
6
|
//eslint-disable-ban-types
|
|
7
|
-
import React, { useContext } from
|
|
8
|
-
import { Summary } from
|
|
9
|
-
import { TransactionsTable } from
|
|
10
|
-
import { Carrousel } from
|
|
11
|
-
import { ReclameAquiCarousel } from
|
|
12
|
-
import { Queries } from
|
|
13
|
-
import XPathUtils from
|
|
14
|
-
import { formatCnpj, formatCpf } from
|
|
15
|
-
import styled from
|
|
16
|
-
import { useConsultaRfb } from
|
|
17
|
-
var DossieContent = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: grid;\n grid-template-columns: 1fr 2fr;\n justify-items: center;\n align-items: flex-start;\n margin-bottom: 20px;\n gap: 20px;\n\n @media (max-width: 992px) {\n grid-template-columns: 1fr;\n }\n
|
|
7
|
+
import React, { useContext } from 'react';
|
|
8
|
+
import { Summary } from './summary/summary';
|
|
9
|
+
import { TransactionsTable } from './transactionTable/transactionTable';
|
|
10
|
+
import { Carrousel } from './carrousel/carrousel';
|
|
11
|
+
import { ReclameAquiCarousel } from '../reclameAqui/reclameAquiCarousel';
|
|
12
|
+
import { Queries } from '../webservice';
|
|
13
|
+
import XPathUtils from '../../utils/xpath';
|
|
14
|
+
import { formatCnpj, formatCpf } from '../../utils/string';
|
|
15
|
+
import styled from 'styled-components';
|
|
16
|
+
import { useConsultaRfb } from '../../hooks/useConsultaRfb';
|
|
17
|
+
var DossieContent = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: grid;\n grid-template-columns: 1fr 2fr;\n justify-items: center;\n align-items: flex-start;\n margin-bottom: 20px;\n gap: 20px;\n\n @media (max-width: 992px) {\n grid-template-columns: 1fr;\n }\n"], ["\n display: grid;\n grid-template-columns: 1fr 2fr;\n justify-items: center;\n align-items: flex-start;\n margin-bottom: 20px;\n gap: 20px;\n\n @media (max-width: 992px) {\n grid-template-columns: 1fr;\n }\n"])));
|
|
18
18
|
var DossieContainer = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n padding: 0px 70px;\n\n @media (max-width: 1000px) {\n padding: 0px 30px;\n }\n"], ["\n padding: 0px 70px;\n\n @media (max-width: 1000px) {\n padding: 0px 30px;\n }\n"])));
|
|
19
19
|
var Dossie = function (_a) {
|
|
20
20
|
var documento = _a.documento;
|
|
@@ -25,11 +25,10 @@ var Dossie = function (_a) {
|
|
|
25
25
|
var data = _data instanceof Error ? undefined : _data;
|
|
26
26
|
var isPF = (documento === null || documento === void 0 ? void 0 : documento.length) === 11;
|
|
27
27
|
var name = (isPF
|
|
28
|
-
? XPathUtils.select(
|
|
29
|
-
: XPathUtils.select(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
: formatCnpj(documento);
|
|
28
|
+
? XPathUtils.select('string(//cadastro/nome)', data)
|
|
29
|
+
: XPathUtils.select('string(//cadastro/razaoSocial)', data) ||
|
|
30
|
+
(rfbResponse && XPathUtils.select('string(//RFB/nome)', rfbResponse)));
|
|
31
|
+
var document = isPF ? formatCpf(documento) : formatCnpj(documento);
|
|
33
32
|
var DossieCarrousel = function () {
|
|
34
33
|
return !isPF ? (React.createElement(ReclameAquiCarousel, { documento: document, nome: name })) : (React.createElement(Carrousel, { name: name, document: document }));
|
|
35
34
|
};
|
|
@@ -37,7 +36,7 @@ var Dossie = function (_a) {
|
|
|
37
36
|
React.createElement(DossieContent, null,
|
|
38
37
|
React.createElement(DossieCarrousel, null),
|
|
39
38
|
React.createElement(Summary, { finderResponse: data, rfbResponse: rfbResponse, document: document })),
|
|
40
|
-
React.createElement(TransactionsTable, { events: XPathUtils.select(
|
|
39
|
+
React.createElement(TransactionsTable, { events: XPathUtils.select('//historico/consulta', data) || [] })));
|
|
41
40
|
};
|
|
42
41
|
return (React.createElement(Section, { ctx: finderCtx, hideHeader: true, minimized: false, isError: function (e) { return response(e); }, onSuccess: response }));
|
|
43
42
|
};
|
|
@@ -9,15 +9,15 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import { getField, getFieldRfb, getProductsPrices } from
|
|
13
|
-
import { useConsultasComplementares } from
|
|
14
|
-
import { formatMoney } from
|
|
15
|
-
import XPathUtils from
|
|
12
|
+
import { getField, getFieldRfb, getProductsPrices } from './utils';
|
|
13
|
+
import { useConsultasComplementares } from '../../../hooks/useConsultasComplementares';
|
|
14
|
+
import { formatMoney } from '../../../utils/number';
|
|
15
|
+
import XPathUtils from '../../../utils/xpath';
|
|
16
16
|
var useCardsAndProducts = function (_a) {
|
|
17
17
|
var _b, _c, _d, _e, _f;
|
|
18
18
|
var finderResponse = _a.finderResponse, rfbResponse = _a.rfbResponse;
|
|
19
19
|
var _g = useConsultasComplementares(), consultasComplementares = _g.consultasComplementares, setConsultasComplementares = _g.setConsultasComplementares, hasCredits = _g.hasCredits;
|
|
20
|
-
var isPF = !!getField(
|
|
20
|
+
var isPF = !!getField('cpf', finderResponse);
|
|
21
21
|
var productsPrices = getProductsPrices(isPF);
|
|
22
22
|
var handleOnClick = function (key) {
|
|
23
23
|
return function () {
|
|
@@ -36,171 +36,179 @@ var useCardsAndProducts = function (_a) {
|
|
|
36
36
|
var _h = {
|
|
37
37
|
cards: [
|
|
38
38
|
{
|
|
39
|
-
title: isPF &&
|
|
40
|
-
|
|
39
|
+
title: isPF &&
|
|
40
|
+
(getField('nome', finderResponse) ||
|
|
41
|
+
getFieldRfb('nome', rfbResponse)),
|
|
42
|
+
header: 'Nome'
|
|
41
43
|
},
|
|
42
44
|
{
|
|
43
|
-
title: getField(
|
|
44
|
-
header:
|
|
45
|
+
title: getField('sexo', finderResponse, function (value) { return (isPF && (value == 'M' ? 'Masculino' : 'Feminino')) || ''; }),
|
|
46
|
+
header: 'Sexo'
|
|
45
47
|
},
|
|
46
48
|
{
|
|
47
|
-
title: getField(
|
|
48
|
-
header:
|
|
49
|
+
title: getField('dataNascimento', finderResponse),
|
|
50
|
+
header: 'Data de Nascimento'
|
|
49
51
|
},
|
|
50
52
|
{
|
|
51
|
-
title: getField(
|
|
52
|
-
header:
|
|
53
|
+
title: getField('idade', finderResponse),
|
|
54
|
+
header: 'Idade'
|
|
53
55
|
},
|
|
54
56
|
{
|
|
55
|
-
title: isPF && getField(
|
|
56
|
-
header:
|
|
57
|
+
title: isPF && getField('faixaIdade', finderResponse),
|
|
58
|
+
header: 'Faixa de Idade'
|
|
57
59
|
},
|
|
58
60
|
{
|
|
59
|
-
title: getField(
|
|
60
|
-
header:
|
|
61
|
+
title: getField('signo', finderResponse),
|
|
62
|
+
header: 'Signo'
|
|
61
63
|
},
|
|
62
64
|
{
|
|
63
|
-
title: getField(
|
|
64
|
-
header:
|
|
65
|
+
title: getField('rg', finderResponse),
|
|
66
|
+
header: 'RG'
|
|
65
67
|
},
|
|
66
68
|
{
|
|
67
|
-
title: getField(
|
|
68
|
-
header:
|
|
69
|
+
title: getField('ufRg', finderResponse),
|
|
70
|
+
header: 'UF do RG'
|
|
69
71
|
},
|
|
70
72
|
{
|
|
71
|
-
title: getField(
|
|
72
|
-
header:
|
|
73
|
+
title: getField('status', finderResponse),
|
|
74
|
+
header: 'Situação'
|
|
73
75
|
},
|
|
74
76
|
{
|
|
75
|
-
title: getField(
|
|
76
|
-
header:
|
|
77
|
+
title: getField('statusData', finderResponse),
|
|
78
|
+
header: 'Data da Situação'
|
|
77
79
|
},
|
|
78
80
|
{
|
|
79
|
-
title: getField(
|
|
80
|
-
header:
|
|
81
|
+
title: getField('maeNome', finderResponse),
|
|
82
|
+
header: 'Nome da Mãe'
|
|
81
83
|
},
|
|
82
84
|
{
|
|
83
|
-
title: getField(
|
|
84
|
-
header:
|
|
85
|
+
title: getField('maeCpf', finderResponse),
|
|
86
|
+
header: 'CPF da Mãe'
|
|
85
87
|
},
|
|
86
88
|
{
|
|
87
|
-
title: getField(
|
|
88
|
-
header:
|
|
89
|
+
title: getField('obitoProvavel', finderResponse),
|
|
90
|
+
header: 'Óbito Provável'
|
|
89
91
|
},
|
|
90
92
|
{
|
|
91
|
-
title: getField(
|
|
92
|
-
header:
|
|
93
|
+
title: getField('tituloEleitoral', finderResponse),
|
|
94
|
+
header: 'Titulo Eleitoral'
|
|
93
95
|
},
|
|
94
96
|
{
|
|
95
|
-
title: getField(
|
|
96
|
-
header:
|
|
97
|
+
title: getField('grauInstrucao', finderResponse),
|
|
98
|
+
header: 'Grau De Instrução'
|
|
97
99
|
},
|
|
98
100
|
{
|
|
99
|
-
title: getField(
|
|
100
|
-
header:
|
|
101
|
+
title: getField('dependentes', finderResponse),
|
|
102
|
+
header: 'Dependentes'
|
|
101
103
|
},
|
|
102
104
|
{
|
|
103
|
-
title: getField(
|
|
104
|
-
header:
|
|
105
|
+
title: getField('estadoCivil', finderResponse),
|
|
106
|
+
header: 'Estado Civil'
|
|
105
107
|
},
|
|
106
108
|
{
|
|
107
|
-
title: isPF ? getField(
|
|
108
|
-
header:
|
|
109
|
+
title: isPF ? getField('renda', finderResponse, formatMoney) : '',
|
|
110
|
+
header: 'Renda'
|
|
109
111
|
},
|
|
110
112
|
{
|
|
111
|
-
title: getField(
|
|
112
|
-
header:
|
|
113
|
+
title: getField('ppe', finderResponse, function (value) { return (isPF && (value ? 'Sim' : 'Não')) || ''; }),
|
|
114
|
+
header: 'Pessoa Politicamente Exposta'
|
|
113
115
|
},
|
|
114
116
|
{
|
|
115
|
-
title: getField(
|
|
116
|
-
|
|
117
|
+
title: getField('nomeFantasia', finderResponse) ||
|
|
118
|
+
XPathUtils.select('string(//RFB/nome/@fantasia)', rfbResponse),
|
|
119
|
+
header: 'Nome Fantasia'
|
|
117
120
|
},
|
|
118
121
|
{
|
|
119
|
-
title: getField(
|
|
120
|
-
|
|
122
|
+
title: getField('receitaStatus', finderResponse) ||
|
|
123
|
+
getFieldRfb('situacao', rfbResponse),
|
|
124
|
+
header: 'Status da Receita'
|
|
121
125
|
},
|
|
122
126
|
{
|
|
123
|
-
title: getField(
|
|
124
|
-
|
|
127
|
+
title: getField('dataReceitaStatus', finderResponse) ||
|
|
128
|
+
getFieldRfb('dataSituacao', rfbResponse),
|
|
129
|
+
header: 'Data do Status na Receita'
|
|
125
130
|
},
|
|
126
131
|
{
|
|
127
|
-
title: getField(
|
|
128
|
-
header:
|
|
132
|
+
title: getField('tipoEmpresa', finderResponse),
|
|
133
|
+
header: 'Tipo da Empresa'
|
|
129
134
|
},
|
|
130
135
|
{
|
|
131
|
-
title: getField(
|
|
132
|
-
|
|
136
|
+
title: getField('cnaeDescricao', finderResponse) ||
|
|
137
|
+
getFieldRfb('atividade-economica', rfbResponse),
|
|
138
|
+
header: 'Atividade Econômica'
|
|
133
139
|
},
|
|
134
140
|
{
|
|
135
|
-
title: getField(
|
|
136
|
-
header:
|
|
141
|
+
title: getField('naturezaJuridica', finderResponse),
|
|
142
|
+
header: 'Natureza Jurídica'
|
|
137
143
|
},
|
|
138
144
|
{
|
|
139
|
-
title: getField(
|
|
140
|
-
|
|
145
|
+
title: getField('dataAbertura', finderResponse) ||
|
|
146
|
+
getFieldRfb('data-abertura', rfbResponse),
|
|
147
|
+
header: 'Data de Abertura'
|
|
141
148
|
},
|
|
142
149
|
{
|
|
143
|
-
title: getField(
|
|
144
|
-
header:
|
|
150
|
+
title: getField('idadeEmpresa', finderResponse),
|
|
151
|
+
header: 'Idade da Empresa'
|
|
145
152
|
},
|
|
146
153
|
{
|
|
147
|
-
title: isPF && getField(
|
|
148
|
-
header: isPF ?
|
|
154
|
+
title: isPF && getField('faixaIdade', finderResponse),
|
|
155
|
+
header: isPF ? 'Faixa de Idade' : 'Faixa de Idade da Empresa'
|
|
149
156
|
},
|
|
150
157
|
{
|
|
151
|
-
title: getField(
|
|
152
|
-
header:
|
|
158
|
+
title: getField('quantidadeFuncionarios', finderResponse),
|
|
159
|
+
header: 'Quantidade de Funcionários'
|
|
153
160
|
},
|
|
154
161
|
{
|
|
155
|
-
title: getField(
|
|
156
|
-
header:
|
|
162
|
+
title: getField('faixaFuncionarios', finderResponse),
|
|
163
|
+
header: 'Faixa de Funcionários'
|
|
157
164
|
},
|
|
158
165
|
{
|
|
159
|
-
title: getField(
|
|
160
|
-
header:
|
|
166
|
+
title: getField('porteEmpresa', finderResponse),
|
|
167
|
+
header: 'Porte da Empresa'
|
|
161
168
|
},
|
|
162
169
|
{
|
|
163
|
-
title: formatMoney(getField(
|
|
164
|
-
|
|
165
|
-
|
|
170
|
+
title: formatMoney(getField('capitalSocial', finderResponse) ||
|
|
171
|
+
getFieldRfb('capitalSocial', rfbResponse)),
|
|
172
|
+
header: 'Capital Social'
|
|
173
|
+
}
|
|
166
174
|
].filter(function (card) { return card.title; }),
|
|
167
175
|
products: [
|
|
168
176
|
{
|
|
169
|
-
title:
|
|
170
|
-
onClick: handleOnClick(
|
|
171
|
-
price: productsPrices === null || productsPrices === void 0 ? void 0 : productsPrices.scr
|
|
177
|
+
title: 'Consultar SCR',
|
|
178
|
+
onClick: handleOnClick('scr'),
|
|
179
|
+
price: productsPrices === null || productsPrices === void 0 ? void 0 : productsPrices.scr
|
|
172
180
|
},
|
|
173
181
|
{
|
|
174
|
-
title:
|
|
182
|
+
title: 'Consultar Veículos',
|
|
175
183
|
price: productsPrices === null || productsPrices === void 0 ? void 0 : productsPrices.veiculos,
|
|
176
|
-
onClick: handleOnClick(
|
|
177
|
-
hide: (_b = consultasComplementares === null || consultasComplementares === void 0 ? void 0 : consultasComplementares.veiculos) === null || _b === void 0 ? void 0 : _b.consultaRealizada
|
|
184
|
+
onClick: handleOnClick('veiculos'),
|
|
185
|
+
hide: (_b = consultasComplementares === null || consultasComplementares === void 0 ? void 0 : consultasComplementares.veiculos) === null || _b === void 0 ? void 0 : _b.consultaRealizada
|
|
178
186
|
},
|
|
179
187
|
{
|
|
180
|
-
title:
|
|
188
|
+
title: 'Consultar Pefin/Refin Boa Vista',
|
|
181
189
|
price: productsPrices === null || productsPrices === void 0 ? void 0 : productsPrices.refinBoaVista,
|
|
182
|
-
onClick: handleOnClick(
|
|
183
|
-
hide: (_c = consultasComplementares === null || consultasComplementares === void 0 ? void 0 : consultasComplementares.refinBoaVista) === null || _c === void 0 ? void 0 : _c.consultaRealizada
|
|
190
|
+
onClick: handleOnClick('refinBoaVista'),
|
|
191
|
+
hide: (_c = consultasComplementares === null || consultasComplementares === void 0 ? void 0 : consultasComplementares.refinBoaVista) === null || _c === void 0 ? void 0 : _c.consultaRealizada
|
|
184
192
|
},
|
|
185
193
|
{
|
|
186
|
-
title:
|
|
194
|
+
title: 'Consultar Score Boa Vista',
|
|
187
195
|
price: productsPrices === null || productsPrices === void 0 ? void 0 : productsPrices.scoreBoaVista,
|
|
188
|
-
onClick: handleOnClick(
|
|
189
|
-
hide: (_d = consultasComplementares === null || consultasComplementares === void 0 ? void 0 : consultasComplementares.scoreBoaVista) === null || _d === void 0 ? void 0 : _d.consultaRealizada
|
|
196
|
+
onClick: handleOnClick('scoreBoaVista'),
|
|
197
|
+
hide: (_d = consultasComplementares === null || consultasComplementares === void 0 ? void 0 : consultasComplementares.scoreBoaVista) === null || _d === void 0 ? void 0 : _d.consultaRealizada
|
|
190
198
|
},
|
|
191
199
|
{
|
|
192
|
-
title:
|
|
200
|
+
title: 'Consultar Pefin/Refin Serasa',
|
|
193
201
|
price: productsPrices === null || productsPrices === void 0 ? void 0 : productsPrices.refinSerasa,
|
|
194
|
-
onClick: handleOnClick(
|
|
195
|
-
hide: (_e = consultasComplementares === null || consultasComplementares === void 0 ? void 0 : consultasComplementares.refinSerasa) === null || _e === void 0 ? void 0 : _e.consultaRealizada
|
|
202
|
+
onClick: handleOnClick('refinSerasa'),
|
|
203
|
+
hide: (_e = consultasComplementares === null || consultasComplementares === void 0 ? void 0 : consultasComplementares.refinSerasa) === null || _e === void 0 ? void 0 : _e.consultaRealizada
|
|
196
204
|
},
|
|
197
205
|
{
|
|
198
|
-
title:
|
|
206
|
+
title: 'Consultar Imóveis SP Capital',
|
|
199
207
|
price: productsPrices === null || productsPrices === void 0 ? void 0 : productsPrices.imoveis,
|
|
200
|
-
onClick: handleOnClick(
|
|
201
|
-
hide: !isPF || ((_f = consultasComplementares === null || consultasComplementares === void 0 ? void 0 : consultasComplementares.imoveis) === null || _f === void 0 ? void 0 : _f.consultaRealizada)
|
|
202
|
-
}
|
|
203
|
-
]
|
|
208
|
+
onClick: handleOnClick('imoveis'),
|
|
209
|
+
hide: !isPF || ((_f = consultasComplementares === null || consultasComplementares === void 0 ? void 0 : consultasComplementares.imoveis) === null || _f === void 0 ? void 0 : _f.consultaRealizada)
|
|
210
|
+
}
|
|
211
|
+
]
|
|
204
212
|
}, cards = _h.cards, products = _h.products;
|
|
205
213
|
return { cards: cards, products: products };
|
|
206
214
|
};
|