window.initSwiper = () => {
    const container = document.getElementById('transport-popup-swiper');

    if (container) {
        new Swiper(container, {
            spaceBetween: 10,
            speed: 600,
            slidesPerView: 1,

            navigation: {
                nextEl: '#transport-popup-swiper-nav-prev',
                prevEl: '#transport-popup-swiper-nav-next',
            },
            pagination: {
                el: '#transport-popup-swiper-pagination',
                bulletClass: 'transport-popup-swiper__bullet',
                bulletActiveClass: 'transport-popup-swiper__bullet_active',
                clickable: true
            },
        });
    }
};