document.addEventListener("DOMContentLoaded",()=>{const e=document.querySelectorAll(".wp-block-zolo-review-carousel");e.length>0&&e.forEach(e=>{e.querySelectorAll(".zb-review-item").forEach(e=>e.classList.add("swiper-slide"));const t=JSON.parse(e.dataset?.swiperOptions)||"{}",a=e.querySelector(".swiper"),{speed:i=800,autoplay:s=!0,autoplayDelay:n=3e3,pauseOnMouseEnter:o=!0,loop:r=!0,navigation:p=!1,effect:l="slide",pagination:c=!0,paginationType:u="bullets",perviewDesktop:w=3,perviewTab:d=2,perviewMobile:b=1,spacingDesktop:y=30,spacingTab:v=20,spacingMob:g=10}=t,S=e.querySelector(".swiper-pagination"),E=e.querySelector(".swiper-button-prev"),f=e.querySelector(".swiper-button-next");new Swiper(a,{autoplay:!!s&&{delay:n||3e3,disableOnInteraction:!1,pauseOnMouseEnter:o||!1},speed:i||800,effect:l||"slide",observer:!0,spaceBetween:g||10,navigation:!!(p&&E&&f)&&{nextEl:f,prevEl:E},pagination:!(!c||!S)&&{el:S,type:u||"bullets",clickable:!0},breakpoints:{768:{slidesPerView:d||2,spaceBetween:v||20},1024:{slidesPerView:w||5,spaceBetween:y||30}}})})});