@credithub/harlan-components 1.106.2 → 1.106.3
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.
|
@@ -25,7 +25,6 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
25
25
|
return t;
|
|
26
26
|
};
|
|
27
27
|
import ConsultaSimplesIcon from '../../assets/icones/consultaSimples';
|
|
28
|
-
import Tooltip from '../../components/common/tooltip';
|
|
29
28
|
import { useGlobalData } from '../../contexts/globalDataContext';
|
|
30
29
|
import { usePostHog } from '../../contexts/PostHogContext';
|
|
31
30
|
import usePrintWhenStable from '../../hooks/usePrintWhenStable';
|
|
@@ -34,7 +33,7 @@ import { formatMoney } from '../../utils/number';
|
|
|
34
33
|
import { formatDocument } from '../../utils/string';
|
|
35
34
|
import { hasOneOfTags } from '../../utils/tags';
|
|
36
35
|
import { format } from 'date-fns';
|
|
37
|
-
import {
|
|
36
|
+
import { WarningCircle } from 'phosphor-react';
|
|
38
37
|
import React, { useContext, useEffect } from 'react';
|
|
39
38
|
import styled, { keyframes } from 'styled-components';
|
|
40
39
|
import Section from '../interface/section';
|
|
@@ -288,8 +287,7 @@ var ConsultaSimplesSection = function (_a) {
|
|
|
288
287
|
React.createElement(ClickableText, { onClick: scrollToEditais, title: "Clique para ver detalhes" },
|
|
289
288
|
"Cart\u00F3rio com dificuldade para intimar",
|
|
290
289
|
((_y = data.editalData) === null || _y === void 0 ? void 0 : _y.dataEditalMaisAntigo) &&
|
|
291
|
-
" desde o: ".concat(data.editalData.dataEditalMaisAntigo)),
|
|
292
|
-
React.createElement(Tooltip, { icon: React.createElement(Info, { size: 16, weight: "fill", style: { marginLeft: 6, verticalAlign: 'middle' } }), content: renderVencidosTooltip(), placement: "left", float: true })))), onClose: onClose, icon: ConsultaSimplesIcon, variant: isLoading ? 'loading' : 'default', ctx: ctx, loadingProps: {
|
|
290
|
+
" desde o: ".concat(data.editalData.dataEditalMaisAntigo))))), onClose: onClose, icon: ConsultaSimplesIcon, variant: isLoading ? 'loading' : 'default', ctx: ctx, loadingProps: {
|
|
293
291
|
percentage: (ctx === null || ctx === void 0 ? void 0 : ctx.progress) || 0,
|
|
294
292
|
hidden: !isLoading
|
|
295
293
|
}, printMode: printMode }, rest), children));
|
|
@@ -160,24 +160,20 @@ var Edital = function (_a) {
|
|
|
160
160
|
return (React.createElement(StatusMessage, { type: "default" }, "N\u00E3o h\u00E1 intima\u00E7\u00F5es por edital eletr\u00F4nico"));
|
|
161
161
|
}
|
|
162
162
|
var messages = [];
|
|
163
|
-
// Count message
|
|
163
|
+
// Count message - sempre mostra apenas recentes
|
|
164
|
+
var countText = recentesCount === 0
|
|
165
|
+
? 'Nenhuma intimação recente encontrada'
|
|
166
|
+
: recentesCount === 1
|
|
167
|
+
? 'Encontrada 1 intimação'
|
|
168
|
+
: "Encontradas ".concat(recentesCount, " intima\u00E7\u00F5es");
|
|
169
|
+
messages.push(React.createElement(StatusMessage, { key: "count", type: recentesCount > 0 ? 'error' : 'default' }, countText));
|
|
170
|
+
// Warning banner apenas se houver vencidos
|
|
164
171
|
if (vencidosCount > 0) {
|
|
165
|
-
var countText = total === 1
|
|
166
|
-
? "Encontrada 1 intima\u00E7\u00E3o (".concat(recentesCount, " recente; ").concat(vencidosCount, " vencida oculta)")
|
|
167
|
-
: "Encontradas ".concat(total, " intima\u00E7\u00F5es (").concat(recentesCount, " recentes; ").concat(vencidosCount, " vencidas ocultas)");
|
|
168
|
-
messages.push(React.createElement(StatusMessage, { key: "count", type: total > 0 ? 'error' : 'default' }, countText));
|
|
169
|
-
// Warning banner
|
|
170
172
|
var dataDesde = (_a = globalData.editalData) === null || _a === void 0 ? void 0 : _a.dataEditalMaisAntigo;
|
|
171
173
|
messages.push(React.createElement(StatusMessage, { key: "warning", type: "error" },
|
|
172
174
|
"Cart\u00F3rio com dificuldade para intimar",
|
|
173
175
|
dataDesde && " desde o: ".concat(dataDesde)));
|
|
174
176
|
}
|
|
175
|
-
else {
|
|
176
|
-
var countText = recentesCount === 1
|
|
177
|
-
? 'Encontrada 1 intimação'
|
|
178
|
-
: "Encontradas ".concat(recentesCount, " intima\u00E7\u00F5es");
|
|
179
|
-
messages.push(React.createElement(StatusMessage, { key: "count", type: recentesCount > 0 ? 'error' : 'default' }, countText));
|
|
180
|
-
}
|
|
181
177
|
return React.createElement(React.Fragment, null, messages);
|
|
182
178
|
};
|
|
183
179
|
return {
|
|
@@ -72,7 +72,7 @@ var EditalList = function (_a) {
|
|
|
72
72
|
React.createElement(Clock, { size: 14, weight: "bold" }),
|
|
73
73
|
remainingDays > 0
|
|
74
74
|
? "".concat(remainingDays, " ").concat(remainingDays === 1 ? 'dia útil' : 'dias úteis', " para protesto")
|
|
75
|
-
: '
|
|
75
|
+
: 'Protesto entrando hoje'))),
|
|
76
76
|
React.createElement(ResultContent, { print: "repeat(3, 1fr)", desktop: "repeat(3, 1fr)", tablet: "repeat(2, 1fr)", mobile: "1fr" },
|
|
77
77
|
React.createElement(AddItemField, { name: "Cart\u00F3rio", value: edital.nome_cartorio }),
|
|
78
78
|
React.createElement(AddItemField, { name: "Endere\u00E7o", value: "".concat(edital.endereco, ", ").concat(edital.endereco_numero, " - ").concat(edital.bairroc, ", ").concat(edital.cidadec, "/").concat(edital.uf) }),
|