{"version":3,"file":"collections_carousel-Tk5dflo4.js","sources":["../../../app/javascript/entrypoints/js/carousels/collections_carousel.js"],"sourcesContent":["import Swiper from \"swiper/bundle\";\n// import Swiper and modules styles\nimport 'swiper/css';\nimport 'swiper/css/navigation';\nimport 'swiper/css/pagination';\n\n\nexport default class CollectionsCarousel {\n constructor(el) {\n this.carousel = el;\n this.swiper = null;\n }\n\n init() {\n this.initSwiper(this.carousel)\n }\n\n initSwiper(carousel) {\n this.swiper = new Swiper(carousel, {\n effect: \"coverflow\",\n centeredSlides: true,\n slidesPerView: 1.1,\n speed: 1000,\n loop: true,\n autoplay: {\n delay: 1500\n },\n coverflowEffect: {\n rotate: 0,\n stretch: 0,\n depth: 30,\n modifier: 2,\n slideShadows: false,\n },\n keyboard: {\n enabled: true,\n onlyInViewport: false,\n },\n breakpoints: {\n 1024: {\n slidesPerView: 4,\n }\n }\n\n });\n }\n\n\n}\n\n"],"names":["CollectionsCarousel","el","carousel","Swiper"],"mappings":"8EAOe,MAAMA,CAAoB,CACrC,YAAYC,EAAI,CACZ,KAAK,SAAWA,EAChB,KAAK,OAAS,IACjB,CAED,MAAO,CACH,KAAK,WAAW,KAAK,QAAQ,CAChC,CAED,WAAWC,EAAU,CACjB,KAAK,OAAS,IAAIC,EAAOD,EAAU,CAC/B,OAAQ,YACR,eAAgB,GAChB,cAAe,IACf,MAAO,IACP,KAAM,GACN,SAAU,CACN,MAAO,IACV,EACD,gBAAiB,CACb,OAAQ,EACR,QAAS,EACT,MAAO,GACP,SAAU,EACV,aAAc,EACjB,EACD,SAAU,CACN,QAAS,GACT,eAAgB,EACnB,EACD,YAAa,CACT,KAAM,CACF,cAAe,CAClB,CACJ,CAEb,CAAS,CACJ,CAGL"}