Loheide-eu-mitarbeiterplatt.../public/build/assets/Dashboard-BlXtDIl0.js
Friederich Loheide f813a0fff3
Some checks failed
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 58s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 1m7s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 1m4s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 1m3s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 1m10s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 1m8s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 1m5s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 1m4s
CI / Build-Artefakte aktuell (pull_request) Failing after 41s
Layout nach Intranet-Vorbild: einzeiliger Header, Begrüßungskarte, Schnellzugriff-Leiste
- Header einzeilig mit Navigation neben dem Logo, Suche rechts, mobil als Menü (Sheet)
- Begrüßungskarte mit Foto rechts und Aktionsleiste darunter
- Schnellzugriffe als blätterbare Kachelreihe
- Raster auf Mobilgeräten repariert (Spalten wuchsen mit breitem Inhalt mit)
- Telefonnummern im Admin: übliche deutsche Schreibweisen wie „+49 (0) 30 …“ werden akzeptiert

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 20:58:21 +00:00

1 line
No EOL
13 KiB
JavaScript

import{$t as e,F as t,G as n,J as r,K as i,Lt as a,Sn as o,Ut as s,Y as c,Yt as l,i as u,lr as d,n as f,nt as p,q as m,qn as h,rr as g,tt as _}from"./app-BHwJ4Zji.js";import{A as v}from"./BrandLogo-3lkjXBgB.js";import{t as y}from"./building-complex-vRYxofhl.js";import{a as b,c as x,i as S,l as ee,o as C,r as w,s as te,t as ne,u as T}from"./AppLayout-IR1W_P-W.js";import{t as E}from"./chevron-left-D1r5Kshj.js";import{n as D,t as O}from"./phone-BUv4HK3J.js";import{n as k,t as A}from"./dist-oPvV3q-e.js";import{t as j}from"./Panel-DdKJGwrP.js";var M=v({name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]}),N=v({name:`book-open`,size:24,node:[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}]]}),P=v({name:`briefcase`,size:24,node:[[`path`,{d:`M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16`,key:`jecpp`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`6`,rx:`2`,key:`i6l2r4`}]]}),F=v({name:`calendar-days`,size:24,node:[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M8 13h.01`,key:`1sbv64`}],[`path`,{d:`M12 13h.01`,key:`y0uutt`}],[`path`,{d:`M16 13h.01`,key:`wip0gl`}],[`path`,{d:`M8 17h.01`,key:`p3bg7i`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M16 17h.01`,key:`ql8jdd`}]]}),I=v({name:`car`,size:24,node:[[`path`,{d:`M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2`,key:`5owen`}],[`circle`,{cx:`7`,cy:`17`,r:`2`,key:`u2ysq9`}],[`path`,{d:`M9 17h6`,key:`r8uit2`}],[`circle`,{cx:`17`,cy:`17`,r:`2`,key:`axvx0g`}]]}),L=v({name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]}),R=v({name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]}),z=v({name:`folder`,size:24,node:[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]}),B=v({name:`graduation-cap`,size:24,node:[[`path`,{d:`M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z`,key:`j76jl0`}],[`path`,{d:`M22 10v6`,key:`1lu8f3`}],[`path`,{d:`M6 12.5V16a6 3 0 0 0 12 0v-3.5`,key:`1r8lef`}]]}),V=v({name:`headset`,size:24,node:[[`path`,{d:`M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3Z`,key:`12oyoe`}],[`path`,{d:`M21 16v2a4 4 0 0 1-4 4h-5`,key:`1x7m43`}]]}),H=v({name:`heart-handshake`,size:24,node:[[`path`,{d:`M19.414 14.414C21 12.828 22 11.5 22 9.5a5.5 5.5 0 0 0-9.591-3.676.6.6 0 0 1-.818.001A5.5 5.5 0 0 0 2 9.5c0 2.3 1.5 4 3 5.5l5.535 5.362a2 2 0 0 0 2.879.052 2.12 2.12 0 0 0-.004-3 2.124 2.124 0 1 0 3-3 2.124 2.124 0 0 0 3.004 0 2 2 0 0 0 0-2.828l-1.881-1.882a2.41 2.41 0 0 0-3.409 0l-1.71 1.71a2 2 0 0 1-2.828 0 2 2 0 0 1 0-2.828l2.823-2.762`,key:`17lmqv`}]]}),U=v({name:`lightbulb`,size:24,node:[[`path`,{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]}),W=v({name:`link`,size:24,node:[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]}),G=v({name:`megaphone`,size:24,node:[[`path`,{d:`M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z`,key:`q8bfy3`}],[`path`,{d:`M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14`,key:`1853fq`}],[`path`,{d:`M8 6v8`,key:`15ugcq`}]]}),K=v({name:`message-square`,size:24,node:[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]}),q=v({name:`plane`,size:24,node:[[`path`,{d:`M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z`,key:`1v9wt8`}]]}),J=v({name:`receipt`,size:24,node:[[`path`,{d:`M12 17V7`,key:`pyj7ub`}],[`path`,{d:`M16 8h-6a2 2 0 0 0 0 4h4a2 2 0 0 1 0 4H8`,key:`1elt7d`}],[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}]]}),re=v({name:`shield-check`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]}),Y=v({name:`users`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]}),X=v({name:`utensils`,size:24,node:[[`path`,{d:`M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2`,key:`cjf0a3`}],[`path`,{d:`M7 2v20`,key:`1473qp`}],[`path`,{d:`M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7`,key:`j28e5`}]],aliases:[`fork-knife`]}),ie=v({name:`wrench`,size:24,node:[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]}),ae={class:`overflow-hidden rounded-lg border bg-card`},oe={class:`flex items-center justify-between gap-4 bg-brand px-6 py-6 text-brand-foreground`},se={class:`min-w-0`},ce={class:`text-sm opacity-85`},le={class:`mt-0.5 truncate text-[22px] leading-tight font-semibold tracking-tight`},ue={class:`mt-1.5 truncate text-[13px] opacity-85`},de={class:`grid grid-cols-3 divide-x`,"aria-label":`Mein Bereich`},fe={key:0,href:`/admin`,class:`flex flex-col items-center gap-2 px-2 py-4 text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},Z={__name:`GreetingCard`,props:{user:{type:Object,required:!0},profile:{type:Object,required:!0},greeting:{type:String,required:!0}},setup(e){return(t,n)=>(s(),c(`section`,ae,[i(`div`,oe,[i(`div`,se,[i(`div`,ce,d(e.greeting)+`,`,1),i(`div`,le,d(e.user.name),1),i(`div`,ue,d(e.profile.job_title||`Schön, dass Sie da sind!`),1)]),p(w,{person:e.user,class:`size-20 shrink-0 text-xl ring-4 ring-white/25`},null,8,[`person`])]),i(`nav`,de,[p(g(f),{href:`/personen/${e.user.id}`,class:`flex flex-col items-center gap-2 px-2 py-4 text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},{default:o(()=>[p(g(S),{class:`size-5 text-brand-text`,"stroke-width":1.75}),n[0]||=_(` Mein Profil `,-1)]),_:1},8,[`href`]),p(g(f),{href:`/profil/bearbeiten`,class:`flex flex-col items-center gap-2 px-2 py-4 text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},{default:o(()=>[p(g(b),{class:`size-5 text-brand-text`,"stroke-width":1.75}),n[1]||=_(` Profil bearbeiten `,-1)]),_:1}),e.user.is_admin?(s(),c(`a`,fe,[p(g(C),{class:`size-5 text-brand-text`,"stroke-width":1.75}),n[2]||=_(` Administration `,-1)])):(s(),m(g(f),{key:1,href:`/logout`,method:`post`,as:`button`,class:`flex flex-col items-center gap-2 px-2 py-4 text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},{default:o(()=>[p(g(ee),{class:`size-5 text-brand-text`,"stroke-width":1.75}),n[3]||=_(` Abmelden `,-1)]),_:1}))])]))}},Q={link:W,clock:L,"calendar-days":F,plane:q,receipt:J,"graduation-cap":B,headset:V,utensils:X,car:I,"file-text":R,"book-open":N,users:Y,mail:D,"message-square":K,lightbulb:U,"shield-check":re,"heart-handshake":H,"building-2":y,wrench:ie,monitor:x,folder:z,phone:O,megaphone:G,briefcase:P},pe={class:`rounded-lg border bg-card`},me={class:`flex items-center justify-between px-5 pt-4 pb-3`},he={key:0,class:`flex gap-1.5`},ge=[`disabled`],_e=[`disabled`],ve={class:`text-xs leading-tight font-medium`},ye={__name:`QuickLinksRow`,props:{links:{type:Array,required:!0}},setup(n){let u=h(null),_=h(!1),v=h(!1);function y(){let e=u.value;e&&(_.value=e.scrollLeft>4,v.value=e.scrollLeft+e.clientWidth<e.scrollWidth-4)}function b(e){u.value?.scrollBy({left:e*u.value.clientWidth*.8,behavior:`smooth`})}return a(y),k(u,y),A(u,`scroll`,y,{passive:!0}),(a,h)=>(s(),c(`section`,pe,[i(`header`,me,[h[2]||=i(`h2`,{class:`text-base font-semibold`},`Schnellzugriff`,-1),_.value||v.value?(s(),c(`div`,he,[i(`button`,{type:`button`,class:`grid size-7 place-items-center rounded-md border text-foreground/70 hover:bg-accent disabled:opacity-40`,disabled:!_.value,"aria-label":`Zurück`,onClick:h[0]||=e=>b(-1)},[p(g(E),{class:`size-4`})],8,ge),i(`button`,{type:`button`,class:`grid size-7 place-items-center rounded-md border text-foreground/70 hover:bg-accent disabled:opacity-40`,disabled:!v.value,"aria-label":`Weiter`,onClick:h[1]||=e=>b(1)},[p(g(T),{class:`size-4`})],8,_e)])):r(``,!0)]),i(`div`,{ref_key:`track`,ref:u,class:`flex snap-x scroll-px-5 gap-3 overflow-x-auto px-5 pb-5 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden`},[(s(!0),c(t,null,l(n.links,t=>(s(),m(e(t.url.startsWith(`/`)&&!t.new_tab?g(f):`a`),{key:t.label+t.url,href:t.url,target:t.new_tab?`_blank`:void 0,rel:t.new_tab?`noopener`:void 0,class:`flex w-[116px] shrink-0 snap-start flex-col items-center gap-2.5 rounded-md bg-muted px-2 py-4 text-center transition-colors hover:bg-brand-soft`},{default:o(()=>[(s(),m(e(g(Q)[t.icon]??g(Q).link),{class:`size-6 text-brand-text`,"stroke-width":1.6})),i(`span`,ve,d(t.label),1)]),_:2},1032,[`href`,`target`,`rel`]))),128))],512)]))}},be={class:`grid grid-cols-1 gap-6 lg:grid-cols-12`},$={class:`grid min-w-0 grid-cols-1 content-start gap-6 lg:col-span-8`},xe={class:`grid gap-3 sm:grid-cols-2 xl:grid-cols-3`},Se={class:`min-w-0`},Ce={class:`truncate text-sm font-semibold`},we={class:`truncate text-[13px] text-muted-foreground`},Te={class:`grid min-w-0 grid-cols-1 content-start gap-6 lg:col-span-4`},Ee={action:`/personen`,method:`get`,class:`relative`,role:`search`},De={__name:`Dashboard`,props:{profile:{type:Object,required:!0},quickLinks:{type:Array,required:!0},newColleagues:{type:Object,required:!0},peopleCount:{type:Number,required:!0}},setup(e){let a=e,h=u(),v=n(()=>h.props.auth.user),y=n(()=>({...v.value,avatar_url:a.profile.avatar_url})),x=n(()=>{let e=new Date().getHours();return e<11?`Guten Morgen`:e<18?`Guten Tag`:`Guten Abend`}),S=n(()=>!a.profile.avatar_url||!a.profile.job_title);return(n,a)=>(s(),m(ne,{title:`Startseite`},{default:o(()=>[i(`div`,be,[i(`div`,$,[p(Z,{user:y.value,profile:e.profile,greeting:x.value,class:`lg:hidden`},null,8,[`user`,`profile`,`greeting`]),p(ye,{links:e.quickLinks},null,8,[`links`]),e.newColleagues.data.length?(s(),m(j,{key:0,title:`Neu im Team`,"action-label":`Alle Personen`,"action-href":`/personen`},{default:o(()=>[i(`ul`,xe,[(s(!0),c(t,null,l(e.newColleagues.data,e=>(s(),c(`li`,{key:e.id},[p(g(f),{href:`/personen/${e.id}`,class:`flex items-center gap-3 rounded-lg border p-3 transition-colors hover:bg-accent`},{default:o(()=>[p(w,{person:e,class:`size-11`},null,8,[`person`]),i(`div`,Se,[i(`div`,Ce,d(e.name),1),i(`div`,we,d(e.job_title||e.department),1)])]),_:2},1032,[`href`])]))),128))])]),_:1})):r(``,!0)]),i(`aside`,Te,[p(Z,{user:y.value,profile:e.profile,greeting:x.value,class:`hidden lg:block`},null,8,[`user`,`profile`,`greeting`]),S.value?(s(),m(g(f),{key:0,href:`/profil/bearbeiten`,class:`flex items-start gap-3 rounded-lg border border-dashed border-brand-300 bg-card p-4 transition-colors hover:bg-brand-soft`},{default:o(()=>[p(g(b),{class:`mt-0.5 size-5 shrink-0 text-brand-text`}),a[0]||=i(`div`,null,[i(`div`,{class:`text-sm font-semibold`},`Profil vervollständigen`),i(`p`,{class:`mt-0.5 text-[13px] text-muted-foreground`},`Mit Foto und Funktion finden Kolleginnen und Kollegen Sie schneller.`)],-1)]),_:1})):r(``,!0),p(j,{title:`Personen finden`},{default:o(()=>[i(`form`,Ee,[p(g(te),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),a[1]||=i(`input`,{name:`q`,type:`search`,placeholder:`Name, Funktion, Abteilung …`,class:`h-10 w-full rounded-md border border-input bg-background pr-3 pl-9 text-sm placeholder:text-muted-foreground focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none`},null,-1)]),p(g(f),{href:`/personen`,class:`mt-4 flex items-center justify-between text-[13px] text-muted-foreground hover:text-foreground`},{default:o(()=>[_(d(e.peopleCount.toLocaleString(`de-DE`))+` Kolleginnen und Kollegen im Verzeichnis `,1),p(g(M),{class:`size-4`})]),_:1})]),_:1})])])]),_:1}))}};export{De as default};