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