1import{aq as g,ar as f,j as e,ap as p,L as w}from"./index-CNPx99w0.js";import{C as b}from"./turnstile-widget-DDOzt9hi.js";import{B as j}from"./editorial-reveal-BTFX4ld-.js";function u({post:t,showAuthor:l=!0,className:i=""}){const n=g(t.publishedAt),c=f(t),s=l?t.author?.name??null:null;return e.jsxs("p",{className:`flex flex-wrap items-center gap-x-2 gap-y-1 text-xs text-muted-foreground ${i}`,children:[n?e.jsx("time",{dateTime:t.publishedAt??void 0,className:"whitespace-nowrap",children:n}):null,n?e.jsx("span",{"aria-hidden":"true",children:"·"}):null,e.jsxs("span",{className:"whitespace-nowrap",children:[c," min de leitura"]}),s?e.jsxs(e.Fragment,{children:[e.jsx("span",{"aria-hidden":"true",children:"·"}),e.jsx("span",{className:"truncate",children:s})]}):null]})}const N={feature:{width:1200,height:750},spotlight:{width:640,height:400},list:{width:760,height:428}};function v({label:t,compact:l=!1}){return e.jsx("span",{className:`rounded-full bg-blog-accent-soft font-semibold text-blog-accent-strong ${l?"px-2.5 py-0.5 text-[0.6875rem]":"px-3 py-1 text-xs"}`,children:t})}function I({post:t,variant:l="list",featured:i=!1,priority:n=!1,className:c=""}){const s=i?"feature":l,x=t.slug??"",o=N[s],d=p(t.mainImage,o),m=t.primaryCategory?.title??t.categories?.[0]?.title??null,r=s==="feature",a=s==="spotlight",h=e.jsx("div",{className:`shrink-0 overflow-hidden bg-surface-muted ${r?"aspect-[16/9] w-full lg:aspect-auto lg:h-[56%]":"aspect-[16/9] w-full"}`,children:d?e.jsx(j,{src:d,alt:t.mainImage?.alt??t.title??"",lqip:t.mainImage?.asset?.metadata?.lqip??null,width:o.width,height:o.height,priority:n,className:"transition-transform duration-500 group-hover:scale-[1.03]"}):e.jsx("div",{className:"h-full w-full bg-gradient-to-br from-surface-muted to-surface"})});return e.jsxs("article",{className:`card-lift group relative flex h-full min-w-0 flex-col overflow-hidden rounded-2xl border border-border/70 bg-background shadow-card-editorial focus-within:ring-2 focus-within:ring-blog-accent/60 focus-within:ring-offset-2 focus-within:ring-offset-background ${c}`,children:[h,e.jsxs("div",{className:`flex min-w-0 flex-1 flex-col ${r?"p-5 sm:p-6":a?"p-4 sm:p-5":"p-6"}`,children:[m?e.jsx("div",{className:`flex flex-wrap items-center gap-2 ${a?"mb-2":"mb-3"}`,children:e.jsx(v,{label:m,compact:a})}):null,e.jsx("h3",{className:`font-display font-bold leading-snug text-foreground ${r?"text-xl sm:text-2xl":a?"text-base":"text-lg"}`,children:e.jsx(w,{to:"/blog/$slug",params:{slug:x},className:"outline-none transition-colors after:absolute after:inset-0 after:content-[''] group-hover:text-blog-accent-strong",children:e.jsx("span",{className:"line-clamp-3",children:t.title})})}),t.excerpt&&!a?e.jsx("p",{className:`mt-2 leading-relaxed text-muted-foreground ${r?"text-sm line-clamp-3 sm:line-clamp-4":"text-sm line-clamp-3"}`,children:t.excerpt}):null,r?e.jsxs("div",{className:"mt-auto flex flex-wrap items-center justify-between gap-x-4 gap-y-2 pt-4",children:[e.jsx(u,{post:t,className:"min-w-0 text-sm"}),e.jsxs("span",{"aria-hidden":"true",className:"inline-flex shrink-0 items-center gap-1.5 text-sm font-semibold leading-none text-blog-accent-strong",children:["Ler artigo",e.jsx(b,{size:16,className:"block shrink-0"})]})]}):e.jsx(u,{post:t,showAuthor:!a,className:`mt-auto ${a?"pt-3":"pt-4"}`})]})]})}export{I as P};
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.