{"mappings":"ACAA,OAAO,MAAM,CAAG,KACd,IAAM,EAAU,SAAS,aAAa,CAAC,QACjC,EAAiB,SAAS,aAAa,CAAC,UAChC,KAAK,SAAS,gBAAgB,CAAC,SAAW,EAAE,CAAE,CAG5D,SAAS,QAAQ,CAAG,KAClB,IAAM,EAAa,EAAQ,aAAa,CAAC,oCACnC,EAAY,EAAQ,YAAY,CAChC,EAAuB,EAAe,YAAY,CAElD,EAAgB,SAAS,eAAe,CAAC,SAAS,CADnC,EAAuB,EAEtC,EAAS,IAAI,EAAQ,SAAS,CAAC,CAAC,QAAQ,CAAC,QAE3C,CAAA,GAAiB,CAAC,GACpB,EAAQ,SAAS,CAAC,GAAG,CAAC,SACnB,GACD,EAAW,SAAS,CAAC,GAAG,CAAC,SAElB,CAAC,GAAiB,IAC3B,EAAQ,SAAS,CAAC,MAAM,CAAC,SACrB,GACF,EAAW,SAAS,CAAC,MAAM,CAAC,QAIlC,CACF","sources":["","src/public/js/common.js"],"sourcesContent":["var $c3152d9b9defb7cb$exports = {};\nwindow.onload = ()=>{\n const topNode = document.querySelector(\".top\");\n const headerWithMenu = document.querySelector(\".header\");\n const forms = [\n ...document.querySelectorAll(\"form\") || []\n ];\n /* Header color change */ document.onscroll = ()=>{\n const menuButton = topNode.querySelector(\".desktop .menuButton.transparent\");\n const topHeight = topNode.clientHeight;\n const headerWithMenuHeight = headerWithMenu.clientHeight;\n const headerHeight = headerWithMenuHeight - topHeight;\n const isBelowHeader = document.documentElement.scrollTop > headerHeight;\n const isWhite = [\n ...topNode.classList\n ].includes(\"white\");\n if (isBelowHeader && !isWhite) {\n topNode.classList.add(\"white\");\n if (menuButton) menuButton.classList.add(\"dark\");\n } else if (!isBelowHeader && isWhite) {\n topNode.classList.remove(\"white\");\n if (menuButton) menuButton.classList.remove(\"dark\");\n }\n };\n};\n\n\n//# sourceMappingURL=index.45834649.js.map\n","window.onload = () => {\n const topNode = document.querySelector('.top');\n const headerWithMenu = document.querySelector('.header');\n const forms = [...(document.querySelectorAll('form') || [])];\n\n /* Header color change */\n document.onscroll = () => {\n const menuButton = topNode.querySelector('.desktop .menuButton.transparent') \n const topHeight = topNode.clientHeight;\n const headerWithMenuHeight = headerWithMenu.clientHeight;\n const headerHeight = headerWithMenuHeight - topHeight;\n const isBelowHeader = document.documentElement.scrollTop > headerHeight;\n const isWhite =[...topNode.classList].includes('white');\n\n if (isBelowHeader && !isWhite) {\n topNode.classList.add('white');\n if(menuButton) {\n menuButton.classList.add('dark');\n }\n } else if (!isBelowHeader && isWhite) {\n topNode.classList.remove('white');\n if (menuButton) {\n menuButton.classList.remove('dark');\n }\n }\n\n }\n}"],"names":["window","onload","topNode","document","querySelector","headerWithMenu","querySelectorAll","onscroll","menuButton","topHeight","clientHeight","headerWithMenuHeight","isBelowHeader","documentElement","scrollTop","isWhite","classList","includes","add","remove"],"version":3,"file":"index.45834649.js.map"}