{"version":3,"sources":["webpack://@verndale/toolkit/./src/js/modules/latest-articles-carousel.js"],"names":[],"mappings":"uKAIA,SAAW,CAAC,KAAY,IAAU,CAAC,EAEnC,MAAM,SAAe,KAAU,CAC7B,eAAgB,CACd,KAAK,IAAM,CACT,iBAAkB,KAAK,GAAG,cAAc,SAAS,EACjD,cAAe,KAAK,GAAG,iBAAiB,eAAe,EACvD,kBAAmB,KAAK,GAAG,cAAc,oBAAoB,EAC7D,kBAAmB,KAAK,GAAG,cAAc,qBAAqB,EAC9D,kBAAmB,KAAK,GAAG,cAAc,qBAAqB,CAChE,EAEA,KAAK,iBAAmB,KAAK,GAAG,QAAQ,8BAA8B,EACtE,KAAK,WAAW,CAClB,CAEA,YAAa,CACX,KAAM,GAAgB,KAAK,iBAAmB,EAAI,EAC5C,EAAuB,KAAK,iBAAmB,WAAa,UAElE,KAAK,OAAS,GAAI,MAAO,KAAK,IAAI,iBAAkB,CAClD,KAAM,GACN,OAAQ,GACR,cAAe,EACf,aAAc,GACd,cAAe,GACf,YAAa,EACV,uBAA+B,CAC9B,gBACA,WAAY,CACV,KAAM,CACR,CACF,CACF,EACA,WAAY,CACV,GAAI,KAAK,IAAI,kBACb,KAAM,UACR,EACA,WAAY,CACV,OAAQ,KAAK,IAAI,kBACjB,OAAQ,KAAK,IAAI,iBACnB,EACA,oBAAqB,EACvB,CAAC,CACH,CACF,CAEA,UAAe,C","file":"scripts/232.bundle.js","sourcesContent":["import { Component } from '@verndale/core';\nimport Swiper, { Navigation, Pagination } from 'swiper';\nimport { BREAKPOINTS } from '../utils';\n\nSwiper.use([Navigation, Pagination]);\n\nclass Module extends Component {\n setupDefaults() {\n this.dom = {\n $swiperContainer: this.el.querySelector('.swiper'),\n $swiperSlides: this.el.querySelectorAll('.swiper-slide'),\n $swiperPagination: this.el.querySelector('.swiper-pagination'),\n $swiperNextButton: this.el.querySelector('.swiper-button-next'),\n $swiperPrevButton: this.el.querySelector('.swiper-button-prev')\n };\n\n this.isSmallContainer = this.el.closest('.dual-column-container__main');\n this.initSwiper();\n }\n\n initSwiper() {\n const slidesPerView = this.isSmallContainer ? 1 : 3;\n const swiperPaginationType = this.isSmallContainer ? 'fraction' : 'bullets';\n\n this.swiper = new Swiper(this.dom.$swiperContainer, {\n a11y: true,\n rewind: true,\n slidesPerView: 1,\n spaceBetween: 32,\n watchOverflow: true,\n breakpoints: {\n [BREAKPOINTS.TABLET_LANDSCAPE]: {\n slidesPerView,\n pagination: {\n type: swiperPaginationType\n }\n }\n },\n pagination: {\n el: this.dom.$swiperPagination,\n type: 'fraction'\n },\n navigation: {\n nextEl: this.dom.$swiperNextButton,\n prevEl: this.dom.$swiperPrevButton\n },\n watchSlidesProgress: true\n });\n }\n}\n\nexport default Module;\n"],"sourceRoot":""}