document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".wp-block-awt-author-pro-book-carousel .glide").forEach(t=>{const e=t.closest(".wp-block-awt-author-pro-book-carousel");if(!e)return;const a=e.getAttribute("data-autoplay"),o={type:"carousel",perView:parseInt(e.getAttribute("data-columns"))||3,gap:parseInt(e.getAttribute("data-gap"))||32,autoplay:("true"===a||"1"===a)&&3e3,hoverpause:!0,breakpoints:{1024:{perView:2},640:{perView:1}}},r=parseInt(e.getAttribute("data-autoplay-speed"));a&&r&&(o.autoplay=r),new Glide(t,o).mount()})});