1import{b as y,j as e,L as o}from"./vendor-react-core-_0sZDOLQ.js";import{c,b as f}from"./index-j07E1qHv.js";import{C as x,a as m}from"./card-DHmBnTdH.js";import{B as h}from"./badge-BXqwvh8U.js";import{S as g}from"./skeleton-ClHfYp06.js";import{h as j}from"./vendor-utils-BRu4i-LD.js";import{m as w}from"./playerPhotoCatalog-C6wr02i9.js";import{C as v}from"./CleanHero-B9_2ARuE.js";import{b as P,u as _,h as k,w as I}from"./vendor-lucide-Ddz0eB7N.js";import{m as l}from"./vendor-framer-motion-C1oRD-X5.js";import"./vendor-radix-CFmJ1img.js";import"./vendor-supabase-Ca6cp8v2.js";const u={"Guarda-Redes":"bg-yellow-100 text-yellow-800",Defesa:"bg-blue-100 text-blue-800",Médio:"bg-green-100 text-green-800",Avançado:"bg-red-100 text-red-800"};function E(){const{data:a=[],isLoading:p}=y({queryKey:["national-team-players"],queryFn:async()=>{let s=[];try{s=await f.entities.Player.filter({team_type:"masculino"},"-caps")}catch(t){console.warn("A carregar catálogo local da Seleção Nacional.",t)}return w(s).filter(t=>t.team_type==="masculino"&&t.status!=="retired").sort((t,r)=>(r.caps||0)-(t.caps||0))}}),N=s=>s?j().diff(j(s),"years"):null,n=a.length>0?a.reduce((s,t)=>t.goals>s.goals?t:s,a[0]):null,d=a.length>0?a[0]:null,i=a.length>0?a.reduce((s,t)=>(t.assists||0)>(s.assists||0)?t:s,a[0]):null,b=a.slice(0,6);return e.jsxs("main",{className:"min-h-screen bg-gray-50",children:[e.jsx(v,{eyebrow:"Palancas Negras",title:"Seleção Nacional de Angola",description:"Os atletas que representam Angola nas competições internacionais, com informação organizada e fontes identificadas.",icon:P}),e.jsx("section",{className:"py-12 bg-white",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[n&&e.jsx(l.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:e.jsx(x,{className:"border-0 shadow-lg hover:shadow-xl transition-shadow",children:e.jsx(m,{className:"p-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-gradient-to-br from-red-500 to-red-600 rounded-xl flex items-center justify-center flex-shrink-0",children:e.jsx(_,{className:"w-8 h-8 text-white"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-sm text-gray-500 uppercase mb-1",children:"Melhor Marcador"}),e.jsx(o,{to:c(`PlayerDetail?id=${n.id}`),children:e.jsx("h3",{className:"text-xl font-bold text-gray-900 hover:text-red-600 transition-colors",children:n.name})}),e.jsxs("p",{className:"text-3xl font-bold text-red-600 mt-2",children:[n.goals||0," golos"]})]})]})})})}),d&&e.jsx(l.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1},children:e.jsx(x,{className:"border-0 shadow-lg hover:shadow-xl transition-shadow",children:e.jsx(m,{className:"p-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-gradient-to-br from-yellow-500 to-yellow-600 rounded-xl flex items-center justify-center flex-shrink-0",children:e.jsx(k,{className:"w-8 h-8 text-white"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-sm text-gray-500 uppercase mb-1",children:"Mais Internacionalizações"}),e.jsx(o,{to:c(`PlayerDetail?id=${d.id}`),children:e.jsx("h3",{className:"text-xl font-bold text-gray-900 hover:text-red-600 transition-colors",children:d.name})}),e.jsxs("p",{className:"text-3xl font-bold text-yellow-600 mt-2",children:[d.caps||0," jogos"]})]})]})})})}),i&&(i.assists||0)>0&&e.jsx(l.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.2},children:e.jsx(x,{className:"border-0 shadow-lg hover:shadow-xl transition-shadow",children:e.jsx(m,{className:"p-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-gradient-to-br from-blue-500 to-blue-600 rounded-xl flex items-center justify-center flex-shrink-0",children:e.jsx(I,{className:"w-8 h-8 text-white"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-sm text-gray-500 uppercase mb-1",children:"Mais Assistências"}),e.jsx(o,{to:c(`PlayerDetail?id=${i.id}`),children:e.jsx("h3",{className:"text-xl font-bold text-gray-900 hover:text-red-600 transition-colors",children:i.name})}),e.jsxs("p",{className:"text-3xl font-bold text-blue-600 mt-2",children:[i.assists," assistências"]})]})]})})})})]})})}),e.jsxs("section",{className:"py-16 bg-gradient-to-br from-faf-blue via-faf-blue-light to-faf-blue-dark relative overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 bg-[url('https://www.transparenttextures.com/patterns/carbon-fibre.png')] opacity-20"}),e.jsxs("div",{className:"container mx-auto px-4 relative z-10",children:[e.jsxs(l.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[e.jsx(h,{className:"bg-red-600 text-white mb-4 px-4 py-1",children:"Liderança e Estratégia"}),e.jsx("h2",{className:"text-4xl font-bold text-white mb-4",children:"Equipa Técnica"}),e.jsx("p",{className:"text-gray-400 text-lg max-w-2xl mx-auto",children:"Os especialistas por trás do sucesso das Palancas Negras nas quatro linhas."})]}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-6 gap-6",children:a.filter(s=>s.team_type==="staff").map((s,t)=>{var r;return e.jsx(l.div,{initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{delay:t*.05},children:e.jsxs("div",{className:"bg-white/5 backdrop-blur-md rounded-2xl p-4 text-center border border-white/10 hover:border-red-500/50 transition-all group",children:[e.jsx("div",{className:"w-20 h-20 mx-auto mb-4 rounded-full overflow-hidden border-2 border-red-500/30 group-hover:border-red-500 transition-all",children:s.photo_url?e.jsx("img",{src:s.photo_url,alt:s.name,className:"w-full h-full object-cover grayscale group-hover:grayscale-0 transition-all"}):e.jsx("div",{className:"w-full h-full bg-gray-800 flex items-center justify-center text-white font-bold text-xl",children:(r=s.name)==null?void 0:r.charAt(0)})}),e.jsx("h3",{className:"font-bold text-white text-xs mb-1 truncate",children:s.name}),e.jsx("p",{className:"text-[9px] text-red-500 font-bold uppercase tracking-tighter",children:s.position||"Staff"})]})},s.id)})})]})]}),e.jsx("section",{className:"py-16",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs(l.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[e.jsx("h2",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Jogadores Principais"}),e.jsx("p",{className:"text-gray-600 text-lg",children:"Os atletas que lideram a seleção angolana"})]}),p?e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:[1,2,3,4,5,6].map(s=>e.jsx(g,{className:"h-96 rounded-2xl"},s))}):e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:b.map((s,t)=>{var r;return e.jsx(l.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.1},children:e.jsx(o,{to:c(`PlayerDetail?id=${s.id}`),children:e.jsx(x,{className:"border-0 shadow-lg hover:shadow-2xl transition-all hover:-translate-y-1 overflow-hidden group",children:e.jsxs(m,{className:"p-6",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[s.photo_url?e.jsx("img",{src:s.photo_url,alt:s.name,className:"h-16 w-16 flex-shrink-0 rounded-full border border-gray-200 object-cover object-top"}):e.jsx("div",{className:"flex h-16 w-16 flex-shrink-0 items-center justify-center rounded-full bg-gray-100 text-xl font-bold text-gray-400",children:(r=s.name)==null?void 0:r.charAt(0)}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("h3",{className:"text-xl font-bold text-gray-900 group-hover:text-red-600 transition-colors",children:s.name}),e.jsx("p",{className:"truncate text-sm text-gray-600",children:s.current_club}),e.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-2",children:[e.jsx(h,{className:u[s.position],children:s.position}),s.jersey_number&&e.jsxs("span",{className:"text-sm font-bold text-gray-400",children:["#",s.jersey_number]})]})]})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-4 pt-4 mt-4 border-t",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("p",{className:"text-2xl font-bold text-gray-900",children:s.caps||0}),e.jsx("p",{className:"text-xs text-gray-500 uppercase",children:"Jogos"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("p",{className:"text-2xl font-bold text-red-600",children:s.goals||0}),e.jsx("p",{className:"text-xs text-gray-500 uppercase",children:"Golos"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("p",{className:"text-2xl font-bold text-blue-600",children:s.assists||0}),e.jsx("p",{className:"text-xs text-gray-500 uppercase",children:"Assist."})]})]})]})})})},s.id)})})]})}),e.jsx("section",{className:"py-16 bg-white",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs(l.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[e.jsx("h2",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Plantel Completo"}),e.jsx("p",{className:"text-gray-600 text-lg",children:"Todos os jogadores convocados para a seleção nacional"})]}),p?e.jsx(g,{className:"h-96 rounded-xl"}):e.jsx("div",{className:"bg-white rounded-xl shadow-lg overflow-hidden",children:e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{className:"bg-gradient-to-r from-faf-blue to-faf-blue-light text-white",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-6 py-4 text-left",children:"#"}),e.jsx("th",{className:"px-6 py-4 text-left",children:"Jogador"}),e.jsx("th",{className:"px-6 py-4 text-left",children:"Posição"}),e.jsx("th",{className:"px-6 py-4 text-left",children:"Clube"}),e.jsx("th",{className:"px-6 py-4 text-center",children:"Idade"}),e.jsx("th",{className:"px-6 py-4 text-center",children:"Jogos"}),e.jsx("th",{className:"px-6 py-4 text-center",children:"Golos"})]})}),e.jsx("tbody",{children:a.map((s,t)=>e.jsxs(l.tr,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:t*.02},className:"border-b hover:bg-gray-50 transition-colors",children:[e.jsx("td",{className:"px-6 py-4",children:e.jsx("span",{className:"font-bold text-gray-900",children:s.jersey_number||"-"})}),e.jsx("td",{className:"px-6 py-4",children:e.jsx(o,{to:c(`PlayerDetail?id=${s.id}`),className:"font-semibold text-gray-900 hover:text-red-600 transition-colors",children:s.name})}),e.jsx("td",{className:"px-6 py-4",children:e.jsx(h,{className:u[s.position],children:s.position})}),e.jsx("td",{className:"px-6 py-4 text-gray-600",children:s.current_club||"-"}),e.jsx("td",{className:"px-6 py-4 text-center text-gray-600",children:N(s.birth_date)||"-"}),e.jsx("td",{className:"px-6 py-4 text-center font-semibold text-gray-900",children:s.caps||0}),e.jsx("td",{className:"px-6 py-4 text-center font-semibold text-red-600",children:s.goals||0})]},s.id))})]})})]})})]})}export{E 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.