{"version":3,"file":"zoomv.3217.min.js?t=6c44ef09099a75713267","mappings":"wzBAqCA,QArCyB,WAUtB,O,EATD,SAAAA,EAAYC,I,4FAAIC,CAAA,KAAAF,GACdG,KAAKF,GAAKA,EACVE,KAAKC,OAAS,CACZC,QAASJ,EAAGK,cAAc,WAC1BC,QAASN,EAAGO,iBAAiB,iCAG/BL,KAAKM,aACLN,KAAKO,aACP,G,EAAC,EAAAC,IAAA,aAAAC,MAED,WACE,IAAQP,EAAYF,KAAKC,OAAjBC,QACRF,KAAKU,OAAS,IAAIC,OAAOT,EAAS,CAChCU,cAAe,EAEfC,aAAc,GACdC,WAAY,CACVC,OAAQ,sBACRC,OAAQ,wBAGd,GAAC,CAAAR,IAAA,cAAAC,MAED,WACsBT,KAAKC,OAAjBG,QACAa,SAAQ,SAACC,GACFA,EAAMf,cAAc,uCAG/Be,EAAMC,UAAUC,IAAI,yCAExB,GACF,M,6EAAC,CAlCsB,E","sources":["webpack://@hero-digital/zoom/./src/components/foundation/TestimonialCarousel/TestimonialCarousel.js"],"sourcesContent":["class TestimonialCarousel {\r\n constructor(el) {\r\n this.el = el\r\n this.domMap = {\r\n $swiper: el.querySelector('.swiper'),\r\n $slides: el.querySelectorAll('.testimonial-carousel__slide')\r\n }\r\n\r\n this.initSwiper()\r\n this.detectImage()\r\n }\r\n\r\n initSwiper() {\r\n const { $swiper } = this.domMap\r\n this.swiper = new Swiper($swiper, {\r\n slidesPerView: 1,\r\n //autoHeight: true,\r\n spaceBetween: 20,\r\n navigation: {\r\n nextEl: '.swiper-button-next',\r\n prevEl: '.swiper-button-prev'\r\n }\r\n })\r\n }\r\n\r\n detectImage() {\r\n const { $slides } = this.domMap\r\n $slides.forEach((slide) => {\r\n const $img = slide.querySelector('.testimonial-carousel__slide-image')\r\n\r\n if ($img) {\r\n slide.classList.add('testimonial-carousel__slide--has-image')\r\n }\r\n })\r\n }\r\n}\r\n\r\nexport default TestimonialCarousel\r\n"],"names":["TestimonialCarousel","el","_classCallCheck","this","domMap","$swiper","querySelector","$slides","querySelectorAll","initSwiper","detectImage","key","value","swiper","Swiper","slidesPerView","spaceBetween","navigation","nextEl","prevEl","forEach","slide","classList","add"],"sourceRoot":""}