PageSourceSearch

https://www.tracecat.com/_next/static/immutable/chunks/3cqda0y2qy1kw.js

js tracecat.com collected 2026-09-25 14:56:22 UTC 145,980 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,26741,15801,55156,94083,e=>{"use strict";var t=e.i(42531),s=e.i(82616),r=e.i(98631);let n=(0,r.default)("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),a=(0,r.default)("panel-right",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]]),i=(0,r.default)("clock-plus",[["path",{d:"M12 6v6l3.644 1.822",key:"1jmett"}],["path",{d:"M16 19h6",key:"xwg31i"}],["path",{d:"M19 16v6",key:"tddt3s"}],["path",{d:"M21.92 13.267a10 10 0 1 0-8.653 8.653",key:"1u0osk"}]]),l=(0,r.default)("pen-line",[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);var o=e.i(47163);let d=(0,r.default)("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]),c=(0,r.default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),u=(0,r.default)("text-align-start",[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]]),x=(0,r.default)("braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]),m=(0,r.default)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["Circle",0,m],15801);var p=e.i(85557);let h=(0,r.default)("circle-dashed",[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]);var g=e.i(41182);let f=(0,r.default)("circle-slash",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]]),v=(0,r.default)("circle-user-round",[["path",{d:"M18 20a6 6 0 0 0-12 0",key:"1qehca"}],["circle",{cx:"12",cy:"10",r:"4",key:"1h16sb"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),y=(0,r.default)("file-spreadsheet",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]]);var b=e.i(49202);let j=(0,r.default)("flag-triangle-right",[["path",{d:"M6 22V2.8a.8.8 0 0 1 1.17-.71l11.38 5.69a.8.8 0 0 1 0 1.44L6 15.5",key:"kfjsu0"}]]),k=(0,r.default)("hourglass",[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]),N=(0,r.default)("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),w=(0,r.default)("list-checks",[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]]),S=(0,r.default)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);e.s(["MessageSquare",0,S],55156);let E=(0,r.default)("mouse-pointer-click",[["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.
1074z",key:"s0h3yz"}]]),C=(0,r.default)("paperclip",[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]]);var M=e.i(14346),z=e.i(43293);let T=(0,r.default)("signal",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]]),R=(0,r.default)("signal-high",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}]]),A=(0,r.default)("signal-medium",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}]]),O=(0,r.default)("tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]),P=(0,r.default)("traffic-cone",[["path",{d:"M16.05 10.966a5 2.5 0 0 1-8.1 0",key:"m5jpwb"}],["path",{d:"m16.923 14.049 4.48 2.04a1 1 0 0 1 .001 1.831l-8.574 3.9a2 2 0 0 1-1.66 0l-8.574-3.91a1 1 0 0 1 0-1.83l4.484-2.04",key:"rbg3g8"}],["path",{d:"M16.949 14.14a5 2.5 0 1 1-9.9 0L10.063 3.5a2 2 0 0 1 3.874 0z",key:"vap8c8"}],["path",{d:"M9.194 6.57a5 2.5 0 0 0 5.61 0",key:"15hn5c"}]]),I=(0,r.default)("ban",[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),L=(0,r.default)("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]),D=(0,r.default)("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);e.s(["KeyRound",0,D],94083);let W=(0,r.default)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]),F=(0,r.default)("radar",[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]]),_=(0,r.default)("search-check",[["path",{d:"m8 11 2 2 4-4",key:"1sed1v"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);var H=e.i(12452);let B=(0,r.default)("shield-alert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]),V=(0,r.default)("unplug",[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]]);var q=e.i(94179);let U={new:{label:"New",icon:j,color:"text-yellow-600"},in_progress:{label:"In progress",icon:P,color:"text-blue-600"},resolved:{label:"Resolved",icon:p.CircleCheck,color:"text-green-600"}},G={low:{label:"Low",icon:A,color:"text-muted-foreground"},medium:{label:"Medium",icon:R,color:"text-orange-600"},high:{label:"High",icon:T,color:"text-red-600"},critical:{label:"Critical",icon:c,color:"text-red-600"}},$={todo:{icon:m,color:"text-muted-foreground"},in_progress:{icon:g.CircleDot,color:"text-primary"},completed:{icon:p.CircleCheck,color:"text-green-600"},blocked:{icon:h,color:"text-red-600"}},J={image:N,text:b.FileText,csv:y},Y={status:P,comment:S,tag:O,attachment:C},Z={advisory:B,detection:F,isolated:V,tokens:D,package:W,resolved:p.CircleCheck,review:L,found:_,revoked:I,posted:H.Send};function K({name:e,className:s}){return(0,t.jsx)("span",{className:(0,o.cn)("flex size-5 shrink-0 items-center justify-center rounded-full bg-muted text-[10px] text-muted-foreground",s),"aria-hidden":"true",children:e.charAt(0).toUpperCase()})}function X({className:e,children:s}){return(0,t.jsx)("div",{className:(0,o.cn)("overflow-hidden rounded-lg border border-border/60 bg-muted/20",e),children:s})}function Q({name:e,value:s,ended:r}){return(0,t.jsxs)(q.Badge,{variant:"outline",className:"h-6 gap-1 whitespace-nowrap border-border/60 bg-muted/20 px-1.5 py-0 text-[11px] text-foreground",children:[(0,t.jsx)("span",{className:"inline-flex text-muted-foreground",children:(0,t.jsx)(r?j:k,{"aria-hidden":"true",className:"size-3"})}),(0,t.jsx)("span",{children:e}),(0,t.jsx)("span",{className:"shrink-0 font-mono tabular-nums text-muted-foreground",children:s})]})}let ee=2*Math.PI*6;function et({done:e,total:s,className:r}){let n=s>0?Math.min(Math.max(e/s,0),1):0;return(0,t.jsxs)("svg",{viewBox:"0 0 16 16",className:(0,o.cn)("size-3.5 shrink-0",r),"aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"8",cy:"8",r:6,fill:"none",strokeWidth:"2",className:"stroke-muted-foreground
1/30"}),n>0&&(0,t.jsx)("circle",{cx:"8",cy:"8",r:6,fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:ee,strokeDashoffset:ee*(1-n),transform:"rotate(-90 8 8)",className:"stroke-primary"})]})}let es=[{key:"description",label:"Description",icon:u},{key:"tasks",label:"Tasks",icon:w},{key:"attachments",label:"Attachments",icon:C},{key:"payload",label:"Payload",icon:x},{key:"activity",label:"Activity",icon:d}];function er({active:e,onChange:s,progress:r,compact:n=!1}){return(0,t.jsx)("div",{role:"tablist","aria-label":"Case sections",className:(0,o.cn)("flex items-center",n?"gap-0.5":"gap-1"),children:es.map(({key:a,label:i,icon:l})=>{let d=a===e,c="tasks"===a&&r.total>0,u=c&&!n;return(0,t.jsxs)("button",{type:"button",role:"tab","aria-selected":d,"aria-label":i,title:i,onClick:()=>s(a),className:(0,o.cn)("flex shrink-0 items-center justify-center rounded-md transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-ring",n?"h-6 min-w-6":"h-7 min-w-7",u&&"gap-1 px-1.5",d?"bg-accent text-foreground":"text-muted-foreground hover:bg-accent/60 hover:text-foreground"),children:[c?(0,t.jsx)(et,{done:r.done,total:r.total,className:n?"size-3":void 0}):(0,t.jsx)(l,{className:n?"size-3":"size-3.5"}),u&&(0,t.jsxs)("span",{className:"text-[11px] leading-none tabular-nums",children:[r.done,"/",r.total]})]},a)})})}let en="inline-flex h-6 items-center gap-1 rounded-md border border-border/70 bg-muted/30 px-2 text-xs text-foreground";function ea({case:e}){let s=U[e.status],r=s.icon,n=G[e.priority],a=n.icon,i=G[e.severity],l=i.icon;return(0,t.jsxs)("div",{className:"flex flex-wrap gap-1.5",children:[(0,t.jsxs)("span",{className:en,children:[(0,t.jsx)(r,{className:(0,o.cn)("size-3 shrink-0",s.color),"aria-hidden":"true"}),s.label]}),(0,t.jsxs)("span",{className:en,children:[(0,t.jsx)(a,{className:(0,o.cn)("size-3 shrink-0",n.color),"aria-hidden":"true"}),n.label]}),(0,t.jsxs)("span",{className:en,children:[(0,t.jsx)(l,{className:(0,o.cn)("size-3 shrink-0",i.color),"aria-hidden":"true"}),i.label]}),e.assignee?(0,t.jsxs)("span",{className:en,children:[(0,t.jsx)(K,{name:e.assignee,className:"size-3.5 text-[8px]"}),e.assignee]}):(0,t.jsxs)("span",{className:en,children:[(0,t.jsx)(f,{className:"size-3 shrink-0 text-muted-foreground","aria-hidden":"true"}),"Unassigned"]}),e.tags.map(e=>(0,t.jsxs)("span",{className:en,children:[(0,t.jsx)(O,{className:"size-3 shrink-0 text-muted-foreground","aria-hidden":"true"}),e]},e)),(0,t.jsxs)("span",{className:(0,o.cn)(en,"border-dashed text-muted-foreground"),children:[(0,t.jsx)(z.Plus,{className:"size-3 shrink-0","aria-hidden":"true"}),"Add"]})]})}function ei({task:e}){var s;let r=$[e.status],n=r.icon,a=e.priority?G[e.priority].icon:null;return(0,t.jsx)("div",{className:"rounded-md px-2 transition-colors hover:bg-muted/50",children:(0,t.jsxs)("div",{className:"flex h-9 items-center gap-2",children:[(0,t.jsx)("span",{className:"flex size-4 shrink-0 items-center justify-center",children:(0,t.jsx)(n,{className:(0,o.cn)("size-3.5",r.color)})}),(0,t.jsx)("div",{className:"flex min-w-0 flex-1 items-center gap-1",children:(0,t.jsx)("span",{className:"min-w-0 truncate text-[13px] font-medium leading-5 text-foreground",children:e.title})}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-1.5 pl-2",children:[a&&e.priority&&(0,t.jsx)(a,{className:(0,o.cn)("size-4","high"===(s=e.priority)||"critical"===s?"text-red-600":"medium"===s?"text-amber-600":"text-muted-foreground")}),e.assignee?(0,t.jsx)(K,{name:e.assignee,className:"size-5 text-[10px]"}):(0,t.jsx)(v,{className:"size-4 text-muted-foreground/50"}),e.workflow&&(0,t.jsxs)("span",{className:"flex h-5 max-w-32 shrink-0 items-center gap-1 rounded-md border border-border px-1.5 text-[11px] text-muted-foreground",children:[(0,t.jsx)(M.Play,{className:"size-3 shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e.workflow})]})]})]})})}function el({attachment:e}){let s=J[e.kind];return(0,t.jsx)("div",{className:"rounded-md px-2 transition-colors hover:bg-muted/50",children:(0,t.jsxs)("div",{className:"flex h-9 items-center gap-2",children:[(0,t.jsx)("span",{className:"flex size-4 shrink-0 items-center justify-center text-muted-foreground",children:(0,t.jsx)(s,{className:"size-3.5"})}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-baseline gap-1.5",children:[(0,t.jsx)("span",{className:"min-w-0 truncate text-[13px] font-medium leading-5 text-foreground",children:e.name}),(0,t.jsx)("span",{className:"shrink-0 text-xs text-muted-foreground",children:e.size})]}),(0,t.jsx)("span",{className:"shrink-0 pl-2 text-xs text-muted-foreground",children:e.time})]})})}function eo({children:e}){return(0,t.jsx)("h4",{className:"mb-1.5 mt-4 text-[13px] font-medium text-foreground",children:e})}function ed({value:e}){return"Isolated"===e||"Done"===e?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,t.jsx)(p.CircleCheck,{className:"size-3 shrink-0 text-green-600","aria-hidden":"true"}),e]}):"Pending"===e?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,t.jsx)(m,{className:"size-3 shrink-0 text-muted-foreground","aria-hidden":"true"}),e]}):(0,t.jsx)(t.Fragment,{children:e})}function ec({writeup:e,compact:s=!1}){return(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-[13px] leading-5 text-foreground",children:e.intro}),(0,t.jsx)(eo,{children:"Summary"}),(0,t.jsx)("dl",{className:(0,o.cn)("grid gap-x-3 gap-y-1",s?"grid-cols-[48px_1fr]":"grid-cols-[56px_1fr]"),children:e.facts.map(e=>(0,t.jsxs)("div",{className:"contents",children:[(0,t.jsx)("dt",{className:"text-xs text-muted-foreground",children:e.label}),(0,t.jsx)("dd",{className:"text-[13px] leading-5 text-foreground",children:e.value})]},e.label))}),(0,t.jsx)(eo,{children:e.table.title}),(0,t.jsx)("div",{className:"overflow-hidden rounded-md border border-border/70",children:(0,t.jsxs)("table",{className:"w-full border-collapse text-xs",children:[(0,t.jsx)("thead",{children:(0,t.jsx)("tr",{children:e.table.columns.map(e=>(0,t.jsx)("th",{scope:"col",className:"bg-muted/40 px-2.5 py-1.5 text-left font-medium text-muted-foreground",children:e},e))})}),(0,t.jsx)("tbody",{children:e.table.rows.map(s=>(0,t.jsx)("tr",{children:s.map((s,r)=>(0,t.jsx)("td",{className:(0,o.cn)("border-t border-border/60 px-2.5 py-1.5 text-foreground",0===r&&"font-mono"),children:(0,t.jsx)(ed,{value:s})},e.table.columns[r]))},s[0]))})]})}),(0,t.jsx)(eo,{children:"Timeline"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"absolute bottom-1 left-[6.5px] top-1 w-px bg-border","aria-hidden":"true"}),e.timeline.map(e=>{let s=Z[e.icon];return(0,t.jsxs)("div",{className:"relative flex items-start gap-2.5 py-0.5",children:[(0,t.jsx)("span",{className:(0,o.cn)("mt-[3px] flex size-3.5 shrink-0 items-center justify-center bg-background","active"===e.state&&"text-foreground","done"===e.state&&"text-muted-foreground","todo"===e.state&&"text-muted-foreground
1/50"),"aria-hidden":"true",children:(0,t.jsx)(s,{className:"size-3.5",strokeWidth:1.75})}),(0,t.jsx)("span",{className:"w-[52px] shrink-0 font-mono text-[11px] leading-5 tabular-nums text-muted-foreground",children:e.time}),(0,t.jsx)("span",{className:(0,o.cn)("min-w-0 text-[13px] leading-5","todo"===e.state?"text-muted-foreground":"text-foreground"),children:e.text})]},e.text)})]})]})}function eu({copilot:e}){let[r,n]=(0,s.useState)(380);return(0,t.jsxs)("div",{className:"relative hidden shrink-0 flex-col border-l border-border/60 md:flex",style:{width:r},children:[(0,t.jsx)("div",{role:"separator","aria-orientation":"vertical","aria-label":"Resize copilot panel",onMouseDown:e=>{e.preventDefault();let t=e.clientX,s=e=>{n(Math.min(560,Math.max(280,r+(t-e.clientX))))},a=()=>{window.removeEventListener("mousemove",s),window.removeEventListener("mouseup",a),document.body.style.cursor="",document.body.style.userSelect=""};document.body.style.cursor="col-resize",document.body.style.userSelect="none",window.addEventListener("mousemove",s),window.addEventListener("mouseup",a)},className:"absolute inset-y-0 -left-1 z-10 w-2 cursor-col-resize transition-colors hover:bg-primary/20 active:bg-primary/30"}),(0,t.jsxs)("div",{className:"flex h-9 shrink-0 items-center gap-2 border-b border-border/60 px-3 text-[13px] font-medium",children:[(0,t.jsx)(E,{className:"size-3.5 shrink-0 text-muted-foreground","aria-hidden":"true"}),(0,t.jsx)("span",{children:"Case copilot"})]}),(0,t.jsxs)("div",{className:"flex-1 space-y-3 overflow-hidden px-3 py-3 text-xs",children:[(0,t.jsxs)(X,{className:"px-2.5 py-2",children:[(0,t.jsx)("p",{className:"mb-1 font-medium text-foreground",children:"Suggested next steps"}),(0,t.jsx)("ul",{className:"list-disc space-y-0.5 pl-4 text-muted-foreground",children:e.steps.map(e=>(0,t.jsx)("li",{children:e},e))})]}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)("p",{className:"max-w-[85%] rounded-lg bg-muted px-2.5 py-1.5 text-foreground",children:e.prompt})}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(E,{className:"size-3 shrink-0 text-muted-foreground","aria-hidden":"true"}),(0,t.jsx)("span",{className:"font-medium text-foreground",children:"SOC analyst"})]}),(0,t.jsx)("p",{className:"leading-5 text-foreground",children:e.reply})]}),(0,t.jsx)("div",{className:"flex flex-wrap gap-1.5",children:e.actions.map(e=>(0,t.jsx)("span",{className:"rounded-full border border-border px-2 py-0.5 text-[11px] text-muted-foreground",children:e},e))})]}),(0,t.jsx)("div",{className:"shrink-0 border-t border-border/60 p-2.5",children:(0,t.jsxs)("div",{className:"flex h-8 items-center gap-2 rounded-md border border-border px-2.5 text-xs text-muted-foreground",children:[(0,t.jsx)(S,{className:"size-3.5 shrink-0","aria-hidden":"true"}),(0,t.jsx)("span",{children:"Ask the copilot..."})]})})]})}function ex({events:e}){return(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"absolute inset-y-0 left-2 w-px bg-border","aria-hidden":"true"}),(0,t.jsx)("div",{className:"space-y-3",children:e.map(e=>{let s=Y[e.kind];return(0,t.jsxs)("div",{className:"relative flex items-center gap-2",children:[(0,t.jsx)("div",{className:"bg-background py-[2px]",children:(0,t.jsx)("div",{className:"rounded-full border border-muted-foreground/70 bg-background p-px text-muted-foreground",children:(0,t.jsx)(s,{className:"size-3 scale-75",strokeWidth:3})})}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-[13px] text-muted-foreground",children:e.text}),(0,t.jsxs)("span",{className:"flex shrink-0 items-center gap-1 text-xs text-muted-foreground",children:[(0,t.jsx)(i,{className:"size-3"}),e.time]})]},e.text)})})]})}function em({payload:e}){return(0,t.jsx)("div",{className:"rounded-md border border-border/60 bg-muted/20 px-2.5 py-2",children:(0,t.jsx)("pre",{className:"overflow-x-auto font-mono text-[11px] leading-4 text-muted-foreground",children:JSON.stringify(e,null,2)})})}e.s(["CaseScreen",0,function({case:e,defaultTab:r="description",compact:d=!1,className:c}
1){let[u,x]=(0,s.useState)(r),m={done:e.tasks.filter(e=>"completed"===e.status).length,total:e.tasks.length};return(0,t.jsxs)("div",{className:(0,o.cn)("flex h-full w-full flex-col overflow-hidden rounded-lg border border-border bg-background",c),children:[(0,t.jsxs)("div",{className:"flex h-10 shrink-0 items-center gap-2 border-b border-border px-3",children:[(0,t.jsx)(n,{className:"size-4 shrink-0 text-muted-foreground","aria-hidden":"true"}),(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-1.5 text-[13px] font-medium",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:"Cases"}),(0,t.jsx)("span",{className:"text-muted-foreground/60",children:"/"}),(0,t.jsx)("span",{className:"truncate text-foreground",children:e.id})]}),!d&&(0,t.jsxs)("div",{className:"ml-3 hidden items-center gap-2 text-xs text-muted-foreground lg:flex",children:[(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsx)(i,{className:"size-3"}),e.created]}),(0,t.jsx)("span",{"aria-hidden":"true",children:"•"}),(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsx)(l,{className:"size-3"}),e.updated]})]}),(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-2",children:[(0,t.jsx)("div",{className:"hidden items-center gap-1.5 sm:flex",children:e.metrics.map(e=>(0,t.jsx)(Q,{...e},e.name))}),(0,t.jsx)(a,{className:"size-4 shrink-0 text-muted-foreground","aria-hidden":"true"})]})]}),(0,t.jsxs)("div",{className:"flex min-h-0 flex-1",children:[(0,t.jsxs)("div",{className:(0,o.cn)("min-w-0 flex-1 overflow-hidden",d?"px-4 pt-2.5":"px-5 pt-3"),children:[(0,t.jsx)(er,{active:u,onChange:x,progress:m,compact:d}),(0,t.jsx)("h3",{className:(0,o.cn)("mt-5 truncate font-medium leading-tight text-foreground",d?"text-base":"text-lg"),children:e.title}),(0,t.jsx)("div",{className:"mt-3",children:(0,t.jsx)(ea,{case:e})}),(0,t.jsxs)("div",{className:d?"mt-5":"mt-6",role:"tabpanel",children:["description"===u&&(0,t.jsx)(ec,{writeup:e.writeup,compact:d}),"tasks"===u&&(0,t.jsx)(X,{className:"p-1",children:e.tasks.map(e=>(0,t.jsx)(ei,{task:e},e.title))}),"attachments"===u&&(0,t.jsx)(X,{className:"p-1",children:e.attachments.map(e=>(0,t.jsx)(el,{attachment:e},e.name))}),"payload"===u&&(0,t.jsx)(em,{payload:e.payload}),"activity"===u&&(0,t.jsx)(ex,{events:e.activity})]})]}),!d&&(0,t.jsx)(eu,{copilot:e.copilot})]})]})}],26741)},98480,e=>{"use strict";var t=e.i(42531),s=e.i(82616),r=e.i(48363),n=e.i(28299),a=e.i(44540),i=e.i(72115),l=e.i(98631);let o=(0,l.default)("table-2",[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]]),d=(0,l.default)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]),c=(0,l.default)("variable",[["path",{d:"M8 21s-4-3-4-9 4-9 4-9",key:"uto9ud"}],["path",{d:"M16 3s4 3 4 9-4 9-4 9",key:"4w2vsq"}],["line",{x1:"15",x2:"9",y1:"9",y2:"15",key:"f7djnv"}],["line",{x1:"9",x2:"15",y1:"9",y2:"15",key:"1shsy8"}]]);var u=e.i(23265),x=e.i(43293),m=e.i(35041),p=e.i(86914),h=e.i(72200),g=e.i(15801),f=e.i(85559),f=f,v=e.i(79278),y=e.i(12452),b=e.i(16024),j=e.i(55156),k=e.i(5300),N=e.i(11152),w=e.i(39257);let S=(0,l.default)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),E=(0,l.default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);var C=e.i(94083),M=e.i(47163),z=e.i(26741);let T=[{label:"What",value:"Compromised npm package ran a post-install script and read npm and GitHub tokens."},{label:"Who",value:"3 developer workstations, 7 repos in the org."},{label:"When",value:"Advisory ingested 14:08 UTC. Falcon detection 14:42 UTC."},{label:"Where",value:"WS-042, WS-118, WS-203."},{label:"Why",value:"Transitive dependency pinned in package-lock.json."},{label:"How",value:"Worm-style self-propagation through npm publish with stolen tokens."}],R="Falcon flagged post-install scripts from @ctrl/[email protected] on three developer workstations. The package is a transitive dependency in 7 repos.",A={id:"CASE-0054",title:"Shai-Hulud npm worm on 3 endpoints",tags:["supply-chain","npm"],status:"in_progress",priority:"high",severity:"high",assignee:"John Smith",metrics:[{name:"TTA",value:"12m",ended:!0},{name:"TTR",value:"4h 32m",ended:!1}],created:"3 days ago",updated:"10 hours ago",writeup:{intro:R,facts:T,table:{title:"Affected hosts",columns:["Host","Detection","Action","Status"],rows:[["WS-042","Falcon post-install","Isolated","Done"],["WS-118","Falcon post-install","Isolated","Done"],["WS-203","Falcon post-install","Isolate","Pending"]]},timeline:[{time:"14:08",text:"GitHub advisory ingested",state:"done",icon:"advisory"},{time:"14:42",text:"Falcon detection on WS-042",state:"done",icon:"detection"},{time:"14:55",text:"WS-042 and WS-118 isolated",state:"done",icon:"isolated"},{time:"15:10",text:"Token rotation workflow started",state:"active",icon:"tokens"},{time:"",text:"Pin clean versions in 7 repos",state:"todo",icon:"package"}]},copilot:{steps:["Pin clean versions in 7 repos","Rotate npm and GitHub tokens org-wide","Isolate WS-203 in Falcon"],prompt:"Draft a containment runbook and notify the repo owners.",reply:"Runbook drafted from the IOC list. It covers token rotation, endpoint isolation, and owner notifications for all 7 repos.",actions:["Draft runbook","Rotate tokens","Notify owners"]},tasks:[{title:"Isolate WS-042 in Falcon",status:"completed",assignee:"John Smith"},{title:"Block C2 domain at egress",status:"completed",assignee:"John Smith"}
1,{title:"Rotate npm and GitHub tokens",status:"in_progress",priority:"high",assignee:"John Smith",workflow:"Token rotation"},{title:"Pin @ctrl/tinycolor in 7 repos",status:"todo",priority:"high"},{title:"Notify repo owners",status:"todo",priority:"medium"},{title:"File post-incident report",status:"todo"}],attachments:[{name:"falcon-detections.csv",size:"41.2 KB",time:"2h",kind:"csv"},{name:"package-lock.diff",size:"8.1 KB",time:"2h",kind:"text"}],payload:{source:"crowdstrike",detection_id:"ldt:8f21c4:0054",hosts:["WS-042","WS-118","WS-203"],package:"@ctrl/[email protected]"},activity:[{text:"John Smith created the case",time:"3d",kind:"status"},{text:"John Smith added the tag supply-chain",time:"3d",kind:"tag"},{text:"SOC analyst drafted the containment runbook",time:"10h",kind:"comment"},{text:"John Smith uploaded falcon-detections.csv",time:"2h",kind:"attachment"}]},O={...A,status:"resolved",metrics:[{name:"TTA",value:"12m",ended:!0},{name:"TTR",value:"2h 18m",ended:!0}],updated:"3 hours ago",writeup:{intro:R,facts:T,table:{title:"Affected hosts",columns:["Host","Detection","Action","Status"],rows:[["WS-042","Falcon post-install","Isolated","Done"],["WS-118","Falcon post-install","Isolated","Done"],["WS-203","Falcon post-install","Isolated","Done"]]},timeline:[{time:"14:08",text:"GitHub advisory ingested",state:"done",icon:"advisory"},{time:"14:42",text:"Falcon detection on WS-042",state:"done",icon:"detection"},{time:"14:55",text:"WS-042 and WS-118 isolated",state:"done",icon:"isolated"},{time:"15:10",text:"Token rotation workflow started",state:"done",icon:"tokens"},{time:"15:48",text:"Pin clean versions in 7 repos",state:"done",icon:"package"},{time:"16:26",text:"Case resolved",state:"done",icon:"resolved"}]},copilot:{steps:["File the post-incident report","Schedule a dependency audit"],prompt:"Summarize what changed for the PIR.",reply:"Three hosts isolated, tokens rotated, and 7 repos pinned to clean versions. TTR was 2h 18m.",actions:["Draft PIR","Open audit task"]},tasks:A.tasks.map(e=>({...e,status:"completed"})),activity:[{text:"John Smith created the case",time:"3d",kind:"status"},{text:"John Smith added the tag supply-chain",time:"3d",kind:"tag"},{text:"John Smith uploaded falcon-detections.csv",time:"5h",kind:"attachment"},{text:"John Smith set status to Resolved",time:"3h",kind:"status"}]},P={id:"CASE-0052",title:"GitHub OAuth apps with org-wide scopes",tags:["oauth","github"],status:"resolved",priority:"medium",severity:"medium",assignee:"John Smith",metrics:[{name:"TTA",value:"4m",ended:!0},{name:"TTR",value:"38m",ended:!0}],created:"1 day ago",updated:"1 hour ago",writeup:{intro:"Quarterly review of GitHub OAuth apps with org-wide access. Two apps held unused repo:write scopes.",facts:[{label:"What",value:"12 org-wide OAuth apps reviewed for unused scopes."},{label:"Who",value:"Platform team owns 10 apps. Two had no owner."},{label:"When",value:"Review opened 09:12 UTC. Closed 09:50 UTC."},{label:"Where",value:"GitHub org acme."},{label:"Why",value:"Unused repo:write scopes widen the blast radius of a token leak."},{label:"How",value:"Compared granted scopes with API usage in the audit log."}],table:{title:"Reviewed apps",columns:["App","Scope","Action","Status"],rows:[["ci-deploy-bot","repo:write","Revoked","Done"],["legacy-jenkins-bridge","repo:write","Revoked","Done"],["dependabot-sync","repo:read","Re-approved","Done"]]},timeline:[{time:"09:12",text:"Review opened",state:"done",icon:"review"},{time:"09:31",text:"Two unused repo:write grants found",state:"done",icon:"found"},{time:"09:44",text:"Apps revoked",state:"done",icon:"revoked"},{time:"09:50",text:"Audit log posted to #sec-review",state:"done",icon:"posted"}]},copilot:{steps:["Schedule the next review in 90 days"],prompt:"List apps with repo:write and no commits in 90 days.",reply:"ci-deploy-bot and legacy-jenkins-bridge match. Both were installed by a former admin.",actions:["Revoke both","Notify platform team"]},tasks:[{title:"Revoke ci-deploy-bot",status:"completed",assignee:"John Smith"},{title:"Revoke legacy-jenkins-bridge",status:"completed",assignee:"John Smith"},{title:"Post audit log to #sec-review",status:"completed",assignee:"John Smith"},{title:"Schedule review in 90 days",status:"completed",assignee:"John Smith"}],attachments:[{name:"oauth-app-inventory.csv",size:"12.4 KB",time:"1h",kind:"csv"}],payload:{source:"github",org:"acme",apps_reviewed:12,revoked:["ci-deploy-bot","legacy-jenkins-bridge"]},activity:[{text:"John Smith created the case",time:"1d",kind:"status"},{text:"John Smith added the tag oauth",time:"1d",kind:"tag"},{text:"SOC analyst flagged two unused repo:write grants",time:"1h",kind:"comment"}]},I=[{title:"New task",icon:x.Plus},{title:"Suggestions",icon:w.Sparkles,isActive:!0}],L=[{title:"Workflows",icon:r.Workflow}
1,{title:"Cases",icon:n.Layers},{title:"Agents",icon:a.SquareMousePointer},{title:"Skills",icon:m.Pyramid},{title:"Tools",icon:i.Wrench},{title:"Tables",icon:o}],D=[{title:"Members",icon:d},{title:"Variables",icon:c},{title:"Integrations",icon:u.Blocks}],W={workflow:{icon:r.Workflow,label:"Workflow"},case:{icon:n.Layers,label:"Case"},session:{icon:j.MessageSquare,label:"Session"},agent_session:{icon:a.SquareMousePointer,label:"Agent"}},F=[{id:"task-1",title:"Triage Wiz cloud finding",status:"review",eventType:"agent_session",preview:"Awaiting approval",time:"now"},{id:"task-2",title:"Revoke risky Google OAuth grant",status:"review",eventType:"agent_session",preview:"3 apps flagged",time:"4m"},{id:"task-3",title:"Isolate endpoint from Falcon alert",status:"in_progress",eventType:"agent_session",agentName:"SOC analyst",preview:"WS-042 quarantining…",time:"12m"},{id:"task-4",title:"Audit GitHub OAuth app installs",status:"completed",eventType:"case",preview:"Resolved · 12 apps reviewed",time:"1h"},{id:"task-5",title:"Investigate Shai-Hulud package advisory",status:"completed",eventType:"case",preview:"Resolved · 3 endpoints isolated",time:"3h"}];function _({status:e}){switch(e){case"review":return(0,t.jsx)(g.Circle,{className:"size-4 text-muted-foreground"});case"in_progress":return(0,t.jsx)(v.Loader2,{className:"size-4 text-muted-foreground animate-spin"});case"completed":return(0,t.jsx)(f.default,{className:"size-4 text-muted-foreground"})}}function H(){return(0,t.jsxs)("div",{className:"flex h-full w-[180px] shrink-0 flex-col border-r border-border bg-muted/30",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2.5",children:[(0,t.jsx)("div",{className:"flex size-5 items-center justify-center rounded bg-foreground text-background",children:(0,t.jsx)("span",{className:"text-[10px] font-bold",children:"/"})}),(0,t.jsx)("span",{className:"font-medium text-sm",children:"Workspace"})]}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col px-1.5 py-1",children:[(0,t.jsx)("div",{className:"flex flex-col",children:I.map(e=>(0,t.jsxs)("div",{className:(0,M.cn)("flex items-center gap-2 rounded px-2 py-1 text-[13px]",e.isActive?"bg-muted text-foreground":"text-muted-foreground"),children:[(0,t.jsx)(e.icon,{className:"size-3.5"}),(0,t.jsx)("span",{children:e.title})]},e.title))}),(0,t.jsxs)("div",{className:"mt-3",children:[(0,t.jsx)("div",{className:"px-2 py-1 text-[11px] font-medium text-muted-foreground uppercase tracking-wide",children:"Workspace"}),(0,t.jsx)("div",{className:"flex flex-col",children:L.map(e=>(0,t.jsxs)("div",{className:"flex items-center gap-2 rounded px-2 py-1 text-[13px] text-muted-foreground",children:[(0,t.jsx)(e.icon,{className:"size-3.5"}),(0,t.jsx)("span",{children:e.title})]},e.title))})]})]}),(0,t.jsx)("div",{className:"border-t border-border px-1.5 py-1",children:D.map(e=>(0,t.jsxs)("div",{className:"flex items-center gap-2 rounded px-2 py-1 text-[13px] text-muted-foreground",children:[(0,t.jsx)(e.icon,{className:"size-3.5"}),(0,t.jsx)("span",{children:e.title})]},e.title))})]})}function B({selectedTaskId:e,onSelect:s}){let r=F.filter(e=>"review"===e.status),n=F.filter(e=>"in_progress"===e.status),a=F.filter(e=>"completed"===e.status),i=({task:r})=>{let n=W[r.eventType].icon,a=r.id===e;return(0,t.jsxs)("button",{type:"button",onClick:()=>s(r.id),className:(0,M.cn)("flex w-full items-center gap-2 px-3 py-2 text-left cursor-pointer transition-colors",a?"bg-muted":"hover:bg-muted/50"),children:[(0,t.jsx)(_,{status:r.status}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)("p",{className:"truncate text-[13px] font-medium",children:r.title}),(0,t.jsx)("span",{className:"shrink-0 text-[11px] text-muted-foreground",children:r.time})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5 mt-0.5",children:[(0,t.jsx)(n,{className:"size-3 text-muted-foreground shrink-0"}),(0,t.jsx)("span",{className:"text-[11px] text-muted-foreground truncate",children:r.agentName?`${r.agentName} \xb7 ${r.preview}`:r.preview})]})]})]})};return(0,t.jsx)("div",{className:"flex h-full w-[280px] shrink-0 flex-col border-r border-border bg-background",children:(0,t.jsxs)("div",{className:"flex-1 overflow-auto",children:[r.length>0&&(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"px-3 py-2 text-[11px] font-medium text-muted-foreground uppercase tracking-wide",children:["Review required ",r.length]}),r.map(e=>(0,t.jsx)(i,{task:e},e.id))]}),n.length>0&&(0,t.jsxs)("div",{className:"mt-2",children:[(0,t.jsxs)("div",{className:"px-3 py-2 text-[11px] font-medium text-muted-foreground uppercase tracking-wide",children:["In progress ",n.length]}),n.map(e=>(0,t.jsx)(i,{task:e},e.id))]}),a.length>0&&(0,t.jsxs)("div",{className:"mt-2",children:[(0,t.jsxs)("div",{className:"px-3 py-2 text-[11px] font-medium text-muted-foreground uppercase tracking-wide",children:["Completed ",a.length]}),a.map(e=>(0,t.jsx)(i,{task:e},e.id))]})]})})}function V({title:e,icon:r,children:n,defaultOpen:a=!1}
1){let[i,l]=(0,s.useState)(a);return(0,t.jsxs)("div",{className:"border-b border-border/50 last:border-0",children:[(0,t.jsxs)("button",{onClick:()=>l(!i),className:"flex items-center gap-1.5 w-full px-0 py-1.5 text-[13px] text-muted-foreground hover:text-foreground transition-colors",children:[i?(0,t.jsx)(h.ChevronDown,{className:"size-3.5"}):(0,t.jsx)(p.ChevronRight,{className:"size-3.5"}),r&&(0,t.jsx)(r,{className:"size-3.5"}),(0,t.jsx)("span",{children:e})]}),i&&(0,t.jsx)("div",{className:"pb-2 pl-5 text-[13px] text-muted-foreground",children:n})]})}function q({children:e}){return(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)("div",{className:"rounded-lg bg-muted px-3 py-2 max-w-[85%]",children:(0,t.jsx)("p",{className:"text-[13px]",children:e})})})}function U({icon:e,title:s,subtitle:r,isPrimary:n=!1,cornerBadges:a}){return(0,t.jsxs)("div",{className:(0,M.cn)("relative flex items-center gap-2.5 rounded-lg border bg-background px-3 py-2",n?"border-primary":"border-border/60"),children:[(0,t.jsx)("div",{className:"flex size-7 items-center justify-center rounded-md border border-border/40 bg-muted/30",children:(0,t.jsx)(e,{className:"size-3.5 text-muted-foreground"})}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"text-[11px] font-medium truncate",children:s}),(0,t.jsx)("p",{className:"text-[9px] text-muted-foreground truncate",children:r})]}),a?(0,t.jsx)("div",{className:"absolute -top-7 right-0.5 flex items-center gap-1.5 rounded-md bg-background px-1.5 py-0.5",children:a}):null]})}function G({orientation:e="horizontal"}){return"vertical"===e?(0,t.jsxs)("svg",{width:"40",height:"56",className:"shrink-0",children:[(0,t.jsx)("circle",{cx:"20",cy:"10",r:"3",fill:"#d4d4d8"}),(0,t.jsx)("path",{d:"M 20 16 L 20 44",stroke:"#d4d4d8",strokeWidth:"1.5",fill:"none"}),(0,t.jsx)("path",{d:"M 16 44 L 20 50 L 24 44 Z",fill:"#d4d4d8"})]}):(0,t.jsxs)("svg",{width:"56",height:"40",className:"shrink-0",children:[(0,t.jsx)("circle",{cx:"10",cy:"20",r:"3",fill:"#d4d4d8"}),(0,t.jsx)("path",{d:"M 16 20 L 44 20",stroke:"#d4d4d8",strokeWidth:"1.5",fill:"none"}),(0,t.jsx)("path",{d:"M 44 16 L 50 20 L 44 24 Z",fill:"#d4d4d8"})]})}function $(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"rounded-md border border-border/60 bg-muted/30 px-1.5 py-0.5 text-[9px] font-medium text-muted-foreground shadow-none",children:"⌘N"}),(0,t.jsx)("span",{className:"rounded-md border border-emerald-200 bg-emerald-50 px-1.5 py-0.5 text-[9px] font-medium text-emerald-600 shadow-none",children:"⌘Y"})]})}function J({children:e,orientation:r="horizontal"}){let[n,a]=(0,s.useState)(!1),[i,l]=(0,s.useState)({x:0,y:0}),[o,d]=(0,s.useState)({x:0,y:0}),c=()=>{a(!1)},u="vertical"===r;return(0,t.jsx)("div",{className:(0,M.cn)("relative bg-[radial-gradient(circle,_#e5e5e5_1px,_transparent_1px)] overflow-hidden cursor-grab active:cursor-grabbing select-none",u?"h-full border-l border-border":"h-[160px] border-b border-border"),onMouseDown:e=>{a(!0),d({x:e.clientX-i.x,y:e.clientY-i.y})},onMouseMove:e=>{n&&l({x:e.clientX-o.x,y:e.clientY-o.y})},onMouseUp:c,onMouseLeave:c,style:{backgroundPosition:`${i.x}px ${i.y}px`,backgroundSize:"16px 16px"},children:(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center origin-center",style:{transform:`translate(${i.x}px, ${i.y}px)`},children:(0,t.jsx)("div",{className:(0,M.cn)("flex gap-2",u?"flex-col items-center":"items-center"),children:e})})})}function Y({title:e,rightChip:s}){return(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 border-b border-border px-4 py-2",children:[(0,t.jsx)("span",{className:"font-medium text-sm truncate",children:e}),s]})}function Z({placeholder:e="Ask a follow up..."}){return(0,t.jsx)("div",{className:"border-t border-border p-3",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 rounded border border-border px-3 py-2",children:[(0,t.jsx)("input",{type:"text",placeholder:e,className:"flex-1 bg-transparent text-[13px] outline-none placeholder:text-muted-foreground"}),(0,t.jsx)("button",{className:"text-muted-foreground hover:text-foreground",children:(0,t.jsx)(y.Send,{className:"size-4"})})]})})}function K({approveLabel:e="Approve action"}){return(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)("button",{className:"flex items-center gap-1.5 rounded-full border border-border bg-foreground text-background px-3 py-1.5 text-[11px] font-medium hover:bg-foreground
1/90 transition-colors",children:e}),(0,t.jsx)("button",{className:"flex items-center gap-1.5 rounded-full border border-border px-3 py-1.5 text-[11px] font-medium hover:bg-muted transition-colors",children:"Reject"})]})}function X(){return(0,t.jsxs)("div",{className:"flex h-full flex-1 flex-col overflow-hidden bg-background",children:[(0,t.jsx)(Y,{title:"Triage Wiz cloud finding"}),(0,t.jsxs)(J,{children:[(0,t.jsx)(U,{icon:k.Zap,title:"Wiz alert",subtitle:"wiz.finding.created"}),(0,t.jsx)(G,{}),(0,t.jsx)(U,{icon:a.SquareMousePointer,title:"SOC analyst agent",subtitle:"Wiz MCP · Falcon MCP"}),(0,t.jsx)(G,{}),(0,t.jsx)(U,{icon:N.Shield,title:"Isolate host",subtitle:"falcon.isolate_host",isPrimary:!0,cornerBadges:(0,t.jsx)($,{})})]}),(0,t.jsxs)("div",{className:"flex-1 overflow-auto px-4 py-3 space-y-3",children:[(0,t.jsx)(q,{children:"Triage this Wiz finding: privilege escalation on a prod IAM role."}),(0,t.jsx)(V,{title:"Analyzing finding...",defaultOpen:!0,children:(0,t.jsxs)("div",{className:"space-y-1.5 text-muted-foreground",children:[(0,t.jsx)("p",{children:"• Pull associated assets and CloudTrail context via Wiz MCP"}),(0,t.jsx)("p",{children:"• Correlate with EDR telemetry from Falcon MCP"})]})}),(0,t.jsx)("div",{className:"space-y-2",children:(0,t.jsx)("p",{className:"text-[13px]",children:"I can route this through the SOC analyst agent — it will tune the finding into an actionable case, correlate EDR telemetry, and propose containment."})}),(0,t.jsx)(q,{children:"Yes — open a case and prepare containment."}),(0,t.jsx)(V,{title:"Searching integrations...",icon:b.Search,defaultOpen:!0,children:(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-[12px]",children:[(0,t.jsx)("img",{src:"/logos/integrations/wiz.svg",alt:"Wiz",className:"size-4 opacity-80"}),(0,t.jsx)("span",{className:"text-green-600",children:"Wiz (MCP connected)"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 text-[12px]",children:[(0,t.jsx)("img",{src:"/logos/integrations/crowdstrike.svg",alt:"CrowdStrike Falcon",className:"size-4 opacity-60"}),(0,t.jsx)("span",{className:"text-green-600",children:"CrowdStrike Falcon (MCP connected)"})]})]})}),(0,t.jsx)("div",{className:"space-y-2",children:(0,t.jsxs)("p",{className:"text-[13px]",children:["Found ",(0,t.jsx)("span",{className:"font-medium",children:"Isolate host"})," in Falcon. It will quarantine the endpoint and revoke active session tokens while you review."]})}),(0,t.jsx)(V,{title:"Building runbook...",icon:i.Wrench,defaultOpen:!0,children:(0,t.jsxs)("div",{className:"space-y-1.5 text-[12px]",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(f.default,{className:"size-3 text-green-600"}),(0,t.jsx)("span",{children:"Trigger: Wiz finding ingested"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(f.default,{className:"size-3 text-green-600"}),(0,t.jsx)("span",{children:"SOC analyst agent: enrich and classify"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(f.default,{className:"size-3 text-green-600"}),(0,t.jsx)("span",{children:"Isolate host on approval"})]})]})}),(0,t.jsx)("div",{className:"space-y-2",children:(0,t.jsxs)("p",{className:"text-[13px]",children:[(0,t.jsx)(f.default,{className:"size-3.5 text-green-600 inline mr-1.5 -mt-0.5"}),"Ready to run ",(0,t.jsx)("span",{className:"font-medium",children:"Isolate host"})," on ",(0,t.jsx)("span",{className:"font-mono",children:"i-0a7f…"}),". Approve to proceed."]})}),(0,t.jsx)(K,{})]}),(0,t.jsx)(Z,{})]})}function Q({dagPosition:e="top",showDag:s=!0}){let r=(0,t.jsxs)(J,{orientation:"right"===e?"vertical":"horizontal",children:[(0,t.jsx)(U,{icon:k.Zap,title:"New OAuth grant",subt
1itle:"google.directory.consent"}),(0,t.jsx)(G,{orientation:"right"===e?"vertical":"horizontal"}),(0,t.jsx)(U,{icon:a.SquareMousePointer,title:"OAuth analyst agent",subtitle:"google.directory · entra.graph"}),(0,t.jsx)(G,{orientation:"right"===e?"vertical":"horizontal"}),(0,t.jsx)(U,{icon:C.KeyRound,title:"Revoke grant",subtitle:"google.revoke_token",isPrimary:!0,cornerBadges:(0,t.jsx)($,{})})]}),n=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex-1 overflow-auto px-4 py-3 space-y-3",children:[(0,t.jsx)(q,{children:"We've got 3 newly-consented apps with sensitive scopes — triage them."}),(0,t.jsx)(V,{title:"Pulling consent log...",icon:b.Search,defaultOpen:!0,children:(0,t.jsxs)("div",{className:"space-y-1.5 text-muted-foreground",children:[(0,t.jsx)("p",{children:"• Found 3 grants in last 24h via Google Admin SDK"}),(0,t.jsx)("p",{children:"• Cross-checking app reputation and publisher verification"})]})}),(0,t.jsx)("div",{className:"space-y-2",children:(0,t.jsxs)("p",{className:"text-[13px]",children:["Two of three grants request ",(0,t.jsx)("span",{className:"font-mono",children:"gmail.readonly"})," from unverified publishers. Recommend revoking and notifying the owners."]})}),(0,t.jsxs)("div",{className:"rounded-lg border border-border/60 bg-muted/20 px-3 py-2 text-[12px]",children:[(0,t.jsx)("p",{className:"font-medium text-foreground mb-2",children:"Flagged grants"}),(0,t.jsxs)("div",{className:"space-y-2 text-muted-foreground",children:[(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(S,{className:"size-3 mt-0.5 text-rose-500 shrink-0"}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("span",{className:"text-foreground font-medium",children:"slack-notes-export"}),(0,t.jsx)("span",{className:"ml-1.5 font-mono text-[11px]",children:"gmail.readonly"}),(0,t.jsx)("span",{className:"block text-[11px]",children:"granted by a.chen@ · unverified publisher"})]})]}),(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(S,{className:"size-3 mt-0.5 text-rose-500 shrink-0"}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("span",{className:"text-foreground font-medium",children:"meeting-mate"}),(0,t.jsx)("span",{className:"ml-1.5 font-mono text-[11px]",children:"gmail.readonly"}),(0,t.jsx)("span",{className:"ml-1 font-mono text-[11px]",children:"calendar.events"}),(0,t.jsx)("span",{className:"block text-[11px]",children:"granted by j.lee@ · unverified publisher"})]})]}),(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(f.default,{className:"size-3 mt-0.5 text-emerald-600 shrink-0"}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("span",{className:"text-foreground font-medium",children:"pdf-merge-pro"}),(0,t.jsx)("span",{className:"ml-1.5 font-mono text-[11px]",children:"drive.metadata.readonly"}),(0,t.jsx)("span",{className:"block text-[11px]",children:"low risk — allowlist suggested"})]})]})]})]}),(0,t.jsx)("div",{className:"space-y-2",children:(0,t.jsxs)("p",{className:"text-[13px]",children:[(0,t.jsx)(f.default,{className:"size-3.5 text-green-600 inline mr-1.5 -mt-0.5"}),"Ready to revoke ",(0,t.jsx)("span",{className:"font-medium",children:"slack-notes-export"})," and ",(0,t.jsx)("span",{className:"font-medium",children:"meeting-mate"}),". Approve to proceed."]})}),(0,t.jsx)(K,{approveLabel:"Approve revocations"})]}),(0,t.jsx)(Z,{})]});return"right"===e?(0,t.jsxs)("div",{className:"flex h-full flex-1 overflow-hidden bg-background",children:[(0,t.jsx)(H,{}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col overflow-hidden",children:[(0,t.jsx)(Y,{title:"Revoke risky Google OAuth grant"}),(0,t.jsxs)("div",{className:"grid flex-1 grid-cols-[2fr_1fr] overflow-hidden",children:[(0,t.jsx)("div",{className:"flex flex-col overflow-hidden",children:n}),(0,t.jsx)("div",{className:"border-l border-border",children:r})]})]})]}):(0,t.jsxs)("div",{className:"flex h-full flex-1 flex-col overflow-hidden bg-background",children:[(0,t.jsx)(Y,{title:"Revoke risky Google OAuth grant"}),s?r:null,n]})}function ee(){return(0,t.jsxs)("div",{className:"flex h-full flex-1 flex-col overflow-hidden bg-background",children:[(0,t.jsx)(Y,{title:"Isolate endpoint from Falcon alert",rightChip:(0,t.jsxs)("span",{className:"flex items-center gap-1.5 rounded-full bg-amber-50 border border-amber-200 px-2 py-0.5 text-[10px] font-medium text-amber-700",children:[(0,t.jsx)(v.L
1oader2,{className:"size-3 animate-spin"}),"Running"]})}),(0,t.jsxs)(J,{children:[(0,t.jsx)(U,{icon:k.Zap,title:"Falcon alert",subtitle:"falcon.detection.created"}),(0,t.jsx)(G,{}),(0,t.jsx)(U,{icon:a.SquareMousePointer,title:"SOC analyst agent",subtitle:"Falcon MCP"}),(0,t.jsx)(G,{}),(0,t.jsx)(U,{icon:N.Shield,title:"Isolate host",subtitle:"falcon.isolate_host",isPrimary:!0})]}),(0,t.jsxs)("div",{className:"flex-1 overflow-auto px-4 py-3 space-y-3",children:[(0,t.jsx)(q,{children:"WS-042 just lit up — npm post-install matching Shai-Hulud."}),(0,t.jsx)(V,{title:"Quarantining endpoint...",icon:v.Loader2,defaultOpen:!0,children:(0,t.jsxs)("div",{className:"space-y-1.5 text-muted-foreground",children:[(0,t.jsxs)("p",{children:["• Sent ",(0,t.jsx)("span",{className:"font-mono",children:"isolate_host"})," to Falcon"]}),(0,t.jsx)("p",{children:"• Awaiting confirmation from agent on host"})]})}),(0,t.jsx)("div",{className:"space-y-2",children:(0,t.jsx)("p",{className:"text-[13px]",children:"Endpoint quarantined. Now hunting for other exposed hosts in the Falcon inventory."})}),(0,t.jsxs)("div",{className:"rounded-lg border border-border/60 bg-muted/20 px-3 py-2 text-[12px]",children:[(0,t.jsx)("p",{className:"font-medium text-foreground mb-2",children:"Runbook progress"}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(f.default,{className:"size-3 text-green-600"}),(0,t.jsxs)("span",{children:["Isolate ",(0,t.jsx)("span",{className:"font-mono",children:"WS-042"})," via Falcon"]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(f.default,{className:"size-3 text-green-600"}),(0,t.jsx)("span",{children:"Block known C2 destinations at the egress proxy"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,t.jsx)(v.Loader2,{className:"size-3 animate-spin"}),(0,t.jsxs)("span",{children:["Search Falcon inventory for ",(0,t.jsx)("span",{className:"font-mono",children:"@ctrl/tinycolor"})," installs…"]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,t.jsx)(g.Circle,{className:"size-3"}),(0,t.jsx)("span",{children:"Open case with full IOC list"})]})]})]}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:(0,t.jsxs)("button",{className:"flex items-center gap-1.5 rounded-full border border-border px-3 py-1.5 text-[11px] font-medium text-muted-foreground hover:bg-muted hover:text-foreground transition-colors",children:["View live run",(0,t.jsx)(E,{className:"size-3"})]})})]}),(0,t.jsx)(Z,{placeholder:"Ask the agent to adjust the runbook..."})]})}function et({taskId:e}){switch(e){case"task-2":return(0,t.jsx)(Q,{});case"task-3":return(0,t.jsx)(ee,{});case"task-4":return(0,t.jsx)(z.CaseScreen,{case:P,compact:!0,defaultTab:"description",className:"min-w-0 flex-1 rounded-none border-0"},"task-4");case"task-5":return(0,t.jsx)(z.CaseScreen,{case:O,compact:!0,defaultTab:"tasks",className:"min-w-0 flex-1 rounded-none border-0"},"task-5");default:return(0,t.jsx)(X,{})}}e.s(["HeroAppScreen",0,function({className:e}){let[r,n]=(0,s.useState)("task-1");return(0,t.jsxs)("div",{className:(0,M.cn)("flex h-full w-full overflow-hidden rounded-lg border border-border bg-background shadow-sm",e),children:[(0,t.jsx)(H,{}),(0,t.jsx)(B,{selectedTaskId:r,onSelect:n}),(0,t.jsx)(et,{taskId:r})]})},"RevokeOAuthGrantView",0,Q],98480)},71920,e=>{"use strict";var t,s=e.i(42531),r=e.i(82616),n=e.i(14346),a=e.i(98631);let i=(0,a.default)("shuffle",[["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22",key:"1ailkh"}],["path",{d:"M2 6h1.972a4 4 0 0 1 3.6 2.2",key:"km57vx"}],["path",{d:"M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45",key:"os18l9"}]]);var l=e.i(5300),o=e.i(44540),d=e.i(94179),c=e.i(47163);let u=(0,a.default)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),x=(0,a.default)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),m=(0,a.default)("alarm-clock-check",[["circle",{cx:"12",cy:"13",r:"8",key:"3y4lt7"}],["path",{d:"M5 3 2 6",key:"18tl5t"}],["path",{d:"m22 6-3-3",key:"1opdir"}],["path",{d:"M6.38 18.7 4 21",key:"17xu3x"}],["path",{d:"M17.64 18.67 20 21",key:"kv2oe2"}],["path",{d:"m9 13 2 2 4-4",key:"6343dt"}]]),p=(0,a.default)("alarm-clock-plus",[["circle",{cx:"12",cy:"13",r:"8",key:"3y4lt7"}],["path",{d:"M5 3 2 6",key:"18tl5t"}],["path",{d:"m22 6-3-3",key:"1opdir"}],["path",{d:"M6.38 18.7 4 21",key:"17xu3x"}],["path",{d:"M17.64 18.67 20 21",key:"kv2oe2"}],["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}]]),h=(0,a.default)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),g=(0,a.default)("calendar-search",[["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 11.75V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7.25",key:"1jrsq6"}],["path",{d:"m22 22-1.875-1.875",key:"13zax7"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}]]);var f=e.i(41182);let v=(0,a.default)("circle-play",[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),y=(0,a.default)("loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}
1],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]),b=(0,a.default)("square-arrow-out-up-right",[["path",{d:"M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6",key:"y09zxi"}],["path",{d:"m21 3-9 9",key:"mpx6sq"}],["path",{d:"M15 3h6v6",key:"1q9fwt"}]]),j=(0,a.default)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),k=(0,a.default)("webhook",[["path",{d:"M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",key:"q3hayz"}],["path",{d:"m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",key:"1go1hn"}],["path",{d:"m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",key:"qlwsc0"}]]);var N=e.i(15890),N=N,w=e.i(2262),w=w;let S=(0,a.default)("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]),E=(0,a.default)("shapes",[["path",{d:"M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z",key:"1bo67w"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}],["circle",{cx:"17.5",cy:"17.5",r:"3.5",key:"w3z12y"}]]);var C=e.i(72200),M=e.i(11152),z=e.i(79278),T=e.i(85557),R=e.i(8724);function A(){return{workflowId:"wf_123",workflow:{actions:{trigger:{id:"trigger",title:"Trigger"},scatter:{id:"scatter",title:"Scatter"}}}}}let O=(0,r.createContext)({sidebarRef:{current:{}},currentExecutionId:null,selectedActionEventRef:void 0,setSelectedActionEventRef:()=>{},setNodes:()=>{},canvasRef:{current:{}},setSelectedNodeId:()=>{}});function P(){return(0,r.useContext)(O)}let I=Date.parse("2026-05-18T17:00:00.000Z"),L=e=>new Date(I-6e4*e).toISOString(),D=new Date(I).toISOString();var W=e.i(50216),F=e.i(67881),_=e.i(71435);e.s([],83991),e.i(83991);var H=e.i(16778),B=e.i(91826);let V=r.createContext(void 0);function q(e){let t=r.useContext(V);if(void 0===t&&!e)throw Error((0,B.default)(72));return t}var U=e.i(88659),G=e.i(7226),$=e.i(14984),J=e.i(21241);function Y(e){return null!=e&&null!=e.clientX}var Z=e.i(41767),K=e.i(86462),X=e.i(75070),Q=e.i(77612),ee=e.i(6273),et=e.i(70532);let es=K.isMac&&K.isSafari;var er=e.i(79789),en=e.i(52393),ea=e.i(67292),ei=e.i(68967),el=e.i(90560),eo=e.i(82029),ed=e.i(69873),ec=e.i(54004),eu=e.i(57847),ex=e.i(19110),em=e.i(8484),ep=e.i(48140);let eh={open:(0,el.createSelector)(e=>e.open),mounted:(0,el.createSelector)(e=>e.mounted),transitionStatus:(0,el.createSelector)(e=>e.transitionStatus),floatingRootContext:(0,el.createSelector)(e=>e.floatingRootContext),preventUnmountingOnClose:(0,el.createSelector)(e=>e.preventUnmountingOnClose),payload:(0,el.createSelector)(e=>e.payload),activeTriggerId:(0,el.createSelector)(e=>e.activeTriggerId),activeTriggerElement:(0,el.createSelector)(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:(0,el.createSelector)((e,t)=>void 0!==t&&e.activeTriggerId===t),isOpenedByTrigger:(0,el.createSelector)((e,t)=>void 0!==t&&e.activeTriggerId===t&&e.open),isMountedByTrigger:(0,el.createSelector)((e,t)=>void 0!==t&&e.activeTriggerId===t&&e.mounted),triggerProps:(0,el.createSelector)((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:(0,el.createSelector)(e=>e.popupProps),popupElement:(0,el.createSelector)(e=>e.popupElement),positionerElement:(0,el.createSelector)(e=>e.positionerElement)};var eg=e.i(37121);let ef={...eh,disabled:(0,el.createSelector)(e=>e.disabled),instantType:(0,el.createSelector)(e=>e.instantType),isInstantPhase:(0,el.createSelector)(e=>e.isInstantPhase),trackCursorAxis:(0,el.createSelector)(e=>e.trackCursorAxis),disableHoverablePopup:(0,el.createSelector)(e=>e.disableHoverablePopup),lastOpenChangeReason:(0,el.createSelector)(e=>e.openChangeReason),closeDelay:(0,el.createSelector)(e=>e.closeDelay),hasViewport:(0,el.createSelector)(e=>e.hasViewport)};class ev extends eo.ReactStore{constructor(e){super({...{...{open:!1,mounted:!1,transitionStatus:"idle",floatingRootContext:(0,em.getEmptyRootContext)(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,popupElement:null,positionerElement:null,activeTriggerProps:ep.EMPTY_OBJECT,inactiveTriggerProps:ep.EMPTY_OBJECT,popupProps:ep.EMPTY_OBJECT},disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeDelay:0,hasViewport:!1},...e},{popupRef:r.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new eg.PopupTriggerMap},ef)}setOpen=(e,t)=>{let s=t.reason,r=s===ee.REASONS.triggerHover,n=e&&s===ee.REASONS.triggerFocus,a=!e&&(s===ee.REASONS.triggerPress||s===ee.REASONS.escapeKey);if(t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},this.context.onOpenChange?.(e,t),t.isCanceled)return;let i=()=>{let r={open:e,openChangeReason:s};n?r.instantType="focus":a?r.instantType="dismiss":s===ee.REASONS.triggerHover&&(r.instantType=void 0);let i=t.trigger?.id??null;(i||e)&&(r.activeTriggerId=i,r.activeTriggerElement=t.trigger??null),this.update(r)};r?ei.flushSync(i):i()};static useStore(e,t){let s=(0,ed.useRefWithInit)(()=>new ev(t)).current,r=e??s,n=function(e){let{popupStore:t,noEmit:s=!1,treatPopupAsFloatingElement:r=!1,onOpenChange:n}=e,a=(0,ec.useId)(),i=null!=(0,eu.useFloatingParentNodeId)(),l=t.useState("open"),o=t.useState("activeTriggerElement"),d=t.useState(r?"popupElement":"positionerElement"),c=t.context.triggerElements,u=(0,ed.useRefWithInit)(()=>new ex.FloatingRootStore({open:l,referenceElement:o,floatingElement:d,triggerElements:c,onOpenChange:n,floatingId:a,nested:i,noEmit:s})).current;return(0,H.useIsoLayoutEffect)(()=>{let e={open:l,floatingId:a,referenceElement:o,floatingElement:d};(0,U.isElement)(o)&&(e.domReferenceElement=o),u.state.positionReference===u.state.referenceElement&&(e.positionReference=o),u.update(e)},[l,a,o,d,u]),u.context.onOpenChange=n,u.context.nested=i,u.context.noEmit=s,u}({popupStore:r,onOpenChange:r.setOpen});return r.state.floatingRootContext=n,r}}var ey=e.i(39692),eb=e.i(73469),ej=e.i(49308);let ek=r.createContext(void 0);var eN=e.i(59171),ew=e.i(57158);let eS=r.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new X.Timeout,currentIdRef:{current:null},currentContextRef:{current:null}});function eE(e){let{children:t,delay:n,timeoutMs:a=0}=e,i=r.useRef(n),l=r.useRef(n),o=r.useRef(null),d=r.useRef(null),c=(0,
1X.useTimeout)();return(0,s.jsx)(eS.Provider,{value:r.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:l,currentIdRef:o,timeoutMs:a,currentContextRef:d,timeout:c}),[a,c]),children:t})}var eC=e.i(75880),eM=e.i(24090);let ez=(0,et.createAttribute)("safe-polygon"),eT=`button,a,[role="button"],select,[tabindex]:not([tabindex="-1"]),${eM.TYPEABLE_SELECTOR}`;function eR(e){let t=r.useRef(void 0),s=r.useRef(!1),n=r.useRef(void 0),a=r.useRef(!0),i=r.useRef(!1),l=r.useRef(()=>{}),o=r.useRef(!1),d=(0,X.useTimeout)(),c=(0,X.useTimeout)(),u=r.useRef(void 0);return r.useMemo(()=>{let r=e.context.dataRef.current;return r.hoverInteractionState||(r.hoverInteractionState={pointerTypeRef:t,interactedInsideRef:s,handlerRef:n,blockMouseMoveRef:a,performedPointerEventsMutationRef:i,unbindMouseMoveRef:l,restTimeoutPendingRef:o,openChangeTimeout:d,restTimeout:c,handleCloseOptionsRef:u}),r.hoverInteractionState},[e,t,s,n,a,i,l,o,d,c,u])}function eA(e){return"function"==typeof e?e():e}let eO={current:null},eP=r.forwardRef(function(e,t){var s;let n,a,i,l,o,{className:d,render:c,handle:u,payload:x,disabled:m,delay:p,closeDelay:h,id:g,...f}=e,v=q(!0),y=u?.store??v;if(!y)throw Error((0,B.default)(82));let b=(0,ej.useBaseUiId)(g),j=y.useState("isTriggerActive",b),k=y.useState("isOpenedByTrigger",b),N=y.useState("floatingRootContext"),w=r.useRef(null),S=p??600,E=h??0,{registerTrigger:C,isMountedByThisTrigger:M}=(s={payload:x,closeDelay:E},n=y.useState("isMountedByTrigger",b),a=r.useRef(null),i=r.useRef(null),l=r.useCallback(e=>{if(void 0!==b){if(null!==a.current){let e=a.current,t=i.current,s=y.context.triggerElements.getById(e);t&&s===t&&y.context.triggerElements.delete(e),a.current=null,i.current=null}null!==e&&(a.current=b,i.current=e,y.context.triggerElements.add(b,e))}},[y,b]),o=(0,G.useStableCallback)(e=>{if(l(e),!e||!y.select("open"))return;let t=y.select("activeTriggerId");t===b?y.update({activeTriggerElement:e,...s}):null==t&&y.update({activeTriggerId:b,activeTriggerElement:e,...s})}),(0,H.useIsoLayoutEffect)(()=>{n&&y.update({activeTriggerElement:w.current,...s})},[n,y,w,...Object.values(s)]),{registerTrigger:o,isMountedByThisTrigger:n}),z=r.useContext(ek),{delayRef:T,isInstantPhase:R,hasProvider:A}=function(e,t={open:!1}){let s="rootStore"in e?e.rootStore:e,n=s.useState("floatingId"),{enabled:a=!0,open:i}=t,{currentIdRef:l,delayRef:o,timeoutMs:d,initialDelayRef:c,currentContextRef:u,hasProvider:x,timeout:m}=r.useContext(eS),[p,h]=r.useState(!1);return(0,H.useIsoLayoutEffect)(()=>{function e(){h(!1),u.current?.setIsInstantPhase(!1),l.current=null,u.current=null,o.current=c.current}if(a&&l.current&&!i&&l.current===n){if(h(!1),d)return m.start(d,()=>{s.select("open")||l.current&&l.current!==n||e()}),()=>{m.clear()};e()}},[a,i,n,l,o,d,c,u,m,s]),(0,H.useIsoLayoutEffect)(()=>{if(!a||!i)return;let e=u.current,t=l.current;m.clear(),u.current={onOpenChange:s.setOpen,setIsInstantPhase:h},l.current=n,o.current={open:0,close:(0,ew.getDelay)(c.current,"close")},null!==t&&t!==n?(h(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,(0,Q.createChangeEventDetails)(ee.REASONS.none))):(h(!1),e?.setIsInstantPhase(!1))},[a,i,n,s,l,o,d,c,u,m]),(0,H.useIsoLayoutEffect)(()=>()=>{u.current=null},[u]),r.useMemo(()=>({hasProvider:x,delayRef:o,isInstantPhase:p}),[x,o,p])}(N,{open:k});y.useSyncedValue("isInstantPhase",R);let O=y.useState("disabled"),P=y.useState("trackCursorAxis"),I=function(e,t={}){let s="rootStore"in e?e.rootStore:e,{dataRef:n,events:a}=s.context,{enabled:i=!0,delay:l=0,handleClose:o=null,mouseOnly:d=!1,restMs:c=0,move:u=!0,triggerElementRef:x=eO,externalTree:m,isActiveTrigger:p=!0}=t,h=(0,eu.useFloatingTree)(m),{pointerTypeRef:g,interactedInsideRef:f,handlerRef:v,blockMouseMoveRef:y,performedPointerEventsMutationRef:b,unbindMouseMoveRef:j,restTimeoutPendingRef:k,openChangeTimeout:N,restTimeout:w,handleCloseOptionsRef:S}=eR(s),E=(0,eC.useValueAsRef)(o),C=(0,eC.useValueAsRef)(l),M=(0,eC.useValueAsRef)(c);p&&(S.current=E.current?.__options);let z=(0,G.useStableCallback)(()=>!!f.current||!!n.current.openEvent&&["click","mousedown"].includes(n.current.openEvent.type)),T=r.useCallback((e,t=!0)=>{let r=(0,ew.getDelay)(C.current,"close",g.current);r&&!v.current?N.start(r,()=>s.setOpen(!1,(0,Q.createChangeEventDetails)(ee.REASONS.triggerHover,e))):t&&(N.clear(),s.setOpen(!1,(0,Q.createChangeEventDetails)(ee.REASONS.triggerHover,e)))},[C,v,s,g,N]),R=(0,G.useStableCallback)(()=>{j.current(),v.current=void 0}),A=(0,G.useStableCallback)(()=>
1{if(b.current){let e=(0,$.getDocument)(s.select("domReferenceElement")).body;e.style.pointerEvents="",e.removeAttribute(ez),b.current=!1}});r.useEffect(()=>{if(i)return a.on("openchange",e),()=>{a.off("openchange",e)};function e(e){e.open||(N.clear(),w.clear(),y.current=!0,k.current=!1)}},[i,a,N,w,y,k]);let O=(0,G.useStableCallback)(e=>{if(z()||!n.current.floatingContext)return;let t=s.context.triggerElements;if(e.relatedTarget&&t.hasElement(e.relatedTarget))return;let r=x.current;E.current?.({...n.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){A(),R(),z()||r!==s.select("domReferenceElement")||T(e)}})(e)});return r.useEffect(()=>{if(!i)return;let e=x.current??(p?s.select("domReferenceElement"):null);if((0,U.isElement)(e))return s.select("open")&&e.addEventListener("mouseleave",a),u&&e.addEventListener("mousemove",t,{once:!0}),e.addEventListener("mouseenter",t),e.addEventListener("mouseleave",r),()=>{e.removeEventListener("mouseleave",a),u&&e.removeEventListener("mousemove",t),e.removeEventListener("mouseenter",t),e.removeEventListener("mouseleave",r)};function t(e){if(N.clear(),y.current=!1,d&&!(0,J.isMouseLikePointerType)(g.current)||eA(M.current)>0&&!(0,ew.getDelay)(C.current,"open"))return;let t=(0,ew.getDelay)(C.current,"open",g.current),r=s.select("domReferenceElement"),n=s.context.triggerElements,a=(n.hasElement(e.target)||n.hasMatchingElement(t=>(0,$.contains)(t,e.target)))&&(!r||!(0,$.contains)(r,e.target)),i=e.currentTarget??null,l=s.select("open"),o=!l||a;a&&l?s.setOpen(!0,(0,Q.createChangeEventDetails)(ee.REASONS.triggerHover,e,i)):t?N.start(t,()=>{o&&s.setOpen(!0,(0,Q.createChangeEventDetails)(ee.REASONS.triggerHover,e,i))}):o&&s.setOpen(!0,(0,Q.createChangeEventDetails)(ee.REASONS.triggerHover,e,i))}function r(e){if(z())return void A();j.current();let t=s.select("domReferenceElement"),r=(0,$.getDocument)(t);w.clear(),k.current=!1;let a=s.context.triggerElements;if(!(e.relatedTarget&&a.hasElement(e.relatedTarget))){if(E.current&&n.current.floatingContext){s.select("open")||N.clear();let t=x.current;v.current=E.current({...n.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){A(),R(),z()||t!==s.select("domReferenceElement")||T(e,!0)}});let a=v.current;a(e),r.addEventListener("mousemove",a),j.current=()=>{r.removeEventListener("mousemove",a)};return}"touch"===g.current&&(0,$.contains)(s.select("floatingElement"),e.relatedTarget)||T(e)}}function a(e){O(e)}},[R,A,y,n,C,T,s,i,E,O,p,z,d,u,g,M,w,k,N,x,h,j,v]),r.useMemo(()=>{function e(e){g.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,r=e.currentTarget,n=s.select("domReferenceElement"),a=s.context.triggerElements,i=s.select("open"),l=(a.hasElement(e.target)||a.hasMatchingElement(t=>(0,$.contains)(t,e.target)))&&(!n||!(0,$.contains)(n,e.target));function o(){if(k.current=!1,z())return;let e=s.select("open");y.current||e&&!l||s.setOpen(!0,(0,Q.createChangeEventDetails)(ee.REASONS.triggerHover,t,r))}(!d||(0,J.isMouseLikePointerType)(g.current))&&(!i||l)&&0!==eA(M.current)&&(!l&&k.current&&e.movementX**2+e.movementY**2<2||(w.clear(),"touch"===g.current?ei.flushSync(()=>{o()}):l&&i?o():(k.current=!0,w.start(eA(M.current),o))))}}},[y,z,d,s,g,M,w,k])}(N,{enabled:!(m??O),mouseOnly:!0,move:!1,handleClose:y.useState("disableHoverablePopup")||"both"===P?null:(0,eN.safePolygon)(),restMs(){let e=z?.delay,t="object"==typeof T.current?T.current.open:void 0,s=S;return A&&(s=0!==t?p??e??S:0),s},delay(){let e="object"==typeof T.current?T.current.close:void 0,t=E;return null==h&&A&&(t=e),{close:t}},triggerElementRef:w,isActiveTrigger:j}),L=r.useMemo(()=>({open:k}),[k]),D=y.useState("triggerProps",M);return(0,eb.useRenderElement)("button",e,{state:L,ref:[t,C,w],props:[I,D,{id:b},f],stateAttributesMapping:ey.triggerOpenStateMapping})}),eI=r.createContext(void 0);var eL=e.i(92191);let eD=r.forwardRef(function(e,t){let{children:n,container:a,className:i,render:l,...o}=e,{portalNode:d,portalSubtree:c}=(0,eL.useFloatingPortalNode)({container:a,ref:t,componentProps:e,elementProps:o});return c||d?(0,s.jsxs)(r.Fragment,{children:[c,d&&ei.createPortal(n,d)]}):null}),eW=r.forwardRef(function(e,t){let{keepMounted:r=!1,...n}=e;return q().useState("mounted")||r?(0,s.jsx)(eI.Provider,{value:r,children:(0,s.jsx)(eD,{ref:t,...n})}):null}),eF=r.createContext(void 0);function e_(){let e=r.useContext(eF);if(void 0===e)throw Error((0,B.default)(71));return e}var eH=e.i(57322),eB=e.i(80134),eV=e.i(25919),eq=e.i(95370);let eU=r.forwardRef(function(e,t){let{render:n,className:a,anchor:i,positionMethod:l="absolute",side:o="top",align:d="center",sideOffset:c=0,alignOffset:u=0,collisionBoundary:x="clipping-ancestors",collisionPadding:m=5,arrowPadding:p=5,sticky:h=!1,disableAnchorTracking:g=!1,collisionAvoidance:f=eB.POPUP_COLLISION_AVOIDANCE,...v}=e,y=q(),b=function(){let e=r.useContext(eI);if(void 0===e)throw Error((0,B.default)(70));return e}(),j=y.useState("open"),k=y.useState("mounted"),N=y.useState("trackCursorAxis"),w=y.useState("disableHoverablePopup"),S=y.useState("floatingRootContext"),E=y.useState("instantType"),C=y.useState("transitionStatus"),M=y.useState("hasViewport"),z=(0,eH.useAnchorPositioning)({anchor:i,positionMethod:l,floatingRootContext:S,mounted:k,side:o,sideOffset:c,align:d,alignOffset:u,collisionBoundary:x,collisionPadding:m,sticky:
1h,arrowPadding:p,disableAnchorTracking:g,keepMounted:b,collisionAvoidance:f,adaptiveOrigin:M?eV.adaptiveOrigin:void 0}),T=r.useMemo(()=>{let e={};return(!j||"both"===N||w)&&(e.pointerEvents="none"),{role:"presentation",hidden:!k,style:{...z.positionerStyles,...e}}},[j,N,w,k,z.positionerStyles]),R=r.useMemo(()=>({open:j,side:z.side,align:z.align,anchorHidden:z.anchorHidden,instant:"none"!==N?"tracking-cursor":E}),[j,z.side,z.align,z.anchorHidden,N,E]),A=r.useMemo(()=>({...R,arrowRef:z.arrowRef,arrowStyles:z.arrowStyles,arrowUncentered:z.arrowUncentered}),[R,z.arrowRef,z.arrowStyles,z.arrowUncentered]),O=(0,eb.useRenderElement)("div",e,{state:R,props:[T,(0,eq.getDisabledMountTransitionStyles)(C),v],ref:[t,y.useStateSetter("positionerElement")],stateAttributesMapping:ey.popupStateMapping});return(0,s.jsx)(eF.Provider,{value:A,children:O})});var eG=e.i(63400);let e$=new Set(["click","mousedown"]),eJ={...ey.popupStateMapping,...eG.transitionStatusMapping},eY=r.forwardRef(function(e,t){let{className:s,render:n,...a}=e,i=q(),{side:l,align:o}=e_(),d=i.useState("open"),c=i.useState("instantType"),u=i.useState("transitionStatus"),x=i.useState("popupProps"),m=i.useState("floatingRootContext");(0,ea.useOpenChangeComplete)({open:d,ref:i.context.popupRef,onComplete(){d&&i.context.onOpenChangeComplete?.(!0)}}),!function(e,t={}){let s="rootStore"in e?e.rootStore:e,n=s.useState("open"),a=s.useState("floatingElement"),i=s.useState("domReferenceElement"),{dataRef:l}=s.context,{enabled:o=!0,closeDelay:d=0,externalTree:c}=t,{pointerTypeRef:u,interactedInsideRef:x,handlerRef:m,performedPointerEventsMutationRef:p,unbindMouseMoveRef:h,restTimeoutPendingRef:g,openChangeTimeout:f,handleCloseOptionsRef:v}=eR(s),y=(0,eu.useFloatingTree)(c),b=(0,eu.useFloatingParentNodeId)(),j=(0,G.useStableCallback)(()=>!!x.current||!!l.current.openEvent&&e$.has(l.current.openEvent.type)),k=(0,G.useStableCallback)(()=>{let e=l.current.openEvent?.type;return e?.includes("mouse")&&"mousedown"!==e}),N=r.useCallback((e,t=!0)=>{var r,n;let a=(r=d,(n=u.current)&&!(0,J.isMouseLikePointerType)(n)?0:"function"==typeof r?r():r);a&&!m.current?f.start(a,()=>s.setOpen(!1,(0,Q.createChangeEventDetails)(ee.REASONS.triggerHover,e))):t&&(f.clear(),s.setOpen(!1,(0,Q.createChangeEventDetails)(ee.REASONS.triggerHover,e)))},[d,m,s,u,f]),w=(0,G.useStableCallback)(()=>{h.current(),m.current=void 0}),S=(0,G.useStableCallback)(()=>{if(p.current){let e=(0,$.getDocument)(a).body;e.style.pointerEvents="",e.removeAttribute(ez),p.current=!1}}),E=(0,G.useStableCallback)(e=>{var t;if(!((t=(0,$.getTarget)(e))&&t.closest(eT))){x.current=!1;return}x.current=!0});(0,H.useIsoLayoutEffect)(()=>{n||(u.current=void 0,g.current=!1,x.current=!1,w(),S())},[n,u,g,x,w,S]),r.useEffect(()=>()=>{w()},[w]),r.useEffect(()=>S,[S]),(0,H.useIsoLayoutEffect)(()=>{if(o&&n&&v.current?.blockPointerEvents&&k()&&(0,U.isElement)(i)&&a){p.current=!0;let e=(0,$.getDocument)(a).body;e.setAttribute(ez,"");let t=y?.nodesRef.current.find(e=>e.id===b)?.context?.elements.floating;return t&&(t.style.pointerEvents=""),e.style.pointerEvents="none",i.style.pointerEvents="auto",a.style.pointerEvents="auto",()=>{e.style.pointerEvents="",i.style.pointerEvents="",a.style.pointerEvents=""}}},[o,n,i,a,v,k,y,b,p]),r.useEffect(()=>{if(o)return a&&(a.addEventListener("mouseleave",e),a.addEventListener("mouseenter",t),a.addEventListener("mouseleave",r),a.addEventListener("pointerdown",E,!0)),()=>{a&&(a.removeEventListener("mouseleave",e),a.removeEventListener("mouseenter",t),a.removeEventListener("mouseleave",r),a.removeEventListener("pointerdown",E,!0))};function e(e){if(j()||!l.current.floatingContext||!s.select("open"))return;let t=s.context.triggerElements;!(e.relatedTarget&&t.hasElement(e.relatedTarget))&&(S(),w(),j()||N(e))}function t(e){f.clear(),S(),m.current?.(e),w()}function r(e){j()||N(e,!1)}})}(m,{enabled:!i.useState("disabled"),closeDelay:i.useState("closeDelay")});let p=r.useMemo(()=>({open:d,side:l,align:o,instant:c,transitionStatus:u}),[d,l,o,c,u]);return(0,eb.useRenderElement)("div",e,{state:p,ref:[t,i.context.popupRef,i.useStateSetter("popupElement")],props:[x,(0,eq.getDisabledMountTransitionStyles)(u),a],stateAttributesMapping:eJ})}),eZ=r.forwardRef(function(e,t){let{className:s,render:n,...a}=e,i=q().useState("instantType"),{open:l,arrowRef:o,side:d,align:c,arrowUncentered:u,arrowStyles:x}=e_(),m=r.useMemo(()=>({open:l,side:d,align:c,uncentered:u,instant:i}),[l,d,c,u,i]);return(0,eb.useRenderElement)("div",e,{state:m,ref:[t,o],props:[{style:x,"aria-hidden":!0},a],stateAttributesMapping:ey.popupStateMapping})});var eK=e.i(16706),eX=e.i(65751),eQ=e.i(83848),e0=e.i(68849);let e1="u">typeof ResizeObserver,e2=()=>!0;function e4(e,t,s){let r=e.style.getPropertyValue(t);return e.style.setProperty(t,s),()=>{e.style.setProperty(t,r)}}function e3(e,t){let s=[];for(let[r,n]of Object.entries(t))s.push(e4(e,r,n));return s.length?()=>
1{s.forEach(e=>e())}:ep.NOOP}function e5(e,t){let s="auto"===t?"auto":`${t.width}px`,r="auto"===t?"auto":`${t.height}px`;e.style.setProperty("--popup-width",s),e.style.setProperty("--popup-height",r)}function e6(e,t){let s="max-content"===t?"max-content":`${t.width}px`,r="max-content"===t?"max-content":`${t.height}px`;e.style.setProperty("--positioner-width",s),e.style.setProperty("--positioner-height",r)}let e8=((t={}).popupWidth="--popup-width",t.popupHeight="--popup-height",t);var e9=e.i(4690);let e7={activationDirection:e=>e?{"data-activation-direction":e}:null},te=r.forwardRef(function(e,t){let n,{render:a,className:i,children:l,...o}=e,d=q(),c=e_(),u=(0,e9.useDirection)(),x=d.useState("activeTriggerElement"),m=d.useState("open"),p=d.useState("instantType"),h=d.useState("mounted"),g=d.useState("payload"),f=d.useState("popupElement"),v=d.useState("positionerElement"),y=function(e){let[t,s]=r.useState({current:e,previous:null});return e!==t.current&&s({current:e,previous:t.current}),t.previous}(m?x:null),b=r.useRef(null),[j,k]=r.useState(null),[N,w]=r.useState(null),S=r.useRef(null),E=r.useRef(null),C=(0,eQ.useAnimationsFinished)(S,!0,!1),M=(0,eX.useAnimationFrame)(),[z,T]=r.useState(null),[R,A]=r.useState(!1);(0,H.useIsoLayoutEffect)(()=>(d.set("hasViewport",!0),()=>{d.set("hasViewport",!1)}),[d]);let O=(0,G.useStableCallback)(()=>{S.current?.style.setProperty("animation","none"),S.current?.style.setProperty("transition","none"),E.current?.style.setProperty("display","none")}),P=(0,G.useStableCallback)(e=>{S.current?.style.removeProperty("animation"),S.current?.style.removeProperty("transition"),E.current?.style.removeProperty("display"),e&&T(e)}),I=r.useRef(null);(0,H.useIsoLayoutEffect)(()=>{var e,t;let s,r,n,a;x&&y&&x!==y&&I.current!==x&&b.current&&(k(b.current),A(!0),w((e=y,t=x,s=e.getBoundingClientRect(),r=t.getBoundingClientRect(),n={x:s.left+s.width/2,y:s.top+s.height/2},{horizontal:(a={x:r.left+r.width/2,y:r.top+r.height/2}).x-n.x,vertical:a.y-n.y})),M.request(()=>{M.request(()=>{A(!1),C(()=>{k(null),T(null),b.current=null})})}),I.current=x)},[x,y,j,C,M]),(0,H.useIsoLayoutEffect)(()=>{let e=S.current;if(!e)return;let t=document.createElement("div");for(let s of Array.from(e.childNodes))t.appendChild(s.cloneNode(!0));b.current=t});let L=null!=j;n=L?(0,s.jsxs)(r.Fragment,{children:[(0,s.jsx)("div",{"data-previous":!0,inert:(0,eK.inertValue)(!0),ref:E,style:{[e8.popupWidth]:`${z?.width}px`,[e8.popupHeight]:`${z?.height}px`,position:"absolute"},"data-ending-style":R?void 0:""},"previous"),(0,s.jsx)("div",{"data-current":!0,ref:S,"data-starting-style":R?"":void 0,children:l},"current")]}):(0,s.jsx)("div",{"data-current":!0,ref:S,children:l},"current"),(0,H.useIsoLayoutEffect)(()=>{let e=E.current;e&&j&&e.replaceChildren(...Array.from(j.childNodes))},[j]),function(e){let{popupElement:t,positionerElement:s,content:n,mounted:a,enabled:i=e2,onMeasureLayout:l,onMeasureLayoutComplete:o,side:d,direction:c}=e,u=(0,eQ.useAnimationsFinished)(t,!0,!1),x=(0,eX.useAnimationFrame)(),m=r.useRef(null),p=r.useRef(null),h=r.useRef(!0),g=r.useRef(ep.NOOP),f=(0,G.useStableCallback)(l),v=(0,G.useStableCallback)(o),y=r.useMemo(()=>{let e="top"===d,t="left"===d;return"rtl"===c?(e=e||"inline-end"===d,t=t||"inline-end"===d):(e=e||"inline-start"===d,t=t||"inline-start"===d),e?{position:"absolute",["top"===d?"bottom":"top"]:"0",[t?"right":"left"]:"0"}:ep.EMPTY_OBJECT},[d,c]);(0,H.useIsoLayoutEffect)(()=>{if(!a||!i()||!e1){g.current=ep.NOOP,h.current=!0,m.current=null,p.current=null;return}if(!t||!s)return;g.current=e3(t,y);let e=new ResizeObserver(e=>{let t=e[0];t&&(p.current={width:Math.ceil(t.borderBoxSize[0].inlineSize),height:Math.ceil(t.borderBoxSize[0].blockSize)})});e.observe(t),e5(t,"auto");let r=e4(t,"position","static"),n=e4(t,"transform","none"),l=e4(t,"scale","1"),o=e3(s,{"--available-width":"max-content","--available-height":"max-content"});function d(){r(),n(),o()}if(f?.(),h.current||null===m.current){e6(s,"max-content");let r=(0,e0.getCssDimensions)(t);return m.current=r,e6(s,r),d(),l(),v?.(null,r),h.current=!1,()=>{e.disconnect(),g.current(),g.current=ep.NOOP}}e5(t,"auto"),e6(s,"max-content");let c=m.current??p.current,b=(0,e0.getCssDimensions)(t);if(m.current=b,!c)return e6(s,b),d(),l(),v?.(null,b),()=>{e.disconnect(),x.cancel(),g.current(),g.current=ep.NOOP};e5(t,c),d(),v?.(c,b),e6(s,b);let j=new AbortController;return x.request(()=>{e5(t,b),u(()=>{t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto")},j.signal)}
1),()=>{e.disconnect(),j.abort(),x.cancel(),g.current(),g.current=ep.NOOP}},[n,t,s,u,x,i,a,f,v,y])}({popupElement:f,positionerElement:v,mounted:h,content:g,onMeasureLayout:O,onMeasureLayoutComplete:P,side:c.side,direction:u});let D=r.useMemo(()=>({activationDirection:function(e){if(e)return`${function(e,t,s,r){return e>t?s:e<-t?r:""}(e.horizontal,5,"right","left")} ${function(e,t,s,r){return e>t?s:e<-t?r:""}(e.vertical,5,"down","up")}`}(N),transitioning:L,instant:p}),[N,L,p]);return(0,eb.useRenderElement)("div",e,{state:D,ref:t,props:[o,{children:n}],stateAttributesMapping:e7})});class tt{constructor(){this.store=new ev}open(e){let t=e?this.store.context.triggerElements.getById(e):void 0;if(e&&!t)throw Error((0,B.default)(81,e));this.store.setOpen(!0,(0,Q.createChangeEventDetails)(ee.REASONS.imperativeAction,void 0,t))}close(){this.store.setOpen(!1,(0,Q.createChangeEventDetails)(ee.REASONS.imperativeAction,void 0,void 0))}get isOpen(){return this.store.state.open}}e.s(["Arrow",0,eZ,"Handle",0,tt,"Popup",0,eY,"Portal",0,eW,"Positioner",0,eU,"Provider",0,function(e){let{delay:t,closeDelay:n,timeout:a=400}=e,i=r.useMemo(()=>({delay:t,closeDelay:n}),[t,n]),l=r.useMemo(()=>({open:t,close:n}),[t,n]);return(0,s.jsx)(ek.Provider,{value:i,children:(0,s.jsx)(eE,{delay:l,timeoutMs:a,children:e.children})})},"Root",0,function(e){let t,{disabled:n=!1,defaultOpen:a=!1,open:i,disableHoverablePopup:l=!1,trackCursorAxis:o="none",actionsRef:d,onOpenChange:c,onOpenChangeComplete:u,handle:x,triggerId:m,defaultTriggerId:p=null,children:h}=e,g=ev.useStore(x?.store,{open:i??a,activeTriggerId:void 0!==m?m:p});g.useControlledProp("open",i,a),g.useControlledProp("activeTriggerId",m,p),g.useContextCallback("onOpenChange",c),g.useContextCallback("onOpenChangeComplete",u);let f=g.useState("open"),v=!n&&f,y=g.useState("activeTriggerId"),b=g.useState("payload");g.useSyncedValues({trackCursorAxis:o,disableHoverablePopup:l}),(0,H.useIsoLayoutEffect)(()=>{f&&n&&g.setOpen(!1,(0,Q.createChangeEventDetails)(ee.REASONS.disabled))},[f,n,g]),g.useSyncedValue("disabled",n),t=g.useState("open"),(0,H.useIsoLayoutEffect)(()=>{if(t&&!g.select("activeTriggerId")&&1===g.context.triggerElements.size){let e=g.context.triggerElements.entries().next();if(!e.done){let[t,s]=e.value;g.update({activeTriggerId:t,activeTriggerElement:s})}}},[t,g]);let{forceUnmount:j,transitionStatus:k}=function(e,t){let{mounted:s,setMounted:r,transitionStatus:n}=(0,en.useTransitionStatus)(e);t.useSyncedValues({mounted:s,transitionStatus:n});let a=(0,G.useStableCallback)(()=>{r(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),t.context.onOpenChangeComplete?.(!1)}),i=t.useState("preventUnmountingOnClose");return(0,ea.useOpenChangeComplete)({enabled:!i,open:e,ref:t.context.popupRef,onComplete(){e||a()}}),{forceUnmount:a,transitionStatus:n}}(v,g),N=g.useState("isInstantPhase"),w=g.useState("instantType"),S=g.useState("lastOpenChangeReason"),E=r.useRef(null);(0,H.useIsoLayoutEffect)(()=>{"ending"===k&&S===ee.REASONS.none||"ending"!==k&&N?("delay"!==w&&(E.current=w),g.set("instantType","delay")):null!==E.current&&(g.set("instantType",E.current),E.current=null)},[k,N,S,w,g]),(0,H.useIsoLayoutEffect)(()=>{v&&null==y&&g.set("payload",void 0)},[g,y,v]);let C=r.useCallback(()=>{var e,t;let s;g.setOpen(!1,(e=g,t=ee.REASONS.imperativeAction,(s=(0,Q.createChangeEventDetails)(t)).preventUnmountOnClose=()=>{e.set("preventUnmountingOnClose",!0)},s))},[g]);r.useImperativeHandle(d,()=>({unmount:j,close:C}),[j,C]);let M=g.useState("floatingRootContext"),z=function(e,t={}){let s="rootStore"in e?e.rootStore:e,{events:n,dataRef:a}=s.context,{enabled:i=!0,visibleOnly:l=!0,delay:o}=t,d=r.useRef(!1),c=r.useRef(null),u=(0,X.useTimeout)(),x=r.useRef(!0);r.useEffect(()=>{let e=s.select("domReferenceElement");if(!i)return;let t=(0,U.getWindow)(e);function r(){let e=s.select("domReferenceElement");!s.select("open")&&(0,U.isHTMLElement)(e)&&e===(0,$.activeElement)((0,$.getDocument)(e))&&(d.current=!0)}function n(){x.current=!0}function a(){x.current=!1}return t.addEventListener("blur",r),es&&(t.addEventListener("keydown",n,!0),t.addEventListener("pointerdown",a,!0)),()=>{t.removeEventListener("blur",r),es&&(t.removeEventListener("keydown",n,!0),t.removeEventListener("pointerdown",a,!0))}},[s,i]),r.useEffect(()=>{if(i)return n.on("openchange",e),()=>{n.off("openchange",e)};function e(e){if(e.reason===ee.REASONS.triggerPress||e.reason===ee.REASONS.escapeKey){let e=s.select("domReferenceElement");(0,U.isElement)(e)&&(c.current=e,d.current=!0)}}},[n,i,s]);let m=r.useMemo(()=>({onMouseLeave(){d.current=!1,c.current=null},onFocus(e){let t=e.currentTarget;if(d.current){if(c.current===t)return;d.current=!1,c.current=null}let r=(0,$.getTarget)(e.nativeEvent);if(l&&(0,U.isElement)(r)){if(es&&!e.relatedTarget){if(!x.current&&!(0,$.isTypeableElement)(r))return}else if(!(0,$.matchesFocusVisible)(r))return}let n=e.relatedTarget&&s.context.triggerElements.hasElement(e.relatedTarget),{nativeEvent:a,currentTarget:i}=e,m="function"==typeof o?o():o;s.select("open")&&n||0===m||void 0===m?s.setOpen(!0,(0,Q.createChangeEventDetails)(ee.REASONS.triggerFocus,a,i)):u.start(m,()=>{d.current||s.setOpen(!0,(0,Q.createChangeEventDetails)(ee.REASONS.triggerFocus,a,i))})},onBlur(e){d.current=!1,c.current=null;let t=e.relatedTarget,r=e.nativeEvent,n=(0,U.isElement)(t)&&t.hasAttribute((0,et.createAttribute)("focus-guard"))&&"outside"===t.getAttribute("data-type");u.start(0,()=>{let e=s.select("domReferenceElement"),i=(0,$.activeElement)(e?e.ownerDocument:document);if(!t&&i===e||(0,$.contains)(a.current.floatingContext?.refs.floating.current,i)||(0,$.contains)(e,i)||n)return;let l=t??i;if((0,U.isElement)(l)){let e=s.context.triggerElements;if(e.hasElement(l)||e.hasMatchingElement(e=>(0,$.contains)(e,l)))return}s.setOpen(!1,(0,Q.createChangeEventDetails)(ee.REASONS.triggerFocus,r))})}}),[a,s,l,u,o]);return r.useMemo(()=>i?{reference:m,trigger:m}:{},[i,m])}(M,{enabled:!n}),T=(0,Z.useDismiss)(M,{enabled:!n,referencePress:!0}),R=function(e,t={}){let s="rootStore"in e?e.rootStore:e,n=s.useState("open"),a=s.useState("floatingElement"),i=s.useState("domReferenceElement"),l=s.context.dataRef,{enabled:o=!0,axis:d="both",x:c=null,y:u=null}=t,x=r.useRef(!1),m=r.useRef(null),[p,h]=r.useState(),[g,f]=r.useState([]),v=(0,G.useStableCallback)((e,t,r)=>{if(!x.current&&(!l.current.openEvent||Y(l.current.openEvent))){var n,a;let o,c,u;s.set("positionReference",(n=r??i,a={x:e,y:t,axis:d,dataRef:l,pointerType:p},o=null,c=null,u=!1,{contextElement:n||void 0,getBoundingClientRect(){let e=n?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},t="x"===a.axis||"both"===a.axis,s="y"===a.axis||"both"===a.axis,r=["mouseenter","mousemove"].includes(a.dataRef.current.openEvent?.type||"")&&"touch"!==a.pointerType,i=e.width,l=e.height,d=e.x,x=e.y;return null==o&&a.x&&t&&(o=e.x-a.x),null==c&&a.y&&s&&(c=e.y-a.y),d-=o||0,x-=c||0,i=0,l=0,!u||r?(i="y"===a.axis?e.width:0,l="x"===a.axis?e.height:0,d=t&&null!=a.x?a.x:d,x=s&&null!=a.y?a.y:x):u&&!r&&(l="x"===a.axis?e.height:l,i="y"===a.axis?e.width:i),u=!0,{width:i,height:l,x:d,y:x,top:x,right:d+i,bottom:x+l,left:d}}}))}}),y=(0,G.useStableCallback)(e=>{null==c&&null==u&&(n?m.current||f([]):v(e.clientX,e.clientY,e.currentTarget))}),b=(0,J.isMouseLikePointerType)(p)?a:n,j=r.useCallback(()=>
1{if(!b||!o||null!=c||null!=u)return;let e=(0,U.getWindow)(a);function t(s){let r=(0,$.getTarget)(s);(0,$.contains)(a,r)?(e.removeEventListener("mousemove",t),m.current=null):v(s.clientX,s.clientY)}if(!l.current.openEvent||Y(l.current.openEvent)){e.addEventListener("mousemove",t);let s=()=>{e.removeEventListener("mousemove",t),m.current=null};return m.current=s,s}s.set("positionReference",i)},[b,o,c,u,a,l,i,s,v]);r.useEffect(()=>j(),[j,g]),r.useEffect(()=>{o&&!a&&(x.current=!1)},[o,a]),r.useEffect(()=>{!o&&n&&(x.current=!0)},[o,n]),(0,H.useIsoLayoutEffect)(()=>{o&&(null!=c||null!=u)&&(x.current=!1,v(c,u))},[o,c,u,v]);let k=r.useMemo(()=>{function e(e){h(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:y,onMouseEnter:y}},[y]);return r.useMemo(()=>o?{reference:k,trigger:k}:{},[o,k])}(M,{enabled:!n&&"none"!==o,axis:"none"===o?void 0:o}),{getReferenceProps:A,getFloatingProps:O,getTriggerProps:P}=(0,er.useInteractions)([z,T,R]),I=r.useMemo(()=>A(),[A]),L=r.useMemo(()=>P(),[P]),D=r.useMemo(()=>O(),[O]);return g.useSyncedValues({activeTriggerProps:I,inactiveTriggerProps:L,popupProps:D}),(0,s.jsx)(V.Provider,{value:g,children:"function"==typeof h?h({payload:b}):h})},"Trigger",0,eP,"Viewport",0,te,"createHandle",0,function(){return new tt}],99486);var ts=e.i(99486),ts=ts;function tr({delay:e=0,...t}){return(0,s.jsx)(ts.Provider,{"data-slot":"tooltip-provider",delay:e,...t})}function tn({...e}){return(0,s.jsx)(tr,{children:(0,s.jsx)(ts.Root,{"data-slot":"tooltip",...e})})}function ta({...e}){return(0,s.jsx)(ts.Trigger,{"data-slot":"tooltip-trigger",...e})}function ti({className:e,side:t="top",sideOffset:r=4,align:n="center",alignOffset:a=0,children:i,...l}){return(0,s.jsx)(ts.Portal,{children:(0,s.jsx)(ts.Positioner,{align:n,alignOffset:a,side:t,sideOffset:r,className:"isolate z-50",children:(0,s.jsxs)(ts.Popup,{"data-slot":"tooltip-content",className:(0,c.cn)("data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-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 rounded-md px-3 py-1.5 text-xs bg-foreground text-background z-50 w-fit max-w-xs origin-(--transform-origin)",e),...l,children:[i,(0,s.jsx)(ts.Arrow,{className:"size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground z-50 data-[side=bottom]:top-1 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]})})})}var tl=e.i(69035);let to=r.createContext(null),td=r.forwardRef(({className:e,value:t,onValueChange:r,...n},a)=>(0,s.jsx)(to.Provider,{value:{value:t,onValueChange:r},children:(0,s.jsx)("div",{ref:a,className:(0,c.cn)("",e),...n})}));td.displayName="Tabs";let tc=r.forwardRef(({className:e,...t},r)=>(0,s.jsx)("div",{ref:r,className:(0,c.cn)("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));tc.displayName="TabsList";let tu=r.forwardRef(({className:e,value:t,...n},a)=>{let i=r.useContext(to),l=i?.value===t;return(0,s.jsx)("button",{ref:a,type:"button",className:(0,c.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",l&&"bg-background text-foreground shadow-sm",e),onClick:()=>i?.onValueChange(t),...n})});tu.displayName="TabsTrigger";let tx=r.forwardRef(({className:e,value:t,...n},a)=>{let i=r.useContext(to);return i?.value!==t?null:(0,s.jsx)("div",{ref:a,className:(0,c.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...n})});tx.displayName="TabsContent";var tm=e.i(11369);let tp=new Intl.DateTimeFormat("en-US",{timeZone:"UTC",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit",hour12:!0});function th(e){return tp.format(new Date(e))}function tg(...e){return e.filter(Boolean).join(" ")}function tf(e){return e.toLowerCase().replace(/\s+/g,"-")}function tv({execution:e}){let{setSelectedNodeId:t}=P(),r="ws_123",n=e.parent_wf_exec_id,a=n?{wf:n.wf_id,exec:n.exec_id}:null;return(0,s.jsxs)("div",{className:"space-y-2 p-4 text-xs text-muted-foreground",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(w.default,{className:"size-3"}),(0,s.jsx)("span",{children:"Trigger type"})]}),(0,s.jsx)("div",{className:"ml-auto",children:(0,s.jsxs)(tn,{children:[(0,s.jsx)(ta,{children:(0,s.jsxs)(d.Badge,{variant:"secondary",className:"flex items-center gap-1 text-foreground
1/70",children:[function(e){switch(e){case"manual":return(0,s.jsx)("div",{className:"relative rounded-full bg-blue-400",children:(0,s.jsx)(j,{className:tg("size-3 scale-[0.8] stroke-white",void 0),strokeWidth:2.5})});case"scheduled":return(0,s.jsx)("div",{className:"relative rounded-full bg-amber-500",children:(0,s.jsx)(g,{className:tg("size-3 scale-[0.7] stroke-white",void 0),strokeWidth:2.5})});case"webhook":return(0,s.jsx)("div",{className:"relative rounded-full bg-purple-400",children:(0,s.jsx)(k,{className:tg("size-3 scale-[0.7] stroke-white",void 0),strokeWidth:2.5})});default:return console.error(`Unknown trigger type: ${e}`),(0,s.jsx)(x,{className:tg("size-3 text-gray-600",void 0)})}}(e.trigger_type),(0,s.jsx)("span",{children:e.trigger_type.charAt(0).toUpperCase()+e.trigger_type.slice(1)})]})}),(0,s.jsx)(ti,{side:"top",className:"font-mono tracking-tight",children:e.id})]})})]}),(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(f.CircleDot,{className:"size-3"}),(0,s.jsx)("span",{children:"Status"})]}),(0,s.jsx)("div",{className:"ml-auto",children:(0,s.jsxs)(tn,{children:[(0,s.jsx)(ta,{children:(0,s.jsxs)(d.Badge,{variant:"secondary",className:"ml-auto flex items-center gap-1 text-foreground/70 hover:cursor-default",children:[(e.status,(0,s.jsx)(T.CircleCheck,{className:"size-3 text-foreground/60",strokeWidth:2})),e.status.toLowerCase().split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")]})}),(0,s.jsx)(ti,{side:"top",className:"font-mono tracking-tight",children:e.id})]})})]}),(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(h,{className:"size-3"}),(0,s.jsx)("span",{children:"Scheduled"})]}),(0,s.jsx)(d.Badge,{variant:"secondary",className:"ml-auto font-normal text-foreground/60",children:th(e.start_time)})]}),(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(p,{className:"size-3"}),(0,s.jsx)("span",{children:"Start time"})]}),(0,s.jsx)(d.Badge,{variant:"secondary",className:"ml-auto font-normal text-foreground/60",children:e.execution_time?th(e.execution_time):"..."})]}),(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(m,{className:"size-3"}),(0,s.jsx)("span",{children:"End time"})]}),(0,s.jsx)(d.Badge,{variant:"secondary",className:"ml-auto font-normal text-foreground/60",children:e.close_time?th(e.close_time):"..."})]}),a&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(v,{className:"size-3"}),(0,s.jsx)("span",{children:"Parent run"})]}),(0,s.jsx)(d.Badge,{variant:"outline",className:"ml-auto text-foreground/70",children:(0,s.jsx)(R.default,{href:`/workspaces/${r}/workflows/${a.wf}/executions/${a.exec}`,children:(0,s.jsxs)(tn,{children:[(0,s.jsx)(ta,{children:(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsx)("span",{className:"font-normal",children:"View detailed run"}),(0,s.jsx)(b,{className:"size-3"})]})}),(0,s.jsx)(ti,{side:"right",children:(0,s.jsx)("span",{children:a.exec})})]})})})]}),(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(N.default,{className:"size-3"}),(0,s.jsx)("span",{children:"Parent workflow"})]}),(0,s.jsx)(d.Badge,{variant:"outline",className:"ml-auto text-foreground/70",children:(0,s.jsx)(R.default,{href:`/workspaces/${r}/workflows/${a.wf}`,onClick:()=>{t(null)},children:(0,s.jsxs)(tn,{children:[(0,s.jsx)(ta,{children:(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsx)("span",{className:"font-normal",children:"Go to workflow"}),(0,s.jsx)(b,{className:"size-3"})]})}),(0,s.jsx)(ti,{side:"right",children:(0,s.jsx)("span",{children:a.wf})})]})})})]})]})]})}function ty({events:e,status:t}){let n,{selectedActionEventRef:a,setSelectedActionEventRef:i,setNodes:l,canvasRef:o,sidebarRef:c}=P(),{workflow:x}=A(),[m,p]=(0,r.useState)(!0),h=(n={}
1,e.forEach(e=>{let t=e.action_ref||"unknown";n[t]||(n[t]=[]),n[t].push(e)}),n);(0,r.useCallback)(e=>{let t=Object.values(x?.actions||{}).find(t=>tf(t.title)===e),s=t?.id;s&&(l(e=>e.map(e=>({...e,selected:e.id===t.id}))),o.current?.centerOnNode(s))},[x?.actions,l,o]);let v=(0,r.useCallback)(e=>{a===e?i(void 0):i(e)},[a,i]);(0,r.useCallback)(e=>void 0!==Object.values(x?.actions||{}).find(t=>tf(t.title)===e),[x]);let b=(0,r.useCallback)(e=>{let t=e.map(e=>e.status);return t.some(e=>"FAILED"===e)?"FAILED":t.some(e=>"TIMED_OUT"===e)?"TIMED_OUT":t.some(e=>"CANCELED"===e)?"CANCELED":t.some(e=>"TERMINATED"===e)?"TERMINATED":t.some(e=>"STARTED"===e)?"STARTED":t.some(e=>"SCHEDULED"===e)?"SCHEDULED":t.every(e=>"COMPLETED"===e)?"COMPLETED":t.some(e=>"DETACHED"===e)?"DETACHED":"UNKNOWN"},[]),j=(0,r.useCallback)(e=>{let t=e.map(e=>e.start_time).filter(Boolean).sort();return t.length>0?t[t.length-1]:null},[]);return(0,s.jsxs)(_.ScrollArea,{className:"p-4 pt-0",children:[(0,s.jsx)("div",{className:"pointer-events-none mb-2 flex items-center justify-between",children:(0,s.jsxs)("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[(0,s.jsx)(g,{className:"size-3"}),(0,s.jsx)("span",{children:"Events"})]})}),m&&(0,s.jsx)("div",{className:"overflow-hidden rounded-md border",children:(0,s.jsx)("div",{className:"relative",children:Object.keys(h).length>0?Object.entries(h).map(([e,t],r,n)=>{b(t),j(t);let i=t.length,l=0===r,o=r===n.length-1;return"oauth-analyst-agent"===e?(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:tg("absolute left-[18px] w-px bg-gray-300",l?"top-[18px]":"top-0",o?"bottom-[18px]":"bottom-0")}),(0,s.jsxs)(tm.Collapsible,{defaultOpen:!0,children:[(0,s.jsxs)(tm.CollapsibleTrigger,{className:"group flex w-full cursor-pointer items-center border-b border-muted/30 px-3 py-2 text-xs transition-all last:border-b-0 hover:bg-muted/50 data-[state=open]:bg-muted/30 relative z-10",children:[(0,s.jsx)("div",{className:"relative z-10 mr-2.5 flex size-3.5 items-center justify-center rounded-full bg-background transition-all",children:(0,s.jsx)(z.Loader2,{className:"size-3.5 animate-spin text-muted-foreground"})}),(0,s.jsxs)("div",{className:"flex flex-1 items-center justify-between",children:[(0,s.jsx)("div",{className:"flex items-center gap-2",children:(0,s.jsx)("div",{className:"truncate text-foreground/70 font-medium",children:"OAuth analyst agent"})}),(0,s.jsx)(C.ChevronDown,{className:"size-3.5 text-muted-foreground transition-transform group-data-[state=closed]:-rotate-90"})]})]}),(0,s.jsx)(tm.CollapsibleContent,{children:(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:"absolute left-[18px] top-[18px] bottom-[18px] w-px bg-gray-300"}),(0,s.jsxs)("div",{className:"pl-[18px]",children:[" ",(0,s.jsxs)("div",{className:"relative flex items-center py-1.5 pl-6 pr-3 text-xs hover:bg-muted/50 border-b border-muted/30",children:[(0,s.jsx)("div",{className:"absolute left-0 top-1/2 w-3.5 h-px bg-gray-300"}),(0,s.jsx)("div",{className:"relative z-10 mr-2.5 flex size-3.5 items-center justify-center rounded-full bg-background",children:(0,s.jsx)(T.CircleCheck,{className:"size-3.5 text-emerald-500",strokeWidth:2})}),(0,s.jsx)("div",{className:"flex flex-1 items-center justify-between",children:(0,s.jsx)("div",{className:"truncate text-foreground/70",children:"Notify owner"})})]}),(0,s.jsxs)("div",{className:"relative flex items-start py-1.5 pl-6 pr-3 text-xs hover:bg-muted/50 border-b border-muted/30",children:[(0,s.jsx)("div",{className:"absolute left-0 top-[13px] w-3.5 h-px bg-gray-300"}),(0,s.jsx)("div",{className:"relative z-10 mr-2.5 mt-[3px] rounded-full bg-background",children:(0,s.jsx)(z.Loader2,{className:"size-3.5 animate-spin text-muted-foreground"})}),(0,s.jsx)("div",{className:"flex flex-1 items-center justify-between",children:(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("div",{className:"truncate text-foreground/70",children:"Revoke grant"}),(0,s.jsxs)(d.Badge,{variant:"outline",className:"w-fit gap-1 border-muted bg-muted/50 px-1.5 py-0.5 text-[9px] font-medium text-muted-foreground shadow-none",children:[(0,s.jsx)(M.Shield,{className:"size-2"}),"Approval required"]})]})})]})]})]})})]})]},e):(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:tg("absolute left-[18px] w-px bg-gray-300",l?"top-[18px]":"top-0",o?"bottom-[
118px]":"bottom-0")}),(0,s.jsxs)("div",{className:tg("group flex h-9 cursor-pointer items-center border-b border-muted/30 px-3 py-2 text-xs transition-all last:border-b-0 hover:bg-muted/50",a===e&&"bg-muted-foreground/10"),onClick:()=>v(e),children:[(0,s.jsx)("div",{className:"relative z-10 mr-2.5 flex size-3.5 items-center justify-center rounded-full bg-background transition-all group-hover:bg-muted/50",children:(0,s.jsx)(T.CircleCheck,{className:"size-3.5 text-emerald-500",strokeWidth:2})}),(0,s.jsxs)("div",{className:"flex flex-1 items-center justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"truncate text-foreground/70",children:e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}),i>1&&(0,s.jsxs)(d.Badge,{variant:"secondary",className:"h-4 px-1.5 text-[10px] font-medium text-foreground/60",children:[i,"x"]})]}),(0,s.jsx)("div",{className:"flex items-center gap-2",children:(0,s.jsx)(u,{className:"size-3.5 text-muted-foreground"})})]})]})]},e)}):(0,s.jsx)("div",{className:"flex h-16 items-center justify-center bg-muted-foreground/5 p-3 text-center text-xs text-muted-foreground",children:(0,s.jsx)("div",{className:"flex items-center justify-center gap-2",children:"RUNNING"===t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(y,{className:"size-3 animate-spin text-muted-foreground"}),(0,s.jsx)("span",{children:"Waiting for events..."})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(f.CircleDot,{className:"size-3 text-muted-foreground"}),(0,s.jsx)("span",{children:"No events"})]})})})})})]})}let tb=["manual","scheduled","webhook"];function tj({title:e,description:t,actionLabel:r}){return(0,s.jsxs)("div",{className:"flex h-full flex-col items-center justify-center p-4 text-center",children:[(0,s.jsx)("h3",{className:"mb-2 font-medium",children:e}),(0,s.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:t}),r&&(0,s.jsx)(F.Button,{variant:"outline",children:r})]})}function tk({level:e,message:t}){return(0,s.jsx)("div",{className:tg("p-4 m-2 rounded border","error"===e?"bg-red-50 text-red-900 border-red-200":""),children:t})}function tN({execution:e,type:t}){return(0,s.jsxs)("div",{className:"p-4",children:["Action Event Pane: ",t]})}function tw(){let{workflowId:e}=A(),{sidebarRef:t,currentExecutionId:n}=P(),[a,i]=(0,r.useState)("workflow-events"),[l,o]=(0,r.useState)(!1),[d]=function(e){let[t,s]=(0,r.useState)(e);return[t,s]}([...tb]),{lastExecution:c,lastExecutionIsLoading:u,lastExecutionError:x}=function({workflowId:e,triggerTypes:t}){return{lastExecution:{id:"exec_123"},lastExecutionIsLoading:!1,lastExecutionError:null}}({workflowId:n?void 0:e,triggerTypes:d}),m=n||c?.id;return(console.debug({currentExecId:n,lastExecId:c?.id,executionIdUsed:m,lastExecIsLoading:u,lastExecError:x,selectedTriggers:d}),(0,r.useEffect)(()=>{t.current&&(t.current.setActiveTab=i,t.current.getActiveTab=()=>a,t.current.setOpen=e=>{o(e),t.current?.collapse&&t.current?.expand&&(e?t.current.expand():t.current.collapse())},t.current.isOpen=()=>l)},[t,a,o,l]),!n&&u)?(0,s.jsxs)("div",{className:"flex h-full flex-col items-center justify-center space-y-2",children:[(0,s.jsx)("span",{className:"text-xs text-muted-foreground",children:"Fetching last execution..."}),(0,s.jsx)(W.Spinner,{className:"size-6"})]}):!n&&x?(0,s.jsx)(tk,{level:"error",message:`Error loading last execution: ${x.message}`}):m?(0,s.jsx)(tS,{activeTab:a,executionId:m}):(0,s.jsx)(tj,{title:"No workflow runs",description:"Get started by running your workflow",actionLabel:"New workflow"})}function tS({activeTab:e,executionId:t}){let{appSettings:r}={appSettings:{app_interactions_enabled:!0}},{sidebarRef:n}=P(),{execution:a,executionIsLoading:i,executionError:l}={execution:{id:t,trigger_type:"webhook",status:"COMPLETED",start_time:D,execution_time:D,close_time:D,events:[{id:"evt_1",type:"trigger",status:"COMPLETED",start_time:L(5),action_ref:"trigger"},{id:"evt_2",type:"action",status:"COMPLETED",start_time:L(4),action_ref:"scatter"},{id:"evt_agent",type:"action",status:"RUNNING",start_time:L(1),action_ref:"oauth-analyst-agent"}]},executionIsLoading:!1,executionError:null};if(console.debug({execId:a?.id,execIsLoading:i,execError:l}),i)return(0,s.jsxs)("div",{className:"flex h-full flex-col items-center justify-center space-y-2",children:[(0,s.jsx)("span",{className:"text-xs text-muted-foreground",children:"Fetching events..."}),(0,s.jsx)(W.Spinner,{className:"size-6"})]});if(l)return(0,s.jsx)(tk,{level:"error",message:`Error loading execution: ${l.message}`});if(!a)return(0,s.jsx)(tj,{title:"Could not find execution",description:"Please refresh the page and try again"});let o=[{value:"workflow-events",label:"Events",icon:g,disabled:!1,content:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(tv,{execution:a}),(0,s.jsx)(ty,{events:a.events,status:a.status})]})},{value:"action-input",label:"Input",icon:S,disabled:!0,content:(0,s.jsx)(tN,{execution:a,type:"input"})},{value:"action-result",label:"Result",icon:E,disabled:!0,content:(0,s.jsx)(tN,{execution:a,type:"result"})}];return(0,s.jsx)("div",{className:"h-full",children:(0,s.jsxs)(td,{value:e,onValueChange:e=>{n.current?.setActiveTab&&n.current.setActiveTab(e)},className:"flex size-full flex-col",children:[(0,s.jsx)("div",{className:"sticky top-0 z-10 mt-0.5 bg-background",children:(0,s.jsxs)(_.ScrollArea,{className:"w-full whitespace-nowrap rounded-md",children:[(0,s.jsx)(tc,{className:"inline-flex h-8 flex-1 items-center justify-start bg-transparent p-0",children:o.map(e=>(0,s.jsxs)(tu,{value:e.value,disabled:e.disabled,className:"flex h-full min-w-20 items-center justify-center rounded-none py-0 text-xs data-[state=active]:bg-transparent data-[state=active]:shadow-none sm:min-w-16 md:min-w-20 disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,s.jsx)(e.icon,{className:"mr-2 size-4 sm:mr-1"}),(0,s.jsx)("span",{className:"hidden sm:inline",children:e.label}),(0,s.jsx)("span",{className:"sm:hidden",children:e.label.slice(0,4)})]},e.value))}),(0,s.jsx)(_.ScrollBar,{orientation:"horizontal",className:"invisible"})]})}),(0,s.jsx)(tl.Separator,{}),(0,s.jsx)("div",{className:"size-full overflow-scroll",children:o.map(e=>(0,s.jsx)(tx,{value:e.value,className:"m-0 size-full min-w-[200px] p-0",children:e.content},e.value))})]})})}function tE({icon:e,title:t,subtitle:r,isPrimary:n=!1,className:a,children:i}
1){return(0,s.jsxs)("div",{className:(0,c.cn)("relative flex items-center gap-2.5 rounded-lg border bg-background px-3 py-2",n?"border-primary":"border-border/60",a),children:[(0,s.jsx)("div",{className:"flex size-7 items-center justify-center rounded-md border border-border/40 bg-muted/30",children:(0,s.jsx)(e,{className:"size-3.5 text-muted-foreground"})}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("p",{className:"text-[11px] font-medium truncate",children:t}),(0,s.jsx)("p",{className:"text-[9px] text-muted-foreground truncate",children:r})]}),i]})}e.s(["WorkflowBuilderScreen",0,function({className:e}){let[t,a]=(0,r.useState)(!1),[u,x]=(0,r.useState)({x:0,y:24}),[m,p]=(0,r.useState)({x:0,y:0}),h=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=h.current;e&&x({x:Math.round((e.clientWidth-1173)/2),y:24})},[]);let g=()=>{a(!1)};return(0,s.jsxs)("div",{className:(0,c.cn)("flex h-full w-full overflow-hidden rounded-lg border border-border bg-background",e),children:[(0,s.jsx)("aside",{className:"flex h-full w-[280px] shrink-0 flex-col border-r border-border bg-muted/30",children:(0,s.jsx)(tw,{})}),(0,s.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between border-b border-border px-4 py-2 bg-background",children:[(0,s.jsx)("span",{className:"font-medium text-sm",children:"OAuth grant review"}),(0,s.jsx)("div",{className:"text-[10px] text-muted-foreground font-medium",children:"Drag to pan"})]}),(0,s.jsx)("div",{ref:h,className:"relative flex-1 overflow-hidden bg-[radial-gradient(circle,_#e5e5e5_1px,_transparent_1px)] select-none cursor-grab active:cursor-grabbing",onMouseDown:e=>{a(!0),p({x:e.clientX-u.x,y:e.clientY-u.y})},onMouseMove:e=>{t&&x({x:e.clientX-m.x,y:e.clientY-m.y})},onMouseUp:g,onMouseLeave:g,style:{backgroundPosition:`${u.x}px ${u.y}px`,backgroundSize:"16px 16px"},children:(0,s.jsx)("div",{className:"absolute inset-0",style:{transform:`translate(${u.x}px, ${u.y}px) scale(0.9775)`},children:(0,s.jsxs)("div",{className:"relative h-[600px] w-[1200px]",children:[(0,s.jsxs)("svg",{className:"pointer-events-none absolute inset-0",width:"1200",height:"600",children:[(0,s.jsx)("circle",{cx:"220",cy:"70",r:"3",fill:"#d4d4d8"}),(0,s.jsx)("path",{d:"M 226 70 L 514 70",stroke:"#d4d4d8",strokeWidth:"1.5",fill:"none"}),(0,s.jsx)("path",{d:"M 514 66 L 520 70 L 514 74 Z",fill:"#d4d4d8"}),(0,s.jsx)("circle",{cx:"370",cy:"70",r:"3",fill:"#d4d4d8"}),(0,s.jsx)("path",{d:"M 370 76 L 370 182 C 370 197, 385 212, 420 212 L 514 212",stroke:"#d4d4d8",strokeWidth:"1.5",fill:"none"}),(0,s.jsx)("path",{d:"M 514 208 L 520 212 L 514 216 Z",fill:"#d4d4d8"}),(0,s.jsx)("circle",{cx:"700",cy:"70",r:"3",fill:"#d4d4d8"}),(0,s.jsx)("path",{d:"M 706 70 L 754 70",stroke:"#d4d4d8",strokeWidth:"1.5",fill:"none"}),(0,s.jsx)("path",{d:"M 754 66 L 760 70 L 754 74 Z",fill:"#d4d4d8"}),(0,s.jsx)("circle",{cx:"890",cy:"170",r:"3",fill:"#d4d4d8"}),(0,s.jsx)("path",{d:"M 890 176 L 890 205",stroke:"#d4d4d8",strokeWidth:"1.5",fill:"none"}),(0,s.jsx)("path",{d:"M 886 205 L 890 211 L 894 205 Z",fill:"#d4d4d8"})]}),(0,s.jsx)("div",{className:"absolute left-[40px] top-[48px]",children:(0,s.jsx)(tE,{icon:l.Zap,title:"Trigger",subtitle:"New OAuth consent",className:"w-[180px]"})}),(0,s.jsx)("div",{className:"absolute left-[300px] top-[56px]",children:(0,s.jsx)(d.Badge,{variant:"outline",className:"h-5 rounded bg-white px-2 text-[9px] font-mono text-muted-foreground",children:"@grant.scope == 'high_risk'"})}),(0,s.jsx)("div",{className:"absolute left-[300px] top-[102px]",children:(0,s.jsx)(d.Badge,{variant:"outline",className:"h-5 rounded bg-white px-2 text-[9px] font-mono text-muted-foreground",children:"@grant.scope == 'low_risk'"})}),(0,s.jsx)("div",{className:"absolute left-[520px] top-[48px]",children:(0,s.jsx)(tE,{icon:i,title:"Scatter",subtitle:"Split by user",className:"w-[180px]"})}),(0,s.jsx)("div",{className:"absolute left-[520px] top-[190px]",children:(0,s.jsx)(tE,{icon:n.Play,title:"Close alert",subtitle:"Allowlisted app",className:"w-[180px]"})}),(0,s.jsxs)("div",{className:"absolute left-[760px] top-[20px] h-[280px] w-[260px] rounded-lg border border-dashed border-border/60 bg-muted/20",children:[(0,s.jsx)("div",{className:"px-3 py-1.5 text-[10px] font-semibold text-muted-foreground uppercase tracking-wider",children:"For loop"}),(0,s.jsx)("div",{className:"absolute left-3 top-9",children:(0,s.jsxs)("div",{className:"relative flex flex-col gap-3 rounded-lg border border-border/60 bg-background px-3 py-2.5 w-[236px]",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,s.jsx)("div",{className:"flex size-7 items-center justify-center rounded-md border border-border/40 bg-muted/30",children:(0,s.jsx)(o.SquareMousePointer,{className:"size-3.5 text-muted-foreground"})}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("p",{className:"text-[11px] font-medium truncate",children:"OAuth analyst agent"}),(0,s.jsx)("p",{className:"text-[9px] text-muted-foreground truncate",children:"AI Agent"})]})]}),(0,s.jsxs)("div",{className:"flex flex-wrap gap-1.5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5 rounded border border-border/40 bg-muted/30 px-2 py-1 text-[10px] text-muted-foreground font-medium",children:[(0,s.jsx)("img",{src:"/logos/integrations/gmail.svg",alt:"Google Worksp
1ace",className:"size-3.5 opacity-60"}),(0,s.jsx)("span",{children:"Revoke Google grant"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-1.5 rounded border border-border/40 bg-muted/30 px-2 py-1 text-[10px] text-muted-foreground font-medium",children:[(0,s.jsx)("img",{src:"/logos/integrations/entra.svg",alt:"Microsoft Entra",className:"size-3.5 opacity-60"}),(0,s.jsx)("span",{children:"Revoke Entra grant"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-1.5 rounded border border-border/40 bg-muted/30 px-2 py-1 text-[10px] text-muted-foreground font-medium",children:[(0,s.jsx)("img",{src:"/logos/integrations/slack.svg",alt:"Slack",className:"size-3.5 opacity-60"}),(0,s.jsx)("span",{children:"Notify owner"})]})]})]})}),(0,s.jsx)("div",{className:"absolute left-3 top-[190px]",children:(0,s.jsx)(tE,{icon:n.Play,title:"Run subflow",subtitle:"Account quarantine",className:"w-[236px]"})})]})]})})})]})]})}],71920)},87134,e=>{"use strict";var t=e.i(42531),s=e.i(82616),r=e.i(54267),n=e.i(49202),a=e.i(98468);let i=(0,e.i(98631).default)("git-commit-horizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);var l=e.i(39257),o=e.i(48363);let d="relative overflow-hidden rounded-xl border border-border bg-background h-[340px] w-full";function c({title:e,description:s,visual:r}){return(0,t.jsxs)("div",{className:"grid grid-rows-subgrid row-span-2 gap-4 min-w-0",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1.5 px-1",children:[(0,t.jsx)("p",{className:"text-base font-medium text-foreground/80",children:e}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed",children:s})]}),(0,t.jsx)("div",{className:"w-full min-w-0",children:r})]})}function u(){return(0,t.jsxs)("div",{className:`${d} flex flex-col`,children:[(0,t.jsxs)("div",{className:"flex items-center justify-between border-b border-border px-3 py-2.5 text-[11px]",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 text-foreground",children:[(0,t.jsx)(n.FileText,{className:"size-3 text-muted-foreground"}),(0,t.jsx)("span",{className:"font-mono",children:"phishing-triage.md"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5 text-muted-foreground",children:[(0,t.jsx)(i,{className:"size-3"}),(0,t.jsx)("span",{className:"font-mono",children:"a1b2c3"})]})]}),(0,t.jsxs)("div",{className:"flex-1 py-2 font-mono text-[11px] leading-relaxed",children:[(0,t.jsx)(x,{number:19,children:"Triage user emails."}),(0,t.jsx)(x,{number:20,children:"Parse headers and detonate links."}),(0,t.jsx)(x,{number:21,kind:"del",children:"Use Falcon to look up the user."}),(0,t.jsx)(x,{number:21,kind:"add",children:"Use Falcon to look up activity."}),(0,t.jsx)(x,{number:22,kind:"add",children:"If credentials entered, revoke Okta."}),(0,t.jsx)(x,{number:23,kind:"add",children:"Quarantine the host in Falcon."}),(0,t.jsx)(x,{number:24,kind:"add",children:"Page the on-call responder."})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 border-t border-border px-3 py-2.5 text-[11px]",children:[(0,t.jsx)(r.Check,{className:"size-3 text-primary"}),(0,t.jsx)("span",{className:"text-foreground",children:"Approved by @alex"})]})]})}function x({number:e,kind:s,children:r}){return(0,t.jsxs)("div",{className:`flex px-2 ${"add"===s?"bg-emerald-50/80 text-emerald-700/90":"del"===s?"bg-red-50/80 text-red-700/90":"text-foreground/80"}`,children:[(0,t.jsx)("span",{className:"w-6 shrink-0 select-none pr-2 text-right text-muted-foreground/60",children:e}),(0,t.jsx)("span",{className:"w-3 shrink-0",children:"add"===s?"+":"del"===s?"-":""}),(0,t.jsx)("span",{className:"truncate",children:r})]})}function m(){let e=[{icon:n.FileText,action:"Updated",file:"phishing-triage.md",time:"2 min ago"},{icon:o.Workflow,action:"Synced",file:"cloud-enrich.yaml",time:"18 min ago"},{icon:l.Sparkles,action:"Created",file:"isolate_host.py",time:"1 h ago"},{icon:a.GitBranch,action:"Branched",file:"investigate-okta",time:"3 h ago"},{icon:i,action:"Merged",file:"rotate-aws-keys",time:"yesterday"}];return(0,t.jsxs)("div",{className:`${d} flex flex-col`,children:[(0,t.jsxs)("div",{className:"flex items-center justify-between border-b border-border px-3 py-2.5 text-[11px]",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 text-foreground",children:[(0,t.jsx)(a.GitBranch,{className:"size-3 text-muted-foreground"}),(0,t.jsx)("span",{className:"font-mono",children:"security-automation"})]}),(0,t.jsx)("span",{className:"font-mono text-muted-foreground",children:"main"})]}),(0,t.jsx)("div",{className:"flex flex-1 flex-col",children:e.map(({icon:e,action:s,file:r,time:n})=>(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 text-[11px]",children:[(0,t.jsx)(e,{className:"size-3 shrink-0 text-primary"}),(0,t.jsx)("span",{className:"text-muted-foreground",children:s}),(0,t.jsx)("span",{className:"truncate font-mono text-foreground",children:r}),(0,t.jsx)("span",{className:"ml-auto shrink-0 text-muted-foreground",children:n})]},r))})]})}
1function p(){let[e,n]=(0,s.useState)("py");return(0,t.jsxs)("div",{className:`${d} flex flex-col`,children:[(0,t.jsxs)("div",{className:"flex items-end gap-4 border-b border-border px-3 pt-2",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>n("yml"),className:`relative pb-2 text-[11px] font-mono ${"yml"===e?"text-foreground":"text-muted-foreground hover:text-foreground"}`,children:["urlscan.yml","yml"===e&&(0,t.jsx)("span",{className:"absolute bottom-0 left-0 right-0 h-[2px] bg-primary"})]}),(0,t.jsxs)("button",{type:"button",onClick:()=>n("py"),className:`relative pb-2 text-[11px] font-mono ${"py"===e?"text-foreground":"text-muted-foreground hover:text-foreground"}`,children:["urlscan.py","py"===e&&(0,t.jsx)("span",{className:"absolute bottom-0 left-0 right-0 h-[2px] bg-primary"})]})]}),(0,t.jsx)("div",{className:"flex-1 overflow-hidden py-2 font-mono text-[11px] leading-relaxed",children:"py"===e?(0,t.jsx)(h,{}):(0,t.jsx)(g,{})}),(0,t.jsx)("div",{className:"flex items-center gap-3 border-t border-border px-3 py-2.5 text-[11px]",children:"py"===e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"flex items-center gap-1 font-mono text-foreground",children:[(0,t.jsx)(r.Check,{className:"size-3 text-emerald-600"}),"ruff"]}),(0,t.jsxs)("span",{className:"flex items-center gap-1 font-mono text-foreground",children:[(0,t.jsx)(r.Check,{className:"size-3 text-emerald-600"}),"mypy"]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"flex items-center gap-1 font-mono text-foreground",children:[(0,t.jsx)(r.Check,{className:"size-3 text-emerald-600"}),"yamllint"]}),(0,t.jsxs)("span",{className:"flex items-center gap-1 font-mono text-foreground",children:[(0,t.jsx)(r.Check,{className:"size-3 text-emerald-600"}),"schema"]})]})})]})}function h(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(f,{number:1,children:[(0,t.jsx)("span",{className:"text-violet-600",children:"from"})," tracecat_registry"," ",(0,t.jsx)("span",{className:"text-violet-600",children:"import"})," RegistrySecret, registry"]}),(0,t.jsx)(f,{number:2}),(0,t.jsxs)(f,{number:3,children:["urlscan = RegistrySecret(name=",(0,t.jsx)("span",{className:"text-emerald-600",children:'"urlscan"'}),", keys=[",(0,t.jsx)("span",{className:"text-emerald-600",children:'"URLSCAN_API_KEY"'}),"])"]}),(0,t.jsx)(f,{number:4}),(0,t.jsxs)(f,{number:5,highlighted:!0,children:[(0,t.jsx)("span",{className:"text-primary",children:"@registry.register"}),"("]}),(0,t.jsxs)(f,{number:6,highlighted:!0,children:["    default_title=",(0,t.jsx)("span",{className:"text-emerald-600",children:'"Look up URL"'}),","]}),(0,t.jsxs)(f,{number:7,highlighted:!0,children:["    namespace=",(0,t.jsx)("span",{className:"text-emerald-600",children:'"tools.urlscan"'}),","]}),(0,t.jsx)(f,{number:8,highlighted:!0,children:"    secrets=[urlscan],"}),(0,t.jsx)(f,{number:9,highlighted:!0,children:")"}),(0,t.jsxs)(f,{number:10,children:[(0,t.jsx)("span",{className:"text-violet-600",children:"async def"})," ",(0,t.jsx)("span",{className:"text-blue-600",children:"lookup_url"}),"(url:"," ",(0,t.jsx)("span",{className:"text-amber-700",children:"str"}),")"," ",(0,t.jsx)("span",{className:"text-violet-600",children:"->"})," ",(0,t.jsx)("span",{className:"text-amber-700",children:"dict"}),":"]}),(0,t.jsxs)(f,{number:11,children:["    ",(0,t.jsx)("span",{className:"text-violet-600",children:"return await"})," client.post("]}),(0,t.jsxs)(f,{number:12,children:["        ",(0,t.jsx)("span",{className:"text-emerald-600",children:'"https://urlscan.io/api/v1/scan/"'}),","]}),(0,t.jsxs)(f,{number:13,children:["        json={","url",(0,t.jsx)("span",{className:"text-violet-600",children:":"})," url","})"]})]})}function g(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(f,{number:1,children:[(0,t.jsx)("span",{className:"text-violet-600",children:"type"}),": action"]}),(0,t.jsxs)(f,{number:2,children:[(0,t.jsx)("span",{className:"text-violet-600",children:"definition"}),":"]}),(0,t.jsxs)(f,{number:3,children:["  ",(0,t.jsx)("span",{className:"text-violet-600",children:"title"}),": Look up URL"]}),(0,t.jsxs)(f,{number:4,children:["  ",(0,t.jsx)("span",{className:"text-violet-600",children:"name"}),": lookup_url"]}),(0,t.jsxs)(f,{number:5,children:["  ",(0,t.jsx)("span",{className:"text-violet-600",children:"namespace"}),": tools.urlscan"]}),(0,t.jsxs)(f,{number:6,children:["  ",(0,t.jsx)("span",{className:"text-violet-600",children:"expects"}),":"]}),(0,t.jsxs)(f,{number:7,children:["    ",(0,t.jsx)("span",{className:"text-violet-600",children:"url"}),":"]}),(0,t.jsxs)(f,{number:8,children:["      ",(0,t.jsx)("span",{className:"text-violet-600",children:"type"}),":"," ",(0,t.jsx)("span",{className:"text-amber-700",children:"str"})]}),(0,t.jsxs)(f,{number:9,children:["  ",(0,t.jsx)("span",{className:"text-violet-600",children:"steps"}),":"]}),(0,t.jsxs)(f,{number:10,children:["    - ",(0,t.jsx)("span",{className:"text-violet-600",children:"ref"}),": scan"]}),(0,t.jsxs)(f,{number:11,children:["      ",(0,t.jsx)("span",{className:"text-violet-600",children:"action"}),": core.http_request"]}),(0,t.jsxs)(f,{number:12,children:["      ",(0,t.jsx)("span",{className:"text-violet-600",children:"args"}),":"]}),(0,t.jsxs)(f,{number:13,children:["        ",(0,t.jsx)("span",{className:"text-violet-600",children:"method"}),": POST"]}),(0,t.jsxs)(f,{number:14,children:["        ",(0,t.jsx)("span",{className:"text-violet-600",children:"url"}),":"," ",(0,t.jsx)("span",{className:"text-emerald-600",children:"https://urlscan.io/api/v1/scan/"})]})]})}function f({number:e,highlighted:s,children:r}){return(0,t.jsxs)("div",{className:`flex px-2 ${s?"bg-primary/[0.04] border-l-2 border-primary":"border-l-2 border-transparent"}`,children:[(0,t.jsx)("span",{className:"w-6 shrink-0 select-none pr-2 text-right text-muted-foreground
1/60",children:e}),(0,t.jsx)("span",{className:"overflow-hidden whitespace-pre text-foreground/85",children:r})]})}e.s(["SoarCodeShowcase",0,function(){return(0,t.jsx)("section",{className:"py-14 lg:py-20",children:(0,t.jsxs)("div",{className:"flex flex-col gap-12 lg:gap-16",children:[(0,t.jsx)("div",{className:"flex flex-col gap-5 text-center max-w-3xl mx-auto",children:(0,t.jsx)("h2",{className:"text-3xl font-medium leading-tight tracking-tight text-foreground md:text-4xl",children:"Code when it matters. GitOps for everything."})}),(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-x-8 gap-y-4 md:grid-cols-3 md:grid-rows-[auto_1fr]",children:[(0,t.jsx)(c,{title:"Sync everything to Git",description:"Push and pull prompts, workflows, skills, and integrations between Tracecat and your own Git repo. Your repo stays the source of truth.",visual:(0,t.jsx)(m,{})}),(0,t.jsx)(c,{title:"Custom Python and dependencies",description:"Write Python actions and pin dependencies, then sync the package directly into Tracecat for agents and workflows.",visual:(0,t.jsx)(p,{})}),(0,t.jsx)(c,{title:"Prompt versioning",description:"Diff, review, and roll back every change to agent prompts and skills, with full audit history.",visual:(0,t.jsx)(u,{})})]})]})})}],87134)},77984,e=>{"use strict";var t=e.i(42531),s=e.i(82616),r=e.i(47163),n=e.i(43293),a=e.i(72200),i=e.i(11152),l=e.i(98631);let o=(0,l.default)("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]),d=(0,l.default)("cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]);var c=e.i(30059),c=c,u=e.i(71435);let x={breadcrumb:"Incident response agent",agentName:"Incident response agent",tools:[{icon:"shield",label:"Splunk"},{icon:"shield",label:"Sentinel"},{icon:"shield",label:"Elastic"},{logo:"/logos/integrations/wiz.svg",label:"Wiz (CNAPP)"},{logo:"/logos/integrations/crowdstrike.svg",label:"Falcon (EDR)"},{icon:"cloud",label:"CloudTrail"},{icon:"bell",label:"On-call"}],goal:"Triage and tune cloud alerts into actionable findings, then draft an IR runbook with containment steps.",instructions:["Pull related alerts from SIEM, EDR, and CNAPP.","Correlate with CloudTrail and identity logs.","Draft an IR runbook with containment and rollback steps."]},m={shield:i.Shield,cloud:d,bell:o};function p({className:e,useCase:s}){let l=s??x;return(0,t.jsxs)("div",{className:(0,r.cn)("flex flex-col h-full w-full bg-background font-sans",e),children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-6 py-4 text-[13px] text-muted-foreground border-b border-border/40",children:[(0,t.jsx)("span",{children:"Runbooks"}),(0,t.jsx)("span",{className:"text-muted-foreground/40",children:"/"}),(0,t.jsx)("span",{className:"text-foreground font-medium",children:l.breadcrumb})]}),(0,t.jsx)(u.ScrollArea,{className:"flex-1",children:(0,t.jsxs)("div",{className:"p-6 space-y-5",children:[(0,t.jsx)("div",{className:"flex items-start justify-between",children:(0,t.jsx)("div",{className:"text-2xl font-semibold tracking-tight",children:l.agentName})}),(0,t.jsx)("div",{className:"flex items-center gap-2",children:(0,t.jsxs)("button",{className:"flex items-center gap-2 bg-transparent px-0 py-1 text-[13px] text-foreground",children:[(0,t.jsx)("img",{src:"/logos/integrations/claude.svg",alt:"Claude",className:"size-4"}),(0,t.jsx)("span",{className:"font-medium",children:"Opus 4.5"}),(0,t.jsx)(a.ChevronDown,{className:"size-3 text-muted-foreground"})]})}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[l.tools.map((e,s)=>{let r=e.icon?m[e.icon]:null;return(0,t.jsxs)("div",{className:"flex items-center gap-1.5 bg-muted/30 border border-border/60 rounded-md px-2 py-1 text-[12px] text-foreground",children:[e.logo?(0,t.jsx)("img",{src:e.logo,alt:e.label,className:"size-3.5 opacity-80"}):r?(0,t.jsx)(r,{className:"size-3 text-muted-foreground"}):(0,t.jsx)(i.Shield,{className:"size-3 text-muted-foreground"}),(0,t.jsx)("span",{children:e.label}),(0,t.jsx)("button",{className:"hover:text-destructive transition-colors",children:(0,t.jsx)(c.default,{className:"size-3 opacity-50"})})]},s)}),(0,t.jsxs)("button",{className:"flex items-center gap-1 text-[12px] text-muted-foreground hover:text-foreground px-2",children:[(0,t.jsx)(n.Plus,{className:"size-3"}),"Add integration"]})]}),(0,t.jsxs)("div",{className:"space-y-4 max-w-lg",children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("div",{className:"text-[13px] font-medium text-foreground",children:"Goal"}),(0,t.jsx)("p",{className:"text-[13px] text-muted-foreground leading-relaxed",children:l.goal})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("div",{className:"text-[13px] font-medium text-foreground",children:"Instructions"}),(0,t.jsx)("div",{className:"space-y-1 pl-4 border-l border-border/40",children:l.instructions.map((e,s)=>(0,t.jsxs)("p",{className:"text-[13px] text-muted-foreground",children:[s+1,". ",e]},s))})]})]})]})})]})}var h=e.i(12452),g=e.i(86914);function f({title:e,children:r}
1){let[n,i]=(0,s.useState)(!0);return(0,t.jsxs)("div",{className:"border border-border/50 rounded-md bg-muted/20 overflow-hidden",children:[(0,t.jsxs)("button",{onClick:()=>i(!n),className:"flex items-center gap-2 w-full px-3 py-2 text-[12px] text-muted-foreground hover:bg-muted/30 transition-colors",children:[n?(0,t.jsx)(a.ChevronDown,{className:"size-3"}):(0,t.jsx)(g.ChevronRight,{className:"size-3"}),(0,t.jsx)("span",{children:e})]}),n&&(0,t.jsx)("div",{className:"px-3 pb-2 pt-0",children:r})]})}let v={agentTitle:"SOC analyst agent",alertId:"Alert ALT-8742",exchanges:[{user:"Falcon flagged a malicious npm post-install on WS-042.",thoughtTitle:"Analyzing alert...",thoughtSteps:["Cross-referencing GitHub advisories — matches Shai-Hulud campaign","WS-042 ran post-install for @ctrl/[email protected]"],response:(0,t.jsxs)(t.Fragment,{children:["Looks like Shai-Hulud exposure. Recommend isolating WS-042 in Falcon and auditing the 7 repos that reference ",(0,t.jsx)("span",{className:"font-mono",children:"@ctrl/tinycolor"}),"."]}),responseBullets:["Quarantine WS-042 via Falcon","Block outbound traffic to known C2 domains"]},{user:"Open a case and rotate our org's npm tokens.",response:"Drafting now. I'll also pull endpoint inventory from MDM to find any other exposed hosts.",responseBullets:["Create CASE-0054 with full IOC list","Rotate npm + GitHub PAT tokens via GitHub API"]}]};function y({className:e,useCase:s}){let n=s??v;return(0,t.jsxs)("div",{className:(0,r.cn)("flex flex-col h-full w-full bg-background font-sans",e),children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border/40",children:[(0,t.jsx)("span",{className:"text-[13px] font-medium",children:n.agentTitle}),(0,t.jsx)("span",{className:"text-[11px] text-muted-foreground",children:n.alertId})]}),(0,t.jsx)("div",{className:"flex-1 p-4 space-y-4 overflow-hidden relative",children:n.exchanges.map((e,s)=>(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)("div",{className:"bg-muted/50 text-foreground px-3 py-2 rounded-lg text-[13px] max-w-[85%]",children:e.user})}),(0,t.jsxs)("div",{className:"space-y-2",children:[e.thoughtTitle&&e.thoughtSteps&&(0,t.jsx)("div",{className:"ml-0 max-w-[85%]",children:(0,t.jsx)(f,{title:e.thoughtTitle,children:(0,t.jsx)("div",{className:"space-y-1.5 py-1",children:e.thoughtSteps.map((e,s)=>(0,t.jsxs)("div",{className:"flex items-center gap-2 text-[11px] text-muted-foreground",children:[(0,t.jsx)("div",{className:"size-1 rounded-full bg-foreground
1/50"}),(0,t.jsx)("span",{children:e})]},s))})})}),(0,t.jsxs)("div",{className:"space-y-2 max-w-[90%]",children:[(0,t.jsx)("p",{className:"text-[13px] leading-relaxed text-foreground",children:e.response}),e.responseBullets&&e.responseBullets.length>0&&(0,t.jsx)("ul",{className:"list-disc pl-4 space-y-1 text-[13px] text-muted-foreground",children:e.responseBullets.map((e,s)=>(0,t.jsx)("li",{children:e},s))})]})]})]},s))}),(0,t.jsx)("div",{className:"p-4 pt-2",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 rounded-md border border-border px-3 py-2 bg-background",children:[(0,t.jsx)("input",{type:"text",placeholder:"Ask a follow up...",className:"flex-1 bg-transparent text-[13px] outline-none placeholder:text-muted-foreground/60",disabled:!0}),(0,t.jsx)("button",{className:"text-muted-foreground",children:(0,t.jsx)(h.Send,{className:"size-3.5"})})]})})]})}let b=[{id:"phishing-triage",label:"Phishing triage",blockLogos:[{src:"/logos/integrations/gmail.svg",alt:"Gmail"},{src:"/logos/integrations/crowdstrike.svg",alt:"CrowdStrike Falcon"}],builder:{breadcrumb:"Phishing triage agent",agentName:"Phishing triage agent",tools:[{logo:"/logos/integrations/gmail.svg",label:"Gmail"},{logo:"/logos/integrations/crowdstrike.svg",label:"Falcon (EDR)"},{icon:"shield",label:"VirusTotal"},{icon:"shield",label:"URLScan"},{logo:"/logos/integrations/okta.svg",label:"Okta"},{logo:"/logos/integrations/slack.svg",label:"Slack"}],goal:"Triage user-reported emails and contain credential harvest before more users click.",instructions:["Parse headers and detonate links and attachments.","Pull Falcon telemetry for any user that clicked.","Quarantine endpoints and force a session revoke when credentials were entered."]},chat:{agentTitle:"Phishing triage agent",alertId:"Alert PHISH-4471",exchanges:[{user:"Liam in Finance reported an Okta password reset email that looks off.",thoughtTitle:"Analyzing alert...",thoughtSteps:["Sender domain registered 3 hours ago, not in our Okta tenant allowlist","URLScan shows a credential harvest page styled like our Okta login"],response:"Confirmed credential harvest. Two more users in Finance clicked the link in the last 90 minutes. Recommending session revoke and a tenant-wide block on the sender domain.",responseBullets:["Revoke active sessions for the 3 impacted users in Okta","Block sender domain at the email gateway and Falcon DNS"]}]}},{id:"cloud-alert-enrichment",label:"Cloud alert enrichment",blockLogos:[{src:"/logos/integrations/wiz.svg",alt:"Wiz"},{src:"/logos/integrations/guardduty.svg",alt:"GuardDuty"}],builder:{breadcrumb:"Cloud alert enrichment agent",agentName:"Cloud alert enrichment agent",tools:[{logo:"/logos/integrations/wiz.svg",label:"Wiz (CNAPP)"},{logo:"/logos/integrations/guardduty.svg",label:"GuardDuty"},{icon:"cloud",label:"CloudTrail"},{logo:"/logos/integrations/okta.svg",label:"Okta"},{logo:"/logos/integrations/slack.svg",label:"Slack"},{icon:"shield",label:"Tracecat cases"}],goal:"Enrich GuardDuty findings with CloudTrail and Wiz context before they reach the analyst queue.",instructions:["Pull the last 24h of CloudTrail events for the principal.","Map the secrets and roles the principal can reach in Wiz.","Cross-reference the source IP with Okta sign-in logs."]},chat:{agentTitle:"Cloud alert enrichment agent",alertId:"Alert GD-9082",exchanges:[{user:"GuardDuty flagged anomalous IAM activity on prod-deployer-role.",thoughtTitle:"Analyzing alert...",thoughtSteps:["Role assumed from a Singapore IP with no matching Okta SSO event","Wiz shows the role can read 14 production secrets and assume 3 downstream roles"],response:"Likely credential exfiltration. The role can reach payment service secrets. Recommending a temporary STS deny and rotation for everything it can read.",responseBullets:["Apply STS deny condition to prod-deployer-role for 1 hour","Rotate the 14 secrets the role can read and notify the payments on-call"]}]}},{id:"endpoint-isolation",label:"Endpoint isolation",blockLogos:[{src:"/logos/integrations/crowdstrike.svg",alt:"CrowdStrike Falcon"},{src:"/logos/integrations/azure.svg",alt:"Microsoft Defender"}],builder:{breadcrumb:"Endpoint response agent",agentName:"Endpoint response agent",tools:[{logo:"/logos/integrations/crowdstrike.svg",label:"Falcon (EDR)"},{logo:"/logos/integrations/azure.svg",label:"Microsoft Defender"},{icon:"shield",label:"Intune"},{logo:"/logos/integrations/entra.svg",label:"Entra ID"},{logo:"/logos/integrations/slack.svg",label:"Slack"},{icon:"bell",label:"On-call"}],goal:"Contain high-severity endpoint detections without waiting for an analyst to wake up.",instructions:["Read the parent process tree and binary hash from Falcon.","Check MDE telemetry on related hosts.","Quarantine and page the on-call when confidence is high."]},chat:{agentTitle:"Endpoint response agent",alertId:"Alert EDR-2210",exchanges:[{user:"Falcon detection on WS-091: process injection from a signed Office binary.",thoughtTitle:"Analyzing alert...",thoughtSteps:["Parent is 
1winword.exe spawning powershell.exe with an encoded command","Same hash beaconing to a C2 domain seen on 2 other hosts in the last hour"],response:"Looks like ransomware staging. Isolating WS-091 in Falcon, blocking the C2 at the DNS firewall, and paging the on-call responder with the full IOC list.",responseBullets:["Quarantine WS-091 and the 2 related hosts in Falcon","Open CASE-0041 and notify the on-call responder in Slack"]}]}},{id:"oauth-app-review",label:"OAuth app review",blockLogos:[{src:"/logos/integrations/okta.svg",alt:"Okta"},{src:"/logos/integrations/entra.svg",alt:"Microsoft Entra"}],builder:{breadcrumb:"OAuth review agent",agentName:"OAuth review agent",tools:[{logo:"/logos/integrations/entra.svg",label:"Entra ID"},{logo:"/logos/integrations/okta.svg",label:"Okta"},{icon:"shield",label:"Microsoft 365"},{logo:"/logos/integrations/slack.svg",label:"Slack"},{icon:"shield",label:"Tracecat tables"}],goal:"Review new high-risk OAuth grants and revoke unverified apps before data leaves the tenant.",instructions:["Fetch the app's scopes and publisher status from Entra.","Check for similar grants in the last 90 days.","Notify granting users to confirm intent before revoke."]},chat:{agentTitle:"OAuth review agent",alertId:"Alert OAUTH-318",exchanges:[{user:"New third-party OAuth grant with mailbox.read.all approved for 14 users.",thoughtTitle:"Analyzing alert...",thoughtSteps:["Publisher is unverified and the app was registered 6 days ago","No prior grants for this publisher in the tenant"],response:"Unverified publisher with full mailbox read on 14 users. Drafting a revoke action and DMing the 14 users in Slack to confirm they meant to install it.",responseBullets:["Stage a tenant-wide revoke pending one approval","Open CASE-0042 with the grant ledger"]}]}},{id:"vulnerability-response",label:"Vulnerability response",blockLogos:[{src:"/logos/integrations/wiz.svg",alt:"Wiz"},{src:"/logos/integrations/slack.svg",alt:"Slack"}],builder:{breadcrumb:"Vulnerability response agent",agentName:"Vulnerability response agent",tools:[{logo:"/logos/integrations/wiz.svg",label:"Wiz"},{icon:"shield",label:"Jira"},{icon:"shield",label:"GitHub"},{logo:"/logos/integrations/slack.svg",label:"Slack"},{icon:"shield",label:"Tracecat cases"},{icon:"shield",label:"CMDB"}],goal:"Route critical CVEs to the owning team with a patch path and a deadline already drafted.",instructions:["Pull exposure data from Wiz.","Look up the host owner in CMDB and patch status in Jira.","Open a case and ping the on-call engineer for the owning team."]},chat:{agentTitle:"Vulnerability response agent",alertId:"Alert VULN-877",exchanges:[{user:"Wiz reported CVE-2026-0142 on an internet-facing payments host.",thoughtTitle:"Analyzing alert...",thoughtSteps:["Host is owned by the payments squad, exposed on port 443","Patch is available in the upstream image; no scheduled deploy in the next 48h"],response:"Critical CVE on an internet-facing host. Opening a case with the IOC, the patch path, and a 24-hour SLA, and pinging the payments on-call in Slack.",responseBullets:["Open CASE-0043 with patch instructions and rollback steps","Page the payments on-call with the SLA and patch ETA"]}]}}];function j(e){if(!window.matchMedia)return()=>{};let t=window.matchMedia("(prefers-reduced-motion: reduce)");return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}function k(){return!!window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}function N(){return!1}e.s(["SoarRotatingDemo",0,function({className:e}){let[n,a]=(0,s.useState)(0),[i,l]=(0,s.useState)(0),o=(0,s.useSyncExternalStore)(j,k,N),d=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(!o)return d.current=setInterval(()=>{a(e=>(e+1)%b.length),l(e=>e+1)},7e3),()=>{d.current&&clearInterval(d.current)}},[o,i]);let c=b[n];return(0,t.jsxs)("div",{className:(0,r.cn)("flex flex-col gap-6",e),children:[(0,t.jsx)("div",{role:"tablist","aria-label":"SOAR use cases",className:"grid grid-cols-2 gap-2 sm:gap-3 md:grid-cols-3 lg:grid-cols-5",children:b.map((e,s)=>{let d=s===n;return(0,t.jsxs)("button",{type:"button",role:"tab","aria-selected":d,"aria-controls":"soar-demo-frame",onClick:()=>{s!==n&&(a(s),l(e=>e+1))},className:(0,r.cn)("relative overflow-hidden rounded-md border text-left transition-colors duration-200","flex flex-col items-start gap-2 px-3 py-3 sm:px-4 sm:py-3.5",d?"border-primary/30 bg-primary/5":"border-border bg-background hover:bg-muted/40"),children:[d&&!o&&(0,t.jsx)("span",{"aria-hidden":"true",className:"pointer-events-none absolute inset-x-0 top-0 h-0.5 origin-left bg-primary soar-demo-progress"},i),(0,t.jsx)("div",{className:"flex items-center gap-1.5",children:e.blockLogos.map((e,s)=>(0,t.jsx)("img",{src:e.src,alt:e.alt,className:"size-4 sm:size-5 opacity-80"},s))}),(0,t.jsx)("p",{className:(0,r.cn)("text-xs sm:text-sm font-medium leading-tight",d?"text-foreground":"text-muted-foreground"),children:e.label})]},e.id)})}),(0,t.jsx)("div",{id:"soar-demo-frame","aria-live":"polite",className:"relative w-full overflow-hidden rounded-[8px] border border-border bg-background",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 divide-y divide-border lg:divide-y-0 lg:divide-x",children:[(0,t.jsx)("div",{className:"h-[440px] lg:h-[520px]",children:(0,t.jsx)(p,{useCase:c.builder,className:"h-full"})}),(0,t.jsx)("div",{className:"h-[440px] lg:h-[520px]",children:(0,t.jsx)(y,{useCase:c.chat,className:"h-full"})})]})})]})}],77984)},72200,11152,e=>{"use strict";var t=e.i(53688);e.s(["ChevronDown",()=>t.default],72200);let s=(0,e.i(98631).default)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
1y:"oel41y"}]]);e.s(["Shield",0,s],11152)},85557,85559,41182,14346,e=>{"use strict";var t=e.i(98631);let s=(0,t.default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["default",0,s],85559),e.s(["CircleCheck",0,s],85557);let r=(0,t.default)("circle-dot",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]);e.s(["CircleDot",0,r],41182);let n=(0,t.default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);e.s(["Play",0,n],14346)},49202,e=>{"use strict";let t=(0,e.i(98631).default)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);e.s(["FileText",0,t],49202)},43293,12452,e=>{"use strict";var t=e.i(98631);let s=(0,t.default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",0,s],43293);let r=(0,t.default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);e.s(["Send",0,r],12452)},5300,2262,44540,e=>{"use strict";var t=e.i(98631);let s=(0,t.default)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);e.s(["default",0,s],2262),e.s(["Zap",0,s],5300);let r=(0,t.default)("square-mouse-pointer",[["path",{d:"M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z",key:"xwnzip"}],["path",{d:"M21 11V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6",key:"14rsvq"}]]);e.s(["SquareMousePointer",0,r],44540)}]);

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.