{"version":3,"file":"latest-news.js","names":["FreeMode"],"sources":["../../resources/javascript/carousel/latest-news.js"],"sourcesContent":["import { Carousel } from './init-carousel';\nimport { FreeMode, Navigation, Pagination } from 'swiper/modules';\n\nconst carouselOptions = {\n    modules: [FreeMode, Navigation],\n    freeMode: {\n        enabled: true,\n        sticky: false,\n    },\n    navigation: {\n        nextEl: '.latest-news__controls .latest-news__next',\n        prevEl: '.latest-news__controls .latest-news__prev',\n        clickable: true,\n    },\n    slidesPerView: 1.3,\n    spaceBetween: 30,\n    breakpoints: {\n        550: {\n            spaceBetween: 25,\n        },\n        680: {\n            slidesPerView: 2,\n            spaceBetween: 25,\n        },\n        1000: {\n            slidesPerView: 2.5,\n            spaceBetween: 70,\n        }\n    },\n};\n\nconst carousel = document.querySelector('[data-carousel=\"latest-news\"]');\nconst newsCarousel = new Carousel(carousel, carouselOptions);\nnewsCarousel.initSwiper();\n"],"mappings":"iEAGA,IAAM,EAAkB,CACpB,QAAS,CAACA,EAAU,CAAU,EAC9B,SAAU,CACN,QAAS,GACT,OAAQ,EACZ,EACA,WAAY,CACR,OAAQ,4CACR,OAAQ,4CACR,UAAW,EACf,EACA,cAAe,IACf,aAAc,GACd,YAAa,CACT,IAAK,CACD,aAAc,EAClB,EACA,IAAK,CACD,cAAe,EACf,aAAc,EAClB,EACA,IAAM,CACF,cAAe,IACf,aAAc,EAClB,CACJ,CACJ,EAEM,EAAW,SAAS,cAAc,+BAA+B,EAEvE,IADyB,EAAS,EAAU,CACjC,CAAC,CAAC,WAAW"}