import{s as y,c as v,_ as h}from"./CJ3Pvzvs.js";import{d as g,r as b,o as t,b as s,j as x,u as m,a as l,m as o,F as k,e as A,f as u,w as f,c as _,n as $,q as I,t as n}from"./3LwgCWkS.js";const C=g({__name:"Tooltip",setup(r){const i=b(!1);return(d,a)=>(t(),s("a",{tabindex:"0",role:"link",class:"relative focus:outline-none",onMouseover:a[1]||(a[1]=c=>i.value=!0),onFocus:a[2]||(a[2]=c=>i.value=!0)},[x(d.$slots,"hide"),m(i)?(t(),s("div",{key:0,onMouseleave:a[0]||(a[0]=c=>i.value=!1),role:"tooltip",class:"z-10 bg-white min-w-64 absolute border transition duration-500 ease-in-out -left-4 -top-4 shadow-lg p-4 rounded"},[l("div",null,[x(d.$slots,"show")])],32)):o("",!0)],32))}}),D={class:"block md:flex items-center md:flex-wrap gap-5"},T={class:"block md:flex items-center md:flex-nowrap md:mb-0 mb-4"},B={class:"flex items-center flex-nowrap"},N={key:0},V={key:1},F={key:1,class:"ms-1"},S={class:"md:min-w-96 min-w-auto"},j={class:"flex flex-nowrap text-gray-700"},q={class:"ms-2"},z={class:"text-sm text-nowrap font-bold"},E={key:0,class:"text-cyan-600 text-xs mt-1"},M={key:0,class:"text-xs text-gray-700 pb-3 mt-2"},O={key:1,class:"text-xs leading-4 text-gray-600 pb-3 mt-5"},L=["href"],P=["href"],G=g({__name:"Authors",props:{authors:{type:Array,required:!0},isInArticleDetail:{type:Boolean,default:!1}},setup(r){const{affiliations:i}=y(v());return(d,a)=>{const c=h,w=C;return t(),s("div",D,[(t(!0),s(k,null,A(r.authors,e=>(t(),s("div",T,[u(w,null,{hide:f(()=>{var p;return[l("div",B,[e.orcid?(t(),_(c,{key:0,name:"fa6-brands:orcid",class:"lg:text-xl md:text-lg"})):o("",!0),l("span",{class:$(["text-sm ms-2 text-nowrap",e.isCorrespondingAuthor?r.isInArticleDetail?"text-cyan-300":"text-cyan-600":""])},[I(n(e.full_name)+" ",1),r.isInArticleDetail&&(m(i).length??0)>1?(t(),s("sup",N,n(e.affiliationIndex),1)):o("",!0),r.isInArticleDetail&&(m(i).length??0)>1?(t(),s("sup",V,n((p=e.affiliationIndexes)==null?void 0:p.join(",")),1)):o("",!0)],2),r.isInArticleDetail&&e.email?(t(),s("span",F,[u(c,{name:"material-symbols-light:mail-outline-rounded",class:"text-xl"})])):o("",!0)])]}),show:f(()=>[l("div",S,[l("div",j,[e.orcid?(t(),_(c,{key:0,name:"fa6-brands:orcid",class:"lg:text-xl md:text-lg"})):o("",!0),l("div",q,[l("div",z,n(e.full_name),1),e.isCorrespondingAuthor?(t(),s("span",E,n(d.$t("correspondingAuthor")),1)):o("",!0)])]),e.affiliation||e.correspondence?(t(),s("p",M,n(e.affiliation??e.correspondence),1)):o("",!0),e.orcid?(t(),s("p",O," Orcid: "+n(e.orcid),1)):o("",!0),e.orcid?(t(),s("a",{key:2,href:`https://orcid.org/${e.orcid}`,target:"_blank",class:"bg-indigo-700 whitespace-nowrap text-nowrap transition duration-150 ease-in-out hover:bg-indigo-600 rounded text-white px-5 py-1 text-xs"},n(d.$t("goToOrcidProfile")),9,L)):o("",!0),e.email?(t(),s("a",{key:3,href:`mailto:${e.email}`,class:"bg-violet-600 whitespace-nowrap text-nowrap transition duration-150 ease-in-out hover:bg-violet-500 rounded text-white px-5 py-1 text-xs ms-2"},n(d.$t("sendEmail")),9,P)):o("",!0)])]),_:2},1024)]))),256))])}}});export{G as _};