import{_ as h,o,c as i,F as b,r as y,n as d,d as p,i as n,a as l,t as v,b as f,w as x,k as g,v as S,l as k,aZ as T,p as B,m as C}from"./entry.DPwc-EV0.js";import D from"./WebHTML-UohjwGfe.mjs";import"./WebImage-BBQZzdK6.mjs";import"./index-CngUKuta.mjs";import"./WebContentList-W4TiV2An.mjs";import"./WebContentItem-DFVYreAc.mjs";import"./useImageUrl-1XbeiwSF.mjs";const w={props:{items:{type:Array},ids:{type:Array},topDividerColor:{type:String,default:"#000"},bottomDivider:{type:Boolean,default:!1},bottomDividerColor:{type:String,default:"#000"}},computed:{dividers(){return{borderTopStyle:"solid",borderTopColor:this.topDividerColor,borderTopWidth:"2px",paddingTop:"10px",borderBottomStyle:this.bottomDivider?"solid":"none",borderBottomColor:this.bottomDivider?this.bottomDividerColor:"transparent",borderBottomWidth:this.bottomDivider?"2px":"0px",paddingBottom:this.bottomDivider?"10px":"0px"}},nameTitle(){let t=this.name;return t+=this.title?` | ${this.title}`:"",t},rounded(){return this.$ss.baseStyles.siteTheme===2},sortedAuthors(){const t=[];return this.ids.forEach(r=>{const a=this.items.find(m=>m.id===r);typeof a<"u"&&t.push(a)}),t}},methods:{getNameTitle(t){let r=t.name;return r+=t.title?` | ${t.title}`:"",r}}},A=t=>(B("data-v-3b482b37"),t=t(),C(),t),I={class:S(["ebm-about-author","wide"])},$={key:0,class:"author-image"},E={class:"author-content"},N=A(()=>l("div",{class:"heading"},"About the Author",-1)),W={key:0,class:"author-bio"};function F(t,r,a,m,L,s){const c=k,u=D,_=T;return o(),i("div",I,[(o(!0),i(b,null,y(s.sortedAuthors,e=>(o(),i("div",{key:e.id,class:"author-item",style:d(s.dividers)},[e.primaryImage?(o(),i("div",$,[p(c,{src:e.primaryImage.src.split("?")[0]+"?w=150",style:d({borderRadius:s.rounded?"8px":"0",boxShadow:s.rounded?"1px 1px 3px rgba(0,0,0,.5)":"none",width:"100%"})},null,8,["src","style"])])):n("",!0),l("div",E,[N,l("h3",{class:"author-name-title",style:d({fontFamily:t.$ss.primaryFontFamily})},v(s.getNameTitle(e)),5),e.body?(o(),i("div",W,[p(u,{html:e.body},null,8,["html"])])):n("",!0),e.publicEmail?(o(),f(_,{key:1,type:"link",mode:"hollow",color:t.$ss.baseStyles.primaryColor,link:`mailto:${e.publicEmail}`,class:"author-email"},{default:x(()=>[g(" Email ")]),_:2},1032,["color","link"])):n("",!0)])],4))),128))])}const q=h(w,[["render",F],["__scopeId","data-v-3b482b37"]]);export{q as default};