import{j as a}from"./vendor-query-B2UbickB.js";import{F as x,b as l,a as p}from"./FilterBar-Ck4K4rzu.js";import{P as m}from"./PriorityBadge-DfQY9St9.js";import{R as u}from"./RolePill-SasQKc_B.js";import{W as d}from"./WorkflowPill-Z-zHRKOK.js";import{T as h}from"./TimestampCell-DL6zMNEQ.js";import{C as y,i as j,a as v}from"./escalation-B7ysVToF.js";import{a9 as b,aa as k,ab as f,ac as r}from"./vendor-icons-Doy0g69_.js";import{L as N}from"./vendor-react-CXumBFUA.js";function g({row:e}){if(j(e)){const t=e.status==="resolved"?"text-status-success":"text-text-tertiary";return a.jsx(f,{className:`w-3 h-3 shrink-0 ${t}`})}return e.status==="resolved"?a.jsx(r,{className:"w-2.5 h-2.5 shrink-0 fill-status-success text-status-success"}):e.status==="cancelled"?a.jsx(r,{className:"w-2.5 h-2.5 shrink-0 fill-status-error text-status-error"}):v(e)?a.jsx(r,{className:"w-2.5 h-2.5 shrink-0 fill-status-warning text-status-warning"}):a.jsx(r,{className:"w-2.5 h-2.5 shrink-0 fill-status-active text-status-active"})}const A=[{key:"description",label:"Summary",render:e=>a.jsxs("div",{className:"flex items-start gap-2 overflow-hidden",children:[a.jsx("span",{className:"mt-1 shrink-0",children:a.jsx(g,{row:e})}),a.jsxs("div",{className:"min-w-0 overflow-hidden",children:[a.jsx("p",{className:"text-xs text-text-primary truncate",children:e.description||e.type}),a.jsxs("div",{className:"flex items-center gap-2 mt-0.5",children:[a.jsx(d,{type:e.type}),e.subtype&&e.subtype!==e.type&&a.jsx("span",{className:"text-[10px] text-text-tertiary whitespace-nowrap",children:e.subtype})]})]})]}),className:"max-w-0"},{key:"task_id",label:"Task",render:e=>e.task_id?a.jsxs(N,{to:`/workflows/tasks/detail/${e.task_id}`,onClick:t=>t.stopPropagation(),className:"group/task inline-flex items-center gap-1 text-xs font-mono text-text-secondary hover:text-accent transition-colors",children:[e.task_id.slice(0,12),"…",a.jsx(b,{size:10,className:"opacity-0 group-hover/task:opacity-100 transition-opacity"})]}):a.jsx("span",{className:"text-xs text-text-tertiary",children:"—"}),className:"w-36 whitespace-nowrap"},{key:"role",label:"Role",render:e=>a.jsx(u,{role:e.role}),className:"w-28"},{key:"priority",label:"Priority",render:e=>a.jsx(m,{priority:e.priority}),className:"w-20",sortable:!0},{key:"created_at",label:"Created",render:e=>a.jsx(h,{date:e.created_at}),className:"w-40",sortable:!0}],B={key:"expires",label:a.jsx(k,{className:"w-3.5 h-3.5 text-text-tertiary"}),render:e=>e.assigned_until?a.jsx(y,{until:e.assigned_until}):a.jsx("span",{className:"text-xs text-text-tertiary",children:"—"}),className:"w-16 whitespace-nowrap"},C=[{value:"1",label:"P1"},{value:"2",label:"P2"},{value:"3",label:"P3"},{value:"4",label:"P4"}],w=[{value:"available",label:"Available"},{value:"claimed",label:"Claimed"},{value:"resolved",label:"Resolved"}];function M({filters:e,setFilter:t,roles:i,types:n,showStatus:o=!1,actions:c}){return a.jsxs(x,{actions:c,children:[o&&a.jsx(l,{label:"Status",value:e.status??"",onChange:s=>t("status",s),options:w}),a.jsx(l,{label:"Role",value:e.role,onChange:s=>t("role",s),options:i.map(s=>({value:s,label:s}))}),a.jsx(l,{label:"Type",value:e.type,onChange:s=>t("type",s),options:n.map(s=>({value:s,label:s}))}),a.jsx(l,{label:"Priority",value:e.priority,onChange:s=>t("priority",s),options:C}),a.jsx(p,{label:"Search",value:e.search??"",onChange:s=>t("search",s),placeholder:"ID, workflow, origin…"})]})}export{A as E,B as T,M as a};
//# sourceMappingURL=escalation-columns-CHQEJU1j.js.map
