@credithub/harlan-components 1.121.3 → 1.121.5
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/protestos/protestosList.js +8 -5
- package/lib/cjs/index.js +86 -609
- package/lib/esm/index.js +86 -609
- package/package.json +1 -1
|
@@ -294,17 +294,21 @@ export var ProtestoItem = memo(function (_a) {
|
|
|
294
294
|
}
|
|
295
295
|
};
|
|
296
296
|
// Regra: SEM extensão = ZERO dado inteligente. 4 combinações extensão/plano.
|
|
297
|
+
// Opção de instalar extensão só quando a consulta trouxer dado real (não vazio, null ou ausente).
|
|
297
298
|
var rawNomeCedente = ((_e = protesto.nomeCedente) === null || _e === void 0 ? void 0 : _e.trim()) !== ''
|
|
298
299
|
? protesto.nomeCedente
|
|
299
300
|
: '—';
|
|
301
|
+
var temDadoQuemProtestouNaConsulta = protesto.nomeCedente != null &&
|
|
302
|
+
typeof protesto.nomeCedente === 'string' &&
|
|
303
|
+
protesto.nomeCedente.trim() !== '';
|
|
300
304
|
var quemProtestouValue;
|
|
301
305
|
if (extensionInstalled === false) {
|
|
302
|
-
if (hasPremiumAccess) {
|
|
303
|
-
// SEM ext + COM plano:
|
|
306
|
+
if (hasPremiumAccess && temDadoQuemProtestouNaConsulta) {
|
|
307
|
+
// SEM ext + COM plano + consulta tem dado: CTA para instalar extensão e revelar
|
|
304
308
|
quemProtestouValue = (React.createElement(QuemProtestouClickable, { onClick: handleQuemProtestouClick }, "CLIQUE AQUI para mais detalhes"));
|
|
305
309
|
}
|
|
306
310
|
else {
|
|
307
|
-
// SEM ext
|
|
311
|
+
// SEM ext ou consulta sem dado: exibe valor bruto (ou "—" se vazio)
|
|
308
312
|
quemProtestouValue = rawNomeCedente;
|
|
309
313
|
}
|
|
310
314
|
}
|
|
@@ -326,8 +330,7 @@ export var ProtestoItem = memo(function (_a) {
|
|
|
326
330
|
React.createElement(AddItemField, { name: "Possui Anu\u00EAncia / Protesto Pago", value: formatBooleanField(String(protesto.temAnuencia)) }),
|
|
327
331
|
React.createElement(AddItemField, { name: "Valor Do Protesto", value: formatMoney(protesto.valor) }),
|
|
328
332
|
React.createElement(AddItemField, { name: "Custas de Cart\u00F3rio para Baixa", value: protesto.vl_custas ? formatMoney(protesto.vl_custas) : '—' }),
|
|
329
|
-
React.createElement(AddItemField, { name: "UF", value: React.createElement(UfCell, { uf: cartorio === null || cartorio === void 0 ? void 0 : cartorio.uf, hasCartorio: Boolean(cartorio), onOpenCartorio: onOpenCartorioModal }) }),
|
|
330
|
-
showInstrumento && (React.createElement(Instrumento, { nm_chave: nm_chave, cpfCnpj: documento, extensionInstalled: extensionInstalled, tags: tags, onExtensionRequired: function () { return setIsExtensionModalOpen(true); } }))),
|
|
333
|
+
React.createElement(AddItemField, { name: "UF", value: React.createElement(UfCell, { uf: cartorio === null || cartorio === void 0 ? void 0 : cartorio.uf, hasCartorio: Boolean(cartorio), onOpenCartorio: onOpenCartorioModal }) })),
|
|
331
334
|
React.createElement(ModalInstallExtension, { isOpen: isExtensionModalOpen, onClose: function () { return setIsExtensionModalOpen(false); } })));
|
|
332
335
|
});
|
|
333
336
|
export var Instrumento = function (_a) {
|