import"./hoisted.CxJLxJzl.js";import"./appConfig.LqIQNFpF.js";import"./mixPanel.Ca0s9oxh.js";class s extends HTMLElement{connectedCallback(){const d=document.getElementById("app-header"),r=document.getElementById("header-desktop-drawer"),e=document.getElementById("app-header-mobile-drawer");r?.addEventListener("mouseleave",()=>{r?.setAttribute("data-hide","true")}),document.querySelectorAll("[data-header-btn-hover]").forEach(n=>{const t=n,o=t?.getAttribute("hover-btn-name");t.addEventListener("mouseover",()=>{d?.setAttribute("active-header-tab",o),r?.setAttribute("data-hide","false"),r?.setAttribute("data-show-section",o)}),t.addEventListener("mouseleave",()=>{d?.removeAttribute("active-header-tab")})});const a=document.querySelector("#mobile-menu-btn");a&&a?.addEventListener("click",()=>{a.getAttribute("data-open")==="true"?(a.setAttribute("data-open","false"),e?.setAttribute("data-hide","true"),e?.removeAttribute("data-show-section")):(a.setAttribute("data-open","true"),e?.setAttribute("data-hide","false"))}),document.querySelectorAll("[data-header-btn-mobile]").forEach(n=>{const t=n,o=t?.getAttribute("mobile-nav-btn-name");t.addEventListener("click",()=>{e?.getAttribute("data-show-section")?e?.removeAttribute("data-show-section"):e?.setAttribute("data-show-section",o)})})}}customElements.define("skima-app-header",s);
