import{R as u,S as f,o as s,c as o,F as x,x as g,a as c,d as _,l as n,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"./D6ipka4G.js";import L from"./WebHTML-D9zU1n0h.mjs";import"./WebImage-NuAmKOMh.mjs";import"./nuxt-link-DZQmNwWS.mjs";import"./index-BthhKEkt.mjs";import"./WebContentListNew-Dw3yFD4e.mjs";import"./WebContentItem-Lqu7iVHP.mjs";import"./useImageUrl-1XbeiwSF.mjs";import"./WebSubscribeNew-BM_jwdRf.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,a=u([]),m=u([]);function p(t){a.value.includes(t.id)?a.value=a.value.filter(i=>i!==t.id):a.value.push(t.id)}function y(t){return t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth}return f(()=>{h.profiles.forEach(t=>{const i=document.getElementById(`profileText${t.id}`);i&&y(i)&&m.value.push(t.id)})}),(t,i)=>{const b=C,k=I,v=L;return s(),o("div",N,[(s(!0),o(x,null,g(d.profiles,e=>(s(),o("div",{key:e.id,class:"profile-item"},[c("div",S,[e.primaryImage?(s(),o("div",T,[_(b,{src:e.primaryImage.src.split("?")[0]+"?w=120&h=120&fit=crop",style:{width:"100%"}},null,8,["src"])])):n("",!0),e.publicEmail?(s(),w(k,{key:1,type:"link",mode:"solid",link:`mailto:${e.publicEmail}`,class:"profile-email"},{default:B(()=>i[0]||(i[0]=[E(" Email ")])),_:2},1032,["link"])):n("",!0)]),c("div",V,[e.name?(s(),o("h3",$,l(e.name),1)):n("",!0),e.title?(s(),o("h3",H,l(e.title),1)):n("",!0),e.subtitle?(s(),o("h3",M,l(e.subtitle),1)):n("",!0),e.body??e.bio?(s(),o("div",{key:3,class:W(["profile-bio",r(a).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(),o("div",{key:0,class:"show-more",onClick:()=>p(e)},l(r(a).includes(e.id)?"Show less":"Show more"),9,q)):n("",!0)],2)):n("",!0)])]))),128))])}}};export{K as default};