document.addEventListener("DOMContentLoaded",(()=>{[...document.querySelectorAll(".wp-block-lcb-logo-carousel")].forEach((e=>{const a=e.querySelector(".alcb__carousel_container"),t=a.dataset.id,s=parseInt(a.dataset.desktop),r=parseInt(a.dataset.tablet),o=parseInt(a.dataset.mobile),p=parseInt(a.dataset.deskspace),n=parseInt(a.dataset.tabspace),d=parseInt(a.dataset.phonespace),l=parseInt(a.dataset.deskrows),i=parseInt(a.dataset.tabrows),c=parseInt(a.dataset.phonerows),w=JSON.parse(a.dataset.autoplay),u=parseInt(a.dataset.autoplaydelay),b=JSON.parse(a.dataset.autoplaydirection),y=JSON.parse(a.dataset.pauseonhover),S=!!w&&{delay:u,reverseDirection:b,pauseOnMouseEnter:y,disableOnInteraction:!1},g=parseInt(a.dataset.speed),I=JSON.parse(a.dataset.loop),O=JSON.parse(a.dataset.keyboard),h=JSON.parse(a.dataset.mousewheel),J=JSON.parse(a.dataset.autoheight),N=JSON.parse(a.dataset.pagination),_=e.querySelector(".alcb__pag"),k=a.dataset.paginationtype,v=!!N&&{el:_,clickable:N,type:k||"bullets"},m=JSON.parse(a.dataset.navigation),q=e.querySelector(".alcb__prev"),E=e.querySelector(".alcb__next");new Swiper(`#${t}`,{pagination:v,navigation:!!m&&{nextEl:E,prevEl:q},slidesPerView:s,spaceBetween:p,autoplay:S,speed:g,loop:I,keyboard:O,mousewheel:h,autoHeight:J,breakpoints:{320:{slidesPerView:o,spaceBetween:d,grid:{rows:c||1,fill:"row"}},601:{slidesPerView:r,spaceBetween:n,grid:{rows:i||1,fill:"row"}},992:{slidesPerView:s,spaceBetween:p,grid:{rows:l||1,fill:"row"}}}})}))}));