@credithub/harlan-components 1.121.4 → 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.
@@ -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: CTA clicável (nunca dado enriquecido)
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 + SEM plano: dado bruto
311
+ // SEM ext ou consulta sem dado: exibe valor bruto (ou "—" se vazio)
308
312
  quemProtestouValue = rawNomeCedente;
309
313
  }
310
314
  }