{"version":3,"file":"/scripts/select-grid-2-2.js","mappings":"gKAMMA,EAAAA,WAEF,cAAc,eACVC,KAAA,aACAA,KAAA,SACAA,KAAA,gBAAuBC,EAAvB,0C,yCAGJ,WACIC,EAAAA,GAAAA,IAAW,CAAC,EAAD,QAAXA,EAAAA,KAEe,IAAI,EAAJ,gBAAyB,CACpCC,aADoC,GAEpCC,YAFoC,EAGpCC,MAHoC,IAIpCC,YAJoC,EAKpCC,gBALoC,EAMpCC,WAAY,CACRC,GADQ,yCAERC,WAAW,GAEfC,WAAY,CACRC,OADQ,0CAERC,OAAQ,2CAEZC,YAAa,CACT,IAAI,CACAP,gBAAgB,IAGxBQ,GAAI,CACAC,OAAQ,WACDf,EAAAA,QAAAA,QAAH,KACID,KAAKiB,WAEbC,YAAa,WACTlB,KAAA,aAKMmB,SAAAA,cAAAA,aAAlB,OACAC,GAAAA,aAA0B,YACtB,IAAIC,EAAJ,GAEIA,EADJ,QAAGC,EAAAA,eACaA,EAAAA,UADhB,EAGgBA,EAAAA,UAAZD,EACeF,SAAAA,cAAAA,cAAnB,OACAI,QAAAA,EAPoC,QAWrBJ,SAAAA,cAAAA,cAAnB,OACAI,GAAAA,aAA2B,YACvB,IAAIF,EAAJ,GAEIA,EADJ,QAAGC,EAAAA,eACaA,EAAAA,UADhB,EAGgBA,EAAAA,UAAZD,EAEcF,SAAAA,cAAAA,aAAlB,OACAC,QAAAA,EARqC,U,0BAe7C,WAAe,WACXnB,EAAAA,QAAAA,GAAAA,UAAuB,WACfA,EAAAA,QAAAA,QAAJ,KACI,oB,oBAKZ,WACID,KAAA,mB,EA9EFD,GAmFN,IAAIA,G,iBCzFJyB,EAAOC,QAAUC,OAAe,S","sources":["webpack://sage/./resources/scripts/modules/select-grid-2-2.js","webpack://sage/external window \"jQuery\""],"sourcesContent":["// import $ from \"jquery\";\n// import \"slick-carousel\";\nimport Swiper, { Navigation, Pagination, Autoplay } from 'swiper';\nimport 'bootstrap/js/dist/tab';\nimport 'bootstrap/js/dist/collapse';\n\nclass sliderSwiper {\n\n constructor() {\n this.sliderInit();\n this.events();\n this.paginationClass = $('.slider-02-control .slider__pagination');\n }\n\n sliderInit() {\n Swiper.use([Navigation, Pagination, Autoplay]);\n \n var myswiper = new Swiper('.slider-02', {\n spaceBetween: 36,\n autoHeight: true,\n speed: 500,\n grabCursor: false,\n allowTouchMove: true,\n pagination: {\n el: '.slider-02-control .slider__pagination',\n clickable: true,\n },\n navigation: {\n nextEl: '.slider-02-control .slider__button-next',\n prevEl: '.slider-02-control .slider__button-prev',\n },\n breakpoints: {\n 767:{\n allowTouchMove: true,\n },\n },\n on: {\n resize: function(){\n if($(window).width() > 767)\n this.destroy();\n },\n slideChange: function(){\n this.update();\n },\n },\n });\n\n const swiperImg = document.querySelector('.imgSwipe').swiper;\n swiperImg.on(\"touchMove\", function(swip){\n var swiptoval='';\n if(swip.swipeDirection=='next')\n swiptoval = swip.realIndex+1;\n else\n swiptoval = swip.realIndex-1;\n const swiperText = document.querySelector('.textSwipe').swiper;\n swiperText.slideTo(swiptoval, 200);\n //this.pagination.update();\n //swiperImg.slideTo(swiptoval, 400);\n });\n const swiperText = document.querySelector('.textSwipe').swiper;\n swiperText.on(\"touchMove\", function(swip){\n var swiptoval='';\n if(swip.swipeDirection=='next')\n swiptoval = swip.realIndex+1;\n else\n swiptoval = swip.realIndex-1;\n\n const swiperImg = document.querySelector('.imgSwipe').swiper;\n swiperImg.slideTo(swiptoval, 200);\n //this.pagination.update();\n //swiperText.slideTo(swiptoval, 400);\n });\n \n }\n \n resizeEvents() {\n $(window).on('resize', () => {\n if ($(window).width() < 768) {\n this.sliderInit();\n } \n });\n }\n\n events() {\n this.resizeEvents();\n }\n}\n\nexport default sliderSwiper;\nnew sliderSwiper();\n","module.exports = window[\"jQuery\"];"],"names":["sliderSwiper","this","$","Swiper","spaceBetween","autoHeight","speed","grabCursor","allowTouchMove","pagination","el","clickable","navigation","nextEl","prevEl","breakpoints","on","resize","destroy","slideChange","document","swiperImg","swiptoval","swip","swiperText","module","exports","window"],"sourceRoot":""}