{"version":3,"file":"elements-testimonials-js-CTGxhp_g.js","sources":["../src/entries/elements/testimonials.js"],"sourcesContent":["import Swiper from \"swiper\";\nimport { A11y, Autoplay, Pagination } from \"swiper/modules\";\nimport \"@/styles/components/slider.css\";\n\ndocument.querySelectorAll(\".element-testimonials\").forEach((el) => {\n const container = el.querySelector(\".swiper\");\n\n const swiper = new Swiper(container, {\n modules: [A11y, Autoplay, Pagination],\n slidesPerView: 1,\n autoplay: {\n delay: 4000,\n pauseOnMouseEnter: true,\n },\n speed: 1000,\n spaceBetween: 16,\n pagination: {\n el: el.querySelector(\".slider-pagination\"),\n clickable: true,\n },\n breakpoints: {\n 768: {\n centerInsufficientSlides: true,\n slidesPerView: 2,\n spaceBetween: 24,\n },\n 1536: {\n centerInsufficientSlides: true,\n slidesPerView: 2.5,\n spaceBetween: 24,\n },\n 1800: {\n centerInsufficientSlides: true,\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":["el","container","swiper","Swiper","A11y","Autoplay","Pagination","observer","e"],"mappings":"wIAIA,SAAS,iBAAiB,uBAAuB,EAAE,QAASA,GAAO,CACjE,MAAMC,EAAYD,EAAG,cAAc,SAAS,EAEtCE,EAAS,IAAIC,EAAOF,EAAW,CACnC,QAAS,CAACG,EAAMC,EAAUC,CAAU,EACpC,cAAe,EACf,SAAU,CACR,MAAO,IACP,kBAAmB,EACpB,EACD,MAAO,IACP,aAAc,GACd,WAAY,CACV,GAAIN,EAAG,cAAc,oBAAoB,EACzC,UAAW,EACZ,EACD,YAAa,CACX,IAAK,CACH,yBAA0B,GAC1B,cAAe,EACf,aAAc,EACf,EACD,KAAM,CACJ,yBAA0B,GAC1B,cAAe,IACf,aAAc,EACf,EACD,KAAM,CACJ,yBAA0B,GAC1B,cAAe,EACf,aAAc,EACf,CACF,CACL,CAAG,EAEDE,EAAO,SAAS,OAEhB,MAAMK,EAAW,IAAI,qBACnB,CAAC,CAACC,CAAC,IAAM,CACHA,EAAE,iBACJN,EAAO,SAAS,QAChBK,EAAS,WAAU,EAEtB,EACD,CACE,UAAW,CAAC,EAAG,CAChB,CACL,EAEEA,EAAS,QAAQP,CAAE,CACrB,CAAC"}