{"version":3,"file":"DiscoverLeadInCarousel-CTsq9zi3.js","sources":["../../ClientApp/src/js/components/DiscoverLeadInCarousel.ts"],"sourcesContent":["import Swiper from 'swiper';\r\nimport { Pagination } from 'swiper/modules';\r\nimport { SwiperOptions } from 'swiper/types';\r\n\r\nlet discoverSwiper: Swiper | null = null;\r\n\r\nexport function initDiscoverMobileLeadInCarousel(): void {\r\n if (window.innerWidth < 992 && !discoverSwiper) {\r\n const options: SwiperOptions = {\r\n modules: [Pagination],\r\n slidesPerView: 1,\r\n spaceBetween: 10,\r\n pagination: {\r\n el: '.swiper-pagination',\r\n clickable: true,\r\n }\r\n };\r\n\r\n discoverSwiper = new Swiper('#js-preview-tiles', options);\r\n }\r\n}\r\n\r\nexport function destroyDiscoverMobileLeadInCarousel(): void {\r\n if (discoverSwiper) {\r\n discoverSwiper.destroy(true, true);\r\n discoverSwiper = null;\r\n }\r\n}\r\n"],"names":["discoverSwiper","initDiscoverMobileLeadInCarousel","options","Pagination","Swiper","destroyDiscoverMobileLeadInCarousel"],"mappings":"6GAIA,IAAIA,EAAgC,KAE7B,SAASC,GAAyC,CACvD,GAAI,OAAO,WAAa,KAAO,CAACD,EAAgB,CAC9C,MAAME,EAAyB,CAC7B,QAAS,CAACC,CAAU,EACpB,cAAe,EACf,aAAc,GACd,WAAY,CACV,GAAI,qBACJ,UAAW,EACb,CAAA,EAGeH,EAAA,IAAII,EAAO,oBAAqBF,CAAO,CAC1D,CACF,CAEO,SAASG,GAA4C,CACtDL,IACaA,EAAA,QAAQ,GAAM,EAAI,EAChBA,EAAA,KAErB"}