@credithub/harlan-components 1.75.0 → 1.75.2

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.
Files changed (134) hide show
  1. package/dist/assets/btn/btnSend.d.ts +1 -1
  2. package/dist/assets/btn/btnSend.js +2 -8
  3. package/dist/assets/btn/buttonAtualizarDadosRfb.d.ts +1 -2
  4. package/dist/assets/btn/buttonAtualizarDadosRfb.js +3 -3
  5. package/dist/assets/btn/chevronDown.d.ts +1 -1
  6. package/dist/assets/btn/chevronDown.js +2 -3
  7. package/dist/assets/btn/chevronLeft.d.ts +1 -1
  8. package/dist/assets/btn/chevronLeft.js +2 -3
  9. package/dist/assets/btn/chevronRight.d.ts +1 -1
  10. package/dist/assets/btn/chevronRight.js +2 -3
  11. package/dist/assets/btn/chevronUp.d.ts +1 -1
  12. package/dist/assets/btn/chevronUp.js +2 -3
  13. package/dist/assets/btn/closeIcon.d.ts +1 -1
  14. package/dist/assets/btn/closeIcon.js +2 -3
  15. package/dist/assets/btn/printIcon.d.ts +1 -1
  16. package/dist/assets/btn/printIcon.js +2 -3
  17. package/dist/assets/btn/stopBtn.d.ts +1 -1
  18. package/dist/assets/btn/stopBtn.js +2 -4
  19. package/dist/assets/btn/thumbDown.js +2 -6
  20. package/dist/assets/btn/thumbUp.js +2 -6
  21. package/dist/assets/icones/chequesSemFundo.js +2 -7
  22. package/dist/assets/icones/consultaSimples.js +2 -7
  23. package/dist/assets/icones/contasBancarias.js +2 -7
  24. package/dist/assets/icones/contato.js +2 -7
  25. package/dist/assets/icones/credithub.js +2 -10
  26. package/dist/assets/icones/dividasVencidasSerasa.js +2 -4
  27. package/dist/assets/icones/dominios.js +2 -4
  28. package/dist/assets/icones/endereco.d.ts +1 -2
  29. package/dist/assets/icones/endereco.js +2 -7
  30. package/dist/assets/icones/iconeEmpresa.js +2 -7
  31. package/dist/assets/icones/iconePessoa.js +2 -7
  32. package/dist/assets/icones/imoveis.js +2 -4
  33. package/dist/assets/icones/pefinRefinBoaVista.js +2 -4
  34. package/dist/assets/icones/pefinRefinSerasa.js +2 -6
  35. package/dist/assets/icones/person.js +2 -7
  36. package/dist/assets/icones/processosJuridicos.js +2 -7
  37. package/dist/assets/icones/protestos.js +2 -7
  38. package/dist/assets/icones/protestosCredito.js +2 -7
  39. package/dist/assets/icones/protestosGerais.js +2 -7
  40. package/dist/assets/icones/protestosImpostos.js +2 -7
  41. package/dist/assets/icones/quadroSocietario.js +2 -7
  42. package/dist/assets/icones/resumoNegativacoes.js +2 -6
  43. package/dist/assets/icones/scoreBoaVista.js +2 -4
  44. package/dist/assets/icones/scr.js +2 -4
  45. package/dist/assets/icones/ultimaMovimentacao.js +2 -7
  46. package/dist/assets/icones/veiculos.js +2 -4
  47. package/dist/components/adresses/addresses.js +4 -10
  48. package/dist/components/bank-accounts/bank-accounts.d.ts +1 -2
  49. package/dist/components/bank-accounts/bank-accounts.js +5 -7
  50. package/dist/components/ccf/ccf.d.ts +1 -1
  51. package/dist/components/ccf/ccf.js +8 -7
  52. package/dist/components/ccf/ccfList.js +4 -8
  53. package/dist/components/chart/chartContent.js +2 -10
  54. package/dist/components/chart/chartSystem.js +27 -32
  55. package/dist/components/chart/components/MixedChart.js +9 -10
  56. package/dist/components/chart/components/PieChart.js +2 -2
  57. package/dist/components/chart/components/categoryProtestos.js +2 -3
  58. package/dist/components/chart/quantityResult.js +3 -27
  59. package/dist/components/common/addItem.d.ts +1 -1
  60. package/dist/components/common/addItem.js +2 -5
  61. package/dist/components/common/button.js +2 -4
  62. package/dist/components/common/gauge.js +3 -3
  63. package/dist/components/common/modal.js +3 -7
  64. package/dist/components/common/modalMaintenance.js +3 -6
  65. package/dist/components/common/printSectionWrapper.js +2 -2
  66. package/dist/components/consultaRfb.js +4 -3
  67. package/dist/components/consultaSimplesSection/consultaSimplesSection.js +11 -18
  68. package/dist/components/consultasComplementares.js +4 -3
  69. package/dist/components/contacts/contactLikeDislikeSection.js +4 -5
  70. package/dist/components/contacts/contacts.js +11 -13
  71. package/dist/components/contacts/contactsLikeDislike.js +2 -2
  72. package/dist/components/contacts/thumbsButton.js +2 -11
  73. package/dist/components/dividasPublicas/dividasPublicas.js +8 -8
  74. package/dist/components/dividasPublicas/dividasPublicasList.js +3 -14
  75. package/dist/components/dominios/dominios.js +9 -9
  76. package/dist/components/dossie/carrousel/carrousel.js +2 -3
  77. package/dist/components/dossie/companyLogo/companyLogo.js +2 -7
  78. package/dist/components/dossie/dossie.js +3 -9
  79. package/dist/components/dossie/generativeAi/generativeAi.js +7 -40
  80. package/dist/components/dossie/summary/cardsAndProducts.d.ts +1 -1
  81. package/dist/components/dossie/summary/cardsAndProducts.js +3 -2
  82. package/dist/components/dossie/summary/summary.js +5 -14
  83. package/dist/components/dossie/transactionTable/transactionTable.js +2 -10
  84. package/dist/components/imoveis/imoveisService.js +11 -24
  85. package/dist/components/interface/header.js +4 -14
  86. package/dist/components/interface/loading.d.ts +1 -2
  87. package/dist/components/interface/loading.js +2 -6
  88. package/dist/components/interface/loadingBar.js +2 -3
  89. package/dist/components/interface/resultWithoutInformation.js +2 -4
  90. package/dist/components/interface/section.js +2 -10
  91. package/dist/components/liminar/liminar.js +37 -48
  92. package/dist/components/partners/partner-dividas-publicas.d.ts +1 -2
  93. package/dist/components/partners/partner-dividas-publicas.js +2 -2
  94. package/dist/components/partners/partner-protestos.d.ts +1 -2
  95. package/dist/components/partners/partner-protestos.js +2 -2
  96. package/dist/components/partners/partner-rfb-status.d.ts +1 -2
  97. package/dist/components/partners/partner-rfb-status.js +2 -2
  98. package/dist/components/partners/partnerField.js +2 -2
  99. package/dist/components/partners/partnerList.d.ts +1 -1
  100. package/dist/components/partners/partnerList.js +6 -11
  101. package/dist/components/partners/partners.d.ts +1 -2
  102. package/dist/components/partners/partners.js +11 -11
  103. package/dist/components/pep/pep.js +5 -6
  104. package/dist/components/processos-juridicos/envolvidosList.js +2 -6
  105. package/dist/components/processos-juridicos/processosJuridicos.js +10 -9
  106. package/dist/components/processos-juridicos/processosJuridicosList.js +7 -19
  107. package/dist/components/protestos/protestos.js +14 -13
  108. package/dist/components/protestos/protestosCategory.js +7 -11
  109. package/dist/components/protestos/protestosList.d.ts +2 -2
  110. package/dist/components/protestos/protestosList.js +12 -27
  111. package/dist/components/protestos/protestosSp.js +12 -14
  112. package/dist/components/reclameAqui/carousel.d.ts +21 -0
  113. package/dist/components/reclameAqui/carousel.js +47 -0
  114. package/dist/components/reclameAqui/reclameAquiCarousel.js +12 -37
  115. package/dist/components/refinBoaVista/refinBoaVista.d.ts +1 -2
  116. package/dist/components/refinBoaVista/refinBoaVista.js +8 -19
  117. package/dist/components/refinSerasa/refinSerasa.js +9 -24
  118. package/dist/components/resultadoDaPesquisa/resultado-da-pesquisa.js +2 -8
  119. package/dist/components/score/scoreService.js +6 -15
  120. package/dist/components/scoreSerasa/scoreSerasa.js +7 -11
  121. package/dist/components/scr/scr.d.ts +1 -2
  122. package/dist/components/scr/scr.js +30 -38
  123. package/dist/components/scr/scrDataBaseModal.js +3 -8
  124. package/dist/components/section.d.ts +2 -2
  125. package/dist/components/section.js +38 -31
  126. package/dist/components/veiculos/veiculos.js +6 -20
  127. package/dist/components/webservice.js +4 -3
  128. package/dist/consultaSimples.js +4 -37
  129. package/dist/contexts/createDataContext.js +3 -2
  130. package/lib/cjs/index.js +3023 -7815
  131. package/lib/esm/index.js +42207 -45001
  132. package/package.json +1 -2
  133. package/dist/components/common/carousel.d.ts +0 -4
  134. package/dist/components/common/carousel.js +0 -19
@@ -1,10 +1,10 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
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 ? (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));
8
+ return isLoading ? (_jsx(Loading, {})) : 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,5 +1,4 @@
1
- import React from 'react';
2
1
  declare const PartnerProtestos: ({ documento }: {
3
2
  documento: string;
4
- }) => string | React.JSX.Element;
3
+ }) => string | import("react/jsx-runtime").JSX.Element;
5
4
  export default PartnerProtestos;
@@ -1,10 +1,10 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
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 ? (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));
8
+ return isLoading ? (_jsx(Loading, {})) : 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,5 +1,4 @@
1
- import React from 'react';
2
1
  declare const PartnerRFBStatus: ({ documento }: {
3
2
  documento: string;
4
- }) => string | React.JSX.Element;
3
+ }) => string | import("react/jsx-runtime").JSX.Element;
5
4
  export default PartnerRFBStatus;
@@ -1,10 +1,10 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
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 ? (React.createElement(Loading, null)) : error ? ('--') : (XPathUtils.select('string(//situacao)', response === null || response === void 0 ? void 0 : response.document));
8
+ return isLoading ? (_jsx(Loading, {})) : 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 React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
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 (React.createElement(AddItemField, { name: name, value: value, onClick: onClick, className: combinedClassName }));
7
+ return (_jsx(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) => React.JSX.Element[]>;
16
+ declare const PartnerList: React.MemoExoticComponent<({ partners, onClickQSA }: PartnerListProps) => import("react/jsx-runtime").JSX.Element[]>;
17
17
  export default PartnerList;
@@ -2,7 +2,8 @@ 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 React, { memo } from 'react';
5
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
+ import { memo } from 'react';
6
7
  import styled from 'styled-components';
7
8
  import PartnerField from '../common/addItem';
8
9
  import { ResultContent } from '../interface/result';
@@ -12,16 +13,10 @@ var PartnerList = memo(function (_a) {
12
13
  var partners = _a.partners, onClickQSA = _a.onClickQSA;
13
14
  return partners.map(function (partner, key) {
14
15
  var _a, _b;
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")))));
16
+ return (_jsxs(ResultContent, { desktop: "2fr 1fr 0.7fr 1fr 1fr 1fr", tablet: "2fr repeat(2, 1fr)", mobile: "repeat(2, 1fr)", children: [_jsx(PartnerField, { name: partner.cnpj ? 'Empresa' : ((_a = partner.cargo) !== null && _a !== void 0 ? _a : ''), value: partner.nome }), _jsx(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 : ''); } }), _jsx(PartnerField, { name: "Protestos", value: partner === null || partner === void 0 ? void 0 : partner.protestos }), _jsx(PartnerField, { name: "Situa\u00E7\u00E3o na Receita Federal", value: partner.receitaStatus }), _jsx(PartnerField, { name: "Dividas P\u00FAblicas", value: partner.dividasPublicas }), _jsx("div", { children: (partner.cpf || partner.cnpj) && (_jsx(ButtonPartner, { onClick: function (e) {
17
+ e.preventDefault();
18
+ onClickQSA(partner.cpf || partner.cnpj || '');
19
+ }, children: "Abrir" })) })] }, key));
25
20
  });
26
21
  });
27
22
  export default PartnerList;
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
1
  declare const Partners: ({ onClickQSA }: {
3
2
  onClickQSA: (cpfCnpj: string) => void;
4
- }) => React.JSX.Element;
3
+ }) => import("react/jsx-runtime").JSX.Element;
5
4
  export default Partners;
@@ -29,12 +29,13 @@ 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";
32
33
  import QuadroSocietarioIcon from '../../assets/icones/quadroSocietario';
33
34
  import { useGlobalData } from '../../contexts/globalDataContext';
34
35
  import { useConsultaRfb } from '../../hooks/useConsultaRfb';
35
36
  import { formatCnpj, formatCpf, isCnpj } from '../../utils/string';
36
37
  import XPathUtils from '../../utils/xpath';
37
- import React, { useContext, useEffect, useState } from 'react';
38
+ import { useContext, useEffect, useState } from 'react';
38
39
  import { Result } from '../interface/result';
39
40
  import StatusMessage from '../interface/statusMessage';
40
41
  import Section from '../section';
@@ -62,9 +63,9 @@ var Partners = function (_a) {
62
63
  cpf: (!isCnpj(documento) && formatCpf(documento)) || '',
63
64
  cargo: XPathUtils.select('string(qualificacaoSocio)', partner),
64
65
  cnpj: (isCnpj(documento) && formatCnpj(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
66
+ receitaStatus: documento ? (_jsx(PartnerRFBStatus, { documento: documento })) : null,
67
+ dividasPublicas: documento ? (_jsx(PartnerDividasPublicas, { documento: documento })) : null,
68
+ protestos: documento ? (_jsx(PartnerProtestos, { documento: documento })) : null
68
69
  };
69
70
  });
70
71
  if (partners_1.length > 0) {
@@ -89,18 +90,17 @@ var Partners = function (_a) {
89
90
  cpf: (!isCnpj(documento) && formatCpf(documento)) || '',
90
91
  cargo: XPathUtils.select('string(qualificacaoSocio)', partner),
91
92
  cnpj: (isCnpj(documento) && formatCnpj(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
93
+ receitaStatus: documento ? (_jsx(PartnerRFBStatus, { documento: documento })) : null,
94
+ dividasPublicas: documento ? (_jsx(PartnerDividasPublicas, { documento: documento })) : null,
95
+ protestos: documento ? _jsx(PartnerProtestos, { documento: documento }) : null
95
96
  };
96
97
  });
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;
98
+ var children = (partners === null || partners === void 0 ? void 0 : partners.length) ? (_jsx(Result, { children: _jsx(PartnerList, { onClickQSA: onClickQSA, partners: partners }) })) : null;
99
99
  return {
100
100
  children: children,
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"))
101
+ description: !(partners === null || partners === void 0 ? void 0 : partners.length) && (_jsx(StatusMessage, { children: "N\u00E3o h\u00E1 informa\u00E7\u00F5es de Quadro Societ\u00E1rio" }))
102
102
  };
103
103
  };
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 }));
104
+ return (_jsx(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,9 +9,10 @@ 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";
12
13
  import { useGlobalData } from '../../contexts/globalDataContext';
13
14
  import XPathUtils from '../../utils/xpath';
14
- import React, { useContext, useState } from 'react';
15
+ import { useContext, useState } from 'react';
15
16
  import AddItemField from '../common/addItem';
16
17
  import { Result } from '../interface/result';
17
18
  import Section from '../section';
@@ -20,12 +21,12 @@ var PessoaPoliticamenteExposta = function () {
20
21
  var ctx = useContext(Queries.Finder);
21
22
  var setData = useGlobalData().setData;
22
23
  var _a = useState(false), dataUpdated = _a[0], setDataUpdated = _a[1];
23
- return (React.createElement(Section, { ctx: ctx, title: "Pessoa Politicamente Exposta", subtitle: "Vejas As Informa\u00E7\u00F5es Dispon\u00EDveis", onSuccess: function (document) {
24
+ return (_jsx(Section, { ctx: ctx, title: "Pessoa Politicamente Exposta", subtitle: "Vejas As Informa\u00E7\u00F5es Dispon\u00EDveis", onSuccess: function (document) {
24
25
  var _a, _b, _c, _d;
25
26
  if (!(document instanceof Node)) {
26
27
  console.error('O documento não é do tipo Node esperado.');
27
28
  return {
28
- children: React.createElement(React.Fragment, null),
29
+ children: _jsx(_Fragment, {}),
29
30
  description: 'Erro ao processar o documento.'
30
31
  };
31
32
  }
@@ -35,9 +36,7 @@ var PessoaPoliticamenteExposta = function () {
35
36
  setData(function (prevState) { return (__assign(__assign({}, prevState), { pep: { pepData: pepData } })); });
36
37
  setDataUpdated(true);
37
38
  }
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;
39
+ var children = pepData ? (_jsx(Result, { children: _jsx("div", { className: "container", children: _jsx("div", { className: "content", children: FIELDS.map(function (field) { return (_jsx(AddItemField, { name: field.name, value: pepData[field.key] }, field.key)); }) }) }) })) : null;
41
40
  return {
42
41
  children: children,
43
42
  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 React from 'react';
5
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
6
  import styled from 'styled-components';
7
7
  import AddItemField from '../common/addItem';
8
8
  import ResponsiveGrid from '../interface/responsiveGrid';
@@ -22,11 +22,7 @@ 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 (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' }))); }))));
25
+ return (_jsxs(EnvolvidosListWrapper, { desktop: "1fr 3fr", tablet: "1fr", children: [_jsx(EnvolvidosUltimaMovimentacaoTitle, { className: "envolvidos-list-button", children: "Envolvidos na \u00DAltima Movimenta\u00E7\u00E3o" }), _jsx("div", { children: envolvidos.map(function (envolvido, i) { return (_jsxs(ResponsiveGrid, { desktop: "1fr 1fr", tablet: "1fr 1fr", mobile: "1fr 1fr", className: "content", children: [_jsx(AddItemField, { name: "Nome", value: envolvido.nome }), _jsx(AddItemField, { name: "Envolvimento", value: envolvido.envolvido_tipo || 'Não Informado' })] }, i)); }) })] }));
30
26
  };
31
27
  export default EnvolvidosList;
32
28
  var templateObject_1, templateObject_2;
@@ -9,9 +9,10 @@ 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";
12
13
  import ProcessosJuridicosIcon from '../../assets/icones/processosJuridicos';
13
14
  import { useGlobalData } from '../../contexts/globalDataContext';
14
- import React, { useContext, useEffect, useRef } from 'react';
15
+ import { useContext, useEffect, useRef } from 'react';
15
16
  import StatusMessage from '../interface/statusMessage';
16
17
  import Section from '../section';
17
18
  import { Queries, RequestStatus } from '../webservice';
@@ -90,18 +91,18 @@ var ProcessosJuridicos = function (_a) {
90
91
  processedRef.current = false;
91
92
  }
92
93
  }, [ctx.type]);
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) {
94
+ return (_jsx(Section, { ctx: ctx, title: "Processos Jur\u00EDdicos", subtitle: "Veja os processos jur\u00EDdicos para este documento.", icon: ProcessosJuridicosIcon, minimized: false, onSuccess: function (data) {
94
95
  var _a;
95
96
  var qtyProcessos = (_a = data.empresa) === null || _a === void 0 ? void 0 : _a.length;
96
- var children = qtyProcessos ? (React.createElement(ProcessosJuridicosList, { processos: data.empresa || [], onClickConsultarProcessoJuridico: onClickConsultarProcessoJuridico })) : null;
97
+ var children = qtyProcessos ? (_jsx(ProcessosJuridicosList, { processos: data.empresa || [], onClickConsultarProcessoJuridico: onClickConsultarProcessoJuridico })) : null;
97
98
  return {
98
99
  children: children,
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')),
100
+ description: (_jsx(StatusMessage, { type: qtyProcessos ? 'error' : 'default', children: qtyProcessos
101
+ ? 'Pesquisa concluída, ' +
102
+ (qtyProcessos > 1
103
+ ? "foram encontrados ".concat(qtyProcessos, " processos")
104
+ : 'foi encontrado 1 processo')
105
+ : 'Não foram encontrados processos jurídicos para o documento pesquisado' })),
105
106
  variant: qtyProcessos ? 'error' : 'default'
106
107
  };
107
108
  } }));
@@ -24,10 +24,11 @@ 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";
27
28
  import { useGlobalData } from '../../contexts/globalDataContext';
28
29
  import { sortProcessosByDate } from '../../utils/sortProcessosByDate';
29
30
  import { WarningCircle } from 'phosphor-react';
30
- import React, { memo, useEffect, useState } from 'react';
31
+ import { memo, useEffect, useState } from 'react';
31
32
  import styled from 'styled-components';
32
33
  import AddItem from '../common/addItem';
33
34
  import Button from '../common/button';
@@ -35,7 +36,7 @@ import { Result, ResultContent } from '../interface/result';
35
36
  import EnvolvidosList from './envolvidosList';
36
37
  var AddProcessoJuridicoField = function (_a) {
37
38
  var value = _a.value, props = __rest(_a, ["value"]);
38
- return (React.createElement(AddItem, __assign({}, props, { value: value || 'Não Informado' })));
39
+ return (_jsx(AddItem, __assign({}, props, { value: value || 'Não Informado' })));
39
40
  };
40
41
  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"])));
41
42
  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"])));
@@ -51,18 +52,7 @@ var ProcessoJuridicoItem = memo(function (_a) {
51
52
  var tooltipText = isInverted
52
53
  ? 'Atenção: Em alguns casos, o sistema judicial pode registrar os polos das partes de forma invertida, dificultando a interpretação direta.'
53
54
  : 'Indício de liminar identificada.';
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));
55
+ return (_jsxs(ProcessoJuridicoWrapper, { id: processo.id, className: highlighted ? 'highlighted-process' : '', children: [_jsxs(ResultWrapper, { children: [_jsxs(ResultContent, { fullWidth: true, desktop: "1.5fr 1.5fr repeat(3, 1fr)", tablet: "repeat(3, 1fr)", children: [_jsx(AddProcessoJuridicoField, { name: "N\u00FAmero CNJ", value: hasLiminar ? (_jsxs(CNJWithIcon, { "data-tooltip": tooltipText, children: [_jsx(WarningCircle, { size: 18, weight: "fill", style: { color: '#FFA500' } }), _jsx("span", { children: processo.numero_novo })] })) : (processo.numero_novo) }), _jsx(AddProcessoJuridicoField, { name: "Assunto(s)", value: processo.assuntos }), _jsx(AddProcessoJuridicoField, { name: "Classe Processual", value: processo.classe_processual }), _jsx(AddProcessoJuridicoField, { name: "Sigla do Di\u00E1rio", value: processo.diario_sigla }), _jsx(AddProcessoJuridicoField, { name: "Estado", value: processo.estado })] }), _jsx(EnvolvidosList, { envolvidos: processo === null || processo === void 0 ? void 0 : processo.envolvidos_ultima_movimentacao })] }), children] }));
66
56
  });
67
57
  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) {
68
58
  var theme = _a.theme;
@@ -84,11 +74,9 @@ var ProcessosJuridicosList = function (_a) {
84
74
  }
85
75
  }
86
76
  }, []);
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")))); })));
77
+ return (_jsx(ResultList, { resultContentStriped: false, children: sortedProcessos.map(function (processo, i) { return (_jsx("div", { children: _jsx(ProcessoJuridicoItem, { processo: processo, highlighted: highlightedId === processo.id, children: _jsx(ConsultarProcessoBtn, { onClick: onClickConsultarProcessoJuridico
78
+ ? function () { return onClickConsultarProcessoJuridico(processo.id); }
79
+ : undefined, smallContent: "R$ 1", children: "Consultar Processo" }) }) }, i)); }) }));
92
80
  };
93
81
  export default ProcessosJuridicosList;
94
82
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
@@ -13,6 +13,7 @@ var __assign = (this && this.__assign) || function () {
13
13
  };
14
14
  return __assign.apply(this, arguments);
15
15
  };
16
+ import { jsx as _jsx } from "react/jsx-runtime";
16
17
  import ProtestosIcon from '../../assets/icones/protestos';
17
18
  import ProtestosCreditoIcon from '../../assets/icones/protestosCredito';
18
19
  import ProtestosGeraisIcon from '../../assets/icones/protestosGerais';
@@ -120,33 +121,33 @@ var Protestos = function () {
120
121
  var elements = [
121
122
  {
122
123
  total: protestosDeCredito.length,
123
- element: (React.createElement(ProtestosCategory, { title: "Protestos de Cr\u00E9dito", subtitle: "Protestos de cr\u00E9dito em geral.", registros: protestosDeCredito.length, icon: ProtestosCreditoIcon }, protestosDeCredito.map(function (protesto, i) { return (React.createElement(ProtestoItem, { protesto: protesto, key: i })); })))
124
+ element: (_jsx(ProtestosCategory, { title: "Protestos de Cr\u00E9dito", subtitle: "Protestos de cr\u00E9dito em geral.", registros: protestosDeCredito.length, icon: ProtestosCreditoIcon, children: protestosDeCredito.map(function (protesto, i) { return (_jsx(ProtestoItem, { protesto: protesto }, i)); }) }))
124
125
  },
125
126
  {
126
127
  total: protestosDeImposto.length,
127
- element: (React.createElement(ProtestosCategory, { title: "Protestos de Imposto", subtitle: "Protestos de impostos federais, estaduais e municipais.", registros: protestosDeImposto.length, icon: ProtestosImpostosIcon }, protestosDeImposto.map(function (protesto, i) { return (React.createElement(ProtestoItem, { protesto: protesto, key: i })); })))
128
+ element: (_jsx(ProtestosCategory, { title: "Protestos de Imposto", subtitle: "Protestos de impostos federais, estaduais e municipais.", registros: protestosDeImposto.length, icon: ProtestosImpostosIcon, children: protestosDeImposto.map(function (protesto, i) { return (_jsx(ProtestoItem, { protesto: protesto }, i)); }) }))
128
129
  },
129
130
  {
130
131
  total: protestosGerais.length,
131
- element: (React.createElement(ProtestosCategory, { title: "Protestos Gerais", subtitle: "Protestos de outros tipos.", registros: protestosGerais.length, icon: ProtestosGeraisIcon }, protestosGerais.map(function (protesto, i) { return (React.createElement(ProtestoItem, { protesto: protesto, key: i })); })))
132
+ element: (_jsx(ProtestosCategory, { title: "Protestos Gerais", subtitle: "Protestos de outros tipos.", registros: protestosGerais.length, icon: ProtestosGeraisIcon, children: protestosGerais.map(function (protesto, i) { return (_jsx(ProtestoItem, { protesto: protesto }, i)); }) }))
132
133
  }
133
134
  ].sort(function (a, b) { return b.total - a.total; });
134
- var children = registros ? (React.createElement(ResultProtestos, null, elements.map(function (_a, i) {
135
- var element = _a.element;
136
- return (React.createElement(React.Fragment, { key: i }, element));
137
- }))) : null;
135
+ var children = registros ? (_jsx(ResultProtestos, { children: elements.map(function (_a, i) {
136
+ var element = _a.element;
137
+ return (_jsx(React.Fragment, { children: element }, i));
138
+ }) })) : null;
138
139
  var variant = registros ? 'error' : 'default';
139
140
  return {
140
141
  children: children,
141
142
  variant: variant,
142
- description: (React.createElement(StatusMessage, { type: registros ? 'error' : 'default' }, registros
143
- ? registros === 1
144
- ? 'Encontrado um protesto'
145
- : "Encontrados ".concat(registros, " protestos")
146
- : 'Não há ocorrência de protesto'))
143
+ description: (_jsx(StatusMessage, { type: registros ? 'error' : 'default', children: registros
144
+ ? registros === 1
145
+ ? 'Encontrado um protesto'
146
+ : "Encontrados ".concat(registros, " protestos")
147
+ : 'Não há ocorrência de protesto' }))
147
148
  };
148
149
  }, [total, iaOverrides]);
149
- return (React.createElement(Section, { ctx: ctx, title: "Apontamentos na Central de Protestos (CENPROT)", subtitle: "Consulta de protestos de cr\u00E9dito, imposto e gerais.", icon: ProtestosIcon, onSuccess: handleSuccess }));
150
+ return (_jsx(Section, { ctx: ctx, title: "Apontamentos na Central de Protestos (CENPROT)", subtitle: "Consulta de protestos de cr\u00E9dito, imposto e gerais.", icon: ProtestosIcon, onSuccess: handleSuccess }));
150
151
  };
151
152
  export default React.memo(Protestos);
152
153
  var templateObject_1;
@@ -20,7 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
- import React from 'react';
23
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
24
24
  import Header from '../interface/header';
25
25
  import { Result } from '../interface/result';
26
26
  import StatusMessage from '../interface/statusMessage';
@@ -32,15 +32,11 @@ import Content from '../common/content';
32
32
  var ProtestosCategory = function (_a) {
33
33
  var registros = _a.registros, title = _a.title, subtitle = _a.subtitle, children = _a.children, rest = __rest(_a, ["registros", "title", "subtitle", "children"]);
34
34
  var _b = useToggle(), isOpen = _b[0], toggleOpen = _b[1];
35
- var defaultHeaderActions = (React.createElement(React.Fragment, null,
36
- React.createElement(BtnWrapper, { onClick: toggleOpen }, isOpen ? React.createElement(ChevronUp, null) : React.createElement(ChevronDown, null))));
37
- return (React.createElement("div", null,
38
- React.createElement(Header, __assign({ title: title, subtitle: subtitle, description: React.createElement(StatusMessage, { type: registros ? 'error' : 'default' }, !registros
39
- ? 'Não foram encontradas ocorrências'
40
- : registros === 1
41
- ? 'Foi encontrado um protesto'
42
- : "Foram encontrados ".concat(registros, " protestos")), variant: registros ? 'error' : 'default', actions: registros ? defaultHeaderActions : null }, rest)),
43
- React.createElement(Content, { isOpen: isOpen },
44
- React.createElement(Result, null, children))));
35
+ var defaultHeaderActions = (_jsx(_Fragment, { children: _jsx(BtnWrapper, { onClick: toggleOpen, children: isOpen ? _jsx(ChevronUp, {}) : _jsx(ChevronDown, {}) }) }));
36
+ return (_jsxs("div", { children: [_jsx(Header, __assign({ title: title, subtitle: subtitle, description: _jsx(StatusMessage, { type: registros ? 'error' : 'default', children: !registros
37
+ ? 'Não foram encontradas ocorrências'
38
+ : registros === 1
39
+ ? 'Foi encontrado um protesto'
40
+ : "Foram encontrados ".concat(registros, " protestos") }), variant: registros ? 'error' : 'default', actions: registros ? defaultHeaderActions : null }, rest)), _jsx(Content, { isOpen: isOpen, children: _jsx(Result, { children: children }) })] }));
45
41
  };
46
42
  export default ProtestosCategory;
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  export declare const ProtestoItem: React.MemoExoticComponent<({ protesto }: {
3
3
  protesto: Node;
4
- }) => React.JSX.Element>;
4
+ }) => import("react/jsx-runtime").JSX.Element>;
5
5
  export declare const Instrumento: ({ nm_chave, cpfCnpj }: {
6
6
  nm_chave?: string;
7
7
  cpfCnpj?: string;
8
- }) => React.JSX.Element | null;
8
+ }) => import("react/jsx-runtime").JSX.Element | null;
9
9
  export declare const ProtestosList: React.FC<{
10
10
  protestos: Node[];
11
11
  }>;
@@ -45,12 +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, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
48
49
  import { useGlobalData } from '../../contexts/globalDataContext';
49
50
  import { formatMoney } from '../../utils/number';
50
51
  import { openFormThenRedirect } from '../../utils/protestosp';
51
52
  import { formatDocument } from '../../utils/string';
52
53
  import XPathUtils from '../../utils/xpath';
53
- import React, { memo, useContext, useEffect, useMemo, useState } from 'react';
54
+ import { memo, useContext, useEffect, useMemo, useState } from 'react';
54
55
  import AddItemField from '../common/addItem';
55
56
  import Button from '../common/button';
56
57
  import { ResultContent } from '../interface/result';
@@ -91,19 +92,15 @@ var ThreeDotsLoader = function () {
91
92
  }); };
92
93
  // CSS animation keyframes defined as a style block
93
94
  var keyframes = "\n @keyframes blink {\n 0% { opacity: 0.2; }\n 20% { opacity: 0.8; }\n 100% { opacity: 0.2; }\n }\n ";
94
- return (React.createElement("span", { style: loaderStyle },
95
- React.createElement("style", null, keyframes),
96
- React.createElement("span", { style: dotStyle(0) }),
97
- React.createElement("span", { style: dotStyle(0.2) }),
98
- React.createElement("span", { style: dotStyle(0.4) })));
95
+ return (_jsxs("span", { style: loaderStyle, children: [_jsx("style", { children: keyframes }), _jsx("span", { style: dotStyle(0) }), _jsx("span", { style: dotStyle(0.2) }), _jsx("span", { style: dotStyle(0.4) })] }));
99
96
  };
100
97
  // AI Indicator component with tooltip
101
- var AIIndicator = function () { return (React.createElement("span", { title: "Informa\u00E7\u00E3o obtida utilizando IA", style: {
98
+ var AIIndicator = function () { return (_jsx("span", { title: "Informa\u00E7\u00E3o obtida utilizando IA", style: {
102
99
  color: '#0066cc',
103
100
  marginLeft: '3px',
104
101
  fontSize: '0.8em',
105
102
  cursor: 'help'
106
- } }, "*")); };
103
+ }, children: "*" })); };
107
104
  export var ProtestoItem = memo(function (_a) {
108
105
  var _b;
109
106
  var protesto = _a.protesto;
@@ -205,29 +202,17 @@ export var ProtestoItem = memo(function (_a) {
205
202
  var original = getField('./nomeCedente');
206
203
  var override = iaOverrides[nm_chave];
207
204
  if (override && override.trim() !== '') {
208
- return (React.createElement(React.Fragment, null,
209
- override,
210
- React.createElement(AIIndicator, null)));
205
+ return (_jsxs(_Fragment, { children: [override, _jsx(AIIndicator, {})] }));
211
206
  }
212
207
  if (original && original.trim() !== '')
213
208
  return original;
214
209
  if (isAIData && quemApresentou)
215
- return (React.createElement(React.Fragment, null,
216
- quemApresentou,
217
- React.createElement(AIIndicator, null)));
210
+ return (_jsxs(_Fragment, { children: [quemApresentou, _jsx(AIIndicator, {})] }));
218
211
  if ((loading || queued) && !quemApresentou)
219
- return React.createElement(ThreeDotsLoader, null);
212
+ return _jsx(ThreeDotsLoader, {});
220
213
  return quemApresentou || '';
221
214
  };
222
- return (React.createElement(ResultContent, { print: "repeat(7, 1fr)", desktop: "repeat(8, 1fr)", tablet: "repeat(4, 1fr)", mobile: "repeat(2, 1fr)" },
223
- React.createElement(AddItemField, { name: "Quem Protestou", value: getQuemProtestouDisplay() }),
224
- React.createElement(AddItemField, { name: "Atrav\u00E9s De", value: getField('./nomeApresentante') }),
225
- React.createElement(AddItemField, { name: "CPF/CNPJ Protestado", value: formatDocument(getField('./cpfCnpj')) }),
226
- React.createElement(AddItemField, { name: "Data Do Protesto", value: getField('./dataProtesto') }),
227
- React.createElement(AddItemField, { name: "Possui Anu\u00EAncia / Protesto Pago", value: formatBooleanField(getField('./temAnuencia')) }),
228
- React.createElement(AddItemField, { name: "Valor Do Protesto", value: formatMoney(getField('./valor')) }),
229
- getField('./vl_custas') && (React.createElement(AddItemField, { name: "Custas de Cart\u00F3rio para Baixa", value: formatMoney(getField('./vl_custas')) })),
230
- React.createElement(Instrumento, { nm_chave: nm_chave, cpfCnpj: documento })));
215
+ return (_jsxs(ResultContent, { print: "repeat(7, 1fr)", desktop: "repeat(8, 1fr)", tablet: "repeat(4, 1fr)", mobile: "repeat(2, 1fr)", children: [_jsx(AddItemField, { name: "Quem Protestou", value: getQuemProtestouDisplay() }), _jsx(AddItemField, { name: "Atrav\u00E9s De", value: getField('./nomeApresentante') }), _jsx(AddItemField, { name: "CPF/CNPJ Protestado", value: formatDocument(getField('./cpfCnpj')) }), _jsx(AddItemField, { name: "Data Do Protesto", value: getField('./dataProtesto') }), _jsx(AddItemField, { name: "Possui Anu\u00EAncia / Protesto Pago", value: formatBooleanField(getField('./temAnuencia')) }), _jsx(AddItemField, { name: "Valor Do Protesto", value: formatMoney(getField('./valor')) }), getField('./vl_custas') && (_jsx(AddItemField, { name: "Custas de Cart\u00F3rio para Baixa", value: formatMoney(getField('./vl_custas')) })), _jsx(Instrumento, { nm_chave: nm_chave, cpfCnpj: documento })] }));
231
216
  });
232
217
  export var Instrumento = function (_a) {
233
218
  var nm_chave = _a.nm_chave, cpfCnpj = _a.cpfCnpj;
@@ -236,7 +221,7 @@ export var Instrumento = function (_a) {
236
221
  var _c = useState(false), isLoading = _c[0], setIsLoading = _c[1];
237
222
  if (!nm_chave)
238
223
  return null;
239
- return (React.createElement(Button, { onClick: function () { return __awaiter(void 0, void 0, void 0, function () {
224
+ return (_jsx(Button, { onClick: function () { return __awaiter(void 0, void 0, void 0, function () {
240
225
  var request, pdfWindow, e_1;
241
226
  return __generator(this, function (_a) {
242
227
  switch (_a.label) {
@@ -272,9 +257,9 @@ export var Instrumento = function (_a) {
272
257
  case 6: return [2 /*return*/];
273
258
  }
274
259
  });
275
- }); }, disabled: isLoading }, error ? 'Instrumento não Localizado' : 'Instrumento'));
260
+ }); }, disabled: isLoading, children: error ? 'Instrumento não Localizado' : 'Instrumento' }));
276
261
  };
277
262
  export var ProtestosList = function (_a) {
278
263
  var protestos = _a.protestos;
279
- return (React.createElement(ResultContent, null, (protestos === null || protestos === void 0 ? void 0 : protestos.length) ? (protestos.map(function (protesto, i) { return (React.createElement(ProtestoItem, { key: i, protesto: protesto })); })) : (React.createElement(AddItemField, { name: "Informa\u00E7\u00E3o", value: "N\u00E3o h\u00E1 registros de protestos." }))));
264
+ return (_jsx(ResultContent, { children: (protestos === null || protestos === void 0 ? void 0 : protestos.length) ? (protestos.map(function (protesto, i) { return (_jsx(ProtestoItem, { protesto: protesto }, i)); })) : (_jsx(AddItemField, { name: "Informa\u00E7\u00E3o", value: "N\u00E3o h\u00E1 registros de protestos." })) }));
280
265
  };
@@ -1,7 +1,8 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  import ProtestosIcon from '../../assets/icones/protestos';
2
3
  import { useGlobalData } from '../../contexts/globalDataContext';
3
4
  import { formatMoney } from '../../utils/number';
4
- import React, { useContext, useEffect, useMemo, useRef, useState } from 'react';
5
+ import { useContext, useEffect, useMemo, useRef, useState } from 'react';
5
6
  import AddItemField from '../common/addItem';
6
7
  import { ResultContent } from '../interface/result';
7
8
  import StatusMessage from '../interface/statusMessage';
@@ -37,30 +38,27 @@ var ProtestosSP = function () {
37
38
  }, [ctxLiminar === null || ctxLiminar === void 0 ? void 0 : ctxLiminar.type]);
38
39
  if (hideSection)
39
40
  return null;
40
- return (React.createElement(Section, { ctx: ctxLiminar, title: "Protestos SP", subtitle: "Consulta de protestos nos cart\u00F3rios de SP", icon: ProtestosIcon, onSuccess: function (_a) {
41
+ return (_jsx(Section, { ctx: ctxLiminar, title: "Protestos SP", subtitle: "Consulta de protestos nos cart\u00F3rios de SP", icon: ProtestosIcon, onSuccess: function (_a) {
41
42
  var data = _a.data, totalProtestos = _a.totalProtestos;
42
43
  var registros = (data === null || data === void 0 ? void 0 : data.reduce(function (carry, cartorio) { return Number(cartorio === null || cartorio === void 0 ? void 0 : cartorio[9]) + carry; }, 0)) ||
43
44
  0;
44
45
  return {
45
46
  children: data === null || data === void 0 ? void 0 : data.map(function (e) {
46
47
  var _a, _b, _c, _d, _e;
47
- return (React.createElement(ResultContent, { print: "repeat(7, 1fr)", desktop: "repeat(8, 1fr)", tablet: "repeat(4, 1fr)", mobile: "repeat(2, 1fr)" },
48
- React.createElement(AddItemField, { name: "Cartorio", value: e === null || e === void 0 ? void 0 : e[2] }),
49
- React.createElement(AddItemField, { name: "Quantidade", value: (_a = e === null || e === void 0 ? void 0 : e[10]) !== null && _a !== void 0 ? _a : e === null || e === void 0 ? void 0 : e[9] }),
50
- React.createElement(AddItemField, { name: "Valor Total", value: formatMoney((_e = (_d = (_c = (_b = e === null || e === void 0 ? void 0 : e[7]) === null || _b === void 0 ? void 0 : _b.match(/[\d,.]+/g)) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.replace('.', '')) === null || _e === void 0 ? void 0 : _e.replace(',', '.')) })));
48
+ return (_jsxs(ResultContent, { print: "repeat(7, 1fr)", desktop: "repeat(8, 1fr)", tablet: "repeat(4, 1fr)", mobile: "repeat(2, 1fr)", children: [_jsx(AddItemField, { name: "Cartorio", value: e === null || e === void 0 ? void 0 : e[2] }), _jsx(AddItemField, { name: "Quantidade", value: (_a = e === null || e === void 0 ? void 0 : e[10]) !== null && _a !== void 0 ? _a : e === null || e === void 0 ? void 0 : e[9] }), _jsx(AddItemField, { name: "Valor Total", value: formatMoney((_e = (_d = (_c = (_b = e === null || e === void 0 ? void 0 : e[7]) === null || _b === void 0 ? void 0 : _b.match(/[\d,.]+/g)) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.replace('.', '')) === null || _e === void 0 ? void 0 : _e.replace(',', '.')) })] }));
51
49
  }),
52
50
  variant: registros || (possuiProtestosSp && !registros)
53
51
  ? 'error'
54
52
  : 'default',
55
- description: (React.createElement(StatusMessage, { type: registros || (possuiProtestosSp && !registros)
53
+ description: (_jsx(StatusMessage, { type: registros || (possuiProtestosSp && !registros)
56
54
  ? 'error'
57
- : 'default' }, possuiProtestosSp && !registros
58
- ? 'Existem protestos'
59
- : registros
60
- ? registros === 1
61
- ? 'Encontrado um protesto'
62
- : "Encontrados ".concat(registros, " protestos")
63
- : 'Não há ocorrência de protesto'))
55
+ : 'default', children: possuiProtestosSp && !registros
56
+ ? 'Existem protestos'
57
+ : registros
58
+ ? registros === 1
59
+ ? 'Encontrado um protesto'
60
+ : "Encontrados ".concat(registros, " protestos")
61
+ : 'Não há ocorrência de protesto' }))
64
62
  };
65
63
  } }));
66
64
  };