1import{s as f,h as o,B as D,ab as b}from"./Bp1QeOTI.js";import{a as r}from"./lvRT-IKM.js";async function $(t){const{categories:i,initContentStore:u}=f(),c=D();await u();const l=o(()=>{const e=t?.content?.heroMedia?.content?.imageThumbnail||t?.content?.heroMedia?.content?.videoThumbnail||t?.content?.heroMedia?.content?.image||"",a=t.content?.heroMedia?.content?.altText||t.content?.heroMedia?.title||"";return{src:e,alt:a}}),n=i.find(e=>e.id===t?.content?.displayCategory?.id),s=o(()=>t.content?.singlePage?n?c.public.functionalCategorySlugs.includes(n.slug)?`/${t.content?.slug}`:n?.id===c.public.categoryIds.external?t?.content?.heroMedia?.content?.link:`${b(i,n)}/${t?.content?.slug}`:`/${t?.content?.slug}`:`/content/${t?.content?.slug}`),d=o(()=>r(new Date(t?.content?.publishDate),"DD MMM").value),g=o(()=>r(new Date(t?.content?.publishDate),"DD MMM YY").value),h=o(()=>{let e=t?.content?.heroMedia?.content?.metadata?.msDuration;if(!e)if(t?.content?.readTimeMinutes)e=t?.content?.readTimeMinutes*1e3;else return null;const a=Math.floor(e/36e5).toString().padStart(2,"0"),m=Math.floor(e%36e5/6e4).toString().padStart(2,"0"),M=Math.floor(e%36e4%6e4/1e3).toString().padStart(2,"0");return`${+a?`${a}:`:""}${m}:${M}`});return{image:l,fullCategory:n,articleLink:s,publishDate:d,publishDateWithYear:g,duration:h}}export{$ as u};
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.