1import{ai as l,$ as e}from"./vendor-C9-XR6Mw.js";import{X as m,a7 as g,q as h,T as i,M as f}from"./index-De2Cx4BS.js";import{l as j}from"./library-data-Ck2gYOMV.js";import{c2 as v,cd as y,H as w,r as N,bn as k,cO as C,bG as T,bD as A,at as z,aF as P,cL as S,aP as L,bK as F,ay as D,g as n}from"./icons-DS-XXmje.js";import"./radix-HAneg8qs.js";import"./forms-BJs3DiIC.js";import"./charts-DbmCB8_w.js";const E=[{label:"Documentos institucionais",icon:y},{label:"EstatÃsticas e relatórios",icon:w},{label:"Guias práticos",icon:N},{label:"Materiais de divulgação",icon:k},{label:"VÃdeos",icon:C},{label:"Artigos",icon:T},{label:"Templates",icon:A},{label:"Regulamentos",icon:z},{label:"ODS e impacto",icon:P},{label:"Parceiros",icon:S},{label:"Voluntariado",icon:L}];function $(){const[a,x]=l.useState(""),[o,c]=l.useState("Todos"),[t,p]=l.useState("Todos"),d=l.useMemo(()=>j.filter(s=>{const r=s.title.toLowerCase().includes(a.toLowerCase())||s.description.toLowerCase().includes(a.toLowerCase()),u=o==="Todos"||s.type===o.toLowerCase(),b=t==="Todos"||s.public===t.toLowerCase();return r&&u&&b}),[a,o,t]);return e.jsxs("div",{className:"bg-background",children:[e.jsx(m,{eyebrow:"Conhecimento & Fomento",title:"Biblioteca PRONAFACE",description:"Documentos, guias, estudos, vÃdeos e materiais para empresas, OSCs, parceiros e benef
1iciários."}),e.jsxs(g,{children:[e.jsx(h,{}),e.jsxs("div",{className:"mb-12 flex flex-col md:flex-row gap-6 bg-secondary/20 p-8 rounded-[2.5rem] border border-border",children:[e.jsxs("div",{className:"relative flex-1",children:[e.jsx(v,{className:"absolute left-4 top-1/2 -translate-y-1/2 text-muted-foreground",size:20}),e.jsx("input",{type:"text",placeholder:"Buscar na biblioteca...",value:a,onChange:s=>x(s.target.value),className:"w-full pl-12 pr-4 py-4 rounded-xl border border-border bg-white focus:border-accent outline-none font-bold"})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsxs("select",{value:o,onChange:s=>c(s.target.value),className:"bg-white border border-border rounded-xl px-4 py-4 text-xs font-bold outline-none focus:border-accent",children:[e.jsx("option",{children:"Todos os tipos"}),e.jsx("option",{value:"artigo",children:"Artigos"}),e.jsx("option",{value:"documento",children:"Documentos"}),e.jsx("option",{value:"video",children:"VÃdeos"}),e.jsx("option",{value:"guia",children:"Guias"}),e.jsx("option",{value:"template",children:"Templates"}),e.jsx("option",{value:"regulamento",children:"Regulamentos"})]}),e.jsxs("select",{value:t,onChange:s=>p(s.target.value),className:"bg-white border border-border rounded-xl px-4 py-4 text-xs font-bold outline-none focus:border-accent",children:[e.jsx("option",{children:"Todos os públicos"}),e.jsx("option",{value:"todos",children:"Geral"}),e.jsx("option",{value:"beneficiarios",children:"Beneficiários"}),e.jsx("option",{value:"parceiros",children:"Parceiros"}),e.jsx("option",{value:"empresas",children:"Empresas"}),e.jsx("option",{value:"oscs",children:"OSCs"})]})]})]}),e.jsx("div",{className:"mb-20 grid grid-cols-2 md:grid-cols-5 gap-4",children:E.map((s,r)=>e.jsxs("button",{onClick:()=>c(s.label.includes("Artigos")?"artigo":"Todos"),className:"p-6 rounded-2xl bg-white border border-border flex flex-col items-center text-center group hover:border-accent transition-all hover:shadow-lg relative overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 z-0 opacity-0 group-hover:opacity-10 transition-opacity",children:e.jsx("img",{src:`https://images.unsplash.com/photo-${155e10+r}?auto=format&fit=crop&q=80&w=200`,alt:s.label,className:"w-full h-full object-cover"})}),e.jsx(s.icon,{className:"text-accent mb-4 group-hover:scale-110 transition-transform relative z-10",size:24}),e.jsx("span",{className:"text-[10px] font-black uppercase tracking-widest leading-tight relative z-10",children:s.label})]},s.label))}),e.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:d.map((s,r)=>e.jsxs("div",{className:"flex flex-col bg-white rounded-[2.5rem] border border-border overflow-hidden hover:shadow-xl transition-all group",children:[e.jsxs("div",{className:"p-8 flex-1",children:[e.jsxs("div",{className:"flex justify-between items-start mb-6",children:[e.jsx("div",{className:"bg-secondary/50 p-3 rounded-xl text-accent",children:s.type==="video"?e.jsx(F,{size:20,fill:"currentColor"}):e.jsx(D,{size:20})}),e.jsx("span",{className:`text-2xs font-black uppercase tracking-[0.2em] px-2 py-1 rounded-full ${s.status==="public"?"bg-green-50 text-green-600 border border-green-100":s.status==="restricted"?"bg-orange-50 text-orange-600 border border-orange-100":"bg-slate-50 text-slate-500 border border-slate-100"}`,children:s.status==="public"?"Público":s.status==="restricted"?"Restrito":"Em breve"})]}),e.jsx("h3",{className:"text-lg font-black text-navy-deep uppercase italic tracking-tighter mb-2 leading-tight group-hover:text-accent transition-colors",children:s.title}),e.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed font-medium mb-4 line-clamp-2",children:s.description}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-[10px] font-black uppercase tracking-widest text-muted-foreground",children:[e.jsx("span",{className:"bg-secondary/30 px-2 py-1 rounded",children:s.type}),e.jsx("span",{children:"â¢"}),e.jsx("span",{className:"bg-secondary/30 px-2 py-1 rounded",children:s.public})]})]}),e.jsx("div",{className:"px-8 pb-8",children:s.status==="soon"?e.jsx("button",{disabled:!0,className:"w-full py-4 rounded-xl bg-slate-50 text-muted-foreground text-[12px] font-black uppercase tracking-widest cursor-default",children:"DisponÃvel em breve"}):s.status==="restricted"?e.jsxs(i,{to:"/login",className:"w-full py-4 rounded-xl border border-border text-navy-deep text-[12px] font-black uppercase tracking-widest flex items-center justify-center gap-2 hover:bg-secondary transition-all",children:["Entrar para acessar ",e.jsx(n,{size:14})]}):e.jsxs(i,{to:s.slug==="guia-do-voluntario-oficial"?"/guia-do-voluntario":s.type==="artigo"?`/blog/${s.slug}`:s.type==="video"?"/videos":"#",className:"w-full py-4 rounded-xl bg-navy-deep text-white text-[12px] font-black uppercase tracking-widest flex items-center justify-center gap-2 hover:bg-accent transition-all shadow-lg shadow-navy-deep/10",children:["Acessar material ",e.jsx(n,{size:14})]})})]},r))}),d.length===0&&e.jsx("div",{className:"text-center py-20 bg-secondary/10 rounded-[2.5rem] border border-dashed border-border",children:e.jsx("p",{className:"text-muted-foreground italic",children:"Nenhum material encontrado com esses filtros."})}),e.jsxs("div",{className:"mt-20 p-10 rounded-[3rem] bg-navy-deep text-white text-center",children:[e.jsx("h3",{className:"text-2xl font-black uppercase italic tracking-tighter mb-6",children:"Precisa de conteúdo restrito?"}),e.jsx("p",{className:"text-white/60 mb-8 max-w-2xl mx-auto font-medium",children:"Alguns materiais como o Kit de Parceiro e Manuais Técnicos exigem login para visualização e download."}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsxs(i,{to:"/login",className:"btn-premium px-10",children:["Fazer Login ",e.jsx(n,{size:18})]}),e.jsx(i,{to:"/cadastro",className:"inline-flex items-center justify-center px-10 py-4 rounded-2xl border border-white/20 text-white text-xs font-black uppercase tracking-widest hover:bg-white/10 transition-all",children:"Solicitar Acesso"})]})]})]}),e.jsx(f,{})]})}
1export{$ 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.