1import{j as a,s}from"./index-EYSU2zfc.js";import{D as t}from"./download-C-nITLR3.js";import{a as l}from"./usePosts-CzoLCH5F.js";const c=({report:e,className:r=""})=>a.jsxs("article",{className:`card-hover group flex h-full flex-col overflow-hidden rounded-lg border border-border bg-background ${r}`,children:[a.jsx("a",{href:e.pdf,target:"_blank",rel:"noopener noreferrer","aria-label":`Open ${e.state} research PDF in a new tab`,className:"relative block aspect-[16/10] overflow-hidden border-b border-border bg-muted",children:a.jsx("div",{className:"absolute inset-0 flex items-center justify-center p-8",children:a.jsx("img",{src:e.logo,alt:`RightCount ${e.state} logo`,className:"max-h-full max-w-full object-contain transition-transform duration-500 group-hover:scale-[1.03]",loading:"lazy"})})}),a.jsxs("div",{className:"flex flex-1 flex-col p-7",children:[a.jsxs("div",{className:"mb-3 flex flex-wrap items-center gap-2",children:[a.jsx("span",{className:"state-tag",children:e.state}),a.jsx("span",{className:"category-tag",children:"Research"})]}),a.jsx("h3",{className:"font-display text-xl font-bold leading-snug text-foreground transition-colors group-hover:text-accent",children:e.headline}),a.jsx("p",{className:"mt-3 text-base leading-relaxed text-muted-foreground",children:e.subhead}),a.jsxs("a",{href:e.pdf,target:"_blank",rel:"noopener noreferrer",className:"mt-6 inline-flex items-center gap-2 self-start text-sm font-bold text-accent transition-all duration-300 hover:gap-3",children:["Download ",a.jsx(t,{className:"h-4 w-4","aria-hidden":"true"})]})]})]}),o=e=>({id:e.id,state:e.state,slug:e.slug,abbr:e.abbr,logo:e.logo_url||"",pdf:e.pdf_url||"",headline:e.headline,subhead:e.subhead||""}),u=()=>l({queryKey:["research_reports"],queryFn:async()=>{const{data:e,error:r}=await s.from("research_reports").select("id, state, slug, abbr, logo_url, pdf_url, headline, subhead, sort_order, published, updated_at").eq("published",!0).order("sort_order",{ascending:!0}).order("state",{ascending:!0});if(r)throw r;return(e||[]).map(o)},staleTime:5*60*1e3});export{c as R,u};
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.