@credithub/harlan-components 1.75.3 → 1.75.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/assets/btn/btnSend.d.ts +1 -1
- package/dist/assets/btn/btnSend.js +8 -2
- package/dist/assets/btn/buttonAtualizarDadosRfb.d.ts +2 -1
- package/dist/assets/btn/buttonAtualizarDadosRfb.js +3 -3
- package/dist/assets/btn/chevronDown.d.ts +1 -1
- package/dist/assets/btn/chevronDown.js +3 -2
- package/dist/assets/btn/chevronLeft.d.ts +1 -1
- package/dist/assets/btn/chevronLeft.js +3 -2
- package/dist/assets/btn/chevronRight.d.ts +1 -1
- package/dist/assets/btn/chevronRight.js +3 -2
- package/dist/assets/btn/chevronUp.d.ts +1 -1
- package/dist/assets/btn/chevronUp.js +3 -2
- package/dist/assets/btn/closeIcon.d.ts +1 -1
- package/dist/assets/btn/closeIcon.js +3 -2
- package/dist/assets/btn/printIcon.d.ts +1 -1
- package/dist/assets/btn/printIcon.js +3 -2
- package/dist/assets/btn/stopBtn.d.ts +1 -1
- package/dist/assets/btn/stopBtn.js +4 -2
- package/dist/assets/btn/thumbDown.js +6 -2
- package/dist/assets/btn/thumbUp.js +6 -2
- package/dist/assets/icones/chequesSemFundo.js +7 -2
- package/dist/assets/icones/consultaSimples.js +7 -2
- package/dist/assets/icones/contasBancarias.js +7 -2
- package/dist/assets/icones/contato.js +7 -2
- package/dist/assets/icones/credithub.js +10 -2
- package/dist/assets/icones/dividasVencidasSerasa.js +4 -2
- package/dist/assets/icones/dominios.js +4 -2
- package/dist/assets/icones/endereco.d.ts +2 -1
- package/dist/assets/icones/endereco.js +7 -2
- package/dist/assets/icones/iconeEmpresa.js +7 -2
- package/dist/assets/icones/iconePessoa.js +7 -2
- package/dist/assets/icones/imoveis.js +4 -2
- package/dist/assets/icones/pefinRefinBoaVista.js +4 -2
- package/dist/assets/icones/pefinRefinSerasa.js +6 -2
- package/dist/assets/icones/person.js +7 -2
- package/dist/assets/icones/processosJuridicos.js +7 -2
- package/dist/assets/icones/protestos.js +7 -2
- package/dist/assets/icones/protestosCredito.js +7 -2
- package/dist/assets/icones/protestosGerais.js +7 -2
- package/dist/assets/icones/protestosImpostos.js +7 -2
- package/dist/assets/icones/quadroSocietario.js +7 -2
- package/dist/assets/icones/resumoNegativacoes.js +6 -2
- package/dist/assets/icones/scoreBoaVista.js +4 -2
- package/dist/assets/icones/scr.js +4 -2
- package/dist/assets/icones/ultimaMovimentacao.js +7 -2
- package/dist/assets/icones/veiculos.js +4 -2
- package/dist/components/adresses/addresses.js +10 -4
- package/dist/components/bank-accounts/bank-accounts.d.ts +2 -1
- package/dist/components/bank-accounts/bank-accounts.js +7 -5
- package/dist/components/ccf/ccf.d.ts +1 -1
- package/dist/components/ccf/ccf.js +7 -8
- package/dist/components/ccf/ccfList.js +8 -4
- package/dist/components/chart/chartContent.js +10 -2
- package/dist/components/chart/chartSystem.js +32 -27
- package/dist/components/chart/components/MixedChart.js +10 -9
- package/dist/components/chart/components/PieChart.js +2 -2
- package/dist/components/chart/components/categoryProtestos.js +3 -2
- package/dist/components/chart/quantityResult.js +27 -3
- package/dist/components/common/addItem.d.ts +1 -1
- package/dist/components/common/addItem.js +5 -2
- package/dist/components/common/button.js +4 -2
- package/dist/components/common/carousel.d.ts +4 -0
- package/dist/components/common/carousel.js +19 -0
- package/dist/components/common/gauge.js +3 -3
- package/dist/components/common/modal.js +7 -3
- package/dist/components/common/modalMaintenance.js +6 -3
- package/dist/components/common/printSectionWrapper.js +2 -2
- package/dist/components/consultaRfb.js +3 -4
- package/dist/components/consultaSimplesSection/consultaSimplesSection.js +18 -11
- package/dist/components/consultasComplementares.js +3 -4
- package/dist/components/contacts/contactLikeDislikeSection.js +5 -4
- package/dist/components/contacts/contacts.js +13 -11
- package/dist/components/contacts/contactsLikeDislike.js +2 -2
- package/dist/components/contacts/thumbsButton.js +11 -2
- package/dist/components/dividasPublicas/dividasPublicas.js +8 -8
- package/dist/components/dividasPublicas/dividasPublicasList.js +14 -3
- package/dist/components/dominios/dominios.js +9 -9
- package/dist/components/dossie/carrousel/carrousel.d.ts +8 -0
- package/dist/components/dossie/carrousel/carrousel.js +15 -0
- package/dist/components/dossie/companyLogo/companyLogo.d.ts +7 -0
- package/dist/components/dossie/companyLogo/companyLogo.js +53 -0
- package/dist/components/dossie/dossie.js +10 -4
- package/dist/components/dossie/generativeAi/generativeAi.js +40 -7
- package/dist/components/dossie/sliderCompanyName/companyLogo/companyLogo.js +7 -2
- package/dist/components/dossie/sliderCompanyName/reclameAqui/carousel.js +10 -4
- package/dist/components/dossie/sliderCompanyName/reclameAqui/reclameAquiCarousel.js +28 -8
- package/dist/components/dossie/sliderCompanyName/sliderCompanyName.js +3 -2
- package/dist/components/dossie/summary/cardsAndProducts.d.ts +1 -1
- package/dist/components/dossie/summary/cardsAndProducts.js +2 -3
- package/dist/components/dossie/summary/summary.js +14 -5
- package/dist/components/dossie/transactionTable/transactionTable.js +10 -2
- package/dist/components/imoveis/imoveisService.js +24 -11
- package/dist/components/interface/header.js +14 -4
- package/dist/components/interface/loading.d.ts +2 -1
- package/dist/components/interface/loading.js +6 -2
- package/dist/components/interface/loadingBar.js +3 -2
- package/dist/components/interface/resultWithoutInformation.js +4 -2
- package/dist/components/interface/section.js +10 -2
- package/dist/components/liminar/liminar.js +46 -33
- package/dist/components/partners/partner-dividas-publicas.d.ts +2 -1
- package/dist/components/partners/partner-dividas-publicas.js +2 -2
- package/dist/components/partners/partner-protestos.d.ts +2 -1
- package/dist/components/partners/partner-protestos.js +2 -2
- package/dist/components/partners/partner-rfb-status.d.ts +2 -1
- package/dist/components/partners/partner-rfb-status.js +2 -2
- package/dist/components/partners/partnerField.js +2 -2
- package/dist/components/partners/partnerList.d.ts +1 -1
- package/dist/components/partners/partnerList.js +11 -6
- package/dist/components/partners/partners.d.ts +2 -1
- package/dist/components/partners/partners.js +11 -11
- package/dist/components/pep/pep.js +6 -5
- package/dist/components/processos-juridicos/envolvidosList.js +6 -2
- package/dist/components/processos-juridicos/processosJuridicos.js +9 -10
- package/dist/components/processos-juridicos/processosJuridicosList.js +19 -7
- package/dist/components/protestos/protestos.js +13 -14
- package/dist/components/protestos/protestosCategory.js +11 -7
- package/dist/components/protestos/protestosList.d.ts +2 -2
- package/dist/components/protestos/protestosList.js +27 -12
- package/dist/components/protestos/protestosSp.js +14 -12
- package/dist/components/reclameAqui/reclameAquiCarousel.d.ts +17 -0
- package/dist/components/reclameAqui/reclameAquiCarousel.js +64 -0
- package/dist/components/reclameAqui/styles.d.ts +14 -0
- package/dist/components/reclameAqui/styles.js +31 -0
- package/dist/components/refinBoaVista/refinBoaVista.d.ts +2 -1
- package/dist/components/refinBoaVista/refinBoaVista.js +19 -8
- package/dist/components/refinSerasa/refinSerasa.js +24 -9
- package/dist/components/resultadoDaPesquisa/resultado-da-pesquisa.js +8 -2
- package/dist/components/score/scoreService.js +15 -6
- package/dist/components/scoreSerasa/scoreSerasa.js +11 -7
- package/dist/components/scr/scr.d.ts +2 -1
- package/dist/components/scr/scr.js +38 -30
- package/dist/components/scr/scrDataBaseModal.js +8 -3
- package/dist/components/section.d.ts +2 -2
- package/dist/components/section.js +31 -38
- package/dist/components/veiculos/veiculos.js +20 -6
- package/dist/components/webservice.js +3 -4
- package/dist/consultaSimples.js +37 -4
- package/dist/contexts/createDataContext.js +2 -3
- package/lib/cjs/index.js +7880 -3148
- package/lib/esm/index.js +11240 -8506
- package/package.json +2 -1
|
@@ -24,9 +24,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
24
24
|
}
|
|
25
25
|
return t;
|
|
26
26
|
};
|
|
27
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
27
|
import classNames from 'classnames';
|
|
29
|
-
import { useMemo } from 'react';
|
|
28
|
+
import React, { useMemo } from 'react';
|
|
30
29
|
import styled, { useTheme } from 'styled-components';
|
|
31
30
|
import LoadingBar from './loadingBar';
|
|
32
31
|
/** -----------------------------
|
|
@@ -76,7 +75,7 @@ var Description = styled.div(templateObject_3 || (templateObject_3 = __makeTempl
|
|
|
76
75
|
});
|
|
77
76
|
var HeaderUI = styled(function (_a) {
|
|
78
77
|
var children = _a.children, props = __rest(_a, ["children"]);
|
|
79
|
-
return (
|
|
78
|
+
return (React.createElement("header", __assign({}, props), children));
|
|
80
79
|
})(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n @media screen {\n background: #ffffff !important;\n box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.15);\n border-radius: 30px;\n }\n\n @media print {\n page-break-before: avoid;\n page-break-after: avoid;\n page-break-inside: avoid;\n padding: 18px;\n print-color-adjust: exact;\n background: #eae9e9;\n border-radius: 18px;\n }\n\n padding: 30px 20px;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n\n ", " {\n color: ", ";\n }\n"], ["\n @media screen {\n background: #ffffff !important;\n box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.15);\n border-radius: 30px;\n }\n\n @media print {\n page-break-before: avoid;\n page-break-after: avoid;\n page-break-inside: avoid;\n padding: 18px;\n print-color-adjust: exact;\n background: #eae9e9;\n border-radius: 18px;\n }\n\n padding: 30px 20px;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n\n ", " {\n color: ", ";\n }\n"])), Title, function (props) { return props.color; });
|
|
81
80
|
var HeaderContainer = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: flex;\n gap: 20px;\n\n @media print {\n width: 100%;\n }\n"], ["\n display: flex;\n gap: 20px;\n\n @media print {\n width: 100%;\n }\n"])));
|
|
82
81
|
var ActionsList = styled.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n gap: 10px;\n"], ["\n display: flex;\n flex-direction: row;\n gap: 10px;\n"])));
|
|
@@ -97,7 +96,18 @@ var Header = function (_a) {
|
|
|
97
96
|
var containerClass = classNames(containerClassName);
|
|
98
97
|
var isLoading = variant === 'loading';
|
|
99
98
|
var variantColor = useMemo(function () { return getVariantColor(variant, theme); }, [variant, theme]);
|
|
100
|
-
return (
|
|
99
|
+
return (React.createElement("div", { ref: innerRef },
|
|
100
|
+
React.createElement(HeaderUI, __assign({ className: headerClass, color: variantColor }, rest),
|
|
101
|
+
React.createElement(HeaderContainer, { className: containerClass },
|
|
102
|
+
React.createElement(IconWrapper, null, Icon && React.createElement(Icon, __assign({}, iconProps, { circleFill: variantColor }))),
|
|
103
|
+
React.createElement(TextWrapper, { printBar: printBar },
|
|
104
|
+
title && (React.createElement(Title, { className: classNames(titleClassName) }, title)),
|
|
105
|
+
React.createElement("div", { className: "text-wrapper-subtitle-description" },
|
|
106
|
+
React.createElement(Subtitle, { hidden: isLoading || !subtitle, className: subtitleClassName }, subtitle),
|
|
107
|
+
React.createElement(Description, { hidden: isLoading || !description, className: descriptionClassName }, description)),
|
|
108
|
+
React.createElement(LoadingBarWrapper, { hidden: !isLoading },
|
|
109
|
+
React.createElement(LoadingBar, { percentage: (loadingProps === null || loadingProps === void 0 ? void 0 : loadingProps.percentage) || 0 })))),
|
|
110
|
+
actions && (React.createElement(ActionsList, { className: actionsClass }, actions)))));
|
|
101
111
|
};
|
|
102
112
|
/** -----------------------------
|
|
103
113
|
* Helpers
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export default function Loading(): React.JSX.Element;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export default function Loading() {
|
|
3
|
-
return (
|
|
3
|
+
return (React.createElement(React.Fragment, null,
|
|
4
|
+
React.createElement("span", { className: "saving" },
|
|
5
|
+
React.createElement("span", null, " ."),
|
|
6
|
+
React.createElement("span", null, "."),
|
|
7
|
+
React.createElement("span", null, "."))));
|
|
4
8
|
}
|
|
@@ -24,7 +24,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
24
24
|
}
|
|
25
25
|
return t;
|
|
26
26
|
};
|
|
27
|
-
import
|
|
27
|
+
import React from 'react';
|
|
28
28
|
import styled from 'styled-components';
|
|
29
29
|
var GreyBar = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 18.75rem;\n height: 0.625rem;\n background-color: ", ";\n border-radius: 10px;\n position: relative;\n overflow: hidden;\n visibility: ", ";\n\n @media (max-width: 600px) {\n width: 12.5rem;\n }\n\n @media (max-width: 400px) {\n width: 9.375rem;\n }\n"], ["\n width: 18.75rem;\n height: 0.625rem;\n background-color: ", ";\n border-radius: 10px;\n position: relative;\n overflow: hidden;\n visibility: ", ";\n\n @media (max-width: 600px) {\n width: 12.5rem;\n }\n\n @media (max-width: 400px) {\n width: 9.375rem;\n }\n"])), function (_a) {
|
|
30
30
|
var theme = _a.theme;
|
|
@@ -42,7 +42,8 @@ var BlueBar = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateO
|
|
|
42
42
|
});
|
|
43
43
|
var LoadingBar = function (_a) {
|
|
44
44
|
var _b = _a.percentage, percentage = _b === void 0 ? 0 : _b, _c = _a.hidden, hidden = _c === void 0 ? false : _c, props = __rest(_a, ["percentage", "hidden"]);
|
|
45
|
-
return (
|
|
45
|
+
return (React.createElement(GreyBar, __assign({ hidden: hidden }, props),
|
|
46
|
+
React.createElement(BlueBar, { percentage: percentage })));
|
|
46
47
|
};
|
|
47
48
|
export default LoadingBar;
|
|
48
49
|
var templateObject_1, templateObject_2;
|
|
@@ -20,11 +20,13 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
20
20
|
}
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
|
-
import
|
|
23
|
+
import React from 'react';
|
|
24
24
|
import { Result } from '../interface/result';
|
|
25
25
|
import AddItemField from '../common/addItem';
|
|
26
26
|
var ResultWithoutInformation = function (_a) {
|
|
27
27
|
var _b = _a.name, name = _b === void 0 ? 'Informação' : _b, _c = _a.value, value = _c === void 0 ? 'Não foram encontradas informações para o documento pesquisado.' : _c, props = __rest(_a, ["name", "value"]);
|
|
28
|
-
return (
|
|
28
|
+
return (React.createElement(Result, null,
|
|
29
|
+
React.createElement(Result, null,
|
|
30
|
+
React.createElement(AddItemField, __assign({ name: name, value: value }, props)))));
|
|
29
31
|
};
|
|
30
32
|
export default ResultWithoutInformation;
|
|
@@ -2,7 +2,6 @@ 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 { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
5
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
7
6
|
import BtnWrapper from '../../assets/btn/btnWrapper';
|
|
8
7
|
import ChevronDown from '../../assets/btn/chevronDown';
|
|
@@ -11,6 +10,7 @@ import CloseIcon from '../../assets/btn/closeIcon';
|
|
|
11
10
|
import PrintIcon from '../../assets/btn/printIcon';
|
|
12
11
|
import useToggle from '../../hooks/useToggle';
|
|
13
12
|
import classNames from 'classnames';
|
|
13
|
+
import React from 'react';
|
|
14
14
|
import styled from 'styled-components';
|
|
15
15
|
import Header from './header';
|
|
16
16
|
var SectionContaner = styled.section(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n @media screen {\n background-color: rgb(239, 239, 239);\n }\n page-break-before: avoid;\n page-break-after: avoid;\n page-break-inside: avoid;\n"], ["\n @media screen {\n background-color: rgb(239, 239, 239);\n }\n page-break-before: avoid;\n page-break-after: avoid;\n page-break-inside: avoid;\n"])));
|
|
@@ -20,7 +20,15 @@ var Section = function (_a) {
|
|
|
20
20
|
var _c = useToggle(!minimized), isOpen = _c[0], toggleOpen = _c[1];
|
|
21
21
|
var sectionClass = classNames(className);
|
|
22
22
|
var sectionContentClass = classNames(contentClassName);
|
|
23
|
-
return (
|
|
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(React.Fragment, null,
|
|
25
|
+
React.createElement(BtnWrapper, null,
|
|
26
|
+
React.createElement(PrintIcon, { onClick: onClickPrint })),
|
|
27
|
+
children && (React.createElement(BtnWrapper, { hidden: variant === 'loading', onClick: toggleOpen }, isOpen ? React.createElement(ChevronUp, null) : React.createElement(ChevronDown, null))),
|
|
28
|
+
onClose && (React.createElement(BtnWrapper, { onClick: onClose },
|
|
29
|
+
React.createElement(CloseIcon, null))),
|
|
30
|
+
actions) }),
|
|
31
|
+
React.createElement(ResultContainer, { className: sectionContentClass, hide: !isOpen }, children)));
|
|
24
32
|
};
|
|
25
33
|
export default Section;
|
|
26
34
|
var templateObject_1, templateObject_2;
|
|
@@ -45,14 +45,13 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
45
45
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
49
48
|
/* eslint-disable react-hooks/exhaustive-deps */
|
|
50
49
|
import ProtestosIcon from '../../assets/icones/protestos';
|
|
51
50
|
import { useGlobalData } from '../../contexts/globalDataContext';
|
|
52
51
|
import theme from '../../styles/theme';
|
|
53
52
|
import { normalizeName, similarNames } from '../../utils/similarNames';
|
|
54
53
|
import { WarningCircle } from 'phosphor-react';
|
|
55
|
-
import { useContext, useEffect, useMemo, useRef, useState } from 'react';
|
|
54
|
+
import React, { useContext, useEffect, useMemo, useRef, useState } from 'react';
|
|
56
55
|
import Button from '../common/button';
|
|
57
56
|
import Modal from '../common/modal';
|
|
58
57
|
import StatusMessage from '../interface/statusMessage';
|
|
@@ -263,7 +262,7 @@ var Liminar = function () {
|
|
|
263
262
|
el.classList.add('highlighted-process');
|
|
264
263
|
setTimeout(function () { return el.classList.remove('highlighted-process'); }, 3000);
|
|
265
264
|
};
|
|
266
|
-
var renderTooltipIcon = function () { return (
|
|
265
|
+
var renderTooltipIcon = function () { return (React.createElement(WarningCircle, { weight: "fill", size: 24, color: origensDetectadas.length
|
|
267
266
|
? theme.colors.erroClaro
|
|
268
267
|
: theme.colors.cinzaClaro, style: { marginLeft: 4 } })); };
|
|
269
268
|
var tooltipMessage = foundBusinessEntity
|
|
@@ -300,35 +299,49 @@ var Liminar = function () {
|
|
|
300
299
|
}); };
|
|
301
300
|
if (!shouldRender)
|
|
302
301
|
return null;
|
|
303
|
-
return (
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
302
|
+
return (React.createElement(React.Fragment, null,
|
|
303
|
+
React.createElement(Section, { title: React.createElement(TitleWithTooltip, null,
|
|
304
|
+
"Liminares para Remo\u00E7\u00E3o de Protesto",
|
|
305
|
+
!!processosComAssuntoValido.length && ready && (React.createElement(TooltipContainer, { onMouseEnter: function () {
|
|
306
|
+
clearTimeout(hideTt.current);
|
|
307
|
+
setTooltipVisible(true);
|
|
308
|
+
}, onMouseLeave: function () {
|
|
309
|
+
hideTt.current = setTimeout(function () { return setTooltipVisible(false); }, 300);
|
|
310
|
+
} },
|
|
311
|
+
renderTooltipIcon(),
|
|
312
|
+
React.createElement(TooltipText, { visible: isTooltipVisible },
|
|
313
|
+
React.createElement(React.Fragment, null,
|
|
314
|
+
tooltipMessage,
|
|
315
|
+
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: {
|
|
316
|
+
fontSize: 13,
|
|
317
|
+
cursor: 'pointer',
|
|
318
|
+
textDecoration: 'underline',
|
|
319
|
+
color: '#007aff'
|
|
320
|
+
} }, p.id)); }))))))), subtitle: "Ind\u00EDcios de liminares para oculta\u00E7\u00E3o de registros.", icon: ProtestosIcon, ctx: ready ? ctx : ctxLoading, onSuccess: ready
|
|
321
|
+
? function (_data, _context) {
|
|
322
|
+
var _a, _b, _c, _d;
|
|
323
|
+
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';
|
|
324
|
+
var variant = msg === 'Encontrado' ? 'error' : 'default';
|
|
325
|
+
return {
|
|
326
|
+
children: React.createElement(React.Fragment, null),
|
|
327
|
+
variant: variant,
|
|
328
|
+
description: (React.createElement(React.Fragment, null,
|
|
329
|
+
React.createElement(StatusMessage, { type: variant }, msg),
|
|
330
|
+
origensDetectadas.map(function (o) { return (React.createElement(StatusMessage, { key: o, type: variant }, o)); }))),
|
|
331
|
+
actions: (React.createElement("div", { style: { textAlign: 'center' }, onClick: function (e) { return e.stopPropagation(); } }, ((_c = globalData === null || globalData === void 0 ? void 0 : globalData.liminar) === null || _c === void 0 ? void 0 : _c.indiciosDeLiminarProtestosDoPassado) &&
|
|
332
|
+
((_d = globalData === null || globalData === void 0 ? void 0 : globalData.liminar) === null || _d === void 0 ? void 0 : _d.protestosDoPassadoIds) && (React.createElement(Button, { onClick: handleSendEmailIndicios }, "Baixar Protestos Ocultos"))))
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
: undefined }),
|
|
336
|
+
React.createElement(Modal, { isOpen: isEmailModalOpen, onClose: function () {
|
|
337
|
+
setIsEmailModalOpen(false);
|
|
338
|
+
setEmailModalMessage('');
|
|
339
|
+
}, title: "Detalhes enviados por e-mail" },
|
|
340
|
+
React.createElement("p", null, emailModalMessage),
|
|
341
|
+
React.createElement("div", { style: { textAlign: 'center', marginTop: '16px' } },
|
|
342
|
+
React.createElement(Button, { onClick: function () {
|
|
343
|
+
setIsEmailModalOpen(false);
|
|
344
|
+
setEmailModalMessage('');
|
|
345
|
+
} }, "Fechar")))));
|
|
333
346
|
};
|
|
334
347
|
export default Liminar;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import Loading from '../interface/loading';
|
|
3
3
|
import { useQuery } from '../webservice';
|
|
4
4
|
import XPathUtils from '../../utils/xpath';
|
|
5
5
|
var PartnerDividasPublicas = function (_a) {
|
|
6
6
|
var documento = _a.documento;
|
|
7
7
|
var _b = useQuery("SELECT FROM 'DIVIDASUNIAO'.'CONSULTA'", { documento: documento }), isLoading = _b.isLoading, error = _b.error, response = _b.response;
|
|
8
|
-
return isLoading ? (
|
|
8
|
+
return isLoading ? (React.createElement(Loading, null)) : error ? ('Houve um erro ao obter a informação.') : (XPathUtils.select('string(//quantidade_dividas)', response === null || response === void 0 ? void 0 : response.document));
|
|
9
9
|
};
|
|
10
10
|
export default PartnerDividasPublicas;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import Loading from '../interface/loading';
|
|
3
3
|
import { useQuery } from '../webservice';
|
|
4
4
|
import XPathUtils from '../../utils/xpath';
|
|
5
5
|
var PartnerProtestos = function (_a) {
|
|
6
6
|
var documento = _a.documento;
|
|
7
7
|
var _b = useQuery("SELECT FROM 'IEPTB'.'IEPTBHARLAN'", { documento: documento, plugin: 'true' }), isLoading = _b.isLoading, error = _b.error, response = _b.response;
|
|
8
|
-
return isLoading ? (
|
|
8
|
+
return isLoading ? (React.createElement(Loading, null)) : error ? ('Houve um erro ao obter a informação.') : (XPathUtils.select('string(//registros)', response === null || response === void 0 ? void 0 : response.document));
|
|
9
9
|
};
|
|
10
10
|
export default PartnerProtestos;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import Loading from '../interface/loading';
|
|
3
3
|
import { useQuery } from '../webservice';
|
|
4
4
|
import XPathUtils from '../../utils/xpath';
|
|
5
5
|
var PartnerRFBStatus = function (_a) {
|
|
6
6
|
var documento = _a.documento;
|
|
7
7
|
var _b = useQuery("SELECT FROM 'RFB'.'CERTIDAO'", { documento: documento }), isLoading = _b.isLoading, error = _b.error, response = _b.response;
|
|
8
|
-
return isLoading ? (
|
|
8
|
+
return isLoading ? (React.createElement(Loading, null)) : error ? ('--') : (XPathUtils.select('string(//situacao)', response === null || response === void 0 ? void 0 : response.document));
|
|
9
9
|
};
|
|
10
10
|
export default PartnerRFBStatus;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import AddItemField from '../common/addItem';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
var PartnerField = function (_a) {
|
|
5
5
|
var name = _a.name, value = _a.value, onClick = _a.onClick, className = _a.className;
|
|
6
6
|
var combinedClassName = cn(className);
|
|
7
|
-
return (
|
|
7
|
+
return (React.createElement(AddItemField, { name: name, value: value, onClick: onClick, className: combinedClassName }));
|
|
8
8
|
};
|
|
9
9
|
export default PartnerField;
|
|
@@ -13,5 +13,5 @@ type PartnerListProps = {
|
|
|
13
13
|
partners: Partner[];
|
|
14
14
|
onClickQSA: (cpfCnpj: string) => void;
|
|
15
15
|
};
|
|
16
|
-
declare const PartnerList: React.MemoExoticComponent<({ partners, onClickQSA }: PartnerListProps) =>
|
|
16
|
+
declare const PartnerList: React.MemoExoticComponent<({ partners, onClickQSA }: PartnerListProps) => React.JSX.Element[]>;
|
|
17
17
|
export default PartnerList;
|
|
@@ -2,8 +2,7 @@ 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
|
|
6
|
-
import { memo } from 'react';
|
|
5
|
+
import React, { memo } from 'react';
|
|
7
6
|
import styled from 'styled-components';
|
|
8
7
|
import PartnerField from '../common/addItem';
|
|
9
8
|
import { ResultContent } from '../interface/result';
|
|
@@ -13,10 +12,16 @@ var PartnerList = memo(function (_a) {
|
|
|
13
12
|
var partners = _a.partners, onClickQSA = _a.onClickQSA;
|
|
14
13
|
return partners.map(function (partner, key) {
|
|
15
14
|
var _a, _b;
|
|
16
|
-
return (
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
return (React.createElement(ResultContent, { key: key, desktop: "2fr 1fr 0.7fr 1fr 1fr 1fr", tablet: "2fr repeat(2, 1fr)", mobile: "repeat(2, 1fr)" },
|
|
16
|
+
React.createElement(PartnerField, { name: partner.cnpj ? 'Empresa' : ((_a = partner.cargo) !== null && _a !== void 0 ? _a : ''), value: partner.nome }),
|
|
17
|
+
React.createElement(PartnerField, { name: partner.cnpj ? 'CNPJ' : 'CPF', value: (_b = (partner.cnpj || partner.cpf)) !== null && _b !== void 0 ? _b : '', onClick: function () { var _a, _b; return (_a = partner.onClickCpfCnpj) === null || _a === void 0 ? void 0 : _a.call(partner, (_b = (partner.cnpj || partner.cpf)) !== null && _b !== void 0 ? _b : ''); } }),
|
|
18
|
+
React.createElement(PartnerField, { name: "Protestos", value: partner === null || partner === void 0 ? void 0 : partner.protestos }),
|
|
19
|
+
React.createElement(PartnerField, { name: "Situa\u00E7\u00E3o na Receita Federal", value: partner.receitaStatus }),
|
|
20
|
+
React.createElement(PartnerField, { name: "Dividas P\u00FAblicas", value: partner.dividasPublicas }),
|
|
21
|
+
React.createElement("div", null, (partner.cpf || partner.cnpj) && (React.createElement(ButtonPartner, { onClick: function (e) {
|
|
22
|
+
e.preventDefault();
|
|
23
|
+
onClickQSA(partner.cpf || partner.cnpj || '');
|
|
24
|
+
} }, "Abrir")))));
|
|
20
25
|
});
|
|
21
26
|
});
|
|
22
27
|
export default PartnerList;
|
|
@@ -29,13 +29,12 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
29
29
|
}
|
|
30
30
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
31
31
|
};
|
|
32
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
33
32
|
import QuadroSocietarioIcon from '../../assets/icones/quadroSocietario';
|
|
34
33
|
import { useGlobalData } from '../../contexts/globalDataContext';
|
|
35
34
|
import { useConsultaRfb } from '../../hooks/useConsultaRfb';
|
|
36
35
|
import { formatCnpj, formatCpf, isCnpj } from '../../utils/string';
|
|
37
36
|
import XPathUtils from '../../utils/xpath';
|
|
38
|
-
import { useContext, useEffect, useState } from 'react';
|
|
37
|
+
import React, { useContext, useEffect, useState } from 'react';
|
|
39
38
|
import { Result } from '../interface/result';
|
|
40
39
|
import StatusMessage from '../interface/statusMessage';
|
|
41
40
|
import Section from '../section';
|
|
@@ -63,9 +62,9 @@ var Partners = function (_a) {
|
|
|
63
62
|
cpf: (!isCnpj(documento) && formatCpf(documento)) || '',
|
|
64
63
|
cargo: XPathUtils.select('string(qualificacaoSocio)', partner),
|
|
65
64
|
cnpj: (isCnpj(documento) && formatCnpj(documento)) || '',
|
|
66
|
-
receitaStatus: documento ? (
|
|
67
|
-
dividasPublicas: documento ? (
|
|
68
|
-
protestos: documento ? (
|
|
65
|
+
receitaStatus: documento ? (React.createElement(PartnerRFBStatus, { documento: documento })) : null,
|
|
66
|
+
dividasPublicas: documento ? (React.createElement(PartnerDividasPublicas, { documento: documento })) : null,
|
|
67
|
+
protestos: documento ? (React.createElement(PartnerProtestos, { documento: documento })) : null
|
|
69
68
|
};
|
|
70
69
|
});
|
|
71
70
|
if (partners_1.length > 0) {
|
|
@@ -90,17 +89,18 @@ var Partners = function (_a) {
|
|
|
90
89
|
cpf: (!isCnpj(documento) && formatCpf(documento)) || '',
|
|
91
90
|
cargo: XPathUtils.select('string(qualificacaoSocio)', partner),
|
|
92
91
|
cnpj: (isCnpj(documento) && formatCnpj(documento)) || '',
|
|
93
|
-
receitaStatus: documento ? (
|
|
94
|
-
dividasPublicas: documento ? (
|
|
95
|
-
protestos: documento ?
|
|
92
|
+
receitaStatus: documento ? (React.createElement(PartnerRFBStatus, { documento: documento })) : null,
|
|
93
|
+
dividasPublicas: documento ? (React.createElement(PartnerDividasPublicas, { documento: documento })) : null,
|
|
94
|
+
protestos: documento ? React.createElement(PartnerProtestos, { documento: documento }) : null
|
|
96
95
|
};
|
|
97
96
|
});
|
|
98
|
-
var children = (partners === null || partners === void 0 ? void 0 : partners.length) ? (
|
|
97
|
+
var children = (partners === null || partners === void 0 ? void 0 : partners.length) ? (React.createElement(Result, null,
|
|
98
|
+
React.createElement(PartnerList, { onClickQSA: onClickQSA, partners: partners }))) : null;
|
|
99
99
|
return {
|
|
100
100
|
children: children,
|
|
101
|
-
description: !(partners === null || partners === void 0 ? void 0 : partners.length) && (
|
|
101
|
+
description: !(partners === null || partners === void 0 ? void 0 : partners.length) && (React.createElement(StatusMessage, null, "N\u00E3o h\u00E1 informa\u00E7\u00F5es de Quadro Societ\u00E1rio"))
|
|
102
102
|
};
|
|
103
103
|
};
|
|
104
|
-
return (
|
|
104
|
+
return (React.createElement(Section, { ctx: ctx, title: "Quadro Societ\u00E1rio", minimized: false, subtitle: "Informa\u00E7\u00F5es sobre o quadro societ\u00E1rio da pessoa pesquisada.", icon: QuadroSocietarioIcon, isError: function () { return response(undefined); }, onSuccess: response }));
|
|
105
105
|
};
|
|
106
106
|
export default Partners;
|
|
@@ -9,10 +9,9 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
13
12
|
import { useGlobalData } from '../../contexts/globalDataContext';
|
|
14
13
|
import XPathUtils from '../../utils/xpath';
|
|
15
|
-
import { useContext, useState } from 'react';
|
|
14
|
+
import React, { useContext, useState } from 'react';
|
|
16
15
|
import AddItemField from '../common/addItem';
|
|
17
16
|
import { Result } from '../interface/result';
|
|
18
17
|
import Section from '../section';
|
|
@@ -21,12 +20,12 @@ var PessoaPoliticamenteExposta = function () {
|
|
|
21
20
|
var ctx = useContext(Queries.Finder);
|
|
22
21
|
var setData = useGlobalData().setData;
|
|
23
22
|
var _a = useState(false), dataUpdated = _a[0], setDataUpdated = _a[1];
|
|
24
|
-
return (
|
|
23
|
+
return (React.createElement(Section, { ctx: ctx, title: "Pessoa Politicamente Exposta", subtitle: "Vejas As Informa\u00E7\u00F5es Dispon\u00EDveis", onSuccess: function (document) {
|
|
25
24
|
var _a, _b, _c, _d;
|
|
26
25
|
if (!(document instanceof Node)) {
|
|
27
26
|
console.error('O documento não é do tipo Node esperado.');
|
|
28
27
|
return {
|
|
29
|
-
children:
|
|
28
|
+
children: React.createElement(React.Fragment, null),
|
|
30
29
|
description: 'Erro ao processar o documento.'
|
|
31
30
|
};
|
|
32
31
|
}
|
|
@@ -36,7 +35,9 @@ var PessoaPoliticamenteExposta = function () {
|
|
|
36
35
|
setData(function (prevState) { return (__assign(__assign({}, prevState), { pep: { pepData: pepData } })); });
|
|
37
36
|
setDataUpdated(true);
|
|
38
37
|
}
|
|
39
|
-
var children = pepData ? (
|
|
38
|
+
var children = pepData ? (React.createElement(Result, null,
|
|
39
|
+
React.createElement("div", { className: "container" },
|
|
40
|
+
React.createElement("div", { className: "content" }, FIELDS.map(function (field) { return (React.createElement(AddItemField, { key: field.key, name: field.name, value: pepData[field.key] })); }))))) : null;
|
|
40
41
|
return {
|
|
41
42
|
children: children,
|
|
42
43
|
description: data && ((_d = (_c = data[0]) === null || _c === void 0 ? void 0 : _c.childNodes) === null || _d === void 0 ? void 0 : _d.length)
|
|
@@ -2,7 +2,7 @@ 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
|
|
5
|
+
import React from 'react';
|
|
6
6
|
import styled from 'styled-components';
|
|
7
7
|
import AddItemField from '../common/addItem';
|
|
8
8
|
import ResponsiveGrid from '../interface/responsiveGrid';
|
|
@@ -22,7 +22,11 @@ var EnvolvidosList = function (_a) {
|
|
|
22
22
|
var _b = _a.envolvidos, envolvidos = _b === void 0 ? [] : _b;
|
|
23
23
|
if (!envolvidos.length)
|
|
24
24
|
return null;
|
|
25
|
-
return (
|
|
25
|
+
return (React.createElement(EnvolvidosListWrapper, { desktop: "1fr 3fr", tablet: "1fr" },
|
|
26
|
+
React.createElement(EnvolvidosUltimaMovimentacaoTitle, { className: "envolvidos-list-button" }, "Envolvidos na \u00DAltima Movimenta\u00E7\u00E3o"),
|
|
27
|
+
React.createElement("div", null, envolvidos.map(function (envolvido, i) { return (React.createElement(ResponsiveGrid, { desktop: "1fr 1fr", tablet: "1fr 1fr", mobile: "1fr 1fr", key: i, className: "content" },
|
|
28
|
+
React.createElement(AddItemField, { name: "Nome", value: envolvido.nome }),
|
|
29
|
+
React.createElement(AddItemField, { name: "Envolvimento", value: envolvido.envolvido_tipo || 'Não Informado' }))); }))));
|
|
26
30
|
};
|
|
27
31
|
export default EnvolvidosList;
|
|
28
32
|
var templateObject_1, templateObject_2;
|
|
@@ -9,10 +9,9 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
12
|
import ProcessosJuridicosIcon from '../../assets/icones/processosJuridicos';
|
|
14
13
|
import { useGlobalData } from '../../contexts/globalDataContext';
|
|
15
|
-
import { useContext, useEffect, useRef } from 'react';
|
|
14
|
+
import React, { useContext, useEffect, useRef } from 'react';
|
|
16
15
|
import StatusMessage from '../interface/statusMessage';
|
|
17
16
|
import Section from '../section';
|
|
18
17
|
import { Queries, RequestStatus } from '../webservice';
|
|
@@ -91,18 +90,18 @@ var ProcessosJuridicos = function (_a) {
|
|
|
91
90
|
processedRef.current = false;
|
|
92
91
|
}
|
|
93
92
|
}, [ctx.type]);
|
|
94
|
-
return (
|
|
93
|
+
return (React.createElement(Section, { ctx: ctx, title: "Processos Jur\u00EDdicos", subtitle: "Veja os processos jur\u00EDdicos para este documento.", icon: ProcessosJuridicosIcon, minimized: false, onSuccess: function (data) {
|
|
95
94
|
var _a;
|
|
96
95
|
var qtyProcessos = (_a = data.empresa) === null || _a === void 0 ? void 0 : _a.length;
|
|
97
|
-
var children = qtyProcessos ? (
|
|
96
|
+
var children = qtyProcessos ? (React.createElement(ProcessosJuridicosList, { processos: data.empresa || [], onClickConsultarProcessoJuridico: onClickConsultarProcessoJuridico })) : null;
|
|
98
97
|
return {
|
|
99
98
|
children: children,
|
|
100
|
-
description: (
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
99
|
+
description: (React.createElement(StatusMessage, { type: qtyProcessos ? 'error' : 'default' }, qtyProcessos
|
|
100
|
+
? 'Pesquisa concluída, ' +
|
|
101
|
+
(qtyProcessos > 1
|
|
102
|
+
? "foram encontrados ".concat(qtyProcessos, " processos")
|
|
103
|
+
: 'foi encontrado 1 processo')
|
|
104
|
+
: 'Não foram encontrados processos jurídicos para o documento pesquisado')),
|
|
106
105
|
variant: qtyProcessos ? 'error' : 'default'
|
|
107
106
|
};
|
|
108
107
|
} }));
|
|
@@ -24,11 +24,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
24
24
|
}
|
|
25
25
|
return t;
|
|
26
26
|
};
|
|
27
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
27
|
import { useGlobalData } from '../../contexts/globalDataContext';
|
|
29
28
|
import { sortProcessosByDate } from '../../utils/sortProcessosByDate';
|
|
30
29
|
import { WarningCircle } from 'phosphor-react';
|
|
31
|
-
import { memo, useEffect, useState } from 'react';
|
|
30
|
+
import React, { memo, useEffect, useState } from 'react';
|
|
32
31
|
import styled from 'styled-components';
|
|
33
32
|
import AddItem from '../common/addItem';
|
|
34
33
|
import Button from '../common/button';
|
|
@@ -36,7 +35,7 @@ import { Result, ResultContent } from '../interface/result';
|
|
|
36
35
|
import EnvolvidosList from './envolvidosList';
|
|
37
36
|
var AddProcessoJuridicoField = function (_a) {
|
|
38
37
|
var value = _a.value, props = __rest(_a, ["value"]);
|
|
39
|
-
return (
|
|
38
|
+
return (React.createElement(AddItem, __assign({}, props, { value: value || 'Não Informado' })));
|
|
40
39
|
};
|
|
41
40
|
var ProcessoJuridicoWrapper = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n scroll-margin-top: 100px;\n\n @media (min-width: 1000px) {\n flex-direction: row;\n }\n"], ["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n scroll-margin-top: 100px;\n\n @media (min-width: 1000px) {\n flex-direction: row;\n }\n"])));
|
|
42
41
|
var ConsultarProcessoBtn = styled(Button)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n @media (min-width: 1000px) {\n width: 100%;\n max-width: 150px;\n height: max-content;\n }\n"], ["\n @media (min-width: 1000px) {\n width: 100%;\n max-width: 150px;\n height: max-content;\n }\n"])));
|
|
@@ -52,7 +51,18 @@ var ProcessoJuridicoItem = memo(function (_a) {
|
|
|
52
51
|
var tooltipText = isInverted
|
|
53
52
|
? 'Atenção: Em alguns casos, o sistema judicial pode registrar os polos das partes de forma invertida, dificultando a interpretação direta.'
|
|
54
53
|
: 'Indício de liminar identificada.';
|
|
55
|
-
return (
|
|
54
|
+
return (React.createElement(ProcessoJuridicoWrapper, { id: processo.id, className: highlighted ? 'highlighted-process' : '' },
|
|
55
|
+
React.createElement(ResultWrapper, null,
|
|
56
|
+
React.createElement(ResultContent, { fullWidth: true, desktop: "1.5fr 1.5fr repeat(3, 1fr)", tablet: "repeat(3, 1fr)" },
|
|
57
|
+
React.createElement(AddProcessoJuridicoField, { name: "N\u00FAmero CNJ", value: hasLiminar ? (React.createElement(CNJWithIcon, { "data-tooltip": tooltipText },
|
|
58
|
+
React.createElement(WarningCircle, { size: 18, weight: "fill", style: { color: '#FFA500' } }),
|
|
59
|
+
React.createElement("span", null, processo.numero_novo))) : (processo.numero_novo) }),
|
|
60
|
+
React.createElement(AddProcessoJuridicoField, { name: "Assunto(s)", value: processo.assuntos }),
|
|
61
|
+
React.createElement(AddProcessoJuridicoField, { name: "Classe Processual", value: processo.classe_processual }),
|
|
62
|
+
React.createElement(AddProcessoJuridicoField, { name: "Sigla do Di\u00E1rio", value: processo.diario_sigla }),
|
|
63
|
+
React.createElement(AddProcessoJuridicoField, { name: "Estado", value: processo.estado })),
|
|
64
|
+
React.createElement(EnvolvidosList, { envolvidos: processo === null || processo === void 0 ? void 0 : processo.envolvidos_ultima_movimentacao })),
|
|
65
|
+
children));
|
|
56
66
|
});
|
|
57
67
|
var ResultList = styled(Result)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n > div {\n padding: 16px 0px;\n\n &:not(:last-child) {\n border-bottom: 1px solid ", ";\n }\n }\n"], ["\n > div {\n padding: 16px 0px;\n\n &:not(:last-child) {\n border-bottom: 1px solid ", ";\n }\n }\n"])), function (_a) {
|
|
58
68
|
var theme = _a.theme;
|
|
@@ -74,9 +84,11 @@ var ProcessosJuridicosList = function (_a) {
|
|
|
74
84
|
}
|
|
75
85
|
}
|
|
76
86
|
}, []);
|
|
77
|
-
return (
|
|
78
|
-
|
|
79
|
-
|
|
87
|
+
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
|
+
React.createElement(ConsultarProcessoBtn, { onClick: onClickConsultarProcessoJuridico
|
|
90
|
+
? function () { return onClickConsultarProcessoJuridico(processo.id); }
|
|
91
|
+
: undefined, smallContent: "R$ 1" }, "Consultar Processo")))); })));
|
|
80
92
|
};
|
|
81
93
|
export default ProcessosJuridicosList;
|
|
82
94
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|