@credithub/harlan-components 1.97.8 → 1.97.10

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.
@@ -31,6 +31,7 @@ import React, { useCallback, useContext, useEffect } from 'react';
31
31
  import styled from 'styled-components';
32
32
  import Button from '../common/button';
33
33
  import { Result, ResultContent } from '../interface/result';
34
+ import StatusMessage from '../interface/statusMessage';
34
35
  import Section from '../section';
35
36
  import { Queries, RequestStatus } from '../webservice';
36
37
  import ContactLikeDislikeSection from './contactLikeDislikeSection';
@@ -52,7 +53,7 @@ var Contacts = function (_a) {
52
53
  var telefones = __spreadArray(__spreadArray([], telefonesRfb.map(function (telefone) { return ({
53
54
  type: ContactType.TELEFONE,
54
55
  value: telefone
55
- }); }), true), __spreadArray(__spreadArray([], XPathUtils.selectArray('//telefones/fixos/fixos', data) || [], true), XPathUtils.selectArray('//telefones/moveis/moveis', data) || [], true).map(function (telefone) { return ({
56
+ }); }), true), __spreadArray(__spreadArray([], (XPathUtils.selectArray('//telefones/fixos/fixos', data) || []), true), (XPathUtils.selectArray('//telefones/moveis/moveis', data) || []), true).map(function (telefone) { return ({
56
57
  type: ContactType.TELEFONE,
57
58
  value: phoneMask(XPathUtils.select('string(./telefone)', telefone))
58
59
  }); }), true);
@@ -91,13 +92,15 @@ var Contacts = function (_a) {
91
92
  }))); };
92
93
  return (React.createElement(Section, { ctx: ctx, title: "Contato", subtitle: "Informa\u00E7\u00F5es de contato do documento pesquisado.", description: "(Telefone, e-mail e outros)", minimized: false, icon: ContatoIcon, onSuccess: function (data) {
93
94
  var _a = extractContacts(data), telefones = _a.telefones, emails = _a.emails, document = _a.document;
94
- return {
95
- children: (React.createElement(Result, { resultContentStriped: false },
96
- renderContactItems(telefones, document, "1fr 1fr 1fr", "1fr 1fr", "1fr 1fr"),
97
- renderContactItems(emails, document, "1fr 1fr 1fr", "1fr 1fr", "1fr"))),
98
- actions: (React.createElement(BtnWrapper, null,
99
- React.createElement(Button, { onClick: onClickConsultarEmail }, "Consultar E-mail em Dom\u00EDnio")))
100
- };
95
+ var isEmpty = telefones.length === 0 && emails.length === 0;
96
+ return __assign(__assign({ children: isEmpty ? null : (React.createElement(Result, { resultContentStriped: false },
97
+ renderContactItems(telefones, document, '1fr 1fr 1fr', '1fr 1fr', '1fr 1fr'),
98
+ renderContactItems(emails, document, '1fr 1fr 1fr', '1fr 1fr', '1fr'))) }, (isEmpty
99
+ ? {
100
+ description: (React.createElement(StatusMessage, { type: "default" }, "Sem apontamentos"))
101
+ }
102
+ : {})), { actions: (React.createElement(BtnWrapper, null,
103
+ React.createElement(Button, { onClick: onClickConsultarEmail }, "Consultar E-mail em Dom\u00EDnio"))) });
101
104
  } }));
102
105
  };
103
106
  export default Contacts;
@@ -306,7 +306,6 @@ var Liminar = function (_a) {
306
306
  (_j = globalData === null || globalData === void 0 ? void 0 : globalData.liminar) === null || _j === void 0 ? void 0 : _j.indiciosDeLiminarProtestosDoPassado,
307
307
  processosComAssuntoValido
308
308
  ]);
309
- console.log('typesForHistory', typesForHistory);
310
309
  // Se existem tipos que de fato contribuíram para o indício,
311
310
  // então o indício é verdadeiro para fins de histórico.
312
311
  var indicioDeLiminarForHistory = typesForHistory.length > 0;
@@ -35,7 +35,6 @@ export function useLiminarHistory(_a) {
35
35
  payload.protestKeys = JSON.stringify(protestKeys);
36
36
  if (processIds.length)
37
37
  payload.processIds = JSON.stringify(processIds);
38
- console.log('payload', payload);
39
38
  insertHistory(payload);
40
39
  lastFingerprint.current = fingerprint;
41
40
  // eslint-disable-next-line react-hooks/exhaustive-deps