@credithub/harlan-components 1.100.3 → 1.100.5
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 +2 -8
- 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/liminar/useLiminarHistory.js +15 -14
- package/dist/components/pep/pep.js +1 -1
- 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 +2 -2
- package/lib/cjs/index.js +283 -287
- package/lib/esm/index.js +283 -287
- 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("virtual-tag", 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("virtual-tag", 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("virtual-tag", 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("virtual-tag", 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,11 +27,9 @@ 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';
|
|
31
30
|
import { formatMoney } from '../../utils/number';
|
|
32
31
|
import { formatDocument } from '../../utils/string';
|
|
33
32
|
import { format } from 'date-fns';
|
|
34
|
-
import { WarningCircle } from 'phosphor-react';
|
|
35
33
|
import React, { useContext, useEffect } from 'react';
|
|
36
34
|
import styled, { keyframes } from 'styled-components';
|
|
37
35
|
import Section from '../interface/section';
|
|
@@ -133,12 +131,8 @@ var ConsultaSimplesSection = function (_a) {
|
|
|
133
131
|
}); })
|
|
134
132
|
});
|
|
135
133
|
}, [posthog, pendencias]);
|
|
136
|
-
return (React.createElement(Section, __assign({ title: "Consulta Simples", subtitle: "Consulta de informa\u00E7\u00F5es do documento.", description: React.createElement(
|
|
137
|
-
|
|
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"))),
|
|
134
|
+
return (React.createElement(Section, __assign({ title: "Consulta Simples", subtitle: "Consulta de informa\u00E7\u00F5es do documento.", description: React.createElement("virtual-tag", null,
|
|
135
|
+
React.createElement(StatusMessage, null, format(new Date(), "dd/MM/yyyy 'às' HH:mm")),
|
|
142
136
|
React.createElement(StatusMessage, { type: "found" }, formatDocument(documento)),
|
|
143
137
|
isError && (ctx === null || ctx === void 0 ? void 0 : ctx.error) && (React.createElement(StatusMessage, { type: statusType }, ctx.error.message)),
|
|
144
138
|
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("virtual-tag", 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("virtual-tag", 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("virtual-tag", 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("virtual-tag", 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("virtual-tag", 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("virtual-tag", 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("virtual-tag", 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))),
|
|
@@ -370,7 +370,7 @@ var Liminar = function (_a) {
|
|
|
370
370
|
setEmailModalMessage("Falha ao enviar e-mail: ".concat(emailError.message));
|
|
371
371
|
}
|
|
372
372
|
else {
|
|
373
|
-
setEmailModalMessage(React.createElement(
|
|
373
|
+
setEmailModalMessage(React.createElement("virtual-tag", null,
|
|
374
374
|
"Os detalhes dos protestos ocultados foram enviados para seu e-mail.",
|
|
375
375
|
' ',
|
|
376
376
|
React.createElement("br", null),
|
|
@@ -390,10 +390,10 @@ var Liminar = function (_a) {
|
|
|
390
390
|
}); };
|
|
391
391
|
if (!isFinancial || !shouldRender)
|
|
392
392
|
return null;
|
|
393
|
-
return (React.createElement(
|
|
393
|
+
return (React.createElement("virtual-tag", null,
|
|
394
394
|
React.createElement(Section, { title: React.createElement(TitleWithTooltip, null,
|
|
395
395
|
"Liminares para Remo\u00E7\u00E3o de Protesto",
|
|
396
|
-
!!processosComAssuntoValido.length && ready && (React.createElement(Tooltip, { icon: renderTooltipIcon(), content: React.createElement(
|
|
396
|
+
!!processosComAssuntoValido.length && ready && (React.createElement(Tooltip, { icon: renderTooltipIcon(), content: React.createElement("virtual-tag", null,
|
|
397
397
|
tooltipMessage,
|
|
398
398
|
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: {
|
|
399
399
|
fontSize: 13,
|
|
@@ -406,9 +406,9 @@ var Liminar = function (_a) {
|
|
|
406
406
|
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';
|
|
407
407
|
var variant = msg === 'Encontrado' ? 'error' : 'default';
|
|
408
408
|
return {
|
|
409
|
-
children: React.createElement(
|
|
409
|
+
children: React.createElement("virtual-tag", null),
|
|
410
410
|
variant: variant,
|
|
411
|
-
description: (React.createElement(
|
|
411
|
+
description: (React.createElement("virtual-tag", null,
|
|
412
412
|
React.createElement(StatusMessage, { type: variant }, msg),
|
|
413
413
|
origensDetectadas.map(function (o) { return (React.createElement(StatusMessage, { key: o, type: variant }, o)); }))),
|
|
414
414
|
actions: (React.createElement("div", { style: { textAlign: 'center' }, onClick: function (e) { return e.stopPropagation(); } }, isFinancial &&
|
|
@@ -1,14 +1,3 @@
|
|
|
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
1
|
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
13
2
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
14
3
|
if (ar || !(i in from)) {
|
|
@@ -30,24 +19,36 @@ export function useLiminarHistory(_a) {
|
|
|
30
19
|
return;
|
|
31
20
|
// Deriva o boolean do conteúdo de types para evitar falsos positivos
|
|
32
21
|
var effectiveTypes = Array.isArray(types) && indicioDeLiminar ? types : [];
|
|
22
|
+
// Indício só é verdadeiro se houver pelo menos um type válido
|
|
33
23
|
var safeIndicio = effectiveTypes.length > 0;
|
|
24
|
+
// Fingerprint para deduplicação de envios
|
|
34
25
|
var fingerprint = JSON.stringify({
|
|
35
26
|
documento: documento,
|
|
36
|
-
indicioDeLiminar: safeIndicio,
|
|
27
|
+
indicioDeLiminar: safeIndicio ? 1 : 0, // importante: 0/1 para evitar "false" como string truthy no backend
|
|
37
28
|
types: __spreadArray([], effectiveTypes, true).sort(),
|
|
38
29
|
protestKeys: protestKeys,
|
|
39
30
|
processIds: processIds
|
|
40
31
|
});
|
|
41
32
|
if (fingerprint === lastFingerprint.current)
|
|
42
33
|
return;
|
|
43
|
-
|
|
34
|
+
// Payload final: envia 0/1 e omite chaves vazias
|
|
35
|
+
var payload = {
|
|
36
|
+
documento: documento,
|
|
37
|
+
indicioDeLiminar: safeIndicio ? 1 : 0 // evita "false" string em form-urlencoded/FormData
|
|
38
|
+
};
|
|
39
|
+
if (effectiveTypes.length)
|
|
40
|
+
payload.types = effectiveTypes;
|
|
41
|
+
if (protestKeys.length)
|
|
42
|
+
payload.protestKeys = protestKeys;
|
|
43
|
+
if (processIds.length)
|
|
44
|
+
payload.processIds = processIds;
|
|
44
45
|
insertHistory(payload);
|
|
45
46
|
lastFingerprint.current = fingerprint;
|
|
46
47
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
47
48
|
}, [
|
|
48
49
|
documento,
|
|
49
50
|
indicioDeLiminar,
|
|
50
|
-
types.join(','),
|
|
51
|
+
Array.isArray(types) ? types.join(',') : '',
|
|
51
52
|
protestKeys.join(','),
|
|
52
53
|
processIds.join(','),
|
|
53
54
|
enabled
|
|
@@ -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("virtual-tag", null),
|
|
29
29
|
description: 'Erro ao processar o documento.'
|
|
30
30
|
};
|
|
31
31
|
}
|
|
@@ -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("virtual-tag", 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("virtual-tag", 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("virtual-tag", 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("virtual-tag", 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("virtual-tag", 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("virtual-tag", 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("virtual-tag", 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("virtual-tag", 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("virtual-tag", 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("virtual-tag", 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("virtual-tag", 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("virtual-tag", null),
|
|
49
|
+
description: (React.createElement("virtual-tag", null,
|
|
50
50
|
React.createElement(StatusMessage, { type: "error" }, message))),
|
|
51
|
-
actions: (React.createElement(
|
|
51
|
+
actions: (React.createElement("virtual-tag", 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("virtual-tag", 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("virtual-tag", 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("virtual-tag", 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("virtual-tag", 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 },
|
|
@@ -6,9 +6,9 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
6
6
|
import { createGlobalStyle } from 'styled-components';
|
|
7
7
|
import { Helmet } from 'react-helmet';
|
|
8
8
|
import React from 'react';
|
|
9
|
-
var GlobalStyle = createGlobalStyle(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n /* Google Fonts s\u00E3o carregados via Helmet */\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"], ["\n /* Google Fonts s\u00E3o carregados via Helmet */\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
|
+
var GlobalStyle = createGlobalStyle(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n /* Google Fonts s\u00E3o carregados via Helmet */\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\n virtual-tag {\n display: contents;\n }\n"], ["\n /* Google Fonts s\u00E3o carregados via Helmet */\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\n virtual-tag {\n display: contents;\n }\n"])));
|
|
10
10
|
// Componente que combina GlobalStyle com Helmet para fontes
|
|
11
|
-
var GlobalStyleWithHelmet = function () { return (React.createElement(
|
|
11
|
+
var GlobalStyleWithHelmet = function () { return (React.createElement("virtual-tag", null,
|
|
12
12
|
React.createElement(Helmet, null,
|
|
13
13
|
React.createElement("link", { href: "https://fonts.googleapis.com/css2?family=Open+Sans+Condensed:wght@300;400;500;600;700&display=swap", rel: "stylesheet" })),
|
|
14
14
|
React.createElement(GlobalStyle, null))); };
|