import{r as i,c as t,a as n,f as m,n as u,o as s}from"./app-a39c937f.js";import g from"./Menu-bdf286ac.js";import"./Modal-df1e3aae.js";import"./transition-37a067aa.js";import"./hidden-695af094.js";import"./use-text-value-d1d229e7.js";import"./micro-task-89dcd6af.js";import"./ProfileModal-61a09d92.js";import"./FormInput-4b7fa008.js";import"./FormPhoneInput-1c9c9926.js";/* empty css                      */import"./FormSelect-c7672027.js";import"./index-8758cb17.js";import"./tabs-86fdd039.js";import"./LangToggle-edfcdcaa.js";const p={key:0,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 256 256"},c={key:1,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 256 256"},L={__name:"Sidebar",props:["user","organization","organizations","config","unreadMessages"],setup(r){const o=r,e=i(localStorage.getItem("MenuOpen")==="true"),l=()=>{e.value=!e.value,localStorage.setItem("MenuOpen",e.value)};return(d,a)=>(s(),t("aside",{class:u(["md:flex flex-col h-full bg-white hidden relative",e.value?"w-20":"w-80"])},[n("button",{onClick:l,class:"absolute right-[-18px] top-[32px] bg-slate-100 px-2 py-2 rounded-full shadow-md z-10"},[e.value?(s(),t("svg",p,a[0]||(a[0]=[n("path",{fill:"currentColor",d:"m144.49 136.49l-80 80a12 12 0 0 1-17-17L119 128L47.51 56.49a12 12 0 0 1 17-17l80 80a12 12 0 0 1-.02 17m80-17l-80-80a12 12 0 1 0-17 17L199 128l-71.52 71.51a12 12 0 0 0 17 17l80-80a12 12 0 0 0 .01-17Z"},null,-1)]))):(s(),t("svg",c,a[1]||(a[1]=[n("path",{fill:"currentColor",d:"M208.49 199.51a12 12 0 0 1-17 17l-80-80a12 12 0 0 1 0-17l80-80a12 12 0 0 1 17 17L137 128ZM57 128l71.52-71.51a12 12 0 0 0-17-17l-80 80a12 12 0 0 0 0 17l80 80a12 12 0 0 0 17-17Z"},null,-1)])))]),m(g,{config:o.config,user:o.user,unreadMessages:r.unreadMessages,organization:o.organization,organizations:o.organizations,menuIconsOnly:e.value},null,8,["config","user","unreadMessages","organization","organizations","menuIconsOnly"])],2))}};export{L as default};
