1import{j as e}from"./vendor-wHC2ntYA.js";import{d as f,e as g}from"./DraggablePlayerItem-zIdxnZ5S.js";import{c as l}from"./app-CJjB2_mY.js";import{g as b}from"./teamColors-BHdOQr_K.js";import"./PositionBadge-ZwrkW000.js";import"./createLucideIcon-Dy18DS_c.js";/* empty css */import"./inertia-BxUlTYdw.js";function $({teamId:x,teamName:i,color:d,players:t,average:n,isEditing:a,showPositions:c=!1,positionSummary:o}){const{isOver:p,setNodeRef:m}=f({id:x}),s=b(d);return e.jsxs("div",{ref:m,role:"region","aria-label":`${i}, average rating ${n.toFixed(1)}${a?", drop zone for players":""}`,className:l("rounded-card overflow-hidden border shadow-sm transition-all duration-200",s.border,s.bg,p&&a&&s.dropHighlight,"focus-within:ring-2 focus-within:ring-blue-500 focus-within:ring-offset-2"),children:[e.jsxs("div",{className:l("px-4 py-3 flex items-center justify-between",s.header),children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-lg","aria-hidden":"true",children:s.icon}),e.jsx("h3",{className:l("font-bold text-lg",s.headerText),children:i})]}),e.jsxs("span",{className:l("px-3 py-1 rounded-full text-sm font-semibold",s.badge),"aria-label":`Team average: ${n.toFixed(1)}`,children:["Avg: ",n.toFixed(1)]})]}),e.jsx("div",{className:"p-4",children:t.length===0?e.jsx("p",{className:"text-sm text-zinc-500 text-center py-4",children:a?"Drop players here":"No players assigned"}):e.jsx("ul",{className:"space-y-2",role:"list","aria-label":`${i} players`,children:t.map(r=>e.jsx(g,{player:r,teamColor:d,disabled:!a,showPosition:c},r.playerId))})}),e.jsxs("div",{className:"px-4 py-2 bg-white/50 border-t border-zinc-100 text-center",children:[e.jsxs("span",{className:"text-sm text-zinc-600",children:[t.length," ",t.length===1?"player":"players"]}),c&&o&&Object.keys(o).length>0&&e.jsx("div",{className:"flex flex-wrap gap-2 justify-center mt-2",children:Object.entries(o).map(([r,h])=>e.jsxs("span",{className:"text-xs text-zinc-500",children:[h," ",r]},r))})]})]})}export{$ 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.