1import{Swiper as g}from"./swiper-DSNqM4E6.js";import{N as f}from"./navigation-B-LDRiO7.js";import{P as m}from"./pagination-DPm6-3I2.js";import"./utils-CBp3QXO4.js";function w(a=document){const i=a.querySelectorAll(".carousel-container .carousel-swiper");i.length!==0&&i.forEach(e=>{if(e.swiper||e.closest(".carousel-container--editor-preview"))return;const n=e.closest(".carousel-container")?.querySelector(".carousel-button-prev"),s=e.closest(".carousel-container")?.querySelector(".carousel-button-next"),t=e.querySelector(".swiper-pagination"),c=30,u=100;if(!n||!s||!t)return;const p=new g(e,{modules:[f,m],slidesPerView:1,spaceBetween:0,loop:!0,navigation:{nextEl:s,prevEl:n},pagination:{el:t,clickable:!0,bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active"}});function o(){if(window.innerWidth<=767){if(e.closest(".bg-gray-200")&&t){const r=e.querySelector(".swiper-slide > div:first-child");if(r){const d=r.offsetHeight;t.style.top=`${d-c}px`,t.style.bottom="auto"}}}else t.style.top="",t.style.bottom=""}o(),window.addEventListener("resize",o),p.on("slideChange",()=>{setTimeout(o,u)})})}function l(){w()}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",l):l();export{w as initCarouselBlocks};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.