Loheide-eu-mitarbeiterplatt.../public/build/assets/Show-gonBsjBG.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
19 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{Mt as e,Nt as t,Ot as n,P as r,ut as i}from"./ui-DTELwomD.js";import{C as a,E as o,Et as s,O as c,Ot as l,Q as u,S as d,T as f,V as p,W as m,Y as h,_t as g,g as _,h as v,i as y,k as b,kt as x,o as S,ot as C,p as w,q as T,rt as E,s as D,st as O,v as k,w as A,wt as j,x as M}from"./framework-CFqPLBV8.js";import{t as N}from"./corner-down-right-Bp8qBhVx.js";import{t as P}from"./link-2-C73BA6Qg.js";import{t as F}from"./send-BEFYa2vh.js";import{t as I}from"./trash-SluDS89H.js";import{Ct as L,K as R,Q as z,S as B,d as V,dt as H,f as U,g as W,i as G,tt as K,u as q,v as J,vt as Y}from"./app-DIZuUM-n.js";import{t as X}from"./NewsStats-BVboqkc3.js";var Z=t({name:`chart-no-axes-column`,size:24,node:[[`path`,{d:`M5 21v-6`,key:`1hz6c0`}],[`path`,{d:`M12 21V3`,key:`1lcnhd`}],[`path`,{d:`M19 21V9`,key:`unv183`}]],aliases:[`bar-chart-2`]}),Q=t({name:`pencil`,size:24,node:[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]}),ee=t({name:`reply`,size:24,node:[[`path`,{d:`M20 18v-2a4 4 0 0 0-4-4H4`,key:`5vmcpk`}],[`path`,{d:`m9 17-5-5 5-5`,key:`nvlc11`}]]}),$={id:`kommentare`,class:`rounded-xl border bg-card p-6 shadow-xs sm:p-8`,"aria-labelledby":`kommentare-titel`},te={id:`kommentare-titel`,class:`flex items-center gap-2 text-lg font-semibold`},ne={key:0,class:`rounded-pill bg-muted px-2 py-0.5 text-xs font-medium text-muted-foreground tabular-nums`},re={class:`min-w-0 flex-1`},ie=[`maxlength`,`onKeydown`],ae={key:0,class:`mt-1 text-[13px] text-destructive`},oe={key:1,class:`mt-2 flex items-center justify-end gap-3`},se={key:1,class:`mt-4 rounded-md bg-muted px-3 py-2 text-[13px] text-muted-foreground`},ce={key:2,class:`mt-6 text-sm text-muted-foreground`},le={class:`mt-6 grid gap-6`},ue=[`id`],de={class:`min-w-0 flex-1`},fe={key:0,class:`py-1 text-sm text-muted-foreground italic`},pe={class:`rounded-lg bg-muted/60 px-3.5 py-2.5`},me={class:`flex flex-wrap items-baseline gap-x-2 text-[13px]`},he={class:`font-semibold`},ge={key:0,class:`text-muted-foreground`},_e={key:0,class:`mt-0.5 flex items-center gap-1 text-xs text-muted-foreground`},ve=[`onSubmit`],ye=[`maxlength`],be={class:`mt-2 flex justify-end gap-2`},xe={key:2,class:`mt-1 text-sm leading-relaxed break-words whitespace-pre-line`},Se={class:`mt-1 flex flex-wrap items-center gap-x-3 px-1 text-xs text-muted-foreground`},Ce=[`datetime`,`title`],we={key:0},Te=[`onClick`],Ee=[`onClick`],De=[`onClick`],Oe={class:`min-w-0 flex-1`},ke={class:`mb-1 text-xs text-muted-foreground`},Ae=[`id`,`maxlength`,`onKeydown`],je={key:0,class:`mt-1 text-[13px] text-destructive`},Me={class:`mt-2 flex justify-end gap-2`},Ne={__name:`NewsComments`,props:{postSlug:{type:String,required:!0},comments:{type:Object,required:!0}},setup(e){let t=e,i=S(),o=i.props.auth?.user,l=g(``),u=g(!1),y=g({}),E=g(null),M=g(``),P=g(null),L=g(``),R=new Intl.RelativeTimeFormat(`de-DE`,{numeric:`auto`}),B=new Intl.DateTimeFormat(`de-DE`,{dateStyle:`medium`,timeStyle:`short`});function V(e){let t=(new Date(e)-new Date)/1e3,n=[[60,`second`],[60,`minute`],[24,`hour`],[7,`day`]],r=t;for(let[e,t]of n){if(Math.abs(r)<e)return R.format(Math.round(r),t);r/=e}return B.format(new Date(e))}function H(e,n){u.value=!0,D.post(`/neuigkeiten/${t.postSlug}/kommentare`,e,{preserveScroll:!0,only:[`comments`,`flash`],onError:e=>y.value=e,onSuccess:()=>{y.value={},n();let e=i.props.flash?.comment;e&&p(()=>X(e))},onFinish:()=>u.value=!1})}function U(){l.value.trim()&&H({body:l.value},()=>l.value=``)}function G(e){P.value=null,E.value=e,M.value=``,p(()=>document.getElementById(`antwort-${e.id}`)?.focus())}function K(){M.value.trim()&&H({body:M.value,parent_id:E.value.id},()=>{E.value=null,M.value=``})}function q(e){E.value=null,P.value=e.id,L.value=e.body}function J(e){D.put(`/kommentare/${e.id}`,{body:L.value},{preserveScroll:!0,only:[`comments`,`flash`],onSuccess:()=>P.value=null})}function Y(e){window.confirm(`Kommentar löschen?`)&&D.delete(`/kommentare/${e.id}`,{preserveScroll:!0,only:[`comments`,`flash`]})}function X(e){let t=document.getElementById(`kommentar-${e}`);t&&(t.scrollIntoView({behavior:`smooth`,block:`center`}),t.classList.add(`ring-2`,`ring-brand/40`),setTimeout(()=>t.classList.remove(`ring-2`,`ring-brand/40`),2e3))}m(()=>{let e=window.location.hash.match(/^#kommentar-(\d+)$/);e&&setTimeout(()=>X(e[1]),300)});let Z=e=>{e.target.style.height=`auto`,e.target.style.height=`${e.target.scrollHeight}px`};return(t,i)=>(T(),f(`section`,$,[d(`h2`,te,[b(j(z),{class:`size-5 text-brand-text`}),i[6]||=c(` Kommentare `,-1),e.comments.count?(T(),f(`span`,ne,x(e.comments.count),1)):A(``,!0)]),e.comments.enabled?(T(),f(`form`,{key:0,class:`mt-5 flex gap-3`,onSubmit:_(U,[`prevent`])},[j(o)?(T(),a(W,{key:0,person:j(o),class:`size-9 shrink-0`},null,8,[`person`])):A(``,!0),d(`div`,re,[O(d(`textarea`,{"onUpdate:modelValue":i[0]||=e=>l.value=e,rows:`2`,maxlength:e.comments.max,placeholder:`Was meinen Sie dazu?`,"aria-label":`Kommentar schreiben`,class:`w-full resize-none rounded-lg border border-input bg-background px-3 py-2 text-sm leading-relaxed focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none`,onInput:Z,onKeydown:[v(_(U,[`ctrl`]),[`enter`]),v(_(U,[`meta`]),[`enter`])]},null,40,ie),[[w,l.value]]),y.value.body&&!E.value?(T(),f(`p`,ae,x(y.value.body),1)):A(``,!0),l.value.trim()?(T(),f(`div`,oe,[i[8]||=d(`span`,{class:`text-xs text-muted-foreground`},`Strg + Enter zum Senden`,-1),b(j(r),{type:`submit`,size:`sm`,disabled:u.value},{default:C(()=>[u.value?(T(),a(j(n),{key:0,class:`animate-spin`})):(T(),a(j(F),{key:1})),i[7]||=c(` Kommentieren`,-1)]),_:1},8,[`disabled`])])):A(``,!0)])],32)):(T(),f(`p`,se,`Die Kommentare zu diesem Beitrag sind geschlossen.`)),!e.comments.threads.length&&e.comments.enabled?(T(),f(`p`,ce,`Noch keine Kommentare – schreiben Sie den ersten.`)):A(``,!0),d(`ol`,le,[(T(!0),f(k,null,h(e.comments.threads,t=>(T(),f(`li`,{key:t.id},[(T(!0),f(k,null,h([t,...t.replies],(t,n)=>(T(),f(`article`,{key:t.id,id:`kommentar-${t.id}`,class:s([`flex gap-3 rounded-lg transition-shadow`,n>0?`mt-4 ml-6 sm:ml-12`:``])},[t.author?(T(),a(W,{key:0,person:t.author,class:s([n>0?`size-8`:`size-9`,`shrink-0`])},null,8,[`person`,`class`])):(T(),f(`span`,{key:1,class:s([`grid shrink-0 place-items-center rounded-full bg-muted text-muted-foreground`,n>0?`size-8`:`size-9`])},[b(j(z),{class:`size-4`})],2)),d(`div`,de,[t.deleted?(T(),f(`p`,fe,`Dieser Kommentar wurde gelöscht.`)):(T(),f(k,{key:1},[d(`div`,pe,[d(`p`,me,[d(`span`,he,x(t.author?.name??`Ehemalige Person`),1),t.author?.department?(T(),f(`span`,ge,x(t.author.department),1)):A(``,!0)]),t.reply_to?(T(),f(`p`,_e,[b(j(N),{class:`size-3`}),c(` Antwort an `+x(t.reply_to),1)])):A(``,!0),P.value===t.id?(T(),f(`form`,{key:1,class:`mt-2`,onSubmit:_(e=>J(t),[`prevent`])},[O(d(`textarea`,{"onUpdate:modelValue":i[1]||=e=>L.value=e,rows:`3`,maxlength:e.comments.max,class:`w-full rounded-md border border-input bg-background px-3 py-2 text-sm focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/30`,"aria-label":`Kommentar bearbeiten`},null,8,ye),[[w,L.value]]),d(`div`,be,[b(j(r),{type:`button`,size:`sm`,variant:`ghost`,onClick:i[2]||=e=>P.value=null},{default:C(()=>[...i[9]||=[c(`Abbrechen`,-1)]]),_:1}),b(j(r),{type:`submit`,size:`sm`,disabled:!L.value.trim()},{default:C(()=>[...i[10]||=[c(`Speichern`,-1)]]),_:1},8,[`disabled`])])],40,ve)):(T(),f(`p`,xe,x(t.body),1))]),d(`div`,Se,[d(`time`,{datetime:t.created_at,title:j(B).format(new Date(t.created_at))},x(V(t.created_at)),9,Ce),t.edited?(T(),f(`span`,we,`bearbeitet`)):A(``,!0),e.comments.enabled?(T(),f(`button`,{key:1,type:`button`,class:`inline-flex items-center gap-1 font-medium hover:text-foreground`,onClick:e=>G(t)},[b(j(ee),{class:`size-3.5`}),i[11]||=c(` Antworten`,-1)],8,Te)):A(``,!0),t.can.edit?(T(),f(`button`,{key:2,type:`button`,class:`inline-flex items-center gap-1 hover:text-foreground`,onClick:e=>q(t)},[b(j(Q),{class:`size-3`}),i[12]||=c(` Bearbeiten`,-1)],8,Ee)):A(``,!0),t.can.delete?(T(),f(`button`,{key:3,type:`button`,class:`inline-flex items-center gap-1 hover:text-destructive`,onClick:e=>Y(t)},[b(j(I),{class:`size-3`}),i[13]||=c(` Löschen`,-1)],8,De)):A(``,!0)])],64))])],10,ue))),128)),E.value&&[t.id,...t.replies.map(e=>e.id)].includes(E.value.id)?(T(),f(`form`,{key:0,class:`mt-3 ml-6 flex gap-3 sm:ml-12`,onSubmit:_(K,[`prevent`])},[j(o)?(T(),a(W,{key:0,person:j(o),class:`size-8 shrink-0`},null,8,[`person`])):A(``,!0),d(`div`,Oe,[d(`p`,ke,`Antwort an `+x(E.value.author?.name),1),O(d(`textarea`,{id:`antwort-${E.value.id}`,"onUpdate:modelValue":i[3]||=e=>M.value=e,rows:`2`,maxlength:e.comments.max,class:`w-full resize-none rounded-lg border border-input bg-background px-3 py-2 text-sm focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none`,"aria-label":`Antwort schreiben`,onInput:Z,onKeydown:[v(_(K,[`ctrl`]),[`enter`]),v(_(K,[`meta`]),[`enter`]),i[4]||=v(e=>E.value=null,[`esc`])]},null,40,Ae),[[w,M.value]]),y.value.body?(T(),f(`p`,je,x(y.value.body),1)):A(``,!0),d(`div`,Me,[b(j(r),{type:`button`,size:`sm`,variant:`ghost`,onClick:i[5]||=e=>E.value=null},{default:C(()=>[...i[14]||=[c(`Abbrechen`,-1)]]),_:1}),b(j(r),{type:`submit`,size:`sm`,disabled:u.value||!M.value.trim()},{default:C(()=>[b(j(F)),i[15]||=c(` Antworten`,-1)]),_:1},8,[`disabled`])])])],32)):A(``,!0)]))),128))])]))}},Pe={key:0,class:`block text-[15px] leading-relaxed`},Fe={class:`mt-2 flex flex-wrap items-center gap-x-4 gap-y-1 text-[13px]`},Ie={key:0,class:`rounded-pill bg-brand-soft px-2.5 py-0.5 text-[11px] font-semibold tracking-wider text-brand-text uppercase`},Le={class:`inline-flex items-center gap-1.5`},Re={class:`inline-flex items-center gap-1.5`},ze={key:1,class:`inline-flex items-center gap-1.5`},Be={key:2,href:`#kommentare`,class:`inline-flex items-center gap-1.5 hover:text-foreground`},Ve={class:`fixed inset-x-0 top-0 z-50 h-1 bg-transparent`,"aria-hidden":`true`},He=[`src`,`alt`],Ue={class:`grid gap-6 lg:grid-cols-12`},We={class:`grid min-w-0 grid-cols-1 content-start gap-6 lg:col-span-8`},Ge={key:0,class:`mb-8 flex items-center gap-3 border-b pb-6 lg:hidden`},Ke={class:`min-w-0 text-sm`},qe={key:0,class:`text-muted-foreground`},Je=[`innerHTML`],Ye=[`innerHTML`],Xe={class:`mt-10 flex flex-wrap items-center gap-2 border-t pt-6`},Ze={key:0,class:`tabular-nums`},Qe=[`href`],$e={class:`grid content-start gap-6 lg:col-span-4`},et={key:0,class:`rounded-xl border bg-card p-5 shadow-xs`},tt={class:`min-w-0`},nt={class:`block font-semibold`},rt={key:0,class:`block text-[13px] text-muted-foreground`},it={key:1,class:`rounded-xl border bg-card p-5 shadow-xs`},at={class:`mb-3 flex items-center gap-1.5 text-xs font-semibold tracking-wider text-muted-foreground uppercase`},ot={class:`grid grid-cols-3 gap-3 text-center`},st={class:`text-xl font-semibold tabular-nums`},ct={class:`text-xl font-semibold tabular-nums`},lt={class:`text-xl font-semibold tabular-nums`},ut={key:0,class:`mt-4`},dt=[`aria-label`],ft=[`title`],pt={key:1,class:`mt-4 border-t pt-3`},mt={key:0,class:`mt-2 text-[13px] leading-relaxed text-muted-foreground`},ht={key:2,class:`rounded-xl border bg-card p-5 shadow-xs lg:sticky lg:top-20`},gt={class:`grid gap-1`},_t=[`src`],vt={key:1,class:`grid h-16 w-20 shrink-0 place-items-center rounded-md bg-brand-soft text-brand-text`},yt={class:`min-w-0`},bt={key:0,class:`block text-[10px] font-semibold tracking-wider text-accent2-text uppercase`},xt={class:`line-clamp-2 text-sm leading-snug font-medium group-hover:underline`},St={class:`flex flex-wrap items-center gap-x-3 text-xs text-muted-foreground`},Ct={__name:`Show`,props:{post:{type:Object,required:!0},related:{type:Object,required:!0},editUrl:{type:String,default:null},form:{type:Object,default:null},content:{type:Object,default:null},comments:{type:Object,default:null},reach:{type:Object,default:null},easy:{type:Object,default:null}},setup(t){let n=t,p=g(!1),m=g(null),_=g(!!n.post.liked),v=g(n.post.likes??0);E(()=>[n.post.liked,n.post.likes],([e,t])=>{_.value=!!e,v.value=t??0});function S(){let e=!_.value;_.value=e,v.value+=e?1:-1,D.visit(`/neuigkeiten/${n.post.slug}/herz`,{method:e?`post`:`delete`,preserveScroll:!0,preserveState:!0,onError:()=>{_.value=!e,v.value+=e?-1:1}})}let w=M(()=>Math.max(1,...(n.reach?.days??[]).map(e=>e.readers))),O=g(!1),N=g(null),F=g(0),{y:I}=i();E(I,()=>{let e=N.value;if(!e)return;let t=e.getBoundingClientRect(),n=t.height-window.innerHeight*.6;F.value=Math.min(100,Math.max(0,-t.top/Math.max(n,1)*100))});let Q=g(!1);async function ee(){try{await navigator.clipboard.writeText(window.location.href),Q.value=!0,setTimeout(()=>Q.value=!1,2e3)}catch{window.prompt(`Link zum Beitrag:`,window.location.href)}}let $=e=>[e?.department,e?.job_title].filter(Boolean).join(` | `),te=()=>`mailto:?subject=${encodeURIComponent(n.post.title)}&body=${encodeURIComponent(window.location.href)}`;return(n,i)=>(T(),a(V,{title:t.post.title},{default:C(()=>[b(q,{title:t.post.title,breadcrumbs:[{label:`Neuigkeiten`,href:`/neuigkeiten`}]},o({description:C(()=>[t.post.teaser?(T(),f(`span`,Pe,x(t.post.teaser),1)):A(``,!0),d(`span`,Fe,[t.post.category?(T(),f(`span`,Ie,x(t.post.category.name),1)):A(``,!0),d(`span`,Le,[b(j(L),{class:`size-4`}),c(` `+x(j(J)(t.post.published_at)),1)]),d(`span`,Re,[b(j(Y),{class:`size-4`}),c(` `+x(t.post.reading_minutes)+` Min. Lesezeit`,1)]),v.value?(T(),f(`span`,ze,[b(j(H),{class:`size-4`}),c(` `+x(v.value),1)])):A(``,!0),t.comments?.count?(T(),f(`a`,Be,[b(j(z),{class:`size-4`}),c(` `+x(t.comments.count)+` `+x(t.comments.count===1?`Kommentar`:`Kommentare`),1)])):A(``,!0)])]),_:2},[t.editUrl?{name:`actions`,fn:C(()=>[b(j(r),{variant:`outline`,size:`sm`,"as-child":``},{default:C(()=>[b(j(y),{href:t.editUrl},{default:C(()=>[b(j(R)),i[2]||=c(` Bearbeiten`,-1)]),_:1},8,[`href`])]),_:1})]),key:`0`}:void 0]),1032,[`title`]),d(`div`,Ve,[d(`div`,{class:`h-full bg-brand transition-[width] duration-150`,style:l({width:`${F.value}%`})},null,4)]),t.post.cover_url?(T(),f(`img`,{key:0,src:t.post.cover_url,alt:t.post.title,class:`mb-6 aspect-[2/1] max-h-[460px] w-full rounded-xl object-cover shadow-xs`},null,8,He)):A(``,!0),d(`div`,Ue,[d(`div`,We,[d(`article`,{ref_key:`article`,ref:N,class:`min-w-0 rounded-xl border bg-card p-6 shadow-xs sm:p-10`},[t.post.author?(T(),f(`div`,Ge,[b(W,{person:t.post.author,class:`size-11`},null,8,[`person`]),d(`div`,Ke,[b(j(y),{href:`/personen/${t.post.author.id}`,class:`font-semibold hover:underline`},{default:C(()=>[c(x(t.post.author.name),1)]),_:1},8,[`href`]),$(t.post.author)?(T(),f(`p`,qe,x($(t.post.author)),1)):A(``,!0)])])):A(``,!0),b(G,{modelValue:p.value,"onUpdate:modelValue":i[0]||=e=>p.value=e,easy:t.easy,"read-source":()=>`${t.post.title}.\n${t.post.teaser??``}\n${m.value?.innerText??``}`,class:`-mt-2 mb-6`},null,8,[`modelValue`,`easy`,`read-source`]),d(`div`,{ref_key:`body`,ref:m},[p.value&&t.easy?.html?(T(),f(`div`,{key:0,class:`prose prose-neutral max-w-none text-[17px] leading-relaxed prose-headings:tracking-tight dark:prose-invert`,lang:`de`,innerHTML:t.easy.html},null,8,Je)):t.content?(T(),a(U,{key:1,content:t.content},null,8,[`content`])):(T(),f(`div`,{key:2,class:`prose prose-neutral max-w-none prose-headings:tracking-tight prose-h2:mt-10 prose-a:text-brand-text prose-blockquote:border-l-brand prose-blockquote:bg-brand-soft/50 prose-blockquote:py-1 prose-blockquote:not-italic prose-img:rounded-lg dark:prose-invert first-of-type:prose-p:text-lg`,innerHTML:t.post.body_html},null,8,Ye))],512),t.form?(T(),a(U,{key:1,content:t.form,class:`mt-10`},null,8,[`content`])):A(``,!0),d(`footer`,Xe,[b(j(r),{variant:`outline`,size:`sm`,"aria-pressed":_.value,class:s(_.value?`border-brand/40 bg-brand-soft text-brand-text hover:bg-brand-soft hover:text-brand-text`:``),onClick:S},{default:C(()=>[b(j(H),{class:s(_.value?`fill-current`:``)},null,8,[`class`]),c(` `+x(_.value?`Gefällt mir`:`Herz geben`),1),v.value?(T(),f(`span`,Ze,` · `+x(v.value),1)):A(``,!0)]),_:1},8,[`aria-pressed`,`class`]),i[4]||=d(`span`,{class:`mr-2 ml-auto text-sm text-muted-foreground max-sm:ml-0`},`Beitrag teilen:`,-1),b(j(r),{variant:`outline`,size:`sm`,onClick:ee},{default:C(()=>[(T(),a(u(Q.value?j(e):j(P)))),c(` `+x(Q.value?`Link kopiert`:`Link kopieren`),1)]),_:1}),b(j(r),{variant:`outline`,size:`sm`,"as-child":``},{default:C(()=>[d(`a`,{href:te()},[b(j(K)),i[3]||=c(` Per E-Mail`,-1)],8,Qe)]),_:1})])],512),t.comments?(T(),a(Ne,{key:0,"post-slug":t.post.slug,comments:t.comments},null,8,[`post-slug`,`comments`])):A(``,!0)]),d(`aside`,$e,[t.post.author?(T(),f(`section`,et,[i[5]||=d(`h2`,{class:`mb-3 text-xs font-semibold tracking-wider text-muted-foreground uppercase`},`Geschrieben von`,-1),b(j(y),{href:`/personen/${t.post.author.id}`,class:`flex items-center gap-3 rounded-lg p-1 hover:bg-accent/50`},{default:C(()=>[b(W,{person:t.post.author,class:`size-14`},null,8,[`person`]),d(`span`,tt,[d(`span`,nt,x(t.post.author.name),1),$(t.post.author)?(T(),f(`span`,rt,x($(t.post.author)),1)):A(``,!0)])]),_:1},8,[`href`])])):A(``,!0),t.reach?(T(),f(`section`,it,[d(`h2`,at,[b(j(Z),{class:`size-3.5`}),i[6]||=c(` Reichweite`,-1)]),d(`dl`,ot,[d(`div`,null,[i[7]||=d(`dt`,{class:`text-[11px] text-muted-foreground`},`Gelesen`,-1),d(`dd`,st,x(t.reach.readers),1)]),d(`div`,null,[i[8]||=d(`dt`,{class:`text-[11px] text-muted-foreground`},`der Belegschaft`,-1),d(`dd`,ct,x(t.reach.share)+` %`,1)]),d(`div`,null,[i[9]||=d(`dt`,{class:`text-[11px] text-muted-foreground`},`Herzen`,-1),d(`dd`,lt,x(t.reach.likes),1)])]),t.reach.days.length>1?(T(),f(`div`,ut,[d(`div`,{class:`flex h-16 items-end gap-0.5`,role:`img`,"aria-label":`Lesende je Tag in den ersten ${t.reach.days.length} Tagen`},[(T(!0),f(k,null,h(t.reach.days,e=>(T(),f(`div`,{key:e.date,class:`flex-1 rounded-t-sm bg-brand/70`,style:l({height:`${Math.max(4,e.readers/w.value*100)}%`}),title:`${j(B)(e.date)}: ${e.readers}`},null,12,ft))),128))],8,dt),i[10]||=d(`p`,{class:`mt-1 text-[11px] text-muted-foreground`},`Lesende je Tag seit Veröffentlichung`,-1)])):A(``,!0),t.reach.likers.length?(T(),f(`div`,pt,[d(`button`,{type:`button`,class:`text-[13px] font-medium text-brand-text hover:underline`,onClick:i[1]||=e=>O.value=!O.value},x(O.value?`Ausblenden`:`Wer hat ein Herz gegeben?`),1),O.value?(T(),f(`p`,mt,x(t.reach.likers.join(`, `)),1)):A(``,!0)])):A(``,!0),i[11]||=d(`p`,{class:`mt-3 text-[11px] leading-snug text-muted-foreground`},`Gezählt wird anonym: jede Person einmal, ohne festzuhalten, wer gelesen hat.`,-1)])):A(``,!0),t.related.data.length?(T(),f(`section`,ht,[i[13]||=d(`h2`,{class:`mb-3 text-xs font-semibold tracking-wider text-muted-foreground uppercase`},`Weitere Beiträge`,-1),d(`ul`,gt,[(T(!0),f(k,null,h(t.related.data,e=>(T(),f(`li`,{key:e.id},[b(j(y),{href:`/neuigkeiten/${e.slug}`,class:`group flex gap-3 rounded-lg p-2 hover:bg-accent/50`},{default:C(()=>[e.thumb_url?(T(),f(`img`,{key:0,src:e.thumb_url,alt:``,loading:`lazy`,class:`h-16 w-20 shrink-0 rounded-md object-cover`},null,8,_t)):(T(),f(`span`,vt,[b(j(L),{class:`size-5`})])),d(`span`,yt,[e.category?(T(),f(`span`,bt,x(e.category.name),1)):A(``,!0),d(`span`,xt,x(e.title),1),d(`span`,St,[c(x(j(B)(e.published_at))+` `,1),b(X,{post:e},null,8,[`post`])])])]),_:2},1032,[`href`])]))),128))]),b(j(y),{href:`/neuigkeiten`,class:`mt-3 block border-t pt-3 text-[13px] font-medium text-brand-text hover:underline`},{default:C(()=>[...i[12]||=[c(`Alle Neuigkeiten`,-1)]]),_:1})])):A(``,!0)])])]),_:1},8,[`title`]))}};export{Ct as default};