1import{b as j,r as Y,j as e,L as q}from"./vendor-react-core-_0sZDOLQ.js";import{c as $,B as w,b as g}from"./index-j07E1qHv.js";import{C as d,b as x,c as o,a as m}from"./card-DHmBnTdH.js";import{P as v}from"./progress-Dvw4S3O3.js";import{B as p}from"./badge-BXqwvh8U.js";import{f as H}from"./playerPhotoCatalog-C6wr02i9.js";import{A as I}from"./AIStatusPanel-BQTPQoH5.js";import{i as L}from"./aiRecords-DV0ew06X.js";import{_ as O,h as u,u as _,aB as N,t as V,C as Q,a$ as W,w as X,aC as Z}from"./vendor-lucide-Ddz0eB7N.js";import{m as G}from"./vendor-framer-motion-C1oRD-X5.js";import"./vendor-radix-CFmJ1img.js";import"./vendor-utils-BRu4i-LD.js";import"./vendor-supabase-Ca6cp8v2.js";const J={masculino:"Seleção Principal",feminina:"Seleção Feminina (arquivo)",feminino:"Seleção Feminina",sub21:"Sub-21",sub20:"Sub-20",sub17:"Sub-17",feminina_sub20:"Feminina Sub-20",feminina_sub17:"Feminina Sub-17",futsal:"Futsal (arquivo)",futsal_masculino:"Futsal Masculino",futsal_feminino:"Futsal Feminino"},ee=f=>{if(!f)return null;const l=new Date,s=new Date(`${f}T00:00:00`);let b=l.getFullYear()-s.getFullYear();return(l.getMonth()<s.getMonth()||l.getMonth()===s.getMonth()&&l.getDate()<s.getDate())&&
1(b-=1),b};function pe(){var F,S,C,D,T,B,M,R;const l=new URLSearchParams(window.location.search).get("id"),{data:s,isLoading:b}=j({queryKey:["player",l],queryFn:async()=>{let a=[];try{a=await g.entities.Player.list()}catch(t){console.warn("A carregar perfil local por indisponibilidade do backend.",t)}return H(a,l)}}),{data:r}=j({queryKey:["player-stats",l],queryFn:async()=>(await g.entities.PlayerStats.list()).filter(t=>t.player_id===l),initialData:[]}),{data:k}=j({queryKey:["player-transfers",l],queryFn:async()=>(await g.entities.Transfer.list("-transfer_date",50)).filter(t=>t.player_id===l),initialData:[]}),{data:h}=j({queryKey:["player-scouting",l],queryFn:async()=>(await g.entities.AIScoutingReport.filter({player_id:l})).find(L)||null,enabled:!!l}),{data:n}=j({queryKey:["player-tracking",l],queryFn:async()=>(await g.entities.AITrackingMetric.filter({player_id:l})).find(L)||null,enabled:!!l}),i=Y.useMemo(()=>r.length?{goals:r.reduce((a,t)=>a+(t.goals||0),0),assists:r.reduce((a,t)=>a+(t.assists||0),0),matches:r.length,minutes:r.reduce((a,t)=>a+(t.minutes_played||0),0),yellowCards:r.reduce((a,t)=>a+(t.yellow_cards||0),0),redCards:r.reduce((a,t)=>a+(t.red_cards||0),0),avgRating:r.reduce((a,t)=>a+(t.rating||0),0)/r.length,shotsOnTarget:r.reduce((a,t)=>a+(t.shots_on_target||0),0),passAccuracy:r.reduce((a,t)=>{const U=t.passes_attempted?t.passes_completed/t.passes_attempted*100:0;return a+U},0)/r.length}:null,[r]);if(b)return e.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:e.jsx("div",{className:"animate-spin rounded-full h-16 w-16 border-b-2 border-red-600"})});if(!s)return e.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:e.jsx("div",{className:"text-center",children:e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Jogador não encontrado"})})});const A=ee(s.birth_date),P=s.status==="retired",y=(F=s.photos)!=null&&F.length?s.photos:[s.photo_url].filter(
1Boolean),E=s.data_status==="catalog"||s.data_status==="wikidata",z=s.stats_verified||(s.caps||0)>0||(s.goals||0)>0,c=s.official_stats,K=!!(s.profile_average||(S=s.key_attributes)!=null&&S.length||(C=s.honours)!=null&&C.length);return e.jsxs("main",{className:"min-h-screen bg-gray-50",children:[e.jsxs("section",{className:"bg-gradient-to-br from-faf-blue via-faf-blue-light to-faf-blue-dark py-20 relative overflow-hidden",children:[s.photo_url&&e.jsx("div",{className:"absolute inset-0 opacity-10",children:e.jsx("img",{src:s.photo_url,alt:"",loading:"lazy",decoding:"async",className:"w-full h-full object-cover object-top"})}),e.jsxs("div",{className:"container mx-auto px-4 relative z-10",children:[e.jsx(q,{to:$("Players"),children:e.jsxs(w,{variant:"ghost",className:"text-white mb-6",children:[e.jsx(O,{className:"w-4 h-4 mr-2"}),"Voltar aos Jogadores"]})}),e.jsxs("div",{className:"flex flex-col md:flex-row gap-8 items-start",children:[e.jsxs(G.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:"relative",children:[e.jsx("div",{className:"w-48 h-48 rounded-2xl overflow-hidden border-4 border-white/20 shadow-2xl bg-gradient-to-br from-red-600 to-red-800 flex items-center justify-center",children:s.photo_url?e.jsx("img",{src:s.photo_url,alt:s.name,className:"w-full h-full object-cover object-top"}):e.jsx("span",{className:"text-white text-5xl font-black",children:(D=s.name)==null?void 0:D.substring(0,2).toUpperCase()})}),P&&e.jsx(p,{className:"absolute -bottom-2 left-1/2 -translate-x-1/2 bg-gray-600",children:"Aposentado"})]}),e.jsx("div",{className:"flex-1 text-white",children:e.jsxs(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[e.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[e.jsx(p,{className:"bg-red-600 text-white",children:s.position}),s.jersey_number&&e.jsxs(p,{variant:"outline",className:"text-white border-white/40",children:["#",s.jersey_number]})]}),e.jsx("h1",{className:"text-5xl font-black mb-4",children:s.name}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6 mb-6",children:[A&&e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-white/70",children:"Idade"}),e.jsx("p",{className:"text-2xl font-bold",children:A})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-white/70",children:"Clube"}),e.jsx("p",{className:"text-lg font-bold",children:s.current_club||"Sem clube"})]}),s.role&&e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-white/70",children:"Função"}),e.jsx("p",{className:"text-lg font-bold",children:s.role})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-white/70",children:"Seleção"}),e.jsx("p",{className:"text-lg font-bold",children:J[s.team_type]||"Angola"})]}),s.height&&e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-white/70",children:"Altura"}),e.jsxs("p",{className:"text-lg font-bold",children:[s.height,"cm"]})]})]}),z?e.jsxs("div",{className:"grid grid-cols-3 gap-4 bg-white/10 backdrop-blur-sm rounded-xl p-4",children:[e.jsxs("div",{className:"text-center",children:[e.jsx(u,{className:"w-6 h-6 mx-auto mb-1 text-yellow-400"}),e.jsx("p",{className:"text-2xl font-black",children:s.caps||0}),e.jsx("p",{className:"text-xs text-white/70",children:"Jogos por Angola"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx(_,{className:"w-6 h-6 mx-auto mb-1 text-green-400"}),e.jsx("p",{className:"text-2xl font-black",children:s.goals||0}),e.jsx("p",{className:"text-xs text-white/70",children:"Golos por Angola"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx(N,{className:"w-6 h-6 mx-auto mb-1 text-blue-400"}),e.jsx("p",{className:"text-sm font-black pt-1",children:s.stats_as_of?new Date(s.stats_as_of).toLocaleDateString("pt-AO"):"Verificado"}),e.jsx("p",{className:"text-xs text-white/70",children:"Atualização"})]})]}):E?e.jsxs("div",{className:"grid grid-cols-3 gap-4 bg-white/10 backdrop-blur-sm rounded-xl p-4",children:[e.jsxs("div",{className:"text-center",children:[e.jsx(u,{className:"w-6 h-6 mx-auto mb-1 text-yellow-400"}),e.jsx("p",{className:"text-base font-black pt-1",children:s.jersey_number?`#${s.jersey_number}`:s.position}),e.jsx("p",{className:"text-xs text-white/70",children:s.jersey_number?"Número":"Posição"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx(_,{className:"w-6 h-6 mx-auto mb-1 text-green-400"}),e.jsx("p",{className:"text-2xl font-black",children:y.length}),e.jsx("p",{className:"text-xs text-white/70",children:"Fotos"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx(N,{className:"w-6 h-6 mx-auto mb-1 text-blue-400"}),e.jsx("p",{className:"text-base font-black pt-1",children:J[s.team_type]||"Angola"}),e.jsx("p",{className:"text-xs text-white/70",children:"Seleção"})]})]}):e.jsxs("div",{className:"grid grid-cols-4 gap-4 bg-white/10 backdrop-blur-sm rounded-xl p-4",children:[e.jsxs("div",{className:"text-center",children:[e.jsx(u,{className:"w-6 h-6 mx-auto mb-1 text-yellow-400"}),e.jsx("p",{className:"text-2xl font-black",children:s.caps||0}),e.jsx("p",{className:"text-xs text-white/70",children:"Jogos"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx(_,{className:"w-6 h-6 mx-auto mb-1 text-green-400"}),e.jsx("p",{className:"text-2xl font-black",children:s.goals||0}),e.jsx("p",{className:"text-xs text-white/70",children:"Golos"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx(N,{className:"w-6 h-6 mx-auto mb-1 text-blue-400"}),e.jsx("p",{className:"text-2xl font-black",children:s.assists||0}),e.jsx("p",{className:"text-xs text-white/70",children:"Assistências"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx(V,{className:"w-6 h-6 mx-auto mb-1 text-red-400"}),e.jsx("p",{className:"text-2xl font-black",children:(s.yellow_cards||0)+(s.red_cards||0)}),e.jsx("p",{className:"text-xs text-white/70",children:"Cartões"})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-3 mt-4",children:[e.jsx(q,{to:$(`AdvancedStats?player=${s.id}`),children:e.jsxs(w,{className:"bg-red-600 hover:bg-red-700 text-white",children:[e.jsx(Q,{className:"w-4 h-4 mr-2"}),"Ver estatÃsticas"]})}),s.source_url&&e.jsx("a",{href:s.source_url,target:"_blank",rel:"noreferrer",children:e.jsxs(w,{variant:"outline",className:"border-white/40 bg-white/10 text-white hover:bg-white/20 hover:text-white",children:[e.jsx(W,{className:"w-4 h-4 mr-2"}),"Fonte: ",s.source_name||"oficial"]})})]})]})})]})]})]}),e.jsx("section",{className:"py-12",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[e.jsxs("div",{className:"lg:col-span-2",children:[K&&e.jsxs(d,{className:"mb-6 overflow-hidden border-amber-200",children:[e.jsx(x,{className:"bg-gradient-to-r from-[#0B2346] to-[#163B6D] text-white",children:e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.2em] text-amber-300",children:"Relatório DTN / FAF"}),e.jsx(o,{className:"mt-1 text-2xl",children:"Ficha Técnica Sub-17"})]}),s.profile_average!=null&&e.jsxs("div",{className:"flex h-20 w-20 flex-col items-center justify-center rounded-full border-2 border-amber-400 bg-white/10",children:[e.jsx("span",{className:"text-2xl font-black text-amber-300",children:s.profile_average.toFixed(2)}),e.jsx("span",{className:"text-[10px] font-bold uppercase text-white/70",children:"Média"})]})]})}),e.jsxs(m,{className:"space-y-8 p-6",children:[c&&e.jsxs("div",{children:[e.jsxs("div",{className:"mb-4 flex flex-wrap items-center justify-between gap-2",children:[e.jsx("h3",{className:"font-black text-gray-900",children:"EstatÃstica oficial"}),e.jsx(p,{variant:"outline",className:"border-amber-300 bg-amber-50 text-amber-800",children:c.scope})]}),e.jsx("div",{className:"grid grid-cols-2 gap-3 md:grid-cols-3",children:[["Jogos",c.matches],["Nota média",c.average_rating.toFixed(2)],["Minutos",`${c.minutes} min`],["Golos",c.goals],["Cartões",`${c.yellow_cards}A · ${c.red_cards}
1V`],["Assiduidade",`${c.training_attendance.toFixed(1)}%`]].map(([a,t])=>e.jsxs("div",{className:"rounded-xl border border-gray-200 bg-gray-50 p-4 text-center",children:[e.jsx("p",{className:"text-2xl font-black text-[#0B2346]",children:t}),e.jsx("p",{className:"mt-1 text-xs font-semibold uppercase tracking-wide text-gray-500",children:a})]},a))}),e.jsxs("p",{className:"mt-3 text-xs text-gray-500",children:["Participação em minutos: ",c.minutes_share.toFixed(1),"%",c.matches>0?` · Golos por jogo: ${c.goals_per_game.toFixed(2)}`:""]})]}),((T=s.key_attributes)==null?void 0:T.length)>0&&e.jsxs("div",{children:[e.jsx("h3",{className:"mb-4 font-black text-gray-900",children:"Atributos em destaque"}),e.jsx("div",{className:"space-y-4",children:s.key_attributes.map(([a,t])=>e.jsxs("div",{children:[e.jsxs("div",{className:"mb-2 flex items-center justify-between gap-4",children:[e.jsx("span",{className:"text-sm font-semibold text-gray-700",children:a}),e.jsxs("span",{className:"font-black text-[#0B2346]",children:[t,"/10"]})]}),e.jsx(v,{value:t*10,className:"h-2"})]},a))})]}),((B=s.honours)==null?void 0:B.length)>0&&e.jsxs("div",{children:[e.jsxs("h3",{className:"mb-3 flex items-center gap-2 font-black text-gray-900",children:[e.jsx(u,{className:"h-5 w-5 text-amber-500"}),"Palmarés e observações"]}),e.jsx("ul",{className:"space-y-2",children:s.honours.map(a=>e.jsxs("li",{className:"flex gap-3 text-sm text-gray-700",children:[e.jsx("span",{className:"mt-2 h-1.5 w-1.5 flex-none rounded-full bg-amber-500"}),e.jsx("span",{children:a})]},a))})]})]})]}),e.jsxs(d,{children:[e.jsx(x,{children:e.jsxs(o,{className:"flex items-center gap-2",children:[e.jsx(X,{className:"w-5 h-5 text-red-600"}),"Registos por Partida"]})}),e.jsx(m,{children:i?e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6",children:[e.jsxs("div",{className:"text-center p-4 bg-green-50 rounded-lg",children:[e.jsx("p",{className:"text-3xl font-black text-green-600",children:i.goals}),e.jsx("p",{className:"text-sm text-gray-600",children:"Golos"})]}),e.jsxs("div",{className:"text-center p-4 bg-blue-50 rounded-lg",children:[e.jsx("p",{className:"text-3xl font-black text-blue-600",children:i.assists}),e.jsx("p",{className:"text-sm text-gray-600",children:"Assistências"})]}),e.jsxs("div",{className:"text-center p-4 bg-purple-50 rounded-lg",children:[e.jsx("p",{className:"text-3xl font-black text-purple-600",children:i.matches}),e.jsx("p",{className:"text-sm text-gray-600",children:"Jogos"})]}),e.jsxs("div",{className:"text-center p-4 bg-yellow-50 rounded-lg",children:[e.jsx("p",{className:"text-3xl font-black text-yellow-600",children:i.avgRating.toFixed(1)}),e.jsx("p",{className:"text-sm text-gray-600",children:"Rating Médio"})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex justify-between mb-2",children:[e.jsx("span",{className:"text-sm font-medium",children:"Precisão de Passes"}),e.jsxs("span",{className:"text-sm font-bold",children:[i.passAccuracy.toFixed(0),"%"]})]}),e.jsx(v,{value:i.passAccuracy,className:"h-2"})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex justify-between mb-2",children:[e.jsx("span",{className:"text-sm font-medium",children:"Remates à Baliza"}),e.jsx("span",{className:"text-sm font-bold",children:i.shotsOnTarget})]}),e.jsx(v,{value:i.shotsOnTarget/i.matches*10,className:"h-2"})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-4 pt-4 border-t",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600",children:"Minutos"}),e.jsxs("p",{className:"text-xl font-bold",children:[i.minutes,"'"]})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600",children:"Cartões Amarelos"}),e.jsx("p",{className:"text-xl font-bold text-yellow-600",children:i.yellowCards})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600",children:"Cartões Vermelhos"}),e.jsx("p",{className:"text-xl font-bold text-red-600",children:i.redCards})]})]})]})]}):e.jsx("p",{className:"text-center text-gray-500 py-8",children:"Ainda não existem registos detalhados por partida para este jogador."})})]}),(h||n)&&e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mt-6",children:[h&&e.jsxs(d,{className:"border-blue-200 bg-blue-50/30 overflow-hidden",children:[e.jsx(x,{className:"bg-blue-600/10",children:e.jsxs(o,{className:"flex items-center gap-2 text-blue-800",children:[e.jsx(Z,{className:"w-5 h-5"}),"Relatório de Scouting IA"]})}),e.jsxs(m,{className:"p-6",children:[e.jsxs("div",{className:"flex justify-between items-center mb-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-blue-600 font-bold uppercase tracking-wider",children:"Potencial XGBoost"}),e.jsxs("p",{className:"text-2xl font-black text-blue-900",children:[h.xgboost_potential,"%"]})]}),e.jsxs("div",{className:"text-right",children:[e.jsx("p",{className:"text-xs text-blue-600 font-bold uppercase tracking-wider",children:"Match Semântico"}),e.jsxs("p",{className:"text-2xl font-black text-blue-900",children:[h.semantic_match_rate,"%"]})]})]}),e.jsx("p",{className:"text-sm text-blue-800 leading-relaxed mb-4 bg-white/50 p-3 rounded-lg border border-blue-100",children:h.llm_tactical_summary}),e.jsx("div",{className:"flex flex-wrap gap-2",children:(M=h.recommended_roles)==null?void 0:M.map((a,t)=>e.jsx(p,{variant:"secondary",className:"bg-blue-100 text-blue-700 hover:bg-blue-200",children:a},t))}),e.jsx(I,{record:h,className:"mt-5"})]})]}),n&&e.jsxs(d,{className:"border-purple-200 bg-purple-50/30 overflow-hidden",children:[e.jsx(x,{className:"bg-purple-600/10",children:e.jsxs(o,{className:"flex items-center gap-2 text-purple-800",children:[e.jsx(N,{className:"w-5 h-5"}),"Métricas de Performance IA"]})}),e.jsxs(m,{className:"p-6",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"p-3 bg-white/50 rounded-lg border border-purple-100",children:[e.jsx("p",{className:"text-[10px] text-purple-600 font-bold uppercase",children:"Distância Total"}),e.jsxs("p",{className:"text-xl font-bold text-purple-900",children:[n.distance_covered," km"]})]}),e.jsxs("div",{className:"p-3 bg-white/50 rounded-lg border border-purple-100",children:[e.jsx("p",{className:"text-[10px] text-purple-600 font-bold uppercase",children:"Velocidade Máxima"}),e.jsxs("p",{className:"text-xl font-bold text-purple-900",children:[n.top_speed," km/h"]})]}),e.jsxs("div",{className:"p-3 bg-white/50 rounded-lg border border-purple-100",children:[e.jsx("p",{className:"text-[10px] text-purple-600 font-bold uppercase",children:"Sprints Intensos"}),e.jsx("p",{className:"text-xl font-bold text-purple-900",children:n.sprints})]}),e.jsxs("div",{className:"p-3 bg-white/50 rounded-lg border border-purple-100",children:[e.jsx("p",{className:"text-[10px] text-purple-600 font-bold uppercase",children:"Intensidade"}),e.jsx("p",{className:"text-xl font-bold text-purple-900",children:n.pace_intensity})]})]}),e.jsx("div",{className:"mt-4 pt-4 border-t border-purple-100",children:e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-xs font-medium text-purple-700 uppercase",children:"Estimativa de Fadiga"}),e.jsx(p,{className:n.fatigue_estimate==="Baixo"?"bg-green-100 text-green-700":"bg-yellow-100 text-yellow-700",children:n.fatigue_estimate})]})}),e.jsx(I,{record:n,className:"mt-5"})]})]})]}),s.bio&&e.jsxs(d,{className:"mt-6",children:[e.jsx(x,{children:e.jsxs(o,{className:"flex items-center gap-2",children:[e.jsx(V,{className:"w-5 h-5 text-red-600"}),"Biografia e Carreira"]})}),e.jsx(m,{children:e.jsx("p",{className:"text-gray-700 leading-relaxed whitespace-pre-line",children:s.bio})})]}),y.length>1&&e.jsxs(d,{className:"mt-6",children:[e.jsx(x,{children:e.jsx(o,{children:"Galeria do Jogador"})}),e.jsx(m,{children:e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4",children:y.map((a,t)=>e.jsx("div",{className:"aspect-[3/4] overflow-hidden rounded-lg bg-gray-100",children:e.jsx("img",{src:a,alt:`${s.name} - foto ${t+1}`,loading:"lazy",className:"w-full h-full object-cover object-top"})},a))})})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs(d,{children:[e.jsx(x,{children:e.jsx(o,{className:"text-lg",children:"Informações Pessoais"})}),e.jsxs(m,{className:"space-y-3",children:[s.birth_date&&e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-gray-600",children:"Data de Nascimento"}),e.jsx("span",{className:"font-bold",children:new Date(s.birth_date).toLocaleDateString("pt-AO")})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-gray-600",children:"Nacionalidade"}),e.jsx("span",{className:"text-right font-bold",children:s.nationality})]}),s.role&&e.jsxs("div",{className:"flex justify-between gap-4",children:[e.jsx("span",{className:"text-gray-600",children:"Posição habitual"}),e.jsx("span",{className:"text-right font-bold",children:s.role})]}),((R=s.other_positions)==null?void 0:R.length)>0&&e.jsxs("div",{className:"flex justify-between gap-4",children:[e.jsx("span",{className:"text-gray-600",children:"Outras posições"}),e.jsx("span",{className:"text-right font-bold",children:s.other_positions.join(", ")})]}),s.preferred_foot&&e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-gray-600",children:"Pé dominante"}),e.jsx("span",{className:"font-bold",children:s.preferred_foot})]}),s.height&&e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-gray-600",children:"Altura"}),e.jsxs("span",{className:"font-bold",children:[s.height," cm"]})]}),s.weight&&e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-gray-600",children:"Peso"}),e.jsxs("span",{className:"font-bold",children:[s.weight," kg"]})]}),s.debut_date&&e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-gray-600",children:"Estreia"}),e.jsx("span",{className:"font-bold",children:new Date(s.debut_date).toLocaleDateString("pt-AO")})]}),P&&s.retirement_date&&e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-gray-600",children:"Aposentadoria"}),e.jsx("span",{className:"font-bold",children:new Date(s.retirement_date).toLocaleDateString("pt-AO")})]})]})]}),k.length>0&&e.jsxs(d,{children:[e.jsx(x,{children:e.jsxs(o,{className:"text-lg flex items-center gap-2",children:[e.jsx(O,{className:"w-4 h-4"}),"Histórico de Transferências"]})}),e.jsx(m,{children:e.jsx("div",{className:"space-y-4",children:k.map((a,t)=>e.jsxs("div",{className:"border-l-2 border-red-600 pl-4",children:[e.jsx("p",{className:"font-bold text-sm",children:a.to_club}),e.jsx("p",{className:"text-xs text-gray-600",children:a.from_club&&`De ${a.from_club}`}),e.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[e.jsx(p,{variant:"outline",className:"text-xs",children:a.transfer_type}),e.jsx("span",{className:"text-xs text-gray-500",children:new Date(a.transfer_date).getFullYear()})]}),a.transfer_fee>0&&e.jsxs("p",{className:"text-xs font-bold text-green-600 mt-1",children:["â¬",a.transfer_fee,"M"]})]},t))})})]})]})]})})})]})}export{pe 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.