{ "version": 3, "sources": ["../../views/main.ts"], "sourcesContent": ["const init = () => {\n const body = document.body\n const hamburger = document.getElementById('hamburger') as HTMLButtonElement\n hamburger.addEventListener('click', () => {\n hamburger.classList.toggle('is-active')\n if (body.getAttribute('data-menu') === 'true') {\n body.setAttribute('data-menu', 'false')\n } else {\n body.setAttribute('data-menu', 'true')\n }\n })\n\n const copyright = document.querySelectorAll('[data-copyright]')\n copyright.forEach(el => {\n el.innerHTML = env.COPYRIGHT\n })\n}\ninit()\n\nexport const processContent = (content: string) => {\n console.log('Yeah', content)\n // documentToHtmlString(JSON.parse(content))\n}\n"], "mappings": "mBAAA,IAAMA,EAAO,IAAM,CACf,IAAMC,EAAO,SAAS,KAChBC,EAAY,SAAS,eAAe,WAAW,EACrDA,EAAU,iBAAiB,QAAS,IAAM,CACtCA,EAAU,UAAU,OAAO,WAAW,EAClCD,EAAK,aAAa,WAAW,IAAM,OACnCA,EAAK,aAAa,YAAa,OAAO,EAEtCA,EAAK,aAAa,YAAa,MAAM,CAE7C,CAAC,EAEiB,SAAS,iBAAiB,kBAAkB,EACpD,QAAQE,GAAM,CACpBA,EAAG,UAAY,YACnB,CAAC,CACL,EACAH,EAAK,EAEE,IAAMI,EAAkBC,GAAoB,CAC/C,QAAQ,IAAI,OAAQA,CAAO,CAE/B", "names": ["init", "body", "hamburger", "el", "processContent", "content"] }