{"version":3,"sources":["webpack://@verndale/toolkit/./src/js/modules/image-carousel.js"],"names":["Module","Component","Swiper","Navigation","Pagination","Keyboard","A11y"],"mappings":"6JAGA,MAAMA,UAAeC,WAAU,CAC7B,eAAgB,CACd,KAAK,IAAM,CACT,UAAW,KAAK,GAAG,cAAc,mBAAmB,EACpD,QAAS,KAAK,GAAG,cAAc,iBAAiB,EAChD,WAAY,KAAK,GAAG,cAAc,oBAAoB,EACtD,KAAM,KAAK,GAAG,cAAc,qBAAqB,EACjD,KAAM,KAAK,GAAG,cAAc,qBAAqB,CACnD,EACA,KAAK,WAAW,CAClB,CAEA,cAAe,CACb,OAAO,iBAAiB,SAAU,KAAK,aAAa,KAAK,IAAI,CAAC,CAChE,CAEA,cAAe,CACb,KAAK,WAAW,CAClB,CAEA,YAAa,CAEX,KAAK,OAAS,IAAIC,KAAO,KAAK,IAAI,UAAW,CAC3C,YAAa,CACX,EAAG,CACD,eAAgB,EAChB,cAAe,EACf,aAAc,EAChB,EACA,IAAK,CACH,eAAgB,EAChB,cAAe,EACf,aAAc,EAChB,EACA,IAAK,CACH,eAAgB,EAChB,cAAe,EACf,aAAc,EAChB,EACA,KAAM,CACJ,eAAgB,EAChB,cAAe,EACf,aAAc,EAChB,CACF,EACA,eAAgB,GAChB,WAAY,GACZ,SAAU,CACR,QAAS,GACT,eAAgB,EAClB,EACA,KAAM,GACN,QAAS,CAACC,KAAYC,KAAYC,KAAUC,IAAI,EAChD,WAAY,CACV,YAAa,GACb,OAAQ,KAAK,IAAI,KACjB,OAAQ,KAAK,IAAI,IACnB,EACA,WAAY,CACV,UAAW,GACX,GAAI,KAAK,IAAI,UACf,EACA,MAAO,GACT,CAAC,CACH,CAGF,CAEA,UAAeN,C","file":"scripts/914.45cf7402.js","sourcesContent":["import { Component } from '@verndale/core';\nimport Swiper, { Navigation, Pagination, Keyboard, A11y } from 'swiper';\n\nclass Module extends Component {\n setupDefaults() {\n this.dom = {\n container: this.el.querySelector('.swiper-container'),\n wrapper: this.el.querySelector('.swiper-wrapper'),\n pagination: this.el.querySelector('.swiper-pagination'),\n next: this.el.querySelector('.swiper-button-next'),\n prev: this.el.querySelector('.swiper-button-prev')\n };\n this.initSlider();\n }\n\n addListeners() {\n window.addEventListener('resize', this.handleResize.bind(this));\n }\n\n handleResize() {\n this.initSlider();\n }\n\n initSlider() {\n // eslint-disable-next-line new-cap\n this.slider = new Swiper(this.dom.container, {\n breakpoints: {\n 0: {\n slidesPerGroup: 2,\n slidesPerView: 2,\n spaceBetween: 30,\n },\n 600: {\n slidesPerGroup: 3,\n slidesPerView: 3,\n spaceBetween: 30,\n },\n 900: {\n slidesPerGroup: 3,\n slidesPerView: 3,\n spaceBetween: 30,\n },\n 1080: {\n slidesPerGroup: 5,\n slidesPerView: 5,\n spaceBetween: 30,\n },\n },\n centeredSlides: false,\n grabCursor: true,\n keyboard: {\n enabled: true,\n onlyInViewport: false,\n },\n loop: false,\n modules: [Navigation, Pagination, Keyboard, A11y],\n navigation: {\n hideOnClick: false,\n nextEl: this.dom.next,\n prevEl: this.dom.prev\n },\n pagination: {\n clickable: true,\n el: this.dom.pagination\n },\n speed: 350,\n });\n }\n\n\n}\n\nexport default Module;\n"],"sourceRoot":""}