"use strict";document.addEventListener("DOMContentLoaded",function(){var t=document.querySelectorAll(".j-setting-tab li"),s=document.querySelector(".j-setting-notice"),n=(document.querySelector("#j-version"),document.querySelector(".j-setting-contain > form")),i=document.querySelectorAll(".j-setting-content");t.forEach(function(e){e.addEventListener("click",function(){sessionStorage.setItem("j-setting-current",e.getAttribute("data-current")),t.forEach(function(t){return t.classList.remove("active")}),e.classList.add("active"),"j-setting-notice"===e.getAttribute("data-current")?(s.style.display="block",n.style.display="none"):(n.style.display="block",s.style.display="none"),i.forEach(function(t){t.style.display="none",t.classList.contains(e.getAttribute("data-current"))&&(t.style.display="block")})})}),sessionStorage.getItem("j-setting-current")?("j-setting-notice"===sessionStorage.getItem("j-setting-current")?(s.style.display="block",n.style.display="none"):(n.style.display="block",s.style.display="none"),t.forEach(function(t){t.getAttribute("data-current")===sessionStorage.getItem("j-setting-current")&&(t.classList.add("active"),i.forEach(function(t){t.classList.contains(sessionStorage.getItem("j-setting-current"))&&(t.style.display="block")}))})):(t[0].classList.add("active"),s.style.display="block",n.style.display="none")});