window.addEventListener("DOMContentLoaded",e=>{!function(){const e=document.querySelector(".wp-block-carhop-blocks-highlight-timeline");if(!e)return;const t=e.querySelectorAll(".swiper-slide"),n=(t.length,Array.from(t).map(e=>{const t=e.querySelector(".highlight-timeline-step__year");if(t&&t.textContent)return t.textContent.trim();const n=(e.id||"").match(/^year-(.+)$/);return n?n[1]:""}));highlightTimelineSwiper=new Swiper(".highlight-timeline-swiper",{slidesPerView:1,spaceBetween:30,loop:!0,grabCursor:!0,keyboard:{enabled:!0,onlyInViewport:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},mousewheel:{enabled:!0,forceToAxis:!0,sensitivity:1,releaseOnEdges:!1},pagination:{el:".swiper-pagination",clickable:!0,renderBullet:function(e,t){var i;return`<button class="${t}">${null!==(i=n[e])&&void 0!==i?i:""}</button>`}}})}()});