@credithub/harlan-components 1.73.0 → 1.74.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.
@@ -81,9 +81,7 @@ var ConsultaSimplesSection = function (_a) {
81
81
  {
82
82
  label: 'Processos Jurídicos',
83
83
  text: data.processosJuridicos
84
- ? data.processosJuridicos === 1
85
- ? 'Processo Jurídico'
86
- : "".concat(data.processosJuridicos, " Processos Jur\u00EDdicos")
84
+ ? "".concat(data.processosJuridicos, " ").concat(data.processosJuridicos === 1 ? 'Processo Jurídico' : 'Processos Jurídicos')
87
85
  : '',
88
86
  loaded: (_l = (_k = data.processosJuridicosData) === null || _k === void 0 ? void 0 : _k.isLoaded) !== null && _l !== void 0 ? _l : false
89
87
  },
@@ -9,6 +9,42 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
13
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14
+ return new (P || (P = Promise))(function (resolve, reject) {
15
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
16
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
17
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
18
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
19
+ });
20
+ };
21
+ var __generator = (this && this.__generator) || function (thisArg, body) {
22
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
23
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
+ function verb(n) { return function (v) { return step([n, v]); }; }
25
+ function step(op) {
26
+ if (f) throw new TypeError("Generator is already executing.");
27
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
28
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29
+ if (y = 0, t) op = [op[0] & 2, t.value];
30
+ switch (op[0]) {
31
+ case 0: case 1: t = op; break;
32
+ case 4: _.label++; return { value: op[1], done: false };
33
+ case 5: _.label++; y = op[1]; op = [0]; continue;
34
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
35
+ default:
36
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
37
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
38
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
39
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
40
+ if (t[2]) _.ops.pop();
41
+ _.trys.pop(); continue;
42
+ }
43
+ op = body.call(thisArg, _);
44
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
45
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
46
+ }
47
+ };
12
48
  /* eslint-disable react-hooks/exhaustive-deps */
13
49
  import ProtestosIcon from '../../assets/icones/protestos';
14
50
  import { useGlobalData } from '../../contexts/globalDataContext';
@@ -20,6 +56,7 @@ import StatusMessage from '../interface/statusMessage';
20
56
  import Section from '../section';
21
57
  import { Queries, RequestStatus } from '../webservice';
22
58
  import { TitleWithTooltip, TooltipContainer, TooltipText } from './liminarStyles';
59
+ import useLiminarProtestosDoPassado from './useLiminarProtestosDoPassado';
23
60
  /* ----------------------------------
24
61
  * Constantes
25
62
  * ---------------------------------*/
@@ -41,14 +78,21 @@ var businessTypes = [
41
78
  'cooperativa'
42
79
  ];
43
80
  var Liminar = function () {
44
- var _a, _b, _c, _d, _e, _f, _g, _h;
81
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
45
82
  var ctx = useContext(Queries.LiminarCenprot);
46
- var _j = useGlobalData(), globalData = _j.data, setData = _j.setData;
83
+ var _m = useGlobalData(), globalData = _m.data, setData = _m.setData;
84
+ var fetchLiminarProtestosDoPassado = useLiminarProtestosDoPassado({
85
+ documento: ((_b = (_a = globalData === null || globalData === void 0 ? void 0 : globalData.dossie) === null || _a === void 0 ? void 0 : _a.carousel) === null || _b === void 0 ? void 0 : _b.document) || ''
86
+ }).fetchLiminarProtestosDoPassado;
87
+ var _o = useState(false), isLoadingLiminarProtestosDoPassado = _o[0], setIsLoadingLiminarProtestosDoPassado = _o[1];
47
88
  var processedRef = useRef(false);
48
89
  var dataHashRef = useRef('');
49
90
  var invertedIdsRef = useRef([]);
50
- var _k = useState(false), isTooltipVisible = _k[0], setTooltipVisible = _k[1];
91
+ var _p = useState(false), isTooltipVisible = _p[0], setTooltipVisible = _p[1];
51
92
  var hideTt = useRef();
93
+ /*
94
+ * Extrai e normaliza os tipos de documento presentes em ctx.document, retornando sempre um array de strings em minúsculo.
95
+ */
52
96
  var tiposDocumento = useMemo(function () {
53
97
  var _a;
54
98
  var raw = (_a = ctx.document) === null || _a === void 0 ? void 0 : _a.type;
@@ -56,6 +100,9 @@ var Liminar = function () {
56
100
  return raw.map(function (t) { return t.toLowerCase(); });
57
101
  return raw ? [String(raw).toLowerCase()] : [];
58
102
  }, [ctx.document]);
103
+ /*
104
+ * Filtra processos jurídicos que possuem assuntos válidos e envolvidos que correspondem ao nome do carousel.
105
+ */
59
106
  var processosComAssuntoValido = useMemo(function () {
60
107
  var _a, _b, _c, _d;
61
108
  var carouselName = (_c = (_b = (_a = globalData === null || globalData === void 0 ? void 0 : globalData.dossie) === null || _a === void 0 ? void 0 : _a.carousel) === null || _b === void 0 ? void 0 : _b.name) !== null && _c !== void 0 ? _c : '';
@@ -79,14 +126,17 @@ var Liminar = function () {
79
126
  });
80
127
  });
81
128
  }, [
82
- (_a = globalData === null || globalData === void 0 ? void 0 : globalData.dossie) === null || _a === void 0 ? void 0 : _a.carousel,
83
- (_b = globalData === null || globalData === void 0 ? void 0 : globalData.processosJuridicosData) === null || _b === void 0 ? void 0 : _b.empresa
129
+ (_c = globalData === null || globalData === void 0 ? void 0 : globalData.dossie) === null || _c === void 0 ? void 0 : _c.carousel,
130
+ (_d = globalData === null || globalData === void 0 ? void 0 : globalData.processosJuridicosData) === null || _d === void 0 ? void 0 : _d.empresa
84
131
  ]);
85
- var _l = useMemo(function () {
86
- var _a;
132
+ /*
133
+ * Identifica as origens de liminares detectadas e verifica se existe liminar de protesto invertida
134
+ */
135
+ var _q = useMemo(function () {
136
+ var _a, _b;
87
137
  var labels = new Set();
88
138
  var indiciosApi = ((_a = ctx.document) === null || _a === void 0 ? void 0 : _a.indiciosDeLiminar) === true;
89
- if (indiciosApi)
139
+ if (indiciosApi) {
90
140
  tiposDocumento.forEach(function (t) {
91
141
  var m = {
92
142
  cenprot: 'Liminar no Cenprot',
@@ -96,8 +146,13 @@ var Liminar = function () {
96
146
  if (m[t])
97
147
  labels.add(m[t]);
98
148
  });
99
- if (processosComAssuntoValido.length)
149
+ }
150
+ if ((_b = globalData === null || globalData === void 0 ? void 0 : globalData.liminar) === null || _b === void 0 ? void 0 : _b.indiciosDeLiminarProtestosDoPassado) {
151
+ labels.add('Liminar no Cenprot');
152
+ }
153
+ if (processosComAssuntoValido.length) {
100
154
  labels.add('Liminar no Judiciário');
155
+ }
101
156
  var pj = processosComAssuntoValido.some(function (p) {
102
157
  var _a;
103
158
  return (_a = p.envolvidos_ultima_movimentacao) === null || _a === void 0 ? void 0 : _a.some(function (e) {
@@ -108,39 +163,71 @@ var Liminar = function () {
108
163
  });
109
164
  });
110
165
  return { origensDetectadas: Array.from(labels), foundBusinessEntity: pj };
111
- }, [ctx.document, tiposDocumento, processosComAssuntoValido]), origensDetectadas = _l.origensDetectadas, foundBusinessEntity = _l.foundBusinessEntity;
166
+ }, [
167
+ ctx.document,
168
+ tiposDocumento,
169
+ processosComAssuntoValido,
170
+ (_e = globalData === null || globalData === void 0 ? void 0 : globalData.liminar) === null || _e === void 0 ? void 0 : _e.indiciosDeLiminarProtestosDoPassado
171
+ ]), origensDetectadas = _q.origensDetectadas, foundBusinessEntity = _q.foundBusinessEntity;
112
172
  useEffect(function () {
113
- var _a, _b;
114
- var dossie = globalData === null || globalData === void 0 ? void 0 : globalData.dossie;
115
- var processosJuridicos = globalData === null || globalData === void 0 ? void 0 : globalData.processosJuridicosData;
116
- var depsLoaded = !!(processosJuridicos === null || processosJuridicos === void 0 ? void 0 : processosJuridicos.isLoaded) && !!(dossie === null || dossie === void 0 ? void 0 : dossie.carousel);
117
- if (!depsLoaded || ctx.type === RequestStatus.Loading)
118
- return;
119
- var newIds = foundBusinessEntity
120
- ? processosComAssuntoValido.map(function (p) { return p.id; })
121
- : [];
122
- var hash = JSON.stringify({
123
- t: ctx.type,
124
- indicios: (_a = ctx.document) === null || _a === void 0 ? void 0 : _a.indiciosDeLiminar,
125
- carousel: dossie.carousel,
126
- empresas: processosJuridicos.empresa
127
- });
128
- if (hash === dataHashRef.current)
129
- return;
130
- dataHashRef.current = hash;
131
- var indiciosApi = ((_b = ctx.document) === null || _b === void 0 ? void 0 : _b.indiciosDeLiminar) === true;
132
- var finalStatus = indiciosApi || processosComAssuntoValido.length
133
- ? 'Encontrado'
134
- : 'Não encontrado';
135
- invertedIdsRef.current = newIds;
136
- setData(function (prev) { return (__assign(__assign({}, prev), { liminar: {
137
- indiciosDeLiminar: indiciosApi,
138
- message: finalStatus,
139
- isLoaded: true,
140
- processosComLiminarIds: processosComAssuntoValido.map(function (p) { return p.id; }),
141
- invertedProcessos: newIds
142
- } })); });
143
- processedRef.current = true;
173
+ var fetch = function () { return __awaiter(void 0, void 0, void 0, function () {
174
+ var dossie, processosJuridicos, depsLoaded, newIds, hash, indiciosApi, indiciosDeLiminarProtestosDoPassado, finalStatus;
175
+ var _a, _b, _c;
176
+ return __generator(this, function (_d) {
177
+ switch (_d.label) {
178
+ case 0:
179
+ dossie = globalData === null || globalData === void 0 ? void 0 : globalData.dossie;
180
+ processosJuridicos = globalData === null || globalData === void 0 ? void 0 : globalData.processosJuridicosData;
181
+ depsLoaded = !!(processosJuridicos === null || processosJuridicos === void 0 ? void 0 : processosJuridicos.isLoaded) && !!(dossie === null || dossie === void 0 ? void 0 : dossie.carousel);
182
+ if (!depsLoaded || ctx.type === RequestStatus.Loading)
183
+ return [2 /*return*/];
184
+ newIds = foundBusinessEntity
185
+ ? processosComAssuntoValido.map(function (p) { return p.id; })
186
+ : [];
187
+ hash = JSON.stringify({
188
+ t: ctx.type,
189
+ indicios: (_a = ctx.document) === null || _a === void 0 ? void 0 : _a.indiciosDeLiminar,
190
+ carousel: dossie.carousel,
191
+ empresas: processosJuridicos.empresa
192
+ });
193
+ if (hash === dataHashRef.current)
194
+ return [2 /*return*/];
195
+ dataHashRef.current = hash;
196
+ indiciosApi = ((_b = ctx.document) === null || _b === void 0 ? void 0 : _b.indiciosDeLiminar) === true;
197
+ indiciosDeLiminarProtestosDoPassado = false;
198
+ if (!(!indiciosApi &&
199
+ !processosComAssuntoValido.length &&
200
+ ((_c = globalData === null || globalData === void 0 ? void 0 : globalData.documentHistory) === null || _c === void 0 ? void 0 : _c.protestoLiminar))) return [3 /*break*/, 2];
201
+ setIsLoadingLiminarProtestosDoPassado(true);
202
+ return [4 /*yield*/, fetchLiminarProtestosDoPassado()];
203
+ case 1:
204
+ indiciosDeLiminarProtestosDoPassado =
205
+ _d.sent();
206
+ if (indiciosDeLiminarProtestosDoPassado)
207
+ origensDetectadas.push('Liminar no Cenprot');
208
+ setIsLoadingLiminarProtestosDoPassado(false);
209
+ _d.label = 2;
210
+ case 2:
211
+ finalStatus = indiciosApi ||
212
+ processosComAssuntoValido.length ||
213
+ indiciosDeLiminarProtestosDoPassado
214
+ ? 'Encontrado'
215
+ : 'Não encontrado';
216
+ invertedIdsRef.current = newIds;
217
+ setData(function (prev) { return (__assign(__assign({}, prev), { liminar: {
218
+ indiciosDeLiminar: indiciosApi || indiciosDeLiminarProtestosDoPassado,
219
+ message: finalStatus,
220
+ isLoaded: true,
221
+ processosComLiminarIds: processosComAssuntoValido.map(function (p) { return p.id; }),
222
+ indiciosDeLiminarProtestosDoPassado: indiciosDeLiminarProtestosDoPassado,
223
+ invertedProcessos: newIds
224
+ } })); });
225
+ processedRef.current = true;
226
+ return [2 /*return*/];
227
+ }
228
+ });
229
+ }); };
230
+ fetch();
144
231
  }, [
145
232
  ctx.type,
146
233
  ctx.document,
@@ -151,8 +238,9 @@ var Liminar = function () {
151
238
  foundBusinessEntity
152
239
  ]);
153
240
  var ready = processedRef.current &&
154
- !!((_c = globalData === null || globalData === void 0 ? void 0 : globalData.processosJuridicosData) === null || _c === void 0 ? void 0 : _c.isLoaded) &&
155
- !!((_d = globalData === null || globalData === void 0 ? void 0 : globalData.dossie) === null || _d === void 0 ? void 0 : _d.carousel) &&
241
+ !!((_f = globalData === null || globalData === void 0 ? void 0 : globalData.processosJuridicosData) === null || _f === void 0 ? void 0 : _f.isLoaded) &&
242
+ !!((_g = globalData === null || globalData === void 0 ? void 0 : globalData.dossie) === null || _g === void 0 ? void 0 : _g.carousel) &&
243
+ !isLoadingLiminarProtestosDoPassado &&
156
244
  ctx.type !== RequestStatus.Loading;
157
245
  var ctxLoading = useMemo(function () { return (__assign(__assign({}, ctx), { type: RequestStatus.Loading })); }, [ctx]);
158
246
  var scrollToProcesso = function (id) {
@@ -169,9 +257,10 @@ var Liminar = function () {
169
257
  var tooltipMessage = foundBusinessEntity
170
258
  ? 'Atenção: Em alguns casos, o sistema judicial pode registrar os papéis das partes de forma invertida, dificultando a interpretação direta. Por isso, utilizamos algoritmos internos para detectar esse padrão com base em contexto e palavras-chave.'
171
259
  : 'Processos com indícios encontrados:';
172
- var shouldRender = ready &&
173
- (((_e = globalData === null || globalData === void 0 ? void 0 : globalData.liminar) === null || _e === void 0 ? void 0 : _e.indiciosDeLiminar) ||
174
- ((_h = (_g = (_f = globalData === null || globalData === void 0 ? void 0 : globalData.liminar) === null || _f === void 0 ? void 0 : _f.processosComLiminarIds) === null || _g === void 0 ? void 0 : _g.length) !== null && _h !== void 0 ? _h : 0) > 0);
260
+ var shouldRender = isLoadingLiminarProtestosDoPassado ||
261
+ (ready &&
262
+ (((_h = globalData === null || globalData === void 0 ? void 0 : globalData.liminar) === null || _h === void 0 ? void 0 : _h.indiciosDeLiminar) ||
263
+ ((_l = (_k = (_j = globalData === null || globalData === void 0 ? void 0 : globalData.liminar) === null || _j === void 0 ? void 0 : _j.processosComLiminarIds) === null || _k === void 0 ? void 0 : _k.length) !== null && _l !== void 0 ? _l : 0) > 0));
175
264
  if (!shouldRender)
176
265
  return null;
177
266
  return (React.createElement(Section, { title: React.createElement(TitleWithTooltip, null,
@@ -0,0 +1,7 @@
1
+ interface LiminarProtestosDoPassadoProps {
2
+ documento: string;
3
+ }
4
+ declare const useLiminarProtestosDoPassado: ({ documento }: LiminarProtestosDoPassadoProps) => {
5
+ fetchLiminarProtestosDoPassado: () => Promise<boolean>;
6
+ };
7
+ export default useLiminarProtestosDoPassado;
@@ -0,0 +1,105 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ var __generator = (this && this.__generator) || function (thisArg, body) {
11
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
12
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
+ function verb(n) { return function (v) { return step([n, v]); }; }
14
+ function step(op) {
15
+ if (f) throw new TypeError("Generator is already executing.");
16
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
18
+ if (y = 0, t) op = [op[0] & 2, t.value];
19
+ switch (op[0]) {
20
+ case 0: case 1: t = op; break;
21
+ case 4: _.label++; return { value: op[1], done: false };
22
+ case 5: _.label++; y = op[1]; op = [0]; continue;
23
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
24
+ default:
25
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
26
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
27
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
28
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
29
+ if (t[2]) _.ops.pop();
30
+ _.trys.pop(); continue;
31
+ }
32
+ op = body.call(thisArg, _);
33
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
34
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
+ }
36
+ };
37
+ import { Client } from "@credithub/webservice";
38
+ import { useCallback, useContext } from "react";
39
+ import { WebService } from "../webservice";
40
+ import XPathUtils from "../../utils/xpath";
41
+ var useLiminarProtestosDoPassado = function (_a) {
42
+ var documento = _a.documento;
43
+ var client = useContext(WebService);
44
+ var getAlgumInstrumentoPossuiPDF = function (numerosChave) { return __awaiter(void 0, void 0, void 0, function () {
45
+ var getNumeroChave, i, chunk, results;
46
+ return __generator(this, function (_a) {
47
+ switch (_a.label) {
48
+ case 0:
49
+ getNumeroChave = function (numeroChave) { return __awaiter(void 0, void 0, void 0, function () {
50
+ var response, _a;
51
+ return __generator(this, function (_b) {
52
+ switch (_b.label) {
53
+ case 0:
54
+ _b.trys.push([0, 3, , 4]);
55
+ return [4 /*yield*/, client.request("SELECT FROM 'PDFPROTESTO'.'PDF'", { nm_chave: numeroChave })];
56
+ case 1:
57
+ response = _b.sent();
58
+ return [4 /*yield*/, response.json()];
59
+ case 2: return [2 /*return*/, !!(_b.sent())];
60
+ case 3:
61
+ _a = _b.sent();
62
+ return [2 /*return*/, false];
63
+ case 4: return [2 /*return*/];
64
+ }
65
+ });
66
+ }); };
67
+ i = 0;
68
+ _a.label = 1;
69
+ case 1:
70
+ if (!(i < numerosChave.length)) return [3 /*break*/, 4];
71
+ chunk = numerosChave.slice(i, i + 5);
72
+ return [4 /*yield*/, Promise.all(chunk.map(getNumeroChave))];
73
+ case 2:
74
+ results = _a.sent();
75
+ if (results.includes(true))
76
+ return [2 /*return*/, true];
77
+ _a.label = 3;
78
+ case 3:
79
+ i += 5;
80
+ return [3 /*break*/, 1];
81
+ case 4: return [2 /*return*/, false];
82
+ }
83
+ });
84
+ }); };
85
+ var fetch = useCallback(function () { return __awaiter(void 0, void 0, void 0, function () {
86
+ var data, parsed, nodes, numerosChave;
87
+ return __generator(this, function (_a) {
88
+ switch (_a.label) {
89
+ case 0: return [4 /*yield*/, client.request("SELECT FROM 'IEPTB'.'PASTQUERIES'", {
90
+ documento: documento
91
+ })];
92
+ case 1:
93
+ data = _a.sent();
94
+ return [4 /*yield*/, Client.WebService.parse(data)];
95
+ case 2:
96
+ parsed = _a.sent();
97
+ nodes = XPathUtils.selectArray('//protesto/nm_chave', parsed);
98
+ numerosChave = Array.from(new Set(nodes.map(function (node) { return node.textContent || ''; })));
99
+ return [2 /*return*/, getAlgumInstrumentoPossuiPDF(numerosChave)];
100
+ }
101
+ });
102
+ }); }, [documento]);
103
+ return { fetchLiminarProtestosDoPassado: fetch };
104
+ };
105
+ export default useLiminarProtestosDoPassado;
@@ -94,7 +94,7 @@ function RefinBoaVista(_a) {
94
94
  refetch: function () { },
95
95
  Section: Section,
96
96
  progress: loadingProgress
97
- }, title: "Restri\u00E7\u00F5es Pefin/Refin Boa Vista", subtitle: "Apontamentos e Restri\u00E7\u00F5es Financeiras e Comerciais", icon: PefinRefinBoaVistaIcon, description: !error && (React.createElement(StatusMessage, { type: pendencias.length ? 'success' : 'default' }, description)), onSuccess: function () { return (React.createElement(Result, null, pendencias.map(function (pendencia, i) { return (React.createElement(ResultContent, { key: i, desktop: "repeat(5, 1fr)", tablet: "repeat(3, 1fr)", mobile: "1fr 1fr" },
97
+ }, title: "Restri\u00E7\u00F5es Pefin/Refin Boa Vista", subtitle: "Apontamentos e Restri\u00E7\u00F5es Financeiras e Comerciais", icon: PefinRefinBoaVistaIcon, description: !error && (React.createElement(StatusMessage, { type: pendencias.length === 0 ? 'default' : 'error' }, description)), variant: pendencias.length === 0 ? 'default' : 'error', onSuccess: function () { return (React.createElement(Result, null, pendencias.map(function (pendencia, i) { return (React.createElement(ResultContent, { key: i, desktop: "repeat(5, 1fr)", tablet: "repeat(3, 1fr)", mobile: "1fr 1fr" },
98
98
  React.createElement(AddItemField, { name: "Associado", value: pendencia.NomeAssociado }),
99
99
  React.createElement(AddItemField, { name: "Valor", value: pendencia.Valor && !isNaN(parseFloat(pendencia.Valor))
100
100
  ? "".concat(formatMoney(parseFloat(pendencia.Valor)))