import{E as d}from"./custom-element.js";function u({setExpanded:t}){return()=>{const n=document.querySelector("m-sidebar");t(n?.hasAttribute("expanded")??!1);const e=r=>{t(r.detail)};return document.addEventListener("update:expanded",e),()=>document.removeEventListener("update:expanded",e)}}function s({setState:t}){return()=>{const n=document.querySelector("m-sortcuts");t(n?.hasAttribute("stacked")??!1);const e=r=>{t(r.detail)};return document.addEventListener("update:stacked",e),()=>document.removeEventListener("update:stacked",e)}}function o(t){return()=>{d("SUB_ITEM",!0),document.querySelectorAll("m-sidebar-nav-item").forEach(e=>{e.parentNode?.nodeName===t&&(e.sub=!0)})}}export{s as a,u as g,o as s};
//# sourceMappingURL=sidebar-state.svelte.js.map
