{"version":3,"file":"components-photo-gallery-slider.js","mappings":"0JAGAA,SAASC,iBAAiB,+BAA+BC,SAASC,IAChE,MAAMC,EAAYD,EAAGE,cAAc,WAC7BC,EAAYH,EAAGF,iBAAiB,iBAAiBM,OAEvD,IAAIC,EAAAA,EAAOJ,EAAW,CACpBK,QAAS,CAACC,EAAAA,GAAMC,EAAAA,IAChBC,cAAe,EACfC,aAAc,GACdC,MAAO,IACPC,MAAM,EACNC,WAAY,CACVC,OAAQd,EAAGE,cAAc,uBACzBa,OAAQf,EAAGE,cAAc,wBAE3Bc,eAAgBb,EAAY,EAC5Bc,YAAa,CACX,IAAK,CACHR,cAAe,EACfC,aAAc,IAEhB,KAAM,CACJD,cAAe,EACfC,aAAc,IAEhB,KAAM,CACJD,cAAe,EACfC,aAAc,MAGlB,G","sources":["webpack://silverstripe-base/./themes/app/src/components/photo-gallery-slider.js"],"sourcesContent":["import Swiper from \"swiper\";\nimport { A11y, Navigation } from \"swiper/modules\";\n\ndocument.querySelectorAll(\".element-photogalleryslider\").forEach((el) => {\n const container = el.querySelector(\".swiper\");\n const numSlides = el.querySelectorAll(\".swiper-slide\").length;\n\n new Swiper(container, {\n modules: [A11y, Navigation],\n slidesPerView: 2,\n spaceBetween: 16,\n speed: 500,\n loop: true,\n navigation: {\n nextEl: el.querySelector(\".slider-button-next\"),\n prevEl: el.querySelector(\".slider-button-prev\"),\n },\n centeredSlides: numSlides < 2,\n breakpoints: {\n 768: {\n slidesPerView: 3,\n spaceBetween: 24,\n },\n 1280: {\n slidesPerView: 4,\n spaceBetween: 30,\n },\n 1700: {\n slidesPerView: 5,\n spaceBetween: 30,\n },\n },\n });\n});\n"],"names":["document","querySelectorAll","forEach","el","container","querySelector","numSlides","length","Swiper","modules","A11y","Navigation","slidesPerView","spaceBetween","speed","loop","navigation","nextEl","prevEl","centeredSlides","breakpoints"],"sourceRoot":""}