import{a as e}from"./CiTEG3KO.js";import{r as a,k as t}from"./CNYe4-mv.js";const n=e("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),o=a(!1),r=a((()=>{{if(window.innerWidth<=768)return!1;const e=localStorage.getItem("sidebar:open");return null===e||"true"===e}})());function l(){const e=()=>{const e=o.value;o.value=window.innerWidth<=768,!e&&o.value&&(r.value=!1)};e(),window.addEventListener("resize",e);const a=t(()=>o.value?"280px":r.value?"256px":"48px"),n=t(()=>o.value?"0":r.value?"256px":"48px");return{isOpen:t(()=>r.value),isMobile:t(()=>o.value),sidebarWidth:a,contentMargin:n,toggle:()=>{r.value=!r.value,o.value||localStorage.setItem("sidebar:open",String(r.value))},close:()=>{r.value=!1},open:()=>{r.value=!0}}}export{n as C,l as u};
