@credithub/harlan-components 1.49.0 → 1.49.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/dossie/generativeAi/dataUtils.js +1 -1
- package/dist/components/liminar/liminar.js +2 -2
- package/dist/components/pep/pep.js +1 -1
- package/dist/components/processos-juridicos/processosJuridicos.js +2 -1
- package/lib/cjs/index.js +7 -6
- package/lib/esm/index.js +7 -6
- package/package.json +1 -1
|
@@ -68,7 +68,7 @@ function deepCleanData(data) {
|
|
|
68
68
|
export var selectRelevantData = function (data) {
|
|
69
69
|
var _a, _b, _c, _d, _e, _f;
|
|
70
70
|
var _g = data || {}, protestosDeCredito = _g.protestos, chequesSemFundo = _g.ccf, dividasPublicas = _g.dividasPublicas, contasBancarias = _g.bankAccounts, dadosDeChequesSemFundo = _g.ccfData, dividas = _g.divida, _h = _g.dossie, dossie = _h === void 0 ? {} : _h, liminar = _g.liminar, socios = _g.partners, dadosPessoasExpostasPoliticamente = _g.pepData, detalhesProcessosJuridicos = _g.processosJuridicosData, dadosReclameAqui = _g.reclameAqui, relatoriosRefinBoaVista = _g.refinBoaVista, relatoriosRefinSerasa = _g.refinSerasa, dadosScore = _g.scoreData, relatoriosSCR = _g.scr, registrosDeVeiculos = _g.veiculos, ResumoDosDados = _g.documentHistory;
|
|
71
|
-
var tipoPessoa = ((_b = (_a = dossie === null || dossie === void 0 ? void 0 : dossie.carousel) === null || _a === void 0 ? void 0 : _a.document) === null || _b === void 0 ? void 0 : _b.length) === 11
|
|
71
|
+
var tipoPessoa = ((_b = (_a = dossie === null || dossie === void 0 ? void 0 : dossie.carousel) === null || _a === void 0 ? void 0 : _a.document) === null || _b === void 0 ? void 0 : _b.replace(/\D/g, '').length) === 11
|
|
72
72
|
? 'Pessoa Física'
|
|
73
73
|
: 'Pessoa Jurídica';
|
|
74
74
|
var sociosAnonimizados = (_c = socios === null || socios === void 0 ? void 0 : socios.partners) === null || _c === void 0 ? void 0 : _c.map(function (socio, index) { return ({
|
|
@@ -25,7 +25,7 @@ var Liminar = function () {
|
|
|
25
25
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
26
26
|
if (!dataUpdated &&
|
|
27
27
|
((_a = globalData === null || globalData === void 0 ? void 0 : globalData.dossie) === null || _a === void 0 ? void 0 : _a.carousel) &&
|
|
28
|
-
((_b = globalData === null || globalData === void 0 ? void 0 : globalData.processosJuridicosData) === null || _b === void 0 ? void 0 : _b.
|
|
28
|
+
((_b = globalData === null || globalData === void 0 ? void 0 : globalData.processosJuridicosData) === null || _b === void 0 ? void 0 : _b.isLoaded)) {
|
|
29
29
|
var empresaNome = globalData.dossie.carousel.name || '';
|
|
30
30
|
var empresaNomeNormalizado_1 = normalizeName(empresaNome);
|
|
31
31
|
var processosAtivo = (_e = (_d = (_c = globalData === null || globalData === void 0 ? void 0 : globalData.processosJuridicosData) === null || _c === void 0 ? void 0 : _c.empresa) === null || _d === void 0 ? void 0 : _d.filter(function (processo) {
|
|
@@ -86,7 +86,7 @@ var Liminar = function () {
|
|
|
86
86
|
var _a;
|
|
87
87
|
var globalMessage = ((_a = globalData === null || globalData === void 0 ? void 0 : globalData.liminar) === null || _a === void 0 ? void 0 : _a.message) || 'Não encontrado';
|
|
88
88
|
return {
|
|
89
|
-
children: null,
|
|
89
|
+
children: React.createElement(React.Fragment, null),
|
|
90
90
|
variant: globalMessage === 'Encontrado' ? 'error' : 'default',
|
|
91
91
|
description: (React.createElement(StatusMessage, { type: globalMessage === 'Encontrado' ? 'error' : 'default' }, globalMessage))
|
|
92
92
|
};
|
|
@@ -25,7 +25,7 @@ var PessoaPoliticamenteExposta = function () {
|
|
|
25
25
|
if (!(document instanceof Node)) {
|
|
26
26
|
console.error('O documento não é do tipo Node esperado.');
|
|
27
27
|
return {
|
|
28
|
-
children: null,
|
|
28
|
+
children: React.createElement(React.Fragment, null),
|
|
29
29
|
description: 'Erro ao processar o documento.'
|
|
30
30
|
};
|
|
31
31
|
}
|
|
@@ -27,7 +27,8 @@ var ProcessosJuridicos = function (_a) {
|
|
|
27
27
|
var qtyProcessos_1 = (_a = ctx.document.empresa) === null || _a === void 0 ? void 0 : _a.length;
|
|
28
28
|
if (qtyProcessos_1) {
|
|
29
29
|
var processosJuridicosData_1 = {
|
|
30
|
-
empresa: ctx.document.empresa
|
|
30
|
+
empresa: ctx.document.empresa,
|
|
31
|
+
isLoaded: true
|
|
31
32
|
};
|
|
32
33
|
setData(function (prevState) { return (__assign(__assign({}, prevState), { processosJuridicos: qtyProcessos_1 || 0, processosJuridicosData: processosJuridicosData_1 })); });
|
|
33
34
|
setDataUpdated(true);
|