1import{A as m}from"./CxBeERrv.js";import{R as v}from"./tSHVqTDI.js";import{P as y}from"./V7RQLyV9.js";import{d as g,e as r,m as n,X as l,k as s,q as o,i as c,f as A,t as u,x as h}from"./DbIaeWh9.js";const D={key:0,class:"article-meta-data__avatar"},f={class:"article-meta-data__content"},k={key:0,class:"article-meta-data__content__separator"},b={key:0,class:"article-meta-data__content__reading-time icon-clock"},B=g({__name:"ArticleMetaData",props:{authors:{},publicationDate:{},showRelativeDate:{type:Boolean},showDateInLine:{type:Boolean},centeredContent:{type:Boolean},authorsAsLink:{type:Boolean},readingTime:{}},setup(t){const a=t,i=h(()=>{const e={url:"",alt:void 0,lazy:!1,fetchPriority:"high",width:1,height:1};return typeof a.authors=="object"&&"avatar"in a.authors?(e.url=a.authors.avatar||"",e.alt=a.authors.name,e.title=a.authors.avatarTitle):Array.isArray(a.authors)&&(e.url=a.authors.length===1&&a.authors[0]?.avatar||"",e.alt=a.authors.length===1?a.authors[0]?.name:void 0,e.title=a.authors.length===1?a.authors[0]?.avatarTitle:void 0),e}),d=h(()=>!!(i.value&&typeof i.value=="object"&&i.value.url&&i.value.url.trim()!==""));return(e,p)=>(r(),n("div",{class:l(["article-meta-data",{"article-meta-data--centered-content":t.centeredContent}])},[d.value?(r(),n("div",D,[s(v,{picture:i.value},null,8,["picture"])])):o("",!0),c("div",f,[c("div",null,[s(m,{data:t.authors,class:l([t.showDateInLine&&"article-authors--inline"]),"as-link":t.authorsAsLink},null,8,["data","class","as-link"]),t.showDateInLine&&t.authors&&(!Array.isArray(t.authors)||t.authors.length>0)&&t.publicationDate?(r(),n("span",k," | ")):o("",!0),t.publicationDate?(r(),A(y,{key:1,timestamp:t.publicationDate,relative:t.showRelativeDate,class:"publication-date--compact"},null,8,["timestamp","relative"])):o("",!0)]),t.readingTime?(r(),n("div",b,u(t.readingTime)+" "+u(e.$t("general.readingTimeUnit")),1)):o("",!0)])],2))}}),P=Object.assign(B,{__name:"MoleculesGeneralArticleMetaData"});export{P as A};
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.