{"version":3,"file":"508.2106eaf88c72d51a5377.js","mappings":"6IAOA,MAAMA,EAEFC,WAAAA,CAAYC,GACRC,KAAKD,GAAKA,EACVC,KAAKC,QAAUF,EAAGG,cAAc,WAChCF,KAAKG,QAAUJ,EAAGG,cAAc,oBAChCF,KAAKI,QAAUL,EAAGG,cAAc,oBACb,MAAhBF,KAAKC,UAEDD,KAAKD,GAAGM,UAAUC,SAAS,mCAE1BN,KAAKO,OAAS,IAAIC,EAAAA,GAAOR,KAAKC,QAAS,CAEnCQ,QAAS,CAACC,EAAAA,GAAYC,EAAAA,IACtBC,cAAe,EACfC,gBAAgB,EAChBC,MAAM,EACNC,aAAc,GACdC,YAAa,CAET,IAAK,CACDJ,cAAe,EACfG,aAAc,KAItBE,WAAY,CACVlB,GAAIA,EAAGG,cAAc,sBACrBgB,WAAW,GAGbC,WAAY,CACVC,OAAQpB,KAAKG,QACbkB,OAAQrB,KAAKI,WAKnBJ,KAAKO,OAAS,IAAIC,EAAAA,GAAOR,KAAKC,QAAS,CAEnCQ,QAAS,CAACC,EAAAA,GAAYC,EAAAA,IACtBC,cAAe,EACfC,gBAAgB,EAChBC,MAAM,EAENG,WAAY,CACVlB,GAAIA,EAAGG,cAAc,sBACrBgB,WAAW,GAGbC,WAAY,CACVC,OAAQpB,KAAKG,QACbkB,OAAQrB,KAAKI,WAK/B,EAKG,SAASkB,EAAWC,GAEvBA,EAASC,SAASC,IAEQ,IAAlBA,EAAKC,UACL,IAAI7B,EAAqB4B,EAC7B,GAGR,C","sources":["webpack://UKCISA/./wwwroot/app/src/modules/testimonials-carousel/testimonials-carousel.js"],"sourcesContent":["// core version + navigation, pagination modules:\r\nimport Swiper, { Pagination, Navigation } from 'swiper';\r\n// swiper core styles\r\nimport 'swiper/css/bundle';\r\n\r\nimport './testimonials-carousel.scss';\r\n\r\nclass testimonialsCarousel {\r\n\r\n    constructor(el) {\r\n        this.el = el;\r\n        this.wrapper = el.querySelector('.swiper');\r\n        this.prevBtn = el.querySelector('.swiper-prev-btn');\r\n        this.nextBtn = el.querySelector('.swiper-next-btn');\r\n        if(this.wrapper != null) {\r\n            // layout mode?\r\n            if(this.el.classList.contains('testimonials-carousel--multiple')) {\r\n                // multiple layout mode\r\n                this.swiper = new Swiper(this.wrapper, {\r\n                    // Optional parameters\r\n                    modules: [Pagination, Navigation],\r\n                    slidesPerView: 1,\r\n                    centeredSlides: false,\r\n                    loop: true,\r\n                    spaceBetween: 50,\r\n                    breakpoints: {\r\n                        // when window width is >= 'lg'\r\n                        992: {\r\n                            slidesPerView: 2,\r\n                            spaceBetween: 60,\r\n                        }\r\n                    },\r\n                    // Pagination\r\n                    pagination: {\r\n                      el: el.querySelector('.swiper-pagination'),\r\n                      clickable: true,\r\n                    },\r\n                    // Navigation arrows\r\n                    navigation: {\r\n                      prevEl: this.prevBtn,\r\n                      nextEl: this.nextBtn\r\n                    },\r\n                });\r\n            } else {\r\n                // single layout mode\r\n                this.swiper = new Swiper(this.wrapper, {\r\n                    // Optional parameters\r\n                    modules: [Pagination, Navigation],\r\n                    slidesPerView: 1,\r\n                    centeredSlides: false,\r\n                    loop: true,\r\n                    // Pagination\r\n                    pagination: {\r\n                      el: el.querySelector('.swiper-pagination'),\r\n                      clickable: true,\r\n                    },\r\n                    // Navigation arrows\r\n                    navigation: {\r\n                      prevEl: this.prevBtn,\r\n                      nextEl: this.nextBtn\r\n                    },\r\n                });\r\n            }\r\n        }\r\n    }\r\n\r\n}\r\n\r\n// export the default function to create\r\nexport function createFrom(wrappers) {\r\n\r\n    wrappers.forEach((node) => {\r\n        // if node is an element\r\n        if (node.nodeType === 1) {\r\n            new testimonialsCarousel(node);\r\n        }\r\n    });\r\n\r\n}\r\n"],"names":["testimonialsCarousel","constructor","el","this","wrapper","querySelector","prevBtn","nextBtn","classList","contains","swiper","Swiper","modules","Pagination","Navigation","slidesPerView","centeredSlides","loop","spaceBetween","breakpoints","pagination","clickable","navigation","prevEl","nextEl","createFrom","wrappers","forEach","node","nodeType"],"sourceRoot":""}