1import{j as e,m as c}from"./animation-CdQH4Nw4.js";import{m,g as d,S as x,n as p}from"./index-fcJrep8P.js";import{cD as o,cy as h}from"./icons-qtUPQo39.js";import"./react-core-g9EcSCkY.js";const n=a=>{if(!a)return"";try{return new Date(`${a}T00:00:00`).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}catch{return a}},b=()=>{const a=m(),s=d("notices"),i=a.filter(t=>t.isPublished).sort((t,r)=>(r.createdAt||"").localeCompare(t.createdAt||""));return e.jsxs(e.Fragment,{children:[e.jsx(x,{title:s.title,keyword:s.keywords,description:s.description,canonical:s.canonical,jsonLd:[]}),e.jsxs("div",{className:"min-h-screen bg-[var(--background-primary)] pb-20",children:[e.jsx("div",{className:"pt-20 pb-12 sm:pt-24 sm:pb-16",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:e.jsxs(c.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:[e.jsx("h1",{className:"text-4xl sm:text-5xl font-extrabold text-[var(--text-primary)] tracking-tight mb-4",children:"Notices"}),e.jsx("p",{className:"text-lg text-[var(--text-secondary)]",children:"Announcements and updates from ScomsERP."})]})})}),e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:i.length===0?e.jsxs("div",{className:"text-center text-[var(--text-muted)] py-16 border border-[var(--border-primary)] rounded-2xl bg-[var(--bg-secondary)]",children:[e.jsx(o,{className:"w-10 h-10 mx-auto mb-3 opacity-40"}),"No notices at the moment."]}):e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:i.map((t,r)=>{const l=p(t);return e.jsxs(c.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-40px"},transition:{duration:.5,delay:Math.min(r,5)*.05},className:"rounded-2xl border border-[var(--border-primary)] bg-[var(--bg-primary)] shadow-[var(--shadow-sm)] overflow-hidden",children:[t.image&&e.jsx("img",{src:t.image,alt:t.title,className:"w-full h-48 object-cover"}),e.jsxs("div",{className:"p-6",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3 mb-3 flex-wrap",children:[e.jsx("h2",{className:"text-xl font-bold text-[var(--text-primary)]",children:t.title}),l&&e.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full text-xs font-semibold bg-[var(--success-light)] text-[var(--success-dark)] whitespace-nowrap",children:[e.jsx(o,{className:"w-3 h-3"})," Active"]})]}),(t.startDate||t.endDate)&&e.jsxs("div",{className:"flex items-center gap-1.5 text-sm text-[var(--text-muted)] mb-4",children:[e.jsx(h,{className:"w-4 h-4"}),t.startDate?n(t.startDate):"Until",t.endDate?` â ${n(t.endDate)}`:t.startDate?" onward":""]}),e.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none text-[var(--text-secondary)]",dangerouslySetInnerHTML:{__html:t.content}})]})]},t.id)})})})]})]})};export{b 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.