1import{_ as w}from"./ImageComponent.FJvhk2qd.js";import{_ as E}from"./LinkComp.-8XXbenB.js";import{_ as S}from"./RichText.d_s5lL83.js";import{_ as b,x as B,y as s,o as a,c as l,b as D,a as y,h as k,u as n,t as g,m as _,f,s as I,C as L,z as M,j as G,F as O,n as T,O as V}from"./entry.GpSvTij_.js";import{_ as v}from"./Grid._VdZQDln.js";const z={class:"wrapper"},F={key:0,class:"entries-grid-item__date"},j={key:1,class:"entries-grid-item__title"},A={__name:"EntriesGridItem",props:{entry:{type:Object,default:()=>{}},showDate:{type:Boolean,default:!1},backgroundColor:{type:String,default:""},backgroundColorOnWhite:{type:String,default:""}},setup(m){const r=B(),{$get:t}=G(),e=m,d=s(()=>{let o="#fff";return e.backgroundColor&&(o=e.backgroundColor,r.darkmode||(o=e.backgroundColorOnWhite)),o}),i=s(()=>{var o,p;return((o=e.entry)==null?void 0:o.blockTitle)||((p=e.entry)==null?void 0:p.title)}),c=s(()=>t(e.entry,["blockImage",0])||t(e.entry,["images",0])||t(e.entry,["image",0])),h=s(()=>e.entry.blockText||e.entry.excerpt),u=s(()=>t(e.entry,["blockEntryLink",0,"uri"])||t(e.entry,["entry",0,"uri"])||e.entry.linkExternal||e.entry.blockLink||e.entry.uri&&`/${e.entry.uri}`),C=s(()=>t(e.entry,["blockLinkName"])||t(e.entry,["linkName"]));return(o,p)=>{const N=w,x=E,$=S;return a(),l("section",{class:L(["entries-grid-item",{background:e.backgroundColor}]),style:M([e.backgroundColor?{backgroundColor:n(d)}:{backgroundColor:"transparent"}])},[D("div",z,[y(x,{to:n(u),external:!!e.entry.linkExternal},{default:k(()=>[y(N,{img:n(c),class:"entries-grid-item__image"},null,8,["img"]),e.showDate&&e.entry.date?(a(),l("span",F,g(o.$getFormattedDate(e.entry.date,"MMMM yyyy")),1)):_("",!0),n(i)?(a(),l("h2",j,g(n(i)),1)):_("",!0)]),_:1},8,["to","external"]),y($,{content:n(h),class:"entries-grid-item__text"},null,8,["content"]),n(u)?(a(),f(x,{key:0,to:n(u),external:!!e.entry.linkExternal,class:"entries-grid-item__link"},{default:k(()=>[I(g(n(C)||n(t)(n(r),["data","misc","linkName"])),1)]),_:1},8,["to","external"])):_("",!0)])],6)}}},W=b(A,[["__scopeId","data-v-30599d5b"]]),R={__name:"EntriesGrid",props:{entries:{type:Array,default:()=>[]},max:{type:Number,default:0},showDate:{type:Boolean,default:!1}},setup(m){const r=m;return(t,e)=>{const d=W,i=v;return t.$get(r.entries,["length"])?(a(),f(i,{key:0,max:r.max||t.$get(r.entries,["length"]),"grid-type":"increased-row-gap",class:"entries-grid"},{default:k(()=>[(a(!0),l(O,null,T(r.entries,c=>(a(),f(d,{key:t.$get(c,["id"]),entry:c,"show-date":r.showDate,class:"entries-grid__item"},null,8,["entry","show-date"]))),128)),V(t.$slots,"default",{},void 0,!0)]),_:3},8,["max"])):_("",!0)}}},P=b(R,[["__scopeId","data-v-f69ac5ad"]]);export{P as _};
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.