document.addEventListener("DOMContentLoaded",(function(){const e=document.querySelectorAll(".wp-block-nexa-slider");e&&e.length>0&&e.forEach((e=>{const t=e.querySelector(".swiper"),o=e.getAttribute("data-effect")||"random",a=JSON.parse(e.getAttribute("data-options")),n=e.querySelector(".swiper-button-prev"),r=e.querySelector(".swiper-button-next"),i=e.querySelector(".swiper-pagination");new Swiper(t,{modules:[SwiperGL],speed:a?.speed,effect:"gl",loop:a?.loop,autoplay:!!a?.autoPlay&&{delay:a?.autoPlayDelay},gl:{shader:o},navigation:!!a?.showNavigation&&{prevEl:n,nextEl:r},pagination:!!a?.showPagination&&{clickable:!0,el:i,type:a?.paginationType}})}))}));