(function () { var g = {}; g.api = [0, 1, 2, 3, 4]; g.lgpd = [5, 6, 7, 8]; g.rastreio = [9, 10, 11]; g.seguranca = [12, 13, 14]; g.diferenca = [15, 16]; g.funcionalidades = [17, 18, 19, 20, 21]; function init() { var items = document.querySelectorAll( ".faq-accordion details.e-n-accordion-item", ); var botoes = document.querySelectorAll(".faq-nav-btn"); if (!items.length || !botoes.length) { return; } function show(grupo) { for (var i = 0; i < items.length; i++) { items[i].style.display = "none"; items[i].removeAttribute("open"); } var idx = g[grupo] || []; for (var j = 0; j < idx.length; j++) { if (items[idx[j]]) items[idx[j]].style.display = ""; } } for (var k = 0; k < botoes.length; k++) { (function (btn) { btn.addEventListener("click", function () { for (var x = 0; x < botoes.length; x++) botoes[x].classList.remove("active"); btn.classList.add("active"); show(btn.getAttribute("data-group")); }); })(botoes[k]); } show("api"); } setTimeout(init, 600); })();