1import{w as t,r as c,s as i,j as a,L as m,O as h}from"./index-D9jIKKOn.js";import{u as p}from"./useRouterState-hNaMZ9Jd.js";import{S as x}from"./SiteShell-mTn5lWVi.js";import{B as g}from"./building-2-DmBEbkUK.js";import{B as u}from"./briefcase-CpZmj40r.js";import{T as y}from"./tag-DmBJHPqS.js";import{M as b}from"./mail-CmuqoiwW.js";import{F as k}from"./file-text-BhHokYPR.js";import{P as f}from"./palette-C0KSFZzn.js";import{U as j}from"./users-uIqs8rYn.js";const w=[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]],M=t("arrow-right-left",w);const v=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],_=t("circle-question-mark",v);const N=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],L=t("house",N);const S=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],$=t("image",S);const z=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],E=t("layout-dashboard",z);const P=[["path",{d:"M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8",key:"12jkf8"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"M19 16v6",key:"tddt3s"}],["path",{d:"M16 19h6",key:"xwg31i"}]],q=t("mail-plus",P);const A=[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]],B=t("newspaper",A);const H=[["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"m19 8 3 8a5 5 0 0 1-6 0zV7",key:"zcdpyk"}],["path",{d:"M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1",key:"1yorad"}],["path",{d:"m5 8 3 8a5 5 0 0 1-6 0zV7",key:"eua70x"}],["path",{d:"M7 21h10",key:"1b0cd5"}]],R=t("scale",H);const F=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],O=t("settings",F);function J(){const o=p({select:e=>e.location.pathname}),[n,r]=c.useState({companies:0,jobs:0,orders:0});c.useEffect(()=>{(async()=>{const[e,s,l]=await Promise.all([i.from("companies").select("id",{count:"exact",head:!0}).eq("status","pending"),i.from("jobs").select("id",{count:"exact",head:!0}).eq("status","pending"),i.from("plan_orders").select("id",{count:"exact",head:!0}).eq("status","requested")]);r({companies:e.count??0,jobs:s.count??0,orders:l.count??0})})()},[o]);const d=[{to:"/admin",label:"Ãbersicht",icon:E,exact:!0},{to:"/admin/companies",label:"Unternehmen",icon:g,badge:n.companies},{to:"/admin/jobs",label:"Events",icon:u,badge:n.jobs},{to:"/admin/pricing",label:"Pakete & Preise",icon:y,badge:n.orders},{to:"/admin/emails",label:"E-Mail-Outbox",icon:b},{to:"/admin/email-templates",label:"E-Mail-Templates",icon:q},{to:"/admin/banners",label:"Banner & Werbung",icon:$},{to:"/admin/redirects",label:"Weiterleitungen",icon:M},{to:"/admin/landing-pages",label:"SEO-Landingpages",icon:k},{to:"/admin/homepage",label:"Homepage-Inhalte",icon:L},{to:"/admin/legal-pages",label:"Rechtsseiten",icon:R},{to:"/admin/theme",label:"Farbthema",icon:f},{to:"/admin/blog",label:"Blog",icon:B},{to:"/admin/faqs",label:"FAQs",icon:_},{to:"/admin/taxonomies",label:"Konfiguration",icon:O},{to:"/admin/users",label:"Nutzer & Rollen",icon:j}];return a.jsx(x,{children:a.jsx("div",{className:"container mx-auto px-4 py-8",children:a.jsxs("div",{className:"grid gap-6 lg:grid-cols-[240px_1fr]",children:[a.jsxs("aside",{children:[a.jsx("div",{className:"text-xs uppercase tracking-wider text-muted-foreground px-3 mb-2",children:"Super-Admin"}),a.jsx("nav",{className:"flex flex-col gap-1 sticky top-20",children:d.map(e=>{const s=e.exact?o===e.to:o.startsWith(e.to);return a.jsxs(m,{to:e.to,className:`flex items-center gap-2 rounded-md px-3 py-2 text-sm transition-colors ${s?"bg-accent text-accent-foreground font-semibold":"text-muted-foreground hover:bg-muted hover:text-foreground"}`,children:[a.jsx(e.icon,{className:"h-4 w-4"}),a.jsx("span",{className:"flex-1",children:e.label}),"badge"in e&&(e.badge??0)>0&&a.jsx("span",{className:"ml-auto inline-flex items-center justify-center rounded-full bg-warning px-2 py-0.5 text-[10px] font-bold text-warning-foreground min-w-5",children:e.badge})]},e.to)})})]}),a.jsx("div",{children:a.jsx(h,{})})]})})})}export{J as component};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.