(()=>{const t=document.querySelectorAll(".wp-block-nexa-tabs");t&&t.length>0&&t.forEach((function(t){var e=t.querySelectorAll(".tabs-content .tab-item"),a=t.querySelectorAll(".tabs-nav .nav-item"),i=t.querySelector(".tabs-content");function r(){const e=t.querySelector(".tab-item.show");e&&(i.style.height=`${e.offsetHeight}px`)}a.forEach((function(t){t.addEventListener("click",(function(){!function(t){t.parentNode.querySelectorAll(".nav-item").forEach((function(t){t.classList.remove("active"),t.setAttribute("aria-selected","false")})),t.classList.add("active"),t.setAttribute("aria-selected","true");var a=t.getAttribute("data-nav");e.forEach((function(t){t.getAttribute("data-tab")===a?(t.classList.add("show"),t.setAttribute("aria-hidden","false")):(t.classList.remove("show"),t.setAttribute("aria-hidden","true"))})),r()}(t)}))})),r(),window.addEventListener("resize",r)}))})();