{"version":3,"file":"elements-testimonials.js","mappings":"yJAIAA,SAASC,iBAAiB,yBAAyBC,SAASC,IAC1D,MAAMC,EAAYD,EAAGE,cAAc,WAEnC,IAAIC,EAAAA,EAAOF,EAAW,CACpBG,QAAS,CAACC,EAAAA,GAAMC,EAAAA,GAAYC,EAAAA,IAC5BC,cAAe,EACfC,aAAc,GACdC,MAAO,IACPC,eAAe,EACfC,UAAW,GACXC,WAAY,CACVC,OAAQd,EAAGE,cAAc,uBACzBa,OAAQf,EAAGE,cAAc,wBAE3Bc,WAAY,CACVhB,GAAIA,EAAGE,cAAc,sBACrBe,KAAM,SACNC,aAAcA,CAACC,EAAGC,EAASC,IACjB,WAAUD,QAAcC,KAGpCC,YAAa,CACX,IAAK,CACHd,cAAe,GAEjB,KAAM,CACJA,cAAe,KAGnB,G","sources":["webpack://silverstripe-base/./themes/app/src/elements/testimonials.js"],"sourcesContent":["import Swiper from \"swiper\";\nimport { A11y, Navigation, Pagination } from \"swiper/modules\";\nimport \"@styles/components/slider.css\";\n\ndocument.querySelectorAll(\".element-testimonials\").forEach((el) => {\n const container = el.querySelector(\".swiper\");\n\n new Swiper(container, {\n modules: [A11y, Navigation, Pagination],\n slidesPerView: 1,\n spaceBetween: 24,\n speed: 500,\n simulateTouch: false,\n threshold: 25,\n navigation: {\n nextEl: el.querySelector(\".slider-button-next\"),\n prevEl: el.querySelector(\".slider-button-prev\"),\n },\n pagination: {\n el: el.querySelector(\".slider-pagination\"),\n type: \"custom\",\n renderCustom: (_, current, total) => {\n return `Showing ${current} of ${total}`;\n },\n },\n breakpoints: {\n 768: {\n slidesPerView: 2,\n },\n 1440: {\n slidesPerView: 3,\n },\n },\n });\n});\n"],"names":["document","querySelectorAll","forEach","el","container","querySelector","Swiper","modules","A11y","Navigation","Pagination","slidesPerView","spaceBetween","speed","simulateTouch","threshold","navigation","nextEl","prevEl","pagination","type","renderCustom","_","current","total","breakpoints"],"sourceRoot":""}