{"version":3,"file":"elements-callout-icon-list.js","mappings":"wJAIAA,SAASC,iBAAiB,4BAA4BC,SAASC,IAC7D,MAAMC,EAAYD,EAAGE,cAAc,WAC7BC,EAAmBH,EAAGE,cAAc,sBAEpCE,EAAS,IAAIC,EAAAA,EAAOJ,EAAW,CACnCK,QAAS,CAACC,EAAAA,GAAMC,EAAAA,GAAUC,EAAAA,GAAYC,EAAAA,IACtCC,SAAU,CACRC,MAAO,KAETC,OAAQ,OACRC,WAAY,CACVC,WAAW,GAEbC,MAAM,EACNC,MAAO,IACPC,WAAY,CACVlB,GAAIG,EACJgB,WAAW,GAEbC,aAAc,GACdC,YAAa,CACX,IAAK,CACHR,OAAQ,QACRS,cAAe,EACfF,aAAc,OAKpBhB,EAAOO,SAASY,OAEhB,MAAMC,EAAW,IAAIC,sBACnB,EAAEC,MACIA,EAAEC,iBACJvB,EAAOO,SAASiB,QAChBJ,EAASK,aACX,GAEF,CACEC,UAAW,CAAC,MAIhBN,EAASO,QAAQ/B,EAAG,G","sources":["webpack://silverstripe-base/./themes/app/src/elements/callout-icon-list.js"],"sourcesContent":["import Swiper from \"swiper\";\nimport { A11y, Autoplay, EffectFade, Pagination } from \"swiper/modules\";\nimport \"@styles/components/slider.css\";\n\ndocument.querySelectorAll(\".element-callouticonlist\").forEach((el) => {\n const container = el.querySelector(\".swiper\");\n const sliderPagination = el.querySelector(\".slider-pagination\");\n\n const swiper = new Swiper(container, {\n modules: [A11y, Autoplay, EffectFade, Pagination],\n autoplay: {\n delay: 4000,\n },\n effect: \"fade\",\n fadeEffect: {\n crossFade: true,\n },\n loop: true,\n speed: 700,\n pagination: {\n el: sliderPagination,\n clickable: true,\n },\n spaceBetween: 16,\n breakpoints: {\n 768: {\n effect: \"slide\",\n slidesPerView: 3,\n spaceBetween: 24,\n },\n },\n });\n\n swiper.autoplay.stop();\n\n const observer = new IntersectionObserver(\n ([e]) => {\n if (e.isIntersecting) {\n swiper.autoplay.start();\n observer.disconnect();\n }\n },\n {\n threshold: [0.7],\n },\n );\n\n observer.observe(el);\n});\n"],"names":["document","querySelectorAll","forEach","el","container","querySelector","sliderPagination","swiper","Swiper","modules","A11y","Autoplay","EffectFade","Pagination","autoplay","delay","effect","fadeEffect","crossFade","loop","speed","pagination","clickable","spaceBetween","breakpoints","slidesPerView","stop","observer","IntersectionObserver","e","isIntersecting","start","disconnect","threshold","observe"],"sourceRoot":""}