{"version":3,"file":"mobileMenu.component.bundle.js","sources":["../../../../Frontend/js/components/mobileMenu.component.ts"],"sourcesContent":["export const setupMobileMenu = (): void => {\r\n const menu = document.querySelector(\"#mobile-menu\") as HTMLElement\r\n\r\n const menuOpenButton = document.querySelector(\"#mobile-menu-button\") as HTMLButtonElement\r\n menuOpenButton.addEventListener(\"click\", () => openMobileMenu(menu))\r\n const menuCloseButton = document.querySelector(\"#mobile-menu-close\") as HTMLButtonElement\r\n menuCloseButton.addEventListener(\"click\", () => closeMobileMenu(menu))\r\n}\r\n\r\nconst openMobileMenu = (menu: HTMLElement): void => {\r\n document.body.style.overflowY = \"hidden\"\r\n menu.style.height = \"100dvh\"\r\n}\r\n\r\nconst closeMobileMenu = (menu: HTMLElement): void => {\r\n document.body.style.overflowY = \"auto\"\r\n menu.style.height = \"0vh\"\r\n}\r\n"],"names":["setupMobileMenu","menu","openMobileMenu","closeMobileMenu"],"mappings":"AAAO,MAAMA,EAAkB,IAAY,CACnC,MAAAC,EAAO,SAAS,cAAc,cAAc,EAE3B,SAAS,cAAc,qBAAqB,EACpD,iBAAiB,QAAS,IAAMC,EAAeD,CAAI,CAAC,EAC3C,SAAS,cAAc,oBAAoB,EACnD,iBAAiB,QAAS,IAAME,EAAgBF,CAAI,CAAC,CACvE,EAEMC,EAAkBD,GAA4B,CACzC,SAAA,KAAK,MAAM,UAAY,SAChCA,EAAK,MAAM,OAAS,QACtB,EAEME,EAAmBF,GAA4B,CAC1C,SAAA,KAAK,MAAM,UAAY,OAChCA,EAAK,MAAM,OAAS,KACtB"}