@credithub/harlan-components 1.40.5 → 1.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -30,7 +30,7 @@ import Section from '../interface/section';
|
|
|
30
30
|
import StatusMessage from '../interface/statusMessage';
|
|
31
31
|
import { Queries, RequestStatus } from '../webservice';
|
|
32
32
|
var getPossuiPendenciaText = function (_a) {
|
|
33
|
-
var ccf = _a.ccf, ultimoRegistroCCF = _a.ultimoRegistroCCF, dividasPublicas = _a.dividasPublicas, protestos = _a.protestos, processosJuridicos = _a.processosJuridicos, receitaStatus = _a.receitaStatus;
|
|
33
|
+
var ccf = _a.ccf, ultimoRegistroCCF = _a.ultimoRegistroCCF, dividasPublicas = _a.dividasPublicas, protestos = _a.protestos, processosJuridicos = _a.processosJuridicos, receitaStatus = _a.receitaStatus, liminar = _a.liminar;
|
|
34
34
|
return [
|
|
35
35
|
receitaStatus ? "".concat(receitaStatus) : '',
|
|
36
36
|
dividasPublicas
|
|
@@ -48,11 +48,12 @@ var getPossuiPendenciaText = function (_a) {
|
|
|
48
48
|
? processosJuridicos === 1
|
|
49
49
|
? 'Processo Jurídico'
|
|
50
50
|
: "".concat(processosJuridicos, " Processos Jur\u00EDdicos")
|
|
51
|
-
: ''
|
|
51
|
+
: '',
|
|
52
|
+
(liminar === null || liminar === void 0 ? void 0 : liminar.totalProtestos) === 'NADA CONSTA' ? 'Liminar Encontrada' : ''
|
|
52
53
|
].filter(function (x) { return !!x; });
|
|
53
54
|
};
|
|
54
55
|
var ConsultaSimplesSection = function (_a) {
|
|
55
|
-
var _b, _c;
|
|
56
|
+
var _b, _c, _d;
|
|
56
57
|
var documento = _a.documento, children = _a.children, onClose = _a.onClose, rest = __rest(_a, ["documento", "children", "onClose"]);
|
|
57
58
|
var ctx = useContext(Queries.Finder);
|
|
58
59
|
var data = useGlobalData().data;
|
|
@@ -64,8 +65,9 @@ var ConsultaSimplesSection = function (_a) {
|
|
|
64
65
|
data.protestos ||
|
|
65
66
|
data.dividasPublicas ||
|
|
66
67
|
data.processosJuridicos ||
|
|
67
|
-
receitaStatus
|
|
68
|
-
|
|
68
|
+
receitaStatus ||
|
|
69
|
+
((_d = data.liminar) === null || _d === void 0 ? void 0 : _d.message) === 'Encontrado';
|
|
70
|
+
var possuiPendenciaText = getPossuiPendenciaText(__assign(__assign({}, data), { receitaStatus: receitaStatus, liminar: data.liminar }));
|
|
69
71
|
var isError = (ctx === null || ctx === void 0 ? void 0 : ctx.type) === RequestStatus.Error;
|
|
70
72
|
var isLoading = (ctx === null || ctx === void 0 ? void 0 : ctx.type) === RequestStatus.Loading;
|
|
71
73
|
var statusType = isError
|