@credithub/harlan-components 1.63.0 → 1.63.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/components/refinSerasa/refinSerasa.js +18 -15
- package/lib/cjs/index.js +19 -16
- package/lib/esm/index.js +19 -16
- package/package.json +1 -1
|
@@ -133,21 +133,24 @@ var RefinSerasa = function (_a) {
|
|
|
133
133
|
refetch: function () { },
|
|
134
134
|
Section: Section,
|
|
135
135
|
progress: loadingProgress
|
|
136
|
-
}, title: "Pefin/Refin e Contratos Vencidos Serasa", subtitle: "Confira as Pend\u00EAncias Financeiras deste documento", icon: PefinRefinSerasaIcon, description: !error && (React.createElement(StatusMessage, { type: totalPendencias === 0 ? 'default' : 'error' }, description)), variant: totalPendencias === 0 ? 'default' : 'error', onSuccess: function () { return (React.createElement(Result, null, pendencias.map(function (pendencia, i) {
|
|
137
|
-
|
|
138
|
-
React.createElement(
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
136
|
+
}, title: "Pefin/Refin e Contratos Vencidos Serasa", subtitle: "Confira as Pend\u00EAncias Financeiras deste documento", icon: PefinRefinSerasaIcon, description: !error && (React.createElement(StatusMessage, { type: totalPendencias === 0 ? 'default' : 'error' }, description)), variant: totalPendencias === 0 ? 'default' : 'error', onSuccess: function () { return (React.createElement(Result, null, pendencias.map(function (pendencia, i) {
|
|
137
|
+
var _a;
|
|
138
|
+
return (React.createElement(ResultContent, { key: i, desktop: "repeat(5, 1fr)", tablet: "repeat(3, 1fr)", mobile: "1fr 1fr" },
|
|
139
|
+
React.createElement(AddItemField, { name: "Tipo de Ocorr\u00EAncia", value: pendencia === null || pendencia === void 0 ? void 0 : pendencia.titulo_ocorrencia }),
|
|
140
|
+
React.createElement(AddItemField, { name: "Credor", value: pendencia === null || pendencia === void 0 ? void 0 : pendencia.origem }),
|
|
141
|
+
React.createElement(AddItemField, { name: "Data de Entrada", value: pendencia === null || pendencia === void 0 ? void 0 : pendencia.data_ocorrencia }),
|
|
142
|
+
React.createElement(AddItemField, { name: "Valor", value: formatMoney(pendencia === null || pendencia === void 0 ? void 0 : pendencia.valor) }),
|
|
143
|
+
React.createElement(AddItemField, { name: "N\u00FAmero de Contrato", value: pendencia === null || pendencia === void 0 ? void 0 : pendencia.contrato }),
|
|
144
|
+
React.createElement(AddItemField, { name: "Avalista", value: (pendencia === null || pendencia === void 0 ? void 0 : pendencia.avalista) ? 'Sim' : 'Não' }),
|
|
145
|
+
React.createElement(AddItemField, { name: "Comprador", value: (pendencia === null || pendencia === void 0 ? void 0 : pendencia.comprador) ? 'Sim' : 'Não' }),
|
|
146
|
+
React.createElement(AddItemField, { name: "Fiador", value: (pendencia === null || pendencia === void 0 ? void 0 : pendencia.fiador) ? 'Sim' : 'Não' }),
|
|
147
|
+
React.createElement(AddItemField, { name: "Cidade", value: pendencia === null || pendencia === void 0 ? void 0 : pendencia.cidade }),
|
|
148
|
+
React.createElement(AddItemField, { name: "UF", value: pendencia === null || pendencia === void 0 ? void 0 : pendencia.uf }),
|
|
149
|
+
React.createElement(AddItemField, { name: "Org\u00E3o Emissor", value: ((_a = pendencia === null || pendencia === void 0 ? void 0 : pendencia.base_origem) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'base ii' ? 'Serasa' : 'SPC' }),
|
|
150
|
+
React.createElement(AddItemField, { name: "Total de Pend\u00EAncias", value: "1" }),
|
|
151
|
+
React.createElement(AddItemField, { name: "Valor Total", value: formatMoney(pendencia === null || pendencia === void 0 ? void 0 : pendencia.totalvalor) }),
|
|
152
|
+
React.createElement(AddItemField, { name: "Categoria", value: pendencia === null || pendencia === void 0 ? void 0 : pendencia.categoria })));
|
|
153
|
+
}))); }, isError: function (err) { return ({
|
|
151
154
|
children: React.createElement(React.Fragment, null),
|
|
152
155
|
description: (React.createElement(StatusMessage, { type: "error" },
|
|
153
156
|
"Erro ao realizar a consulta: ",
|