{"version":3,"file":"site-switcher-3e31e464.js","sources":["../../scripts/components/site-switcher.ts"],"sourcesContent":["const initialiseSiteSwitcher = () => {\n const siteSwitcherToggle = document.querySelector(\n \".js-site-switcher-toggle\",\n );\n const siteSwitcherList = document.querySelector(\n \".js-site-switcher-list\",\n );\n\n if (!siteSwitcherToggle || !siteSwitcherList) {\n return;\n }\n\n siteSwitcherToggle.addEventListener(\"click\", () => {\n siteSwitcherToggle.classList.toggle(\"is-active\");\n siteSwitcherList.classList.toggle(\"is-open\");\n });\n};\n\nexport default initialiseSiteSwitcher;\n"],"names":["initialiseSiteSwitcher","siteSwitcherToggle","siteSwitcherList"],"mappings":"AAAA,MAAMA,EAAyB,IAAM,CACnC,MAAMC,EAAqB,SAAS,cAClC,0BAAA,EAEIC,EAAmB,SAAS,cAChC,wBAAA,EAGE,CAACD,GAAsB,CAACC,GAITD,EAAA,iBAAiB,QAAS,IAAM,CAC9BA,EAAA,UAAU,OAAO,WAAW,EAC9BC,EAAA,UAAU,OAAO,SAAS,CAAA,CAC5C,CACH"}