Loheide-eu-mitarbeiterplatt.../public/build/assets/Index-BqYhno5s.js
Friederich Loheide 179471cb53
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 8m15s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 8m16s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 8m10s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 8m15s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 10m23s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 10m41s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 8m59s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 9m1s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 49s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m11s
Einheitlicher Rahmen für alle Seiten (0.49.0)
Das Portal legt den Rahmen selbst um jede Plugin-Seite; AppLayout aus
@inhaus/ui setzt dort nur noch den Titel. Detailseiten nutzen PageHeader.

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

1 line
No EOL
16 KiB
JavaScript
Raw Permalink 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{C as e,D as t,Et as n,G as r,M as i,Nt as a,Ot as o,P as s,Q as c,S as l,T as u,W as d,X as f,Z as p,j as m,x as h}from"./ui-DTELwomD.js";import{C as g,Et as _,O as v,Q as y,S as b,T as x,Y as S,_t as C,a as w,g as T,i as E,k as D,kt as O,o as k,ot as A,q as j,rt as M,s as N,v as P,w as F,wt as I,x as L}from"./framework-CFqPLBV8.js";import{t as R}from"./chevron-left-DVVrqeys.js";import{t as z}from"./ellipsis-vertical-BCtTLVNJ.js";import{t as B}from"./plus-DBUMooLa.js";import{t as V}from"./trash-SluDS89H.js";import{E as H,G as U,R as W,St as ee,c as te,d as ne,g as G,s as K,u as re,wt as q}from"./app-DIZuUM-n.js";var J=a({name:`arrow-right-left`,size:24,node:[[`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`}]]}),Y=a({name:`award`,size:24,node:[[`path`,{d:`m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526`,key:`1yiouv`}],[`circle`,{cx:`12`,cy:`8`,r:`6`,key:`1vp47v`}]]}),X=a({name:`flower-2`,size:24,node:[[`path`,{d:`M12 5a3 3 0 1 1 3 3m-3-3a3 3 0 1 0-3 3m3-3v1M9 8a3 3 0 1 0 3 3M9 8h1m5 0a3 3 0 1 1-3 3m3-3h-1m-2 3v-1`,key:`3pnvol`}],[`circle`,{cx:`12`,cy:`8`,r:`2`,key:`1822b1`}],[`path`,{d:`M12 10v12`,key:`6ubwww`}],[`path`,{d:`M12 22c4.2 0 7-1.667 7-5-4.2 0-7 1.667-7 5Z`,key:`9hd38g`}],[`path`,{d:`M12 22c-4.2 0-7-1.667-7-5 4.2 0 7 1.667 7 5Z`,key:`ufn41s`}]]}),ie=a({name:`hand`,size:24,node:[[`path`,{d:`M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2`,key:`1fvzgz`}],[`path`,{d:`M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2`,key:`1kc0my`}],[`path`,{d:`M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8`,key:`10h0bg`}],[`path`,{d:`M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15`,key:`1s1gnw`}]]}),Z={key:0},ae={key:0,class:`flex items-center gap-2 rounded-md border px-2 py-1.5`},oe={class:`min-w-0 flex-1 truncate text-sm`},se={key:1,class:`relative`},ce={key:0,class:`absolute inset-x-0 top-full z-30 mt-1 max-h-60 overflow-y-auto rounded-md border bg-popover p-1 shadow-md`},le=[`onClick`],ue={class:`truncate`},de={class:`grid gap-4 sm:grid-cols-2`},fe={key:0,class:`-mt-2 text-xs text-muted-foreground`},pe={__name:`EntryDialog`,props:{open:{type:Boolean,default:!1},section:{type:Object,default:null},entry:{type:Object,default:null},month:{type:String,required:!0}},emits:[`update:open`],setup(r,{emit:a}){let c=r,d=a,f={welcome:{date:`Eintritt am`,fields:[`department`,`location`,`text`]},transfer:{date:`Wechsel ab`,fields:[`from`,`to`,`text`]},jubilee:{date:`Jubiläum am`,fields:[`label`,`department`,`text`],label:`Jubiläum`,labelPlaceholder:`z. B. 25 Jahre`},farewell:{date:`Letzter Arbeitstag`,fields:[`department`,`label`,`text`],label:`Anlass (optional)`,labelPlaceholder:`z. B. Ruhestand`},memoriam:{date:`Verstorben am`,fields:[`born_on`,`department`,`text`]}},p=L(()=>f[c.section?.key]??f.welcome),_=e=>p.value.fields.includes(e),y=w({section:``,user_id:null,name:``,date:``,born_on:``,department:``,location:``,from:``,to:``,label:``,text:``}),E=C(null),k=C(!1),N=C(``),R=C([]);M(()=>c.open,e=>{if(!e)return;let t=c.entry;y.clearErrors(),y.defaults({section:c.section.key,user_id:t?.user_id??null,name:t?.free_name??``,date:t?.date??`${c.month}-01`,born_on:t?.born_on??``,department:t?.raw?.department??``,location:t?.raw?.location??``,from:t?.from??``,to:t?.to??``,label:t?.label??``,text:t?.text??``}),y.reset(),E.value=t?.person??null,k.value=!!t&&!t.user_id,N.value=``,R.value=[]});let z;M(N,e=>{if(clearTimeout(z),e.trim().length<2)return R.value=[];z=setTimeout(async()=>R.value=(await H.get(`/personen/suche?q=${encodeURIComponent(e.trim())}`)).people,250)});function B(e){E.value=e,y.user_id=e.id,N.value=``,R.value=[]}function V(){E.value=null,y.user_id=null}function U(){k.value&&(y.user_id=null);let e={preserveScroll:!0,onSuccess:()=>d(`update:open`,!1)};c.entry?y.put(`/gemeinsam/eintraege/${c.entry.id}`,e):y.post(`/gemeinsam/eintraege`,e)}return(a,c)=>(j(),g(I(t),{open:r.open,"onUpdate:open":c[12]||=e=>d(`update:open`,e)},{default:A(()=>[D(I(u),{class:`sm:max-w-lg`},{default:A(()=>[D(I(l),null,{default:A(()=>[D(I(h),null,{default:A(()=>[v(O(r.section?.title),1)]),_:1})]),_:1}),b(`form`,{class:`grid gap-4`,onSubmit:T(U,[`prevent`])},[D(K,{id:`g-person`,label:`Person`,error:I(y).errors.name||I(y).errors.user_id},{default:A(()=>[k.value?(j(),g(I(i),{key:1,id:`g-person`,modelValue:I(y).name,"onUpdate:modelValue":c[1]||=e=>I(y).name=e,maxlength:`150`,placeholder:`Vor- und Nachname`},null,8,[`modelValue`])):(j(),x(`div`,Z,[E.value?(j(),x(`div`,ae,[D(G,{person:E.value,class:`size-7 text-[10px]`},null,8,[`person`]),b(`span`,oe,O(E.value.name),1),b(`button`,{type:`button`,class:`grid size-6 place-items-center rounded hover:bg-accent`,"aria-label":`Auswahl entfernen`,onClick:V},[D(I(n),{class:`size-3.5`})])])):(j(),x(`div`,se,[D(I(i),{id:`g-person`,modelValue:N.value,"onUpdate:modelValue":c[0]||=e=>N.value=e,placeholder:`Name im Portal suchen …`,autocomplete:`off`},null,8,[`modelValue`]),R.value.length?(j(),x(`ul`,ce,[(j(!0),x(P,null,S(R.value,e=>(j(),x(`li`,{key:e.id},[b(`button`,{type:`button`,class:`flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm hover:bg-accent`,onClick:t=>B(e)},[D(G,{person:e,class:`size-7 text-[10px]`},null,8,[`person`]),c[13]||=v(),b(`span`,ue,O(e.name),1)],8,le)]))),128))])):F(``,!0)]))])),b(`button`,{type:`button`,class:`mt-1 justify-self-start text-xs text-brand-text hover:underline`,onClick:c[2]||=e=>k.value=!k.value},O(k.value?`Stattdessen Person aus dem Portal wählen`:`Nicht im Portal? Namen frei eintragen`),1)]),_:1},8,[`error`]),b(`div`,de,[D(K,{id:`g-date`,label:p.value.date,error:I(y).errors.date},{default:A(()=>[D(I(i),{id:`g-date`,modelValue:I(y).date,"onUpdate:modelValue":c[3]||=e=>I(y).date=e,type:`date`},null,8,[`modelValue`])]),_:1},8,[`label`,`error`]),_(`born_on`)?(j(),g(K,{key:0,id:`g-born`,label:`Geboren am (optional)`,error:I(y).errors.born_on},{default:A(()=>[D(I(i),{id:`g-born`,modelValue:I(y).born_on,"onUpdate:modelValue":c[4]||=e=>I(y).born_on=e,type:`date`},null,8,[`modelValue`])]),_:1},8,[`error`])):F(``,!0),_(`label`)?(j(),g(K,{key:1,id:`g-label`,label:p.value.label,error:I(y).errors.label},{default:A(()=>[D(I(i),{id:`g-label`,modelValue:I(y).label,"onUpdate:modelValue":c[5]||=e=>I(y).label=e,maxlength:`150`,placeholder:p.value.labelPlaceholder},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`label`,`error`])):F(``,!0),_(`from`)?(j(),g(K,{key:2,id:`g-from`,label:`Bisher`,error:I(y).errors.from},{default:A(()=>[D(I(i),{id:`g-from`,modelValue:I(y).from,"onUpdate:modelValue":c[6]||=e=>I(y).from=e,maxlength:`150`,placeholder:`z. B. Werkstatt Nord`},null,8,[`modelValue`])]),_:1},8,[`error`])):F(``,!0),_(`to`)?(j(),g(K,{key:3,id:`g-to`,label:`Künftig`,error:I(y).errors.to},{default:A(()=>[D(I(i),{id:`g-to`,modelValue:I(y).to,"onUpdate:modelValue":c[7]||=e=>I(y).to=e,maxlength:`150`,placeholder:`z. B. Verwaltung`},null,8,[`modelValue`])]),_:1},8,[`error`])):F(``,!0),_(`department`)?(j(),g(K,{key:4,id:`g-dep`,label:`Bereich`,error:I(y).errors.department},{default:A(()=>[D(I(i),{id:`g-dep`,modelValue:I(y).department,"onUpdate:modelValue":c[8]||=e=>I(y).department=e,maxlength:`150`,placeholder:E.value?.department||``},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`error`])):F(``,!0),_(`location`)?(j(),g(K,{key:5,id:`g-loc`,label:`Standort`,error:I(y).errors.location},{default:A(()=>[D(I(i),{id:`g-loc`,modelValue:I(y).location,"onUpdate:modelValue":c[9]||=e=>I(y).location=e,maxlength:`150`,placeholder:E.value?.location||``},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`error`])):F(``,!0)]),E.value&&(_(`department`)||_(`location`))?(j(),x(`p`,fe,`Leer gelassen, gilt die Angabe aus dem Profil.`)):F(``,!0),_(`text`)?(j(),g(K,{key:1,id:`g-text`,label:`Text (optional)`,error:I(y).errors.text},{default:A(()=>[D(I(m),{id:`g-text`,modelValue:I(y).text,"onUpdate:modelValue":c[10]||=e=>I(y).text=e,rows:`2`,maxlength:`1000`},null,8,[`modelValue`])]),_:1},8,[`error`])):F(``,!0),D(I(e),null,{default:A(()=>[D(I(s),{type:`button`,variant:`outline`,onClick:c[11]||=e=>d(`update:open`,!1)},{default:A(()=>[...c[14]||=[v(`Abbrechen`,-1)]]),_:1}),D(I(s),{type:`submit`,disabled:I(y).processing},{default:A(()=>[I(y).processing?(j(),g(I(o),{key:0,class:`animate-spin`})):F(``,!0),c[15]||=v(` Speichern`,-1)]),_:1},8,[`disabled`])]),_:1})],32)]),_:1})]),_:1},8,[`open`]))}},me={class:`flex min-w-0 items-center gap-3`},he={class:`min-w-0`},ge={key:1,class:`block truncate text-sm font-medium`},_e={key:2,class:`block truncate text-xs text-muted-foreground`},Q={__name:`PersonCell`,props:{entry:{type:Object,required:!0},muted:{type:Boolean,default:!1}},setup(e){let t=e=>e.split(/\s+/).filter(Boolean).slice(0,2).map(e=>e[0]).join(``).toUpperCase();return(n,r)=>(j(),x(`div`,me,[D(G,{person:e.entry.person??{id:e.entry.name,name:e.entry.name,initials:t(e.entry.name)},class:_([`size-9 shrink-0`,{grayscale:e.muted}])},null,8,[`person`,`class`]),b(`div`,he,[e.entry.person?.url?(j(),g(I(E),{key:0,href:e.entry.person.url,class:`block truncate text-sm font-medium hover:underline`},{default:A(()=>[v(O(e.entry.name),1)]),_:1},8,[`href`])):(j(),x(`span`,ge,O(e.entry.name),1)),e.entry.person?.job_title?(j(),x(`span`,_e,O(e.entry.person.job_title),1)):F(``,!0)])]))}},ve={class:`flex items-center gap-1 rounded-md border bg-card p-0.5`},ye={class:`min-w-32 text-center text-sm font-medium`},be={key:0,class:`grid grid-cols-1 gap-6`},xe={class:`flex items-center justify-between gap-3 border-b px-5 py-3`},Se={key:1,class:`text-xs text-muted-foreground`},Ce={key:0,class:`divide-y sm:hidden`},we={class:`flex items-start gap-2`},Te={class:`min-w-0 flex-1`},Ee={key:0,class:`shrink-0 pt-1 text-xs text-muted-foreground tabular-nums`},De={key:0,class:`mt-1.5 flex flex-wrap gap-x-4 gap-y-0.5 pl-11 text-[13px]`},Oe={class:`text-muted-foreground`},ke={key:1,class:`hidden overflow-x-auto sm:block`},Ae={class:`w-full text-sm`},je={class:`bg-muted/40 text-left text-xs text-muted-foreground`},Me={key:0,class:`w-12`},$={class:`divide-y`},Ne={class:`px-5 py-2.5`},Pe={key:0,class:`pr-3 text-right`},Fe={key:0},Ie=[`colspan`],Le={key:2,class:`px-5 py-4 text-[13px] text-muted-foreground`},Re={key:1,class:`rounded-lg border bg-card`},ze={__name:`Index`,props:{month:{type:String,required:!0},monthLabel:{type:String,required:!0},previous:{type:String,required:!0},next:{type:String,required:!0},isCurrent:{type:Boolean,default:!0},sections:{type:Array,required:!0},canManage:{type:Boolean,default:!1}},setup(e){let t=e,n=k();M(()=>n.props.flash.status,e=>e&&d.success(e),{immediate:!0});let i={welcome:W,transfer:J,birthdays:q,jubilee:Y,farewell:ie,memoriam:X},a={welcome:[[`department`,`Bereich`],[`location`,`Standort`],[`date`,`Eintritt`]],transfer:[[`from`,`Bisher`],[`to`,`Künftig`],[`date`,`Ab`]],birthdays:[[`department`,`Bereich`],[`location`,`Standort`],[`date`,`Geburtstag`]],jubilee:[[`label`,`Jubiläum`],[`department`,`Bereich`],[`date`,`Datum`]],farewell:[[`department`,`Bereich`],[`label`,`Anlass`],[`date`,`Letzter Arbeitstag`]],memoriam:[[`lifespan`,`Lebensdaten`],[`department`,`Bereich`]]},o=new Intl.DateTimeFormat(`de-DE`,{day:`2-digit`,month:`2-digit`,year:`numeric`}),l=new Intl.DateTimeFormat(`de-DE`,{day:`numeric`,month:`long`}),u=(e,t)=>e?(t===`birthdays`?l:o).format(new Date(`${e}T12:00:00`)):`–`;function m(e,t,n){return t===`date`?u(e.date,n):t===`lifespan`?[e.born_on&&`* ${u(e.born_on)}`,`† ${u(e.date)}`].filter(Boolean).join(` `):e[t]||`–`}let h=(e,t)=>a[t.key].filter(([e])=>e!==`date`).map(([n,r])=>[r,n===`lifespan`?m(e,n,t.key):e[n]]).filter(([,e])=>e&&e!==`–`),w=L(()=>t.sections.filter(e=>e.entries.length||t.canManage&&!e.automatic)),T=L(()=>t.sections.every(e=>!e.entries.length)),H=C({open:!1,section:null,entry:null}),G=e=>H.value={open:!0,section:e,entry:null},K=(e,t)=>H.value={open:!0,section:e,entry:t};function Z(e){window.confirm(`Eintrag „${e.name}“ entfernen?`)&&N.delete(`/gemeinsam/eintraege/${e.id}`,{preserveScroll:!0})}return(t,n)=>(j(),g(ne,{title:`Gemeinsam feiern, erinnern und willkommen heißen`},{default:A(()=>[D(re,{title:`Gemeinsam feiern, erinnern und willkommen heißen`,description:e.monthLabel},{actions:A(()=>[b(`div`,ve,[D(I(s),{variant:`ghost`,size:`icon`,class:`size-8`,"as-child":``},{default:A(()=>[D(I(E),{href:`/gemeinsam?monat=${e.previous}`,"aria-label":`Vorheriger Monat`,"preserve-scroll":``},{default:A(()=>[D(I(R))]),_:1},8,[`href`])]),_:1}),b(`span`,ye,O(e.monthLabel),1),D(I(s),{variant:`ghost`,size:`icon`,class:`size-8`,"as-child":``},{default:A(()=>[D(I(E),{href:`/gemeinsam?monat=${e.next}`,"aria-label":`Nächster Monat`,"preserve-scroll":``},{default:A(()=>[D(I(ee))]),_:1},8,[`href`])]),_:1})]),e.isCurrent?F(``,!0):(j(),g(I(s),{key:0,variant:`outline`,"as-child":``},{default:A(()=>[D(I(E),{href:`/gemeinsam`},{default:A(()=>[...n[1]||=[v(`Aktueller Monat`,-1)]]),_:1})]),_:1}))]),_:1},8,[`description`]),w.value.length&&(!T.value||e.canManage)?(j(),x(`div`,be,[(j(!0),x(P,null,S(w.value,t=>(j(),x(`section`,{key:t.key,class:_([`min-w-0 overflow-hidden rounded-lg border bg-card`,t.key===`memoriam`?`border-t-4 border-t-foreground/70`:`border-t-4 border-t-brand`])},[b(`header`,xe,[b(`h2`,{class:_([`flex items-center gap-2.5 text-base font-semibold`,{"text-foreground/85":t.key===`memoriam`}])},[(j(),g(y(i[t.key]),{class:_([`size-5`,t.key===`memoriam`?`text-muted-foreground`:`text-brand-text`])},null,8,[`class`])),v(` `+O(t.title),1)],2),e.canManage&&!t.automatic?(j(),g(I(s),{key:0,size:`sm`,variant:`outline`,onClick:e=>G(t)},{default:A(()=>[D(I(B)),n[2]||=v(` Hinzufügen`,-1)]),_:1},8,[`onClick`])):t.automatic&&e.canManage?(j(),x(`span`,Se,`aus dem Geburtstagskalender`)):F(``,!0)]),t.entries.length?(j(),x(`ul`,Ce,[(j(!0),x(P,null,S(t.entries,i=>(j(),x(`li`,{key:i.id,class:`px-4 py-3`},[b(`div`,we,[b(`div`,Te,[D(Q,{entry:i,muted:t.key===`memoriam`},null,8,[`entry`,`muted`])]),i.date&&t.key!==`memoriam`?(j(),x(`span`,Ee,O(u(i.date,t.key)),1)):F(``,!0),e.canManage&&!t.automatic?(j(),g(I(c),{key:1},{default:A(()=>[D(I(r),{"as-child":``},{default:A(()=>[D(I(s),{variant:`ghost`,size:`icon`,class:`-mt-1 -mr-2 size-8 text-muted-foreground`,"aria-label":`Aktionen für ${i.name}`},{default:A(()=>[D(I(z))]),_:1},8,[`aria-label`])]),_:2},1024),D(I(p),{align:`end`},{default:A(()=>[D(I(f),{onSelect:e=>K(t,i)},{default:A(()=>[D(I(U)),n[3]||=v(` Bearbeiten`,-1)]),_:1},8,[`onSelect`]),D(I(f),{class:`text-destructive`,onSelect:e=>Z(i)},{default:A(()=>[D(I(V)),n[4]||=v(` Entfernen`,-1)]),_:1},8,[`onSelect`])]),_:2},1024)]),_:2},1024)):F(``,!0)]),h(i,t).length?(j(),x(`dl`,De,[(j(!0),x(P,null,S(h(i,t),([e,t])=>(j(),x(`div`,{key:e,class:`flex gap-1`},[b(`dt`,Oe,O(e)+`:`,1),b(`dd`,null,O(t),1)]))),128))])):F(``,!0),i.text?(j(),x(`p`,{key:1,class:_([`mt-1.5 pl-11 text-[13px] text-muted-foreground`,{italic:t.key===`memoriam`}])},O(i.text),3)):F(``,!0)]))),128))])):F(``,!0),t.entries.length?(j(),x(`div`,ke,[b(`table`,Ae,[b(`thead`,je,[b(`tr`,null,[n[6]||=b(`th`,{class:`px-5 py-2 font-medium`},`Name`,-1),(j(!0),x(P,null,S(a[t.key],([e,t])=>(j(),x(`th`,{key:e,class:`px-3 py-2 font-medium whitespace-nowrap`},O(t),1))),128)),e.canManage&&!t.automatic?(j(),x(`th`,Me,[...n[5]||=[b(`span`,{class:`sr-only`},`Aktionen`,-1)]])):F(``,!0)])]),b(`tbody`,$,[(j(!0),x(P,null,S(t.entries,i=>(j(),x(P,{key:i.id},[b(`tr`,null,[b(`td`,Ne,[D(Q,{entry:i,muted:t.key===`memoriam`},null,8,[`entry`,`muted`])]),(j(!0),x(P,null,S(a[t.key],([e])=>(j(),x(`td`,{key:e,class:_([`px-3 py-2.5 whitespace-nowrap`,{"tabular-nums":e===`date`||e===`lifespan`}])},O(m(i,e,t.key)),3))),128)),e.canManage&&!t.automatic?(j(),x(`td`,Pe,[D(I(c),null,{default:A(()=>[D(I(r),{"as-child":``},{default:A(()=>[D(I(s),{variant:`ghost`,size:`icon`,class:`size-8 text-muted-foreground`,"aria-label":`Aktionen für ${i.name}`},{default:A(()=>[D(I(z))]),_:1},8,[`aria-label`])]),_:2},1024),D(I(p),{align:`end`},{default:A(()=>[D(I(f),{onSelect:e=>K(t,i)},{default:A(()=>[D(I(U)),n[7]||=v(` Bearbeiten`,-1)]),_:1},8,[`onSelect`]),D(I(f),{class:`text-destructive`,onSelect:e=>Z(i)},{default:A(()=>[D(I(V)),n[8]||=v(` Entfernen`,-1)]),_:1},8,[`onSelect`])]),_:2},1024)]),_:2},1024)])):F(``,!0)]),i.text?(j(),x(`tr`,Fe,[b(`td`,{colspan:a[t.key].length+2,class:_([`-mt-1 px-5 pb-3 text-[13px] text-muted-foreground`,{italic:t.key===`memoriam`}])},O(i.text),11,Ie)])):F(``,!0)],64))),128))])])])):(j(),x(`p`,Le,`Noch keine Einträge in diesem Monat.`))],2))),128))])):(j(),x(`div`,Re,[D(te,{icon:I(W),title:`Keine Einträge in diesem Monat`,text:`Hier stehen neue Kolleginnen und Kollegen, Wechsel, Geburtstage, Jubiläen, Verabschiedungen und Gedenken.`},null,8,[`icon`])])),e.canManage?(j(),g(pe,{key:2,open:H.value.open,"onUpdate:open":n[0]||=e=>H.value.open=e,section:H.value.section,entry:H.value.entry,month:e.month},null,8,[`open`,`section`,`entry`,`month`])):F(``,!0)]),_:1}))}};export{ze as default};