1import L from"./CUQHcvjt.js";import{u as M,j as O,f as c,o as s,E as j,e as t,q as a,c as B,d as p,B as $,ad as d,ac as z,g as R}from"./FTaPbxLM.js";import S from"./8y_KnDCH.js";import q from"./B9hwvYFO.js";import"./D_WVsykS.js";import"./BzVpgML3.js";const D={class:"grid h-full grid-rows-[auto_1fr_auto]"},F={class:"relative aspect-[4/3] w-full overflow-hidden"},H={key:1,class:"absolute inset-0 bg-base-300/40 dark:bg-base-300/20","aria-hidden":"true"},G={class:"absolute right-3 top-3 z-[1] flex size-12 items-center justify-center rounded-full bg-white/90 group-hover:bg-base-200"},J={class:"min-w-0 p-6"},K={key:0,class:"mb-2 text-base-100 group-hover:text-base-200"},Q={class:"p-6 pt-0"},U={class:"btn-secondary-dark border-1 btn-sm pointer-events-none inline-flex h-10 select-none items-center text-xs transition-opacity group-hover:opacity-100 lg:border-2 lg:text-lg","aria-hidden":"true"},oe={__name:"CardSuggestedContent",props:{item:{type:Object,default:()=>({})}},setup(C){var h,f,b,x,k,v,w,y,P;const{t:N}=M(),o=C,m=((x=(b=(f=(h=o.item)==null?void 0:h.properties)==null?void 0:f.shareImage)==null?void 0:b[0])==null?void 0:x.url)||"",i=((v=(k=o.item)==null?void 0:k.properties)==null?void 0:v.title)||((w=o.item)==null?void 0:w.name)||"",T={newsPage:"lucide:newspaper",resourcePage:"lucide:book-open-text",projectPage:"lucide:folder-kanban",focusAreaPage:"lucide:target",contentPage:"lucide:file-text",externalPage:"lucide:external-link"},I={newsPage:"News",resourcePage:"Resource",projectPage:"Project",focusAreaPage:"Focus Area",contentPage:"Content",externalPage:"Resource"},g=T[(y=o.item)==null?void 0:y.contentType],_=I[(P=o.item)==null?void 0:P.contentType];function V(e){var u,r,n,l;return(e==null?void 0:e.contentType)==="externalPage"&&((u=e==null?void 0:e.properties)!=null&&u.url)?{linkType:"External",url:e.properties.url,target:"_blank",title:(e==null?void 0:e.name)??((r=e==null?void 0:e.properties)==null?void 0:r.title)??""}:(n=e==null?void 0:e.route)!=null&&n.path?{route:{path:e.route.path},title:(e==null?void 0:e.name)??((l=e==null?void 0:e.properties)==null?void 0:l.title)??""}:null}const A=O(()=>V(o.item));return(e,u)=>{const r=L,n=$,l=S,E=q;return s(),c(E,{link:t(A),class:"focus-visible:ring-primary group block h-full cursor-pointer overflow-hidden rounded-3xl bg-base-200 transition-colors duration-150 hover:bg-white focus-visible:outline-none focus-visible:ring-2","aria-label":t(i)||void 0,"show-label":!1},{default:j(()=>[a("div",D,[a("div",F,[t(m)?(s(),c(r,{key:0,image:[{url:t(m)}],class:"absolute inset-0 h-full w-full object-cover transition-transform duration-200 group-hover:scale-[1.02]",width:400,height:300,sizes:"(max-width: 639px) 100vw, (max-width: 1023px) 50vw, 400px"},null,8,["image"])):(s(),B("div",H)),a("div",G,[t(g)?(s(),c(n,{key:0,name:t(g),class:"text-primary size-6"},null,8,["name"])):p("",!0)])]),a("div",J,[t(_)?(s(),B("p",K,d(t(_)),1)):p("",!0),t(i)?(s(),c(l,{key:1,size:"h4","visual-size":"h4",class:"line-clamp-3 hyphens-auto break-words text-base-300"},{default:j(()=>[z(d(t(i)),1)]),_:1})):p("",!0)]),a("div",Q,[a("span",U,[z(d(t(N)("readMore"))+" ",1),R(n,{name:"lucide:arrow-right",class:"text-xl lg:text-1xl","aria-hidden":"true"})])])])]),_:1},8,["link","aria-label"])}}};export{oe 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.