@credithub/harlan-components 1.18.4 → 1.19.1

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 (201) hide show
  1. package/lib/cjs/index.js +788 -707
  2. package/lib/esm/assets/btn/chevronDown.d.ts +1 -1
  3. package/lib/esm/assets/btn/chevronDown.js +1 -1
  4. package/lib/esm/assets/btn/chevronLeft.d.ts +1 -1
  5. package/lib/esm/assets/btn/chevronLeft.js +3 -3
  6. package/lib/esm/assets/btn/chevronRight.d.ts +1 -1
  7. package/lib/esm/assets/btn/chevronRight.js +3 -3
  8. package/lib/esm/assets/btn/chevronUp.d.ts +1 -1
  9. package/lib/esm/assets/btn/chevronUp.js +2 -2
  10. package/lib/esm/assets/btn/closeIcon.d.ts +1 -1
  11. package/lib/esm/assets/btn/closeIcon.js +1 -1
  12. package/lib/esm/assets/btn/thumbUp.d.ts +1 -1
  13. package/lib/esm/assets/btn/thumbUp.js +4 -4
  14. package/lib/esm/assets/icones/chequesSemFundo.d.ts +2 -2
  15. package/lib/esm/assets/icones/chequesSemFundo.js +4 -4
  16. package/lib/esm/assets/icones/consultaSimples.d.ts +2 -2
  17. package/lib/esm/assets/icones/consultaSimples.js +4 -4
  18. package/lib/esm/assets/icones/contasBancarias.d.ts +1 -1
  19. package/lib/esm/assets/icones/contato.d.ts +2 -2
  20. package/lib/esm/assets/icones/contato.js +4 -4
  21. package/lib/esm/assets/icones/dividasVencidasSerasa.d.ts +2 -2
  22. package/lib/esm/assets/icones/dividasVencidasSerasa.js +3 -3
  23. package/lib/esm/assets/icones/dominios.d.ts +2 -2
  24. package/lib/esm/assets/icones/dominios.js +3 -3
  25. package/lib/esm/assets/icones/endereco.d.ts +3 -3
  26. package/lib/esm/assets/icones/endereco.js +4 -4
  27. package/lib/esm/assets/icones/iconeEmpresa.d.ts +1 -1
  28. package/lib/esm/assets/icones/iconeEmpresa.js +4 -4
  29. package/lib/esm/assets/icones/iconePessoa.d.ts +1 -1
  30. package/lib/esm/assets/icones/iconePessoa.js +4 -4
  31. package/lib/esm/assets/icones/imoveis.d.ts +2 -2
  32. package/lib/esm/assets/icones/imoveis.js +3 -3
  33. package/lib/esm/assets/icones/pefinRefinBoaVista.d.ts +1 -1
  34. package/lib/esm/assets/icones/pefinRefinBoaVista.js +2 -2
  35. package/lib/esm/assets/icones/pefinRefinSerasa.d.ts +1 -1
  36. package/lib/esm/assets/icones/pefinRefinSerasa.js +2 -2
  37. package/lib/esm/assets/icones/processosJuridicos.d.ts +1 -1
  38. package/lib/esm/assets/icones/protestos.d.ts +2 -2
  39. package/lib/esm/assets/icones/protestos.js +4 -4
  40. package/lib/esm/assets/icones/protestosCredito.d.ts +2 -2
  41. package/lib/esm/assets/icones/protestosCredito.js +4 -4
  42. package/lib/esm/assets/icones/protestosGerais.d.ts +2 -2
  43. package/lib/esm/assets/icones/protestosGerais.js +4 -4
  44. package/lib/esm/assets/icones/protestosImpostos.d.ts +2 -2
  45. package/lib/esm/assets/icones/protestosImpostos.js +4 -4
  46. package/lib/esm/assets/icones/resumoNegativacoes.d.ts +1 -1
  47. package/lib/esm/assets/icones/resumoNegativacoes.js +1 -1
  48. package/lib/esm/assets/icones/scoreBoaVista.d.ts +2 -2
  49. package/lib/esm/assets/icones/scoreBoaVista.js +3 -3
  50. package/lib/esm/assets/icones/scr.d.ts +2 -2
  51. package/lib/esm/assets/icones/scr.js +3 -3
  52. package/lib/esm/assets/icones/ultimaMovimentacao.d.ts +2 -2
  53. package/lib/esm/assets/icones/ultimaMovimentacao.js +4 -4
  54. package/lib/esm/assets/icones/veiculos.d.ts +2 -2
  55. package/lib/esm/assets/icones/veiculos.js +3 -3
  56. package/lib/esm/components/adresses/addresses.d.ts +1 -1
  57. package/lib/esm/components/adresses/addresses.js +21 -17
  58. package/lib/esm/components/adresses/getGeocode.js +2 -2
  59. package/lib/esm/components/adresses/map.d.ts +1 -1
  60. package/lib/esm/components/adresses/map.js +5 -5
  61. package/lib/esm/components/bank-accounts/bank-accounts.d.ts +1 -1
  62. package/lib/esm/components/bank-accounts/bank-accounts.js +19 -15
  63. package/lib/esm/components/ccf/ccf.d.ts +1 -1
  64. package/lib/esm/components/ccf/ccf.js +16 -16
  65. package/lib/esm/components/ccf/ccfList.d.ts +1 -1
  66. package/lib/esm/components/ccf/ccfList.js +6 -6
  67. package/lib/esm/components/chart/chartContent.d.ts +2 -2
  68. package/lib/esm/components/chart/chartContent.js +12 -12
  69. package/lib/esm/components/chart/chartSystem.d.ts +1 -1
  70. package/lib/esm/components/chart/chartSystem.js +21 -23
  71. package/lib/esm/components/chart/components/MixedChart.d.ts +2 -2
  72. package/lib/esm/components/chart/components/MixedChart.js +15 -15
  73. package/lib/esm/components/chart/components/PieChart.d.ts +2 -2
  74. package/lib/esm/components/chart/components/PieChart.js +3 -3
  75. package/lib/esm/components/chart/components/categoryProtestos.d.ts +3 -3
  76. package/lib/esm/components/chart/components/categoryProtestos.js +4 -4
  77. package/lib/esm/components/chart/hooks/useCategoryProtestos.d.ts +5 -5
  78. package/lib/esm/components/chart/hooks/useCategoryProtestos.js +23 -23
  79. package/lib/esm/components/chart/hooks/useChartData.d.ts +1 -1
  80. package/lib/esm/components/chart/hooks/useChartData.js +8 -8
  81. package/lib/esm/components/chart/hooks/useMixedChartData.d.ts +5 -5
  82. package/lib/esm/components/chart/hooks/useMixedChartData.js +10 -10
  83. package/lib/esm/components/chart/hooks/usePieChartData.d.ts +4 -4
  84. package/lib/esm/components/chart/hooks/usePieChartData.js +34 -34
  85. package/lib/esm/components/chart/quantityResult.d.ts +2 -2
  86. package/lib/esm/components/chart/quantityResult.js +6 -6
  87. package/lib/esm/components/chart/types/iChart.d.ts +4 -4
  88. package/lib/esm/components/chart/utils/chartCustomization.d.ts +4 -4
  89. package/lib/esm/components/chart/utils/chartCustomization.js +62 -62
  90. package/lib/esm/components/chart/utils/chartUtils.d.ts +1 -1
  91. package/lib/esm/components/chart/utils/chartUtils.js +9 -9
  92. package/lib/esm/components/chart/utils/dataManipulation.d.ts +1 -1
  93. package/lib/esm/components/chart/utils/dataManipulation.js +17 -17
  94. package/lib/esm/components/chart/utils/dataProcessing.d.ts +2 -2
  95. package/lib/esm/components/chart/utils/dataProcessing.js +16 -16
  96. package/lib/esm/components/common/addItem.d.ts +1 -1
  97. package/lib/esm/components/common/addItem.js +6 -6
  98. package/lib/esm/components/common/button.d.ts +1 -1
  99. package/lib/esm/components/common/button.js +5 -5
  100. package/lib/esm/components/common/content.js +2 -2
  101. package/lib/esm/components/consultaRfb.d.ts +1 -1
  102. package/lib/esm/components/consultaRfb.js +2 -2
  103. package/lib/esm/components/consultaSimplesSection/consultaSimplesSection.js +34 -14
  104. package/lib/esm/components/consultasComplementares.d.ts +6 -6
  105. package/lib/esm/components/consultasComplementares.js +9 -9
  106. package/lib/esm/components/contacts/contactLikeDislikeSection.d.ts +3 -3
  107. package/lib/esm/components/contacts/contactLikeDislikeSection.js +16 -16
  108. package/lib/esm/components/contacts/contacts.d.ts +1 -1
  109. package/lib/esm/components/contacts/contacts.js +16 -10
  110. package/lib/esm/components/contacts/contactsLikeDislike.d.ts +1 -1
  111. package/lib/esm/components/contacts/contactsLikeDislike.js +2 -2
  112. package/lib/esm/components/contacts/thumbsButton.d.ts +1 -1
  113. package/lib/esm/components/contacts/thumbsButton.js +19 -19
  114. package/lib/esm/components/dividasPublicas/dividasPublicas.d.ts +1 -1
  115. package/lib/esm/components/dividasPublicas/dividasPublicas.js +10 -10
  116. package/lib/esm/components/dominios/dominios.d.ts +1 -1
  117. package/lib/esm/components/dominios/dominios.js +13 -9
  118. package/lib/esm/components/dossie/carrousel/carrousel.d.ts +1 -1
  119. package/lib/esm/components/dossie/carrousel/carrousel.js +3 -3
  120. package/lib/esm/components/dossie/companyLogo/companyLogo.d.ts +1 -1
  121. package/lib/esm/components/dossie/companyLogo/companyLogo.js +9 -9
  122. package/lib/esm/components/dossie/dossie.d.ts +1 -1
  123. package/lib/esm/components/dossie/dossie.js +16 -17
  124. package/lib/esm/components/dossie/summary/cardsAndProducts.js +94 -92
  125. package/lib/esm/components/dossie/summary/summary.d.ts +1 -1
  126. package/lib/esm/components/dossie/summary/summary.js +21 -18
  127. package/lib/esm/components/dossie/summary/utils.js +8 -8
  128. package/lib/esm/components/dossie/transactionTable/transactionTable.d.ts +1 -1
  129. package/lib/esm/components/dossie/transactionTable/transactionTable.js +8 -8
  130. package/lib/esm/components/imoveis/imoveisService.d.ts +1 -1
  131. package/lib/esm/components/imoveis/imoveisService.js +12 -12
  132. package/lib/esm/components/interface/globalStyle.js +1 -1
  133. package/lib/esm/components/interface/header.d.ts +3 -3
  134. package/lib/esm/components/interface/header.js +6 -6
  135. package/lib/esm/components/interface/loadingBar.js +2 -2
  136. package/lib/esm/components/interface/responsiveGrid.d.ts +1 -1
  137. package/lib/esm/components/interface/responsiveGrid.js +2 -2
  138. package/lib/esm/components/interface/result.js +6 -4
  139. package/lib/esm/components/interface/resultWithoutInformation.js +1 -1
  140. package/lib/esm/components/interface/section.d.ts +2 -2
  141. package/lib/esm/components/interface/section.js +11 -12
  142. package/lib/esm/components/interface/statusMessage.js +3 -3
  143. package/lib/esm/components/interface/theme.js +34 -34
  144. package/lib/esm/components/liminar/liminar.d.ts +1 -1
  145. package/lib/esm/components/liminar/liminar.js +5 -5
  146. package/lib/esm/components/partners/partner-dividas-publicas.js +3 -3
  147. package/lib/esm/components/partners/partner-protestos.js +3 -3
  148. package/lib/esm/components/partners/partner-rfb-status.js +3 -3
  149. package/lib/esm/components/partners/partnerField.d.ts +1 -1
  150. package/lib/esm/components/partners/partnerField.js +3 -3
  151. package/lib/esm/components/partners/partnerList.d.ts +1 -1
  152. package/lib/esm/components/partners/partnerList.js +8 -8
  153. package/lib/esm/components/partners/partners.d.ts +1 -1
  154. package/lib/esm/components/partners/partners.js +18 -16
  155. package/lib/esm/components/pep/pep.d.ts +1 -1
  156. package/lib/esm/components/pep/pep.js +11 -8
  157. package/lib/esm/components/processos-juridicos/envolvidosList.js +5 -3
  158. package/lib/esm/components/processos-juridicos/processosJuridicos.d.ts +1 -1
  159. package/lib/esm/components/processos-juridicos/processosJuridicos.js +15 -12
  160. package/lib/esm/components/processos-juridicos/processosJuridicosList.d.ts +2 -2
  161. package/lib/esm/components/processos-juridicos/processosJuridicosList.js +12 -10
  162. package/lib/esm/components/protestos/getTotalProtestos.js +2 -2
  163. package/lib/esm/components/protestos/protestos.d.ts +1 -1
  164. package/lib/esm/components/protestos/protestos.js +32 -26
  165. package/lib/esm/components/protestos/protestosCategory.d.ts +2 -2
  166. package/lib/esm/components/protestos/protestosCategory.js +15 -13
  167. package/lib/esm/components/protestos/protestosList.d.ts +2 -2
  168. package/lib/esm/components/protestos/protestosList.js +20 -20
  169. package/lib/esm/components/reclameAqui/reclameAquiCarousel.d.ts +1 -1
  170. package/lib/esm/components/reclameAqui/reclameAquiCarousel.js +20 -20
  171. package/lib/esm/components/refinBoaVista/refinBoaVista.js +22 -15
  172. package/lib/esm/components/refinSerasa/refinSerasa.d.ts +1 -1
  173. package/lib/esm/components/refinSerasa/refinSerasa.js +26 -26
  174. package/lib/esm/components/refinSerasa/types.d.ts +2 -2
  175. package/lib/esm/components/resultadoDaPesquisa/resultado-da-pesquisa.js +6 -6
  176. package/lib/esm/components/score/scoreService.d.ts +1 -1
  177. package/lib/esm/components/score/scoreService.js +10 -10
  178. package/lib/esm/components/scr/getResumoDeCreditos.d.ts +1 -1
  179. package/lib/esm/components/scr/getResumoDeCreditos.js +9 -9
  180. package/lib/esm/components/scr/getResumoDeModalidades.d.ts +1 -1
  181. package/lib/esm/components/scr/getResumoDeModalidades.js +25 -27
  182. package/lib/esm/components/scr/scr.d.ts +1 -1
  183. package/lib/esm/components/scr/scr.js +23 -23
  184. package/lib/esm/components/scr/types.d.ts +5 -5
  185. package/lib/esm/components/veiculos/veiculos.js +28 -19
  186. package/lib/esm/components/webservice.d.ts +5 -5
  187. package/lib/esm/components/webservice.js +35 -31
  188. package/lib/esm/consultaSimples.d.ts +2 -2
  189. package/lib/esm/consultaSimples.js +14 -14
  190. package/lib/esm/hooks/useConsultaRfb.js +3 -3
  191. package/lib/esm/hooks/useConsultasComplementares.js +3 -3
  192. package/lib/esm/hooks/useToggle.js +1 -1
  193. package/lib/esm/hooks/useWindowSize.js +5 -5
  194. package/lib/esm/index.d.ts +23 -23
  195. package/lib/esm/index.js +23 -23
  196. package/lib/esm/utils/calculation.js +4 -4
  197. package/lib/esm/utils/formatter.js +3 -3
  198. package/lib/esm/utils/number.js +7 -7
  199. package/lib/esm/utils/string.js +11 -11
  200. package/lib/esm/utils/xpath.js +1 -1
  201. package/package.json +4 -1
@@ -1,4 +1,4 @@
1
- import React from "react";
2
- import { IconProps } from "@/types/icon";
1
+ import React from 'react';
2
+ import { IconProps } from '@/types/icon';
3
3
  declare const ScrIcon: React.FC<IconProps>;
4
4
  export default ScrIcon;
@@ -1,7 +1,7 @@
1
- import React from "react";
2
- import theme from "../../components/interface/theme";
1
+ import React from 'react';
2
+ import theme from '../../components/interface/theme';
3
3
  var ScrIcon = function (_a) {
4
- var _b = _a.className, className = _b === void 0 ? "" : _b, _c = _a.size, size = _c === void 0 ? 30 : _c, _d = _a.circleFill, circleFill = _d === void 0 ? theme.colors.azulCredithub : _d;
4
+ var _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.size, size = _c === void 0 ? 30 : _c, _d = _a.circleFill, circleFill = _d === void 0 ? theme.colors.azulCredithub : _d;
5
5
  return (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: size, height: size, fill: "none", viewBox: "0 0 30 30", className: className },
6
6
  React.createElement("circle", { cx: "15", cy: "15", r: "15", fill: circleFill }),
7
7
  React.createElement("path", { fill: "#fff", d: "M14 21v.5c0 .133.05.25.15.35.1.1.217.15.35.15h1a.48.48 0 00.35-.15c.1-.1.15-.217.15-.35V21h1c.283 0 .52-.096.712-.288A.968.968 0 0018 20v-3a.968.968 0 00-.288-.712A.968.968 0 0017 16h-3v-1h3c.283 0 .52-.096.712-.287A.968.968 0 0018 14a.968.968 0 00-.288-.713A.968.968 0 0017 13h-1v-.5a.48.48 0 00-.15-.35.48.48 0 00-.35-.15h-1a.48.48 0 00-.35.15.48.48 0 00-.15.35v.5h-1a.968.968 0 00-.713.287A.968.968 0 0012 14v3c0 .283.096.52.287.712.192.192.43.288.713.288h3v1h-3a.968.968 0 00-.713.288A.968.968 0 0012 20c0 .283.096.52.287.712.192.192.43.288.713.288h1zm-5 4c-.55 0-1.02-.196-1.412-.587A1.926 1.926 0 017 23V7c0-.55.196-1.02.588-1.412A1.926 1.926 0 019 5h9l5 5v13c0 .55-.196 1.02-.587 1.413A1.926 1.926 0 0121 25H9zm0-2h12V11h-3a.968.968 0 01-.712-.287A.968.968 0 0117 10V7H9v16z" })));
@@ -1,4 +1,4 @@
1
- import React from "react";
2
- import { IconProps } from "@/types/icon";
1
+ import React from 'react';
2
+ import { IconProps } from '@/types/icon';
3
3
  declare const UltimaMovimentacaoIcon: React.FC<IconProps>;
4
4
  export default UltimaMovimentacaoIcon;
@@ -1,10 +1,10 @@
1
- import React from "react";
2
- import theme from "../../components/interface/theme";
1
+ import React from 'react';
2
+ import theme from '../../components/interface/theme';
3
3
  var UltimaMovimentacaoIcon = function (_a) {
4
- var _b = _a.className, className = _b === void 0 ? "" : _b, _c = _a.size, size = _c === void 0 ? 30 : _c, _d = _a.circleFill, circleFill = _d === void 0 ? theme.colors.azulCredithub : _d;
4
+ var _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.size, size = _c === void 0 ? 30 : _c, _d = _a.circleFill, circleFill = _d === void 0 ? theme.colors.azulCredithub : _d;
5
5
  return (React.createElement("svg", { width: size, height: size, viewBox: "0 0 30 30", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className },
6
6
  React.createElement("circle", { cx: "15", cy: "15", r: "15", fill: circleFill }),
7
- React.createElement("mask", { id: "mask0_4_382", style: { maskType: "alpha" }, maskUnits: "userSpaceOnUse", x: "3", y: "3", width: "24", height: "24" },
7
+ React.createElement("mask", { id: "mask0_4_382", style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "3", y: "3", width: "24", height: "24" },
8
8
  React.createElement("rect", { x: "3", y: "3", width: "24", height: "24", fill: "#D9D9D9" })),
9
9
  React.createElement("g", { mask: "url(#mask0_4_382)" },
10
10
  React.createElement("path", { d: "M13.275 15C12.8083 15 12.425 14.825 12.125 14.475C11.825 14.125 11.7167 13.7167 11.8 13.25L12.1 11.45C12.2333 10.7333 12.5708 10.1458 13.1125 9.6875C13.6542 9.22917 14.2833 9 15 9C15.7333 9 16.3708 9.22917 16.9125 9.6875C17.4542 10.1458 17.7917 10.7333 17.925 11.45L18.225 13.25C18.3083 13.7167 18.2 14.125 17.9 14.475C17.6 14.825 17.2167 15 16.75 15H13.275ZM13.875 13H16.15L15.95 11.775C15.9167 11.5417 15.8083 11.3542 15.625 11.2125C15.4417 11.0708 15.2333 11 15 11C14.7667 11 14.5625 11.0708 14.3875 11.2125C14.2125 11.3542 14.1083 11.5417 14.075 11.775L13.875 13ZM6.1 15.975C5.71667 15.9917 5.3875 15.9167 5.1125 15.75C4.8375 15.5833 4.65833 15.325 4.575 14.975C4.54167 14.825 4.53333 14.675 4.55 14.525C4.56667 14.375 4.60833 14.2333 4.675 14.1C4.675 14.1167 4.66667 14.0833 4.65 14C4.61667 13.9667 4.53333 13.7667 4.4 13.4C4.36667 13.2 4.39167 13.0083 4.475 12.825C4.55833 12.6417 4.66667 12.4833 4.8 12.35L4.85 12.3C4.88333 11.9833 5.0125 11.7167 5.2375 11.5C5.4625 11.2833 5.74167 11.175 6.075 11.175C6.125 11.175 6.28333 11.2083 6.55 11.275L6.625 11.25C6.70833 11.1667 6.81667 11.1042 6.95 11.0625C7.08333 11.0208 7.225 11 7.375 11C7.55833 11 7.72083 11.0292 7.8625 11.0875C8.00417 11.1458 8.11667 11.2333 8.2 11.35C8.21667 11.35 8.22917 11.3542 8.2375 11.3625C8.24583 11.3708 8.25833 11.375 8.275 11.375C8.50833 11.3917 8.7125 11.4625 8.8875 11.5875C9.0625 11.7125 9.19167 11.8833 9.275 12.1C9.30833 12.2167 9.32083 12.3292 9.3125 12.4375C9.30417 12.5458 9.28333 12.65 9.25 12.75C9.25 12.7667 9.25833 12.8 9.275 12.85C9.39167 12.9667 9.48333 13.0958 9.55 13.2375C9.61667 13.3792 9.65 13.525 9.65 13.675C9.65 13.7417 9.6 13.9167 9.5 14.2C9.48333 14.2333 9.48333 14.2667 9.5 14.3L9.55 14.7C9.55 15.05 9.40417 15.35 9.1125 15.6C8.82083 15.85 8.46667 15.975 8.05 15.975H6.1ZM23 16C22.45 16 21.9792 15.8042 21.5875 15.4125C21.1958 15.0208 21 14.55 21 14C21 13.8 21.0292 13.6125 21.0875 13.4375C21.1458 13.2625 21.225 13.0917 21.325 12.925L20.625 12.3C20.4583 12.1667 20.4292 12 20.5375 11.8C20.6458 11.6 20.8 11.5 21 11.5H23C23.55 11.5 24.0208 11.6958 24.4125 12.0875C24.8042 12.4792 25 12.95 25 13.5V14C25 14.55 24.8042 15.0208 24.4125 15.4125C24.0208 15.8042 23.55 16 23 16ZM3 20V19.425C3 18.6917 3.37083 18.1042 4.1125 17.6625C4.85417 17.2208 5.81667 17 7 17C7.21667 17 7.425 17.0042 7.625 17.0125C7.825 17.0208 8.01667 17.0417 8.2 17.075C7.96667 17.4083 7.79167 17.7667 7.675 18.15C7.55833 18.5333 7.5 18.9417 7.5 19.375V21H4C3.71667 21 3.47917 20.9042 3.2875 20.7125C3.09583 20.5208 3 20.2833 3 20ZM9 20V19.375C9 18.2917 9.55417 17.4167 10.6625 16.75C11.7708 16.0833 13.2167 15.75 15 15.75C16.8 15.75 18.25 16.0833 19.35 16.75C20.45 17.4167 21 18.2917 21 19.375V20C21 20.2833 20.9042 20.5208 20.7125 20.7125C20.5208 20.9042 20.2833 21 20 21H10C9.71667 21 9.47917 20.9042 9.2875 20.7125C9.09583 20.5208 9 20.2833 9 20ZM23 17C24.2 17 25.1667 17.2208 25.9 17.6625C26.6333 18.1042 27 18.6917 27 19.425V20C27 20.2833 26.9042 20.5208 26.7125 20.7125C26.5208 20.9042 26.2833 21 26 21H22.5V19.375C22.5 18.9417 22.4458 18.5333 22.3375 18.15C22.2292 17.7667 22.0667 17.4083 21.85 17.075C22.0333 17.0417 22.2208 17.0208 22.4125 17.0125C22.6042 17.0042 22.8 17 23 17ZM15 17.75C14.05 17.75 13.2 17.875 12.45 18.125C11.7 18.375 11.2583 18.6667 11.125 19H18.9C18.75 18.6667 18.3042 18.375 17.5625 18.125C16.8208 17.875 15.9667 17.75 15 17.75Z", fill: "white" }))));
@@ -1,4 +1,4 @@
1
- import React from "react";
2
- import { IconProps } from "@/types/icon";
1
+ import React from 'react';
2
+ import { IconProps } from '@/types/icon';
3
3
  declare const VeiculosIcon: React.FC<IconProps>;
4
4
  export default VeiculosIcon;
@@ -1,7 +1,7 @@
1
- import React from "react";
2
- import theme from "../../components/interface/theme";
1
+ import React from 'react';
2
+ import theme from '../../components/interface/theme';
3
3
  var VeiculosIcon = function (_a) {
4
- var _b = _a.className, className = _b === void 0 ? "" : _b, _c = _a.size, size = _c === void 0 ? 30 : _c, _d = _a.circleFill, circleFill = _d === void 0 ? theme.colors.azulCredithub : _d;
4
+ var _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.size, size = _c === void 0 ? 30 : _c, _d = _a.circleFill, circleFill = _d === void 0 ? theme.colors.azulCredithub : _d;
5
5
  return (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: size, height: size, fill: "none", viewBox: "0 0 30 30", className: className },
6
6
  React.createElement("circle", { cx: "15", cy: "15", r: "15", fill: circleFill }),
7
7
  React.createElement("path", { fill: "#fff", d: "M9 21v.5c0 .417-.146.77-.438 1.063A1.446 1.446 0 017.5 23c-.417 0-.77-.146-1.063-.438A1.447 1.447 0 016 21.5v-7.15c0-.117.008-.233.025-.35.017-.117.042-.225.075-.325L7.975 8.35c.133-.4.375-.725.725-.975S9.442 7 9.875 7h10.25c.433 0 .825.125 1.175.375.35.25.592.575.725.975l1.875 5.325c.033.1.058.208.075.325.017.117.025.233.025.35v7.15c0 .417-.146.77-.438 1.063A1.446 1.446 0 0122.5 23c-.417 0-.77-.146-1.063-.438A1.446 1.446 0 0121 21.5V21H9zm-.2-9h12.4l-1.05-3H9.85L8.8 12zm1.7 6c.417 0 .77-.146 1.063-.438.291-.291.437-.645.437-1.062 0-.417-.146-.77-.438-1.063A1.446 1.446 0 0010.5 15c-.417 0-.77.146-1.063.438A1.447 1.447 0 009 16.5c0 .417.146.77.438 1.063.291.291.645.437 1.062.437zm9 0c.417 0 .77-.146 1.063-.438.291-.291.437-.645.437-1.062 0-.417-.146-.77-.438-1.063A1.446 1.446 0 0019.5 15c-.417 0-.77.146-1.063.438A1.446 1.446 0 0018 16.5c0 .417.146.77.438 1.063.291.291.645.437 1.062.437zM8 19h14v-5H8v5z" })));
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  export type Address = {
3
3
  type: string;
4
4
  address: string;
@@ -7,20 +7,24 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7
7
  }
8
8
  return to.concat(ar || Array.prototype.slice.call(from));
9
9
  };
10
- import React, { useContext } from "react";
11
- import { Result, ResultContent } from "../interface/result";
12
- import AddItemField from "../common/addItem";
13
- import { Queries } from "../webservice";
14
- import XPathUtils from "../../utils/xpath";
15
- import EnderecoIcon from "../../assets/icones/endereco";
16
- import { useConsultaRfb } from "../../hooks/useConsultaRfb";
17
- import { uniq } from "underscore";
10
+ import React, { useContext } from 'react';
11
+ import { Result, ResultContent } from '../interface/result';
12
+ import AddItemField from '../common/addItem';
13
+ import { Queries } from '../webservice';
14
+ import XPathUtils from '../../utils/xpath';
15
+ import EnderecoIcon from '../../assets/icones/endereco';
16
+ import { useConsultaRfb } from '../../hooks/useConsultaRfb';
17
+ import { uniq } from 'underscore';
18
18
  var Addresses = function () {
19
19
  var ctx = useContext(Queries.Finder);
20
20
  var Section = ctx.Section;
21
21
  var rfbResponse = useConsultaRfb().rfbResponse;
22
22
  var response = function (data) {
23
- var _addresses = __spreadArray(__spreadArray([], (data && XPathUtils.select("//enderecos/enderecos", data) || []), true), (!data && rfbResponse && XPathUtils.select("//RFB/enderecos/endereco", rfbResponse) || []), true);
23
+ var _addresses = __spreadArray(__spreadArray([], ((data && XPathUtils.select('//enderecos/enderecos', data)) ||
24
+ []), true), ((!data &&
25
+ rfbResponse &&
26
+ XPathUtils.select('//RFB/enderecos/endereco', rfbResponse)) ||
27
+ []), true);
24
28
  var addresses = uniq(_addresses.map(function (address) { return ({
25
29
  type: XPathUtils.select('string(tipoLogradouro)', address),
26
30
  address: XPathUtils.select('string(logradouro)', address),
@@ -31,15 +35,15 @@ var Addresses = function () {
31
35
  state: XPathUtils.select('string(uf)', address),
32
36
  urlImage: '',
33
37
  urlMaps: ''
34
- }); }), (function (e) { return e.address + e.district; }));
38
+ }); }), function (e) { return e.address + e.district; });
35
39
  return (React.createElement(Result, { resultContentStriped: true, className: "address" }, addresses === null || addresses === void 0 ? void 0 : addresses.map(function (address, index) { return (React.createElement(ResultContent, { desktop: "repeat(7, 1fr)", tablet: "repeat(4, 1fr)", mobile: "repeat(2, 1fr)", key: index },
36
- React.createElement(AddItemField, { name: "Tipo", value: address.type, style: { display: "inline-block" } }),
37
- React.createElement(AddItemField, { name: "Endere\u00E7o", value: address.address, style: { display: "inline-block" } }),
38
- React.createElement(AddItemField, { name: "N\u00FAmero", value: address.number, style: { display: "inline-block" } }),
39
- React.createElement(AddItemField, { name: "CEP", value: address.zipcode, style: { display: "inline-block" } }),
40
- React.createElement(AddItemField, { name: "Bairro", value: address.district, style: { display: "inline-block" } }),
41
- React.createElement(AddItemField, { name: "Cidade", value: address.city, style: { display: "inline-block" } }),
42
- React.createElement(AddItemField, { name: "Estado", value: address.state, style: { display: "inline-block" } }))); })));
40
+ React.createElement(AddItemField, { name: "Tipo", value: address.type, style: { display: 'inline-block' } }),
41
+ React.createElement(AddItemField, { name: "Endere\u00E7o", value: address.address, style: { display: 'inline-block' } }),
42
+ React.createElement(AddItemField, { name: "N\u00FAmero", value: address.number, style: { display: 'inline-block' } }),
43
+ React.createElement(AddItemField, { name: "CEP", value: address.zipcode, style: { display: 'inline-block' } }),
44
+ React.createElement(AddItemField, { name: "Bairro", value: address.district, style: { display: 'inline-block' } }),
45
+ React.createElement(AddItemField, { name: "Cidade", value: address.city, style: { display: 'inline-block' } }),
46
+ React.createElement(AddItemField, { name: "Estado", value: address.state, style: { display: 'inline-block' } }))); })));
43
47
  };
44
48
  return (React.createElement(Section, { title: "Endere\u00E7os", subtitle: "Informa\u00E7\u00F5es de endere\u00E7os do documento pesquisado.", icon: EnderecoIcon, minimized: false, ctx: ctx, onError: function () { return response(undefined); }, onSuccess: response }));
45
49
  };
@@ -41,7 +41,7 @@ export function getGeocode(address, apiKey) {
41
41
  switch (_a.label) {
42
42
  case 0:
43
43
  _a.trys.push([0, 3, , 4]);
44
- url = new URL("https://maps.googleapis.com/maps/api/geocode/json");
44
+ url = new URL('https://maps.googleapis.com/maps/api/geocode/json');
45
45
  url.search = new URLSearchParams({ address: address, key: apiKey }).toString();
46
46
  return [4 /*yield*/, fetch(url)];
47
47
  case 1:
@@ -60,7 +60,7 @@ export function getGeocode(address, apiKey) {
60
60
  return [2 /*return*/, null];
61
61
  case 3:
62
62
  error_1 = _a.sent();
63
- console.error("Erro ao obter geocódigo:", error_1);
63
+ console.error('Erro ao obter geocódigo:', error_1);
64
64
  return [2 /*return*/, null];
65
65
  case 4: return [2 /*return*/];
66
66
  }
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  interface MapContainerProps {
3
3
  address: string;
4
4
  apiKey: string;
@@ -1,6 +1,6 @@
1
- import React, { useEffect, useState } from "react";
2
- import { GoogleMap, LoadScript, Marker } from "@react-google-maps/api";
3
- import { getGeocode } from "./getGeocode";
1
+ import React, { useEffect, useState } from 'react';
2
+ import { GoogleMap, LoadScript, Marker } from '@react-google-maps/api';
3
+ import { getGeocode } from './getGeocode';
4
4
  var MapContainer = function (_a) {
5
5
  var address = _a.address, apiKey = _a.apiKey;
6
6
  var _b = useState({ lat: 0, lng: 0 }), coordinates = _b[0], setCoordinates = _b[1];
@@ -12,8 +12,8 @@ var MapContainer = function (_a) {
12
12
  });
13
13
  }, [address, apiKey]);
14
14
  var mapStyles = {
15
- height: "100px",
16
- width: "100px",
15
+ height: '100px',
16
+ width: '100px'
17
17
  };
18
18
  if (!coordinates) {
19
19
  return React.createElement("div", null, "Carregando mapa...");
@@ -1,3 +1,3 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  declare const BankAccounts: () => React.JSX.Element;
3
3
  export default BankAccounts;
@@ -1,23 +1,27 @@
1
- import React from "react";
2
- import { useContext } from "react";
3
- import { Queries } from "../webservice";
4
- import { Result, ResultContent } from "../interface/result";
5
- import AddItemField from "../common/addItem";
6
- import XPathUtils from "../../utils/xpath";
7
- import ContasBancariasIcon from "../../assets/icones/contasBancarias";
8
- import StatusMessage from "../interface/statusMessage";
9
- import theme from "../interface/theme";
1
+ import React from 'react';
2
+ import { useContext } from 'react';
3
+ import { Queries } from '../webservice';
4
+ import { Result, ResultContent } from '../interface/result';
5
+ import AddItemField from '../common/addItem';
6
+ import XPathUtils from '../../utils/xpath';
7
+ import ContasBancariasIcon from '../../assets/icones/contasBancarias';
8
+ import StatusMessage from '../interface/statusMessage';
9
+ import theme from '../interface/theme';
10
10
  var BankAccounts = function () {
11
11
  var ctx = useContext(Queries.Finder);
12
12
  var Section = ctx.Section;
13
- return (React.createElement(Section, { title: "Informações de Contas Bancárias", subtitle: "Vejas as informações disponíveis de contas bancárias.", icon: ContasBancariasIcon, ctx: ctx, minimized: false, onSuccess: function (data) {
14
- var accounts = XPathUtils.selectArray("//bank-info/node", data);
15
- var message = (accounts === null || accounts === void 0 ? void 0 : accounts.length) ? (accounts === null || accounts === void 0 ? void 0 : accounts.length) > 1 ? "Encontrada ".concat(accounts === null || accounts === void 0 ? void 0 : accounts.length, " contas banc\u00E1rias") : 'Encontrada 1 conta bancária' : 'Não foram encontradas ocorrências';
13
+ return (React.createElement(Section, { title: 'Informações de Contas Bancárias', subtitle: 'Vejas as informações disponíveis de contas bancárias.', icon: ContasBancariasIcon, ctx: ctx, minimized: false, onSuccess: function (data) {
14
+ var accounts = XPathUtils.selectArray('//bank-info/node', data);
15
+ var message = (accounts === null || accounts === void 0 ? void 0 : accounts.length)
16
+ ? (accounts === null || accounts === void 0 ? void 0 : accounts.length) > 1
17
+ ? "Encontrada ".concat(accounts === null || accounts === void 0 ? void 0 : accounts.length, " contas banc\u00E1rias")
18
+ : 'Encontrada 1 conta bancária'
19
+ : 'Não foram encontradas ocorrências';
16
20
  return {
17
21
  children: accounts.length ? (React.createElement(Result, null, accounts.map(function (account, key) { return (React.createElement(ResultContent, { key: key },
18
- React.createElement(AddItemField, { name: "Banco", value: XPathUtils.select("string(banco)", account) }),
19
- React.createElement(AddItemField, { name: "Ag\u00EAncia", value: XPathUtils.select("string(agencia)", account) }),
20
- React.createElement(AddItemField, { name: "Conta", value: XPathUtils.select("string(conta)", account) }))); }))) : null,
22
+ React.createElement(AddItemField, { name: "Banco", value: XPathUtils.select('string(banco)', account) }),
23
+ React.createElement(AddItemField, { name: "Ag\u00EAncia", value: XPathUtils.select('string(agencia)', account) }),
24
+ React.createElement(AddItemField, { name: "Conta", value: XPathUtils.select('string(conta)', account) }))); }))) : null,
21
25
  description: React.createElement(StatusMessage, null, message),
22
26
  iconProps: {
23
27
  circleFill: (accounts === null || accounts === void 0 ? void 0 : accounts.length) ? theme.colors.erro : ''
@@ -1,3 +1,3 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  declare const CCF: () => React.JSX.Element;
3
3
  export default CCF;
@@ -1,24 +1,24 @@
1
- import React, { useContext } from "react";
2
- import { Queries } from "../webservice";
3
- import { Result } from "../interface/result";
4
- import XPathUtils from "../../utils/xpath";
5
- import CCFList from "./ccfList";
6
- import ChequesSemFundoIcon from "../../assets/icones/chequesSemFundo";
7
- import StatusMessage from "../interface/statusMessage";
1
+ import React, { useContext } from 'react';
2
+ import { Queries } from '../webservice';
3
+ import { Result } from '../interface/result';
4
+ import XPathUtils from '../../utils/xpath';
5
+ import CCFList from './ccfList';
6
+ import ChequesSemFundoIcon from '../../assets/icones/chequesSemFundo';
7
+ import StatusMessage from '../interface/statusMessage';
8
8
  var CCF = function () {
9
9
  var ctx = useContext(Queries.CCF);
10
10
  var Section = ctx.Section;
11
11
  var mapNodeToCCFData = function (node) { return ({
12
- banco: XPathUtils.select("string(./banco)", node),
13
- agencia: XPathUtils.select("string(./agencia)", node),
14
- quantidadeDeOcorrencias: parseInt(XPathUtils.select("string(./qteOcorrencias)", node), 10),
15
- ultimaOcorrencia: XPathUtils.select("string(./ultimo)", node),
16
- motivo: XPathUtils.select("string(./motivo)", node),
12
+ banco: XPathUtils.select('string(./banco)', node),
13
+ agencia: XPathUtils.select('string(./agencia)', node),
14
+ quantidadeDeOcorrencias: parseInt(XPathUtils.select('string(./qteOcorrencias)', node), 10),
15
+ ultimaOcorrencia: XPathUtils.select('string(./ultimo)', node),
16
+ motivo: XPathUtils.select('string(./motivo)', node)
17
17
  }); };
18
18
  return (React.createElement(Section, { ctx: ctx, title: "Cheques sem Fundos em Institui\u00E7\u00E3o Banc\u00E1ria", subtitle: "Detalhes acerca de cheques sem fundos emitidos.", icon: ChequesSemFundoIcon, onSuccess: function (data) {
19
- var allItems = XPathUtils.selectArray("//list/*", data);
19
+ var allItems = XPathUtils.selectArray('//list/*', data);
20
20
  var filteredItems = allItems.filter(function (node) {
21
- return node.nodeName.startsWith("item");
21
+ return node.nodeName.startsWith('item');
22
22
  });
23
23
  var ccfData = filteredItems.map(mapNodeToCCFData);
24
24
  var totalOcorrencias = XPathUtils.select('number(//sumQteOcorrencias)', data);
@@ -28,9 +28,9 @@ var CCF = function () {
28
28
  variant: totalOcorrencias ? 'error' : 'default',
29
29
  description: (React.createElement(StatusMessage, { type: totalOcorrencias ? 'error' : 'default' }, totalOcorrencias
30
30
  ? totalOcorrencias === 1
31
- ? "Encontrado um cheque sem fundo"
31
+ ? 'Encontrado um cheque sem fundo'
32
32
  : "Encontrados ".concat(totalOcorrencias, " Cheques sem fundos")
33
- : "Não há ocorrência de cheques sem fundo")),
33
+ : 'Não há ocorrência de cheques sem fundo'))
34
34
  };
35
35
  } }));
36
36
  };
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  export type CCFData = {
3
3
  banco: string;
4
4
  agencia: string;
@@ -1,8 +1,8 @@
1
- import React, { memo } from "react";
2
- import { ResultContent } from "../interface/result";
3
- import AddCffField from "../common/addItem";
4
- import { formatDistance } from "date-fns";
5
- import { ptBR } from "date-fns/locale";
1
+ import React, { memo } from 'react';
2
+ import { ResultContent } from '../interface/result';
3
+ import AddCffField from '../common/addItem';
4
+ import { formatDistance } from 'date-fns';
5
+ import { ptBR } from 'date-fns/locale';
6
6
  var CCFItem = memo(function (_a) {
7
7
  var ccf = _a.ccf;
8
8
  var startDate = new Date(ccf.ultimaOcorrencia.split('/').reverse().join('-'));
@@ -19,6 +19,6 @@ var CCFItem = memo(function (_a) {
19
19
  });
20
20
  var CCFList = function (_a) {
21
21
  var data = _a.data;
22
- return (React.createElement(ResultContent, { desktop: "repeat(5, 1fr)", tablet: "repeat(3, 1fr)", mobile: "repeat(2, 1fr)" }, data.map(function (ccf, i) { return React.createElement(CCFItem, { key: i, ccf: ccf }); })));
22
+ return (React.createElement(ResultContent, { desktop: "repeat(5, 1fr)", tablet: "repeat(3, 1fr)", mobile: "repeat(2, 1fr)" }, data.map(function (ccf, i) { return (React.createElement(CCFItem, { key: i, ccf: ccf })); })));
23
23
  };
24
24
  export default CCFList;
@@ -1,5 +1,5 @@
1
- import React from "react";
2
- import { DataInput } from "./types/iChart";
1
+ import React from 'react';
2
+ import { DataInput } from './types/iChart';
3
3
  declare const ChartContent: React.FC<{
4
4
  dataInput: DataInput;
5
5
  }>;
@@ -11,21 +11,21 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
11
11
  }
12
12
  return to.concat(ar || Array.prototype.slice.call(from));
13
13
  };
14
- import React from "react";
15
- import { Chart, registerables } from "chart.js";
16
- import CategoriaProtesto from "./components/categoryProtestos";
17
- import ResponsiveGrid from "../interface/responsiveGrid";
18
- import PieChart from "./components/PieChart";
19
- import styled from "styled-components";
20
- import MixedChart from "./components/MixedChart";
21
- import ChartDataLabels from "chartjs-plugin-datalabels";
22
- import { useWindowSize } from "../../hooks/useWindowSize";
14
+ import React from 'react';
15
+ import { Chart, registerables } from 'chart.js';
16
+ import CategoriaProtesto from './components/categoryProtestos';
17
+ import ResponsiveGrid from '../interface/responsiveGrid';
18
+ import PieChart from './components/PieChart';
19
+ import styled from 'styled-components';
20
+ import MixedChart from './components/MixedChart';
21
+ import ChartDataLabels from 'chartjs-plugin-datalabels';
22
+ import { useWindowSize } from '../../hooks/useWindowSize';
23
23
  Chart.register.apply(Chart, __spreadArray([ChartDataLabels], registerables, false));
24
24
  var Title = styled.h2(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n text-align: left;\n margin-bottom: 20px;\n"], ["\n text-align: left;\n margin-bottom: 20px;\n"])));
25
25
  var getWidth = function (windowWidth, chartType) {
26
- var baseWidth = windowWidth <= 768 ? "98%" : windowWidth <= 1200 ? "92%" : "100%";
27
- if (chartType === "pie") {
28
- return windowWidth <= 1001 ? "80%" : windowWidth <= 1200 ? "80%" : "100%";
26
+ var baseWidth = windowWidth <= 768 ? '98%' : windowWidth <= 1200 ? '92%' : '100%';
27
+ if (chartType === 'pie') {
28
+ return windowWidth <= 1001 ? '80%' : windowWidth <= 1200 ? '80%' : '100%';
29
29
  }
30
30
  return baseWidth;
31
31
  };
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  interface ChartSystemProps {
3
3
  documento: string;
4
4
  }
@@ -2,28 +2,27 @@ 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, { useContext, useEffect } from "react";
6
- import { useUltimaOcorrenciaCCF, useCalculation, useDividasPublicas, } from "./utils/chartUtils";
7
- import Header from "../interface/header";
8
- import StatusMessage from "../interface/statusMessage";
9
- import useToggle from "../../hooks/useToggle";
10
- import styled from "styled-components";
11
- import QuantidadeResultados from "./quantityResult";
12
- import ChartContent from "./chartContent";
13
- import BtnWrapper from "../../assets/btn/btnWrapper";
14
- import ChevronUp from "../../assets/btn/chevronUp";
15
- import ChevronDown from "../../assets/btn/chevronDown";
16
- import useChartData from "./hooks/useChartData";
17
- import { Result } from "../interface/result";
18
- import ResumoDeNegativacoesIcon from "../../assets/icones/resumoNegativacoes";
19
- import { ConsultasComplementaresContext } from "../consultasComplementares";
20
- var Content = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: ", ";\n"], ["\n display: ", ";\n"])), function (props) { return (props.isOpen ? "block" : "none"); });
5
+ import React, { useContext, useEffect } from 'react';
6
+ import { useUltimaOcorrenciaCCF, useCalculation, useDividasPublicas } from './utils/chartUtils';
7
+ import Header from '../interface/header';
8
+ import StatusMessage from '../interface/statusMessage';
9
+ import useToggle from '../../hooks/useToggle';
10
+ import styled from 'styled-components';
11
+ import QuantidadeResultados from './quantityResult';
12
+ import ChartContent from './chartContent';
13
+ import BtnWrapper from '../../assets/btn/btnWrapper';
14
+ import ChevronUp from '../../assets/btn/chevronUp';
15
+ import ChevronDown from '../../assets/btn/chevronDown';
16
+ import useChartData from './hooks/useChartData';
17
+ import ResumoDeNegativacoesIcon from '../../assets/icones/resumoNegativacoes';
18
+ import { ConsultasComplementaresContext } from '../consultasComplementares';
19
+ var Content = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: ", ";\n"], ["\n display: ", ";\n"])), function (props) { return (props.isOpen ? 'block' : 'none'); });
21
20
  var ChartSystem = function (_a) {
22
21
  var _b, _c, _d, _e, _f, _g, _h, _j, _k;
23
22
  var documento = _a.documento;
24
23
  var _l = useChartData(documento), data = _l.data, isLoading = _l.isLoading, error = _l.error, refetch = _l.refetch;
25
24
  var ctxConsultasComplementares = useContext(ConsultasComplementaresContext);
26
- var errorMessage = typeof error === "string" ? error : error === null || error === void 0 ? void 0 : error.toString();
25
+ var errorMessage = typeof error === 'string' ? error : error === null || error === void 0 ? void 0 : error.toString();
27
26
  var _m = useToggle(true), isOpen = _m[0], toggleOpen = _m[1];
28
27
  var ultimaOcorrenciaCCF = useUltimaOcorrenciaCCF();
29
28
  var quantidadeProtestos = ((_c = (_b = data === null || data === void 0 ? void 0 : data.protestos) === null || _b === void 0 ? void 0 : _b[(data === null || data === void 0 ? void 0 : data.protestos.length) - 1]) === null || _c === void 0 ? void 0 : _c.quantidade) || 0;
@@ -32,7 +31,7 @@ var ChartSystem = function (_a) {
32
31
  var _p = useCalculation((data === null || data === void 0 ? void 0 : data.serasa) || []), quantidadeSerasa = _p.quantidade, valorTotalSerasa = _p.valorTotal;
33
32
  var _q = useCalculation((data === null || data === void 0 ? void 0 : data.boaVista) || []), quantidadeBoaVista = _q.quantidade, valorTotalBoaVista = _q.valorTotal;
34
33
  var quantidadeCCFs = useCalculation((data === null || data === void 0 ? void 0 : data.ccfs) || []).quantidade;
35
- var ultimaOcorrenciaProtestos = "";
34
+ var ultimaOcorrenciaProtestos = '';
36
35
  if ((data === null || data === void 0 ? void 0 : data.protestos) && data.protestos.length > 0) {
37
36
  ultimaOcorrenciaProtestos = new Date(data.protestos[data.protestos.length - 1].data).toLocaleDateString();
38
37
  }
@@ -43,11 +42,10 @@ var ChartSystem = function (_a) {
43
42
  refetch();
44
43
  }, [consultaPefinBoaVista, consultaPefinSerasa]);
45
44
  return (React.createElement(React.Fragment, null,
46
- React.createElement(Header, { title: "Resumo de Negativa\u00E7\u00F5es", subtitle: "Veja a quantidade de ocorr\u00EAncias conforme o documento foi consultado ao longo do tempo", description: errorMessage && (React.createElement(StatusMessage, { type: "error" }, errorMessage)), variant: isLoading ? "loading" : "default", icon: ResumoDeNegativacoesIcon, actions: React.createElement(BtnWrapper, { onClick: toggleOpen }, isOpen ? React.createElement(ChevronUp, null) : React.createElement(ChevronDown, null)) }),
47
- React.createElement(Result, null,
48
- React.createElement(Content, { isOpen: isOpen },
49
- data && React.createElement(ChartContent, { dataInput: data }),
50
- !isLoading && (React.createElement(QuantidadeResultados, { data: data, quantidadeProtestos: quantidadeProtestos, quantidadeProcessos: (_k = data === null || data === void 0 ? void 0 : data.pieChartTotalConfig) === null || _k === void 0 ? void 0 : _k.processosJuridicos, quantidadeDividas: quantidadeDividas, quantidadeDividasSerasa: quantidadeSerasa, quantidadeDividasBoaVista: quantidadeBoaVista, quantidadeChequesSemFundos: quantidadeCCFs, ultimaOcorrenciaChequesSemFundos: ultimaOcorrenciaCCF, valorTotalDividasSerasa: valorTotalSerasa, valorTotalDividasBoaVista: valorTotalBoaVista, valorTotalProtestos: valorTotalProtestos, valorTotalDividas: valorTotalDividas, ultimaOcorrenciaProtestos: ultimaOcorrenciaProtestos }))))));
45
+ React.createElement(Header, { title: "Resumo de Negativa\u00E7\u00F5es", subtitle: "Veja a quantidade de ocorr\u00EAncias conforme o documento foi consultado ao longo do tempo", description: errorMessage && (React.createElement(StatusMessage, { type: "error" }, errorMessage)), variant: isLoading ? 'loading' : 'default', icon: ResumoDeNegativacoesIcon, actions: React.createElement(BtnWrapper, { onClick: toggleOpen }, isOpen ? React.createElement(ChevronUp, null) : React.createElement(ChevronDown, null)) }),
46
+ React.createElement(Content, { isOpen: isOpen },
47
+ data && React.createElement(ChartContent, { dataInput: data }),
48
+ !isLoading && (React.createElement(QuantidadeResultados, { data: data, quantidadeProtestos: quantidadeProtestos, quantidadeProcessos: (_k = data === null || data === void 0 ? void 0 : data.pieChartTotalConfig) === null || _k === void 0 ? void 0 : _k.processosJuridicos, quantidadeDividas: quantidadeDividas, quantidadeDividasSerasa: quantidadeSerasa, quantidadeDividasBoaVista: quantidadeBoaVista, quantidadeChequesSemFundos: quantidadeCCFs, ultimaOcorrenciaChequesSemFundos: ultimaOcorrenciaCCF, valorTotalDividasSerasa: valorTotalSerasa, valorTotalDividasBoaVista: valorTotalBoaVista, valorTotalProtestos: valorTotalProtestos, valorTotalDividas: valorTotalDividas, ultimaOcorrenciaProtestos: ultimaOcorrenciaProtestos })))));
51
49
  };
52
50
  export default ChartSystem;
53
51
  var templateObject_1;
@@ -1,5 +1,5 @@
1
- import React from "react";
2
- import { DataInput } from "../types/iChart";
1
+ import React from 'react';
2
+ import { DataInput } from '../types/iChart';
3
3
  interface MixedChartProps {
4
4
  dataInput: DataInput;
5
5
  }
@@ -2,28 +2,28 @@ 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, { useState } from "react";
6
- import { Chart } from "react-chartjs-2";
7
- import { useMixedChartData } from "../hooks/useMixedChartData";
8
- import styled, { css } from "styled-components";
5
+ import React, { useState } from 'react';
6
+ import { Chart } from 'react-chartjs-2';
7
+ import { useMixedChartData } from '../hooks/useMixedChartData';
8
+ import styled, { css } from 'styled-components';
9
9
  var TimeFilterButton = styled.button(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n padding: 8px 16px;\n margin-right: 5px;\n background-color: #f0f0f0;\n border: 1px solid #ccc;\n border-radius: 8px;\n cursor: pointer;\n width: 100px;\n min-width: 100px;\n text-align: center;\n\n ", "\n\n &:hover {\n background-color: #007af2;\n color: white;\n }\n"], ["\n padding: 8px 16px;\n margin-right: 5px;\n background-color: #f0f0f0;\n border: 1px solid #ccc;\n border-radius: 8px;\n cursor: pointer;\n width: 100px;\n min-width: 100px;\n text-align: center;\n\n ", "\n\n &:hover {\n background-color: #007af2;\n color: white;\n }\n"])), function (props) {
10
10
  return props.isActive && css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: #007af2;\n color: white;\n border-color: #007af2;\n "], ["\n background-color: #007af2;\n color: white;\n border-color: #007af2;\n "])));
11
11
  });
12
12
  var MixedChart = function (_a) {
13
13
  var dataInput = _a.dataInput;
14
- var _b = useState("1m"), timeFilter = _b[0], setTimeFilter = _b[1];
14
+ var _b = useState('1m'), timeFilter = _b[0], setTimeFilter = _b[1];
15
15
  var _c = useMixedChartData(dataInput, timeFilter), data = _c.data, options = _c.options;
16
- var chartType = data.datasets.some(function (dataset) { return dataset.type === "bar"; })
17
- ? "bar"
18
- : "line";
16
+ var chartType = data.datasets.some(function (dataset) { return dataset.type === 'bar'; })
17
+ ? 'bar'
18
+ : 'line';
19
19
  return (React.createElement("div", null,
20
- React.createElement("div", null, ["all", "1y", "6m", "1m"].map(function (filter) { return (React.createElement(TimeFilterButton, { key: filter, onClick: function () { return setTimeFilter(filter); }, isActive: timeFilter === filter }, filter === "all"
21
- ? "All"
22
- : filter === "1y"
23
- ? "1 Ano"
24
- : filter === "6m"
25
- ? "6 Meses"
26
- : "1 Mês")); })),
20
+ React.createElement("div", null, ['all', '1y', '6m', '1m'].map(function (filter) { return (React.createElement(TimeFilterButton, { key: filter, onClick: function () { return setTimeFilter(filter); }, isActive: timeFilter === filter }, filter === 'all'
21
+ ? 'All'
22
+ : filter === '1y'
23
+ ? '1 Ano'
24
+ : filter === '6m'
25
+ ? '6 Meses'
26
+ : '1 Mês')); })),
27
27
  React.createElement(Chart, { type: chartType, data: data, options: options })));
28
28
  };
29
29
  export default MixedChart;
@@ -1,5 +1,5 @@
1
- import React from "react";
2
- import { DataInput } from "../types/iChart";
1
+ import React from 'react';
2
+ import { DataInput } from '../types/iChart';
3
3
  interface PieChartProps {
4
4
  dataInput: DataInput;
5
5
  }
@@ -1,6 +1,6 @@
1
- import React from "react";
2
- import { Pie } from "react-chartjs-2";
3
- import { usePieChartData } from "../hooks/usePieChartData";
1
+ import React from 'react';
2
+ import { Pie } from 'react-chartjs-2';
3
+ import { usePieChartData } from '../hooks/usePieChartData';
4
4
  var PieChart = function (_a) {
5
5
  var dataInput = _a.dataInput;
6
6
  var _b = usePieChartData(dataInput), data = _b.data, options = _b.options;
@@ -1,7 +1,7 @@
1
- import React from "react";
2
- import { DataInput } from "../types/iChart";
1
+ import React from 'react';
2
+ import { DataInput } from '../types/iChart';
3
3
  interface ProtestoCategory {
4
- dataInput: DataInput["protestosCategory"];
4
+ dataInput: DataInput['protestosCategory'];
5
5
  }
6
6
  declare const CategoriaProtesto: React.FC<ProtestoCategory>;
7
7
  export default CategoriaProtesto;
@@ -2,10 +2,10 @@ 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";
6
- import { Bar } from "react-chartjs-2";
7
- import styled from "styled-components";
8
- import { useCategoryProtestos } from "../hooks/useCategoryProtestos";
5
+ import React from 'react';
6
+ import { Bar } from 'react-chartjs-2';
7
+ import styled from 'styled-components';
8
+ import { useCategoryProtestos } from '../hooks/useCategoryProtestos';
9
9
  var ChartContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 400px;\n width: 100%;\n"], ["\n height: 400px;\n width: 100%;\n"])));
10
10
  var CategoriaProtesto = function (_a) {
11
11
  var dataInput = _a.dataInput;
@@ -1,6 +1,6 @@
1
- import { ChartData, ChartOptions } from "chart.js";
2
- import { DataInput } from "../types/iChart";
3
- export declare const useCategoryProtestos: (dataInput: DataInput["protestosCategory"]) => {
4
- data: ChartData<"bar", number[], string>;
5
- options: ChartOptions<"bar">;
1
+ import { ChartData, ChartOptions } from 'chart.js';
2
+ import { DataInput } from '../types/iChart';
3
+ export declare const useCategoryProtestos: (dataInput: DataInput['protestosCategory']) => {
4
+ data: ChartData<'bar', number[], string>;
5
+ options: ChartOptions<'bar'>;
6
6
  };