1import{j as e,b as g,i as Ge,T as Je,r as v,P as Ue,C as fe,I as je,k as ye,l as Ne,m as ve,n as we,o as ke,p as Ae,q as Ce,L as M,s as Qe,R as F,t as ge}from"./vendor-react-core-_0sZDOLQ.js";import{b as l,a as C,B as j,c as O}from"./index-j07E1qHv.js";import{I as N}from"./input-rti45mgP.js";import{L as x}from"./label-7HT5__eZ.js";import{S as te,a as re,b as ne,c as oe,d as h}from"./select-DHshRvNJ.js";import{T as Ve}from"./textarea-CHKzP3UK.js";import{T as He,a as We,b as U,c as Q}from"./tabs-BUF6w8PE.js";import{C as A,a as _,b as E,c as T}from"./card-DHmBnTdH.js";import{t as p}from"./index-CDqomOa1.js";import{w as Se,x as X,U as P,i as Xe,y as Ye,z as Ze,T as Fe,D as ea,p as be,r as z,W as V,E as L,J as H,K as aa,O as sa,N as ta,d as ra,Q as na,h as oa,V as ia,Y as la,S as da,Z as ca}from"./vendor-lucide-Ddz0eB7N.js";import{R as ie,X as ze,Y as Pe,T as le,L as _e,B as K,C as ma}from"./generateCategoricalChart-Be1gs-pq.js";import{B as De,C as Ie,P as ua,a as pa}from"./PieChart--P7TeWzz.js";import{B as xa}from"./badge-BXqwvh8U.js";import{h as ha}from"./vendor-utils-BRu4i-LD.js";import{m as R}from"./vendor-framer-motion-C1oRD-X5.js";import"./vendor-radix-CFmJ1img.js";import"./vendor-supabase-Ca6cp8v2.js";function W({title:i,value:s,subtitle:t,icon:r,color:c}){return e.jsx(A,{children:e.jsxs(_,{className:"p-6",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("p",{className:"text-sm text-gray-600 font-medium",children:i}),e.jsx("div",{className:`${c} w-10 h-10 rounded-lg flex items-center justify-center`,children:e.jsx(r,{className:"w-5 h-5 text-white"})})]}),e.jsx("p",{className:"text-3xl font-bold text-gray-900",children:s}),t&&e.jsx("p",{className:"text-sm text-gray-500 mt-1",children:t})]})})}function ga({orders:i,tickets:s,members:t}){const y=(()=>{const b=[];for(let n=6;n>=0;n--){const m=new Date;m.setDate(m.getDate()-n),b.push(m.toISOString().split("T")[0])}return b})().map(b=>{const n=i.filter(f=>{var o;return(o=f.created_date)==null?void 0:o.startsWith(b)}),m=s.filter(f=>{var o;return(o=f.created_date)==null?void 0:o.startsWith(b)}),D=t.filter(f=>{var o;return(o=f.created_date)==null?void 0:o.startsWith(b)});return{date:new Date(b).toLocaleDateString("pt-PT",{day:"2-digit",month:"short"}),Encomendas:n.reduce((f,o)=>f+(o.total_amount||0),0),Bilhetes:m.reduce((f,o)=>f+o.price*o.quantity,0),Sócios:D.reduce((f,o)=>f+(o.annual_fee||0),0)}});return e.jsxs(A,{className:"border-0 shadow-lg",children:[e.jsx(E,{className:"bg-gradient-to-r from-green-600 to-green-700 text-white",children:e.jsxs(T,{className:"flex items-center gap-2",children:[e.jsx(Se,{className:"w-5 h-5"}),"Vendas nos Ãltimos 7 Dias"]})}),e.jsx(_,{className:"p-6",children:e.jsx(ie,{width:"100%",height:300,children:e.jsxs(De,{data:y,children:[e.jsx(Ie,{strokeDasharray:"3 3"}),e.jsx(ze,{dataKey:"date"}),e.jsx(Pe,{}),e.jsx(le,{formatter:b=>`${b.toLocaleString("pt-AO")} Kz`,contentStyle:{borderRadius:"8px",border:"1px solid #e5e7eb"}}),e.jsx(_e,{}
1),e.jsx(K,{dataKey:"Encomendas",fill:"#ef4444",radius:[8,8,0,0]}),e.jsx(K,{dataKey:"Bilhetes",fill:"#3b82f6",radius:[8,8,0,0]}),e.jsx(K,{dataKey:"Sócios",fill:"#10b981",radius:[8,8,0,0]})]})})})]})}const ba={pending:"#f59e0b",paid:"#10b981",processing:"#3b82f6",shipped:"#8b5cf6",delivered:"#22c55e",cancelled:"#ef4444"},fa={pending:"Pendente",paid:"Pago",processing:"A Processar",shipped:"Enviado",delivered:"Entregue",cancelled:"Cancelado"};function ja({orders:i}){const s=i.reduce((r,c)=>{const y=c.status||"pending";return r[y]=(r[y]||0)+1,r},{}),t=Object.entries(s).map(([r,c])=>({name:fa[r]||r,value:c,color:ba[r]||"#6b7280"}));return e.jsxs(A,{className:"border-0 shadow-lg",children:[e.jsx(E,{className:"bg-gradient-to-r from-orange-600 to-orange-700 text-white",children:e.jsxs(T,{className:"flex items-center gap-2",children:[e.jsx(X,{className:"w-5 h-5"}),"Encomendas por Status"]})}),e.jsx(_,{className:"p-6",children:e.jsx(ie,{width:"100%",height:300,children:e.jsxs(ua,{children:[e.jsx(pa,{data:t,cx:"50%",cy:"50%",labelLine:!1,label:({name:r,percent:c})=>`${r}: ${(c*100).toFixed(0)}%`,outerRadius:100,fill:"#8884d8",dataKey:"value",children:t.map((r,c)=>e.jsx(ma,{fill:r.color},`cell-${c}`))}),e.jsx(le,{}),e.jsx(_e,{})]})})})]})}function ya(){const{data:i=[]}=g({queryKey:["popular-players"],queryFn:()=>l.entities.Player.list("-caps",10)}),s=i.slice(0,5).map(t=>{var r;return{name:((r=t.name)==null?void 0:r.split(" ").slice(-1)[0])||t.name,jogos:t.caps||0,golos:t.goals||0}});return e.jsxs(A,{className:"border-0 shadow-lg",children:[e.jsx(E,{className:"bg-gradient-to-r from-red-600 to-red-700 text-white",children:e.jsxs(T,{className:"flex items-center gap-2",children:[e.jsx(P,{className:"w-5 h-5"}),"Top 5 Jogadores Mais Populares"]})}),e.jsx(_,{className:"p-6",children:e.jsx(ie,{width:"100%",height:300,children:e.jsxs(De,{data:s,layout:"horizontal",children:[e.jsx(Ie,{strokeDasharray:"3 3"}),e.jsx(ze,{type:"number"}),e.jsx(Pe,{dataKey:"name",type:"category",width:100}),e.jsx(le,{contentStyle:{borderRadius:"8px",border:"1px solid #e5e7eb"}}),e.jsx(K,{dataKey:"jogos",fill:"#dc2626",radius:[0,8,8,0],name:"Jogos"}),e.jsx(K,{dataKey:"golos",fill:"#fbbf24",radius:[0,8,8,0],name:"Golos"})]})})})]})}const Na=Ge,va=Je,wa=v.forwardRef(({className:i,inset:s,children:t,...r},c)=>e.jsxs(ye,{ref:c,className:C("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",s&&"pl-8",i),...r,children:[t,e.jsx(Xe,{className:"ml-auto"})]}));wa.displayName=ye.displayName;const ka=v.forwardRef(({className:i,...s},t)=>e.jsx(Ne,{ref:t,className:C("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",i),...s}));ka.displayName=Ne.displayName;const Ee=v.forwardRef(({className:i,sideOffset:s=4,...t},r)=>
1e.jsx(Ue,{children:e.jsx(fe,{ref:r,sideOffset:s,className:C("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",i),...t})}));Ee.displayName=fe.displayName;const Te=v.forwardRef(({className:i,inset:s,...t},r)=>e.jsx(je,{ref:r,className:C("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",s&&"pl-8",i),...t}));Te.displayName=je.displayName;const Aa=v.forwardRef(({className:i,children:s,checked:t,...r},c)=>e.jsxs(ve,{ref:c,className:C("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",i),checked:t,...r,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(we,{children:e.jsx(Ye,{className:"h-4 w-4"})})}),s]}));Aa.displayName=ve.displayName;const Ca=v.forwardRef(({className:i,children:s,...t},r)=>e.jsxs(ke,{ref:r,className:C("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",i),...t,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(we,{children:e.jsx(Ze,{className:"h-2 w-2 fill-current"})})}),s]}));Ca.displayName=ke.displayName;const Sa=v.forwardRef(({className:i,inset:s,...t},r)=>e.jsx(Ae,{ref:r,className:C("px-2 py-1.5 text-sm font-semibold",s&&"pl-8",i),...t}));Sa.displayName=Ae.displayName;const Fa=v.forwardRef(({className:i,...s},t)=>e.jsx(Ce,{ref:t,className:C("-mx-1 my-1 h-px bg-muted",i),...s}));Fa.displayName=Ce.displayName;function za(){const[i,s]=v.useState(Date.now()),{data:t=[]}=g({queryKey:["recent-orders"],queryFn:()=>l.entities.Order.list("-created_date",10),refetchInterval:3e4}),{data:r=[]}=g({queryKey:["recent-members"],queryFn:()=>l.entities.Membership.list("-created_date",10),refetchInterval:3e4}),{data:c=[]}=g({queryKey:["recent-tickets"],queryFn:()=>l.entities.TicketPurchase.list("-created_date",10),refetchInterval:3e4}),y=[...t.map(n=>{var m;return{id:`order-${n.id}`,type:"order",title:"Nova Encomenda",description:`${n.customer_name} - ${(m=n.total_amount)==null?void 0:m.toLocaleString("pt-AO")} Kz`,date:n.created_date,link:"AdminOrders",icon:X}}),...r.filter(n=>n.status==="pending").map(n=>({id:`member-${n.id}`,type:"member",title:"Novo Pedido de Sócio",description:n.member_name,date:n.created_date,link:"AdminMembers",icon:P})),...c.map(n=>({id:`ticket-${n.id}`,type:"ticket",title:"Bilhete Comprado",description:`${n.buyer_name} - ${n.ticket_type}`,date:n.created_date,link:"AdminTickets",icon:Fe}))].sort((n,m)=>new Date(m.date)-new Date(n.date)).slice(0,8),b=y.filter(n=>new Date(n.date).getTime()>i);return e.jsxs(Na,{children:[e.jsx(va,{asChild:!0,children:e.jsxs(j,{variant:"ghost",size:"icon",className:"relative",children:[e.jsx(ea,{className:"w-5 h-5"}),b.length>0&&e.jsx(xa,{className:"absolute -top-1 -right-1 h-5 w-5 flex items-center justify-center p-0 bg-red-600",children:b.length})]})}),e.jsx(Ee,{align:"end",className:"w-80",children:e.jsxs("div",{className:"p-2",children:[e.jsx("h3",{className:"font-bold text-sm mb-2",children:"Notificações"}),y.length>0?e.jsx("div",{className:"space-y-1",children:y.map(n=>{const m=n.icon;return e.jsx(M,{to:O(n.link),children:e.jsx(Te,{className:"cursor-pointer p-3",children:e.jsxs("div",{className:"flex gap-3 w-full",children:[e.jsx("div",{className:"w-8 h-8 bg-gray-100 rounded-full flex items-center justify-center flex-shrink-0",children:e.jsx(m,{className:"w-4 h-4 text-gray-600"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-semibold text-gray-900 truncate",children:n.title}),e.jsx("p",{className:"text-xs text-gray-500 truncate",children:n.description}),e.jsx("p",{className:"text-xs text-gray-400 mt-1",children:ha(n.date).fromNow()})]})]})})},n.id)})}):e.jsx("p",{className:"text-sm text-gray-500 text-center py-4",children:"Sem notificações recentes"})]})})]})}function Va(){const i=Qe(),[s,t]=F.useState(!1),[r,c]=F.useState(""),[y,b]=F.useState(""),[n,m]=F.useState(""),[D,f]=F.useState(!1),[o,S]=F.useState({name:"",position:"Avançado",current_club:"Petro de Luanda",jersey_number:"",team_type:"principal",nationality:"Angola",status:"active",photo_url:""}),[d,w]=F.useState({name:"",description:"",price:"",category:"camisolas",stock:"",image_url:"",sizes:"S, M, L, XL",active:!0}),Y=ge({mutationFn:a=>l.entities.Player.create(a),onSuccess:()=>{i.invalidateQueries({queryKey:["admin-players"]}),i.invalidateQueries({queryKey:["admin-players-count"]}),p.success("Jogador adicionado com sucesso!"),S({name:"",position:"Avançado",current_club:"Petro de Luanda",jersey_number:"",team_type:"principal",nationality:"Angola",status:"active",photo_url:""})},onError:a=>p.error(`Erro ao carregar jogador: ${a.message}`)}),Z=ge({mutationFn:a=>l.entities.Product.create(a),onSuccess:()=>{i.invalidateQueries({queryKey:["admin-products"]}),i.invalidateQueries({queryKey:["products"]}),p.success("Produto adicionado com sucesso!"),w({name:"",description:"",price:"",category:"camisolas",stock:"",image_url:"",sizes:"S, M, L, XL",active:!0})},onError:a=>p.error(`Erro ao carregar produto: ${a.message}`)}),qe=a=>
1{if(a.preventDefault(),!o.name){p.error("Insira o nome do jogador");return}Y.mutate({...o,jersey_number:o.jersey_number?Number(o.jersey_number):null})},Le=a=>{if(a.preventDefault(),!d.name||!d.price){p.error("Preencha os campos obrigatórios do produto");return}Z.mutate({...d,price:Number(d.price),stock:Number(d.stock),stock_quantity:Number(d.stock),sizes:d.sizes.split(",").map(u=>u.trim()).filter(Boolean)})},{data:ee}=g({queryKey:["current-user"],queryFn:()=>l.auth.me()}),{data:ae}=g({queryKey:["admin-products"],queryFn:()=>l.entities.Product.list(),initialData:[]}),{data:I}=g({queryKey:["admin-orders"],queryFn:()=>l.entities.Order.list("-created_date"),initialData:[]}),{data:B}=g({queryKey:["admin-tickets"],queryFn:()=>l.entities.TicketPurchase.list("-created_date"),initialData:[]}),{data:q}=g({queryKey:["admin-members"],queryFn:()=>l.entities.Membership.list("-created_date"),initialData:[]}),Re=I.reduce((a,u)=>a+(u.total_amount||0),0)+B.reduce((a,u)=>a+u.price*u.quantity,0)+q.reduce((a,u)=>a+(u.annual_fee||0),0),$=I.filter(a=>a.status==="pending").length,G=q.filter(a=>a.status==="pending").length,Me=q.filter(a=>a.status==="active").length,{data:Oe}=g({queryKey:["admin-transfers"],queryFn:()=>l.entities.Transfer.list(),initialData:[]}),{data:Ke}=g({queryKey:["admin-all-news"],queryFn:()=>l.entities.News.list(),initialData:[]}),{data:de}=g({queryKey:["admin-comments-count"],queryFn:()=>l.entities.Comment.list(),initialData:[]}),ce=de.filter(a=>!a.approved).length,{data:me}=g({queryKey:["admin-complaints-count"],queryFn:()=>l.entities.Complaint.list("-submitted_at"),initialData:[]}),ue=me.filter(a=>a.status==="received"||a.status==="triage").length,pe=async()=>{t(!0);try{const a=await l.functions.invoke("updateMatchResults",{});p.success(a.data.message)}catch(a){p.error("Erro ao atualizar resultados: "+a.message)}finally{t(!1)}},xe=async()=>{t(!0);try{const a=await l.functions.invoke("fetchTransfermarktPlayers",{});p.success(a.data.message)}catch(a){p.error("Erro ao importar jogadores: "+a.message)}finally{t(!1)}},he=async()=>{t(!0);try{const a=await l.functions.invoke("generateHistoricalMatches",{years:5});p.success(a.data.message)}catch(a){p.error("Erro ao importar histórico: "+a.message)}finally{t(!1)}},{data:se}=g({queryKey:["admin-players-count"],queryFn:()=>l.entities.Player.list(),initialData:[]}),{data:Be}=g({queryKey:["admin-competitions-count"],queryFn:()=>l.entities.Competition.list(),initialData:[]});if((ee==null?void 0:ee.role)!=="admin"){const a=async u=>{var J;if(u.preventDefault(),!r||!y){m("SINAL: Por favor, preencha todos os campos.");return}m(""),f(!0);try{const k=await l.auth.signIn({email:r.trim(),password:y});if(!((k==null?void 0:k.role)==="admin"||((J=k==null?void 0:k.app_metadata)==null?void 0:J.role)==="admin"))throw await l.auth.signOut(),new Error("A conta não possui autorização administrativa.");await i.invalidateQueries({queryKey:["current-user"]}),p.success("Conexão estabelecida. Bem-vindo de volta ao painel de controlo FAF!")}catch(k){console.error("Falha na autenticação administrativa.",k),m("SINAL VERMELHO: Credenciais inválidas ou conta sem autorização administrativa."),p.error("Acesso Recusado")}finally{f(!1)}};return e.jsxs("div",{className:"min-h-screen bg-[#070708] text-white flex items-center justify-center relative overflow-hidden font-mono px-4",children:[e.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(to_right,#1f293708_1px,transparent_1px),linear-gradient(to_bottom,#1f293708_1px,transparent_1px)] bg-[size:24px_24px] pointer-events-none"}),e.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] bg-red-950/5 rounded-full blur-[160px] pointer-events-none"}),e.jsxs(R.div,{initial:{opacity:0,y:15},animate:{opacity:1,y:0},transition:{duration:.5,ease:[.16,1,.3,1]},className:"w-full max-w-md relative z-10",children:[e.jsxs("div",{className:"flex justify-between items-center text-[10px] tracking-[0.25em] text-zinc-500 uppercase mb-3 border-b border-zinc-800 pb-2",children:[e.jsx("span",{children:"[ faf-node-alpha-02 ]"}),e.jsxs("span",{className:"text-red-500 flex items-center gap-1",children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-red-600 animate-pulse"}),"SISTEMA BLOQUEADO"]})]}),e.jsxs("div",{className:"bg-[#0b0c0e] border border-zinc-800 rounded-none shadow-2xl relative",children:[e.jsx("div",{className:"h-1 bg-red-600 w-full"}),e.jsxs("div",{className:"p-8",children:[e.jsxs("div",{className:"mb-8",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx(be,{className:"w-8 h-8 text-red-600"}),e.jsx("span",{className:"text-xs uppercase font-extrabold tracking-[0.3em] text-red-500 bg-red-950/30 px-2 py-0.5 border border-red-900/50",children:"DIREÃÃO FAF"})]}),e.jsx("h1",{className:"text-xl font-bold uppercase tracking-wider text-white",children:"Consola Administrativa"}),e.jsx("p",{className:"text-xs text-zinc-400 mt-1 uppercase tracking-wide",children:"Autenticação mandatória de operadores autorizados"})]}),n&&e.jsxs(R.div,{initial:{opacity:0,scale:.98}
1,animate:{opacity:1,scale:1},className:"mb-6 bg-red-950/20 border border-red-900/40 p-4 text-xs text-red-400 font-semibold tracking-wide rounded-none",children:[e.jsx("span",{className:"block font-bold mb-1 uppercase tracking-[0.1em] text-red-500 animate-pulse",children:"â ï¸ ALERTA DE SEGURANÃA"}),n]}),e.jsxs("form",{onSubmit:a,className:"space-y-5",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(x,{htmlFor:"admin-email",className:"text-zinc-400 uppercase tracking-widest text-[10px]",children:"Email do Operador"}),e.jsx("div",{className:"relative",children:e.jsx(N,{id:"admin-email",type:"email",autoComplete:"username",placeholder:"[email protected]",value:r,onChange:u=>c(u.target.value),disabled:D,className:"w-full bg-[#070708] border border-zinc-800 text-white placeholder-zinc-600 focus:border-red-600 focus:ring-1 focus:ring-red-600 rounded-none h-11 text-sm tracking-wide transition-colors",required:!0})})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(x,{htmlFor:"password",className:"text-zinc-400 uppercase tracking-widest text-[10px]",children:"Senha de Segurança"}),e.jsx("div",{className:"relative",children:e.jsx(N,{id:"password",type:"password",autoComplete:"current-password",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",value:y,onChange:u=>b(u.target.value),disabled:D,className:"w-full bg-[#070708] border border-zinc-800 text-white placeholder-zinc-600 focus:border-red-600 focus:ring-1 focus:ring-red-600 rounded-none h-11 text-sm tracking-wide transition-colors",required:!0})})]}),e.jsx(j,{type:"submit",disabled:D,className:"w-full bg-red-600 hover:bg-red-700 text-white font-bold tracking-widest uppercase rounded-none h-12 text-xs transition-all relative overflow-hidden active:scale-[0.98] border-none",children:D?e.jsxs("span",{className:"flex items-center justify-center gap-2",children:[e.jsx(z,{className:"w-4 h-4 animate-spin text-white"}),"AUTENTICANDO TERMINAL..."]}):e.jsx("span",{className:"flex items-center justify-center gap-2",children:"ESTABELECER CONEXÃO"})})]})]}),e.jsxs("div",{className:"border-t border-zinc-900 px-8 py-3 bg-[#0a0b0d] flex justify-between items-center text-[9px] text-zinc-500 tracking-wider",children:[e.jsx("span",{children:"ESTADO: ONLINE"}),e.jsx("span",{children:"FAF SECURE CONSOLE v4.4"})]})]}),e.jsx("div",{className:"text-center mt-6 text-zinc-600 text-[10px] uppercase tracking-widest",children:"Utilize uma conta Supabase autorizada com o papel administrativo."})]})]})}const $e=[{title:"Admin Fácil",icon:V,count:"Novo",badge:"Jogadores, loja, mocks e IA",link:"AdminFacil",color:"from-red-600 to-yellow-600"},{title:"Gestor de Conteúdo",icon:L,count:"Novo",badge:"Sincronizar pastas e media",link:"AdminCMS",color:"from-emerald-600 to-cyan-600"},{title:"Produtos",icon:H,count:ae.length,link:"AdminProducts",color:"from-blue-600 to-blue-700"},{title:"Categorias",icon:H,count:[...new Set(ae.map(a=>a.category).filter(Boolean))].length,link:"AdminCategories",color:"from-purple-600 to-purple-700"},{title:"Encomendas",icon:X,count:I.length,badge:$>0?`${$} pendentes`:null,link:"AdminOrders",color:"from-green-600 to-green-700"},{title:"Bilhetes",icon:Fe,count:B.length,link:"AdminTickets",color:"from-purple-600 to-purple-700"},{title:"Validar Bilhetes",icon:aa,count:B.filter(a=>a.status==="paid").length,link:"AdminValidateTickets",color:"from-orange-600 to-orange-700"},{title:"Sócios",icon:P,count:q.length,badge:G>0?`${G} pendentes`:null,link:"AdminMembers",color:"from-red-600 to-red-700"},{title:"Transferências",icon:sa,count:Oe.length,link:"AdminTransfers",color:"from-indigo-600 to-indigo-700"},{title:"NotÃcias",icon:ta,count:Ke.length,link:"AdminNews",color:"from-cyan-600 to-cyan-700"},{title:"Gestão de Jogadores",icon:P,count:se.length,link:"AdminPlayers",color:"from-violet-600 to-violet-700"},{title:"Ãrgãos Sociais",icon:ra,count:"Editar",badge:"Direção, conselhos e fotos",link:"AdminOrgaosSociais",color:"from-slate-700 to-slate-900"},{title:"Gestão de Fotos",icon:na,count:se.filter(a=>!a.photo_url||a.photo_url.includes("unsplash.com")).length,badge:se.filter(a=>!a.photo_url||a.photo_url.includes("unsplash.com")).length>0?"Faltam fotos":null,link:"AdminPlayerPhotos",color:"from-pink-600 to-pink-700"},{title:"Competições IA",icon:oa,count:Be.length,link:"AdminCompetitions",color:"from-
1amber-600 to-amber-700"},{title:"Comentários",icon:ia,count:de.length,badge:ce>0?`${ce} pendentes`:null,link:"AdminComments",color:"from-teal-600 to-teal-700"},{title:"Denúncias",icon:la,count:me.length,badge:ue>0?`${ue} por analisar`:null,link:"AdminComplaints",color:"from-red-700 to-slate-950"}];return e.jsxs("main",{className:"min-h-screen bg-gray-50",children:[e.jsx("section",{className:"bg-gradient-to-br from-gray-900 via-gray-800 to-black py-20",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs(R.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"flex items-center justify-between",children:[e.jsxs("div",{className:"text-white",children:[e.jsx(be,{className:"w-16 h-16 mb-4"}),e.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-4",children:"Painel de Administração"}),e.jsx("p",{className:"text-xl text-white/90",children:"Gestão centralizada da aplicação FAF"})]}),e.jsx(za,{})]})})}),e.jsx("section",{className:"py-12",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs(R.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},className:"mb-8 p-6 bg-gradient-to-r from-zinc-900 to-black border-2 border-emerald-500/20 text-white rounded-none flex flex-col md:flex-row items-center justify-between gap-6 shadow-xl relative overflow-hidden",children:[e.jsx("div",{className:"absolute right-0 top-0 w-64 h-64 bg-emerald-500/5 rounded-full blur-3xl pointer-events-none"}),e.jsxs("div",{className:"space-y-1 relative z-10",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"bg-emerald-500/10 text-emerald-500 border border-emerald-500/20 rounded-none font-mono text-[9px] uppercase tracking-widest px-2 py-0.5",children:"Centro de Formação"}),e.jsx("span",{className:"w-1.5 h-1.5 bg-emerald-500 rounded-full animate-ping"})]}),e.jsx("h2",{className:"text-xl font-black uppercase tracking-tight",children:"Academia de Formação FAF Admin"}),e.jsx("p",{className:"text-sm text-zinc-400 max-w-2xl leading-relaxed",children:"Precisa de ajuda para dominar as ferramentas administrativas? Assista a tutoriais em vÃdeo, leia os manuais e use o simulador prático para aprender a gerir o portal de forma profissional."})]}),e.jsx(M,{to:O("AdminTutorial"),className:"relative z-10 shrink-0",children:e.jsxs(j,{className:"bg-emerald-600 hover:bg-emerald-700 text-white font-bold font-mono text-xs rounded-none border border-emerald-500/30 py-5 px-6 uppercase tracking-wider",children:[e.jsx(V,{className:"w-4 h-4 mr-2 animate-pulse"}),"Iniciar Tutoriais"]})})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-12",children:[e.jsx(W,{title:"Receita Total",value:`${Re.toLocaleString("pt-AO")} Kz`,subtitle:null,icon:Se,color:"bg-green-600"}),e.jsx(W,{title:"Produtos",value:ae.length,subtitle:null,icon:H,color:"bg-blue-600"}),e.jsx(W,{title:"Encomendas",value:I.length,subtitle:$>0?`${$} pendentes`:null,icon:X,color:"bg-orange-600"}),e.jsx(W,{title:"Sócios Ativos",value:Me,subtitle:G>0?`${G} por aprovar`:null,icon:P,color:"bg-red-600"})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 mb-12",children:[e.jsx(ga,{orders:I,tickets:B,members:q}),e.jsx(ja,{orders:I})]}),e.jsx("div",{className:"mb-12",children:e.jsx(ya,{})}),e.jsxs("div",{className:"mb-12 space-y-8",children:[e.jsxs(A,{className:"border border-gray-200 shadow-sm rounded-none",children:[e.jsxs(E,{className:"bg-gradient-to-r from-gray-900 via-gray-800 to-black text-white p-6",children:[e.jsxs(T,{className:"flex items-center gap-3 text-lg font-bold uppercase tracking-wide",children:[e.jsx(V,{className:"w-5 h-5 text-emerald-400"}),"Consola de Operações Rápidas FAF"]}),e.jsx("p",{className:"text-xs text-zinc-400 mt-1 leading-none",children:"Cadastre atletas, produtos e controle sincronizações em tempo real."})]}),e.jsx(_,{className:"p-6",children:e.jsxs(He,{defaultValue:"add-player",className:"space-y-6",children:[e.jsxs(We,{className:"grid w-full grid-cols-2 lg:grid-cols-4 bg-gray-100 p-1 rounded-none h-auto",children:[e.jsxs(U,{value:"add-player",className:"rounded-none font-bold text-xs py-2 data-[state=active]:bg-white data-[state=active]:text-gray-900",children:[e.jsx(P,{className:"w-4 h-4 mr-2"})," Novo Jogador"]}),e.jsxs(U,{value:"add-product",className:"rounded-none font-bold text-xs py-2 data-[state=active]:bg-white data-[state=active]:text-gray-900",children:[e.jsx(H,{className:"w-4 h-4 mr-2"})," Novo Produto"]}),e.jsxs(U,{value:"sync-cms",className:"rounded-none font-bold text-xs py-2 data-[state=active]:bg-white data-[state=active]:text-gray-900",children:[e.jsx(L,{className:"w-4 h-4 mr-2"})," Sincronizar CMS"]}),e.jsxs(U,{value:"ai-automations",className:"rounded-none font-bold text-xs py-2 data-[state=active]:bg-white data-[state=active]:text-gray-900",children:[e.jsx(da,{className:"w-4 h-4 mr-2"})," Automações IA"]})]}),e.jsx(Q,{value:"add-player",className:"space-y-4 pt-2",children:e.jsxs("form",{onSubmit:qe,className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"md:col-span-2",children:[e.jsx(x,{className:"text-xs font-bold uppercase tracking-wider text-gray-700",children:"Nome completo do Jogador"}
1),e.jsx(N,{placeholder:"Ex: Gilberto 'Gibelé' Miguel",value:o.name,onChange:a=>S({...o,name:a.target.value}),className:"rounded-none h-11 border-gray-200 focus:ring-red-600 focus:border-red-600 font-medium",required:!0})]}),e.jsxs("div",{children:[e.jsx(x,{className:"text-xs font-bold uppercase tracking-wider text-gray-700",children:"Posição em Campo"}),e.jsxs(te,{value:o.position,onValueChange:a=>S({...o,position:a}),children:[e.jsx(re,{className:"rounded-none h-11 border-gray-200",children:e.jsx(ne,{})}),e.jsxs(oe,{className:"rounded-none",children:[e.jsx(h,{value:"Guarda-redes",children:"Guarda-redes"}),e.jsx(h,{value:"Defesa",children:"Defesa"}),e.jsx(h,{value:"Médio",children:"Médio"}),e.jsx(h,{value:"Avançado",children:"Avançado"})]})]})]}),e.jsxs("div",{children:[e.jsx(x,{className:"text-xs font-bold uppercase tracking-wider text-gray-700",children:"Clube Atual"}),e.jsx(N,{placeholder:"Ex: Petro de Luanda",value:o.current_club,onChange:a=>S({...o,current_club:a.target.value}),className:"rounded-none h-11 border-gray-200"})]}),e.jsxs("div",{children:[e.jsx(x,{className:"text-xs font-bold uppercase tracking-wider text-gray-700",children:"Número da Camisola"}),e.jsx(N,{type:"number",placeholder:"Ex: 9",value:o.jersey_number,onChange:a=>S({...o,jersey_number:a.target.value}),className:"rounded-none h-11 border-gray-200"})]}),e.jsxs("div",{children:[e.jsx(x,{className:"text-xs font-bold uppercase tracking-wider text-gray-700",children:"Categoria da Seleção"}),e.jsxs(te,{value:o.team_type,onValueChange:a=>S({...o,team_type:a}),children:[e.jsx(re,{className:"rounded-none h-11 border-gray-200",children:e.jsx(ne,{})}),e.jsxs(oe,{className:"rounded-none",children:[e.jsx(h,{value:"principal",children:"Seleção Principal (Palancas Negras)"}),e.jsx(h,{value:"sub23",children:"Sub-23"}),e.jsx(h,{value:"sub20",children:"Sub-20"}),e.jsx(h,{value:"sub17",children:"Sub-17"}),e.jsx(h,{value:"feminina",children:"Feminina"}),e.jsx(h,{value:"futsal_masculino",children:"Futsal Masculino"}),e.jsx(h,{value:"praia_masculino",children:"Praia Masculino"})]})]})]}),e.jsxs("div",{className:"md:col-span-2",children:[e.jsx(x,{className:"text-xs font-bold uppercase tracking-wider text-gray-700",children:"URL da Foto de Perfil"}),e.jsx(N,{placeholder:"Ex: /players/Gelson_Dala/B25LSRW0476.jpg",value:o.photo_url,onChange:a=>S({...o,photo_url:a.target.value}),className:"rounded-none h-11 border-gray-200"})]}),e.jsx(j,{type:"submit",disabled:Y.isPending,className:"md:col-span-2 bg-red-600 hover:bg-red-700 text-white font-bold font-mono text-xs uppercase tracking-wider py-6 rounded-none shadow-sm",children:Y.isPending?"Gravando Jogador na BD...":"Gravar Atleta Principal"})]})}),e.jsx(Q,{value:"add-product",className:"space-y-4 pt-2",children:e.jsxs("form",{onSubmit:Le,className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"md:col-span-2",children:[e.jsx(x,{className:"text-xs font-bold uppercase tracking-wider text-gray-700",children:"Nome do Produto"}),e.jsx(N,{placeholder:"Ex: Camisola Oficial Angola Palancas Negras 2026",value:d.name,onChange:a=>w({...d,name:a.target.value}),className:"rounded-none h-11 border-gray-200 font-medium",required:!0})]}),e.jsxs("div",{children:[e.jsx(x,{className:"text-xs font-bold uppercase tracking-wider text-gray-700",children:"Preço (Kz)"}),e.jsx(N,{type:"number",placeholder:"Ex: 24500",value:d.price,onChange:a=>w({...d,price:a.target.value}),className:"rounded-none h-11 border-gray-200",required:!0})]}),e.jsxs("div",{children:[e.jsx(x,{className:"text-xs font-bold uppercase tracking-wider text-gray-700",children:"Quantidade em Stock"}),e.jsx(N,{type:"number",placeholder:"Ex: 50",value:d.stock,onChange:a=>w({...d,stock:a.target.value}),className:"rounded-none h-11 border-gray-200",required:!0})]}),e.jsxs("div",{children:[e.jsx(x,{className:"text-xs font-bold uppercase tracking-wider text-gray-700",children:"Categoria da Loja"}),e.jsxs(te,{value:d.category,onValueChange:a=>w({...d,category:a}),children:[e.jsx(re,{className:"rounded-none h-11 border-gray-200",children:e.jsx(ne,{})}),e.jsxs(oe,{className:"rounded-none",children:[e.jsx(h,{value:"camisolas",children:"Camisolas Oficiais"}),e.jsx(h,{value:"equipamento",children:"Equipamentos Completos"}),e.jsx(h,{value:"acessorios",children:"Acessórios (Cachecóis, etc.)"}),e.jsx(h,{value:"outros",children:"Outros Artigos"})]})]})]}),e.jsxs("div",{children:[e.jsx(x,{className:"text-xs font-bold uppercase tracking-wider text-gray-700",children:"Tamanhos DisponÃveis (Separados por vÃrgula)"}),e.jsx(N,{placeholder:"S, M, L, XL",value:d.sizes,onChange:a=>w({...d,sizes:a.target.value}),className:"rounded-none h-11 border-gray-200"})]}),e.jsxs("div",{className:"md:col-span-2",children:[e.jsx(x,{className:"text-xs font-bold uppercase tracking-wider text-gray-700",children:"URL da Imagem do Produto"}),e.jsx(N,{placeholder:"Ex: /fotos/Caf%20/B25LSRW0200.jpg",value:d.image_url,onChange:a=>w({...d,image_url:a.target.value}),className:"rounded-none h-11 border-gray-200"})]}),e.jsxs("div",{className:"md:col-span-2",children:[e.jsx(x,{className:"text-xs font-bold uppercase tracking-wider text-gray-700",children:"Descrição do Produto"}),e.jsx(Ve,{placeholder:"Descreva detalhes como material, design e lavagem...",value:d.description,onChange:a=>w({...d,description:a.target.value}),rows:3,className:"rounded-none border-gray-200 resize-none"})]}),e.jsx(j,{type:"submit",disabled:Z.isPending,className:"md:col-span-2 bg-blue-600 hover:bg-blue-700 text-white font-bold font-mono text-xs uppercase tracking-wider py-6 rounded-none shadow-sm",children:Z.isPending?"Gravando Produto na BD...":"Publicar Artigo na Loja"})]})}),e.jsx(Q,{value:"sync-cms",className:"space-y-6 pt-2",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"p-5 border border-zinc-200 bg-zinc-50 rounded-none space-y-4",children:[e.jsxs("h4",{className:"text-sm font-bold text-gray-900 flex items-center gap-2 uppercase tracking-wide",children:[e.jsx(L,{className:"w-4 h-4 text-emerald-600"})," Sincronizador de Pastas Staging"]}),e.jsxs("p",{className:"text-xs text-gray-600 leading-relaxed",children:["Reconcilia fotos de perfil de jogadores e staff a partir das pastas locais analisando o ficheiro ",e.jsx("code",{className:"bg-gray-200 px-1 font-mono text-[10px]",children:"metadata.json"}),"."]}),e.jsx(M,{to:O("AdminCMS"),children:e.jsx(j,{className:"w-full bg-emerald-600 hover:bg-emerald-700 text-white font-bold font-mono text-xs uppercase tracking-widest py-5 rounded-none mt-2",children:"Entrar no Gestor CMS"})})]}),e.jsxs("div",{className:"p-5 border border-zinc-200 bg-zinc-50 rounded-none space-y-4",children:[e.jsxs("h4",{className:"text-sm font-bold text-gray-900 flex items-center gap-2 uppercase tracking-wide",children:[e.jsx(V,{className:"w-4 h-4 text-red-600"})," Mocks Rápidos de Angola"]}),e.jsx("p",{className:"text-xs text-gray-600 leading-relaxed",children:"Gere produtos de teste angolanos e vendas simuladas de Luanda e HuÃla para preencher relatórios, gráficos e estatÃsticas."}
1),e.jsx(M,{to:O("AdminFacil"),children:e.jsx(j,{className:"w-full bg-red-600 hover:bg-red-700 text-white font-bold font-mono text-xs uppercase tracking-widest py-5 rounded-none mt-2",children:"Criar Dados Mock (Admin Fácil)"})})]})]})}),e.jsx(Q,{value:"ai-automations",className:"space-y-4 pt-2",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[e.jsxs("div",{className:"p-4 border border-zinc-200 space-y-3",children:[e.jsx("p",{className:"text-xs font-bold text-gray-900 uppercase",children:"1. Resultados de Jogos"}),e.jsx("p",{className:"text-[10px] text-gray-500 leading-snug",children:"Pesquisa automatizada na FIFA e CAF para atualizar resultados já concluÃdos."}),e.jsx(j,{onClick:pe,disabled:s,className:"w-full bg-blue-600 hover:bg-blue-700 text-white font-bold text-[10px] rounded-none py-4",children:s?"Atualizando...":"Atualizar Resultados"})]}),e.jsxs("div",{className:"p-4 border border-zinc-200 space-y-3",children:[e.jsx("p",{className:"text-xs font-bold text-gray-900 uppercase",children:"2. Plantel Transfermarkt"}),e.jsx("p",{className:"text-[10px] text-gray-500 leading-snug",children:"Busca e importa jogadores profissionais ativos angolanos das principais fontes."}),e.jsx(j,{onClick:xe,disabled:s,className:"w-full bg-purple-600 hover:bg-purple-700 text-white font-bold text-[10px] rounded-none py-4",children:s?"Importando...":"Importar Jogadores"})]}),e.jsxs("div",{className:"p-4 border border-zinc-200 space-y-3",children:[e.jsx("p",{className:"text-xs font-bold text-gray-900 uppercase",children:"3. Histórico FAF"}),e.jsx("p",{className:"text-[10px] text-gray-500 leading-snug",children:"Importa registos de jogos da Seleção Nacional de Angola nos últimos 5 anos."}),e.jsx(j,{onClick:he,disabled:s,className:"w-full bg-green-600 hover:bg-green-700 text-white font-bold text-[10px] rounded-none py-4",children:s?"Importando...":"Importar Histórico"})]})]})})]})})]}),e.jsxs(A,{children:[e.jsx(E,{children:e.jsxs(T,{className:"flex items-center gap-3",children:[e.jsx(L,{className:"w-6 h-6 text-purple-500"}),"Importar Dados do Site Original FAF"]})}),e.jsxs(_,{children:[e.jsx("p",{className:"text-gray-600 mb-4",children:"ð Importa todos os dados (notÃcias, jogos, jogadores, equipas) do site oficial FAF (faf.base44.app)"}),e.jsx(j,{onClick:async()=>{t(!0);try{const a=await l.functions.invoke("importFAFData",{});p.success(a.data.message+` - ${a.data.summary.total_imported} registos importados`)}catch(a){p.error("Erro ao importar: "+a.message)}finally{t(!1)}},disabled:s,className:"bg-gradient-to-r from-purple-600 to-indigo-600 hover:from-purple-700 hover:to-indigo-700",children:s?e.jsxs(e.Fragment,{children:[e.jsx(z,{className:"w-4 h-4 mr-2 animate-spin"}),"A importar..."]}):e.jsxs(e.Fragment,{children:[e.jsx(L,{className:"w-4 h-4 mr-2"}),"Importar do Site FAF"]})})]})]}),e.jsxs(A,{children:[e.jsx(E,{children:e.jsxs(T,{className:"flex items-center gap-3",children:[e.jsx(z,{className:"w-6 h-6 text-blue-500"}),"Atualização Automática com IA"]})}),e.jsxs(_,{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-gray-600 mb-3 font-medium",children:"ð Atualizar Resultados de Jogos Recentes"}),e.jsx("p",{className:"text-sm text-gray-500 mb-3",children:"Atualiza automaticamente os resultados dos jogos já realizados usando IA para pesquisar em fontes oficiais (FAF, CAF, FIFA)."}),e.jsx(j,{onClick:pe,disabled:s,className:"bg-gradient-to-r from-blue-600 to-cyan-600 hover:from-blue-700 hover:to-cyan-700",children:s?e.jsxs(e.Fragment,{children:[e.jsx(z,{className:"w-4 h-4 mr-2 animate-spin"}),"A atualizar..."]}):e.jsxs(e.Fragment,{children:[e.jsx(z,{className:"w-4 h-4 mr-2"}),"Atualizar Resultados"]})})]}),e.jsxs("div",{className:"border-t pt-4",children:[e.jsx("p",{className:"text-gray-600 mb-3 font-medium",children:"ð Importar Jogadores do Transfermarkt"}),e.jsx("p",{className:"text-sm text-gray-500 mb-3",children:"Busca todos os jogadores angolanos profissionais do Transfermarkt, Sofascore e outras fontes. Inclui jogadores ativos e recentemente aposentados."}),e.jsx(j,{onClick:xe,disabled:s,className:"bg-gradient-to-r from-purple-600 to-pink-600 hover:from-purple-700 hover:to-pink-700",children:s?e.jsxs(e.Fragment,{children:[e.jsx(z,{className:"w-4 h-4 mr-2 animate-spin"}),"A importar..."]}):e.jsxs(e.Fragment,{children:[e.jsx(P,{className:"w-4 h-4 mr-2"}),"Importar Jogadores"]})})]}),e.jsxs("div",{className:"border-t pt-4",children:[e.jsx("p",{className:"text-gray-600 mb-3 font-medium",children:"ð
Importar Histórico de Jogos (Ãltimos 5 Anos)"}),e.jsx("p",{className:"text-sm text-gray-500 mb-3",children:"Importa todos os jogos da Seleção Nacional dos últimos 5 anos de fontes oficiais (FAF, CAF, FIFA, Sofascore)."}),e.jsx(j,{onClick:he,disabled:s,className:"bg-gradient-to-r from-green-600 to-emerald-600 hover:from-green-700 hover:to-emerald-700",children:s?e.jsxs(e.Fragment,{children:[e.jsx(z,{className:"w-4 h-4 mr-2 animate-spin"}),"A importar..."]}):e.jsxs(e.Fragment,{children:[e.jsx(ca,{className:"w-4 h-4 mr-2"}),"Importar Histórico"]})})]})]})]})]}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Gestão Rápida"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:$e.map((a,u)=>{const J=a.icon;return e.jsx(R.div,{initial:{opacity:0,y:20}
1,animate:{opacity:1,y:0},transition:{delay:u*.1},children:e.jsx(M,{to:O(a.link),children:e.jsx(A,{className:"hover:shadow-xl transition-all cursor-pointer group",children:e.jsxs("div",{className:`bg-gradient-to-br ${a.color} p-6 text-white relative overflow-hidden`,children:[e.jsx(J,{className:"w-12 h-12 mb-3 group-hover:scale-110 transition-transform"}),e.jsx("div",{className:"absolute top-0 right-0 w-32 h-32 bg-white/10 rounded-full -mr-16 -mt-16"}),e.jsx("h3",{className:"text-xl font-bold mb-1",children:a.title}),e.jsx("p",{className:"text-3xl font-bold",children:a.count}),a.badge&&e.jsx("p",{className:"text-sm text-white/80 mt-2",children:a.badge})]})})})},a.title)})})]})})]})}export{Va 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.