window.addEventListener("load",function(){var i=document.getElementById("load_screen");document.body.removeChild(i);var n="Horizontal Dark Menu",t={admin:"CSS Bans Template",settings:{layout:{name:n,darkMode:themeMode}},reset:!1};if(console.log(t),t.reset&&localStorage.clear(),localStorage.length===0)var e=t;else{var a=localStorage.getItem("theme"),o=JSON.parse(a),l=o;a!==null?l.admin==="CSS Bans Template"?l.settings.layout.name===n?e=l:e=t:l.admin===void 0&&(e=t):e=t}if(e.settings.layout.darkMode){if(localStorage.setItem("theme",JSON.stringify(e)),a=localStorage.getItem("theme"),o=JSON.parse(a),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)),a=localStorage.getItem("theme"),o=JSON.parse(a),!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"))});
