1import{r as d,j as e}from"./vendor-react-CnnbmH0_.js";import{a as k}from"./index-BR42CI16.js";import{a7 as D,i as f,ag as S,v as A,af as B,f as y}from"./vendor-ui-Cy8RpR6q.js";import"./vendor-observability-DI0Oez8v.js";import"./index-B2OQ8b6_.js";import"./vendor-routing-C5D9NAgx.js";import"./vendor-motion-Dgz3DBbi.js";import"./vendor-auth-DNBNrwrO.js";import"./users-B3j0SjAz.js";import"./tally-DyOGFY4V.js";const j=[["Name","name"],["Description","description"],["Model","model_name"],["Platform","platform"],["Agent Type","agent_type"],["Risk Level","risk_level"],["System Prompt","system_prompt"]];function C({label:c,before:s,after:i}){const r=String(s??"â"),n=String(i??"â");if(r===n)return null;const o=r.length>80||n.length>80;return e.jsxs("div",{className:`text-xs ${o?"col-span-2":""}`,"data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:23:4","data-matrix-name":"div","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"23","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22%5BTemplateLiteral%5D%22%7D",children:[e.jsx("p",{className:"text-text-subtle mb-1 font-medium","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:24:6","data-matrix-name":"p","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"24","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"p","data-component-content":"%7B%22className%22%3A%22text-text-subtle%20mb-1%20font-medium%22%7D",children:c}),o?e.jsxs("div",{className:"space-y-1","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:26:8","data-matrix-name":"div","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"26","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22space-y-1%22%7D",children:[e.jsx("div",{className:"bg-danger-fill/10 border border-danger-fill/20 rounded-lg px-3 py-2 text-danger-bright font-mono whitespace-pre-wrap break-all line-clamp-4","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:27:10","data-matrix-name":"div","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"27","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22bg-danger-fill%2F10%20border%20border-danger-fill%2F20%20rounded-lg%20px-3%20py-2%20text-danger-bright%20font-mono%20whitespace-pre-wrap%20break-all%20line-clamp-4%22%7D",children:r}),e.jsx("div",{className:"bg-success-fill/10 border border-success-fill/20 rounded-lg px-3 py-2 text-success-bright font-mono whitespace-pre-wrap break-all line-clamp-4","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:30:10","data-matrix-name":"div","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"30","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22bg-success-fill%2F10%20border%20border-success-fill%2F20%20rounded-lg%20px-3%20py-2%20text-success-bright%20font-mono%20whitespace-pre-wrap%20break-all%20line-clamp-4%22%7D",children:n})]}):e.jsxs("div",{className:"flex gap-2 items-center flex-wrap","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:35:8","data-matrix-name":"div","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"35","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22flex%20gap-2%20items-center%20flex-wrap%22%7D",children:[e.jsx("span",{className:"px-2 py-0.5 rounded bg-danger-fill/10 border border-danger-fill/20 text-danger-bright font-mono line-through","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:36:10","data-matrix-name":"span","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"36","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"span","data-component-content":"%7B%22className%22%3A%22px-2%20py-0.5%20rounded%20bg-danger-fill%2F10%20border%20border-danger-fill%2F20%20text-danger-bright%20font-mono%20line-through%22%7D",children:r}),e.jsx("span",{className:"text-text-subtle","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:37:10","data-matrix-name":"span","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"37","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"span","data-component-content":"%7B%22className%22%3A%22text-text-subtle%22%7D",children:"â"}),e.jsx("span",{className:"px-2 py-0.5 rounded bg-success-fill/10 border border-success-fill/20 text-success-bright font-mono","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:38:10","data-matrix-name":"span","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"38","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"span","data-component-content":"%7B%22className%22%3A%22px-2%20py-0.5%20rounded%20bg-success-fill%2F10%20border%20border-success-fill%2F20%20text-success-bright%20font-mono%22%7D",children:n})]})]})}function F({version:c,currentAgent:s}){const i=c.snapshot,r={name:s.name,description:s.description,model_name:s.model_name,platform:s.platform,agent_type:s.agent_type,risk_level:s.risk_level,system_prompt:s.system_prompt??""},n=j.filter(([,o])=>String(i[o]??"â")!==String(r[o]??"â"));return n.length===0?e.jsx("p",{className:"text-xs text-text-subtle italic","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:60:11","data-matrix-name":"p","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"60","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"p","data-component-content":"%7B%22className%22%3A%22text-xs%20text-text-subtle%20italic%22%7D",children:"No differences from current configuration."}):e.jsx("div",{className:"grid grid-cols-1 gap-3 mt-3","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:64:4","data-matrix-name":"div","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"64","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22grid%20grid-cols-1%20gap-3%20mt-3%22%7D",children:n.map(([o,p])=>e.jsx(C,{label:o,before:i[p],after:r[p],"data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:66:8","data-matrix-name":"DiffRow","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"66","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"DiffRow","data-component-content":"%7B%22label%22%3A%22%5BIdentifier%5D%22%2C%22before%22%3A%22%5BMemberExpression%5D%22%2C%22after%22%3A%22%5BMemberExpression%5D%22%7D"},p))})}function $({agent:c,onRollbackSuccess:s}){const[i,r]=d.useState([]),[n,o]=d.useState(!0),[p,l]=d.useState(null),[V,W]=d.useState(null),[h,b]=d.useState(null),[u,x]=d.useState(null),m=d.useCallback(async()=>{o(!0),l(null);try{const t=await k.agents.getVersions(c.id);if(!t.success||!t.data)throw new Error(t.error||"Failed to load versions");r(t.data)}catch(t){l(t instanceof Error?t.message:"Failed to load versions")}finally{o(!1)}},[c.id]);d.useEffect(()=>{m()},[m]);const N=async t=>
1{b(t.id),x(null);try{const a=await k.agents.rollbackToVersion(c.id,t.id);if(!a.success||!a.data)throw new Error(a.error||"Rollback failed");s(a.data),await m()}catch(a){l(a instanceof Error?a.message:"Rollback failed")}finally{b(null)}},v=t=>new Date(t).toLocaleString(void 0,{dateStyle:"medium",timeStyle:"short"});return e.jsxs("div",{className:"space-y-4","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:123:4","data-matrix-name":"div","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"123","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22space-y-4%22%7D",children:[e.jsxs("div",{className:"flex items-center justify-between","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:124:6","data-matrix-name":"div","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"124","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22flex%20items-center%20justify-between%22%7D",children:[e.jsxs("h4",{className:"text-sm font-bold text-white flex items-center gap-2","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:125:8","data-matrix-name":"h4","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"125","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"h4","data-component-content":"%7B%22className%22%3A%22text-sm%20font-bold%20text-white%20flex%20items-center%20gap-2%22%7D",children:[e.jsx(D,{className:"w-4 h-4 text-accent-bright","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:126:10","data-matrix-name":"History","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"126","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"History","data-component-content":"%7B%22className%22%3A%22w-4%20h-4%20text-accent-bright%22%7D"})," Version History"]}),e.jsxs("button",{onClick:()=>void m(),disabled:n,className:"text-xs text-text-muted hover:text-white flex items-center gap-1 transition-colors","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:128:8","data-matrix-name":"button","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"128","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"button","data-component-content":"%7B%22onClick%22%3A%22%5BArrowFunctionExpression%5D%22%2C%22disabled%22%3A%22%5BIdentifier%5D%22%2C%22className%22%3A%22text-xs%20text-text-muted%20hover%3Atext-white%20flex%20items-center%20gap-1%20transition-colors%22%7D",children:[n?e.jsx(f,{className:"w-3 h-3 animate-spin","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:133:21","data-matrix-name":"Loader2","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"133","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"Loader2","data-component-content":"%7B%22className%22%3A%22w-3%20h-3%20animate-spin%22%7D"}):e.jsx(S,{className:"w-3 h-3","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:133:68","data-matrix-name":"RotateCcw","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"133","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"RotateCcw","data-component-content":"%7B%22className%22%3A%22w-3%20h-3%22%7D"}),"Refresh"]})]}),p&&e.jsxs("div",{className:"flex items-center gap-2 text-xs text-danger bg-danger-fill/10 border border-danger-fill/20 rounded-xl px-3 py-2","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:139:8","data-matrix-name":"div","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"139","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22flex%20items-center%20gap-2%20text-xs%20text-danger%20bg-danger-fill%2F10%20border%20border-danger-fill%2F20%20rou
1nded-xl%20px-3%20py-2%22%7D",children:[e.jsx(A,{className:"w-3.5 h-3.5 shrink-0","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:140:10","data-matrix-name":"AlertTriangle","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"140","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"AlertTriangle","data-component-content":"%7B%22className%22%3A%22w-3.5%20h-3.5%20shrink-0%22%7D"})," ",p]}),n&&i.length===0?e.jsxs("div",{className:"flex items-center gap-2 text-xs text-text-subtle py-6 justify-center","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:145:8","data-matrix-name":"div","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"145","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22flex%20items-center%20gap-2%20text-xs%20text-text-subtle%20py-6%20justify-center%22%7D",children:[e.jsx(f,{className:"w-4 h-4 animate-spin","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:146:10","data-matrix-name":"Loader2","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"146","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"Loader2","data-component-content":"%7B%22className%22%3A%22w-4%20h-4%20animate-spin%22%7D"})," Loading version historyâ¦"]}):i.length===0?e.jsx("div",{className:"text-xs text-text-subtle text-center py-8 bg-panel/40 rounded-xl border border-line/50","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:149:8","data-matrix-name":"div","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"149","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22text-xs%20text-text-subtle%20text-center%20py-8%20bg-panel%2F40%20rounded-xl%20border%20border-line%2F50%22%7D",children:"No versions saved yet. Versions are created automatically each time you save settings."}):e.jsx("div",{className:"space-y-2","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:153:8","data-matrix-name":"div","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"153","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22space-y-2%22%7D",children:i.map(t=>{const a=V===t.id,g=h===t.id,w=u===t.id;return e.jsxs("div",{className:"bg-panel/50 border border-line/60 rounded-xl overflow-hidden","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:159:14","data-matrix-name":"div","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"159","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22bg-panel%2F50%20border%20border-line%2F60%20rounded-xl%20overflow-hidden%22%7D",children:[e.jsxs("div",{className:"flex items-center gap-3 px-4 py-3","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:164:16","data-matrix-name":"div","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"164","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22flex%20items-center%20gap-3%20px-4%20py-3%22%7D",children:[e.jsx("div",{className:"shrink-0 w-7 h-7 rounded-full bg-accent/15 border border-accent/30 flex items-center justify-center","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:165:18","data-matrix-name":"div","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"165","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22shrink-0%20w-7%20h-7%20rou
1nded-full%20bg-accent%2F15%20border%20border-accent%2F30%20flex%20items-center%20justify-center%22%7D",children:e.jsxs("span",{className:"text-[10px] font-bold text-accent-faint","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:166:20","data-matrix-name":"span","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"166","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"span","data-component-content":"%7B%22className%22%3A%22text-%5B10px%5D%20font-bold%20text-accent-faint%22%7D",children:["v",t.version_number]})}),e.jsxs("div",{className:"flex-1 min-w-0","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:168:18","data-matrix-name":"div","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"168","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22flex-1%20min-w-0%22%7D",children:[e.jsx("p",{className:"text-sm text-white font-medium truncate","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:169:20","data-matrix-name":"p","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"169","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"p","data-component-content":"%7B%22className%22%3A%22text-sm%20text-white%20font-medium%20truncate%22%7D",children:t.change_summary||"Config update"}),e.jsxs("p",{className:"text-xs text-text-subtle","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:172:20","data-matrix-name":"p","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"172","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"p","data-component-content":"%7B%22className%22%3A%22text-xs%20text-text-subtle%22%7D",children:[v(t.created_at),t.changed_by_email?` · ${t.changed_by_email}`:""]})]}),e.jsxs("div",{className:"flex items-center gap-2 shrink-0","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:177:18","data-matrix-name":"div","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"177","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22flex%20items-center%20gap-2%20shrink-0%22%7D",children:[w?e.jsxs("div",{className:"flex items-center gap-1.5","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:180:22","data-matrix-name":"div","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"180","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22flex%20items-center%20gap-1.5%22%7D",children:[e.jsx("span",{className:"text-xs text-warning","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:181:24","data-matrix-name":"span","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"181","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"span","data-component-content":"%7B%22className%22%3A%22text-xs%20text-warning%22%7D",children:"Restore this version?"}),e.jsx("button",{onClick:()=>void N(t),disabled:g,className:"px-2.5 py-1 text-xs bg-warning-fill/20 border border-warning-fill/40 text-warning-bright rounded-lg hover:bg-warning-fill/30 transition-colors","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:182:24","data-matrix-name":"button","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"182","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"button","data-component-content":"%7B%22onClick%22%3A%22%5BArrowFunctionExpression%5D%22%2C%22disabled%22%3A%22%5BIdentifier%5D%22%2C%22className%22%3A%22px-2.5%20py-1%20text-xs%20bg-warning-fill%2F20%20border%20border-warning-fill%2F40%20text-warning-bright%20rounded-lg%20hover%3Abg-warning-fill%2F30%20transition-colors%22%7D",children:g?e.jsx(f,{className:"w-3 h-3 animate-spin inline","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:187:39","data-matrix-name":"Loader2","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"187","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"Loader2","data-component-content":"%7B%22className%22%3A%22w-3%20h-3%20animate-spin%20inline%22%7D"}):"Yes, restore"}),e.jsx("button",{onClick:()=>x(null),className:"px-2 py-1 text-xs text-text-muted hover:text-white transition-colors","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:189:24","data-matrix-name":"button","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"189","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"button","data-component-content":"%7B%22onClick%22%3A%22%5BArrowFunctionExpression%5D%22%2C%22className%22%3A%22px-2%20py-1%20text-xs%20text-text-muted%20hover%3Atext-white%20transition-colors%22%7D",children:"Cancel"})]}):e.jsxs("button",{onClick:()=>x(t.id),disabled:!!h,className:"flex items-center gap-1 px-2.5 py-1 text-xs bg-line/80 border border-slate-600 text-text-soft rounded-lg hover:bg-slate-600 hover:text-white transition-colors disabled:opacity-40",title:"Restore this version","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:197:22","data-matrix-name":"button","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"197","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"button","data-component-content":"%7B%22onClick%22%3A%22%5BArrowFunctionExpression%5D%22%2C%22disabled%22%3A%22%5BUnaryExpression%5D%22%2C%22className%22%3A%22flex%20items-center%20gap-1%20px-2.5%20py-1%20text-xs%20bg-line%2F80%20border%20border-slate-600%20text-text-soft%20rounded-lg%20hover%3Abg-slate-600%20hover%3Atext-white%20transition-colors%20disabled%3Aopacity-40%22%2C%22title%22%3A%22Restore%20this%20version%22%7D",children:[e.jsx(S,{className:"w-3 h-3","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:203:24","data-matrix-name":"RotateCcw","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"203","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"RotateCcw","data-component-content":"%7B%22className%22%3A%22w-3%20h-3%22%7D"})," Restore"]}),e.jsx("button",{onClick:()=>W(a?null:t.id),className:"p-1 text-text-muted hover:text-white transition-colors",title:a?"Hide diff":"Show diff vs current","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:207:20","data-matrix-name":"button","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"207","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"button","data-component-content":"%7B%22onClick%22%3A%22%5BArrowFunctionExpression%5D%22%2C%22className%22%3A%22p-1%20text-text-muted%20hover%3Atext-white%20transition-colors%22%2C%22title%22%3A%22%5BConditionalExpression%5D%22%7D",children:a?e.jsx(B,{className:"w-4 h-4","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:212:36","data-matrix-name":"ChevronUp","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"212","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"ChevronUp","data-component-content":"%7B%22className%22%3A%22w-4%20h-4%22%7D"}):e.jsx(y,{className:"w-4 h-4","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:212:72","data-matrix-name":"ChevronDown","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"212","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"ChevronDown","data-component-content":"%7B%22className%22%3A%22w-4%20h-4%22%7D"})})]})]}),a&&e.jsxs("div",{className:"border-t border-line/50 px-4 py-3 bg-surface/30","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:219:18","data-matrix-name":"div","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"219","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22border-t%20border-line%2F50%20px-4%20py-3%20bg-surface%2F30%22%7D",children:[e.jsx("p",{className:"text-[11px] text-text-subtle mb-2 uppercase tracking-wider font-semibold","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:220:20","data-matrix-name":"p","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"220","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"p","data-component-content":"%7B%22className%22%3A%22text-%5B11px%5D%20text-text-subtle%20mb-2%20uppercase%20tracking-wider%20font-semibold%22%7D",children:"Differences from current config"}),e.jsx(F,{version:t,currentAgent:c,"data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:223:20","data-matrix-name":"VersionDiff","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"223","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"VersionDiff","data-component-content":"%7B%22version%22%3A%22%5BIdentifier%5D%22%2C%22currentAgent%22%3A%22%5BIdentifier%5D%22%7D"})]})]},t.id)})}),e.jsx("p",{className:"text-[11px] text-text-faint text-center","data-matrix-id":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx:232:6","data-matrix-name":"p","data-component-path":"src/pages/dashboard/fleet/WorkspaceVersionsSection.tsx","data-component-line":"232","data-component-file":"WorkspaceVersionsSection.tsx","data-component-name":"p","data-component-content":"%7B%22className%22%3A%22text-%5B11px%5D%20text-text-faint%20text-center%22%7D",children:"Up to 50 most recent versions shown · Restoring creates a new snapshot automatically"})]})}
1export{$ as WorkspaceVersionsSection};
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.