{"version":3,"file":"team-i_pBbfFN.js","sources":["../../../_frontend/entrypoints/js/team.js"],"sourcesContent":["import Swiper from \"swiper\";\nimport SwiperCore, { Navigation, Controller, Autoplay } from \"swiper/core\";\n\nSwiperCore.use([Navigation, Controller, Autoplay]);\n\n(function () {\n const employeeSlider = document.querySelector(\".employee-slider\");\n if (!employeeSlider) {\n return;\n }\n // breakpoint where swiper will be destroyed\n // and switches to a dual-column layout\n const breakpoint = window.matchMedia(\"(min-width:767px)\");\n // keep track of swiper instances to destroy later\n let mySwiper;\n //////////////////////////////////////////////////////////////////\n //////////////////////////////////////////////////////////////////\n //////////////////////////////////////////////////////////////////\n const breakpointChecker = function () {\n // if larger viewport and multi-row layout needed\n if (breakpoint.matches === true) {\n // clean up old instances and inline styles when available\n if (mySwiper !== undefined) mySwiper.destroy(true, true);\n // or/and do nothing\n return;\n // else if a small viewport and single column layout needed\n } else if (breakpoint.matches === false) {\n // fire small viewport version of swiper\n return enableSwiper();\n }\n };\n //////////////////////////////////////////////////////////////////\n //////////////////////////////////////////////////////////////////\n //////////////////////////////////////////////////////////////////\n const enableSwiper = function () {\n mySwiper = new Swiper(\".employee-slider\", {\n loop: true,\n slidesPerView: 1,\n spaceBetween: \"17%\",\n navigation: {\n nextEl: \".swiper-button-next\",\n prevEl: \".swiper-button-prev\",\n },\n });\n };\n //////////////////////////////////////////////////////////////////\n //////////////////////////////////////////////////////////////////\n //////////////////////////////////////////////////////////////////\n // keep an eye on viewport size changes\n breakpoint.addEventListener(\"change\", breakpointChecker);\n // kickstart\n breakpointChecker();\n})();\n"],"names":["SwiperCore","Navigation","Controller","Autoplay","breakpoint","mySwiper","breakpointChecker","enableSwiper","Swiper"],"mappings":"gEAGAA,EAAW,IAAI,CAACC,EAAYC,EAAYC,CAAQ,CAAC,GAEhD,UAAY,CAEX,GAAI,CADmB,SAAS,cAAc,kBAAkB,EAE9D,OAIF,MAAMC,EAAa,OAAO,WAAW,mBAAmB,EAExD,IAAIC,EAIJ,MAAMC,EAAoB,UAAY,CAEpC,GAAIF,EAAW,UAAY,GAAM,CAE3BC,IAAa,QAAWA,EAAS,QAAQ,GAAM,EAAI,EAEvD,MAEN,SAAeD,EAAW,UAAY,GAEhC,OAAOG,EAAY,CAEzB,EAIQA,EAAe,UAAY,CAC/BF,EAAW,IAAIG,EAAO,mBAAoB,CACxC,KAAM,GACN,cAAe,EACf,aAAc,MACd,WAAY,CACV,OAAQ,sBACR,OAAQ,qBACT,CACP,CAAK,CACL,EAKEJ,EAAW,iBAAiB,SAAUE,CAAiB,EAEvDA,GACF,GAAI"}