import{R as u,S as f,o as s,c as i,F as x,x as g,a as c,d as _,l as o,b as w,s as B,q as E,t as l,y as W,k as r,r as C,b8 as I}from"./C8VztkeY.js";import L from"./WebHTML-CpXbZtPy.mjs";import"./WebImage-mBs9XKmm.mjs";import"./nuxt-link-CRFhnX-9.mjs";import"./index-BTEZzqGI.mjs";import"./WebContentListNew-uQsityLs.mjs";import"./WebContentItem-DFxFkdBI.mjs";import"./useImageUrl-1XbeiwSF.mjs";import"./WebSubscribeNew-CHVSRpwQ.mjs";const N={class:"web-profiles"},S={class:"left"},T={key:0,class:"profile-image"},V={class:"profile-content"},$={key:0,class:"profile-name"},H={key:1,class:"profile-title"},M={key:2,class:"profile-subtitle"},P=["id"],q=["onClick"],K={__name:"WebProfiles",props:{profiles:{type:Array,required:!0}},setup(d){const h=d,n=u([]),m=u([]);function p(t){n.value.includes(t.id)?n.value=n.value.filter(a=>a!==t.id):n.value.push(t.id)}function y(t){return t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth}return f(()=>{h.profiles.forEach(t=>{y(document.getElementById(`profileText${t.id}`))&&m.value.push(t.id)})}),(t,a)=>{const b=C,k=I,v=L;return s(),i("div",N,[(s(!0),i(x,null,g(d.profiles,e=>(s(),i("div",{key:e.id,class:"profile-item"},[c("div",S,[e.primaryImage?(s(),i("div",T,[_(b,{src:e.primaryImage.src.split("?")[0]+"?w=120&h=120&fit=crop",style:{width:"100%"}},null,8,["src"])])):o("",!0),e.publicEmail?(s(),w(k,{key:1,type:"link",mode:"solid",link:`mailto:${e.publicEmail}`,class:"profile-email"},{default:B(()=>a[0]||(a[0]=[E(" Email ")])),_:2},1032,["link"])):o("",!0)]),c("div",V,[e.name?(s(),i("h3",$,l(e.name),1)):o("",!0),e.title?(s(),i("h3",H,l(e.title),1)):o("",!0),e.subtitle?(s(),i("h3",M,l(e.subtitle),1)):o("",!0),e.body??e.bio?(s(),i("div",{key:3,class:W(["profile-bio",r(n).includes(e.id)?"expanded":""])},[c("div",{id:`profileText${e.id}`,class:"text"},[_(v,{html:e.body??e.bio},null,8,["html"])],8,P),r(m).includes(e.id)?(s(),i("div",{key:0,class:"show-more",onClick:()=>p(e)},l(r(n).includes(e.id)?"Show less":"Show more"),9,q)):o("",!0)],2)):o("",!0)])]))),128))])}}};export{K as default};