1import{n as z,r as q,o as f,N as A,P as $,j as e,a9 as M,aa as h,D as v,a6 as y,Z as C,S as w,T as V,a2 as r,O as E,U as F,v as _,ab as G,a as S,b as g}from"./index-CtR2Cm7C.js";import{V as I,a as U}from"./VerificationBadge-_rI8B_Sf.js";import{S as P}from"./star-C4mVafEC.js";import{C as B}from"./clock-Crn-bV_Q.js";import{C as L}from"./circle-check-big-CtQTi4fB.js";import{A as K}from"./arrow-right-DDSWFya5.js";import{G as D}from"./globe-BcPicHZK.js";import"./TeamHeraldicVerification-CevnxECq.js";import"./shield-check-D6RITCT8.js";import"./lock-open-CyktMdjX.js";function N({value:s,label:n,color:t="text-white",icon:o}){return e.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center py-4 px-2 gap-1",style:{borderRight:"1px solid rgba(255,255,255,0.05)"},children:[o&&e.jsx(o,{className:`w-4 h-4 mb-1 ${t} opacity-50`}),e.jsx("p",{className:`text-[22px] font-black leading-none ${t}`,children:s}),e.jsx("p",{className:"text-[9px] text-white/25 uppercase tracking-[0.15em] font-medium text-center leading-tight",children:n})]})}function b({icon:s,title:n,desc:t,href:o,accent:l,badge:j,locked:i=!1}){const p=e.jsxs("div",{className:"flex items-center gap-4 p-4 rounded-2xl border transition-all active:scale-[0.98]",style:{background:i?"rgba(255,255,255,0.02)":`rgba(${l},0.06)`,border:`1px solid rgba(${l},${i?.06:.18})`},children:[e.jsx("div",{className:"w-11 h-11 rounded-xl flex items-center justify-center flex-shrink-0",style:{background:`rgba(${l},0.12)`,border:`1px solid rgba(${l},0.2)`},children:i?e.jsx(S,{className:"w-5 h-5 text-white/20"}):e.jsx(s,{className:"w-5 h-5",style:{color:`rgb(${l})`}})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[e.jsx("p",{className:`text-[14px] font-black ${i?"text-white/25":"text-white"}`,children:n}),j&&!i&&e.jsx("span",{className:"px-1.5 py-0.5 rounded-full text-[9px] font-black text-white",style:{background:`rgba(${l},0.3)`},children:j})]}),e.jsx("p",{className:`text-[11px] leading-relaxed ${i?"text-white/15":"text-white/40"}`,children:t})]}),e.jsx(_,{className:`w-4 h-4 flex-shrink-0 ${i?"text-white/10":"text-white/30"}`})]});return i?e.jsx("div",{className:"cursor-not-allowed",children:p}):e.jsx("a",{href:o,children:p})}function u({type:s,label:n,desc:t,active:o}){const l=U[s];return l?e.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-xl border transition-all",style:{background:o?l.bg:"rgba(255,255,255,0.02)",border:`1px solid ${o?l.border:"rgba(255,255,255,0.06)"}`},children:[e.jsx("img",{src:l.imgSrc,alt:n,style:{width:28,height:28,objectFit:"contain",flexShrink:0}}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-[12px] font-bold text-white truncate",children:n}),e.jsx("p",{className:"text-[10px] text-white/35 leading-tight",children:t})]}),o&&e.jsx(L,{className:"w-4 h-4 text-green-400 flex-shrink-0"})]}):null}function J({user:s,onRequestAccess:n}){return e.jsxs("div",{className:"min-h-[70vh] flex flex-col items-center justify-center px-6 text-center gap-6",children:[e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"w-24 h-24 rounded-3xl flex items-center justify-center",style:{background:"rgba(139,92,246,0.12)",border:"1px solid rgba(139,92,246,0.25)"},children:e.jsx(h,{className:"w-10 h-10 text-purple-400"})}),e.jsx("div",{className:"absolute -top-1 -right-1 w-8 h-8 rounded-full bg-black flex items-center justify-center border border-white/[0.08]",children:e.jsx(S,{className:"w-4 h-4 text-white/40"})})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[11px] text-white/25 uppercase tracking-[0.25em] font-bold mb-2",children:"Acceso Restringido"}),e.jsx("h2",{className:"text-[24px] font-black text-white leading-tight mb-3",children:"Módulo Pro"}),e.jsx("p",{className:"text-[13px] text-white/35 max-w-xs mx-auto leading-relaxed",children:"Esta sección es exclusiva para organizaciones formales, CEOs verificados y organizadores de torneos."})]}),e.jsx("div",{className:"w-full max-w-xs space-y-2.5",children:[{icon:E,label:"CEO de Equipo u Organización",color:"text-amber-400"},{icon:w,label:"Organizador verificado",color:"text-purple-400"}
1,{icon:D,label:"Empresa / Liga operadora",color:"text-green-400"}].map(t=>e.jsxs("div",{className:"flex items-center gap-3 px-4 py-2.5 rounded-xl",style:{background:"rgba(255,255,255,0.04)",border:"1px solid rgba(255,255,255,0.07)"},children:[e.jsx(t.icon,{className:`w-4 h-4 flex-shrink-0 ${t.color}`}),e.jsx("span",{className:"text-[12px] text-white/50",children:t.label})]},t.label))}),s?e.jsx("button",{onClick:n,className:"w-full max-w-xs py-3.5 rounded-full font-bold text-[14px] text-white transition-all active:scale-95",style:{background:"linear-gradient(135deg, #7c3aed, #6d28d9)"},children:"Solicitar acceso Pro â"}):e.jsx("button",{onClick:()=>g.auth.redirectToLogin(window.location.href),className:"w-full max-w-xs py-3.5 rounded-full bg-white text-black font-bold text-[14px] transition-all active:scale-95",children:"Iniciar sesión"})]})}function ie(){const{user:s,isLoading:n}=z(),[t,o]=q.useState("hub"),{data:l}=f({queryKey:["pro-my-role",s?.email],enabled:!!s,queryFn:async()=>(await g.entities.UserRole.filter({user_email:s.email}))[0]||null,staleTime:300*1e3}),j=A({}),i=!!s&&j.can($.TEAM_MANAGE),{data:p=[]}=f({queryKey:["pro-my-orgs",s?.email],enabled:!!s&&i,queryFn:()=>g.entities.Organization.filter({owner_email:s.email}),staleTime:180*1e3}),{data:d=[]}=f({queryKey:["pro-contracts",s?.email],enabled:!!s&&i,queryFn:()=>g.entities.OrgContract.filter({organization_email:s.email,status:"active"},"-created_date",50),staleTime:180*1e3}),{data:x=[]}=f({queryKey:["pro-transfers",s?.email],enabled:!!s&&i,queryFn:()=>g.entities.PlayerTransfer.filter({status:"pending"},"-created_date",20),staleTime:180*1e3}),{data:m=[]}=f({queryKey:["pro-players-count"],enabled:!!s&&i,queryFn:()=>g.entities.ProPlayer.list("-created_date",100),staleTime:600*1e3}),T=()=>{window.location.href=r("Solicitudes")};if(n)return e.jsx("div",{className:"min-h-screen bg-black flex items-center justify-center",children:e.jsx("div",{className:"w-6 h-6 border-2 border-white/20 border-t-purple-400 rounded-full animate-spin"})});const O=l?.platform_role||"player",k=M?.[O];return e.jsxs("div",{className:"min-h-screen bg-black",style:{fontFamily:'-apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif'},children:[e.jsxs("section",{className:"relative px-4 pt-8 pb-6",style:{background:"linear-gradient(180deg, #0d0814 0%, #0a0a0a 100%)"},children:[e.jsx("div",{className:"absolute inset-0 pointer-events-none overflow-hidden",children:e.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[300px] h-[200px] rounded-full opacity-20",style:{background:"radial-gradient(ellipse, #7c3aed 0%, transparent 70%)",filter:"blur(40px)"}})}),e.jsxs("div",{className:"relative max-w-lg mx-auto",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 mb-4 px-3 py-1.5 rounded-full",style:{background:"rgba(139,92,246,0.15)",border:"1px solid rgba(139,92,246,0.3)"},children:[e.jsx(h,{className:"w-3.5 h-3.5 text-purple-400"}),e.jsx("span",{className:"text-[10px] font-black text-purple-300 uppercase tracking-[0.2em]",children:"Circuito Profesional"})]}),e.jsxs("h1",{className:"text-[clamp(2rem,8vw,3.5rem)] font-black leading-[0.9] tracking-[-0.03em] mb-3",children:[e.jsx("span",{className:"text-white",children:"PRO"}),e.jsx("br",{}),e.jsx("span",{style:{color:"rgba(139,92,246,0.6)"},children:"LEAGUE"})]}),e.jsx("p",{className:"text-[13px] text-white/35 mb-6 max-w-xs leading-relaxed",children:"Ecosistema exclusivo para organizaciones formales, contratos, transferencias y verificación profesional."}),i&&e.jsxs("div",{className:"flex rounded-2xl overflow-hidden",style:{background:"rgba(139,92,246,0.06)",border:"1px solid rgba(139,92,246,0.15)"},children:[e.jsx(N,{value:p.length||0,label:"Mis Orgs",color:"text-purple-300",icon:h}),e.jsx(N,{value:d.length,label:"Contratos",color:"text-blue-300",icon:v}),e.jsx(N,{value:x.length,label:"Transfers",color:"text-amber-300",icon:y}),e.jsx(N,{value:m.length,label:"Pro Players",color:"text-green-300",icon:P})]}),i&&k&&e.jsxs("div",{className:"mt-4 inline-flex items-center gap-2 px-3 py-1.5 rounded-full",style:{background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.08)"},children:[e.jsx("span",{className:"text-[11px] font-bold text-white/50",children:"Rol activo:"}),e.jsxs("span",{className:"text-[11px] font-black text-white",children:[k?.icon," ",k?.label]})]})]})]}),!i&&e.jsx(J,{user:s,onRequestAccess:T}),i&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"sticky top-0 z-30 bg-black/95 backdrop-blur-xl border-b border-white/[0.05]",children:e.jsx("div",{className:"flex gap-0 overflow-x-auto scrollbar-hide px-4",children:[{key:"hub",label:"Hub",icon:C},{key:"org",label:"Organización",icon:h},{key:"verification",label:"Verificación",icon:w},{key:"analytics",label:"AnalÃticas",icon:V}].map(a=>{const c=a.icon;return e.jsxs("button",{onClick:()=>o(a.key),className:`flex items-center gap-1.5 px-3.5 py-3.5 whitespace-nowrap text-[12px] font-bold border-b-2 transition-all flex-shrink-0 ${t===a.key?"border-purple-400 text-white":"border-transparent text-white/35 hover:text-white/60"}`,children:[e.jsx(c,{className:"w-3.5 h-3.5"}),a.label]},a.key)})})}),e.jsxs("div",{className:"max-w-lg mx-auto px-4 py-5 pb-28 space-y-6",children:[t==="hub"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-[9px] font-black uppercase tracking-[0.22em] text-white/25 mb-3",children:"Módulos del Circuito Pro"}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(b,{icon:E,title:"CEO Panel",desc:"Gestión de organización, contratos, jugadores y staff.",href:r("CEOPanel"),accent:"245,158,11",badge:"PRO"}),e.jsx(b,{icon:y,title:"Transferencias",desc:"Mercado de fichajes con aprobación multi-firma entre equipos.",href:r("Transferencias"),accent:"59,130,246"}),e.jsx(b,{icon:P,title:"Pro Players",desc:"Directorio de jugadores verificados institucionalmente.",href:r("ProPlayers"),accent:"52,211,153"}),e.jsx(b,{icon:v,title:"Solicitudes Formales",desc:"Solicitudes de verificación, patrocinio y contratos especiales.",href:r("Solicitudes"),accent:"168,85,247"}),e.jsx(b,{icon:w,title:"Trust Factor",desc:"Reputación y score de confianza de tu organización.",href:r("TrustFactor"),accent:"99,102,241"}),e.jsx(b,{icon:F,title:"Sistema de Roles",desc:"JerarquÃa de permisos y evolución de acceso en la plataforma.",href:r("RoleSystem"),accent:"236,72,153"})]})]}),(x.length>0||d.filter(a=>!a.signed_by_player).length>0)&&e.jsxs("div",{className:"p-4 rounded-2xl space-y-2.5",style:{background:"rgba(245,158,11,0.06)",border:"1px solid rgba(245,158,11,0.18)"},children:[e.jsxs("p",{className:"text-[10px] font-black uppercase tracking-widest text-amber-400/70 flex items-center gap-1.5",children:[e.jsx(B,{className:"w-3 h-3"})," Requieren acción"]}),x.length>
10&&e.jsxs("a",{href:r("Transferencias"),className:"flex items-center justify-between gap-3 px-3 py-2 rounded-xl hover:bg-white/[0.04] transition-all",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(y,{className:"w-4 h-4 text-amber-400"}),e.jsxs("span",{className:"text-[12px] text-white/70",children:[x.length," transferencia",x.length!==1?"s":""," pendiente",x.length!==1?"s":""]})]}),e.jsx(_,{className:"w-3.5 h-3.5 text-white/25"})]}),d.filter(a=>!a.signed_by_player).length>0&&e.jsxs("a",{href:r("CEOPanel"),className:"flex items-center justify-between gap-3 px-3 py-2 rounded-xl hover:bg-white/[0.04] transition-all",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(v,{className:"w-4 h-4 text-amber-400"}),e.jsxs("span",{className:"text-[12px] text-white/70",children:[d.filter(a=>!a.signed_by_player).length," contrato",d.filter(a=>!a.signed_by_player).length!==1?"s":""," sin firma del jugador"]})]}),e.jsx(_,{className:"w-3.5 h-3.5 text-white/25"})]})]}),e.jsxs("div",{className:"flex items-center gap-3 py-1",children:[e.jsx("div",{className:"flex-1 h-px",style:{background:"rgba(139,92,246,0.15)"}}),e.jsx("span",{className:"text-[9px] font-black text-white/15 uppercase tracking-[0.2em]",children:"Separado del ecosistema amateur"}),e.jsx("div",{className:"flex-1 h-px",style:{background:"rgba(139,92,246,0.15)"}})]}),e.jsxs("div",{className:"p-4 rounded-2xl",style:{background:"rgba(255,255,255,0.03)",border:"1px solid rgba(255,255,255,0.06)"},children:[e.jsx("p",{className:"text-[10px] font-black uppercase tracking-widest text-white/20 mb-2",children:"Ecosistema Pro"}),e.jsx("p",{className:"text-[12px] text-white/35 leading-relaxed",children:"Este módulo opera bajo reglas independientes. Los datos de organizaciones, contratos y transferencias no son visibles en el entorno social/amateur y requieren verificación institucional para acceder."})]})]}),t==="org"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-[9px] font-black uppercase tracking-[0.22em] text-white/25 mb-3",children:"Mis Organizaciones"}),p.length===0?e.jsxs("div",{className:"text-center py-12 rounded-2xl",style:{background:"rgba(255,255,255,0.02)",border:"1px solid rgba(255,255,255,0.06)"},children:[e.jsx(h,{className:"w-10 h-10 text-white/10 mx-auto mb-3"}),e.jsx("p",{className:"text-white/30 text-[13px] mb-1",children:"Sin organizaciones registradas"}),e.jsx("p",{className:"text-white/20 text-[11px] mb-4",children:"Solicita la creación de tu organización formal"}),e.jsx("a",{href:r("Solicitudes"),className:"inline-flex items-center gap-2 px-5 py-2.5 rounded-full text-[12px] font-bold text-purple-300",style:{background:"rgba(139,92,246,0.15)",border:"1px solid rgba(139,92,246,0.25)"},children:"Solicitar Organización â"})]}):e.jsx("div",{className:"space-y-3",children:p.map(a=>e.jsxs("div",{className:"p-4 rounded-2xl",style:{background:"rgba(139,92,246,0.06)",border:"1px solid rgba(139,92,246,0.15)"},children:[e.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[a.logo_url?e.jsx("img",{src:a.logo_url,alt:"",className:"w-12 h-12 rounded-xl object-cover flex-shrink-0"}):e.jsx("div",{className:"w-12 h-12 rounded-xl flex items-center justify-center flex-shrink-0",style:{background:"rgba(139,92,246,0.15)"},children:e.jsx(h,{className:"w-6 h-6 text-purple-400"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("p",{className:"text-[15px] font-black text-white truncate",children:a.name}),a.verified&&e.jsx(L,{className:"w-4 h-4 text-green-400 flex-shrink-0"})]}),e.jsxs("p",{className:"text-[11px] text-white/35",children:["[",a.tag||"ORG","] · ",a.region," · ",a.type]})]})]}),e.jsx("div",{className:"grid grid-cols-3 gap-2 text-center",children:[{label:"Equipos",value:(a.team_ids||[]).length},{label:"Staff",value:(a.staff_emails||[]).length},{label:"Tier",value:a.tier||"starter"}].map(c=>e.jsxs("div",{className:"py-2 rounded-xl",style:{background:"rgba(255,255,255,0.04)"},children:[e.jsx("p",{className:"text-[14px] font-black text-white capitalize",children:c.value}),e.jsx("p",{className:"text-[9px] text-white/30 uppercase tracking-wide",children:c.label})]},c.label))})]},a.id))})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[9px] font-black uppercase tracking-[0.22em] text-white/25 mb-3",children:"Gestión rápida"}),e.jsx("div",{className:"space-y-2",children:[{label:"Contratos activos",value:d.length,path:"CEOPanel",color:"#34d399"},{label:"Transferencias pendientes",value:x.length,path:"Transferencias",color:"#60a5fa"},{label:"Jugadores verificados Pro",value:m.length,path:"ProPlayers",color:"#a78bfa"}].map(a=>e.jsxs("a",{href:r(a.path),className:"flex items-center justify-between px-4 py-3 rounded-xl transition-all hover:bg-white/[0.04]",style:{background:"rgba(255,255,255,0.03)",border:"1px solid rgba(255,255,255,0.06)"},children:[e.jsx("span",{className:"text-[13px] text-white/60",children:a.label}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-[15px] font-black",style:{color:a.color},children:a.value}),e.jsx(K,{className:"w-3.5 h-3.5 text-white/20"})]})]},a.label))})]})]}),t==="verification"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-[9px] font-black uppercase tracking-[0.22em] text-white/25 mb-3",children:"Estado de Verificación"}),s&&e.jsxs("div",{className:"p-4 rounded-2xl mb-4",style:{background:"rgba(255,255,255,0.03)",border:"1px solid rgba(255,255,255,0.07)"},children:[e.jsx("p",{className:"text-[10px] text-white/30 uppercase tracking-wider mb-3",children:"Tus verificaciones activas"}),(s.verification_types||(s.verification_type?[s.verification_type]:[])).length>0?e.jsx(I,{user:s}):e.jsx("p",{className:"text-[12px] text-white/25 italic",children:"Sin verificaciones activas"})]})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[9px] font-black uppercase tracking-[0.22em] text-white/25 mb-3",children:"Tipos de verificación Pro"}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{type:"jugador",label:"Jugador Profesional",desc:"Para jugadores con trayectoria competitiva demostrada.",active:s?.verification_types?.includes("jugador")}),e.jsx(u,{type:"organizacion",label:"Organización Verificada",desc:"Org formal con equipos activos y CEO identificado.",active:s?.verification_types?.includes("organizacion")}),e.jsx(u,{type:"empresa",label:"Empresa Real",desc:"Entidad legal registrada con documentación oficial.",active:s?.verification_types?.includes("empresa")}),e.jsx(u,{type:"contrato_exclusivo",label:"Contrato Exclusivo FLF",desc:"Contrato de exclusividad firmado con FLF Pro League LLC.",active:s?.verification_types?.includes("contrato_exclusivo")}),e.jsx(u,{type:"official_team",label:"FLF Official Team",desc:"Equipo bajo el paraguas oficial de FLF Pro League.",active:s?.verification_types?.includes("official_team")}),e.jsx(u,{type:"exclusive_league",label:"FLF Exclusive League",desc:"Liga operada en exclusiva por FLF Pro League LLC.",active:s?.verification_types?.includes("exclusive_league")})]})]}),e.jsxs("div",{className:"p-4 rounded-2xl",style:{background:"rgba(99,102,241,0.06)",border:"1px solid rgba(99,102,241,0.18)"},children:[e.jsxs("p",{className:"text-[10px] font-black uppercase tracking-widest text-indigo-400/70 mb
1-3 flex items-center gap-1.5",children:[e.jsx(C,{className:"w-3 h-3"})," Flujo de Verificación Pro"]}),e.jsx("div",{className:"space-y-2.5",children:[{step:"01",label:"Solicitar verificación",desc:"EnvÃa solicitud formal con documentación."},{step:"02",label:"Revisión por admin",desc:"El equipo FLF revisa en 24-72h."},{step:"03",label:"Badge asignado",desc:"Visible en perfil, torneos y DMs."},{step:"04",label:"Acceso Pro desbloqueado",desc:"CEOPanel, contratos y transferencias disponibles."}].map((a,c)=>e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"w-7 h-7 rounded-full flex items-center justify-center text-[10px] font-black text-indigo-300 flex-shrink-0",style:{background:"rgba(99,102,241,0.2)",border:"1px solid rgba(99,102,241,0.3)"},children:a.step}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[12px] font-bold text-white",children:a.label}),e.jsx("p",{className:"text-[10px] text-white/35",children:a.desc})]})]},c))}),e.jsx("a",{href:r("Solicitudes"),className:"mt-4 w-full flex items-center justify-center gap-2 py-3 rounded-xl font-bold text-[13px] text-indigo-300 transition-all hover:bg-indigo-500/10",style:{background:"rgba(99,102,241,0.1)",border:"1px solid rgba(99,102,241,0.2)"},children:"Iniciar solicitud de verificación â"})]})]}),t==="analytics"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-[9px] font-black uppercase tracking-[0.22em] text-white/25 mb-3",children:"Métricas de Organización"}),e.jsx("div",{className:"grid grid-cols-2 gap-3",children:[{label:"Jugadores activos",value:d.filter(a=>["jugador","capitan","suplente"].includes(a.role)).length,color:"#60a5fa",icon:F},{label:"Staff activo",value:d.filter(a=>["coach","manager","analista"].includes(a.role)).length,color:"#a78bfa",icon:G},{label:"Contratos activos",value:d.length,color:"#34d399",icon:v},{label:"Transfers activas",value:x.length,color:"#fbbf24",icon:y},{label:"Mis organizaciones",value:p.length,color:"#f472b6",icon:h},{label:"Pro Players (global)",value:m.length,color:"#fb923c",icon:P}].map((a,c)=>{const R=a.icon;return e.jsxs("div",{className:"p-4 rounded-2xl",style:{background:"rgba(255,255,255,0.04)",border:"1px solid rgba(255,255,255,0.07)"},children:[e.jsx(R,{className:"w-4 h-4 mb-2 opacity-50",style:{color:a.color}}),e.jsx("p",{className:"text-[26px] font-black leading-none",style:{color:a.color},children:a.value}),e.jsx("p",{className:"text-[10px] text-white/30 mt-1",children:a.label})]},c)})})]}),m.length>0&&e.jsxs("div",{children:[e.jsx("p",{className:"text-[9px] font-black uppercase tracking-[0.22em] text-white/25 mb-3",children:"Top Pro Players"}),e.jsxs("div",{className:"space-y-2",children:[m.slice(0,5).map((a,c)=>e.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5 rounded-xl",style:{background:"rgba(255,255,255,0.03)",border:"1px solid rgba(255,255,255,0.06)"},children:[e.jsxs("span",{className:"text-[11px] font-black text-white/20 w-5 text-center",children:["#",c+1]}),a.avatar_url?e.jsx("img",{src:a.avatar_url,alt:"",className:"w-8 h-8 rounded-full object-cover flex-shrink-0"}):e.jsx("div",{className:"w-8 h-8 rounded-full flex items-center justify-center flex-shrink-0 text-[11px] font-bold text-white/40",style:{background:"rgba(255,255,255,0.06)"},children:(a.nick||"?")[0]}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-[13px] font-bold text-white truncate",children:a.nick}),e.jsxs("p",{className:"text-[10px] text-white/35",children:[a.team_name||"Free Agent"," · ",a.region]})]}),e.jsxs("div",{className:"text-right",children:[e.jsx("p",{className:"text-[12px] font-black text-amber-400",children:a.rating||"--"}),e.jsx("p",{className:"text-[9px] text-white/25",children:"Rating"})]})]},a.id)),m.length>5&&e.jsxs("a",{href:r("ProPlayers"),className:"block text-center py-2.5 text-[12px] text-white/30 hover:text-white/50 transition-colors",children:["Ver los ",m.length," pro players â"]})]})]}),e.jsxs("div",{className:"p-4 rounded-2xl",style:{background:"rgba(255,255,255,0.02)",border:"1px solid rgba(255,255,255,0.05)"},children:[e.jsxs("p",{className:"text-[10px] font-black uppercase tracking-widest text-white/15 mb-2 flex items-center gap-1.5",children:[e.jsx(w,{className:"w-3 h-3"})," Aislamiento de datos"]}),e.jsx("p",{className:"text-[11px] text-white/25 leading-relaxed",children:"Las métricas Pro son independientes de las estadÃsticas del ecosistema amateur. Los datos de organización (contratos, transferencias) solo son visibles para partes involucradas y administradores."})]})]})]})]})]})}export{ie 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.