@credithub/harlan-components 1.59.5 → 1.59.6
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.
|
@@ -45,14 +45,13 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
45
45
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
import
|
|
48
|
+
import { useConsultaRfb } from '../../../hooks/useConsultaRfb';
|
|
49
49
|
import { useConsultasComplementares } from '../../../hooks/useConsultasComplementares';
|
|
50
50
|
import { formatMoney } from '../../../utils/number';
|
|
51
51
|
import XPathUtils from '../../../utils/xpath';
|
|
52
|
-
import { useState } from 'react';
|
|
53
|
-
import { getAtividadesEconomicasSecundarias, getField, getFieldRfb, getProductsPrices } from './utils';
|
|
54
|
-
import { useConsultaRfb } from '../../../hooks/useConsultaRfb';
|
|
52
|
+
import React, { useState } from 'react';
|
|
55
53
|
import { LoadingDots } from '../generativeAi/styles';
|
|
54
|
+
import { getAtividadesEconomicasSecundarias, getField, getFieldRfb, getProductsPrices } from './utils';
|
|
56
55
|
var useCardsAndProducts = function (_a) {
|
|
57
56
|
var _b, _c, _d, _e, _f;
|
|
58
57
|
var finderResponse = _a.finderResponse;
|
|
@@ -145,7 +144,8 @@ var useCardsAndProducts = function (_a) {
|
|
|
145
144
|
header: 'UF do RG'
|
|
146
145
|
},
|
|
147
146
|
{
|
|
148
|
-
title: rfbIsLoading ? React.createElement(LoadingDots, null) : getFieldRfb('situacao', rfbResponse) ||
|
|
147
|
+
title: rfbIsLoading ? (React.createElement(LoadingDots, null)) : (getFieldRfb('situacao', rfbResponse) ||
|
|
148
|
+
getField('status', finderResponse)),
|
|
149
149
|
header: 'Situação'
|
|
150
150
|
},
|
|
151
151
|
{
|
|
@@ -193,11 +193,6 @@ var useCardsAndProducts = function (_a) {
|
|
|
193
193
|
XPathUtils.select('string(//RFB/nome/@fantasia)', rfbResponse),
|
|
194
194
|
header: 'Nome Fantasia'
|
|
195
195
|
},
|
|
196
|
-
{
|
|
197
|
-
title: getField('receitaStatus', finderResponse) ||
|
|
198
|
-
getFieldRfb('situacao', rfbResponse),
|
|
199
|
-
header: 'Status da Receita'
|
|
200
|
-
},
|
|
201
196
|
{
|
|
202
197
|
title: getField('dataReceitaStatus', finderResponse) ||
|
|
203
198
|
getFieldRfb('dataSituacao', rfbResponse),
|