{"version":3,"file":"breakpoints-a4cce29a.js","sources":["../../../../src/scripts/helpers/breakpoints.ts"],"sourcesContent":["import { debounce } from '../helpers/debounce';\n\nexport const BREAKPOINTS = Object.freeze({\n  mobile: 361,\n  tablet: 769,\n  tabletLandscape: 1025,\n  desktop: 1281,\n  wide: 1601\n});\n\nexport let isMobile = false;\nexport let isTablet = false;\nexport let isTabletLandscape = false;\n\nconst updateDeviceStatus = () => {\n  const windowWidth = window.innerWidth;\n\n  isMobile = windowWidth < BREAKPOINTS.mobile;\n  isTablet = windowWidth < BREAKPOINTS.tablet;\n  isTabletLandscape = windowWidth < BREAKPOINTS.tabletLandscape;\n};\n\nconst handleResize = () => {\n  updateDeviceStatus();\n};\n\nwindow.addEventListener('resize', debounce(handleResize, 250));\n\nupdateDeviceStatus();\n"],"names":["BREAKPOINTS","isTablet","isTabletLandscape","updateDeviceStatus","windowWidth","handleResize","debounce"],"mappings":"8CAEa,MAAAA,EAAc,OAAO,OAAO,CACvC,OAAQ,IACR,OAAQ,IACR,gBAAiB,KACjB,QAAS,KACT,KAAM,IACR,CAAC,EAGM,IAAIC,EAAW,GACXC,EAAoB,GAE/B,MAAMC,EAAqB,IAAM,CAC/B,MAAMC,EAAc,OAAO,WAEhBA,EAAcJ,EAAY,OACrCC,EAAWG,EAAcJ,EAAY,OACrCE,EAAoBE,EAAcJ,EAAY,eAChD,EAEMK,EAAe,IAAM,CACNF,GACrB,EAEA,OAAO,iBAAiB,SAAUG,EAASD,EAAc,GAAG,CAAC,EAE7DF,EAAmB"}