');
}
}
function chamadaAjax_254(field, parametros, limpar) {
// Show loading state
$moduleContainer.find('.results_search').html("");
$moduleContainer.find('.search-box-container.loading').show();
$.ajax({
url: '/en/component/ajax/?module=search_ajax&format=json&limit=4',
type: 'GET',
dataType: 'json',
data: parametros,
})
.done(function(data) {
if (data.success) {
// Make sure we have all the data before calling popularesultados
if (data.data) {
// Wait for the next tick to ensure DOM is ready
setTimeout(function() {
popularesultados_254(field, data.data, limpar);
initOwl_254();
$moduleContainer.find(".search-box-container .loading").hide();
}, 0);
}
}
})
.fail(function(jqXHR, textStatus, errorThrown) {
console.error("Falha ao obter items:", textStatus, errorThrown);
})
.always(function() {
$(field).parents('.search-box-container').find('.search-button').show();
});
}
function popularesultados_254(field, resultados, limpar) {
if (!($(field).parents('.search-box-container').find('.search-box-left').hasClass('opened'))) {
$(field).parents('.search-box-container').find('.open-search-all').click();
}
let html = '';
if (!limpar) {
html = $(field).parents('.search-box-container').find('.results_search').html();
}
let layoutHeaders = {};
// cabecalho advogados
if (resultados.adv.length > 0) {
html += '
';
$.each(resultados.adv, function(index, resultado) {
html += populaResultado_254(resultado, field);
})
html += "
";
}
// cabecalho IJ
if (resultados.ij.length > 0) {
html += '
RESULTS IN LEGAL INTELLIGENCE CENTER';
html += 'SEE ALL RESULTS >';
html += '
';
$.each(resultados.ij, function(index, resultado) {
html += populaResultado_254(resultado, field);
})
}
// cabecalho areas de atuacao
if (resultados.area.length > 0) {
html += '
RESULTS IN AREAS OF PRACTICE';
html += 'SEE ALL RESULTS >';
html += '
';
html += "
";
$.each(resultados.area, function(index, resultado) {
html += populaResultado_254(resultado, field);
})
}
$moduleContainer.find('.results_search').html(html);
$moduleContainer.find('.search-box-container.marea').show();
// Adiciona link "Ver todos os resultados" se houver resultados em qualquer categoria
if (resultados.adv.length > 0 || resultados.ij.length > 0 || resultados.area.length > 0) {
let verTodosHtml = '
In this ebook, we present the main proposed changes that include the opening of the electricity market, the reconfiguration of the allocation of charges and the change of the social tariff.
On March 18, 2025, the government presented the Bill of Law 1087, which introduced a minimum individual income tax on high-net-worth individuals and imposes withholding income tax (WHT) on dividends.
CNJ approves Resolution 586/24 and guarantees broad, general, and irrevocable discharge for out-of-court settlements, helping to reduce labor disputes.
The Superior Labor Court (TST) has consolidated case law on searches of employees' belongings and recognizes the legality of the act, but there are limits.
Decreto do Gás para Empregar acelera reformas no setor, ampliando competências da ANP e criando plano nacional para gestão do recurso no país.
`;
$('.inteligence-news-module .item.item-left').before(htmlContent);
$('.inteligence-news-module .item.item-right:last-child').remove();
$('.inteligence-news-module .item-image').addClass('ratio ratio-16x9 overflow-hidden');
$('.inteligence-news-module .item-image').removeAttr('style');
}
});
jQuery(document).ready(function ($) {
// Verifica se a URL atual tem um hash (#)
var hash = window.location.hash;
if (hash) {
// Pega o texto depois do #
var hashText = hash.substring(1);
// Itera sobre cada link dentro do mod-languages
$('#resiliente-flags .mod-languages a').each(function () {
var currentHref = $(this).attr('href');
// Adiciona o hash ao final do link, preservando a URL existente
var newHref = currentHref + '#' + hashText;
$(this).attr('href', newHref);
});
}
});