{"version":3,"sources":["facilities/facilities.js"],"names":["document","addEventListener","scrollContainer","querySelector","event","maxScrollLeft","scrollWidth","clientWidth","scrollLeft","deltaY","preventDefault"],"mappings":"AAAA,aAAAA,SAASC,iBAAiB,oBAAoB,WAC1C,IAAMC,EAAkBF,SAASG,cAAc,yCAC/CD,EAAgBD,iBAAiB,SAAS,SAACG,GACvC,IAAMC,EAAgBH,EAAgBI,YAAcJ,EAAgBK,YAGhC,IAA/BL,EAAgBM,YAAoBJ,EAAMK,OAAS,GACnDP,EAAgBM,aAAeH,GAAiBD,EAAMK,OAAS,IAKpEL,EAAMM,iBACNR,EAAgBM,YAAcJ,EAAMK,OACxC,GAEJ","file":"facilities.min.js","sourcesContent":["document.addEventListener(\"DOMContentLoaded\", () => {\n const scrollContainer = document.querySelector('.facilities-container .swiper-wrapper');\n scrollContainer.addEventListener('wheel', (event) => {\n const maxScrollLeft = scrollContainer.scrollWidth - scrollContainer.clientWidth;\n\n if (\n (scrollContainer.scrollLeft === 0 && event.deltaY < 0) || // В начале и прокручиваем вверх\n (scrollContainer.scrollLeft === maxScrollLeft && event.deltaY > 0) // В конце и прокручиваем вниз\n ) {\n return;\n }\n\n event.preventDefault();\n scrollContainer.scrollLeft += event.deltaY;\n });\n\n})\n"]}