{"mappings":"CCAC,AAAA,SAAU,CAAM,EACf,IAAM,EAAuB,EAAO,YAAY,CAAC,OAAO,CAAC,iBAEzD,GAAI,EACF,OASF,IAAM,EAAe,KACf,AAAuC,IAAvC,SAAS,eAAe,CAAC,SAAS,CACpC,SAAS,aAAa,CAAC,WAAW,SAAS,CAAC,GAAG,CAAC,iBAEhD,SAAS,aAAa,CAAC,WAAW,SAAS,CAAC,MAAM,CAAC,gBAEvD,EAEM,EAAkB,KACjB,SAAS,aAAa,CAAC,oBAAoB,SAAS,CAAC,QAAQ,CAAC,WAIjE,SAAS,aAAa,CAAC,wBAAwB,KAAK,CAAC,OAAO,CAAG,OAC/D,SAAS,aAAa,CAAC,WAAW,SAAS,CAAC,MAAM,CAAC,iBACnD,EAAO,mBAAmB,CAAC,SAAU,KALrC,SAAS,aAAa,CAAC,wBAAwB,KAAK,CAAG,GACvD,EAAO,gBAAgB,CAAC,SAAU,GAMtC,EAEA,SAAS,aAAa,CAAC,WAAW,SAAS,CAAC,GAAG,CAAC,iBAChD,SAAS,aAAa,CAAC,mCAAmC,OAAO,CA1B7C,KAClB,EAAO,YAAY,CAAC,OAAO,CAAC,gBAAiB,CAAA,GAC7C,SAAS,aAAa,CAAC,WAAW,SAAS,CAAC,MAAM,CAAC,iBACnD,EAAO,mBAAmB,CAAC,SAAU,EACvC,EAuBA,EAAO,gBAAgB,CAAC,SAAU,GAClC,WAAW,KACT,SAAS,aAAa,CAAC,uBAAuB,gBAAgB,CAAC,QAAS,EAC1E,EAAG,IAEL,EAAG,O,4D","sources":["","src/partials/js/yotitle_notification.js"],"sourcesContent":["(function(window1) {\n const isNotificationClosed = window1.localStorage.getItem(\"yotitleClosed\");\n if (isNotificationClosed) return;\n const handleClick = ()=>{\n window1.localStorage.setItem(\"yotitleClosed\", true);\n document.querySelector(\".header\").classList.remove(\"activeYotitle\");\n window1.removeEventListener(\"scroll\", handleScroll);\n };\n const handleScroll = ()=>{\n if (document.documentElement.scrollTop === 0) document.querySelector(\".header\").classList.add(\"activeYotitle\");\n else document.querySelector(\".header\").classList.remove(\"activeYotitle\");\n };\n const handleMenuClick = ()=>{\n if (!document.querySelector(\"#mainMenu.mobile\").classList.contains(\"active\")) {\n document.querySelector(\".yotitleNotification\").style = \"\";\n window1.addEventListener(\"scroll\", handleScroll);\n } else {\n document.querySelector(\".yotitleNotification\").style.display = \"none\";\n document.querySelector(\".header\").classList.remove(\"activeYotitle\");\n window1.removeEventListener(\"scroll\", handleScroll);\n }\n };\n document.querySelector(\".header\").classList.add(\"activeYotitle\");\n document.querySelector(\".yotitleNotification .closeIcon\").onclick = handleClick;\n window1.addEventListener(\"scroll\", handleScroll);\n setTimeout(()=>{\n document.querySelector(\"#mainMenu .menuIcon\").addEventListener(\"click\", handleMenuClick);\n }, 1000);\n})(window);\n\n//# sourceMappingURL=index.44eaf5eb.js.map\n","(function (window) {\n const isNotificationClosed = window.localStorage.getItem('yotitleClosed');\n\n if (isNotificationClosed) {\n return;\n }\n\n const handleClick = () => {\n window.localStorage.setItem('yotitleClosed', true);\n document.querySelector('.header').classList.remove('activeYotitle');\n window.removeEventListener('scroll', handleScroll);\n }\n\n const handleScroll = () => {\n if (document.documentElement.scrollTop === 0) {\n document.querySelector('.header').classList.add('activeYotitle');\n } else {\n document.querySelector('.header').classList.remove('activeYotitle');\n }\n }\n\n const handleMenuClick = () => {\n if (!document.querySelector('#mainMenu.mobile').classList.contains('active')) {\n document.querySelector('.yotitleNotification').style = '';\n window.addEventListener('scroll', handleScroll);\n } else {\n document.querySelector('.yotitleNotification').style.display = 'none';\n document.querySelector('.header').classList.remove('activeYotitle');\n window.removeEventListener('scroll', handleScroll);\n }\n }\n\n document.querySelector('.header').classList.add('activeYotitle');\n document.querySelector('.yotitleNotification .closeIcon').onclick = handleClick;\n window.addEventListener('scroll', handleScroll);\n setTimeout(() => {\n document.querySelector('#mainMenu .menuIcon').addEventListener('click', handleMenuClick);\n }, 1000);\n\n})(window);"],"names":["window1","isNotificationClosed","localStorage","getItem","handleScroll","document","documentElement","scrollTop","querySelector","classList","add","remove","handleMenuClick","contains","style","display","removeEventListener","addEventListener","onclick","setItem","setTimeout","window"],"version":3,"file":"index.44eaf5eb.js.map"}