window.addEventListener("load",function(){var s=document.getElementById("load_screen");document.body.removeChild(s);var n="Horizontal Light Menu",a={admin:"Css Bans Template",settings:{layout:{name:n,darkMode:themeMode}},reset:!1};if(a.reset&&localStorage.clear(),localStorage.length===0)var e=a;else{var t=localStorage.getItem("theme"),o=JSON.parse(t),l=o;t!==null?l.admin==="Css Bans Template"?l.settings.layout.name===n?e=l:e=a:l.admin===void 0&&(e=a):e=a}if(e.settings.layout.darkMode){if(localStorage.setItem("theme",JSON.stringify(e)),t=localStorage.getItem("theme"),o=JSON.parse(t),o.settings.layout.darkMode){var r=document.body.getAttribute("page")==="starter-pack";document.body.classList.add("layout-dark"),r&&document.querySelector(".navbar-logo")&&document.querySelector(".navbar-logo").setAttribute("src","/images/logo.svg")}}else if(localStorage.setItem("theme",JSON.stringify(e)),t=localStorage.getItem("theme"),o=JSON.parse(t),!o.settings.layout.darkMode){var r=document.body.getAttribute("page")==="starter-pack";document.body.classList.remove("layout-dark"),r&&document.querySelector(".navbar-logo")&&document.querySelector(".navbar-logo").setAttribute("src","../../src/assets/img/logo2.svg")}document.body.getAttribute("layout")==="full-width"&&(document.body.classList.remove("layout-boxed"),document.querySelector(".header-container")&&document.querySelector(".header-container").classList.remove("container-xxl"),document.querySelector(".middle-content")&&document.querySelector(".middle-content").classList.remove("container-xxl"))});
