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