@credithub/harlan-components 1.52.1 → 1.52.3

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.
@@ -24,7 +24,6 @@ import Section from '../section';
24
24
  import { Queries, RequestStatus } from '../webservice';
25
25
  import { Carrousel } from './carrousel/carrousel';
26
26
  import { createDossieData } from './dossieData';
27
- import GenerativeAI from './generativeAi/generativeAi';
28
27
  import { Summary } from './summary/summary';
29
28
  import { TransactionsTable } from './transactionTable/transactionTable';
30
29
  var DossieContent = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: grid;\n grid-template-columns: 1fr 2fr;\n justify-items: center;\n align-items: flex-start;\n margin-bottom: 20px;\n gap: 20px;\n\n @media screen and (max-width: 992px) {\n grid-template-columns: 1fr;\n }\n"], ["\n display: grid;\n grid-template-columns: 1fr 2fr;\n justify-items: center;\n align-items: flex-start;\n margin-bottom: 20px;\n gap: 20px;\n\n @media screen and (max-width: 992px) {\n grid-template-columns: 1fr;\n }\n"])));
@@ -70,9 +69,7 @@ var Dossie = function (_a) {
70
69
  React.createElement(DossieContent, null,
71
70
  React.createElement(DossieCarrousel, null),
72
71
  React.createElement(Summary, { finderResponse: data, rfbResponse: rfbResponse, document: document })),
73
- React.createElement(TransactionsTable, { events: XPathUtils.select('//historico/consulta', data) || [] })),
74
- !printMode && React.createElement(GenerativeAIContainer, null,
75
- React.createElement(GenerativeAI, { documento: document }))));
72
+ React.createElement(TransactionsTable, { events: XPathUtils.select('//historico/consulta', data) || [] }))));
76
73
  };
77
74
  return (React.createElement(Section, { ctx: ctx, hideHeader: true, minimized: false, isError: function (e) { return response(e); }, onSuccess: response }));
78
75
  };
@@ -51,11 +51,11 @@ import XPathUtils from '../../../utils/xpath';
51
51
  import { useState } from 'react';
52
52
  import { getAtividadesEconomicasSecundarias, getField, getFieldRfb, getProductsPrices } from './utils';
53
53
  var useCardsAndProducts = function (_a) {
54
- var _b, _c, _d, _e, _f, _g;
54
+ var _b, _c, _d, _e, _f;
55
55
  var finderResponse = _a.finderResponse, rfbResponse = _a.rfbResponse;
56
- var _h = useState(false), isModalOpen = _h[0], setModalOpen = _h[1];
57
- var _j = useConsultasComplementares(), consultasComplementares = _j.consultasComplementares, setConsultasComplementares = _j.setConsultasComplementares, hasCredits = _j.hasCredits;
58
- var _k = useState({}), loadingButtons = _k[0], setLoadingButtons = _k[1];
56
+ var _g = useState(false), isModalOpen = _g[0], setModalOpen = _g[1];
57
+ var _h = useConsultasComplementares(), consultasComplementares = _h.consultasComplementares, setConsultasComplementares = _h.setConsultasComplementares, hasCredits = _h.hasCredits;
58
+ var _j = useState({}), loadingButtons = _j[0], setLoadingButtons = _j[1];
59
59
  var handleModalClick = function () { return setModalOpen(true); };
60
60
  var closeModal = function () { return setModalOpen(false); };
61
61
  var isPF = !!getField('cpf', finderResponse);
@@ -102,7 +102,7 @@ var useCardsAndProducts = function (_a) {
102
102
  });
103
103
  }); };
104
104
  };
105
- var _l = {
105
+ var _k = {
106
106
  cards: [
107
107
  {
108
108
  title: getField('sexo', finderResponse, function (value) {
@@ -282,16 +282,16 @@ var useCardsAndProducts = function (_a) {
282
282
  onClick: handleOnClick('refinSerasa'),
283
283
  hide: (_f = consultasComplementares === null || consultasComplementares === void 0 ? void 0 : consultasComplementares.refinSerasa) === null || _f === void 0 ? void 0 : _f.consultaRealizada,
284
284
  isLoading: loadingButtons['refinSerasa']
285
- },
286
- {
287
- title: 'Consultar Imóveis SP Capital',
288
- price: productsPrices === null || productsPrices === void 0 ? void 0 : productsPrices.imoveis,
289
- onClick: handleOnClick('imoveis'),
290
- hide: !isPF || ((_g = consultasComplementares === null || consultasComplementares === void 0 ? void 0 : consultasComplementares.imoveis) === null || _g === void 0 ? void 0 : _g.consultaRealizada),
291
- isLoading: loadingButtons['imoveis']
292
- }
285
+ } /*,
286
+ {
287
+ title: 'Consultar Imóveis SP Capital',
288
+ price: productsPrices?.imoveis,
289
+ onClick: handleOnClick('imoveis'),
290
+ hide: !isPF || consultasComplementares?.imoveis?.consultaRealizada,
291
+ isLoading: loadingButtons['imoveis']
292
+ }*/
293
293
  ]
294
- }, cards = _l.cards, products = _l.products;
294
+ }, cards = _k.cards, products = _k.products;
295
295
  return { cards: cards, products: products, isModalOpen: isModalOpen, closeModal: closeModal };
296
296
  };
297
297
  export default useCardsAndProducts;