import{$ as e,J as t,O as n,R as r,_ as i,f as a,h as o,rt as s,v as c,y as l}from"./vue.runtime.esm-bundler-CjdjpSmT.js";import{mt as u}from"./http-D9STgMoF.js";import{a as d,i as f}from"./ripple-CpIKAP0g.js";import{t as p,u as m}from"./index-DMZetZXm.js";import{t as h}from"./button-BF7S0BMD.js";var g=m(`locale`,()=>{let e=t(localStorage.getItem(`locale`)??`en`),n=t=>{e.value=t,localStorage.setItem(`locale`,t),document.documentElement.lang=t,document.documentElement.dir=t===`ar`?`rtl`:`ltr`};return n(e.value),{current:e,setLocale:n}}),_={class:`min-h-screen flex bg-slate-50`},v={class:`w-64 bg-slate-900 text-slate-100 p-4 flex flex-col`},y={class:`text-lg font-bold mb-6`},b={class:`flex flex-col gap-2 text-sm`},x={class:`mt-auto space-y-2 text-xs`},S={class:`text-slate-400`},C={class:`flex-1 p-8`},w=l({__name:`AdminLayout`,setup(t){let{t:l}=u(),m=p(),w=g(),T=()=>w.setLocale(w.current===`ar`?`en`:`ar`);return(t,u)=>(n(),o(`div`,_,[a(`aside`,v,[a(`div`,y,s(e(l)(`app.name`)),1),a(`nav`,b,[c(e(f),{to:{name:`dashboard`},class:`px-3 py-2 rounded hover:bg-slate-800`},{default:r(()=>[u[0]||=a(`i`,{class:`pi pi-chart-bar me-2`},null,-1),i(s(e(l)(`nav.dashboard`)),1)]),_:1}),c(e(f),{to:{name:`tenants.index`},class:`px-3 py-2 rounded hover:bg-slate-800`},{default:r(()=>[u[1]||=a(`i`,{class:`pi pi-building me-2`},null,-1),i(s(e(l)(`nav.tenants`)),1)]),_:1})]),a(`div`,x,[c(e(h),{label:e(w).current===`ar`?`English`:`العربية`,severity:`secondary`,size:`small`,class:`w-full`,onClick:T},null,8,[`label`]),c(e(h),{label:e(l)(`auth.logout`),severity:`danger`,size:`small`,class:`w-full`,onClick:e(m).logout},null,8,[`label`,`onClick`]),a(`div`,S,s(e(m).user?.email),1)])]),a(`main`,C,[c(e(d))])]))}});export{w as default};
//# sourceMappingURL=AdminLayout-BhBcy9zE.js.map