1import{_ as h}from"./DNwvWi2k.js";import{e as p,c as k,a as n,f as x,i as s,R as _,t as l,Z as b,o as i,D as d,j as g}from"./BcLV5NpM.js";import{u as v}from"./DcHwmARU.js";import{u as w}from"./CSNTtSDa.js";import{u as y}from"./D1Cg7-WI.js";const C={class:"relative h-48 w-full shrink-0 overflow-hidden"},D={class:"flex flex-col gap-3 p-3 lg:p-4 group-hover:bg-primary flex-1"},N={class:"font-secondary font-regular text-body-small text-brand-50"},B={class:"font-secondary font-semibold text-base-body text-brand-white line-clamp-2"},U=p({__name:"NewsCard",props:{data:{}},setup(a){const e=a,{getAssetUrl:r}=v(),{formatDate:c}=w(),{checkExternalLink:u}=y(),t=g(()=>e.data?.file?r(e.data.file):e.data?.external_link?e.data.external_link:null),o=()=>{if(e.data?.redirectUrl){d(e.data.redirectUrl);return}if(t.value){u(t.value).target==="_blank"?window.open(t.value,"_blank"):window.location.href=t.value;return}e.data?.slug&&d(`/news/${e.data.slug}`)};return(m,A)=>{const f=h;return i(),k("div",{class:"group flex flex-col border border-brand-800 rounded-small overflow-hidden cursor-pointer",onClick:o,role:"link",tabindex:0,onKeydown:b(o,["enter"])},[n("div",C,[a.data.thumbnail?(i(),x(f,{key:0,src:s(r)(a.data.thumbnail.url),alt:a.data.name,class:"image-cover group-hover:scale-105 duration-500"},null,8,["src","alt"])):_("",!0)]),n("div",D,[n("p",N,l(s(c)(a.data.publishedAt)),1),n("h3",B,l(a.data.name),1)])],32)}}}),F=Object.assign(U,{__name:"NewsCard"});export{F 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.