1import{r as l,j as e}from"./vendor-react-core-_0sZDOLQ.js";import{C as x,a as b}from"./card-DHmBnTdH.js";import{I as y}from"./input-rti45mgP.js";import{C as h}from"./CleanHero-B9_2ARuE.js";import{Q as r,a2 as f,b6 as d,b7 as j,b8 as u}from"./vendor-lucide-Ddz0eB7N.js";import{m as N}from"./vendor-framer-motion-C1oRD-X5.js";import"./vendor-radix-CFmJ1img.js";import"./vendor-utils-BRu4i-LD.js";import"./index-j07E1qHv.js";import"./vendor-supabase-Ca6cp8v2.js";const m=[{id:"todos",label:"Todos"},{id:"fotos",label:"Fotos"},{id:"videos",label:"VÃdeos"},{id:"eventos",label:"Eventos"},{id:"competicoes",label:"Competições"},{id:"selecoes",label:"Seleções Nacionais"},{id:"assembleias",label:"Assembleias"},{id:"congressos",label:"Congressos"}],v=[{title:"Palancas Negras em competição internacional",category:"selecoes",type:"fotos",date:"2026",image:"/fotos/Caf /B25LSRW0200.jpg"},{title:"Preparação técnica da Seleção Nacional",category:"selecoes",type:"fotos",date:"2026",image:"/fotos/Caf /B25LSRW0204.jpg"},{title:"Ambiente competitivo CAF",category:"competicoes",type:"fotos",date:"2026",image:"/fotos/Caf /B25LSRW0181.jpg"},{title:"Futebol feminino e desenvolvimento",category:"selecoes",type:"fotos",date:"2026",image:"/fotos/Caf /B25LSRW0158.jpg"},{title:"Resumo audiovisual de eventos FAF",category:"eventos",type:"videos",date:"2026",image:"/players/Gelson_Dala/B25LSRW0476.jpg"},{title:"Assembleia Geral FAF",category:"assembleias",type:"fotos",date:"Não existente",image:"/players/Keliano_Manuel/B25LSRW0376.jpg"},{title:"Congresso técnico de futebol",category:"congressos",type:"fotos",date:"Não existente",image:"/players/David_Carmo/B25LSRW0313.jpg"},{title:"Competições nacionais",category:"competicoes",type:"videos",date:"2026",image:"/players/Cristovao_Paciencia_Mabululu/B25LSRW0345.jpg"}],n=s=>{var i;return((i=m.find(t=>t.id===s))==null?void 0:i.label)||"Não existente"};function k(){const[s,i]=l.useState("todos"),[t,g]=l.useState(""),c=l.useMemo(()=>v.filter(a=>{const o=s==="todos"||a.category===s||a.type===s,p=a.title.toLowerCase().includes(t.toLowerCase());return o&&p}),[s,t]);return e.jsxs("main",{className:"min-h-screen bg-gray-50",children:[e.jsx(h,{eyebrow:"Arquivo Multimédia",title:"Galeria FAF",description:"Registos visuais das nossas Seleções Nacionais, competições oficiais e eventos da Federação Angolana de Futebol.",icon:r}),e.jsx("section",{className:"py-8 bg-white border-b border-gray-200 sticky top-[112px] z-30",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"flex flex-col lg:flex-row gap-4 lg:items-center lg:justify-between",children:[e.jsx("div",{className:"flex gap-2 overflow-x-auto pb-1",children:m.map(a=>e.jsx("button",{onClick:()=>i(a.id),className:`px-4 py-2 text-xs font-black uppercase tracking-wider border whitespace-nowrap ${s===a.id?"bg-red-600 border-red-600 text-white":"bg-white border-gray-200 text-gray-700 hover:border-red-200"}`,children:a.label},a.id))}),e.jsxs("div",{className:"relative w-full lg:w-80",children:[e.jsx(f,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400"}),e.jsx(y,{value:t,onChange:a=>g(a.target.value),placeholder:"Pesquisar na galeria",className:"pl-10"})]})]})})}),e.jsx("section",{className:"py-12",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 gap-6",children:c.map((a,o)=>e.jsx(N.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:o*.03},children:e.jsxs(x,{className:"overflow-hidden rounded-lg border-gray-200 bg-white h-full",children:[e.jsxs("div",{className:"relative aspect-[4/3] bg-gray-200 overflow-hidden",children:[a.image&&a.image.startsWith("/players/")?e.jsxs("div",{className:"w-full h-full bg-gradient-to-br from-faf-blue via-faf-blue-light to-faf-blue-dark flex items-center justify-center relative",children:[e.jsx("div",{className:"absolute inset-0 opacity-20 [background-image:radial-gradient(circle_at_70%_20%,#dc2626_0,transparent_40%)]"}),e.jsx("div",{className:"absolute inset-0 bg-[url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0zNiAxOGMtMy4zMTQgMC02IDIuNjg2LTYgNnMyLjY4NiA2IDYgNiA2LTIuNjg2IDYtNi0yLjY4
1Ni02LTYtNiIgZmlsbD0iI2ZmZiIgZmlsbC1vcGFjaXR5PSIuMDUiLz48L2c+PC9zdmc+')] opacity-20"}),a.type==="videos"?e.jsx(d,{className:"w-10 h-10 text-white/30"}):e.jsx(r,{className:"w-10 h-10 text-white/30"})]}):e.jsx("img",{src:a.image,alt:a.title,loading:"lazy",decoding:"async",className:"w-full h-full object-cover"}),e.jsxs("div",{className:"absolute top-3 left-3 flex gap-2 z-10",children:[e.jsx("span",{className:"bg-red-600 text-white text-[10px] font-black uppercase tracking-wider px-2 py-1",children:n(a.category)}),e.jsxs("span",{className:"bg-black/75 text-white text-[10px] font-black uppercase tracking-wider px-2 py-1 flex items-center gap-1",children:[a.type==="videos"?e.jsx(d,{className:"w-3 h-3"}):e.jsx(r,{className:"w-3 h-3"}),n(a.type)]})]}),a.type==="videos"&&e.jsx("div",{className:"absolute inset-0 flex items-center justify-center z-10",children:e.jsx(j,{className:"w-14 h-14 text-white drop-shadow-lg"})})]}),e.jsxs(b,{className:"p-5",children:[e.jsx("h2",{className:"font-black text-gray-900 leading-tight mb-3",children:a.title}),e.jsxs("div",{className:"flex items-center gap-2 text-xs text-gray-500 font-semibold",children:[e.jsx(u,{className:"w-4 h-4 text-red-600"}),a.date||"Não existente"]})]})]})},`${a.title}-${o}`))}),c.length===0&&e.jsxs("div",{className:"text-center py-16 bg-white border border-dashed border-gray-300",children:[e.jsx("p",{className:"font-bold text-gray-900",children:"Não existente"}),e.jsx("p",{className:"text-gray-500 text-sm mt-1",children:"Não há conteúdos para os filtros selecionados."})]})]})})]})}export{k 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.