{"version":3,"sources":["benefits.ts"],"names":["benefitsModule","status","isInitialized","classNamePrefix","init","elements","breakpoints","document","querySelectorAll","body","style","getPropertyValue","length","forEach","el","swiper","querySelector","swiperSpaceBetween","window","getComputedStyle","swiperObj","Swiper","spaceBetween","parseInt","slidesPerView","enabled","addEventListener"],"mappings":"AACA,IAAMA,eAAiBA,gBAEpB,WAEC,IAAMC,EAAS,CACbC,eAAe,GAKXC,EAAkB,gBAgCxB,MAAO,CACLC,KAPW,WACX,IAxBMC,EACAC,EAuBFL,EAAOC,gBAxBLG,EAAWE,SAASC,iBAAkB,IAAGL,GACzCG,EACIC,SAASE,KAAKC,MAAMC,iBAAiB,uBACpCJ,SAASE,KAAKC,MAAMC,iBAAiB,wBAGxB,IAApBN,EAASO,QACbP,EAASQ,QAAQ,SAAAC,GACf,IAAMC,EAASD,EAAGE,cAAc,WAC3BD,IACCE,EAAqBC,OAAOC,iBAAiBL,GAAIH,iBAAiB,yBACxEO,OAAOE,UAAY,IAAIC,OAAON,EAAQ,CACpCO,aAAcC,SAASN,GACvBO,cAAe,OACflB,YAAa,EACVA,GAAqB,CACpBmB,SAAS,SAUjBxB,EAAOC,eAAgB,KArC1B,GA6CHgB,OAAOQ,iBAAiB,OAAQ1B,eAAeI","file":"benefits.js","sourcesContent":["// @ts-nocheck\nconst benefitsModule = benefitsModule ||\n\n (() => {\n\n const status = {\n isInitialized: false\n }\n\n\n\n const classNamePrefix = \"fm-o-benefits\"\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 elements.forEach(el => {\n const swiper = el.querySelector('.swiper')\n if (!swiper) return\n const swiperSpaceBetween = window.getComputedStyle(el).getPropertyValue(\"--swiper-spaceBetween\")\n window.swiperObj = new Swiper(swiper, {\n spaceBetween: parseInt(swiperSpaceBetween),\n slidesPerView: 'auto',\n breakpoints: {\n [breakpoints.tablet]: {\n enabled: false\n }\n }\n })\n })\n }\n\n const init = () => {\n if (status.isInitialized) return\n setUp()\n status.isInitialized = true\n }\n\n return {\n init\n }\n })()\n\nwindow.addEventListener('load', benefitsModule.init)"]}