{"version":3,"file":"scripts/4566.js","mappings":"uHAEA,MAAMA,EAAiCC,SAASC,iBAAiB,oCAEjEC,MAAMC,UAAUC,QAAQC,KAAKN,GAAgC,CAACO,EAASC,KACnED,EAAQE,UAAUC,IAAI,WAAWF,KAEjC,IAAIG,EAAY,IAAI,KAAO,4CAA4CH,YAAiB,CACpFI,QAAS,CAAC,KAAY,KAAU,MAChCC,cAAe,EACfC,aAAc,GACdC,eAAgB,EAChBC,gBAAgB,EAChBC,MAAO,KACPC,MAAM,EACNC,SAAU,CACNC,SAAS,EACTC,gBAAgB,GAEpBC,WAAY,CACRC,OAAQhB,EAAQiB,cAAc,wCAC9BC,OAAQlB,EAAQiB,cAAc,uCAC9BE,cAAe,sBAGnBC,YAAa,CACT,IAAK,CACDb,aAAc,GAElB,KAAM,CACFA,aAAc,MAc1B,SAASc,IACLrB,EAAQiB,cAAc,uCAAuCK,UAAY,EACzEtB,EAAQiB,cAAc,wCAAwCK,UAAY,CAC9E,CAZAlB,EAAUmB,GAAG,mBAAmB,WAC5B,MAAMC,EAAsBxB,EAAQiB,cAAc,wCAC9Cb,EAAUqB,UAAY,EAAI,GAC1BD,EAAoBE,UAAY,IAAItB,EAAUqB,UAAY,IAE1DD,EAAoBE,UAAYtB,EAAUqB,UAAY,CAE9D,IAQArB,EAAUmB,GAAG,YACRI,IACGN,IACAzB,MAAMC,UAAUC,QAAQC,KAAK4B,EAAEC,QAC3B,CAACC,EAAOC,KACJD,EAAME,iBAAiB,WACnB,KACIV,IACAM,EAAEK,QAAQF,EAAG,IAAI,GACnB,GACR,GACR,G","sources":["webpack://wwwroot/./src/scripts/floatingCarouselSlider.js"],"sourcesContent":["import { Swiper, Navigation, Keyboard, A11y } from 'swiper';\r\n\r\nconst teaserFloatingCarouselSections = document.querySelectorAll(\".adm-section-c29-teaser-floating\");\r\n\r\nArray.prototype.forEach.call(teaserFloatingCarouselSections, (section, index) => {\r\n section.classList.add(`section-${index}`);\r\n\r\n var swiperc29 = new Swiper(`.adm-section-c29-teaser-floating.section-${index} .swiper`, {\r\n modules: [Navigation, Keyboard, A11y],\r\n slidesPerView: 4,\r\n spaceBetween: 16,\r\n slidesPerGroup: 1,\r\n centeredSlides: true,\r\n speed: 1500,\r\n a11y: false,\r\n keyboard: {\r\n enabled: true,\r\n onlyInViewPort: false\r\n },\r\n navigation: {\r\n nextEl: section.querySelector(\".adm-c29-teaser-floating-arrow-right\"),\r\n prevEl: section.querySelector(\".adm-c29-teaser-floating-arrow-left\"),\r\n disabledClass: \"adm-arrow-disabled\"\r\n },\r\n\r\n breakpoints: {\r\n 767: {\r\n spaceBetween: 0\r\n },\r\n 1259: {\r\n spaceBetween: 0\r\n }\r\n }\r\n });\r\n\r\n swiperc29.on(\"realIndexChange\", function () {\r\n const paginationSwiperC29 = section.querySelector(\".adm-c29-teaser-floating-currentCard\");\r\n if (swiperc29.realIndex + 1 < 10) {\r\n paginationSwiperC29.innerHTML = `0${swiperc29.realIndex + 1}`;\r\n } else {\r\n paginationSwiperC29.innerHTML = swiperc29.realIndex + 1;\r\n }\r\n });\r\n\r\n function disableFloatingCarouselArrows() {\r\n section.querySelector(\".adm-c29-teaser-floating-arrow-left\").tabIndex = -1;\r\n section.querySelector(\".adm-c29-teaser-floating-arrow-right\").tabIndex = -1;\r\n }\r\n\r\n\r\n swiperc29.on(\"keyPress\",\r\n (s) => {\r\n disableFloatingCarouselArrows();\r\n Array.prototype.forEach.call(s.slides,\r\n (slide, i) => {\r\n slide.addEventListener(\"focusin\",\r\n () => {\r\n disableFloatingCarouselArrows();\r\n s.slideTo(i, 100);\r\n });\r\n });\r\n });\r\n});"],"names":["teaserFloatingCarouselSections","document","querySelectorAll","Array","prototype","forEach","call","section","index","classList","add","swiperc29","modules","slidesPerView","spaceBetween","slidesPerGroup","centeredSlides","speed","a11y","keyboard","enabled","onlyInViewPort","navigation","nextEl","querySelector","prevEl","disabledClass","breakpoints","disableFloatingCarouselArrows","tabIndex","on","paginationSwiperC29","realIndex","innerHTML","s","slides","slide","i","addEventListener","slideTo"],"sourceRoot":""}