let i;(function(){document.querySelectorAll("#layout-menu").forEach(function(e){i=new Menu(e,{orientation:"vertical",closeChildren:!1}),window.Helpers.scrollToActive(!1),window.Helpers.mainMenu=i}),document.querySelectorAll(".layout-menu-toggle").forEach(e=>{e.addEventListener("click",t=>{t.preventDefault(),window.Helpers.toggleCollapsed()})});let c=function(e,t){let l=null;e.onmouseenter=function(){Helpers.isSmallScreen()?l=setTimeout(t,0):l=setTimeout(t,300)},e.onmouseleave=function(){document.querySelector(".layout-menu-toggle").classList.remove("d-block"),clearTimeout(l)}};document.getElementById("layout-menu")&&c(document.getElementById("layout-menu"),function(){Helpers.isSmallScreen()||document.querySelector(".layout-menu-toggle").classList.add("d-block")});let n=document.getElementsByClassName("menu-inner"),o=document.getElementsByClassName("menu-inner-shadow")[0];n.length>0&&o&&n[0].addEventListener("ps-scroll-y",function(){this.querySelector(".ps__thumb-y").offsetTop?o.style.display="block":o.style.display="none"}),[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map(function(e){return new bootstrap.Tooltip(e)});const s=function(e){e.type=="show.bs.collapse"||e.type=="show.bs.collapse"?e.target.closest(".accordion-item").classList.add("active"):e.target.closest(".accordion-item").classList.remove("active")};[].slice.call(document.querySelectorAll(".accordion")).map(function(e){e.addEventListener("show.bs.collapse",s),e.addEventListener("hide.bs.collapse",s)}),window.Helpers.setAutoUpdate(!0),window.Helpers.initPasswordToggle(),window.Helpers.initSpeechToText(),!window.Helpers.isSmallScreen()&&window.Helpers.setCollapsed(!0,!1)})();
