import{Et as e,I as t,O as n,S as r,T as i,Y as a,i as o,k as s,kt as c,ot as l,q as u,v as d,w as f,wt as p}from"./framework-CFqPLBV8.js";import{W as m,g as h,tt as g}from"./app-DPANCdgI.js";var _={key:0,class:`mb-3 text-lg font-semibold`},v={class:`min-w-0`},y={key:0,class:`truncate text-[13px] text-muted-foreground`},b={class:`mt-1.5 flex flex-wrap gap-x-4 gap-y-1 text-[13px]`},x=[`href`],S=[`href`],C={class:`truncate`},w={key:0,class:`text-sm text-muted-foreground`},T={__name:`Contacts`,props:{block:{type:Object,required:!0}},setup(T){let E=t(`pagebuilder:editing`,!1);return(t,D)=>(u(),i(`section`,null,[T.block.data.title?(u(),i(`h3`,_,c(T.block.data.title),1)):f(``,!0),r(`div`,{class:e(T.block.data.layout===`list`?`divide-y rounded-lg border bg-card`:`grid gap-4 @xl:grid-cols-2 @4xl:grid-cols-3`)},[(u(!0),i(d,null,a(T.block.props?.people??[],t=>(u(),i(`div`,{key:t.id,class:e([`flex gap-3`,T.block.data.layout===`list`?`items-center px-4 py-3`:`rounded-lg border bg-card p-4`])},[s(h,{person:t,class:`size-12 shrink-0`},null,8,[`person`]),r(`div`,v,[s(p(o),{href:`/personen/${t.id}`,class:`block truncate font-semibold hover:underline`},{default:l(()=>[n(c(t.name),1)]),_:2},1032,[`href`]),t.job_title?(u(),i(`p`,y,c(t.job_title),1)):f(``,!0),r(`div`,b,[t.phone?(u(),i(`a`,{key:0,href:`tel:${t.phone}`,class:`inline-flex items-center gap-1 text-brand-text hover:underline`},[s(p(m),{class:`size-3.5`}),n(` `+c(t.phone),1)],8,x)):f(``,!0),r(`a`,{href:`mailto:${t.email}`,class:`inline-flex min-w-0 items-center gap-1 text-brand-text hover:underline`},[s(p(g),{class:`size-3.5 shrink-0`}),D[0]||=n(),r(`span`,C,c(t.email),1)],8,S)])])],2))),128)),p(E)&&!(T.block.props?.people??[]).length?(u(),i(`p`,w,`Noch keine Personen ausgewählt.`)):f(``,!0)],2)]))}};export{T as default};