@credithub/harlan-components 1.13.9 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +48432 -65
- package/lib/esm/components/chart/chartContent.d.ts +3 -4
- package/lib/esm/components/chart/chartContent.js +41 -50
- package/lib/esm/components/chart/chartSystem.d.ts +6 -0
- package/lib/esm/components/chart/chartSystem.js +45 -0
- package/lib/esm/components/chart/components/MixedChart.d.ts +7 -0
- package/lib/esm/components/chart/components/MixedChart.js +30 -0
- package/lib/esm/components/chart/components/PieChart.d.ts +7 -0
- package/lib/esm/components/chart/components/PieChart.js +9 -0
- package/lib/esm/components/chart/components/categoryProtestos.d.ts +7 -0
- package/lib/esm/components/chart/components/categoryProtestos.js +17 -0
- package/lib/esm/components/chart/hooks/useCategoryProtestos.d.ts +6 -0
- package/lib/esm/components/chart/hooks/useCategoryProtestos.js +71 -0
- package/lib/esm/components/chart/hooks/useChartData.d.ts +8 -0
- package/lib/esm/components/chart/hooks/useChartData.js +59 -0
- package/lib/esm/components/chart/hooks/useMixedChartData.d.ts +10 -0
- package/lib/esm/components/chart/hooks/useMixedChartData.js +43 -0
- package/lib/esm/components/chart/hooks/usePieChartData.d.ts +6 -0
- package/lib/esm/components/chart/hooks/usePieChartData.js +89 -0
- package/lib/esm/components/chart/quantityResult.js +23 -22
- package/lib/esm/components/chart/types/iChart.d.ts +58 -0
- package/lib/esm/components/chart/utils/chartCustomization.d.ts +7 -0
- package/lib/esm/components/chart/utils/chartCustomization.js +154 -0
- package/lib/esm/components/chart/utils/chartUtils.d.ts +11 -0
- package/lib/esm/components/chart/utils/chartUtils.js +37 -0
- package/lib/esm/components/chart/utils/dataManipulation.d.ts +10 -0
- package/lib/esm/components/chart/utils/dataManipulation.js +97 -0
- package/lib/esm/components/chart/utils/dataProcessing.d.ts +3 -0
- package/lib/esm/components/chart/utils/dataProcessing.js +86 -0
- package/lib/esm/consultaSimples.js +5 -3
- package/lib/esm/hooks/useWindowSize.d.ts +4 -0
- package/lib/esm/hooks/useWindowSize.js +19 -0
- package/lib/esm/index.d.ts +1 -1
- package/lib/esm/index.js +4 -1
- package/lib/esm/utils/fillMissingData.d.ts +6 -0
- package/lib/esm/utils/fillMissingData.js +12 -0
- package/lib/esm/utils/getUniqueDates.d.ts +5 -0
- package/lib/esm/utils/getUniqueDates.js +9 -0
- package/package.json +12 -2
- package/lib/cjs/assets/btn/btnWrapper.d.ts +0 -2
- package/lib/cjs/assets/btn/btnWrapper.js +0 -14
- package/lib/cjs/assets/btn/chevronDown.d.ts +0 -3
- package/lib/cjs/assets/btn/chevronDown.js +0 -34
- package/lib/cjs/assets/btn/chevronLeft.d.ts +0 -3
- package/lib/cjs/assets/btn/chevronLeft.js +0 -35
- package/lib/cjs/assets/btn/chevronRight.d.ts +0 -3
- package/lib/cjs/assets/btn/chevronRight.js +0 -35
- package/lib/cjs/assets/btn/chevronUp.d.ts +0 -3
- package/lib/cjs/assets/btn/chevronUp.js +0 -35
- package/lib/cjs/assets/btn/closeIcon.d.ts +0 -3
- package/lib/cjs/assets/btn/closeIcon.js +0 -34
- package/lib/cjs/assets/btn/thumbDown.d.ts +0 -7
- package/lib/cjs/assets/btn/thumbDown.js +0 -16
- package/lib/cjs/assets/btn/thumbUp.d.ts +0 -7
- package/lib/cjs/assets/btn/thumbUp.js +0 -16
- package/lib/cjs/assets/icones/chequesSemFundo.d.ts +0 -4
- package/lib/cjs/assets/icones/chequesSemFundo.js +0 -17
- package/lib/cjs/assets/icones/consultaSimples.d.ts +0 -4
- package/lib/cjs/assets/icones/consultaSimples.js +0 -17
- package/lib/cjs/assets/icones/contasBancarias.d.ts +0 -4
- package/lib/cjs/assets/icones/contasBancarias.js +0 -17
- package/lib/cjs/assets/icones/contato.d.ts +0 -4
- package/lib/cjs/assets/icones/contato.js +0 -17
- package/lib/cjs/assets/icones/dividasVencidasSerasa.d.ts +0 -4
- package/lib/cjs/assets/icones/dividasVencidasSerasa.js +0 -14
- package/lib/cjs/assets/icones/dominios.d.ts +0 -4
- package/lib/cjs/assets/icones/dominios.js +0 -14
- package/lib/cjs/assets/icones/endereco.d.ts +0 -4
- package/lib/cjs/assets/icones/endereco.js +0 -17
- package/lib/cjs/assets/icones/iconeEmpresa.d.ts +0 -8
- package/lib/cjs/assets/icones/iconeEmpresa.js +0 -17
- package/lib/cjs/assets/icones/iconePessoa.d.ts +0 -9
- package/lib/cjs/assets/icones/iconePessoa.js +0 -17
- package/lib/cjs/assets/icones/imoveis.d.ts +0 -4
- package/lib/cjs/assets/icones/imoveis.js +0 -14
- package/lib/cjs/assets/icones/pefinRefinBoaVista.d.ts +0 -4
- package/lib/cjs/assets/icones/pefinRefinBoaVista.js +0 -14
- package/lib/cjs/assets/icones/pefinRefinSerasa.d.ts +0 -4
- package/lib/cjs/assets/icones/pefinRefinSerasa.js +0 -16
- package/lib/cjs/assets/icones/processosJuridicos.d.ts +0 -4
- package/lib/cjs/assets/icones/processosJuridicos.js +0 -17
- package/lib/cjs/assets/icones/protestos.d.ts +0 -4
- package/lib/cjs/assets/icones/protestos.js +0 -17
- package/lib/cjs/assets/icones/protestosCredito.d.ts +0 -4
- package/lib/cjs/assets/icones/protestosCredito.js +0 -17
- package/lib/cjs/assets/icones/protestosGerais.d.ts +0 -4
- package/lib/cjs/assets/icones/protestosGerais.js +0 -17
- package/lib/cjs/assets/icones/protestosImpostos.d.ts +0 -4
- package/lib/cjs/assets/icones/protestosImpostos.js +0 -17
- package/lib/cjs/assets/icones/quadroSocietario.d.ts +0 -4
- package/lib/cjs/assets/icones/quadroSocietario.js +0 -17
- package/lib/cjs/assets/icones/resumoNegativacoes.d.ts +0 -4
- package/lib/cjs/assets/icones/resumoNegativacoes.js +0 -16
- package/lib/cjs/assets/icones/scoreBoaVista.d.ts +0 -4
- package/lib/cjs/assets/icones/scoreBoaVista.js +0 -14
- package/lib/cjs/assets/icones/scr.d.ts +0 -4
- package/lib/cjs/assets/icones/scr.js +0 -14
- package/lib/cjs/assets/icones/ultimaMovimentacao.d.ts +0 -4
- package/lib/cjs/assets/icones/ultimaMovimentacao.js +0 -17
- package/lib/cjs/assets/icones/veiculos.d.ts +0 -4
- package/lib/cjs/assets/icones/veiculos.js +0 -14
- package/lib/cjs/components/adresses/addresses.d.ts +0 -19
- package/lib/cjs/components/adresses/addresses.js +0 -74
- package/lib/cjs/components/adresses/getGeocode.d.ts +0 -6
- package/lib/cjs/components/adresses/getGeocode.js +0 -73
- package/lib/cjs/components/adresses/map.d.ts +0 -11
- package/lib/cjs/components/adresses/map.js +0 -50
- package/lib/cjs/components/bank-accounts/bank-accounts.d.ts +0 -3
- package/lib/cjs/components/bank-accounts/bank-accounts.js +0 -33
- package/lib/cjs/components/ccf/ccf.d.ts +0 -3
- package/lib/cjs/components/ccf/ccf.js +0 -65
- package/lib/cjs/components/ccf/ccfList.d.ts +0 -12
- package/lib/cjs/components/ccf/ccfList.js +0 -52
- package/lib/cjs/components/chart/categoryProtestos.d.ts +0 -4
- package/lib/cjs/components/chart/categoryProtestos.js +0 -97
- package/lib/cjs/components/chart/chartContent.d.ts +0 -7
- package/lib/cjs/components/chart/chartContent.js +0 -87
- package/lib/cjs/components/chart/chartHelper.d.ts +0 -7
- package/lib/cjs/components/chart/chartHelper.js +0 -66
- package/lib/cjs/components/chart/customChart.d.ts +0 -10
- package/lib/cjs/components/chart/customChart.js +0 -142
- package/lib/cjs/components/chart/getUniqueDates.d.ts +0 -2
- package/lib/cjs/components/chart/getUniqueDates.js +0 -8
- package/lib/cjs/components/chart/plotly/barChartDataStrategy.d.ts +0 -14
- package/lib/cjs/components/chart/plotly/barChartDataStrategy.js +0 -152
- package/lib/cjs/components/chart/plotly/baseChartDataStrategy.d.ts +0 -8
- package/lib/cjs/components/chart/plotly/baseChartDataStrategy.js +0 -31
- package/lib/cjs/components/chart/plotly/getSeries.d.ts +0 -3
- package/lib/cjs/components/chart/plotly/getSeries.js +0 -35
- package/lib/cjs/components/chart/plotly/iChartDataStrategy.d.ts +0 -35
- package/lib/cjs/components/chart/plotly/iChartDataStrategy.js +0 -2
- package/lib/cjs/components/chart/plotly/index.d.ts +0 -5
- package/lib/cjs/components/chart/plotly/index.js +0 -20
- package/lib/cjs/components/chart/plotly/layoutLineBarChart.d.ts +0 -39
- package/lib/cjs/components/chart/plotly/layoutLineBarChart.js +0 -67
- package/lib/cjs/components/chart/plotly/lineChartDataStrategy.d.ts +0 -17
- package/lib/cjs/components/chart/plotly/lineChartDataStrategy.js +0 -198
- package/lib/cjs/components/chart/plotly/pieChartDataStrategy.d.ts +0 -5
- package/lib/cjs/components/chart/plotly/pieChartDataStrategy.js +0 -45
- package/lib/cjs/components/chart/plotly/types.d.ts +0 -40
- package/lib/cjs/components/chart/plotly/types.js +0 -2
- package/lib/cjs/components/chart/processChartData.d.ts +0 -5
- package/lib/cjs/components/chart/processChartData.js +0 -41
- package/lib/cjs/components/chart/quantityResult.d.ts +0 -17
- package/lib/cjs/components/chart/quantityResult.js +0 -45
- package/lib/cjs/components/chart/useCalculation.d.ts +0 -6
- package/lib/cjs/components/chart/useCalculation.js +0 -12
- package/lib/cjs/components/chart/useDividasPublicas.d.ts +0 -5
- package/lib/cjs/components/chart/useDividasPublicas.js +0 -26
- package/lib/cjs/components/chart/useUltimaOcorrenciaCCF.d.ts +0 -2
- package/lib/cjs/components/chart/useUltimaOcorrenciaCCF.js +0 -20
- package/lib/cjs/components/common/addItem.d.ts +0 -11
- package/lib/cjs/components/common/addItem.js +0 -49
- package/lib/cjs/components/common/button.d.ts +0 -5
- package/lib/cjs/components/common/button.js +0 -46
- package/lib/cjs/components/common/carousel.d.ts +0 -4
- package/lib/cjs/components/common/carousel.js +0 -24
- package/lib/cjs/components/consultaRfb.d.ts +0 -16
- package/lib/cjs/components/consultaRfb.js +0 -48
- package/lib/cjs/components/consultaSimplesSection/consultaSimplesSection.d.ts +0 -6
- package/lib/cjs/components/consultaSimplesSection/consultaSimplesSection.js +0 -110
- package/lib/cjs/components/consultasComplementares.d.ts +0 -29
- package/lib/cjs/components/consultasComplementares.js +0 -59
- package/lib/cjs/components/contacts/contactLikeDislikeSection.d.ts +0 -8
- package/lib/cjs/components/contacts/contactLikeDislikeSection.js +0 -96
- package/lib/cjs/components/contacts/contacts.d.ts +0 -18
- package/lib/cjs/components/contacts/contacts.js +0 -75
- package/lib/cjs/components/contacts/contactsLikeDislike.d.ts +0 -9
- package/lib/cjs/components/contacts/contactsLikeDislike.js +0 -12
- package/lib/cjs/components/contacts/thumbsButton.d.ts +0 -9
- package/lib/cjs/components/contacts/thumbsButton.js +0 -46
- package/lib/cjs/components/dividasPublicas/dividasPublicas.d.ts +0 -3
- package/lib/cjs/components/dividasPublicas/dividasPublicas.js +0 -89
- package/lib/cjs/components/dominios/dominios.d.ts +0 -3
- package/lib/cjs/components/dominios/dominios.js +0 -53
- package/lib/cjs/components/dossie/carrousel/carrousel.d.ts +0 -8
- package/lib/cjs/components/dossie/carrousel/carrousel.js +0 -22
- package/lib/cjs/components/dossie/companyLogo/companyLogo.d.ts +0 -7
- package/lib/cjs/components/dossie/companyLogo/companyLogo.js +0 -31
- package/lib/cjs/components/dossie/dossie.d.ts +0 -8
- package/lib/cjs/components/dossie/dossie.js +0 -74
- package/lib/cjs/components/dossie/summary/cardsAndProducts.d.ts +0 -29
- package/lib/cjs/components/dossie/summary/cardsAndProducts.js +0 -212
- package/lib/cjs/components/dossie/summary/summary.d.ts +0 -18
- package/lib/cjs/components/dossie/summary/summary.js +0 -35
- package/lib/cjs/components/dossie/summary/utils.d.ts +0 -10
- package/lib/cjs/components/dossie/summary/utils.js +0 -38
- package/lib/cjs/components/dossie/transactionTable/transactionTable.d.ts +0 -6
- package/lib/cjs/components/dossie/transactionTable/transactionTable.js +0 -40
- package/lib/cjs/components/imoveis/imoveisService.d.ts +0 -6
- package/lib/cjs/components/imoveis/imoveisService.js +0 -79
- package/lib/cjs/components/imoveis/types.d.ts +0 -24
- package/lib/cjs/components/imoveis/types.js +0 -2
- package/lib/cjs/components/interface/globalStyle.d.ts +0 -2
- package/lib/cjs/components/interface/globalStyle.js +0 -11
- package/lib/cjs/components/interface/header.d.ts +0 -23
- package/lib/cjs/components/interface/header.js +0 -77
- package/lib/cjs/components/interface/loading.d.ts +0 -2
- package/lib/cjs/components/interface/loading.js +0 -14
- package/lib/cjs/components/interface/loadingBar.d.ts +0 -5
- package/lib/cjs/components/interface/loadingBar.js +0 -46
- package/lib/cjs/components/interface/responsiveGrid.d.ts +0 -8
- package/lib/cjs/components/interface/responsiveGrid.js +0 -13
- package/lib/cjs/components/interface/result.d.ts +0 -9
- package/lib/cjs/components/interface/result.js +0 -22
- package/lib/cjs/components/interface/resultWithoutInformation.d.ts +0 -4
- package/lib/cjs/components/interface/resultWithoutInformation.js +0 -37
- package/lib/cjs/components/interface/section.d.ts +0 -10
- package/lib/cjs/components/interface/section.js +0 -36
- package/lib/cjs/components/interface/statusMessage.d.ts +0 -7
- package/lib/cjs/components/interface/statusMessage.js +0 -30
- package/lib/cjs/components/interface/theme.d.ts +0 -73
- package/lib/cjs/components/interface/theme.js +0 -75
- package/lib/cjs/components/liminar/liminar.d.ts +0 -3
- package/lib/cjs/components/liminar/liminar.js +0 -46
- package/lib/cjs/components/liminar/types.d.ts +0 -3
- package/lib/cjs/components/liminar/types.js +0 -2
- package/lib/cjs/components/partners/partner-dividas-publicas.d.ts +0 -5
- package/lib/cjs/components/partners/partner-dividas-publicas.js +0 -15
- package/lib/cjs/components/partners/partner-protestos.d.ts +0 -5
- package/lib/cjs/components/partners/partner-protestos.js +0 -15
- package/lib/cjs/components/partners/partner-rfb-status.d.ts +0 -5
- package/lib/cjs/components/partners/partner-rfb-status.js +0 -15
- package/lib/cjs/components/partners/partnerField.d.ts +0 -9
- package/lib/cjs/components/partners/partnerField.js +0 -14
- package/lib/cjs/components/partners/partnerList.d.ts +0 -16
- package/lib/cjs/components/partners/partnerList.js +0 -44
- package/lib/cjs/components/partners/partners.d.ts +0 -3
- package/lib/cjs/components/partners/partners.js +0 -77
- package/lib/cjs/components/pep/pep.d.ts +0 -3
- package/lib/cjs/components/pep/pep.js +0 -66
- package/lib/cjs/components/processos-juridicos/envolvidosList.d.ts +0 -10
- package/lib/cjs/components/processos-juridicos/envolvidosList.js +0 -27
- package/lib/cjs/components/processos-juridicos/processosJuridicos.d.ts +0 -5
- package/lib/cjs/components/processos-juridicos/processosJuridicos.js +0 -51
- package/lib/cjs/components/processos-juridicos/processosJuridicosList.d.ts +0 -7
- package/lib/cjs/components/processos-juridicos/processosJuridicosList.js +0 -90
- package/lib/cjs/components/processos-juridicos/types.d.ts +0 -27
- package/lib/cjs/components/processos-juridicos/types.js +0 -2
- package/lib/cjs/components/protestos/getTotalProtestos.d.ts +0 -1
- package/lib/cjs/components/protestos/getTotalProtestos.js +0 -10
- package/lib/cjs/components/protestos/protestos.d.ts +0 -3
- package/lib/cjs/components/protestos/protestos.js +0 -94
- package/lib/cjs/components/protestos/protestosCategory.d.ts +0 -7
- package/lib/cjs/components/protestos/protestosCategory.js +0 -55
- package/lib/cjs/components/protestos/protestosList.d.ts +0 -33
- package/lib/cjs/components/protestos/protestosList.js +0 -73
- package/lib/cjs/components/reclameAqui/reclameAquiCarousel.d.ts +0 -5
- package/lib/cjs/components/reclameAqui/reclameAquiCarousel.js +0 -129
- package/lib/cjs/components/reclameAqui/types.d.ts +0 -31
- package/lib/cjs/components/reclameAqui/types.js +0 -2
- package/lib/cjs/components/refinBoaVista/refinBoaVista.d.ts +0 -22
- package/lib/cjs/components/refinBoaVista/refinBoaVista.js +0 -86
- package/lib/cjs/components/refinBoaVista/types.d.ts +0 -48
- package/lib/cjs/components/refinBoaVista/types.js +0 -7
- package/lib/cjs/components/refinSerasa/refinSerasa.d.ts +0 -22
- package/lib/cjs/components/refinSerasa/refinSerasa.js +0 -129
- package/lib/cjs/components/refinSerasa/types.d.ts +0 -48
- package/lib/cjs/components/refinSerasa/types.js +0 -2
- package/lib/cjs/components/refinSerasa/usePendencias.d.ts +0 -0
- package/lib/cjs/components/refinSerasa/usePendencias.js +0 -0
- package/lib/cjs/components/resultadoDaPesquisa/resultado-da-pesquisa.d.ts +0 -5
- package/lib/cjs/components/resultadoDaPesquisa/resultado-da-pesquisa.js +0 -31
- package/lib/cjs/components/score/scoreService.d.ts +0 -6
- package/lib/cjs/components/score/scoreService.js +0 -71
- package/lib/cjs/components/score/types.d.ts +0 -12
- package/lib/cjs/components/score/types.js +0 -2
- package/lib/cjs/components/scr/getResumoDeCreditos.d.ts +0 -6
- package/lib/cjs/components/scr/getResumoDeCreditos.js +0 -93
- package/lib/cjs/components/scr/getResumoDeModalidades.d.ts +0 -8
- package/lib/cjs/components/scr/getResumoDeModalidades.js +0 -95
- package/lib/cjs/components/scr/scr.d.ts +0 -5
- package/lib/cjs/components/scr/scr.js +0 -140
- package/lib/cjs/components/scr/types.d.ts +0 -86
- package/lib/cjs/components/scr/types.js +0 -2
- package/lib/cjs/components/veiculos/types.d.ts +0 -0
- package/lib/cjs/components/veiculos/types.js +0 -0
- package/lib/cjs/components/veiculos/veiculos.d.ts +0 -22
- package/lib/cjs/components/veiculos/veiculos.js +0 -89
- package/lib/cjs/components/webservice.d.ts +0 -140
- package/lib/cjs/components/webservice.js +0 -262
- package/lib/cjs/constants/regex.d.ts +0 -2
- package/lib/cjs/constants/regex.js +0 -5
- package/lib/cjs/consultaSimples.d.ts +0 -11
- package/lib/cjs/consultaSimples.js +0 -59
- package/lib/cjs/hooks/useConsultaRfb.d.ts +0 -6
- package/lib/cjs/hooks/useConsultaRfb.js +0 -13
- package/lib/cjs/hooks/useConsultasComplementares.d.ts +0 -1
- package/lib/cjs/hooks/useConsultasComplementares.js +0 -13
- package/lib/cjs/hooks/useToggle.d.ts +0 -10
- package/lib/cjs/hooks/useToggle.js +0 -26
- package/lib/cjs/index.d.ts +0 -23
- package/lib/cjs/utils/calculation.d.ts +0 -9
- package/lib/cjs/utils/calculation.js +0 -23
- package/lib/cjs/utils/date.d.ts +0 -1
- package/lib/cjs/utils/date.js +0 -10
- package/lib/cjs/utils/formatter.d.ts +0 -2
- package/lib/cjs/utils/formatter.js +0 -7
- package/lib/cjs/utils/number.d.ts +0 -4
- package/lib/cjs/utils/number.js +0 -27
- package/lib/cjs/utils/string.d.ts +0 -10
- package/lib/cjs/utils/string.js +0 -73
- package/lib/cjs/utils/xpath.d.ts +0 -6
- package/lib/cjs/utils/xpath.js +0 -23
- package/lib/esm/components/chart/categoryProtestos.d.ts +0 -4
- package/lib/esm/components/chart/categoryProtestos.js +0 -69
- package/lib/esm/components/chart/chartHelper.d.ts +0 -7
- package/lib/esm/components/chart/chartHelper.js +0 -60
- package/lib/esm/components/chart/customChart.d.ts +0 -10
- package/lib/esm/components/chart/customChart.js +0 -112
- package/lib/esm/components/chart/getUniqueDates.d.ts +0 -2
- package/lib/esm/components/chart/getUniqueDates.js +0 -4
- package/lib/esm/components/chart/plotly/barChartDataStrategy.d.ts +0 -14
- package/lib/esm/components/chart/plotly/barChartDataStrategy.js +0 -149
- package/lib/esm/components/chart/plotly/baseChartDataStrategy.d.ts +0 -8
- package/lib/esm/components/chart/plotly/baseChartDataStrategy.js +0 -28
- package/lib/esm/components/chart/plotly/getSeries.d.ts +0 -3
- package/lib/esm/components/chart/plotly/getSeries.js +0 -31
- package/lib/esm/components/chart/plotly/iChartDataStrategy.d.ts +0 -35
- package/lib/esm/components/chart/plotly/index.d.ts +0 -5
- package/lib/esm/components/chart/plotly/index.js +0 -5
- package/lib/esm/components/chart/plotly/layoutLineBarChart.d.ts +0 -39
- package/lib/esm/components/chart/plotly/layoutLineBarChart.js +0 -64
- package/lib/esm/components/chart/plotly/lineChartDataStrategy.d.ts +0 -17
- package/lib/esm/components/chart/plotly/lineChartDataStrategy.js +0 -195
- package/lib/esm/components/chart/plotly/pieChartDataStrategy.d.ts +0 -5
- package/lib/esm/components/chart/plotly/pieChartDataStrategy.js +0 -42
- package/lib/esm/components/chart/plotly/types.d.ts +0 -40
- package/lib/esm/components/chart/plotly/types.js +0 -1
- package/lib/esm/components/chart/processChartData.d.ts +0 -5
- package/lib/esm/components/chart/processChartData.js +0 -37
- package/lib/esm/components/chart/useCalculation.d.ts +0 -6
- package/lib/esm/components/chart/useCalculation.js +0 -8
- package/lib/esm/components/chart/useDividasPublicas.d.ts +0 -5
- package/lib/esm/components/chart/useDividasPublicas.js +0 -21
- package/lib/esm/components/chart/useUltimaOcorrenciaCCF.d.ts +0 -2
- package/lib/esm/components/chart/useUltimaOcorrenciaCCF.js +0 -15
- /package/lib/esm/components/chart/{plotly/iChartDataStrategy.js → types/iChart.js} +0 -0
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __assign = (this && this.__assign) || function () {
|
|
7
|
-
__assign = Object.assign || function(t) {
|
|
8
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
-
s = arguments[i];
|
|
10
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
-
t[p] = s[p];
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
};
|
|
15
|
-
return __assign.apply(this, arguments);
|
|
16
|
-
};
|
|
17
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
18
|
-
var t = {};
|
|
19
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
20
|
-
t[p] = s[p];
|
|
21
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
22
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
23
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
24
|
-
t[p[i]] = s[p[i]];
|
|
25
|
-
}
|
|
26
|
-
return t;
|
|
27
|
-
};
|
|
28
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
-
};
|
|
31
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
-
var react_1 = __importDefault(require("react"));
|
|
33
|
-
var header_1 = __importDefault(require("../interface/header"));
|
|
34
|
-
var result_1 = require("../interface/result");
|
|
35
|
-
var statusMessage_1 = __importDefault(require("../interface/statusMessage"));
|
|
36
|
-
var useToggle_1 = __importDefault(require("../../hooks/useToggle"));
|
|
37
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
38
|
-
var btnWrapper_1 = __importDefault(require("../../assets/btn/btnWrapper"));
|
|
39
|
-
var chevronUp_1 = __importDefault(require("../../assets/btn/chevronUp"));
|
|
40
|
-
var chevronDown_1 = __importDefault(require("../../assets/btn/chevronDown"));
|
|
41
|
-
var Content = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: ", ";\n"], ["\n display: ", ";\n"])), function (props) { return props.isOpen ? 'block' : 'none'; });
|
|
42
|
-
var ProtestosCategory = function (_a) {
|
|
43
|
-
var registros = _a.registros, title = _a.title, subtitle = _a.subtitle, children = _a.children, rest = __rest(_a, ["registros", "title", "subtitle", "children"]);
|
|
44
|
-
var _b = (0, useToggle_1.default)(), isOpen = _b[0], toggleOpen = _b[1];
|
|
45
|
-
var defaultHeaderActions = (react_1.default.createElement(react_1.default.Fragment, null,
|
|
46
|
-
react_1.default.createElement(btnWrapper_1.default, { onClick: toggleOpen }, isOpen ? react_1.default.createElement(chevronUp_1.default, null) : react_1.default.createElement(chevronDown_1.default, null))));
|
|
47
|
-
return (react_1.default.createElement("div", null,
|
|
48
|
-
react_1.default.createElement(header_1.default, __assign({ title: title, subtitle: subtitle, description: react_1.default.createElement(statusMessage_1.default, { type: registros ? "error" : "default" }, !registros
|
|
49
|
-
? "Não foram encontradas ocorrências"
|
|
50
|
-
: (registros === 1 ? 'Foi encontrado um protesto' : "Foram encontrados ".concat(registros, " protestos"))), variant: registros ? 'error' : 'default', actions: registros ? defaultHeaderActions : null }, rest)),
|
|
51
|
-
react_1.default.createElement(Content, { isOpen: isOpen },
|
|
52
|
-
react_1.default.createElement(result_1.Result, null, children))));
|
|
53
|
-
};
|
|
54
|
-
exports.default = ProtestosCategory;
|
|
55
|
-
var templateObject_1;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export type ProtestoData = {
|
|
3
|
-
quemProtestou: string;
|
|
4
|
-
atravesDe: string;
|
|
5
|
-
cpfCnpjProtestado: string;
|
|
6
|
-
dataDoProtestos: string;
|
|
7
|
-
possuiAnuencia: string;
|
|
8
|
-
anuenciaVencida: string;
|
|
9
|
-
valorDoProtesto: string;
|
|
10
|
-
valor?: number;
|
|
11
|
-
tipo: "CREDITO" | "IMPOSTO" | "GERAL";
|
|
12
|
-
};
|
|
13
|
-
export declare const ProtestoItem: React.MemoExoticComponent<({ protesto }: {
|
|
14
|
-
protesto: Node;
|
|
15
|
-
}) => React.JSX.Element>;
|
|
16
|
-
export declare const ProtestosList: React.FC<{
|
|
17
|
-
protestos: Node[];
|
|
18
|
-
}>;
|
|
19
|
-
/**
|
|
20
|
-
* const ProtestosList: React.FC<{
|
|
21
|
-
protestos: ProtestoData[]
|
|
22
|
-
}> = ({ protestos }) => {
|
|
23
|
-
return (
|
|
24
|
-
<Result isContainer contentClassName='container-layout'>
|
|
25
|
-
{protestos?.length ? protestos.map((protesto, i) => (
|
|
26
|
-
<ProtestoItem key={i} protesto={protesto} />
|
|
27
|
-
)) : (
|
|
28
|
-
<AddItemField name="Informação" value="Não foi encontrado registros de protestos para o documento consultado." />
|
|
29
|
-
)}
|
|
30
|
-
</Result>
|
|
31
|
-
)
|
|
32
|
-
}
|
|
33
|
-
*/
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.ProtestosList = exports.ProtestoItem = void 0;
|
|
30
|
-
var react_1 = __importStar(require("react"));
|
|
31
|
-
var addItem_1 = __importDefault(require("../common/addItem"));
|
|
32
|
-
var xpath_1 = __importDefault(require("../../utils/xpath"));
|
|
33
|
-
var number_1 = require("../../utils/number");
|
|
34
|
-
var result_1 = require("../interface/result");
|
|
35
|
-
var string_1 = require("../../utils/string");
|
|
36
|
-
exports.ProtestoItem = (0, react_1.memo)(function (_a) {
|
|
37
|
-
var protesto = _a.protesto;
|
|
38
|
-
var getField = function (path, formatter) {
|
|
39
|
-
var value = xpath_1.default.select("string(".concat(path, ")"), protesto);
|
|
40
|
-
return formatter ? formatter(value) : value;
|
|
41
|
-
};
|
|
42
|
-
var formatBooleanField = function (value) {
|
|
43
|
-
return value === "true" ? "Sim" : "Não";
|
|
44
|
-
};
|
|
45
|
-
return (react_1.default.createElement(result_1.ResultContent, { desktop: "repeat(7, 1fr)", tablet: "repeat(4, 1fr)", mobile: "repeat(2, 1fr)" },
|
|
46
|
-
react_1.default.createElement(addItem_1.default, { name: "Quem Protestou", value: getField("./nomeCedente") }),
|
|
47
|
-
react_1.default.createElement(addItem_1.default, { name: "Atrav\u00E9s De", value: getField("./nomeApresentante") }),
|
|
48
|
-
react_1.default.createElement(addItem_1.default, { name: "CPF/CNPJ Protestado", value: (0, string_1.formatDocument)(getField("./cpfCnpj")) }),
|
|
49
|
-
react_1.default.createElement(addItem_1.default, { name: "Data Do Protesto", value: getField("./dataProtesto") }),
|
|
50
|
-
react_1.default.createElement(addItem_1.default, { name: "Possui Anu\u00EAncia", value: formatBooleanField(getField("./temAnuencia")) }),
|
|
51
|
-
react_1.default.createElement(addItem_1.default, { name: "Anu\u00EAncia Vencida", value: formatBooleanField(getField("./anuenciaVencida")) }),
|
|
52
|
-
react_1.default.createElement(addItem_1.default, { name: "Valor Do Protesto", value: (0, number_1.formatMoney)(getField("./valor")) })));
|
|
53
|
-
});
|
|
54
|
-
var ProtestosList = function (_a) {
|
|
55
|
-
var protestos = _a.protestos;
|
|
56
|
-
return (react_1.default.createElement(result_1.ResultContent, null, (protestos === null || protestos === void 0 ? void 0 : protestos.length) ? (protestos.map(function (protesto, i) { return (react_1.default.createElement(exports.ProtestoItem, { key: i, protesto: protesto })); })) : (react_1.default.createElement(addItem_1.default, { name: "Informa\u00E7\u00E3o", value: "N\u00E3o h\u00E1 registros de protestos." }))));
|
|
57
|
-
};
|
|
58
|
-
exports.ProtestosList = ProtestosList;
|
|
59
|
-
/**
|
|
60
|
-
* const ProtestosList: React.FC<{
|
|
61
|
-
protestos: ProtestoData[]
|
|
62
|
-
}> = ({ protestos }) => {
|
|
63
|
-
return (
|
|
64
|
-
<Result isContainer contentClassName='container-layout'>
|
|
65
|
-
{protestos?.length ? protestos.map((protesto, i) => (
|
|
66
|
-
<ProtestoItem key={i} protesto={protesto} />
|
|
67
|
-
)) : (
|
|
68
|
-
<AddItemField name="Informação" value="Não foi encontrado registros de protestos para o documento consultado." />
|
|
69
|
-
)}
|
|
70
|
-
</Result>
|
|
71
|
-
)
|
|
72
|
-
}
|
|
73
|
-
*/
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __assign = (this && this.__assign) || function () {
|
|
7
|
-
__assign = Object.assign || function(t) {
|
|
8
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
-
s = arguments[i];
|
|
10
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
-
t[p] = s[p];
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
};
|
|
15
|
-
return __assign.apply(this, arguments);
|
|
16
|
-
};
|
|
17
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
-
if (k2 === undefined) k2 = k;
|
|
19
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
-
}
|
|
23
|
-
Object.defineProperty(o, k2, desc);
|
|
24
|
-
}) : (function(o, m, k, k2) {
|
|
25
|
-
if (k2 === undefined) k2 = k;
|
|
26
|
-
o[k2] = m[k];
|
|
27
|
-
}));
|
|
28
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
-
}) : function(o, v) {
|
|
31
|
-
o["default"] = v;
|
|
32
|
-
});
|
|
33
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
34
|
-
if (mod && mod.__esModule) return mod;
|
|
35
|
-
var result = {};
|
|
36
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
37
|
-
__setModuleDefault(result, mod);
|
|
38
|
-
return result;
|
|
39
|
-
};
|
|
40
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
41
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
42
|
-
};
|
|
43
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
|
-
exports.ReclameAquiCarousel = void 0;
|
|
45
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
46
|
-
var react_1 = __importStar(require("react"));
|
|
47
|
-
var carousel_1 = __importDefault(require("../common/carousel"));
|
|
48
|
-
var webservice_1 = require("../webservice");
|
|
49
|
-
var carrousel_1 = __importDefault(require("../dossie/carrousel/carrousel"));
|
|
50
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
51
|
-
var theme_1 = __importDefault(require("../interface/theme"));
|
|
52
|
-
var number_1 = require("../../utils/number");
|
|
53
|
-
var chevronLeft_1 = __importDefault(require("../../assets/btn/chevronLeft"));
|
|
54
|
-
var chevronRight_1 = __importDefault(require("../../assets/btn/chevronRight"));
|
|
55
|
-
var ContainerSummary = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: grid;\n gap: 1rem;\n padding: 1rem;\n width: 90%;\n"], ["\n display: grid;\n gap: 1rem;\n padding: 1rem;\n width: 90%;\n"])));
|
|
56
|
-
var ReclameAquiStatsContainer = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"])));
|
|
57
|
-
var LogoContainer = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 1rem;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 1rem;\n"])));
|
|
58
|
-
var StyledImage = styled_components_1.default.img(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n width: 60px;\n height: 60px;\n object-fit: cover;\n border-radius: 50%;\n border: 2px solid #fff;\n box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);\n margin-bottom: 1rem;\n"], ["\n width: 60px;\n height: 60px;\n object-fit: cover;\n border-radius: 50%;\n border: 2px solid #fff;\n box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);\n margin-bottom: 1rem;\n"])));
|
|
59
|
-
var StatsImage = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n width: 60px;\n height: 60px;\n border-radius: 50%;\n object-fit: contain;\n background-size: contain;\n background-repeat: no-repeat;\n background-position: center center;\n border: 2px solid #fff;\n box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);\n background-image: url(", ");\n margin-bottom: 1rem;\n display: flex;\n align-items: center;\n justify-content: center;\n"], ["\n width: 60px;\n height: 60px;\n border-radius: 50%;\n object-fit: contain;\n background-size: contain;\n background-repeat: no-repeat;\n background-position: center center;\n border: 2px solid #fff;\n box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);\n background-image: url(", ");\n margin-bottom: 1rem;\n display: flex;\n align-items: center;\n justify-content: center;\n"])), function (props) { return props.src; });
|
|
60
|
-
var CompanyName = styled_components_1.default.span(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n font-size: 1rem;\n color: ", ";\n text-align: center;\n margin-bottom: 0.5rem;\n line-height: 1.125rem;\n font-weight: bold;\n"], ["\n font-size: 1rem;\n color: ", ";\n text-align: center;\n margin-bottom: 0.5rem;\n line-height: 1.125rem;\n font-weight: bold;\n"])), theme_1.default.colors.cinzaEscuro);
|
|
61
|
-
var DocumentContainer = styled_components_1.default.span(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n font-size: 1rem;\n color: ", ";\n text-align: center;\n position: relative;\n background-color: ", ";\n padding: 0.25rem 0.5rem;\n border-radius: 3.75rem;\n margin-top: 0.5rem;\n display: flex;\n align-items: center;\n justify-content: center;\n"], ["\n font-size: 1rem;\n color: ", ";\n text-align: center;\n position: relative;\n background-color: ", ";\n padding: 0.25rem 0.5rem;\n border-radius: 3.75rem;\n margin-top: 0.5rem;\n display: flex;\n align-items: center;\n justify-content: center;\n"])), theme_1.default.colors.cinzaEscuro, theme_1.default.colors.cinzaClaro);
|
|
62
|
-
var DocumentPrefix = styled_components_1.default.span(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n"])));
|
|
63
|
-
var ProblemsSolved = styled_components_1.default.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 100%;\n padding: 1rem 0;\n\n a {\n text-decoration: none;\n color: inherit;\n }\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 100%;\n padding: 1rem 0;\n\n a {\n text-decoration: none;\n color: inherit;\n }\n"])));
|
|
64
|
-
var CarrouselBtn = styled_components_1.default.span(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n cursor: pointer;\n height: fit-content;\n"], ["\n cursor: pointer;\n height: fit-content;\n"])));
|
|
65
|
-
var statusMap = {
|
|
66
|
-
GREAT: "Ótimo",
|
|
67
|
-
GOOD: "Bom",
|
|
68
|
-
REGULAR: "Regular",
|
|
69
|
-
NOT_RECOMMENDED: "Não Recomendado",
|
|
70
|
-
NO_INDEX: "--",
|
|
71
|
-
BAD: "Ruim",
|
|
72
|
-
RA1000: "RA1000"
|
|
73
|
-
};
|
|
74
|
-
var translateStatus = function (status) {
|
|
75
|
-
return statusMap[status] || "--";
|
|
76
|
-
};
|
|
77
|
-
var ProblemasResolvidos = function (_a) {
|
|
78
|
-
var value = _a.value;
|
|
79
|
-
return (react_1.default.createElement(LogoContainer, null,
|
|
80
|
-
react_1.default.createElement(CompanyName, null,
|
|
81
|
-
"Problemas Resolvidos ",
|
|
82
|
-
value)));
|
|
83
|
-
};
|
|
84
|
-
var ReclameAquiStats = function (_a) {
|
|
85
|
-
var nome = _a.nome, cnpj = _a.cnpj, status = _a.status, shortname = _a.shortname, imageUrl = _a.imageUrl, quantidadeProblemasResolvidos = _a.quantidadeProblemasResolvidos, score = _a.score, percentualProblemasResolvidos = _a.percentualProblemasResolvidos;
|
|
86
|
-
return (react_1.default.createElement(ReclameAquiStatsContainer, null,
|
|
87
|
-
react_1.default.createElement(LogoContainer, null,
|
|
88
|
-
react_1.default.createElement(StyledImage, { src: imageUrl, alt: "Logo da Empresa" }),
|
|
89
|
-
react_1.default.createElement(CompanyName, { className: "bold" }, nome),
|
|
90
|
-
react_1.default.createElement(DocumentContainer, null,
|
|
91
|
-
react_1.default.createElement(DocumentPrefix, null,
|
|
92
|
-
"CNPJ: ",
|
|
93
|
-
cnpj))),
|
|
94
|
-
react_1.default.createElement(ProblemsSolved, null,
|
|
95
|
-
react_1.default.createElement(ProblemasResolvidos, { value: (0, number_1.formatValue)(Number(quantidadeProblemasResolvidos)) }),
|
|
96
|
-
react_1.default.createElement(StatsImage, { src: "https://painel.credithub.com.br/images/RA-small.png" }),
|
|
97
|
-
react_1.default.createElement("a", { href: "https://www.reclameaqui.com.br/empresa/".concat(shortname), rel: "noreferrer", target: "_blank" },
|
|
98
|
-
react_1.default.createElement(CompanyName, null,
|
|
99
|
-
translateStatus(status),
|
|
100
|
-
" ",
|
|
101
|
-
score,
|
|
102
|
-
"/10")),
|
|
103
|
-
react_1.default.createElement(ProblemasResolvidos, { value: percentualProblemasResolvidos + "%" }))));
|
|
104
|
-
};
|
|
105
|
-
exports.ReclameAquiCarousel = (0, react_1.memo)(function (_a) {
|
|
106
|
-
var _b, _c, _d;
|
|
107
|
-
var nome = _a.nome, documento = _a.documento;
|
|
108
|
-
var _e = (0, webservice_1.useQuery)("SELECT FROM 'RECLAMEAQUI'.'CONSULTA'", { documento: documento }), response = _e.response, isLoading = _e.isLoading, error = _e.error;
|
|
109
|
-
if (isLoading || error || ((response === null || response === void 0 ? void 0 : response.document) && !((_b = response === null || response === void 0 ? void 0 : response.document) === null || _b === void 0 ? void 0 : _b.length)))
|
|
110
|
-
return react_1.default.createElement(carrousel_1.default, { name: nome, document: documento });
|
|
111
|
-
return (react_1.default.createElement(ContainerSummary, null,
|
|
112
|
-
react_1.default.createElement(carousel_1.default, { pagination: false, isRTL: false, showArrows: (response === null || response === void 0 ? void 0 : response.document) && ((_c = response === null || response === void 0 ? void 0 : response.document) === null || _c === void 0 ? void 0 : _c.length) > 1, renderArrow: function (_a) {
|
|
113
|
-
var type = _a.type, onClick = _a.onClick;
|
|
114
|
-
return react_1.default.createElement(CarrouselBtn, null, type == "PREV" ? react_1.default.createElement(chevronLeft_1.default, { onClick: onClick }) : react_1.default.createElement(chevronRight_1.default, { onClick: onClick }));
|
|
115
|
-
} }, (_d = response === null || response === void 0 ? void 0 : response.document) === null || _d === void 0 ? void 0 : _d.map(function (item) {
|
|
116
|
-
var infos = item.infos;
|
|
117
|
-
return {
|
|
118
|
-
nome: nome,
|
|
119
|
-
cnpj: documento,
|
|
120
|
-
score: infos.finalScore,
|
|
121
|
-
status: infos.status,
|
|
122
|
-
shortname: infos.shortname,
|
|
123
|
-
imageUrl: infos.logo,
|
|
124
|
-
quantidadeProblemasResolvidos: infos.count.toString(),
|
|
125
|
-
percentualProblemasResolvidos: infos.solvedPercentual,
|
|
126
|
-
};
|
|
127
|
-
}).map(function (empresa, index) { return (react_1.default.createElement(ReclameAquiStats, __assign({ key: index }, empresa))); }))));
|
|
128
|
-
});
|
|
129
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export interface ReclameAquiResponse {
|
|
2
|
-
_id: Id;
|
|
3
|
-
reclameAquiId: string;
|
|
4
|
-
type: string;
|
|
5
|
-
document: string;
|
|
6
|
-
evaluated: number;
|
|
7
|
-
infos: ReclameAquiInfos;
|
|
8
|
-
document_data: DocumentData;
|
|
9
|
-
}
|
|
10
|
-
export interface Id {
|
|
11
|
-
$id: string;
|
|
12
|
-
}
|
|
13
|
-
export interface ReclameAquiInfos {
|
|
14
|
-
finalScore: string;
|
|
15
|
-
created: string;
|
|
16
|
-
companyName: string;
|
|
17
|
-
count: number;
|
|
18
|
-
solvedPercentual: string;
|
|
19
|
-
shortname: string;
|
|
20
|
-
url: string;
|
|
21
|
-
logo: string;
|
|
22
|
-
fantasyName: string;
|
|
23
|
-
status: string;
|
|
24
|
-
}
|
|
25
|
-
export interface DocumentData {
|
|
26
|
-
validity: Validity;
|
|
27
|
-
}
|
|
28
|
-
export interface Validity {
|
|
29
|
-
sec: number;
|
|
30
|
-
usec: number;
|
|
31
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare function RefinBoaVista({ documento }: {
|
|
3
|
-
documento: string;
|
|
4
|
-
}): React.JSX.Element | null;
|
|
5
|
-
export type PendenciaBoaVista = {
|
|
6
|
-
ocorrencia: string;
|
|
7
|
-
credor: string;
|
|
8
|
-
entrada: string;
|
|
9
|
-
vencimento: string;
|
|
10
|
-
valor: string;
|
|
11
|
-
informante: string;
|
|
12
|
-
contrato: string;
|
|
13
|
-
avalista: string;
|
|
14
|
-
cidade: string;
|
|
15
|
-
uf: string;
|
|
16
|
-
situacao: string;
|
|
17
|
-
orgaoemissor: string;
|
|
18
|
-
totalpendencias: string;
|
|
19
|
-
totalvalor: string;
|
|
20
|
-
categoria: string;
|
|
21
|
-
};
|
|
22
|
-
export default RefinBoaVista;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
-
}
|
|
19
|
-
Object.defineProperty(o, k2, desc);
|
|
20
|
-
}) : (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
o[k2] = m[k];
|
|
23
|
-
}));
|
|
24
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
-
}) : function(o, v) {
|
|
27
|
-
o["default"] = v;
|
|
28
|
-
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
-
if (mod && mod.__esModule) return mod;
|
|
31
|
-
var result = {};
|
|
32
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
-
__setModuleDefault(result, mod);
|
|
34
|
-
return result;
|
|
35
|
-
};
|
|
36
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
-
};
|
|
39
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
-
/* eslint-disable react-hooks/exhaustive-deps */
|
|
41
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
42
|
-
var react_1 = __importStar(require("react"));
|
|
43
|
-
var header_1 = __importDefault(require("../interface/header"));
|
|
44
|
-
var addItem_1 = __importDefault(require("../common/addItem"));
|
|
45
|
-
var result_1 = require("../interface/result");
|
|
46
|
-
var number_1 = require("../../utils/number");
|
|
47
|
-
var consultasComplementares_1 = require("../consultasComplementares");
|
|
48
|
-
var webservice_1 = require("../webservice");
|
|
49
|
-
var string_1 = require("../../utils/string");
|
|
50
|
-
var statusMessage_1 = __importDefault(require("../interface/statusMessage"));
|
|
51
|
-
var pefinRefinBoaVista_1 = __importDefault(require("../../assets/icones/pefinRefinBoaVista"));
|
|
52
|
-
function RefinBoaVista(_a) {
|
|
53
|
-
var _b, _c, _d;
|
|
54
|
-
var documento = _a.documento;
|
|
55
|
-
var consultasComplementaresContext = (0, react_1.useContext)(consultasComplementares_1.ConsultasComplementaresContext);
|
|
56
|
-
var _e = consultasComplementaresContext !== null && consultasComplementaresContext !== void 0 ? consultasComplementaresContext : {}, consultasComplementares = _e.consultasComplementares, setConsultasComplementares = _e.setConsultasComplementares;
|
|
57
|
-
var _f = (0, webservice_1.useQuery)("SELECT FROM 'PROTESTOS'.'REFIN'", { documento: documento }, !!((_b = consultasComplementares === null || consultasComplementares === void 0 ? void 0 : consultasComplementares.refinBoaVista) === null || _b === void 0 ? void 0 : _b.consultaRealizada)), response = _f.response, isLoading = _f.isLoading, error = _f.error;
|
|
58
|
-
var pendencias = (0, react_1.useMemo)(function () { var _a, _b; return ((response && ((_b = (_a = response === null || response === void 0 ? void 0 : response.document) === null || _a === void 0 ? void 0 : _a.spc) === null || _b === void 0 ? void 0 : _b[0])) || []).map(string_1.addNoValueContent); }, [response]);
|
|
59
|
-
var refinBoaVistaRef = (0, react_1.useRef)(null);
|
|
60
|
-
var description = pendencias.length ? "Foram encontrados ".concat(pendencias.length, " ocorr\u00EAncias") : 'Nenhuma ocorrência encontrada';
|
|
61
|
-
var consultaRefinRealizada = (0, react_1.useMemo)(function () { var _a; return (_a = consultasComplementares === null || consultasComplementares === void 0 ? void 0 : consultasComplementares.refinBoaVista) === null || _a === void 0 ? void 0 : _a.consultaRealizada; }, [(_c = consultasComplementares === null || consultasComplementares === void 0 ? void 0 : consultasComplementares.refinBoaVista) === null || _c === void 0 ? void 0 : _c.consultaRealizada
|
|
62
|
-
]);
|
|
63
|
-
(0, react_1.useEffect)(function () {
|
|
64
|
-
var _a;
|
|
65
|
-
(_a = refinBoaVistaRef.current) === null || _a === void 0 ? void 0 : _a.scrollIntoView();
|
|
66
|
-
}, [consultaRefinRealizada]);
|
|
67
|
-
(0, react_1.useEffect)(function () {
|
|
68
|
-
response && setConsultasComplementares && setConsultasComplementares(function (prev) { return (__assign(__assign({}, prev), { refinBoaVista: __assign(__assign({}, prev.refinBoaVista), { data: response }) })); });
|
|
69
|
-
}, [response]);
|
|
70
|
-
if (!((_d = consultasComplementares === null || consultasComplementares === void 0 ? void 0 : consultasComplementares.refinBoaVista) === null || _d === void 0 ? void 0 : _d.consultaRealizada))
|
|
71
|
-
return null;
|
|
72
|
-
return (react_1.default.createElement("div", null,
|
|
73
|
-
react_1.default.createElement(header_1.default, { innerRef: refinBoaVistaRef, title: 'Restri\u00E7\u00F5es Pefin/Refin Boa Vista', subtitle: 'Apontamentos e Restri\u00E7\u00F5es Financeiras e Comerciais', variant: isLoading ? 'loading' : error || pendencias.length ? 'error' : 'default', description: (react_1.default.createElement(statusMessage_1.default, { type: (pendencias === null || pendencias === void 0 ? void 0 : pendencias.length) ? 'success' : 'default' }, error ? error.message : description)), icon: pefinRefinBoaVista_1.default }),
|
|
74
|
-
react_1.default.createElement(result_1.Result, null, pendencias.map(function (pendencia, i) { return (react_1.default.createElement(result_1.ResultContent, { key: i, desktop: "repeat(5, 1fr)", tablet: "repeat(3, 1fr)", mobile: "1fr 1fr" },
|
|
75
|
-
react_1.default.createElement(addItem_1.default, { name: 'Associado', value: pendencia.NomeAssociado }),
|
|
76
|
-
react_1.default.createElement(addItem_1.default, { name: 'Valor', value: "".concat((0, number_1.formatMoney)(parseFloat(pendencia.Valor))) }),
|
|
77
|
-
react_1.default.createElement(addItem_1.default, { name: 'Data da Inclus\u00E3o', value: pendencia.DataDeInclusao }),
|
|
78
|
-
react_1.default.createElement(addItem_1.default, { name: 'Data do Vencimento', value: pendencia.DataDoVencimento }),
|
|
79
|
-
react_1.default.createElement(addItem_1.default, { name: 'Entidade', value: pendencia.Entidade }),
|
|
80
|
-
react_1.default.createElement(addItem_1.default, { name: 'N\u00FAmero do Contrato', value: pendencia.NumeroContrato }),
|
|
81
|
-
react_1.default.createElement(addItem_1.default, { name: 'Comprador, Fiador ou Avalista', value: pendencia.CompradorFiadorAvalista }),
|
|
82
|
-
react_1.default.createElement(addItem_1.default, { name: 'Telefone Associado', value: pendencia.TelefoneAssociado }),
|
|
83
|
-
react_1.default.createElement(addItem_1.default, { name: 'Cidade Associado', value: pendencia.CidadeAssociado }),
|
|
84
|
-
react_1.default.createElement(addItem_1.default, { name: 'UF Associado', value: pendencia.UfAssociado }))); }))));
|
|
85
|
-
}
|
|
86
|
-
exports.default = RefinBoaVista;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
export interface RefinBoaVistaResponse {
|
|
2
|
-
dadosCadastrais: DadosCadastrais[];
|
|
3
|
-
spc: Array<Spc[]>;
|
|
4
|
-
consultaRealizada: any[];
|
|
5
|
-
}
|
|
6
|
-
export interface DadosCadastrais {
|
|
7
|
-
CpfCnpj: string;
|
|
8
|
-
Protocolo: string;
|
|
9
|
-
NomeRazao: string;
|
|
10
|
-
NomeFantasia: string;
|
|
11
|
-
NascimentoFundacao: string;
|
|
12
|
-
Idade: string;
|
|
13
|
-
Sexo: string;
|
|
14
|
-
Signo: string;
|
|
15
|
-
NomeMae: string;
|
|
16
|
-
NomePai: string;
|
|
17
|
-
Rg: string;
|
|
18
|
-
OrigemCpf: string;
|
|
19
|
-
DataSituacaoCadastral: string;
|
|
20
|
-
SituacaoCadastral: string;
|
|
21
|
-
CapitalSocial: string;
|
|
22
|
-
NaturezaJuridica: string;
|
|
23
|
-
AtividadeEconomicaPrincipal: string;
|
|
24
|
-
AtividadeEconomicaSecundaria: string;
|
|
25
|
-
Endereco: string;
|
|
26
|
-
Numero: string;
|
|
27
|
-
Complemento: string;
|
|
28
|
-
Bairro: string;
|
|
29
|
-
Cidade: string;
|
|
30
|
-
Uf: string;
|
|
31
|
-
Cep: string;
|
|
32
|
-
DataConsulta: string;
|
|
33
|
-
}
|
|
34
|
-
export interface Spc {
|
|
35
|
-
NomeAssociado: string;
|
|
36
|
-
Valor: string;
|
|
37
|
-
DataDeInclusao: string;
|
|
38
|
-
DataDoVencimento: string;
|
|
39
|
-
Entidade: string;
|
|
40
|
-
NumeroContrato: string;
|
|
41
|
-
CompradorFiadorAvalista: CompradorFiadorAvalista;
|
|
42
|
-
TelefoneAssociado: string;
|
|
43
|
-
CidadeAssociado: string;
|
|
44
|
-
UfAssociado: string;
|
|
45
|
-
}
|
|
46
|
-
export declare enum CompradorFiadorAvalista {
|
|
47
|
-
Comprador = "Comprador"
|
|
48
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CompradorFiadorAvalista = void 0;
|
|
4
|
-
var CompradorFiadorAvalista;
|
|
5
|
-
(function (CompradorFiadorAvalista) {
|
|
6
|
-
CompradorFiadorAvalista["Comprador"] = "Comprador";
|
|
7
|
-
})(CompradorFiadorAvalista || (exports.CompradorFiadorAvalista = CompradorFiadorAvalista = {}));
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const RefinSerasa: React.FC<{
|
|
3
|
-
documento: string;
|
|
4
|
-
}>;
|
|
5
|
-
export type PendenciaSerasa = {
|
|
6
|
-
ocorrencia: string;
|
|
7
|
-
credor: string;
|
|
8
|
-
entrada: string;
|
|
9
|
-
vencimento: string;
|
|
10
|
-
valor: string;
|
|
11
|
-
informante: string;
|
|
12
|
-
contrato: string;
|
|
13
|
-
avalista: string;
|
|
14
|
-
cidade: string;
|
|
15
|
-
uf: string;
|
|
16
|
-
situacao: string;
|
|
17
|
-
orgaoemissor: string;
|
|
18
|
-
totalpendencias: string;
|
|
19
|
-
totalvalor: string;
|
|
20
|
-
categoria: string;
|
|
21
|
-
};
|
|
22
|
-
export default RefinSerasa;
|