PageSourceSearch

https://riederalm.lovable.app/assets/UserDashboard-D1VD-1jq.js

js riederalm.lovable.app collected 2026-10-03 03:43:22 UTC 21,543 bytes, 1 lines download raw bytes

1import{r as j,j as e,L as Y}from"./react-vendor-CShGlGts.js";import{x as ee,s as w,c3 as se,C as b,ae as y,af as k,c4 as O,a as _,ag as A,a7 as d,I as ne,B as o,a_ as F,ap as Q,D as ie,bw as te,v as le,w as B,aR as ae,c5 as re,bm as ce,c6 as de,c7 as oe,bu as xe,aL as me,c8 as he,y as ue,u as pe,O as je,ai as R,bk as ge,h as fe,i as Ne,j as L,bn as p,aH as $,c9 as q,ca as V,k as E,cb as G,P as ve,cc as we,R as be,g as ye,t as P,Q as ke,J as _e,aO as Se}from"./index-BYC0bmF9.js";import{A as Ce}from"./arrow-up-bUdIeFXh.js";import{A as De}from"./arrow-down-flXORgjt.js";import{S as J}from"./square-check-big-D8AY_Ej2.js";import"./query-BUBuIGkW.js";import"./shared-utils--gW9Kwo0.js";import"./supabase-C0joAID3.js";const ze=()=>{const{user:t}=ee(),[g,f]=j.useState({notifications:[],appointments:[],tasks:[],documents:[],settings:null}),[D,x]=j.useState(!0),m=async()=>{if(t)try{x(!0);const[i,l,c,r,S]=await Promise.all([w.from("user_notifications").select("*").eq("user_id",t.id).order("created_at",{ascending:!1}).limit(10),w.from("user_appointments").select("*").eq("user_id",t.id).gte("start_date",new Date().toISOString()).order("start_date",{ascending:!0}).limit(5),w.from("user_tasks").select("*").eq("user_id",t.id).neq("status","completed").order("created_at",{ascending:!1}).limit(8),w.from("user_documents").select("*").eq("user_id",t.id).eq("status","active").order("created_at",{ascending:!1}).limit(5),w.from("user_dashboard_settings").select("*").eq("user_id",t.id).single()]);f({notifications:i.data||[],appointments:l.data||[],tasks:c.data||[],documents:r.data||[],settings:S.data})}catch(i){console.error("Error fetching dashboard data:",i)}finally{x(!1)}},z=async i=>{if(!t)return;const{error:l}=await w.from("user_notifications").update({read_at:new Date().toISOString()}).eq("id",i).eq("user_id",t.id);l||f(c=>({...c,notifications:c.notifications.map(r=>r.id===i?{...r,read_at:new Date().toISOString()}:r)}))},N=async(i,l)=>{if(!t)return;const{error:c}=await w.from("user_tasks").update({status:l}).eq("id",i).eq("user_id",t.id);c||m()},h=async i=>{if(!t)return;const{error:l}=await w.from("user_dashboard_settings").upsert({user_id:t.id,...i});l||f(c=>({...c,settings:i}))};return j.useEffect(()=>{m()},[t]),j.useEffect(()=>{if(!t)return;const i=w.channel("dashboard-updates").on("postgres_changes",{event:"*",schema:"public",table:"user_notifications",filter:`user_id=eq.${t.id}`},()=>m()).on("postgres_changes",{event:"*",schema:"public",table:"user_tasks",filter:`user_id=eq.${t.id}`},()=>m()).subscribe();return()=>{w.removeChannel(i)}},[t]),{data:g,loading:D,markNotificationAsRead:z,updateTaskStatus:N,updateDashboardSettings:h,refreshData:m}},Z=({onQuickNoteClick:t,compact:g=!1})=>{const{notes:f,loading:D,openNotesCount:x,addNote:m,completeNote:z,deleteNote:N}=se(),[h,i]=j.useState(""),[l,c]=j.useState(!1),r=async()=>{if(!h.trim())return;c(!0),await m(h)&&i(""),c(!1)},S=a=>{a.key==="Enter"&&!a.shiftKey&&(a.preventDefault(),r())},C=f.filter(a=>!a.is_completed),n=f.filter(a=>a.is_completed),u=g?C.slice(0,5):C,v=({note:a})=>{const T=!a.is_completed&&new Date(a.created_at).getTime()<Date.now()-864e5;return e.jsxs("div",{className:Q("flex items-start gap-3 p-3 rounded-lg border transition-colors",a.is_completed?"bg-muted/30 opacity-60":T?"bg-yellow-50 dark:bg-yellow-900/20 border-yellow-300 dark:border-yellow-700":"bg-muted/20 hover:bg-muted/40"),children:[e.jsx(ie,{checked:a.is_completed,onCheckedChange:()=>z(a.id),className:"mt-0.5"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:Q("text-sm break-words",a.is_completed&&"line-through text-muted-foreground"),children:a.content}),e.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[e.jsx(te,{className:"h-3 w-3 text-muted-foreground"}),e.jsx("span",{className:"text-xs text-muted-foreground",children:le(new Date(a.created_at),{addSuffix:!0,locale:B})}),T&&!a.is_completed&&e.jsx(d,{variant:"outline",className:"text-xs bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200",children:"Überfällig"})]})]}),e.jsx(o,{variant:"ghost",size:"sm",onClick:()=>N(a.id),className:"h-8 w-8 p-0 text-muted-foreground hover:text-destructive",children:e.jsx(ae,{className:"h-4 w-4"})})]})};return D?e.jsxs(b,{children:[e.jsx(y,{children:e.jsxs(k,{className:"flex items-center gap-2",children:[e.jsx(O,{className:"h-5 w-5 text-yellow-500"}),"Meine Notizen"]})}),e.jsx(_,{children:e.jsxs("div",{className:"animate-pulse space-y-3",children:[e.jsx("div",{className:"h-16 bg-muted rounded-lg"}),e.jsx("div",{className:"h-16 bg-muted rounded-lg"})]})})]}):e.jsxs(b,{children:[e.jsxs(y,{className:"flex flex-row items-center justify-between pb-2",children:[e.jsxs("div",{children:[e.jsxs(k,{className:"flex items-center gap-2",children:[e.jsx(O,{className:"h-5 w-5 text-yellow-500"}),"Meine Notizen"]}),e.jsx(A,{children:"Persönliche Schnellnotizen"})]}),x>0&&e.jsxs(d,{variant:"secondary",className:"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200",children:[x," offen"]})]}),e.jsxs(_,{className:"space-y-4",children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx(ne,{value:h,onChange:a=>i(a.target.value),onKeyDown:S,placeholder:"Schnelle Notiz hinzufügen...",className:"flex-1"}),e.jsx(o,{size:"sm",onClick:r,disabled:!h.trim()||l,children:e.jsx(F,{className:"h-4 w-4"})})]}),e.jsx("div",{className:"space-y-2 max-h-[400px] overflow-y-auto",children:u.length===0&&n.length===0?e.jsxs("div",{className:"text-center py-8 text-muted-foreground",children:[e.jsx(O,{className:"h-12 w-12 mx-auto mb-2 opacity-30"}),e.jsx("p",{className:"text-sm",children:"Noch keine Notizen"}),e.jsx("p",{className:"text-xs mt-1",children:"Drücken Sie Alt+N für eine Schnellnotiz"})]}):e.jsxs(e.Fragment,{children:[u.map(a=>e.jsx(v,{note:a},a.id)),g&&C.length>5&&e.jsxs("p",{className:"text-xs text-center text-muted-foreground py-2",children:["+ ",C.length-5," weitere Notizen"]}),!g&&n.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"border-t my-4"}),e.jsxs("p",{className:"text-xs text-muted-foreground mb-2",children:["Erledigt (",n.length,")"]}),n.slice(0,3).map(a=>e.jsx(v,{note:a},a.id)),n.length>3&&e.jsxs("p",{className:"text-xs text-center text-muted-foreground py-2",children:["+ ",n.length-3," weitere erledigte"]})]})]})}),t&&e.jsxs(o,{variant:"outline",size:"sm",onClick:t,className:"w-full",children:[e.jsx(O,{className:"h-4 w-4 mr-2"}),"Neue Schnellnotiz (Alt+N)"]})]})]})};function X(){const{links:t,loading:g,addLink:f,updateLink:D,deleteLink:x,moveLink:m}=re(),[z,N]=j.useState(!1),[h,i]=j.useState(null),[l,c]=j.useState({label:"",url:"",icon:"link"}),r=()=>{i(null),c({label:"",url:"",icon:"link"}),N(!0)},S=n=>{i(n),c({label:n.label,url:n.url,icon:n.icon??"link"}),N(!0)},C=async()=>
1{if(!l.label.trim()||!l.url.trim())return;(h?await D(h.id,l):await f(l))&&N(!1)};return e.jsxs(b,{children:[e.jsxs(y,{className:"flex flex-row items-center justify-between space-y-0 pb-3",children:[e.jsxs(k,{className:"flex items-center gap-2 text-base",children:[e.jsx(ce,{className:"h-5 w-5 text-yellow-500"}),"Meine Favoriten"]}),e.jsxs(o,{size:"sm",variant:"outline",onClick:r,children:[e.jsx(F,{className:"h-4 w-4 mr-1"})," Link hinzufügen"]})]}),e.jsxs(_,{children:[g?e.jsx("p",{className:"text-sm text-muted-foreground",children:"Lädt…"}):t.length===0?e.jsxs("div",{className:"text-sm text-muted-foreground py-4 text-center space-y-3",children:[e.jsx("p",{children:"Noch keine Favoriten. Füge deine wichtigsten Links hinzu."}),e.jsxs(o,{size:"sm",onClick:r,children:[e.jsx(F,{className:"h-4 w-4 mr-1"})," Ersten Link hinzufügen"]})]}):e.jsx("ul",{className:"space-y-1",children:t.map((n,u)=>{const v=de(n.url),a=v!==null,T=e.jsxs("span",{className:"flex items-center gap-2 min-w-0",children:[e.jsx(oe,{name:n.icon,className:"h-4 w-4 shrink-0"}),e.jsx("span",{className:"truncate",children:n.label}),!a&&e.jsx(xe,{className:"h-3 w-3 opacity-50 shrink-0"})]});return e.jsxs("li",{className:"group flex items-center gap-1 rounded-md hover:bg-muted/50 px-1",children:[e.jsx("div",{className:"flex-1 min-w-0",children:v?e.jsx(Y,{to:v,className:"block py-2 px-2 text-sm",children:T}):e.jsx("a",{href:n.url,target:"_blank",rel:"noreferrer",className:"block py-2 px-2 text-sm",children:T})}),e.jsxs("div",{className:"flex items-center md:opacity-0 md:group-hover:opacity-100 transition-opacity",children:[e.jsx(o,{size:"icon",variant:"ghost",className:"h-7 w-7",disabled:u===0,onClick:()=>m(n.id,"up"),"aria-label":"Nach oben",children:e.jsx(Ce,{className:"h-3.5 w-3.5"})}),e.jsx(o,{size:"icon",variant:"ghost",className:"h-7 w-7",disabled:u===t.length-1,onClick:()=>m(n.id,"down"),"aria-label":"Nach unten",children:e.jsx(De,{className:"h-3.5 w-3.5"})}),e.jsx(o,{size:"icon",variant:"ghost",className:"h-7 w-7",onClick:()=>S(n),"aria-label":"Bearbeiten",children:e.jsx(me,{className:"h-3.5 w-3.5"})}),e.jsx(o,{size:"icon",variant:"ghost",className:"h-7 w-7 text-destructive",onClick:()=>x(n.id),"aria-label":"Löschen",children:e.jsx(ae,{className:"h-3.5 w-3.5"})})]})]},n.id)})}),!g&&t.length>0&&e.jsx("p",{className:"text-[11px] text-muted-foreground mt-2 px-1",children:"Tippe auf das Stift-Symbol, um Bezeichnung oder URL zu ändern."})]}),e.jsx(he,{open:z,onOpenChange:N,form:l,onFormChange:c,onSave:C,editing:!!h})]})}const qe=()=>{ee();const{data:t,loading:g,markNotificationAsRead:f,updateTaskStatus:D}=ze(),{userRoles:x}=ue(),{openNotesCount:m,addNote:z}=se(),[N,h]=j.useState(!1),[i,l]=j.useState(!1),{data:c=[]}=pe({}),r=c.filter(s=>je.includes(s.status)),S=r.filter(s=>s.priority==="critical"),C=()=>e.jsxs(b,{children:[e.jsxs(y,{className:"flex flex-row items-center justify-between",children:[e.jsxs("div",{children:[e.jsxs(k,{className:"flex items-center gap-2",children:[e.jsx(V,{className:"h-5 w-5"}),"Support Center"]}),e.jsx(A,{children:"Bugs, Wünsche & Support melden"})]}),r.length>0&&e.jsx(d,{variant:S.length>0?"destructive":"secondary",children:r.length})]}),e.jsxs(_,{className:"space-y-3",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-3 text-sm",children:[e.jsxs("div",{className:"rounded-lg border p-3",children:[e.jsx("div",{className:"text-2xl font-bold",children:r.length}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"Offene Tickets"})]}),e.jsxs("div",{className:"rounded-lg border p-3",children:[e.jsx("div",{className:"text-2xl font-bold text-destructive",children:S.length}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"Kritisch"})]})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsxs(o,{size:"sm",className:"flex-1 gap-2",onClick:()=>l(!0),children:[e.jsx(ye,{className:"h-4 w-4"}),"Problem melden"]}),e.jsx(o,{size:"sm",variant:"outline",asChild:!0,children:e.jsx(Y,{to:"/support",children:"Öffnen"})})]})]})]});if(g)return e.jsx("div",{className:"min-h-screen bg-background p-6",children:e.jsxs("div",{className:"max-w-7xl mx-auto",children:[e.jsxs("div",{className:"mb-8",children:[e.jsx(R,{className:"h-8 w-64 mb-2"}),e.jsx(R,{className:"h-4 w-96"})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[...Array(6)].map((s,I)=>e.jsx(R,{className:"h-64"},I))})]})});const n=t.notifications.filter(s=>!s.read_at),u=t.tasks.filter(s=>s.status!=="completed"),v=t.appointments.slice(0,3),T=(()=>{const s=[{title:"Info Wiki",href:"/wiki",icon:Se},{title:"Push-Benachrichtigungen",href:"/push-settings",icon:q}];return x.includes("SERVICE")&&s.push({title:"Getränkeempfehlung",href:"/beverage-recommendation",icon:p}),x.includes("KUECHE")&&(s.push({title:"Tagesmenü",href:"/menu-day",icon:p}),s.push({title:"Kitchen Board",href:"/kitchen",icon:p})),x.includes("REZEPTION")&&(s.push({title:"Morgenpost",href:"/daily-post",icon:p}),s.push({title:"Ausflüge",href:"/excursions",icon:p})),x.includes("HAUSTECHNIK")&&(s.push({title:"Reparaturtickets",href:"/new-ticket",icon:p}),s.push({title:"Wartungsunternehmen",href:"/maintenance/companies",icon:p})),x.includes("KASSABUCH")&&s.push({title:"Kassabuch",href:"/cashbook",icon:p}),x.includes("ADMIN")&&(s.push({title:"Benutzerverwaltung",href:"/admin/user-management",icon:p}),s.push({title:"Rollenverwaltung",href:"/admin/role-management",icon:p})),s})(),K=()=>e.jsxs(b,{children:[e.jsxs(y,{className:"flex flex-row items-center justify-between",children:[e.jsxs("div",{children:[e.jsxs(k,{className:"flex items-center gap-2",children:[e.jsx(q,{className:"h-5 w-5"}),"Benachrichtigungen"]}),e.jsx(A,{children:"Ihre neuesten Erwähnungen und Updates"})]}),n.length>0&&e.jsx(d,{variant:"destructive",children:n.length})]}),e.jsx(_,{children:e.jsx("div",{className:"space-y-3",children:t.notifications.length===0?e.jsx("p",{className:"text-muted-foreground text-sm",children:"Keine Benachrichtigungen"}):t.notifications.slice(0,5).map(s=>e.jsx("div",{className:`p-3 rounded-lg border cursor-pointer hover:bg-muted/50 ${s.read_at?"bg-muted/20":"bg-primary/5 border-primary/20"}`,onClick:()=>f(s.id),children:e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-sm font-medium",children:s.title}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:s.message}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:P(new Date(s.created_at),"dd.MM.yyyy HH:mm",{locale:B})})]}),!s.read_at&&e.jsx("div",{className:"w-2 h-2 bg-primary rounded-full"})]})},s.id))})})]}),M=()=>e.jsxs(b,{children:[e.jsxs(y,{children:[e.jsxs(k,{className:"flex items-center gap-2",children:[e.jsx($,{className:"h-5 w-5"}),"Termine"]}),e.jsx(A,{children:"Ihre nächsten Termine"})]}),e.jsx(_,{children:e.jsx("div",{className:"space-y-3",children:v.length===0?e.jsx("p",{className:"text-muted-foreground text-sm",children:"Keine anstehenden Termine"}):v.map(s=>e.jsxs("div",{className:"p-3 rounded-lg border bg-muted/20",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[e.jsx(te,{className:"h-4 w-4 text-muted-foreground"}),e.jsx("p",{className:"text-sm font-medium",children:s.title})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:P(new Date(s.start_date),"dd.MM.yyyy HH:mm",{locale:B})}),s.description&&e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:s.description}),e.jsx(d,{variant:"outline",className:"mt-2",children:s.type.replace("_"," ")})]},s.id))})})]}),W=()=>e.jsxs(b,{children:[e.jsxs(y,{className:"flex flex-row items-center justify-between",children:[e.jsxs("div",{children:[e.jsxs(k,{className:"flex items-center gap-2",children:[e.jsx(J,{className:"h-5 w-5"}),"Aufgaben"]}),e.jsx(A,{children:"Ihre offenen Aufgaben"})]}),u.length>0&&e.jsx(d,{variant:"secondary",children:u.length})]}),e.jsx(_,{children:e.jsx("div",{className:"space-y-3",children:u.length===0?e.jsx("p",{className:"text-muted-foreground text-sm",children:"Keine offenen Aufgaben"}):u.slice(0,4).map(s=>e.jsx("div",{className:"p-3 rounded-lg border bg-muted/20",children:e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-sm font-medium",children:s.title}),s.description&&e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:s.description}),e.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[e.jsx(d,{variant:s.priority==="high"||s.priority==="urgent"?"destructive":"outline",children:s.priority}),s.due_date&&e.jsxs("span",{className:"text-xs text-muted-foreground",children:["Fällig: ",P(new Date(s.due_date),"dd.MM.yyyy",{locale:B})]})]})]}),e.jsxs("div",{className:"flex gap-1",children:[s.status==="open"&&e.jsx(o,{size:"sm",variant:"outline",onClick:()=>D(s.id,"in_progress"),children:"Start"}),e.jsx(o,{size:"sm",variant:"default",onClick:()=>D(s.id,"completed"),children:e.jsx(ke,{className:"h-4 w-4"})})]})]})},s.id))})})]}),H=()=>e.jsxs(b,{children:[e.jsxs(y,{children:[e.jsxs(k,{className:"flex items-center gap-2",children:[e.jsx(_e,{className:"h-5 w-5"}),"Dokumente"]}),e.jsx(A,{children:"Ihre wichtigen Dokumente"})]}),e.jsx(_,{children:e.jsx("div",{className:"space-y-3",children:t.documents.length===0?e.jsx("p",{className:"text-muted-foreground text-sm",children:"Keine Dokumente verfügbar"}):t.documents.map(s=>e.jsx("div",{className:"p-3 rounded-lg border bg-muted/20",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium",children:s.title}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s.document_type.replace("_"," ")})]}),s.file_url&&e.jsx(o,{size:"sm",variant:"outline",asChild:!0,children:e.jsx("a",{href:s.file_url,target:"_blank",rel:"noopener noreferrer",children:"Öffnen"})})]})},s.id))})})]}),U=()=>e.jsxs(b,{children:[e.jsxs(y,{children:[e.jsxs(k,{className:"flex items-center gap-2",children:[e.jsx(p,{className:"h-5 w-5"}),"Quick Links"]}),e.jsx(A,{children:"Schnellzugriff auf wichtige Bereiche"})]}),e.jsx(_,{children:e.jsx("div",{className:"grid grid-cols-1 gap-2",children:T.map((s,I)=>e.jsx(o,{variant:"ghost",className:"justify-start",asChild:!0,children:e.jsxs("a",{href:s.href,children:[e.jsx(s.icon,{className:"h-4 w-4 mr-2"}),s.title]})},I))})})]});return e.jsx("div",{className:"min-h-screen bg-background p-4 md:p-6",children:e.jsxs("div",{className:"max-w-7xl mx-auto",children:[e.jsxs("div",{className:"mb-4 md:mb-8",children:[e.jsxs("h1",{className:"text-xl md:text-3xl font-bold mb-1 md:mb-2 flex items-center gap-2",children:[e.jsx(ge,{className:"h-6 w-6 md:h-8 md:w-8"}),"Mein Bereich"]}),e.jsx("p",{className:"text-sm md:text-base text-muted-foreground",children:"Willkommen zurück! Hier ist Ihre persönliche Übersicht."})]}),e.jsx("div",{className:"md:hidden",children:e.jsxs(fe,{defaultValue:"favorites",className:"w-full",children:[e.jsxs(Ne,{className:"w-full h-auto flex-wrap justify-start gap-1 p-1",children:[e.jsxs(L,{value:"favorites",className:"flex-1 min-w-0 px-2 py-2 flex-col gap-0.5 h-auto text-[10px]",children:[e.jsx(p,{className:"h-4 w-4"}),e.jsx("span",{children:"Favoriten"})]}),e.jsxs(L,{value:"notes",className:"flex-1 min-w-0 px-2 py-2 flex-col gap-0.5 h-auto text-[10px] relative",children:[e.jsx(O,{className:"h-4 w-4"}),e.jsx("span",{children:"Notizen"}),m>0&&e.jsx(d,{variant:"secondary",className:"absolute -top-1 -right-1 h-4 min-w-4 px-1 text-[9px] bg-yellow-100 text-yellow-800",children:m})]}),e.jsxs(L,{value:"overview",className:"flex-1 min-w-0 px-2 py-2 flex-col gap-0.5 h-auto text-[10px]",children:[e.jsx($,{className:"h-4 w-4"}),e.jsx("span",{children:"Termine"})]}),e.jsxs(L,{value:"notifications",className:"flex-1 min-w-0 px-2 py-2 flex-col gap-0.5 h-auto text-[10px] relative",children:[e.jsx(q,{className:"h-4 w-4"}),e.jsx("span",{children:"Nachr."}),n.length>0&&e.jsx(d,{variant:"destructive",className:"absolute -top-1 -right-1 h-4 min-w-4 px-1 text-[9px]",children:n.length})]}),e.jsxs(L,{value:"tasks",className:"flex-1 min-w-0 px-2 py-2 flex-col gap-0.5 h-auto text-[10px] relative",children:[e.jsx(J,{className:"h-4 w-4"}),e.jsx("span",{children:"Aufgaben"}),u.length>0&&e.jsx(d,{variant:"secondary",className:"absolute -top-1 -right-1 h-4 min-w-4 px-1 text-[9px]",children:u.length})]}),e.jsxs(L,{value:"support",className:"flex-1 min-w-0 px-2 py-2 flex-col gap-0.5 h-auto text-[10px] relative",children:[e.jsx(V,{className:"h-4 w-4"}),e.jsx("span",{children:"Support"}),r.length>0&&e.jsx(d,{variant:S.length>0?"destructive":"secondary",className:"absolute -top-1 -right-1 h-4 min-w-4 px-1 text-[9px]",children:r.length})]})]}
1),e.jsxs(E,{value:"favorites",className:"space-y-4 mt-4",children:[e.jsx(X,{}),e.jsx(U,{}),e.jsx(G,{})]}),e.jsx(E,{value:"notes",className:"mt-4",children:e.jsx(Z,{onQuickNoteClick:()=>h(!0)})}),e.jsxs(E,{value:"overview",className:"space-y-4 mt-4",children:[e.jsx(M,{}),e.jsx(H,{})]}),e.jsx(E,{value:"notifications",className:"mt-4",children:e.jsx(K,{})}),e.jsx(E,{value:"tasks",className:"mt-4",children:e.jsx(W,{})}),e.jsx(E,{value:"support",className:"mt-4",children:e.jsx(C,{})})]})}),e.jsxs("div",{className:"hidden md:grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:[e.jsx(Z,{onQuickNoteClick:()=>h(!0)}),e.jsx(X,{}),e.jsx(M,{}),e.jsx(K,{}),e.jsx(W,{}),e.jsx(H,{}),e.jsx(U,{}),e.jsx(C,{}),e.jsx(G,{}),e.jsxs(b,{children:[e.jsx(y,{children:e.jsxs(k,{className:"flex items-center gap-2",children:[e.jsx(ve,{className:"h-5 w-5"}),"Statistiken"]})}),e.jsx(_,{children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-sm",children:"Offene Notizen"}),e.jsx(d,{variant:"secondary",className:"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200",children:m})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-sm",children:"Offene Aufgaben"}),e.jsx(d,{variant:"secondary",children:u.length})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-sm",children:"Ungelesene Nachrichten"}),e.jsx(d,{variant:n.length>0?"destructive":"secondary",children:n.length})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-sm",children:"Nächste Termine"}),e.jsx(d,{variant:"outline",children:v.length})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-sm",children:"Aktive Dokumente"}),e.jsx(d,{variant:"outline",children:t.documents.length})]})]})})]})]}),e.jsx(we,{open:N,onOpenChange:h,onSave:z}),e.jsx(be,{open:i,onOpenChange:l})]})})};export{qe as default};

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.