@credithub/harlan-components 1.101.0 → 1.101.2
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/components/ccf/ccfList.js +1 -1
- package/dist/components/chart/chartContent.js +1 -1
- package/dist/components/chart/chartSystem.js +1 -1
- package/dist/components/common/button.js +1 -1
- package/dist/components/consultaSimplesSection/consultaSimplesSection.js +8 -2
- package/dist/components/dossie/dossie.js +1 -1
- package/dist/components/dossie/generativeAi/generativeAi.js +1 -1
- package/dist/components/dossie/sliderCompanyName/reclameAqui/carousel.js +1 -1
- package/dist/components/dossie/summary/summary.js +1 -1
- package/dist/components/imoveis/imoveisService.js +1 -1
- package/dist/components/interface/loading.js +1 -1
- package/dist/components/interface/section.js +1 -1
- package/dist/components/liminar/liminar.js +5 -5
- package/dist/components/pep/pep.js +1 -1
- package/dist/components/processos-juridicos/processosJuridicosList.js +8 -4
- package/dist/components/protestos/protestos.js +1 -1
- package/dist/components/protestos/protestosCategory.js +1 -1
- package/dist/components/protestos/protestosList.js +2 -2
- package/dist/components/refinBoaVista/refinBoaVista.js +1 -1
- package/dist/components/refinSerasa/refinSerasa.js +1 -1
- package/dist/components/score/scoreService.js +2 -2
- package/dist/components/scoreSerasa/scoreSerasa.js +1 -1
- package/dist/components/scr/scr.js +2 -2
- package/dist/components/section.js +5 -5
- package/dist/components/veiculos/veiculos.js +1 -1
- package/dist/consultaSimples.js +1 -1
- package/dist/styles/globalStyle.js +3 -3
- package/lib/cjs/index.js +54 -45
- package/lib/esm/index.js +54 -45
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ var CCFItem = memo(function (_a) {
|
|
|
10
10
|
var distance = formatDistance(startDate, endDate, {
|
|
11
11
|
locale: ptBR
|
|
12
12
|
});
|
|
13
|
-
return (React.createElement(
|
|
13
|
+
return (React.createElement(React.Fragment, null,
|
|
14
14
|
React.createElement(AddCffField, { name: "Banco", value: ccf.banco }),
|
|
15
15
|
React.createElement(AddCffField, { name: "Ag\u00EAncia", value: ccf.agencia }),
|
|
16
16
|
React.createElement(AddCffField, { name: "Qtde. Ocorr\u00EAncias", value: ccf.quantidadeDeOcorrencias }),
|
|
@@ -36,7 +36,7 @@ var ChartContainer = styled.div(templateObject_2 || (templateObject_2 = __makeTe
|
|
|
36
36
|
var ChartContentBase = function (_a) {
|
|
37
37
|
var dataInput = _a.dataInput;
|
|
38
38
|
var windowWidth = useWindowSize().width;
|
|
39
|
-
return (React.createElement(
|
|
39
|
+
return (React.createElement(React.Fragment, null,
|
|
40
40
|
React.createElement(ResponsiveGrid, { desktop: "1fr 2fr" },
|
|
41
41
|
React.createElement(ChartContainer, { windowWidth: windowWidth, chartType: "pie" },
|
|
42
42
|
React.createElement(Title, null, "Resumo de Ocorr\u00EAncias"),
|
|
@@ -278,7 +278,7 @@ var ChartSystem = function (_a) {
|
|
|
278
278
|
? (ultimaOcorrenciaSerasa !== null && ultimaOcorrenciaSerasa !== void 0 ? ultimaOcorrenciaSerasa : undefined)
|
|
279
279
|
: undefined })));
|
|
280
280
|
}, isError: function (err) { return ({
|
|
281
|
-
children: React.createElement(
|
|
281
|
+
children: React.createElement(React.Fragment, null),
|
|
282
282
|
description: (React.createElement(StatusMessage, { type: "error" },
|
|
283
283
|
"Erro ao realizar a an\u00E1lise: ",
|
|
284
284
|
err.message)),
|
|
@@ -71,7 +71,7 @@ var Button = function (_a) {
|
|
|
71
71
|
var children = _a.children, className = _a.className, smallContent = _a.smallContent, isLoading = _a.isLoading, props = __rest(_a, ["children", "className", "smallContent", "isLoading"]);
|
|
72
72
|
var buttonClassName = classNames(className);
|
|
73
73
|
return (React.createElement(StyledButton, __assign({ className: buttonClassName, isLoading: isLoading }, props),
|
|
74
|
-
isLoading ? (React.createElement(
|
|
74
|
+
isLoading ? (React.createElement(React.Fragment, null,
|
|
75
75
|
React.createElement("span", null, children),
|
|
76
76
|
React.createElement(RotatingSpinner, { size: 20, weight: "bold" }))) : (React.createElement("span", null, children)),
|
|
77
77
|
!isLoading && smallContent && (React.createElement(SmallContent, null, smallContent))));
|
|
@@ -27,9 +27,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
27
27
|
import ConsultaSimplesIcon from '../../assets/icones/consultaSimples';
|
|
28
28
|
import { useGlobalData } from '../../contexts/globalDataContext';
|
|
29
29
|
import { usePostHog } from '../../contexts/PostHogContext';
|
|
30
|
+
import theme from '../../styles/theme';
|
|
30
31
|
import { formatMoney } from '../../utils/number';
|
|
31
32
|
import { formatDocument } from '../../utils/string';
|
|
32
33
|
import { format } from 'date-fns';
|
|
34
|
+
import { WarningCircle } from 'phosphor-react';
|
|
33
35
|
import React, { useContext, useEffect } from 'react';
|
|
34
36
|
import styled, { keyframes } from 'styled-components';
|
|
35
37
|
import Section from '../interface/section';
|
|
@@ -131,8 +133,12 @@ var ConsultaSimplesSection = function (_a) {
|
|
|
131
133
|
}); })
|
|
132
134
|
});
|
|
133
135
|
}, [posthog, pendencias]);
|
|
134
|
-
return (React.createElement(Section, __assign({ title: "Consulta Simples", subtitle: "Consulta de informa\u00E7\u00F5es do documento.", description: React.createElement(
|
|
135
|
-
React.createElement(StatusMessage,
|
|
136
|
+
return (React.createElement(Section, __assign({ title: "Consulta Simples", subtitle: "Consulta de informa\u00E7\u00F5es do documento.", description: React.createElement(React.Fragment, null,
|
|
137
|
+
ctimeDate ? (React.createElement(StatusMessage, { type: "warning" },
|
|
138
|
+
React.createElement(WarningCircle, { weight: "fill", size: 18, color: theme.colors.cinzaEscuro, style: { marginRight: 6, verticalAlign: 'text-bottom' } }),
|
|
139
|
+
"Informa\u00E7\u00F5es referem-se a",
|
|
140
|
+
' ',
|
|
141
|
+
format(displayDate, "dd/MM/yyyy 'às' HH:mm"))) : (React.createElement(StatusMessage, null, format(displayDate, "dd/MM/yyyy 'às' HH:mm"))),
|
|
136
142
|
React.createElement(StatusMessage, { type: "found" }, formatDocument(documento)),
|
|
137
143
|
isError && (ctx === null || ctx === void 0 ? void 0 : ctx.error) && (React.createElement(StatusMessage, { type: statusType }, ctx.error.message)),
|
|
138
144
|
pendencias.map(function (item) {
|
|
@@ -132,7 +132,7 @@ var Dossie = function (_a) {
|
|
|
132
132
|
var isPF = (documento === null || documento === void 0 ? void 0 : documento.length) === 11;
|
|
133
133
|
var name = getCompanyName(isPF, data, rfbResponse);
|
|
134
134
|
var document = isPF ? formatCpf(documento) : formatCnpj(documento);
|
|
135
|
-
return (React.createElement(
|
|
135
|
+
return (React.createElement(React.Fragment, null,
|
|
136
136
|
React.createElement(DossieContainer, null,
|
|
137
137
|
React.createElement(DossieContent, null,
|
|
138
138
|
React.createElement(ReclameAquiCarousel, { documento: document, nome: name, companies: reclameAquiCompanies }),
|
|
@@ -228,7 +228,7 @@ var GenerativeAI = function (_a) {
|
|
|
228
228
|
React.createElement(Title, null, "Assistente artificial de an\u00E1lise de cr\u00E9dito"),
|
|
229
229
|
React.createElement(BetaTag, null, "beta")),
|
|
230
230
|
React.createElement(BtnWrapper, { onClick: toggleOpen }, isOpen ? React.createElement(ChevronUp, null) : React.createElement(ChevronDown, null)))),
|
|
231
|
-
isOpen && (React.createElement(
|
|
231
|
+
isOpen && (React.createElement(React.Fragment, null,
|
|
232
232
|
React.createElement(Container, null,
|
|
233
233
|
(summaryError || chatError) && (React.createElement("div", null,
|
|
234
234
|
React.createElement(StatusMessage, { type: "error" },
|
|
@@ -41,7 +41,7 @@ var Carousel = function (_a) {
|
|
|
41
41
|
return (React.createElement(DotsContainer, null, slidesArray.map(function (_, idx) { return (React.createElement("button", { key: idx, className: currentIndex === idx ? 'active' : '', onClick: function () { return setCurrentIndex(idx); }, "aria-label": "Ir para o slide ".concat(idx + 1) })); })));
|
|
42
42
|
}, [pagination, total, currentIndex, slidesArray]);
|
|
43
43
|
return (React.createElement(CarouselWrapper, null,
|
|
44
|
-
showArrows && (React.createElement(
|
|
44
|
+
showArrows && (React.createElement(React.Fragment, null,
|
|
45
45
|
React.createElement(ArrowWrapper, { position: "left" },
|
|
46
46
|
React.createElement(ArrowButton, { onClick: isRTL ? goNext : goPrev, "aria-label": "Slide anterior" }, renderArrowIcon ? (renderArrowIcon({ type: 'PREV' })) : (React.createElement(DefaultArrowIcon, { type: "PREV" })))),
|
|
47
47
|
React.createElement(ArrowWrapper, { position: "right" },
|
|
@@ -22,7 +22,7 @@ export var Summary = function (_a) {
|
|
|
22
22
|
var _b = useCardsAndProducts({
|
|
23
23
|
finderResponse: finderResponse
|
|
24
24
|
}), cards = _b.cards, products = _b.products, isModalOpen = _b.isModalOpen, closeModal = _b.closeModal, isScrModalOpen = _b.isScrModalOpen, setScrModalOpen = _b.setScrModalOpen, setConsultasComplementares = _b.setConsultasComplementares;
|
|
25
|
-
return (React.createElement(
|
|
25
|
+
return (React.createElement(React.Fragment, null,
|
|
26
26
|
React.createElement(ContainerSummary, { className: "credithub-container-summary" },
|
|
27
27
|
React.createElement(ContentSummary, { className: "credithub-content-summary" }, cards.map(function (card, index) { return (React.createElement(FieldSummary, { key: index, fullRow: card.header === 'Nome' || card.header === 'Nome Da Mãe' },
|
|
28
28
|
React.createElement(AddItemField, { name: card.header, value: card.title }))); })),
|
|
@@ -80,7 +80,7 @@ var ConsultaImoveis = function (_a) {
|
|
|
80
80
|
React.createElement(AddItemField, { name: "Valor do IPTU", value: formatMoney((_f = iptu.VALOR) === null || _f === void 0 ? void 0 : _f.IPTU) }),
|
|
81
81
|
React.createElement(AddItemField, { name: "Valor do Im\u00F3vel", value: formatMoney((_g = iptu.VALOR) === null || _g === void 0 ? void 0 : _g.CONSTRUCAO) })));
|
|
82
82
|
}))); }, isError: function (err) { return ({
|
|
83
|
-
children: React.createElement(
|
|
83
|
+
children: React.createElement(React.Fragment, null),
|
|
84
84
|
description: (React.createElement(StatusMessage, { type: "error" },
|
|
85
85
|
"Erro ao realizar a consulta: ",
|
|
86
86
|
err.message)),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export default function Loading() {
|
|
3
|
-
return (React.createElement(
|
|
3
|
+
return (React.createElement(React.Fragment, null,
|
|
4
4
|
React.createElement("span", { className: "saving" },
|
|
5
5
|
React.createElement("span", null, " ."),
|
|
6
6
|
React.createElement("span", null, "."),
|
|
@@ -21,7 +21,7 @@ var Section = function (_a) {
|
|
|
21
21
|
var sectionClass = classNames(className);
|
|
22
22
|
var sectionContentClass = classNames(contentClassName);
|
|
23
23
|
return (React.createElement(SectionContaner, { className: sectionClass },
|
|
24
|
-
React.createElement(Header, { title: title, subtitle: subtitle, description: description, loadingProps: loadingProps, icon: icon, variant: variant, actions: React.createElement(
|
|
24
|
+
React.createElement(Header, { title: title, subtitle: subtitle, description: description, loadingProps: loadingProps, icon: icon, variant: variant, actions: React.createElement(React.Fragment, null,
|
|
25
25
|
React.createElement(BtnWrapper, null,
|
|
26
26
|
React.createElement(PrintIcon, { onClick: onClickPrint })),
|
|
27
27
|
children && (React.createElement(BtnWrapper, { hidden: variant === 'loading', onClick: toggleOpen }, isOpen ? React.createElement(ChevronUp, null) : React.createElement(ChevronDown, null))),
|
|
@@ -392,7 +392,7 @@ var Liminar = function (_a) {
|
|
|
392
392
|
setEmailModalMessage("Falha ao enviar e-mail: ".concat(emailError.message));
|
|
393
393
|
}
|
|
394
394
|
else {
|
|
395
|
-
setEmailModalMessage(React.createElement(
|
|
395
|
+
setEmailModalMessage(React.createElement(React.Fragment, null,
|
|
396
396
|
"Os detalhes dos protestos ocultados foram enviados para seu e-mail.",
|
|
397
397
|
' ',
|
|
398
398
|
React.createElement("br", null),
|
|
@@ -412,10 +412,10 @@ var Liminar = function (_a) {
|
|
|
412
412
|
}); };
|
|
413
413
|
if (!isFinancial || !shouldRender)
|
|
414
414
|
return null;
|
|
415
|
-
return (React.createElement(
|
|
415
|
+
return (React.createElement(React.Fragment, null,
|
|
416
416
|
React.createElement(Section, { title: React.createElement(TitleWithTooltip, null,
|
|
417
417
|
"Liminares para Remo\u00E7\u00E3o de Protesto",
|
|
418
|
-
!!processosComAssuntoValido.length && ready && (React.createElement(Tooltip, { icon: renderTooltipIcon(), content: React.createElement(
|
|
418
|
+
!!processosComAssuntoValido.length && ready && (React.createElement(Tooltip, { icon: renderTooltipIcon(), content: React.createElement(React.Fragment, null,
|
|
419
419
|
tooltipMessage,
|
|
420
420
|
React.createElement("ul", { style: { marginTop: 6, paddingLeft: 18 } }, processosComAssuntoValido.map(function (p) { return (React.createElement("li", { key: p.id, onClick: function () { return scrollToProcesso(p.id); }, style: {
|
|
421
421
|
fontSize: 13,
|
|
@@ -428,9 +428,9 @@ var Liminar = function (_a) {
|
|
|
428
428
|
var msg = (_b = (_a = globalData === null || globalData === void 0 ? void 0 : globalData.liminar) === null || _a === void 0 ? void 0 : _a.message) !== null && _b !== void 0 ? _b : 'Não encontrado';
|
|
429
429
|
var variant = msg === 'Encontrado' ? 'error' : 'default';
|
|
430
430
|
return {
|
|
431
|
-
children: React.createElement(
|
|
431
|
+
children: React.createElement(React.Fragment, null),
|
|
432
432
|
variant: variant,
|
|
433
|
-
description: (React.createElement(
|
|
433
|
+
description: (React.createElement(React.Fragment, null,
|
|
434
434
|
React.createElement(StatusMessage, { type: variant }, msg),
|
|
435
435
|
origensDetectadas.map(function (o) { return (React.createElement(StatusMessage, { key: o, type: variant }, o)); }))),
|
|
436
436
|
actions: (React.createElement("div", { style: { textAlign: 'center' }, onClick: function (e) { return e.stopPropagation(); } }, isFinancial &&
|
|
@@ -25,7 +25,7 @@ var PessoaPoliticamenteExposta = function () {
|
|
|
25
25
|
if (!(document instanceof Node)) {
|
|
26
26
|
console.error('O documento não é do tipo Node esperado.');
|
|
27
27
|
return {
|
|
28
|
-
children: React.createElement(
|
|
28
|
+
children: React.createElement(React.Fragment, null),
|
|
29
29
|
description: 'Erro ao processar o documento.'
|
|
30
30
|
};
|
|
31
31
|
}
|
|
@@ -33,6 +33,11 @@ import AddItem from '../common/addItem';
|
|
|
33
33
|
import Button from '../common/button';
|
|
34
34
|
import { Result, ResultContent } from '../interface/result';
|
|
35
35
|
import EnvolvidosList from './envolvidosList';
|
|
36
|
+
var isSigiloso = function (value) {
|
|
37
|
+
if (!value)
|
|
38
|
+
return false;
|
|
39
|
+
return value.trim().toLowerCase().includes('processo sigiloso');
|
|
40
|
+
};
|
|
36
41
|
var AddProcessoJuridicoField = function (_a) {
|
|
37
42
|
var value = _a.value, props = __rest(_a, ["value"]);
|
|
38
43
|
return (React.createElement(AddItem, __assign({}, props, { value: value || 'Não Informado' })));
|
|
@@ -85,10 +90,9 @@ var ProcessosJuridicosList = function (_a) {
|
|
|
85
90
|
}
|
|
86
91
|
}, []);
|
|
87
92
|
return (React.createElement(ResultList, { resultContentStriped: false }, sortedProcessos.map(function (processo, i) { return (React.createElement("div", { key: i },
|
|
88
|
-
React.createElement(ProcessoJuridicoItem, { processo: processo, highlighted: highlightedId === processo.id },
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
: undefined, smallContent: "R$ 1" }, "Consultar Processo")))); })));
|
|
93
|
+
React.createElement(ProcessoJuridicoItem, { processo: processo, highlighted: highlightedId === processo.id }, !isSigiloso(processo.id) && (React.createElement(ConsultarProcessoBtn, { onClick: onClickConsultarProcessoJuridico
|
|
94
|
+
? function () { return onClickConsultarProcessoJuridico(processo.id); }
|
|
95
|
+
: undefined, smallContent: "R$ 1" }, "Consultar Processo"))))); })));
|
|
92
96
|
};
|
|
93
97
|
export default ProcessosJuridicosList;
|
|
94
98
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
@@ -132,7 +132,7 @@ var Protestos = function () {
|
|
|
132
132
|
}))) : null;
|
|
133
133
|
var variant = registros ? 'error' : 'default';
|
|
134
134
|
return {
|
|
135
|
-
children: React.createElement(
|
|
135
|
+
children: React.createElement(React.Fragment, null, children),
|
|
136
136
|
variant: variant,
|
|
137
137
|
description: (React.createElement(StatusMessage, { type: registros ? 'error' : 'default' }, registros
|
|
138
138
|
? registros === 1
|
|
@@ -32,7 +32,7 @@ import Content from '../common/content';
|
|
|
32
32
|
var ProtestosCategory = function (_a) {
|
|
33
33
|
var registros = _a.registros, title = _a.title, subtitle = _a.subtitle, children = _a.children, rest = __rest(_a, ["registros", "title", "subtitle", "children"]);
|
|
34
34
|
var _b = useToggle(), isOpen = _b[0], toggleOpen = _b[1];
|
|
35
|
-
var defaultHeaderActions = (React.createElement(
|
|
35
|
+
var defaultHeaderActions = (React.createElement(React.Fragment, null,
|
|
36
36
|
React.createElement(BtnWrapper, { onClick: toggleOpen }, isOpen ? React.createElement(ChevronUp, null) : React.createElement(ChevronDown, null))));
|
|
37
37
|
return (React.createElement("div", null,
|
|
38
38
|
React.createElement(Header, __assign({ title: title, subtitle: subtitle, description: React.createElement(StatusMessage, { type: registros ? 'error' : 'default' }, !registros
|
|
@@ -203,14 +203,14 @@ export var ProtestoItem = memo(function (_a) {
|
|
|
203
203
|
var original = protesto.nomeCedente;
|
|
204
204
|
var override = iaOverrides[nm_chave];
|
|
205
205
|
if (override && override.trim() !== '') {
|
|
206
|
-
return (React.createElement(
|
|
206
|
+
return (React.createElement(React.Fragment, null,
|
|
207
207
|
override,
|
|
208
208
|
React.createElement(AIIndicator, null)));
|
|
209
209
|
}
|
|
210
210
|
if (original && original.trim() !== '')
|
|
211
211
|
return original;
|
|
212
212
|
if (isAIData && quemApresentou)
|
|
213
|
-
return (React.createElement(
|
|
213
|
+
return (React.createElement(React.Fragment, null,
|
|
214
214
|
quemApresentou,
|
|
215
215
|
React.createElement(AIIndicator, null)));
|
|
216
216
|
if ((loading || queued) && !quemApresentou)
|
|
@@ -106,7 +106,7 @@ function RefinBoaVista(_a) {
|
|
|
106
106
|
React.createElement(AddItemField, { name: "Telefone Associado", value: pendencia.TelefoneAssociado }),
|
|
107
107
|
React.createElement(AddItemField, { name: "Cidade Associado", value: pendencia.CidadeAssociado }),
|
|
108
108
|
React.createElement(AddItemField, { name: "UF Associado", value: pendencia.UfAssociado }))); }))); }, isError: function (err) { return ({
|
|
109
|
-
children: React.createElement(
|
|
109
|
+
children: React.createElement(React.Fragment, null),
|
|
110
110
|
description: (React.createElement(StatusMessage, { type: "error" },
|
|
111
111
|
"Erro ao realizar a consulta: ",
|
|
112
112
|
err.message)),
|
|
@@ -123,7 +123,7 @@ var RefinSerasa = function (_a) {
|
|
|
123
123
|
React.createElement(AddItemField, { name: "Total de Pend\u00EAncias", value: pendencia.totalpendencias }),
|
|
124
124
|
React.createElement(AddItemField, { name: "Valor Total", value: formatMoney(pendencia.totalvalor) }),
|
|
125
125
|
React.createElement(AddItemField, { name: "Categoria", value: pendencia.categoria }))); }))); }, isError: function (err) { return ({
|
|
126
|
-
children: React.createElement(
|
|
126
|
+
children: React.createElement(React.Fragment, null),
|
|
127
127
|
description: (React.createElement(StatusMessage, { type: "error" },
|
|
128
128
|
"Erro ao realizar a consulta: ",
|
|
129
129
|
err.message)),
|
|
@@ -70,10 +70,10 @@ var ConsultaScore = function (_a) {
|
|
|
70
70
|
React.createElement(AddItemField, { name: "Classifica\u00E7\u00E3o", value: scoreData.classificacao }),
|
|
71
71
|
React.createElement(AddItemField, { name: "An\u00E1lise", value: scoreData.texto }),
|
|
72
72
|
React.createElement(AddItemField, { name: "Status", value: scoreData.status }),
|
|
73
|
-
documento.length > 11 && (React.createElement(
|
|
73
|
+
documento.length > 11 && (React.createElement(React.Fragment, null,
|
|
74
74
|
React.createElement(AddItemField, { name: "Classifica\u00E7\u00E3o Num\u00E9rica", value: scoreData.classificacao_numerica }),
|
|
75
75
|
React.createElement(AddItemField, { name: "Classifica\u00E7\u00E3o Alfab\u00E9tica", value: scoreData.classificacao_alfabetica }))))))); }, isError: function (err) { return ({
|
|
76
|
-
children: React.createElement(
|
|
76
|
+
children: React.createElement(React.Fragment, null),
|
|
77
77
|
description: (React.createElement(StatusMessage, { type: "error" },
|
|
78
78
|
"Erro ao realizar a consulta: ",
|
|
79
79
|
err.message)),
|
|
@@ -73,7 +73,7 @@ var ConsultaScoreSerasa = function (_a) {
|
|
|
73
73
|
React.createElement(AddItemField, { name: "Score", value: String(scoreData.pontuacao) }),
|
|
74
74
|
React.createElement(AddItemField, { name: "Probabilidade de Inadimpl\u00EAncia", value: "".concat(scoreData.probabilidade_inadimplencia, "%") }),
|
|
75
75
|
React.createElement(AddItemField, { name: "An\u00E1lise", value: "DE CADA 100 ".concat(isDocumentoPF(documento) ? 'PESSOAS' : 'EMPRESAS', " CLASSIFICADAS NESTA CLASSE DE SCORE, \u00C9 PROV\u00C1VEL QUE ").concat(Math.floor(inadProb), " APRESENTEM D\u00C9BITOS NO MERCADO NOS PR\u00D3XIMOS 6 MESES.") }))))); }, isError: function (err) { return ({
|
|
76
|
-
children: React.createElement(
|
|
76
|
+
children: React.createElement(React.Fragment, null),
|
|
77
77
|
description: (React.createElement(StatusMessage, { type: "error" },
|
|
78
78
|
"Erro ao realizar a consulta: ",
|
|
79
79
|
err.message)),
|
|
@@ -133,7 +133,7 @@ function ConsultaSCR(_a) {
|
|
|
133
133
|
refetch: function () { },
|
|
134
134
|
Section: Section,
|
|
135
135
|
progress: loadingProgress
|
|
136
|
-
}, title: "SCR", subtitle: "Resumo do Cliente", icon: ScrIcon, description: !error && (React.createElement(StatusMessage, { type: scr ? 'success' : 'default' }, description)), onSuccess: function () { return (React.createElement(
|
|
136
|
+
}, title: "SCR", subtitle: "Resumo do Cliente", icon: ScrIcon, description: !error && (React.createElement(StatusMessage, { type: scr ? 'success' : 'default' }, description)), onSuccess: function () { return (React.createElement(React.Fragment, null,
|
|
137
137
|
React.createElement(Result, null,
|
|
138
138
|
React.createElement(ResultContent, { desktop: "repeat(4, 1fr)", tablet: "repeat(3, 1fr)", mobile: "1fr 1fr" }, Array.isArray(basicData)
|
|
139
139
|
? basicData.map(function (data) { return (React.createElement(AddItemField, { key: data.label, name: data.label, value: data.value })); })
|
|
@@ -198,7 +198,7 @@ function ConsultaSCR(_a) {
|
|
|
198
198
|
});
|
|
199
199
|
}); } }, "Baixar relat\u00F3rio detalhado"))),
|
|
200
200
|
React.createElement(ResumosWrapper, { isOpen: isOpen }))); }, isError: function (err) { return ({
|
|
201
|
-
children: React.createElement(
|
|
201
|
+
children: React.createElement(React.Fragment, null),
|
|
202
202
|
description: (React.createElement(StatusMessage, { type: "error" },
|
|
203
203
|
"Erro ao realizar a consulta: ",
|
|
204
204
|
err.message)),
|
|
@@ -45,13 +45,13 @@ var Section = forwardRef(function (_a, ref) {
|
|
|
45
45
|
? err.message
|
|
46
46
|
: 'Problemas de comunicação, tente novamente.';
|
|
47
47
|
return {
|
|
48
|
-
children: React.createElement(
|
|
49
|
-
description: (React.createElement(
|
|
48
|
+
children: React.createElement(React.Fragment, null),
|
|
49
|
+
description: (React.createElement(React.Fragment, null,
|
|
50
50
|
React.createElement(StatusMessage, { type: "error" }, message))),
|
|
51
|
-
actions: (React.createElement(
|
|
51
|
+
actions: (React.createElement(React.Fragment, null, (ctx === null || ctx === void 0 ? void 0 : ctx.refetch) && (React.createElement(ButtonWrapper, null,
|
|
52
52
|
React.createElement(Button, { onClick: function () { return ctx.refetch(); } }, "Tentar Novamente")))))
|
|
53
53
|
};
|
|
54
|
-
} : _b, _c = _a.onLoading, onLoading = _c === void 0 ? function () { return React.createElement(
|
|
54
|
+
} : _b, _c = _a.onLoading, onLoading = _c === void 0 ? function () { return React.createElement(React.Fragment, null); } : _c, ctx = _a.ctx, className = _a.className, _d = _a.hideHeader, hideHeader = _d === void 0 ? false : _d, _e = _a.minimized, minimized = _e === void 0 ? false : _e, headerProps = __rest(_a, ["onSuccess", "isError", "onLoading", "ctx", "className", "hideHeader", "minimized"]);
|
|
55
55
|
var _f = useToggle(!minimized), isOpen = _f[0], toggleOpen = _f[1];
|
|
56
56
|
if (!ctx)
|
|
57
57
|
return null;
|
|
@@ -76,7 +76,7 @@ var Section = forwardRef(function (_a, ref) {
|
|
|
76
76
|
percentage: progress !== null && progress !== void 0 ? progress : 0,
|
|
77
77
|
activeRequests: ctx.activeRequests,
|
|
78
78
|
hidden: false
|
|
79
|
-
}, actions: React.createElement(
|
|
79
|
+
}, actions: React.createElement(React.Fragment, null,
|
|
80
80
|
props.actions,
|
|
81
81
|
renderedResponse && defaultHeaderActions) }))); };
|
|
82
82
|
if (React.isValidElement(renderedResponse)) {
|
|
@@ -100,7 +100,7 @@ var Veiculos = function (_a) {
|
|
|
100
100
|
React.createElement(AddItemField, { name: "Esp\u00E9cie", value: registro.especie }),
|
|
101
101
|
React.createElement(AddItemField, { name: "Combust\u00EDvel", value: registro.combustivel }),
|
|
102
102
|
React.createElement(AddItemField, { name: "Cor", value: registro.cor }))); }))); }, isError: function (err) { return ({
|
|
103
|
-
children: React.createElement(
|
|
103
|
+
children: React.createElement(React.Fragment, null),
|
|
104
104
|
description: (React.createElement(StatusMessage, { type: "error" },
|
|
105
105
|
"Erro ao realizar a consulta: ",
|
|
106
106
|
err.message)),
|
package/dist/consultaSimples.js
CHANGED
|
@@ -46,7 +46,7 @@ var HasCreditsVerification = function (_a) {
|
|
|
46
46
|
// Se não houver resposta ainda ou se a consulta retornar "tem créditos",
|
|
47
47
|
// libera os filhos normalmente (não desmonta nada).
|
|
48
48
|
if (!response || response.document) {
|
|
49
|
-
return React.createElement(
|
|
49
|
+
return React.createElement(React.Fragment, null, children);
|
|
50
50
|
}
|
|
51
51
|
// Caso a resposta indique ausência de créditos, mostra o modal.
|
|
52
52
|
return (React.createElement(Modal, { isOpen: isOpen, onClose: toggle, title: "Aten\u00E7\u00E3o: Voc\u00EA precisa de cr\u00E9ditos!", footer: null },
|
|
@@ -3,12 +3,12 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
3
3
|
return cooked;
|
|
4
4
|
};
|
|
5
5
|
// src/styles/globalStyle.tsx
|
|
6
|
-
import { createGlobalStyle } from 'styled-components';
|
|
7
6
|
import React from 'react';
|
|
8
|
-
|
|
7
|
+
import { createGlobalStyle } from 'styled-components';
|
|
8
|
+
var GlobalStyle = createGlobalStyle(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n /* Reset + fonte padr\u00E3o para toda a aplica\u00E7\u00E3o (inclui modais e portais) */\n *, *::before, *::after {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n font-family: 'Open Sans Condensed', sans-serif;\n }\n\n body {\n -webkit-font-smoothing: antialiased;\n }\n\n /* Oculta bot\u00F5es na impress\u00E3o */\n @media print {\n button,\n [class*=\"Button\"],\n [class^=\"Button\"],\n [class*=\"btn\"],\n [class^=\"btn\"],\n .button,\n .btn {\n display: none !important;\n }\n }\n\n /* Anima\u00E7\u00F5es utilit\u00E1rias */\n @keyframes highlight {\n from {\n background-color: rgba(255, 215, 0, 0.35);\n }\n to {\n background-color: transparent;\n }\n }\n\n .highlighted-process {\n animation: highlight 3s ease-out forwards !important;\n }\n\n @keyframes blueHighlight {\n from {\n background-color: rgba(0, 122, 255, 0.35);\n }\n to {\n background-color: rgba(0, 122, 255, 0.15);\n }\n }\n\n .blue-highlighted-process {\n animation: blueHighlight 2.5s ease-in-out;\n background-color: rgba(0, 122, 255, 0.15);\n transition: background-color 0.3s ease-in-out;\n }\n"], ["\n /* Reset + fonte padr\u00E3o para toda a aplica\u00E7\u00E3o (inclui modais e portais) */\n *, *::before, *::after {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n font-family: 'Open Sans Condensed', sans-serif;\n }\n\n body {\n -webkit-font-smoothing: antialiased;\n }\n\n /* Oculta bot\u00F5es na impress\u00E3o */\n @media print {\n button,\n [class*=\"Button\"],\n [class^=\"Button\"],\n [class*=\"btn\"],\n [class^=\"btn\"],\n .button,\n .btn {\n display: none !important;\n }\n }\n\n /* Anima\u00E7\u00F5es utilit\u00E1rias */\n @keyframes highlight {\n from {\n background-color: rgba(255, 215, 0, 0.35);\n }\n to {\n background-color: transparent;\n }\n }\n\n .highlighted-process {\n animation: highlight 3s ease-out forwards !important;\n }\n\n @keyframes blueHighlight {\n from {\n background-color: rgba(0, 122, 255, 0.35);\n }\n to {\n background-color: rgba(0, 122, 255, 0.15);\n }\n }\n\n .blue-highlighted-process {\n animation: blueHighlight 2.5s ease-in-out;\n background-color: rgba(0, 122, 255, 0.15);\n transition: background-color 0.3s ease-in-out;\n }\n"])));
|
|
9
9
|
// Componente que aplica os estilos globais da aplicação.
|
|
10
10
|
// A fonte "Open Sans Condensed" já é carregada via index.html.
|
|
11
|
-
var GlobalStyleProvider = function () { return (React.createElement(
|
|
11
|
+
var GlobalStyleProvider = function () { return (React.createElement(React.Fragment, null,
|
|
12
12
|
React.createElement(GlobalStyle, null))); };
|
|
13
13
|
export default GlobalStyleProvider;
|
|
14
14
|
var templateObject_1;
|