import{_ as p,o as t,c as o,F as c,r as y,a as r,b as u,n as f,i as n,t as d,w as b,k,v as x,l as g,aZ as w}from"./entry.DPwc-EV0.js";const E={props:{items:{type:Array,required:!0},contacts:{type:Array,required:!0},emailDisplayMode:{type:String,default:"button"}},computed:{rounded(){return this.$ss.baseStyles.siteTheme===2},sortedItems(){const s=[];return this.contacts.forEach(i=>{const a=this.items.find(m=>m.id===i);typeof a<"u"&&s.push(a)}),s}},methods:{getPath(s){var i;return((i=s==null?void 0:s.siteContext)==null?void 0:i.path)??""}}},v={class:x(["ebm-contacts wide"])},C=["href"],S={class:"details"},B={class:"name"},I=["href"],D={class:"title"},L={class:"phone"},N=["href"],z=["href"];function M(s,i,a,m,P,l){const _=g,h=w;return t(),o("div",v,[(t(!0),o(c,null,y(l.sortedItems,e=>(t(),o("div",{key:e.id,class:"contact"},[r("a",{href:l.getPath(e)},[e.primaryImage?(t(),u(_,{key:0,src:e.primaryImage.src.split("?")[0]+"?w=150",style:f({borderRadius:l.rounded?"8px":"0",boxShadow:l.rounded?"1px 1px 3px rgba(0,0,0,.5)":"none"})},null,8,["src","style"])):n("",!0)],8,C),r("div",S,[r("h3",B,[r("a",{href:l.getPath(e)},d(e.fullName),9,I)]),r("div",D,d(e.title),1),r("div",L,d(e.phone),1),e.publicEmail&&a.emailDisplayMode!=="button"?(t(),o("a",{key:0,class:"email",href:`mailto:${e.publicEmail}`},d(e.publicEmail),9,N)):n("",!0),e.publicEmail&&a.emailDisplayMode!=="link"?(t(),u(h,{key:1,type:"link",class:"email",mode:"hollow",color:s.$ss.baseStyles.primaryColor,link:`mailto:${e.publicEmail}`},{default:b(()=>[k(" Email ")]),_:2},1032,["color","link"])):n("",!0),e.website?(t(),o("a",{key:2,href:e.website,class:"website"},d(e.website),9,z)):n("",!0)])]))),128))])}const W=p(E,[["render",M]]);export{W as default};