document.addEventListener("DOMContentLoaded",(function(){const c=document.querySelectorAll(".wp-block-nexa-image-accordion");c&&c.length>0&&c.forEach((function(c){const e=c.querySelectorAll(".wp-block-nexa-image-accordion-item");let t=0;e.forEach((function(c){t++,e.length>2?2===t&&c.classList.add("active"):1===t&&c.classList.add("active"),c.addEventListener("click",(function(){e.forEach((function(c){c.classList.remove("active")})),c.classList.add("active")}))}))}))}));