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,SAAQ+C,GAAUA,EAAOR,UAAY,IAClEM,EAAEP,OAAOtC,SAAQ,CAACgD,EAAOb,KACrBa,EAAMC,iBAAiB,WACnB,KACID,EAAMxC,cAAc,uCAChBJ,UAAUC,IAAI,2BAClBwC,EAAEK,QAAQf,EAAY,IAAI,GAC5B,GACR,GACJ,GAEN,IAAI,IAKZ,MAAMgB,EAAoCvD,SAASC,iBAAiB,iDAEpEC,MAAMC,UAAUC,QAAQC,KAAKkD,GAAmC,CAACC,EAAkCjD,KAC/FiD,EAAiChD,UAAUC,IAAI,WAAWF,KAE1D,IAAIkD,EAAkB,IAAI,KAAO,yDAAyDlD,YACtF,CACIS,QAAS,CAAC,KAAM,MAChBC,cAAe,EACfE,aAAc,EACdC,eAAgB,EAChBsC,gBAAgB,EAChBnC,KAAM,CACFC,iBAAkB,iBAClBC,iBAAkB,cAEtBI,WAAY,CACRC,GAAI,yDAAyDvB,sCAC7DwB,WAAW,EACXC,aAAc,SAAUC,EAAaC,GACjC,MAAO,gBACaA,OAAeD,EAAc,UAErD,KAIZ,MAAM0B,EAA0BH,EAAiC5C,cAAc,qCAAqCyB,SAC9GuB,EAA0BJ,EAAiC5C,cAAc,mDAE/E6C,EAAgBb,GAAG,4BACf,WACI,IAAK,IAAIH,EAAI,EAAGA,EAAIkB,EAAwBd,OAAQJ,IAChDmB,GACIpD,UAAUsC,OAAO,QAAQL,EAAI,KAErCmB,GACIpD,UAAUC,IAAI,QAAQgD,EAAgBV,UAAY,IAC1D,GAAE,G","sources":["webpack://wwwroot/./src/scripts/imageCarouselTeaserSlider.js"],"sourcesContent":["import { Swiper, Keyboard, Pagination, A11y } from 'swiper';\r\n\r\nconst imageCarouselTeaserSections = document.querySelectorAll(\".adm-section-c28-image-carousel-teaser\");\r\n\r\nArray.prototype.forEach.call(imageCarouselTeaserSections, (imageCarouselTeaserSection, index) => {\r\n imageCarouselTeaserSection.classList.add(`section-${index}`);\r\n\r\n if (window.innerWidth < 1259 && window.innerWidth > 767) {\r\n imageCarouselTeaserSection.querySelector(\".swiper\").setAttribute(\"dir\", \"rtl\");\r\n }\r\n\r\n setTimeout(() => {\r\n var swiperc28 = new Swiper(`.adm-section-c28-image-carousel-teaser.section-${index} .swiper`,\r\n {\r\n modules: [A11y, Keyboard, Pagination],\r\n slidesPerView: imageCarouselTeaserSection.classList.contains(\"cards-3\") ? 4 : 5,\r\n spaceBetween: 0,\r\n slidesPerGroup: 1,\r\n loop: true,\r\n loopFillGroupWithBlank: true,\r\n a11y: {\r\n prevSlideMessage: \"Previous slide\",\r\n nextSlideMessage: \"Next slide\"\r\n },\r\n keyboard: {\r\n enabled: true,\r\n onlyInViewPort: false,\r\n },\r\n pagination: {\r\n el: `.adm-section-c28-image-carousel-teaser.section-${index} .adm-c28-swiper-pagination`,\r\n clickable: true,\r\n renderBullet: function (bulletIndex, className) {\r\n return (\r\n `0${bulletIndex + 1}`\r\n );\r\n }\r\n }\r\n });\r\n\r\n\r\n const scrollBarPosition = imageCarouselTeaserSection.querySelector(\r\n \".adm-svg-c28-image-carousel-teaser-scroll-bar-2\"\r\n );\r\n const paginationNumbers = imageCarouselTeaserSection.querySelector(\".adm-c28-swiper-pagination\").children;\r\n\r\n swiperc28.on(\"slideChangeTransitionEnd\",\r\n function () {\r\n for (let i = 0; i < paginationNumbers.length; i++) {\r\n scrollBarPosition?.\r\n classList.remove(`card-${i + 1}`);\r\n }\r\n scrollBarPosition?.\r\n classList.add(`card-${swiperc28.realIndex + 1}`);\r\n });\r\n\r\n //keyboard tabbing\r\n function addTabIndexToSlides(slideIndex, total) {\r\n for (let i = slideIndex; i < total; i++) {\r\n swiperc28.slides[i].tabIndex = 0;\r\n }\r\n }\r\n\r\n if (swiperc28.slides.length === 16) {\r\n addTabIndexToSlides(5, 11);\r\n } else {\r\n const slidesCount = swiperc28.slides.length / 3;\r\n const total = slidesCount * 2;\r\n addTabIndexToSlides(slidesCount, total);\r\n }\r\n\r\n swiperc28.on(\"keyPress\",\r\n (s) => {\r\n swiperc28.pagination.bullets.forEach(bullet => bullet.tabIndex = -1);\r\n s.slides.forEach((slide, slideIndex) => {\r\n slide.addEventListener(\"focusin\",\r\n () => {\r\n slide.querySelector(\".adm-div-c10-card-custom-position-\")?.\r\n classList.add(\"adm-card-bottom-visible\");\r\n s.slideTo(slideIndex, 300);\r\n });\r\n });\r\n });\r\n },\r\n 100);\r\n});\r\n\r\n\r\n//Mobile swiper\r\nconst imageCarouselTeaserMobileSections = document.querySelectorAll(\".adm-section-c28-image-carousel-teaser-mobile\");\r\n\r\nArray.prototype.forEach.call(imageCarouselTeaserMobileSections, (imageCarouselTeaserMobileSection, index) => {\r\n imageCarouselTeaserMobileSection.classList.add(`section-${index}`);\r\n\r\n var swiperc28Mobile = new Swiper(`.adm-section-c28-image-carousel-teaser-mobile.section-${index} .swiper`,\r\n {\r\n modules: [A11y, Pagination],\r\n slidesPerView: 6,\r\n spaceBetween: 0,\r\n slidesPerGroup: 1,\r\n centeredSlides: true,\r\n a11y: {\r\n prevSlideMessage: \"Previous slide\",\r\n nextSlideMessage: \"Next slide\"\r\n },\r\n pagination: {\r\n el: `.adm-section-c28-image-carousel-teaser-mobile.section-${index} .adm-c28-swiper-pagination-mobile`,\r\n clickable: true,\r\n renderBullet: function (bulletIndex, className) {\r\n return (\r\n `0${bulletIndex + 1}`\r\n );\r\n }\r\n }\r\n });\r\n\r\n const paginationNumbersMobile = imageCarouselTeaserMobileSection.querySelector(\".adm-c28-swiper-pagination-mobile\").children;\r\n const scrollBarPositionMobile = imageCarouselTeaserMobileSection.querySelector(\".adm-svg-c28-image-carousel-teaser-scroll-bar-2\");\r\n\r\n swiperc28Mobile.on(\"slideChangeTransitionEnd\",\r\n function () {\r\n for (let i = 0; i < paginationNumbersMobile.length; i++) {\r\n scrollBarPositionMobile?.\r\n classList.remove(`card-${i + 1}`);\r\n }\r\n scrollBarPositionMobile?.\r\n classList.add(`card-${swiperc28Mobile.realIndex + 1}`);\r\n });\r\n});"],"names":["imageCarouselTeaserSections","document","querySelectorAll","Array","prototype","forEach","call","imageCarouselTeaserSection","index","classList","add","window","innerWidth","querySelector","setAttribute","setTimeout","swiperc28","modules","slidesPerView","contains","spaceBetween","slidesPerGroup","loop","loopFillGroupWithBlank","a11y","prevSlideMessage","nextSlideMessage","keyboard","enabled","onlyInViewPort","pagination","el","clickable","renderBullet","bulletIndex","className","scrollBarPosition","paginationNumbers","children","addTabIndexToSlides","slideIndex","total","i","slides","tabIndex","on","length","remove","realIndex","slidesCount","s","bullets","bullet","slide","addEventListener","slideTo","imageCarouselTeaserMobileSections","imageCarouselTeaserMobileSection","swiperc28Mobile","centeredSlides","paginationNumbersMobile","scrollBarPositionMobile"],"sourceRoot":""}