{"version":3,"sources":["service-list-slider.ts"],"names":["serviceListSliderModule","status","isInitialized","classNamePrefix","init","elements","breakpoints","document","querySelectorAll","body","style","getPropertyValue","length","forEach","el","swiper","querySelector","swiperSpaceBetween","window","getComputedStyle","Swiper","slidesPerView","grid","rows","spaceBetween","parseInt","enabled","undefined","addEventListener"],"mappings":"AACA,IAAMA,wBACJA,yBACC,WACC,IAAMC,EAAS,CACbC,eAAe,GAGXC,EAAkB,2BAqCxB,MAAO,CACLC,KANW,WACX,IA9BMC,EACAC,EA6BFL,EAAOC,gBA9BLG,EAAWE,SAASC,iBAAkB,IAAGL,GAErCI,SAASE,KAAKC,MAAMC,iBAAiB,uBADzCL,EAEKC,SAASE,KAAKC,MAAMC,iBAAiB,wBAGxB,IAApBN,EAASO,QAEbP,EAASQ,QAAQ,SAAAC,GACf,IAAMC,EAASD,EAAGE,cAAc,WAC3BD,IACCE,EAAqBC,OAAOC,iBAAiBL,GAAIH,iBAAiB,yBACxE,IAAIS,OAAOL,EAAQ,CACjBM,cAAe,OACfC,KAAM,CACJC,KAAM,GAERC,aAAcC,SAASR,GACvBX,YAAa,EACVA,GAAsB,CACrBoB,SAAS,EACTJ,UAAMK,EACNH,kBAAcG,SAUtB1B,EAAOC,eAAgB,KAxC1B,GA+CHgB,OAAOU,iBAAiB,OAAQ5B,wBAAwBI","file":"service-list-slider.js","sourcesContent":["// @ts-nocheck\nconst serviceListSliderModule: any =\n serviceListSliderModule ||\n (() => {\n const status = {\n isInitialized: false,\n };\n\n const classNamePrefix = \"fm-o-service-list-slider\";\n\n const setUp = () => {\n const elements = document.querySelectorAll(`.${classNamePrefix}`)\n const breakpoints = {\n tablet: document.body.style.getPropertyValue(\"--breakpoint-tablet\"),\n desktop: document.body.style.getPropertyValue(\"--breakpoint-desktop\")\n }\n\n if (elements.length === 0) return;\n\n elements.forEach(el => {\n const swiper = el.querySelector('.swiper')\n if (!swiper) return\n const swiperSpaceBetween = window.getComputedStyle(el).getPropertyValue(\"--swiper-spaceBetween\")\n new Swiper(swiper, {\n slidesPerView: 'auto',\n grid: {\n rows: 2,\n },\n spaceBetween: parseInt(swiperSpaceBetween),\n breakpoints: {\n [breakpoints.desktop]: {\n enabled: false,\n grid: undefined,\n spaceBetween: undefined\n }\n }\n })\n })\n };\n\n const init = () => {\n if (status.isInitialized) return;\n setUp();\n status.isInitialized = true;\n };\n return {\n init,\n };\n })();\n\nwindow.addEventListener(\"load\", serviceListSliderModule.init);\n"]}