{"version":3,"sources":["Carousel/main.js"],"names":["require","$","each","index","swiperContainer","data","swiperParameters","loop","slidesPerView","numberOfVisibleSlides","spaceBetween","effect","transitionEffect","speed","transitionTime","pagination","el","attr","clickable","navigation","nextEl","prevEl","breakpoints","1024","768","0","autoplaySeconds","autoplay","delay","Swiper","define"],"mappings":"AAAAA,WAEA,YAEA,WAEAC,EAAA,wBAAAC,KAAA,SAAAC,EAAAC,GACA,GAAAC,GAAAJ,EAAAG,GAAAC,OACAC,GAEAC,MAAA,EACAC,cAAAH,EAAAI,sBAAAJ,EAAAI,sBAAA,OACAC,aAAA,GACAC,OAAAN,EAAAO,iBACAC,MAAAR,EAAAS,eAEAC,YACAC,GAAA,IAAAf,EAAAG,GAAAa,KAAA,MAAA,sBACAC,WAAA,GAIAC,YACAC,OAAA,IAAAnB,EAAAG,GAAAa,KAAA,MAAA,uBACAI,OAAA,IAAApB,EAAAG,GAAAa,KAAA,MAAA,wBAGA,UAAAX,EAAAE,gBAEAF,EAAAgB,aAEAC,MACAf,cAAAH,EAAAI,uBAGAe,KACAhB,cAAAH,EAAAI,sBAAA,EAAA,EAAAJ,EAAAI,sBAAA,EAAA,GAGAgB,GACAjB,cAAAH,EAAAI,sBAAA,EAAA,EAAAJ,EAAAI,sBAAA,EAAA,KAIAJ,EAAAqB,kBACApB,EAAAqB,UAAAC,MAAA,IAAAvB,EAAAqB,kBAEA,GAAAG,QAAAzB,EAAAE,UAUAwB,OAAA,gBAAA","file":"Carousel.js","sourcesContent":["require([\r\n],\r\n function () {\r\n\r\n function initAllCarouselsOnPage() {\r\n // process all elements with selector #carousel_...\r\n $(\"div[id^='carousel_']\").each(function (index, swiperContainer) {\r\n var data = $(swiperContainer).data();\r\n var swiperParameters = {\r\n // Optional parameters\r\n loop: false,\r\n slidesPerView: data.numberOfVisibleSlides ? data.numberOfVisibleSlides : 'auto',\r\n spaceBetween: 20,\r\n effect: data.transitionEffect,\r\n speed: data.transitionTime,\r\n // Pagination\r\n pagination: {\r\n el: '#' + $(swiperContainer).attr('id') + ' .swiper-pagination',\r\n clickable: true\r\n },\r\n\r\n // Navigation arrows\r\n navigation: {\r\n nextEl: '#' + $(swiperContainer).attr('id') + ' .swiper-button-next',\r\n prevEl: '#' + $(swiperContainer).attr('id') + ' .swiper-button-prev'\r\n }\r\n };\r\n if (swiperParameters.slidesPerView !== 'auto') {\r\n // reduce number of visible slides on smaller screens\r\n swiperParameters.breakpoints = {\r\n // on large screens (width >= 1024px ) we keep the initial number of visible slides\r\n 1024: {\r\n slidesPerView: data.numberOfVisibleSlides\r\n },\r\n // on smaller screens ( 768px <= width < 1024px ) we lower the number of visible slides by 1 (if possible)\r\n 768: {\r\n slidesPerView: (data.numberOfVisibleSlides - 1) > 0 ? (data.numberOfVisibleSlides - 1) : 1\r\n },\r\n // on really small screens ( 0 <= width < 768px ) we lower the number of visible slides by 2 (if possible)\r\n 0: {\r\n slidesPerView: (data.numberOfVisibleSlides - 2) > 0 ? (data.numberOfVisibleSlides - 2) : 1\r\n }\r\n };\r\n }\r\n if (data.autoplaySeconds) {\r\n swiperParameters.autoplay = { delay: data.autoplaySeconds * 1000 };\r\n }\r\n var swiper = new Swiper(swiperContainer, swiperParameters);\r\n });\r\n\r\n }\r\n\r\n initAllCarouselsOnPage();\r\n\r\n }\r\n);\r\n\ndefine(\"Carousel/main\", function(){});\n\n"]}