@credithub/harlan-components 1.76.0 → 1.76.1

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.
@@ -4,7 +4,7 @@ interface LiminarProps {
4
4
  * Se verdadeiro, exibe ações exclusivas para instituições financeiras,
5
5
  * como o download de protestos ocultos.
6
6
  */
7
- isFinanceira?: boolean;
7
+ isFinancial?: boolean;
8
8
  }
9
9
  declare const Liminar: React.FC<LiminarProps>;
10
10
  export default Liminar;
@@ -81,7 +81,7 @@ var businessTypes = [
81
81
  ];
82
82
  var Liminar = function (_a) {
83
83
  var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
84
- var _o = _a.isFinanceira, isFinanceira = _o === void 0 ? false : _o;
84
+ var _o = _a.isFinancial, isFinancial = _o === void 0 ? false : _o;
85
85
  var ctx = useContext(Queries.LiminarCenprot);
86
86
  var _p = useGlobalData(), globalData = _p.data, setData = _p.setData;
87
87
  var fetchLiminarProtestosDoPassado = useLiminarProtestosDoPassado({
@@ -329,7 +329,7 @@ var Liminar = function (_a) {
329
329
  description: (React.createElement(React.Fragment, null,
330
330
  React.createElement(StatusMessage, { type: variant }, msg),
331
331
  origensDetectadas.map(function (o) { return (React.createElement(StatusMessage, { key: o, type: variant }, o)); }))),
332
- actions: (React.createElement("div", { style: { textAlign: 'center' }, onClick: function (e) { return e.stopPropagation(); } }, isFinanceira &&
332
+ actions: (React.createElement("div", { style: { textAlign: 'center' }, onClick: function (e) { return e.stopPropagation(); } }, isFinancial &&
333
333
  ((_c = globalData === null || globalData === void 0 ? void 0 : globalData.liminar) === null || _c === void 0 ? void 0 : _c.indiciosDeLiminarProtestosDoPassado) &&
334
334
  ((_d = globalData === null || globalData === void 0 ? void 0 : globalData.liminar) === null || _d === void 0 ? void 0 : _d.protestosDoPassadoIds) && (React.createElement(Button, { onClick: handleSendEmailIndicios, disabled: isEmailSending }, "Baixar Protestos Ocultos"))))
335
335
  };
@@ -16,7 +16,7 @@ type ConsultaSimplesProps = {
16
16
  initRefinSerasa?: boolean;
17
17
  initVeiculos?: boolean;
18
18
  printMode?: boolean;
19
- isFinanceira?: boolean;
19
+ isFinancial?: boolean;
20
20
  };
21
21
  declare const ConsultaSimples: React.FC<ConsultaSimplesProps>;
22
22
  export default ConsultaSimples;
@@ -13,11 +13,11 @@ import Dominios from './components/dominios/dominios';
13
13
  import ConsultaImoveis from './components/imoveis/imoveisService';
14
14
  import Liminar from './components/liminar/liminar';
15
15
  import ConsultaScore from './components/score/scoreService';
16
+ import ConsultaScoreSerasa from './components/scoreSerasa/scoreSerasa';
16
17
  import ConsultaSCR from './components/scr/scr';
17
18
  import { GlobalDataProvider } from './contexts/globalDataContext';
18
19
  import GlobalStyle from './styles/globalStyle';
19
20
  import theme from './styles/theme';
20
- import ConsultaScoreSerasa from './components/scoreSerasa/scoreSerasa';
21
21
  Chart.register.apply(Chart, registerables);
22
22
  var Wrapper = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: 'Open Sans Condensed';\n display: flex;\n flex-direction: column;\n gap: 20px;\n margin-bottom: 20px;\n\n * {\n -webkit-print-color-adjust: exact !important;\n print-color-adjust: exact !important;\n }\n\n @media print {\n @page {\n size: auto;\n margin: 5mm;\n }\n }\n"], ["\n font-family: 'Open Sans Condensed';\n display: flex;\n flex-direction: column;\n gap: 20px;\n margin-bottom: 20px;\n\n * {\n -webkit-print-color-adjust: exact !important;\n print-color-adjust: exact !important;\n }\n\n @media print {\n @page {\n size: auto;\n margin: 5mm;\n }\n }\n"])));
23
23
  var FinderDependency = function (_a) {
@@ -27,7 +27,7 @@ var FinderDependency = function (_a) {
27
27
  React.createElement(Queries.Protestos.Request, { data: { documento: documento }, depends: [ctxFinder] }, children)));
28
28
  };
29
29
  var ConsultaSimples = function (_a) {
30
- 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, _f = _a.isFinanceira, isFinanceira = _f === void 0 ? false : _f;
30
+ 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, _f = _a.isFinancial, isFinancial = _f === void 0 ? false : _f;
31
31
  var documento = _documento.replace(/\D+/g, '');
32
32
  return (React.createElement(ThemeProvider, { theme: theme },
33
33
  React.createElement(ConsultasComplementaresProvider, { hasCredits: hasCredits, initRefinBoaVista: initRefinBoaVista, initRefinSerasa: initRefinSerasa, initVeiculos: initVeiculos },
@@ -43,7 +43,7 @@ var ConsultaSimples = function (_a) {
43
43
  React.createElement(ConsultaSimplesSection, { documento: documento, onClose: onClose, onClickPrint: onClickPrint },
44
44
  React.createElement(ConsultaRfbProvider, { documento: documento },
45
45
  React.createElement(Dossie, { documento: documento, printMode: printMode }),
46
- React.createElement(Liminar, { isFinanceira: isFinanceira }),
46
+ React.createElement(Liminar, { isFinancial: isFinancial }),
47
47
  React.createElement(Addresses, { apiKey: apiKey }),
48
48
  React.createElement(Contacts, null),
49
49
  React.createElement(Partners, { onClickQSA: onClickQSA })),