@credithub/harlan-components 1.42.0 → 1.43.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.
|
@@ -34,7 +34,7 @@ var GenerativeAIContainer = styled.div(templateObject_3 || (templateObject_3 = _
|
|
|
34
34
|
return theme.colors.white;
|
|
35
35
|
});
|
|
36
36
|
var Dossie = function (_a) {
|
|
37
|
-
var documento = _a.documento;
|
|
37
|
+
var documento = _a.documento, printMode = _a.printMode;
|
|
38
38
|
var ctx = useContext(Queries.Finder);
|
|
39
39
|
var rfbResponse = useConsultaRfb().rfbResponse;
|
|
40
40
|
var setData = useGlobalData().setData;
|
|
@@ -71,7 +71,7 @@ var Dossie = function (_a) {
|
|
|
71
71
|
React.createElement(DossieCarrousel, null),
|
|
72
72
|
React.createElement(Summary, { finderResponse: data, rfbResponse: rfbResponse, document: document })),
|
|
73
73
|
React.createElement(TransactionsTable, { events: XPathUtils.select('//historico/consulta', data) || [] })),
|
|
74
|
-
React.createElement(GenerativeAIContainer, null,
|
|
74
|
+
!printMode && React.createElement(GenerativeAIContainer, null,
|
|
75
75
|
React.createElement(GenerativeAI, { documento: document }))));
|
|
76
76
|
};
|
|
77
77
|
return (React.createElement(Section, { ctx: ctx, hideHeader: true, minimized: false, isError: function (e) { return response(e); }, onSuccess: response }));
|
package/dist/consultaSimples.js
CHANGED
|
@@ -26,7 +26,7 @@ var FinderDependency = function (_a) {
|
|
|
26
26
|
React.createElement(Queries.Protestos.Request, { data: { documento: documento }, depends: [ctxFinder] }, children)));
|
|
27
27
|
};
|
|
28
28
|
var ConsultaSimples = function (_a) {
|
|
29
|
-
var _documento = _a.documento, onClickConsultarProcessoJuridico = _a.onClickConsultarProcessoJuridico, onClickQSA = _a.onClickQSA, onClickPrint = _a.onClickPrint, apiKey = _a.apiKey, onClose = _a.onClose, hasCredits = _a.hasCredits, _b = _a.initRefinBoaVista, initRefinBoaVista = _b === void 0 ? false : _b, _c = _a.initRefinSerasa, initRefinSerasa = _c === void 0 ? false : _c, _d = _a.initVeiculos, initVeiculos = _d === void 0 ? false : _d;
|
|
29
|
+
var _documento = _a.documento, onClickConsultarProcessoJuridico = _a.onClickConsultarProcessoJuridico, onClickQSA = _a.onClickQSA, onClickPrint = _a.onClickPrint, apiKey = _a.apiKey, onClose = _a.onClose, hasCredits = _a.hasCredits, _b = _a.initRefinBoaVista, initRefinBoaVista = _b === void 0 ? false : _b, _c = _a.initRefinSerasa, initRefinSerasa = _c === void 0 ? false : _c, _d = _a.initVeiculos, initVeiculos = _d === void 0 ? false : _d, _e = _a.printMode, printMode = _e === void 0 ? false : _e;
|
|
30
30
|
var documento = _documento.replace(/\D+/g, '');
|
|
31
31
|
return (React.createElement(ThemeProvider, { theme: theme },
|
|
32
32
|
React.createElement(ConsultasComplementaresProvider, { hasCredits: hasCredits, initRefinBoaVista: initRefinBoaVista, initRefinSerasa: initRefinSerasa, initVeiculos: initVeiculos },
|
|
@@ -40,7 +40,7 @@ var ConsultaSimples = function (_a) {
|
|
|
40
40
|
React.createElement(GlobalDataProvider, null,
|
|
41
41
|
React.createElement(ConsultaSimplesSection, { documento: documento, onClose: onClose, onClickPrint: onClickPrint },
|
|
42
42
|
React.createElement(ConsultaRfbProvider, { documento: documento },
|
|
43
|
-
React.createElement(Dossie, { documento: documento }),
|
|
43
|
+
React.createElement(Dossie, { documento: documento, printMode: printMode }),
|
|
44
44
|
React.createElement(Liminar, null),
|
|
45
45
|
React.createElement(Addresses, { apiKey: apiKey }),
|
|
46
46
|
React.createElement(Contacts, null),
|