@credithub/harlan-components 1.122.2 → 1.123.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.
- package/dist/assets/btn/btnSend.js +1 -22
- package/dist/assets/btn/btnWrapper.js +1 -4
- package/dist/assets/btn/chevronDown.js +1 -22
- package/dist/assets/btn/chevronLeft.js +1 -22
- package/dist/assets/btn/chevronRight.js +1 -22
- package/dist/assets/btn/chevronUp.js +1 -22
- package/dist/assets/btn/closeIcon.js +1 -22
- package/dist/assets/btn/printIcon.js +1 -22
- package/dist/assets/btn/stopBtn.js +1 -22
- package/dist/components/adresses/addresses.js +1 -11
- package/dist/components/bank-accounts/bank-accounts.js +1 -11
- package/dist/components/ccf/ccf.js +1 -11
- package/dist/components/chart/chartContent.js +1 -13
- package/dist/components/chart/chartSystem.js +1 -51
- package/dist/components/chart/components/MixedChart.js +1 -4
- package/dist/components/chart/components/categoryProtestos.js +1 -4
- package/dist/components/chart/hooks/useDividasPublicas.js +1 -11
- package/dist/components/chart/quantityResult.js +1 -4
- package/dist/components/chart/utils/chartCustomization.js +1 -11
- package/dist/components/chart/utils/dataManipulation.js +1 -20
- package/dist/components/chart/utils/dataProcessing.js +1 -11
- package/dist/components/common/ModalDadosCartorio.js +1 -4
- package/dist/components/common/ModalInstallExtension.js +1 -4
- package/dist/components/common/addItem.js +1 -26
- package/dist/components/common/button.js +1 -26
- package/dist/components/common/content.js +1 -4
- package/dist/components/common/gauge.js +1 -4
- package/dist/components/common/modal.js +1 -4
- package/dist/components/common/modalInstrumentoProtestoSP.js +1 -4
- package/dist/components/common/modalMaintenance.js +1 -4
- package/dist/components/common/printButton.js +1 -4
- package/dist/components/common/printSectionWrapper.js +1 -26
- package/dist/components/common/tooltip.js +1 -4
- package/dist/components/consultaSimplesSection/consultaSimplesSection.js +1 -26
- package/dist/components/consultasComplementares.d.ts +1 -1
- package/dist/components/contacts/contactLikeDislikeSection.js +1 -15
- package/dist/components/contacts/contacts.js +1 -24
- package/dist/components/contacts/thumbsButton.js +1 -4
- package/dist/components/dividasPublicas/dividasPublicas.js +1 -11
- package/dist/components/dominios/dominios.js +1 -4
- package/dist/components/dossie/dossie.js +1 -15
- package/dist/components/dossie/generativeAi/dataUtils.js +1 -31
- package/dist/components/dossie/generativeAi/generativeAi.js +1 -56
- package/dist/components/dossie/generativeAi/processStream.js +1 -52
- package/dist/components/dossie/generativeAi/queryUtils.js +1 -9
- package/dist/components/dossie/generativeAi/styles.js +1 -4
- package/dist/components/dossie/sliderCompanyName/companyLogo/companyLogo.js +1 -4
- package/dist/components/dossie/sliderCompanyName/reclameAqui/carousel.js +1 -4
- package/dist/components/dossie/sliderCompanyName/reclameAqui/reclameAquiCarousel.js +1 -11
- package/dist/components/dossie/sliderCompanyName/reclameAqui/styles.js +1 -4
- package/dist/components/dossie/sliderCompanyName/sliderCompanyName.js +1 -4
- package/dist/components/dossie/summary/cardsAndProducts.d.ts +7 -7
- package/dist/components/dossie/summary/cardsAndProducts.js +1 -47
- package/dist/components/dossie/summary/styles.js +1 -4
- package/dist/components/dossie/summary/summary.js +1 -11
- package/dist/components/dossie/transactionTable/transactionTable.js +1 -4
- package/dist/components/edital/edital.js +1 -24
- package/dist/components/edital/editalList.js +1 -4
- package/dist/components/falencia/falencia.js +1 -11
- package/dist/components/imoveis/imoveisService.js +1 -11
- package/dist/components/interface/header.js +1 -26
- package/dist/components/interface/loadingBar.js +1 -26
- package/dist/components/interface/responsiveGrid.js +1 -4
- package/dist/components/interface/result.js +1 -4
- package/dist/components/interface/resultWithoutInformation.js +1 -22
- package/dist/components/interface/section.d.ts +1 -1
- package/dist/components/interface/section.js +1 -4
- package/dist/components/interface/statusMessage.js +1 -4
- package/dist/components/liminar/liminar.js +1 -47
- package/dist/components/liminar/liminarStyles.js +1 -4
- package/dist/components/liminar/useLiminarHistory.js +1 -9
- package/dist/components/liminar/useLiminarProtestosDoPassado.js +1 -47
- package/dist/components/partners/partnerList.js +1 -4
- package/dist/components/partners/partners.js +1 -31
- package/dist/components/pep/pep.js +1 -11
- package/dist/components/processos-juridicos/envolvidosList.js +1 -4
- package/dist/components/processos-juridicos/processosJuridicos.js +1 -11
- package/dist/components/processos-juridicos/processosJuridicosList.js +1 -26
- package/dist/components/protestos/instrumento/InstrumentoDiscoveryConfirmModal.js +1 -4
- package/dist/components/protestos/instrumento/InstrumentoEmailStatusModal.js +1 -4
- package/dist/components/protestos/instrumento/ieptbInstrumento.js +1 -36
- package/dist/components/protestos/instrumento/useInstrumento.js +1 -36
- package/dist/components/protestos/protestos.js +1 -24
- package/dist/components/protestos/protestosCategory.js +1 -22
- package/dist/components/protestos/protestosList.js +1 -40
- package/dist/components/protestosPagosBaixados/adaptToChart.js +1 -11
- package/dist/components/protestosPagosBaixados/index.js +1 -11
- package/dist/components/refinBoaVista/refinBoaVista.js +1 -11
- package/dist/components/refinSerasa/refinSerasa.d.ts +1 -1
- package/dist/components/refinSerasa/refinSerasa.js +1 -11
- package/dist/components/requestContextTypes.d.ts +40 -0
- package/dist/components/requestContextTypes.js +7 -0
- package/dist/components/resultadoDaPesquisa/resultado-da-pesquisa.js +1 -4
- package/dist/components/score/scoreService.js +1 -11
- package/dist/components/scoreSerasa/scoreSerasa.js +1 -11
- package/dist/components/scr/scr.js +24 -63
- package/dist/components/scr/scrDataBaseModal.js +1 -4
- package/dist/components/section.d.ts +1 -1
- package/dist/components/section.js +2 -27
- package/dist/components/streamQuery.js +1 -49
- package/dist/components/veiculos/veiculos.js +1 -11
- package/dist/components/webservice.d.ts +3 -40
- package/dist/components/webservice.js +3 -54
- package/dist/consultaSimples.js +16 -5
- package/dist/contexts/createDataContext.js +1 -11
- package/dist/contexts/errorModalContext.js +1 -11
- package/dist/hooks/useConsultaRfb.js +1 -11
- package/dist/server.js +1 -36
- package/dist/styles/globalStyle.js +1 -4
- package/dist/utils/bpqlResponse.js +1 -36
- package/dist/utils/businessDays.js +1 -36
- package/dist/utils/parseCartorio.js +1 -11
- package/dist/utils/similarNames.js +1 -9
- package/dist/utils/sortProcessosByDate.js +1 -9
- package/lib/cjs/index.js +622 -2023
- package/lib/esm/index.js +849 -2250
- package/package.json +2 -1
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
1
|
+
import { __assign } from "tslib";
|
|
12
2
|
// Pré-compila regexes fora do hot path
|
|
13
3
|
var ISO_RE = /^\d{4}-\d{2}-\d{2}/;
|
|
14
4
|
var BR_RE = /^(\d{2})\/(\d{2})\/(\d{4})/;
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
1
|
+
import { __assign } from "tslib";
|
|
12
2
|
import ProtestosIcon from '../../assets/icones/protestos';
|
|
13
3
|
import { useGlobalData } from '../../contexts/globalDataContext';
|
|
14
4
|
import { formatMoney } from '../../utils/number';
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
1
|
+
import { __assign } from "tslib";
|
|
12
2
|
import PefinRefinBoaVistaIcon from '../../assets/icones/pefinRefinBoaVista';
|
|
13
3
|
import { useGlobalData } from '../../contexts/globalDataContext';
|
|
14
4
|
import { clearMoneyString, formatMoney } from '../../utils/number';
|
|
@@ -24,7 +24,7 @@ export declare function useRefinSerasa(documento: string): {
|
|
|
24
24
|
}[];
|
|
25
25
|
consultaRealizada: boolean;
|
|
26
26
|
loadingProgress: number;
|
|
27
|
-
response: import("../
|
|
27
|
+
response: import("../requestContextTypes").ParsedResponse<PefinRefinSerasaResponse> | null;
|
|
28
28
|
};
|
|
29
29
|
declare const RefinSerasa: React.FC<{
|
|
30
30
|
documento: string;
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
1
|
+
import { __assign } from "tslib";
|
|
12
2
|
import PefinRefinSerasaIcon from '../../assets/icones/pefinRefinSerasa';
|
|
13
3
|
import { useGlobalData } from '../../contexts/globalDataContext';
|
|
14
4
|
import { formatMoney } from '../../utils/number';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Client } from '@credithub/webservice';
|
|
2
|
+
import type { ComponentProps, ComponentType, ReactNode } from 'react';
|
|
3
|
+
import Header from './interface/header';
|
|
4
|
+
export declare enum RequestStatus {
|
|
5
|
+
Empty = 0,
|
|
6
|
+
Loading = 1,
|
|
7
|
+
Success = 2,
|
|
8
|
+
Error = 3
|
|
9
|
+
}
|
|
10
|
+
export type ParsedResponse<T> = {
|
|
11
|
+
response: Response;
|
|
12
|
+
document: T;
|
|
13
|
+
};
|
|
14
|
+
export type RequestContext<R> = {
|
|
15
|
+
data?: Client.Form;
|
|
16
|
+
urlData?: Client.Form;
|
|
17
|
+
Section: ComponentType<ISectionProps<R>>;
|
|
18
|
+
refetch: () => void;
|
|
19
|
+
type: RequestStatus;
|
|
20
|
+
error: Error | null;
|
|
21
|
+
response: Response | undefined;
|
|
22
|
+
document: R | undefined;
|
|
23
|
+
progress?: number;
|
|
24
|
+
activeRequests?: number;
|
|
25
|
+
showLoadingBar?: boolean;
|
|
26
|
+
warningMessage?: string | null;
|
|
27
|
+
};
|
|
28
|
+
export type HeaderReplaceResponse = {
|
|
29
|
+
children: ReactNode;
|
|
30
|
+
} & ComponentProps<typeof Header>;
|
|
31
|
+
export type RenderedResponse = HeaderReplaceResponse | ReactNode;
|
|
32
|
+
export type ISectionProps<R> = {
|
|
33
|
+
ctx?: RequestContext<R>;
|
|
34
|
+
onSuccess?: (data: R, ctx: RequestContext<R>) => RenderedResponse;
|
|
35
|
+
isError?: (error: Error, ctx: RequestContext<R>) => RenderedResponse;
|
|
36
|
+
onLoading?: (ctx: RequestContext<R>) => RenderedResponse;
|
|
37
|
+
hideHeader?: boolean;
|
|
38
|
+
minimized?: boolean;
|
|
39
|
+
} & ComponentProps<typeof Header>;
|
|
40
|
+
export type ISection<R> = ComponentType<ISectionProps<R>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export var RequestStatus;
|
|
2
|
+
(function (RequestStatus) {
|
|
3
|
+
RequestStatus[RequestStatus["Empty"] = 0] = "Empty";
|
|
4
|
+
RequestStatus[RequestStatus["Loading"] = 1] = "Loading";
|
|
5
|
+
RequestStatus[RequestStatus["Success"] = 2] = "Success";
|
|
6
|
+
RequestStatus[RequestStatus["Error"] = 3] = "Error";
|
|
7
|
+
})(RequestStatus || (RequestStatus = {}));
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
1
|
+
import { __makeTemplateObject } from "tslib";
|
|
5
2
|
import { formatCnpj, formatCpf } from '../../utils/string';
|
|
6
3
|
import React from 'react';
|
|
7
4
|
import styled from 'styled-components';
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
1
|
+
import { __assign } from "tslib";
|
|
12
2
|
import ScoreBoaVistaIcon from '../../assets/icones/scoreBoaVista';
|
|
13
3
|
import { useGlobalData } from '../../contexts/globalDataContext';
|
|
14
4
|
import { useSafeQuery } from '../../hooks/useSafeQuery';
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
1
|
+
import { __assign } from "tslib";
|
|
12
2
|
import ScoreBoaVistaIcon from '../../assets/icones/scoreBoaVista';
|
|
13
3
|
import { useGlobalData } from '../../contexts/globalDataContext';
|
|
14
4
|
import { useSafeQuery } from '../../hooks/useSafeQuery';
|
|
@@ -1,54 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
5
|
-
var __assign = (this && this.__assign) || function () {
|
|
6
|
-
__assign = Object.assign || function(t) {
|
|
7
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
-
s = arguments[i];
|
|
9
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
-
t[p] = s[p];
|
|
11
|
-
}
|
|
12
|
-
return t;
|
|
13
|
-
};
|
|
14
|
-
return __assign.apply(this, arguments);
|
|
15
|
-
};
|
|
16
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
17
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
18
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
19
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
20
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
21
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
22
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
26
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
27
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
28
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
29
|
-
function step(op) {
|
|
30
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
31
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
32
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
33
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
34
|
-
switch (op[0]) {
|
|
35
|
-
case 0: case 1: t = op; break;
|
|
36
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
37
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
38
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
39
|
-
default:
|
|
40
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
41
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
42
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
43
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
44
|
-
if (t[2]) _.ops.pop();
|
|
45
|
-
_.trys.pop(); continue;
|
|
46
|
-
}
|
|
47
|
-
op = body.call(thisArg, _);
|
|
48
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
49
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
50
|
-
}
|
|
51
|
-
};
|
|
1
|
+
import { __assign, __awaiter, __generator, __makeTemplateObject } from "tslib";
|
|
52
2
|
import ScrIcon from '../../assets/icones/scr';
|
|
53
3
|
import { useGlobalData } from '../../contexts/globalDataContext';
|
|
54
4
|
import { useSafeQuery } from '../../hooks/useSafeQuery';
|
|
@@ -74,13 +24,15 @@ function ConsultaSCR(_a) {
|
|
|
74
24
|
var setData = useGlobalData().setData;
|
|
75
25
|
var _g = useState(false), dataUpdated = _g[0], setDataUpdated = _g[1];
|
|
76
26
|
var _h = useState(false), alertShown = _h[0], setAlertShown = _h[1];
|
|
77
|
-
var _j =
|
|
27
|
+
var _j = useState(false), isPdfLoading = _j[0], setIsPdfLoading = _j[1];
|
|
28
|
+
var _k = useState(null), pdfError = _k[0], setPdfError = _k[1];
|
|
29
|
+
var _l = consultasComplementaresContext !== null && consultasComplementaresContext !== void 0 ? consultasComplementaresContext : {}, consultasComplementares = _l.consultasComplementares, setConsultasComplementares = _l.setConsultasComplementares;
|
|
78
30
|
// O valor de dataBase já vem no formato "YYYY-MM" (ou o padrão "2025-01")
|
|
79
31
|
var period = ((_b = consultasComplementares === null || consultasComplementares === void 0 ? void 0 : consultasComplementares.scr) === null || _b === void 0 ? void 0 : _b.dataBase) || '2025-01';
|
|
80
|
-
var
|
|
32
|
+
var _m = useSafeQuery("SELECT FROM 'SCR'.'CONSULTA'", {
|
|
81
33
|
documento: documento,
|
|
82
34
|
period: period
|
|
83
|
-
}, !!((_c = consultasComplementares === null || consultasComplementares === void 0 ? void 0 : consultasComplementares.scr) === null || _c === void 0 ? void 0 : _c.consultaRealizada)), response =
|
|
35
|
+
}, !!((_c = consultasComplementares === null || consultasComplementares === void 0 ? void 0 : consultasComplementares.scr) === null || _c === void 0 ? void 0 : _c.consultaRealizada)), response = _m.response, isLoading = _m.isLoading, error = _m.error, loadingProgress = _m.loadingProgress;
|
|
84
36
|
var fetch = useFetch("SELECT FROM 'SCR'.'PDF'").fetch;
|
|
85
37
|
var isOpen = useToggle()[0];
|
|
86
38
|
var scrRef = useRef(null);
|
|
@@ -133,7 +85,9 @@ function ConsultaSCR(_a) {
|
|
|
133
85
|
refetch: function () { },
|
|
134
86
|
Section: Section,
|
|
135
87
|
progress: loadingProgress
|
|
136
|
-
}, title: "SCR", subtitle: "Resumo do Cliente", icon: ScrIcon, description:
|
|
88
|
+
}, title: "SCR", subtitle: "Resumo do Cliente", icon: ScrIcon, description: React.createElement(React.Fragment, null,
|
|
89
|
+
!error && (React.createElement(StatusMessage, { type: scr ? 'success' : 'default' }, description)),
|
|
90
|
+
pdfError && (React.createElement(StatusMessage, { type: "warning" }, pdfError))), onSuccess: function () { return (React.createElement(React.Fragment, null,
|
|
137
91
|
React.createElement(Result, null,
|
|
138
92
|
React.createElement(ResultContent, { desktop: "repeat(4, 1fr)", tablet: "repeat(3, 1fr)", mobile: "1fr 1fr" }, Array.isArray(basicData)
|
|
139
93
|
? basicData.map(function (data) { return (React.createElement(AddItemField, { key: data.label, name: data.label, value: data.value })); })
|
|
@@ -141,15 +95,21 @@ function ConsultaSCR(_a) {
|
|
|
141
95
|
React.createElement(ResultContent, { desktop: "repeat(4, 1fr)", tablet: "repeat(3, 1fr)", mobile: "1fr 1fr" },
|
|
142
96
|
React.createElement(AddItemField, { name: "Total de cr\u00E9ditos a vencer", value: scr === null || scr === void 0 ? void 0 : scr.response.expiringTotal }),
|
|
143
97
|
React.createElement(AddItemField, { name: "Total de cr\u00E9ditos vencidos", value: scr === null || scr === void 0 ? void 0 : scr.response.expiredTotal }),
|
|
144
|
-
React.createElement(Button, { style: { maxWidth: 'fit-content', minHeight: '0' }, onClick: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
98
|
+
React.createElement(Button, { style: { maxWidth: 'fit-content', minHeight: '0' }, isLoading: isPdfLoading, disabled: isPdfLoading, onClick: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
145
99
|
var win, response_1, fileBlob, file, fileURL_1, a, err_1;
|
|
146
100
|
return __generator(this, function (_a) {
|
|
147
101
|
switch (_a.label) {
|
|
148
102
|
case 0:
|
|
103
|
+
setPdfError(null);
|
|
149
104
|
win = window.open('', '_blank');
|
|
105
|
+
setIsPdfLoading(true);
|
|
150
106
|
_a.label = 1;
|
|
151
107
|
case 1:
|
|
152
|
-
_a.trys.push([1, 4, ,
|
|
108
|
+
_a.trys.push([1, 4, 5, 6]);
|
|
109
|
+
if (win && !win.closed) {
|
|
110
|
+
win.document.write("\n <!DOCTYPE html>\n <html>\n <head>\n <meta charset=\"utf-8\">\n <title>Preparando relat\u00F3rio</title>\n <style>\n @keyframes spin { to { transform: rotate(360deg); } }\n @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }\n .spinner {\n width: 48px;\n height: 48px;\n border: 4px solid #e8e8e8;\n border-top-color: #0066cc;\n border-radius: 50%;\n animation: spin 0.9s linear infinite;\n }\n .card {\n background: #fff;\n border-radius: 12px;\n padding: 32px 40px;\n box-shadow: 0 4px 24px rgba(0,0,0,0.08);\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 20px;\n max-width: 320px;\n }\n .message { color: #333; font-size: 16px; animation: pulse 1.5s ease-in-out infinite; }\n .hint { color: #888; font-size: 13px; margin-top: 4px; }\n </style>\n </head>\n <body style=\"font-family: system-ui, -apple-system, sans-serif; display: flex; justify-content: center; align-items: center; min-height: 100vh; margin: 0; background: linear-gradient(180deg, #f0f4f8 0%, #e8ecf0 100%);\">\n <div class=\"card\">\n <div class=\"spinner\" aria-hidden=\"true\"></div>\n <div>\n <p class=\"message\">Preparando seu relat\u00F3rio detalhado</p>\n <p class=\"hint\">Aguarde, isso pode levar alguns segundos</p>\n </div>\n </div>\n </body>\n </html>\n ");
|
|
111
|
+
win.document.close();
|
|
112
|
+
}
|
|
153
113
|
return [4 /*yield*/, fetch({
|
|
154
114
|
uuid: scr === null || scr === void 0 ? void 0 : scr.uuidQuery
|
|
155
115
|
})];
|
|
@@ -167,9 +127,7 @@ function ConsultaSCR(_a) {
|
|
|
167
127
|
});
|
|
168
128
|
fileURL_1 = URL.createObjectURL(file);
|
|
169
129
|
if (win && !win.closed) {
|
|
170
|
-
// Janela aberta com sucesso: navega para o PDF
|
|
171
130
|
win.location.href = fileURL_1;
|
|
172
|
-
// Revoga o objectURL após um tempo para evitar leak
|
|
173
131
|
setTimeout(function () { return URL.revokeObjectURL(fileURL_1); }, 10000);
|
|
174
132
|
}
|
|
175
133
|
else {
|
|
@@ -181,10 +139,9 @@ function ConsultaSCR(_a) {
|
|
|
181
139
|
a.remove();
|
|
182
140
|
URL.revokeObjectURL(fileURL_1);
|
|
183
141
|
}
|
|
184
|
-
return [3 /*break*/,
|
|
142
|
+
return [3 /*break*/, 6];
|
|
185
143
|
case 4:
|
|
186
144
|
err_1 = _a.sent();
|
|
187
|
-
// Fecha a janela em branco se algo falhar após a abertura
|
|
188
145
|
if (win && !win.closed) {
|
|
189
146
|
try {
|
|
190
147
|
win.close();
|
|
@@ -192,8 +149,12 @@ function ConsultaSCR(_a) {
|
|
|
192
149
|
catch (_b) { }
|
|
193
150
|
}
|
|
194
151
|
console.error('Erro ao baixar PDF:', err_1);
|
|
195
|
-
|
|
196
|
-
|
|
152
|
+
setPdfError('Não foi possível gerar o relatório detalhado.');
|
|
153
|
+
return [3 /*break*/, 6];
|
|
154
|
+
case 5:
|
|
155
|
+
setIsPdfLoading(false);
|
|
156
|
+
return [7 /*endfinally*/];
|
|
157
|
+
case 6: return [2 /*return*/];
|
|
197
158
|
}
|
|
198
159
|
});
|
|
199
160
|
}); } }, "Baixar relat\u00F3rio detalhado"))),
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
1
|
+
import { __makeTemplateObject } from "tslib";
|
|
5
2
|
import Modal from '../../components/common/modal';
|
|
6
3
|
import React, { useEffect, useState } from 'react';
|
|
7
4
|
import styled from 'styled-components';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ISectionProps, RequestStatus } from './
|
|
2
|
+
import { ISectionProps, RequestStatus } from './requestContextTypes';
|
|
3
3
|
declare const Section: React.ForwardRefExoticComponent<Omit<ISectionProps<unknown>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
4
|
export declare const headerStatus: Record<RequestStatus, string>;
|
|
5
5
|
export default Section;
|
|
@@ -1,30 +1,5 @@
|
|
|
1
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
5
|
-
var __assign = (this && this.__assign) || function () {
|
|
6
|
-
__assign = Object.assign || function(t) {
|
|
7
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
-
s = arguments[i];
|
|
9
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
-
t[p] = s[p];
|
|
11
|
-
}
|
|
12
|
-
return t;
|
|
13
|
-
};
|
|
14
|
-
return __assign.apply(this, arguments);
|
|
15
|
-
};
|
|
16
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
17
|
-
var t = {};
|
|
18
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
19
|
-
t[p] = s[p];
|
|
20
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
21
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
22
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
23
|
-
t[p[i]] = s[p[i]];
|
|
24
|
-
}
|
|
25
|
-
return t;
|
|
26
|
-
};
|
|
27
1
|
var _a;
|
|
2
|
+
import { __assign, __makeTemplateObject, __rest } from "tslib";
|
|
28
3
|
import BtnWrapper from '../assets/btn/btnWrapper';
|
|
29
4
|
import ChevronDown from '../assets/btn/chevronDown';
|
|
30
5
|
import ChevronUp from '../assets/btn/chevronUp';
|
|
@@ -38,7 +13,7 @@ import Button from './common/button';
|
|
|
38
13
|
import { PrintSectionWrapper } from './common/printSectionWrapper';
|
|
39
14
|
import Header from './interface/header';
|
|
40
15
|
import StatusMessage from './interface/statusMessage';
|
|
41
|
-
import { RequestStatus } from './
|
|
16
|
+
import { RequestStatus } from './requestContextTypes';
|
|
42
17
|
var ButtonWrapper = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n justify-content: center;\n width: 100%;\n height: 40%;\n max-height: 52px;\n max-width: 300px;\n margin: 0 auto;\n"], ["\n justify-content: center;\n width: 100%;\n height: 40%;\n max-height: 52px;\n max-width: 300px;\n margin: 0 auto;\n"])));
|
|
43
18
|
var sectionIdCounter = 0;
|
|
44
19
|
var nextSectionId = function () {
|
|
@@ -1,52 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
12
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
|
-
function step(op) {
|
|
15
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
17
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
|
-
switch (op[0]) {
|
|
20
|
-
case 0: case 1: t = op; break;
|
|
21
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
22
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
23
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
24
|
-
default:
|
|
25
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
26
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
27
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
29
|
-
if (t[2]) _.ops.pop();
|
|
30
|
-
_.trys.pop(); continue;
|
|
31
|
-
}
|
|
32
|
-
op = body.call(thisArg, _);
|
|
33
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
34
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
|
|
38
|
-
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
39
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
40
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
41
|
-
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
42
|
-
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
43
|
-
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
|
|
44
|
-
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
45
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
46
|
-
function fulfill(value) { resume("next", value); }
|
|
47
|
-
function reject(value) { resume("throw", value); }
|
|
48
|
-
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
49
|
-
};
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator } from "tslib";
|
|
50
2
|
import { StreamReader } from '@credithub/webservice';
|
|
51
3
|
import { useCallback, useContext, useEffect, useRef, useState } from 'react';
|
|
52
4
|
import { WebService } from './webservice';
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
1
|
+
import { __assign } from "tslib";
|
|
12
2
|
import VeiculosIcon from '../../assets/icones/veiculos';
|
|
13
3
|
import { useGlobalData } from '../../contexts/globalDataContext';
|
|
14
4
|
import { useSafeQuery } from '../../hooks/useSafeQuery';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { EditalResponse, LiminarResponse, PDFProtestoDiscoverResponse, ProcessosJuridicosState } from '../@types/domain';
|
|
2
2
|
import { Client } from '@credithub/webservice';
|
|
3
|
-
import React, {
|
|
4
|
-
import
|
|
3
|
+
import React, { Context, FC, PropsWithChildren } from 'react';
|
|
4
|
+
import { type ParsedResponse, type RequestContext } from './requestContextTypes';
|
|
5
|
+
export * from './requestContextTypes';
|
|
5
6
|
export declare const WebService: React.Context<Client.WebService>;
|
|
6
7
|
type RequestDefaults = {
|
|
7
8
|
data?: Client.Form;
|
|
@@ -13,43 +14,6 @@ export declare const WebServiceProvider: FC<PropsWithChildren<{
|
|
|
13
14
|
defaultData?: Client.Form;
|
|
14
15
|
defaultUrlData?: Client.Form;
|
|
15
16
|
}>>;
|
|
16
|
-
export declare enum RequestStatus {
|
|
17
|
-
Empty = 0,
|
|
18
|
-
Loading = 1,
|
|
19
|
-
Success = 2,
|
|
20
|
-
Error = 3
|
|
21
|
-
}
|
|
22
|
-
export type ParsedResponse<T> = {
|
|
23
|
-
response: Response;
|
|
24
|
-
document: T;
|
|
25
|
-
};
|
|
26
|
-
export type RequestContext<R> = {
|
|
27
|
-
data?: Client.Form;
|
|
28
|
-
urlData?: Client.Form;
|
|
29
|
-
Section: ComponentType<ISectionProps<R>>;
|
|
30
|
-
refetch: () => void;
|
|
31
|
-
type: RequestStatus;
|
|
32
|
-
error: Error | null;
|
|
33
|
-
response: Response | undefined;
|
|
34
|
-
document: R | undefined;
|
|
35
|
-
progress?: number;
|
|
36
|
-
activeRequests?: number;
|
|
37
|
-
showLoadingBar?: boolean;
|
|
38
|
-
warningMessage?: string | null;
|
|
39
|
-
};
|
|
40
|
-
export type HeaderReplaceResponse = {
|
|
41
|
-
children: ReactNode;
|
|
42
|
-
} & ComponentProps<typeof Header>;
|
|
43
|
-
export type RenderedResponse = HeaderReplaceResponse | ReactNode;
|
|
44
|
-
export type ISectionProps<R> = {
|
|
45
|
-
ctx?: RequestContext<R>;
|
|
46
|
-
onSuccess?: (data: R, ctx: RequestContext<R>) => RenderedResponse;
|
|
47
|
-
isError?: (error: Error, ctx: RequestContext<R>) => RenderedResponse;
|
|
48
|
-
onLoading?: (ctx: RequestContext<R>) => RenderedResponse;
|
|
49
|
-
hideHeader?: boolean;
|
|
50
|
-
minimized?: boolean;
|
|
51
|
-
} & ComponentProps<typeof Header>;
|
|
52
|
-
export type ISection<R> = ComponentType<ISectionProps<R>>;
|
|
53
17
|
export declare function CustomProvider<T extends Client.Form = Client.Form, R = unknown>(Provider: Context<RequestContext<R>>, query: string): FC<PropsWithChildren<{
|
|
54
18
|
data?: T;
|
|
55
19
|
depends?: RequestContext<unknown>[];
|
|
@@ -193,4 +157,3 @@ export declare const Queries: {
|
|
|
193
157
|
}>>;
|
|
194
158
|
};
|
|
195
159
|
};
|
|
196
|
-
export {};
|
|
@@ -1,53 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
15
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
22
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
23
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
24
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
|
-
function step(op) {
|
|
26
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
28
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
|
-
switch (op[0]) {
|
|
31
|
-
case 0: case 1: t = op; break;
|
|
32
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
33
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
34
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
35
|
-
default:
|
|
36
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
37
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
38
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
39
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
40
|
-
if (t[2]) _.ops.pop();
|
|
41
|
-
_.trys.pop(); continue;
|
|
42
|
-
}
|
|
43
|
-
op = body.call(thisArg, _);
|
|
44
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
45
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
|
-
}
|
|
47
|
-
};
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
48
2
|
import { Client } from '@credithub/webservice';
|
|
49
3
|
import React, { createContext, useCallback, useContext, useEffect, useMemo, useState } from 'react';
|
|
50
4
|
import Section from './section';
|
|
5
|
+
import { RequestStatus } from './requestContextTypes';
|
|
6
|
+
export * from './requestContextTypes';
|
|
51
7
|
export var WebService = createContext(new Client.WebService());
|
|
52
8
|
export var RequestDefaultsContext = createContext({});
|
|
53
9
|
export var WebServiceProvider = function (_a) {
|
|
@@ -55,13 +11,6 @@ export var WebServiceProvider = function (_a) {
|
|
|
55
11
|
return (React.createElement(WebService.Provider, { value: new Client.WebService(credential) },
|
|
56
12
|
React.createElement(RequestDefaultsContext.Provider, { value: { data: defaultData, urlData: defaultUrlData } }, children)));
|
|
57
13
|
};
|
|
58
|
-
export var RequestStatus;
|
|
59
|
-
(function (RequestStatus) {
|
|
60
|
-
RequestStatus[RequestStatus["Empty"] = 0] = "Empty";
|
|
61
|
-
RequestStatus[RequestStatus["Loading"] = 1] = "Loading";
|
|
62
|
-
RequestStatus[RequestStatus["Success"] = 2] = "Success";
|
|
63
|
-
RequestStatus[RequestStatus["Error"] = 3] = "Error";
|
|
64
|
-
})(RequestStatus || (RequestStatus = {}));
|
|
65
14
|
var isDocument = function (value) {
|
|
66
15
|
return typeof Document !== 'undefined' && value instanceof Document;
|
|
67
16
|
};
|
package/dist/consultaSimples.js
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
1
|
+
import { __makeTemplateObject } from "tslib";
|
|
5
2
|
import { Chart, registerables } from 'chart.js';
|
|
6
3
|
import React, { useContext, useMemo } from 'react';
|
|
7
4
|
import styled, { ThemeProvider } from 'styled-components';
|
|
8
|
-
import
|
|
5
|
+
import Addresses from './components/adresses/addresses';
|
|
6
|
+
import BankAccounts from './components/bank-accounts/bank-accounts';
|
|
7
|
+
import CCF from './components/ccf/ccf';
|
|
8
|
+
import ChartSystem from './components/chart/chartSystem';
|
|
9
|
+
import Contacts from './components/contacts/contacts';
|
|
10
|
+
import DividasPublicas from './components/dividasPublicas/dividasPublicas';
|
|
11
|
+
import Dossie from './components/dossie/dossie';
|
|
12
|
+
import Falencia from './components/falencia/falencia';
|
|
13
|
+
import Partners from './components/partners/partners';
|
|
14
|
+
import ProcessosJuridicos from './components/processos-juridicos/processosJuridicos';
|
|
15
|
+
import Protestos from './components/protestos/protestos';
|
|
16
|
+
import RefinBoaVista from './components/refinBoaVista/refinBoaVista';
|
|
17
|
+
import RefinSerasa from './components/refinSerasa/refinSerasa';
|
|
18
|
+
import Veiculos from './components/veiculos/veiculos';
|
|
19
|
+
import { Queries, useQuery, WebServiceProvider } from './components/webservice';
|
|
9
20
|
import Modal from './components/common/modal';
|
|
10
21
|
import { ConsultaRfbProvider } from './components/consultaRfb';
|
|
11
22
|
import ConsultaSimplesSection from './components/consultaSimplesSection/consultaSimplesSection';
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
1
|
+
import { __assign } from "tslib";
|
|
12
2
|
// src/contexts/createDataContext.tsx
|
|
13
3
|
import React, { createContext, useContext, useState } from 'react';
|
|
14
4
|
function createDataContext(defaultValue) {
|