Loheide-eu-mitarbeiterplatt.../public/build/assets/Index-HZAfhlnK.js
Friederich Loheide 03e31f42b5
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 7m38s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 8m0s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 11m51s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 12m15s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 13m27s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 13m42s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 16m0s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 15m20s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 56s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m14s
Noch schneller (0.46.0)
- Erscheinungsbild: große Fotos (Anmeldung, Titelbild) beim Speichern als WebP
  ≤ 2400 px; Migration verkleinert vorhandene einmal
- Vite: Grundgerüst und UI-Bausteine als gemeinsame Dateien (Startseite 34 statt
  58 Skripte)
- Plugin-Oberflächen: Kopie nach public/ erneuert sich bei neuem Build
  (Fingerabdruck von dist/inhaus.json), auch ohne neue Version

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 17:00:29 +00:00

1 line
No EOL
4.7 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{P as e,dt as t}from"./ui-DTELwomD.js";import{C as n,O as r,S as i,T as a,Y as o,_t as s,f as c,i as l,k as u,kt as d,ot as f,p,q as m,rt as h,s as g,st as _,v,w as y,wt as b}from"./framework-CFqPLBV8.js";import{t as x}from"./chevron-left-DVVrqeys.js";import{t as S}from"./search-x-C9Mx7n-b.js";import{St as C,V as w,W as T,d as E,g as D,tt as O,u as k}from"./app-Bi2ZjL_5.js";var A={class:`flex w-full flex-col gap-3 sm:w-auto sm:flex-row`},j={class:`relative block sm:w-80`},M=[`value`],N={key:0,class:`grid gap-4 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4`},P={class:`min-w-0`},F={class:`truncate text-[15px] font-semibold hover:underline`},I={class:`truncate text-[13px] text-muted-foreground`},L={class:`px-4 pb-3 text-[13px] text-muted-foreground`},R={key:0,class:`font-medium text-brand-text`},z={key:1},B={key:2},V={class:`mt-auto flex border-t text-[13px]`},H=[`href`],U=[`href`],W={key:1,class:`grid place-items-center rounded-lg border border-dashed bg-card px-6 py-16 text-center`},G={key:2,class:`mt-6 flex items-center justify-between`,"aria-label":`Seiten`},K={class:`text-sm text-muted-foreground`},q={class:`flex gap-2`},J={__name:`Index`,props:{people:{type:Object,required:!0},filters:{type:Object,required:!0},departments:{type:Array,required:!0}},setup(J){let Y=J,X=s(Y.filters.q??``),Z=s(Y.filters.abteilung??``);function Q(){let e={};X.value&&(e.q=X.value),Z.value&&(e.abteilung=Z.value),g.get(`/personen`,e,{preserveState:!0,preserveScroll:!0,replace:!0})}return h(X,t(Q,300)),h(Z,Q),(t,s)=>(m(),n(E,{title:`Personen`},{default:f(()=>[u(k,{title:`Personen`},{description:f(()=>[r(d(J.people.meta.total.toLocaleString(`de-DE`))+` `+d(J.people.meta.total===1?`Person`:`Personen`)+d(J.filters.q||J.filters.abteilung?` gefunden`:` im Verzeichnis`)+` · `,1),u(b(l),{href:`/personen/organigramm`,class:`font-medium text-brand-text hover:underline`},{default:f(()=>[...s[4]||=[r(`Organigramm`,-1)]]),_:1})]),actions:f(()=>[i(`div`,A,[i(`label`,j,[s[5]||=i(`span`,{class:`sr-only`},`Suchen`,-1),u(b(w),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),_(i(`input`,{"onUpdate:modelValue":s[0]||=e=>X.value=e,type:`search`,placeholder:`Name, Funktion, Standort …`,class:`h-10 w-full rounded-md border border-input bg-card 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,512),[[p,X.value]])]),_(i(`select`,{"onUpdate:modelValue":s[1]||=e=>Z.value=e,class:`h-10 rounded-md border border-input bg-card px-3 text-sm focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none sm:w-56`,"aria-label":`Abteilung`},[s[6]||=i(`option`,{value:``},`Alle Abteilungen`,-1),(m(!0),a(v,null,o(J.departments,e=>(m(),a(`option`,{key:e,value:e},d(e),9,M))),128))],512),[[c,Z.value]])])]),_:1}),J.people.data.length?(m(),a(`ul`,N,[(m(!0),a(v,null,o(J.people.data,e=>(m(),a(`li`,{key:e.id,class:`flex flex-col rounded-lg border bg-card`},[u(b(l),{href:`/personen/${e.id}`,class:`flex items-center gap-3 p-4 pb-3`},{default:f(()=>[u(D,{person:e,class:`size-12`},null,8,[`person`]),i(`div`,P,[i(`div`,F,d(e.name),1),i(`div`,I,d(e.job_title||`–`),1)])]),_:2},1032,[`href`]),i(`div`,L,[e.department?(m(),a(`span`,R,d(e.department),1)):y(``,!0),e.department&&e.location?(m(),a(`span`,z,` · `)):y(``,!0),e.location?(m(),a(`span`,B,d(e.location),1)):y(``,!0)]),i(`div`,V,[i(`a`,{href:`mailto:${e.email}`,class:`flex flex-1 items-center justify-center gap-1.5 py-2.5 text-muted-foreground hover:bg-accent hover:text-foreground`},[u(b(O),{class:`size-4`}),s[7]||=r(` E-Mail `,-1)],8,H),e.phone?(m(),a(`a`,{key:0,href:`tel:${e.phone}`,class:`flex flex-1 items-center justify-center gap-1.5 border-l py-2.5 text-muted-foreground hover:bg-accent hover:text-foreground`},[u(b(T),{class:`size-4`}),s[8]||=r(` Anrufen `,-1)],8,U)):y(``,!0)])]))),128))])):(m(),a(`div`,W,[u(b(S),{class:`size-8 text-muted-foreground`}),s[9]||=i(`p`,{class:`mt-3 font-medium`},`Niemand gefunden`,-1),s[10]||=i(`p`,{class:`mt-1 text-sm text-muted-foreground`},`Versuchen Sie einen anderen Suchbegriff oder eine andere Abteilung.`,-1)])),J.people.meta.last_page>1?(m(),a(`nav`,G,[i(`p`,K,`Seite `+d(J.people.meta.current_page)+` von `+d(J.people.meta.last_page),1),i(`div`,q,[u(b(e),{variant:`outline`,size:`sm`,disabled:!J.people.links.prev,onClick:s[2]||=e=>b(g).get(J.people.links.prev,{},{preserveScroll:!1})},{default:f(()=>[u(b(x)),s[11]||=r(` Zurück `,-1)]),_:1},8,[`disabled`]),u(b(e),{variant:`outline`,size:`sm`,disabled:!J.people.links.next,onClick:s[3]||=e=>b(g).get(J.people.links.next,{},{preserveScroll:!1})},{default:f(()=>[s[12]||=r(` Weiter `,-1),u(b(C))]),_:1},8,[`disabled`])])])):y(``,!0)]),_:1}))}};export{J as default};