{"version":3,"file":"/scripts/skillet-stories.js","mappings":"8IAIMA,EAAAA,WACF,cAAc,eACVC,KAAA,SACAA,KAAA,aACAA,KAAA,gBAAuBC,EAAvB,0C,yCAGJ,WACIC,EAAAA,GAAAA,IAAW,CAAC,EAAD,QAAXA,EAAAA,KACa,IAAI,EAAJ,aAAsB,CAC/BC,cAD+B,EAE/BC,aAF+B,GAG/BC,YAH+B,EAI/BC,MAJ+B,IAK/BC,gBAL+B,EAM/BC,MAN+B,EAO/BC,WAAY,CACRC,GADQ,yCAERC,WAAW,GAEfC,WAAY,CACRC,OADQ,0CAERC,OAAQ,2CAEZC,YAAa,CACT,IAAI,CACAR,gBAAgB,GAEpB,KAAM,CACFJ,cAAe,MAGvBa,GAAI,CACAC,UAAW,WACPC,YAAW,WACP,IAAIC,EAAaC,SAAAA,cAAjB,wBACoBA,SAAAA,cAApB,mBACAC,MAAAA,OAA2BF,EAAAA,aAA3BE,OAHJH,W,0BAUhB,WAAe,WACXjB,EAAAA,QAAAA,GAAAA,UAAuB,WACnB,oB,yBAIR,c,oBAEA,WACID,KAAA,cACAA,KAAA,mB,EAtDFD,GA2DN,IAAIA,G,iBC/DJuB,EAAOC,QAAUC,OAAe,S","sources":["webpack://sage/./resources/scripts/modules/skillet-stories.js","webpack://sage/external window \"jQuery\""],"sourcesContent":["// import $ from \"jquery\";\n// import \"slick-carousel\";\nimport Swiper, { Navigation, Pagination, Autoplay } from 'swiper';\n\nclass sliderSwiperStories {\n constructor() {\n this.events();\n this.sliderInit();\n this.paginationClass = $('.slider-01-control .slider__pagination');\n }\n\n sliderInit() {\n Swiper.use([Navigation, Pagination, Autoplay]);\n var swiper = new Swiper('.slider', {\n slidesPerView: 1,\n spaceBetween: 36,\n grabCursor: true,\n speed: 500,\n allowTouchMove: true,\n loop: true,\n pagination: {\n el: '.slider-01-control .slider__pagination',\n clickable: true,\n },\n navigation: {\n nextEl: '.slider-01-control .slider__button-next',\n prevEl: '.slider-01-control .slider__button-prev',\n },\n breakpoints: {\n 767:{\n allowTouchMove: true,\n },\n 1300: {\n slidesPerView: 1.5,\n },\n },\n on: {\n afterInit: function(){\n setTimeout(function(){\n let itemHeight = document.querySelector('.swiper-slide-active');\n let wrapperHeight = document.querySelector('.swiper-wrapper');\n wrapperHeight.style.height=itemHeight.offsetHeight+'px';\n }, 200);\n },\n },\n });\n }\n\n resizeEvents() {\n $(window).on('resize', () => {\n this.sliderInit();\n });\n }\n\n clickEvents() {}\n\n events() {\n this.clickEvents();\n this.resizeEvents();\n }\n}\n\nexport default sliderSwiperStories;\nnew sliderSwiperStories();\n","module.exports = window[\"jQuery\"];"],"names":["sliderSwiperStories","this","$","Swiper","slidesPerView","spaceBetween","grabCursor","speed","allowTouchMove","loop","pagination","el","clickable","navigation","nextEl","prevEl","breakpoints","on","afterInit","setTimeout","itemHeight","document","wrapperHeight","module","exports","window"],"sourceRoot":""}