1import{a as g,j as t}from"./admin-D4b6r3u4.js";const n={guides:"linear-gradient(135deg, hsl(180 70% 35%), hsl(178 80% 22%))","image generators":"linear-gradient(135deg, hsl(270 65% 55%), hsl(280 70% 35%))","ai tools directory":"linear-gradient(135deg, hsl(215 75% 55%), hsl(225 80% 32%))","writing & editing":"linear-gradient(135deg, hsl(150 65% 45%), hsl(160 70% 28%))"},s=["linear-gradient(135deg, hsl(180 70% 35%), hsl(178 80% 22%))","linear-gradient(135deg, hsl(15 85% 55%), hsl(5 80% 38%))","linear-gradient(135deg, hsl(38 90% 50%), hsl(28 90% 38%))","linear-gradient(135deg, hsl(330 70% 55%), hsl(340 75% 38%))","linear-gradient(135deg, hsl(195 75% 45%), hsl(210 80% 30%))","linear-gradient(135deg, hsl(255 60% 55%), hsl(265 65% 35%))","linear-gradient(135deg, hsl(85 55% 45%), hsl(100 60% 28%))","linear-gradient(135deg, hsl(355 70% 50%), hsl(345 75% 32%))","linear-gradient(135deg, hsl(45 80% 45%), hsl(40 85% 30%))","linear-gradient(135deg, hsl(200 60% 35%), hsl(215 70% 22%))"],h=l=>{let e=0;for(let r=0;r<l.length;r++)e=e*31+l.charCodeAt(r)|0;return Math.abs(e)},o=l=>{const e=(l??"").trim().toLowerCase();return e&&n[e]?n[e]:e?s[h(e)%s.length]:s[0]},c=g.memo(({imageUrl:l,title:e,category:r,size:d="card",className:i=""})=>
1{if(l)return t.jsx("img",{src:l,alt:e,loading:"lazy",className:`h-full w-full object-cover ${i}`});const a=d==="featured";return t.jsxs("div",{role:"img","aria-label":e,className:`relative flex h-full w-full flex-col justify-between overflow-hidden ${a?"p-6":"p-4"} ${i}`,style:{background:o(r)},children:[t.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0",style:{background:"radial-gradient(circle at 20% 0%, rgba(255,255,255,0.18), transparent 55%)"}}),t.jsx("span",{className:`relative z-10 inline-flex w-fit items-center rounded-full bg-white/20 backdrop-blur-sm font-medium uppercase tracking-wide text-white ${a?"px-3 py-1 text-xs":"px-2.5 py-0.5 text-[10px]"}`,children:r||"SurfAI"}),t.jsx("h3",{className:`relative z-10 font-bold leading-snug text-white drop-shadow-sm ${a?"text-2xl line-clamp-3 md:text-3xl":"text-base line-clamp-3"}`,children:e})]})});c.displayName="BlogCover";export{c as B};
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.