1import{c as u,R as h,r as n,b as f,j as e,P as b,L as c,X as y}from"./main-tVJvHoBe.js";import{A as d}from"./arrow-right-C_cxnRro.js";import{E as j}from"./external-link-CDW_4yY0.js";import{F as v}from"./file-down-86tyWJ13.js";const w=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],N=u("link-2",w);function p(t){return t.toLowerCase().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"").slice(0,80)}const k=["All","Earnings","Operations","Product","Corporate"];function E(){const{live:t}=h.useLoaderData(),[s,m]=n.useState("All"),[a,o]=n.useState(null),i=[...t.length?t:f].sort((r,l)=>r.date<l.date?1:-1),x=s==="All"?i:i.filter(r=>r.category===s);return e.jsxs("div",{children:[e.jsx(b,{eyebrow:"Newsroom",title:"Press Releases",desc:"Operational updates, earnings announcements, and corporate news from Click Holdings Limited."}),e.jsxs("div",{className:"mx-auto max-w-7xl px-6 py-12",children:[e.jsx("div",{className:"mb-8 flex flex-wrap gap-2",children:k.map(r=>e.jsx("button",{onClick:()=>m(r),className:["border px-4 py-2 font-mono text-[11px] uppercase tracking-[0.15em]",s===r?"border-primary bg-primary text-primary-foreground":"border-border text-muted-foreground hover:border-primary hover:text-primary"].join(" "),children:r},r))}),e.jsx("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3",children:x.map(r=>{const l=p(r.title);return e.jsxs("article",{onClick:()=>o(r),className:"group flex h-[520px] cursor-pointer flex-col border border-border bg-surface transition-all hover:border-primary/60",children:[e.jsxs("div",{className:"relative h-48 shrink-0 overflow-hidden",children:[e.jsx("img",{src:r.image,alt:"",loading:"lazy",className:"h-full w-full object-cover grayscale transition-all duration-500 group-hover:grayscale-0 group-hover:scale-105"}),e.jsx("div",{className:"absolute left-0 top-0 bg-primary px-3 py-1.5 font-mono text-[10px] font-bold uppercase tracking-wider text-primary-foreground",children:r.date}),e.jsx("div",{className:"absolute right-0 top-0 bg-background/80 px-3 py-1.5 font-mono text-[10px] uppercase tracking-wider backdrop-blur",children:r.category})]}),e.jsxs("div",{className:"flex flex-1 flex-col p-5",children:[e.jsx("h3",{className:"line-clamp-3 text-lg font-bold leading-snug group-hover:text-primary",children:r.title}),e.jsx("p",{className:"mt-2 line-clamp-4 text-sm text-muted-foreground",children:r.excerpt}),e.jsxs("div",{className:"mt-auto flex flex-wrap items-center gap-3 pt-4",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5 font-mono text-[11px] uppercase tracking-wider text-primary",children:["Quick preview ",e.jsx(d,{className:"h-3 w-3"})]}),e.jsxs(c,{to:"/news/$slug",params:{slug:l},onClick:g=>g.stopPropagation(),className:"inline-flex items-center gap-1.5 border border-border px-2.5 py-1 font-mono text-[10px] uppercase tracking-wider text-muted-foreground hover:border-primary hover:text-primary",children:[e.jsx(N,{className:"h-3 w-3"})," Permalink"]})]})]})]},r.id)})})]}),a&&e.jsx("div",{onClick:()=>o(null),className:"fixed inset-0 z-50 grid place-items-center bg-background/80 p-4 backdrop-blur",children:e.jsxs("div",{onClick:r=>r.stopPropagation(),className:"relative max-h-[85vh] w-full max-w-2xl overflow-auto border border-border bg-surface",children:[e.jsx("button",{onClick:()=>o(null),className:"absolute right-3 top-3 z-10 grid h-9 w-9 place-items-center bg-background/70 hover:bg-primary hover:text-primary-foreground",children:e.jsx(y,{className:"h-4 w-4"})}),e.jsx("img",{src:a.image,alt:"",className:"h-64 w-full object-cover"}),e.jsxs("div",{className:"p-6",children:[e.jsxs("div",{className:"font-mono text-[11px] uppercase tracking-wider text-primary",children:[a.date," · ",a.category]}),e.jsx("h2",{className:"mt-2 text-2xl font-bold",children:a.title}),e.jsx("p",{className:"mt-4 text-sm leading-relaxed text-muted-foreground",children:a.excerpt}),e.jsxs("div",{className:"mt-6 flex flex-wrap gap-3",children:[e.jsxs(c,{to:"/news/$slug",params:{slug:p(a.title)},className:"inline-flex items-center gap-2 bg-primary px-4 py-2 font-mono text-[11px] uppercase tracking-wider text-primary-foreground hover:opacity-90",children:["Read full release ",e.jsx(d,{className:"h-3.5 w-3.5"})]}),e.jsxs("a",{href:a.articleUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 border border-border px-4 py-2 font-mono text-[11px] uppercase tracking-wider hover:border-primary hover:text-primary",children:["GlobeNewswire ",e.jsx(j,{className:"h-3.5 w-3.5"})]}),e.jsxs("a",{href:a.pdfUrl,target:a.pdfUrl.startsWith("http")?"_blank":void 0,rel:"noopener noreferrer",download:a.pdfUrl.startsWith("/")?!0:void 0,className:"inline-flex items-center gap-2 border border-border px-4 py-2 font-mono text-[11px] uppercase tracking-wider hover:border-primary hover:text-primary",children:[e.jsx(v,{className:"h-3.5 w-3.5"})," PDF"]})]})]})]})})]})}export{E as component};
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.