1import A from"./CPyQDBmZ.js";import{G as B,c as L,B as M,e as a,f as s,k as r,l as y,j as i,D as c,h as e,p as f,F as $,r as C,w as D,x as T,i as j,H as z,z as F,E as h,A as H}from"#entry";import N from"./B-R3ql2w.js";const V={class:"article-author__row"},E={class:"article-author__identity"},R={class:"article-author__byline"},G={class:"article-author__name"},O=["id","aria-expanded","aria-controls"],Q={class:"sr-only"},q={key:1,class:"article-author__role"},J={class:"article-author__meta"},K={key:0,class:"article-author__op-spaces list-reset"},P=["href"],U={key:1},W={key:1,class:"article-author__tag"},X=["id","aria-labelledby"],Y=["innerHTML"],Z={key:0,class:"article-author__socials"},ot={__name:"ArticleAuthor",props:{data:Object,tag:String},setup(t){const _=t,u=`article-author-${B()}`,l=H(!1),p=L(),b=M("(prefers-reduced-motion: reduce)"),x={bluesky:"IconBlueskyArticle",x:"IconxArticle",linkedin:"IconLinkedinArticle",substack:"IconSubStackArticle",instagram:"IconInstagramArticle",facebook:"IconFacebookShaded",twitter:"IconTwitterShaded",mail:"IconMail"},k=h(()=>p.animationStopped||b.value),m=h(()=>!!_.data?.bio),v=h(()=>(_.data?.socialItems??[]).map(n=>({...n,icon:x[n.type?.toLowerCase()]??`Icon${n.type}`}))),g=h(()=>{const n=_.data?.opSpaceLinks;return n?Array.isArray(n)?n.map(o=>({text:o.text??o.link?.text??o.name,href:o.href??o.link?.href})):[{text:n}]:[]});return(n,o)=>{const I=A,w=z;return t.data?.name?(a(),s("div",{key:0,class:f(["article-author",{"article-author--no-avatar":!t.data.image,"article-author--no-motion":e(k)}])},[r("div",V,[r("div",E,[t.data.image?(a(),y(I,{key:0,class:"article-author__avatar",data:t.data.image},null,8,["data"])):i("",!0),r("p",R,[r("span",G,c(t.data.name),1),e(m)?(a(),s("button",{key:0,class:f(["article-author__toggle btn-no-style",{"article-author__toggle--open":e(l)}]),id:`${u}-toggle`,"aria-expanded":e(l),"aria-controls":`${u}-bio`,onClick:o[0]||(o[0]=d=>l.value=!e(l))},[r("span",Q,"Biography for "+c(t.data.name),1),o[1]||(o[1]=r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14","aria-hidden":"true"},[r("path",{stroke:"#000","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M11.193 5.29 7.55 8.933a.79.79 0 0 1-1.113 0L2.793 5.29"})],-1))],10,O)):i("",!0),t.data.role?(a(),s("span",q,c(t.data.role),1)):i("",!0)])]),r("div",J,[e(g).length?(a(),s("ul",K,[(a(!0),s($,null,C(e(g),(d,S)=>(a(),s("li",{key:S},[d.href?(a(),s("a",{key:0,href:d.href},c(d.text),9,P)):(a(),s("span",U,c(d.text),1))]))),128))])):i("",!0),t.tag?(a(),s("span",W,c(t.tag),1)):i("",!0)])]),e(m)?(a(),y(N,{key:0,easing:"cubic-bezier(0.22, 1, 0.36, 1)",duration:e(k)?0:700},{default:D(()=>[T(r("div",{id:`${u}-bio`,class:"article-author__panel",role:"region","aria-labelledby":`${u}-toggle`},[r("div",{class:"article-author__bio rte",innerHTML:t.data.bio},null,8,Y),t.data.socialItems?.length?(a(),s("div",Z,[j(w,{data:e(v)},null,8,["data"])])):i("",!0)],8,X),[[F,e(l)]])]),_:1},8,["duration"])):i("",!0)],2)):i("",!0)}}};export{ot as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.