PageSourceSearch

https://unicorniq.ai/assets/demo-ui-B-bXMOum.js

js unicorniq.ai collected 2026-10-05 16:11:50 UTC 33,224 bytes, 1 lines download raw bytes

1import{r as N,j as e}from"./index-DP61GySm.js";import{S as F,C as M,F as H}from"./site-3qGrJQzU.js";import"./vendor-shared-C5tCw9rW.js";import"./index-MuG4xkEZ.js";import"./pages-BadJO-WH.js";import"./api-BnFPjmJy.js";import"./index-Hr67HY7W.js";import"./use-reduced-motion-Dfod_7YK.js";import"./proxy-vcxmOnCc.js";const h=F.demoUi,T=F.catalog,u=s=>s.toLocaleString("en-US"),y=s=>H.find(r=>r.id===s).name;function W(){return N.useState(()=>{try{return new URLSearchParams(window.location.search).get("state")??""}catch{return""}})[0]}const t={bg:"#0F1114",panel:"#161A1F",line:"#262C33",text:"#E6E9ED",muted:"#8B949E",amber:"#F59E0B",amberInk:"#1a1206",ok:"#34D399",warn:"#F59E0B",bad:"#F87171",info:"#60A5FA"},w={healthy:t.ok,attention:t.bad,upgrading:t.info,high:t.bad,medium:t.warn,low:t.muted,moving:t.info,working:t.ok,paused:t.warn,charging:t.muted,travelling:t.info,"in progress":t.ok,queued:t.muted,commissioned:t.ok,calibrating:t.warn,pending:t.muted,added:t.ok,changed:t.warn,removed:t.bad,unchanged:t.muted,active:t.amber,retained:t.info,archived:t.muted};function d({children:s,className:r=""}){return e.jsx("span",{className:`font-mono text-[12px] tracking-tight ${r}`,children:s})}function g({tone:s,children:r}){const o=w[s]??t.muted;return e.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded px-1.5 py-0.5 text-[10px] font-bold uppercase tracking-widest",style:{color:o,backgroundColor:`${o}1f`,border:`1px solid ${o}55`},children:[e.jsx("span",{"aria-hidden":"true",className:"h-1.5 w-1.5 rounded-full",style:{backgroundColor:o}}),r]})}function p({title:s,aside:r,children:o,className:a="",testId:l}){return e.jsxs("section",{className:`rounded-lg border flex flex-col min-w-0 ${a}`,style:{backgroundColor:t.panel,borderColor:t.line},"data-testid":l,"aria-label":s,children:[e.jsxs("header",{className:"flex items-center justify-between gap-3 border-b px-4 py-2.5",style:{borderColor:t.line},children:[e.jsx("h2",{className:"text-[11px] font-bold uppercase tracking-[0.18em]",style:{color:t.muted},children:s}),r?e.jsx("div",{className:"text-[11px]",style:{color:t.muted},children:r}):null]}),e.jsx("div",{className:"p-4 flex-1 min-h-0",children:o})]})}function j({label:s,value:r,hint:o,accent:a=!1}){return e.jsxs("div",{className:"rounded-lg border px-4 py-3 min-w-0",style:{backgroundColor:t.panel,borderColor:t.line},children:[e.jsx("dt",{className:"text-[10px] font-bold uppercase tracking-[0.18em]",style:{color:t.muted},children:s}),e.jsx("dd",{className:"mt-1 font-mono text-2xl font-semibold tabular-nums truncate",style:{color:a?t.amber:t.text},children:r}),o?e.jsx("dd",{className:"mt-0.5 text-[11px]",style:{color:t.muted},children:o}):null]})}function v({children:s,onClick:r,secondary:o=!1,...a}){return e.jsx("button",{type:"button",onClick:r,className:"inline-flex items-center justify-center rounded-md px-3.5 py-2 text-[12px] font-bold tracking-wide transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-[#F59E0B]",style:o?{border:`1px solid ${t.line}`,color:t.text}:{backgroundColor:t.amber,color:t.amberInk},...a,children:s})}function C({product:s,screen:r,title:o,subtitle:a,nav:l,activeNav:n,children:i,testId:m}){N.useEffect(()=>{document.title=`${o} — ${s} · ${M.name}`},[o,s]);const x=h.asOf.replace("T"," ").replace(":00Z"," UTC");return e.jsxs("div",{className:"sirdar-demo-ui min-h-screen flex flex-col antialiased",style:{backgroundColor:t.bg,color:t.text},"data-testid":m,"data-screen":r,children:[e.jsxs("header",{className:"flex items-center gap-4 border-b px-4 h-12 shrink-0",style:{borderColor:t.line,backgroundColor:t.panel},children:[e.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[e.jsx("span",{"aria-hidden":"true",className:"h-5 w-5 rounded-sm",style:{backgroundColor:t.amber}}),e.jsx("span",{className:"font-semibold tracking-tight whitespace-nowrap",children:s}),e.jsx("span",{className:"hidden sm:inline text-[11px] uppercase tracking-widest truncate",style:{color:t.muted},children:M.name})]}),e.jsxs("div",{className:"ml-auto flex items-center gap-4 text-[11px]",style:{color:t.muted},children:[e.jsx("span",{className:"hidden md:inline truncate",children:a}),e.jsx(d,{children:x})]})]}),e.jsxs("div",{className:"flex-1 flex flex-col lg:flex-row min-h-0",children:[l?e.jsx("nav",{"aria-label":`${s} sections`,className:"lg:w-48 shrink-0 border-b lg:border-b-0 lg:border-r overflow-x-auto",style:{borderColor:t.line},children:e.jsx("ul",{className:"flex lg:flex-col p-2 gap-1",role:"list",children:l.map(c=>e.jsx("li",{children:e.jsx("button",{type:"button","aria-current":c===n?"page":void 0,className:"w-full text-left whitespace-nowrap rounded px-3 py-2 text-[13px] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#F59E0B]",style:c===n?{backgroundColor:`${t.amber}22`,color:t.amber,fontWeight:600}:{color:t.muted},children:c})},c))})}):null,e.jsxs("main",{className:"flex-1 min-w-0 p-4 flex flex-col gap-4",children:[e.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-4 gap-y-1",children:[e.jsx("h1",{className:"text-lg font-semibold tracking-tight",children:o}),e.jsx("p",{className:"text-[12px] md:hidden",style:{color:t.muted},children:a})]}),i]})]}),e.jsxs("footer",{className:"border-t px-4 py-1.5 text-[10px] uppercase tracking-widest",style:{borderColor:t.line,color:t.muted},children:[M.name," demo console · fictional data · figures from the seed snapshot"]})]})}function _(){const s=h.sentinel.sites;return e.jsxs("svg",{viewBox:"0 0 100 70",className:"w-full h-auto",role:"img","aria-label":`Site health map: ${s.map(r=>`${r.name} ${r.health}`).join("; ")}`,children:[e.jsx("defs",{children:e.jsx("pattern",{id:"sd-grid",width:"5",height:"5",patternUnits:"userSpaceOnUse",children:e.jsx("path",{d:"M5 0H0V5",fill:"none",stroke:t.line,strokeWidth:"0.25"})})}),e.jsx("rect",{width:"100",height:"70",fill:t.bg,rx:"1.5"}),e.jsx("rect",{width:"100",height:"70",fill:"url(#sd-grid)"}),e.jsx("path",{d:"M6 12 L34 8 L44 20 L36 40 L22 52 L10 44 Z",fill:"#1c2229",stroke:t.line,strokeWidth:"0.4"}),e.jsx("path",{d:"M46 10 L64 8 L74 18 L70 36 L54 40 L46 26 Z",fill:"#1c2229",stroke:t.line,strokeWidth:"0.4"}),e.jsx("path",{d:"M66 44 L92 42 L96 60 L82 66 L68 60 Z",fill:"#1c2229",stroke:t.line,strokeWidth:"0.4"}),s.map(r=>{const o=w[r.health];return e.jsxs("g",{children:[e.jsx("circle",{cx:r.x,cy:r.y,r:"4",fill:o,opacity:"0.18"}),e.jsx("circle",{cx:r.x,cy:r.y,r:"1.6",fill:o}),e.jsx("text",{x:r.x+3,y:r.y-2,fontSize:"2.6",fontFamily:"ui-monospace, monospace",fill:t.text,children:r.id}),e.jsxs("text",{x:r.x+3,y:r.y+1.4,fontSize:"2.2",fill:t.muted,children:[u(r.endpoints)," endpoints"]})]},r.id)})]})}function K(){const s=h.sentinel.detections24h,r=Math.max(...s),o=240,a=72,l=o/s.length,n=s.reduce((i,m)=>i+m,0);return e.jsxs("svg",{viewBox:`0 0 ${o} ${a+12}`,className:"w-full h-auto",role:"img","aria-label":`Detections over the last 24 hours, ${u(n)} in total, peak ${r} in the latest hour`,children:[[.25,.5,.75,1].map(i=>e.jsx("line",{x1:"0",x2:o,y1:a-i*a,y2:a-i*a,stroke:t.line,strokeWidth:"0.5"},i)),s.map((i,m)=>{const x=i/r*(a-4),c=m===s.length-1;return e.jsx("rect",{x:m*l+1.5,y:a-x,width:l-3,height:x,rx:"1",fill:c?t.amber:`${t.amber}77`},m)}),s.map((i,m)=>m%4===0?e.jsxs("text",{x:m*l+l/2,y:a+9,fontSize:"6",textAnchor:"middle",fontFamily:"ui-monospace, monospace",fill:t.muted,children:[String((8+m+1)%24).padStart(2,"0"),"h"]},m):null)]})}function te(){const s=h.sentinel,r=s.sites.reduce((l,n)=>l+n.openInvestigations,0),o=s.sites.reduce((l,n)=>l+n.otAssets,0),a=s.detections24h.reduce((l,n)=>l+n,0);return e.jsxs(C,{product:y("sentinel"),screen:"sentinel-overview",title:"Fleet Overview",subtitle:`Console ${s.consoleVersion} · ${s.sites.length} sites in view`,nav:s.nav,activeNav:"Overview",testId:"sirdar-demo-ui-root",children:[e.jsxs("dl",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:[e.jsx(j,{label:"Protected endpoints",value:u(s.protectedEndpointsExact),hint:"all customers, live",accent:!0}),e.jsx(j,{label:"OT assets in view",value:u(o),hint:`${s.sites.length} sites`}),e.jsx(j,{label:"Open investigations",value:String(r),hint:`${s.alerts.filter(l=>l.severity==="high").length} high-severity alert`}),e.jsx(j,{label:"Median detection → alert",value:`${T.specs.sentinel.medianDetectionToAlertSeconds} s`,hint:"trailing 30 days"})]}),e.jsxs("div",{className:"grid gap-4 lg:grid-cols-[1.4fr_1fr] flex-1 min-h-0",children:[e.jsxs("div",{className:"flex flex-col gap-4 min-w-0",children:[e.jsx(p,{title:"Site health",aside:e.jsxs("span",{children:[s.sites.filter(l=>l.health==="healthy").length," healthy · ",s.sites.filter(l=>l.health==="attention").length," attention · ",s.sites.filter(l=>l.health==="upgrading").length," upgrading"]}),testId:"sirdar-demo-health-map",children:e.jsxs("div",{className:"grid gap-4 md:grid-cols-[1.3fr_1fr] items-start",children:[e.jsx(_,{}),e.jsx("ul",{className:"space-y-2",role:"list",children:s.sites.map(l
1=>e.jsxs("li",{className:"rounded border px-3 py-2",style:{borderColor:t.line},children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx(d,{children:l.id}),e.jsx(g,{tone:l.health,children:l.health})]}),e.jsx("div",{className:"mt-1 text-[13px] truncate",children:l.name}),e.jsxs("div",{className:"text-[11px]",style:{color:t.muted},children:[u(l.endpoints)," endpoints · ",l.otAssets," OT assets · ",l.region]})]},l.id))})]})}),e.jsx(p,{title:"Detections — last 24 h",aside:e.jsxs(d,{children:[u(a)," total"]}),testId:"sirdar-demo-detections",children:e.jsx(K,{})})]}),e.jsx(p,{title:"Alert stream",aside:e.jsxs("span",{children:[s.alerts.length," newest"]}),testId:"sirdar-demo-alerts",children:e.jsx("ol",{className:"space-y-2",role:"list",children:s.alerts.map(l=>e.jsxs("li",{className:"rounded border px-3 py-2",style:{borderColor:t.line,borderLeft:`3px solid ${w[l.severity]}`},children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(d,{children:l.at}),e.jsx(d,{className:"opacity-70",children:l.id}),e.jsx(g,{tone:l.severity,children:l.severity}),e.jsx("span",{className:"ml-auto text-[11px]",style:{color:t.muted},children:l.status})]}),e.jsx("div",{className:"mt-1 text-[13px]",children:l.title}),e.jsx("div",{className:"text-[11px]",style:{color:t.muted},children:s.sites.find(n=>n.id===l.siteId)?.name})]},l.id))})})]})]})}function le(){const s=h.sentinel.investigation,r=h.sentinel.sites.find(i=>i.id===s.siteId),o=W(),[a,l]=N.useState(o==="confirm"?"confirm":o==="applied"?"applied":"idle"),n=N.useId();return e.jsxs(C,{product:y("sentinel"),screen:"sentinel-investigation",title:s.title,subtitle:`${s.id} · ${r.name}`,nav:h.sentinel.nav,activeNav:"Investigations",testId:"sirdar-demo-ui-root",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-[12px]",children:[e.jsx(d,{className:"text-[13px]",children:s.id}),e.jsx(g,{tone:s.severity,children:s.severity}),e.jsx(g,{tone:a==="applied"?"healthy":"attention",children:a==="applied"?"contained":s.status}),e.jsxs("span",{style:{color:t.muted},children:["opened ",s.opened," · detection → alert ",s.detectionToAlertSeconds," s · ",s.protocol," · partner of record ",s.partnerOfRecord]})]}),e.jsxs("div",{className:"grid gap-4 lg:grid-cols-[1.3fr_1fr] flex-1",children:[e.jsx(p,{title:"Timeline",aside:e.jsx("span",{children:s.segment}),testId:"sirdar-demo-timeline",children:e.jsxs("ol",{className:"relative ml-2 border-l pl-5 space-y-4",style:{borderColor:t.line},role:"list",children:[s.timeline.map(i=>e.jsxs("li",{className:"relative",children:[e.jsx("span",{"aria-hidden":"true",className:"absolute -left-[26px] top-1.5 h-2.5 w-2.5 rounded-full",style:{backgroundColor:i.kind==="blocked"?t.ok:i.kind==="alerted"||i.kind==="matched"?t.bad:i.kind==="proposed"?t.amber:t.muted}}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(d,{children:i.at}),e.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest",style:{color:t.amber},children:i.kind}),e.jsx("span",{className:"text-[11px]",style:{color:t.muted},children:i.source})]}),e.jsx("p",{className:"mt-0.5 text-[13px] leading-snug",children:i.text})]},i.at+i.kind)),a==="applied"?e.jsxs("li",{className:"relative",children:[e.jsx("span",{"aria-hidden":"true",className:"absolute -left-[26px] top-1.5 h-2.5 w-2.5 rounded-full",style:{backgroundColor:t.ok}}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(d,{children:"now"}),e.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest",style:{color:t.ok},children:"contained"})]}),e.jsxs("p",{className:"mt-0.5 text-[13px]",children:["Containment applied to ",s.containAction.target,"; evidence snapshot queued."]})]}):null]})}),e.jsxs("div",{className:"flex flex-col gap-4 min-w-0",children:[e.jsx(p,{title:"Affected assets",testId:"sirdar-demo-assets",children:e.jsx("div",{className:"overflow-x-auto focus:outline-none focus-visible:ring-2 focus-visible:ring-[#F59E0B]",tabIndex:0,role:"region","aria-label":"Affected assets table",children:e.jsxs("table",{className:"w-full text-[12px] text-left",children:[e.jsxs("caption",{className:"sr-only",children:["Assets involved in ",s.id]}),e.jsx("thead",{style:{color:t.muted},children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col",className:"py-1 pr-3 font-semibold",children:"Asset"}),e.jsx("th",{scope:"col",className:"py-1 pr-3 font-semibold",children:"Kind"}),e.jsx("th",{scope:"col",className:"py-1 font-semibold",children:"Role"})]})}),e.jsx("tbody",{children:s.assets.map(i=>e.jsxs("tr",{className:"border-t",style:{borderColor:t.line},children:[e.jsx("th",{scope:"row",className:"py-1.5 pr-3 font-normal",children:e.jsx(d,{children:i.id})}),e.jsx("td",{className:"py-1.5 pr-3",children:i.kind}),e.jsx("td",{className:"py-1.5",children:i.role})]},i.id))})]})})}),e.jsxs(p,{title:"Proposed response",aside:e.jsx("span",{children:"reversible"}),testId:"sirdar-demo-contain",children:[e.jsxs("p",{className:"text-[13px]",children:[e.jsx("strong",{style:{color:t.amber},children:s.containAction.verb})," ",e.jsx(d,{children:s.containAction.target})]}),e.jsx("ol",{className:"mt-2 space-y-1 text-[12px] list-decimal pl-5",style:{color:t.text},children:s.containAction.steps.map(i=>e.jsx("li",{children:i},i))}),e.jsxs("p",{className:"mt-3 text-[12px]",style:{color:t.muted},children:["Impact: ",s.containAction.impact]}),a==="idle"?e.jsx("div",{className:"mt-4",children:e.jsxs(v,{onClick:()=>l("confirm"),"data-testid":"sirdar-demo-contain-button",children:[s.containAction.verb," ",s.containAction.target]})}):null,a==="confirm"?e.jsxs("div",{role:"dialog","aria-labelledby":n,className:"mt-4 rounded-md border p-3",style:{borderColor:t.amber,backgroundColor:`${t.amber}14`},"data-testid":"sirdar-demo-contain-confirm",children:[e.jsxs("h3",{id:n,className:"text-[13px] font-semibold",children:["Confirm containment of ",s.containAction.target,"?"]}),e.jsxs("p",{className:"mt-1 text-[12px]",style:{color:t.muted},children:[s.containAction.impact," A human confirms every response action; the step is logged to the investigation."]}),e.jsxs("div",{className:"mt-3 flex gap-2",children:[e.jsxs(v,{onClick:()=>l("applied"),children:["Confirm — ",s.containAction.verb.toLowerCase()," now"]}),e.jsx(v,{secondary:!0,onClick:()=>l("idle"),children:"Cancel"})]})]}):null,a==="applied"?e.jsxs("p",{className:"mt-4 rounded-md border px-3 py-2 text-[12px]",style:{borderColor:t.ok,color:t.ok},role:"status",children:["Containment applied. ",s.containAction.target," is isolated; 2 Kinetic units paused."]}):null]})]})]})]})}function q(){const s=h.aether.yard,r=100,o=100,a=96/s.baysPerRow;return e.jsxs("svg",{viewBox:`0 0 ${r} ${o}`,className:"w-full h-auto",role:"img","aria-label":`Container-yard plan with ${s.robots.length} Kinetic units and ${s.haloNodes.length} Halo nodes`,children:[e.jsx("rect",{width:r,height:o,fill:t.bg,rx:"1.5"}),s.zones.map(l=>e.jsxs("g",{children:[e.jsx("rect",{x:l.x,y:l.y,width:l.w,height:l.h,fill:"#1c2229",stroke:t.line,strokeWidth:"0.4",strokeDasharray:"1.5 1"}),e.jsx("text",{x:l.x+1.5,y:l.y+3.2,fontSize:"2.4",fill:t.muted,children:l.name})]},l.id)),s.rows.map((l,n)=>{const i=20+n*10;return e.jsxs("g",{children:[e.jsx("text",{x:"0.5",y:i+4.5,fontSize:"3",fontFamily:"ui-monospace, monospace",fill:t.muted,children:l}),Array.from({length:s.baysPerRow},(m,x)=>e.jsx("rect",{x:4+x*a+.4,y:i,width:a-.8,height:"6",rx:"0.4",fill:(n+x)%3===0?"#2a323b":"#20262d",stroke:t.line,strokeWidth:"0.2"},x))]},l)}),s.haloNodes.map(l=>e.jsxs("g",{children:[e.jsx("path",{d:`M${l.x} ${l.y-1.6} l1.6 1.6 l-1.6 1.6 l-1.6 -1.6 z`,fill:t.info}),e.jsx("title",{children:l.id})]}
1,l.id)),s.robots.map(l=>{const n=w[l.state];return e.jsxs("g",{transform:`translate(${l.x} ${l.y})`,children:[e.jsx("circle",{r:"3.2",fill:n,opacity:"0.2"}),e.jsx("g",{transform:`rotate(${l.heading})`,children:e.jsx("path",{d:"M0 -2.4 L1.9 1.8 L0 0.9 L-1.9 1.8 Z",fill:n})}),e.jsx("text",{x:"3.6",y:"-0.4",fontSize:"2.4",fontFamily:"ui-monospace, monospace",fill:t.text,children:l.id}),e.jsxs("text",{x:"3.6",y:"2.4",fontSize:"2",fill:t.muted,children:[l.state,l.taskId?` · ${l.taskId}`:""]})]},l.id)})]})}function ie(){const s=h.aether,r=h.sentinel.sites.find(i=>i.id===s.siteId),o=W(),[a,l]=N.useState(o==="confirmed"),n=s.proposedDispatch;return e.jsxs(C,{product:`${y("aether")} Ops`,screen:"aether-board",title:"Site Board",subtitle:`${r.name} · ${s.shift} · Aether ${s.version}`,testId:"sirdar-demo-ui-root",children:[e.jsxs("dl",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:[e.jsx(j,{label:"Kinetic units on site",value:String(s.yard.robots.length),hint:`${s.yard.robots.filter(i=>i.state==="moving"||i.state==="working").length} active · ${s.yard.robots.filter(i=>i.state==="paused").length} paused`}),e.jsx(j,{label:"Tasks in queue",value:String(s.tasks.length),hint:`${s.tasks.filter(i=>i.status==="queued").length} unassigned`}),e.jsx(j,{label:"Exceptions awaiting a human",value:String(s.exceptions.length),accent:!0}),e.jsx(j,{label:"Halo nodes live",value:String(s.yard.haloNodes.length),hint:"world model v41"})]}),e.jsxs("div",{className:"grid gap-4 lg:grid-cols-[1.35fr_1fr] flex-1 min-h-0",children:[e.jsxs("div",{className:"flex flex-col gap-4 min-w-0",children:[e.jsx(p,{title:"Yard plan",aside:e.jsxs("span",{children:["rows ",s.yard.rows.join(" ")," · ",s.yard.baysPerRow," bays"]}),testId:"sirdar-demo-yard",children:e.jsx(q,{})}),e.jsx(p,{title:"Task queue",aside:e.jsxs(d,{children:[s.tasks.length," tasks"]}),testId:"sirdar-demo-tasks",children:e.jsx("div",{className:"overflow-x-auto focus:outline-none focus-visible:ring-2 focus-visible:ring-[#F59E0B]",tabIndex:0,role:"region","aria-label":"Task queue table",children:e.jsxs("table",{className:"w-full text-[12px] text-left",children:[e.jsx("caption",{className:"sr-only",children:"Task queue"}),e.jsx("thead",{style:{color:t.muted},children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col",className:"py-1 pr-3 font-semibold",children:"Task"}),e.jsx("th",{scope:"col",className:"py-1 pr-3 font-semibold",children:"Kind"}),e.jsx("th",{scope:"col",className:"py-1 pr-3 font-semibold",children:"Bay"}),e.jsx("th",{scope:"col",className:"py-1 pr-3 font-semibold",children:"Unit"}),e.jsx("th",{scope:"col",className:"py-1 pr-3 font-semibold",children:"Status"}),e.jsx("th",{scope:"col",className:"py-1 font-semibold",children:"ETA"})]})}),e.jsx("tbody",{children:s.tasks.map(i=>{const m=a&&i.id===n.taskId;return e.jsxs("tr",{className:"border-t",style:{borderColor:t.line},children:[e.jsx("th",{scope:"row",className:"py-1.5 pr-3 font-normal",children:e.jsx(d,{children:i.id})}),e.jsx("td",{className:"py-1.5 pr-3",children:i.kind}),e.jsx("td",{className:"py-1.5 pr-3",children:e.jsx(d,{children:i.location})}),e.jsx("td",{className:"py-1.5 pr-3",children:e.jsx(d,{children:m?n.robotId:i.robotId??"—"})}),e.jsx("td",{className:"py-1.5 pr-3",children:e.jsx(g,{tone:m?"travelling":i.status,children:m?"dispatched":i.status})}),e.jsx("td",{className:"py-1.5",children:e.jsx(d,{children:i.eta})})]},i.id)})})]})})})]}),e.jsxs("div",{className:"flex flex-col gap-4 min-w-0",children:[e.jsx(p,{title:"Exceptions — awaiting a human",aside:e.jsxs("span",{children:[s.exceptions.length," open"]}),testId:"sirdar-demo-exceptions",children:e.jsx("ul",{className:"space-y-3",role:"list",children:s.exceptions.map(i=>e.jsxs("li",{className:"rounded border px-3 py-2",style:{borderColor:t.line,borderLeft:`3px solid ${t.amber}`},children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(d,{children:i.id}),e.jsx("span",{className:"text-[12px] font-semibold",children:i.kind}),e.jsx(d,{className:"ml-auto opacity-70",children:i.raisedAt})]}),e.jsx("p",{className:"mt-1 text-[12px]",style:{color:t.muted},children:i.detail}),e.jsx("div",{className:"mt-2 flex flex-wrap gap-1.5",children:i.options.map(m=>e.jsx(v,{secondary:!0,"aria-label":`${m} (${i.id})`,children:m},m))})]},i.id))})}),e.jsxs(p,{title:"Proposed dispatch",aside:e.jsx(d,{children:n.id}),testId:"sirdar-demo-dispatch",children:[e.jsxs("p",{className:"text-[13px]",children:["Send ",e.jsx(d,{className:"text-[13px]",children:n.robotId})," to ",e.jsx(d,{className:"text-[13px]",children:n.taskId})," — ",s.tasks.find(i=>i.id===n.taskId)?.kind," at ",s.tasks.find(i=>i.id===n.taskId)?.location,"."]}
1),e.jsxs("p",{className:"mt-1 text-[12px]",style:{color:t.muted},children:[n.reason," Route ",n.travelM," m · confidence ",Math.round(n.confidence*100),"%."]}),e.jsx("ul",{className:"mt-2 space-y-1 text-[12px]",role:"list",children:n.checks.map(i=>e.jsxs("li",{className:"flex gap-2",children:[e.jsx("span",{"aria-hidden":"true",style:{color:t.ok},children:"✓"}),i]},i))}),e.jsx("div",{className:"mt-4",children:a?e.jsxs("p",{role:"status",className:"rounded-md border px-3 py-2 text-[12px]",style:{borderColor:t.ok,color:t.ok},children:["Dispatch ",n.id," confirmed by the operator; ",n.robotId," will start after ",s.tasks.find(i=>i.robotId===n.robotId)?.id,"."]}):e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{onClick:()=>l(!0),"data-testid":"sirdar-demo-dispatch-confirm",children:"Confirm dispatch"}),e.jsx(v,{secondary:!0,children:"Hold"})]})})]})]})]})]})}function U(){const s=h.atlas.scene.grid,r=(x,c,f=0)=>[80+(x-c)*3.4,14+(x+c)*1.7-f*2.4],o=(x,c,f,k,b=t.line)=>{const[D,B]=r(x,c,f),[S,L]=r(x+1,c,f),[$,I]=r(x+1,c+1,f),[A,R]=r(x,c+1,f),[,O]=r(x+1,c,0),[,E]=r(x+1,c+1,0),[,P]=r(x,c+1,0);return e.jsxs("g",{children:[f>0?e.jsxs(e.Fragment,{children:[e.jsx("polygon",{points:`${S},${L} ${$},${I} ${$},${E} ${S},${O}`,fill:k,opacity:"0.55",stroke:b,strokeWidth:"0.15"}),e.jsx("polygon",{points:`${$},${I} ${A},${R} ${A},${P} ${$},${E}`,fill:k,opacity:"0.35",stroke:b,strokeWidth:"0.15"})]}):null,e.jsx("polygon",{points:`${D},${B} ${S},${L} ${$},${I} ${A},${R}`,fill:k,stroke:b,strokeWidth:"0.15"})]},`${x}-${c}`)},a=[];for(let x=0;x<s;x++)for(let c=0;c<s;c++){const f=x>=9&&c>=2&&c<=9,k=c===1||c===5,b=x>=2&&x<=6&&c>=7&&c<=10&&(x+c)%2===0;a.push(o(x,c,f?1.4:b?.8:0,f?`${t.ok}55`:k?`${t.warn}33`:b?"#2a323b":"#1c2229",f?t.ok:t.line))}const[l,n]=r(10,2,1.4),[i,m]=r(0,5,0);return e.jsxs("svg",{viewBox:"0 0 160 66",className:"w-full h-auto max-h-[380px] mx-auto",role:"img","aria-label":`Isometric world model of ${h.atlas.siteName}: ${h.atlas.scene.objects} objects over ${u(h.atlas.scene.coverageM2)} square metres; aisle K added in ${h.atlas.activeVersion}`,children:[e.jsx("rect",{width:"160",height:"66",fill:t.bg,rx:"1.5"}),a,e.jsx("text",{x:l+2,y:n-3,fontSize:"2.2",fill:t.ok,fontFamily:"ui-monospace, monospace",children:"+ aisle K (v41)"}),e.jsx("text",{x:i-15,y:m,fontSize:"2.1",fill:t.warn,fontFamily:"ui-monospace, monospace",children:"CR-2 +11 mm"}),e.jsxs("text",{x:"2",y:"63",fontSize:"2.1",fill:t.muted,fontFamily:"ui-monospace, monospace",children:[u(h.atlas.scene.coverageM2)," m² · ",u(h.atlas.scene.objects)," objects · grid ",s,"×",s]})]})}function ne(){const s=h.atlas,[r,o]=N.useState(s.activeVersion),a=s.versions.find(l=>l.version===r)??s.versions[0];return e.jsx(C,{product:`${y("atlas")} Studio`,screen:"atlas-studio",title:"World model",subtitle:`${s.siteName} · residency ${s.residency} · Studio ${s.studioVersion}`,nav:["World model","Versions","Training","Residency","Exports"],activeNav:"World model",testId:"sirdar-demo-ui-root",children:e.jsxs("div",{className:"grid gap-4 lg:grid-cols-[1.4fr_1fr] flex-1 min-h-0",children:[e.jsxs("div",{className:"flex flex-col gap-4 min-w-0",children:[e.jsx(p,{title:`World model ${s.activeVersion}`,aside:e.jsxs("span",{children:[s.scene.floors," floor · ",u(s.scene.coverageM2)," m²"]}),testId:"sirdar-demo-iso",children:e.jsx(U,{})}),e.jsxs(p,{title:`Diff ${s.diff.from} → ${s.diff.to}`,aside:e.jsxs(d,{children:[u(s.diff.cellsChanged)," / ",u(s.diff.cellsCompared)," cells changed"]}),testId:"sirdar-demo-diff",children:[e.jsx("ul",{className:"grid gap-2 md:grid-cols-2",role:"list",children:s.diff.changes.map(l=>e.jsxs("li",{className:"rounded border px-3 py-2",style:{borderColor:t.line,borderLeft:`3px solid ${w[l.kind]}`},children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(g,{tone:l.kind,children:l.kind}),e.jsx("span",{className:"text-[13px] font-semibold",children:l.element})]}),e.jsx("p",{className:"mt-1 text-[12px]",style:{color:t.muted},children:l.detail})]},l.element))}),e.jsxs("p",{className:"mt-3 text-[11px]",style:{color:t.muted},children:["Sources: ",s.diff.sources.map(l=>`${l.kind} ${u(l.events)}`).join(" · ")," events."]})]})]}),e.jsxs(p,{title:"Versions & lineage",aside:e.jsxs("span",{children:[s.versions.length," retained"]}),testId:"sirdar-demo-versions",children:[e.jsx("ol",{className:"space-y-2",role:"list",children:s.versions.map(l=>e.jsx("li",{children:e.jsxs("button",{type:"button",onClick:()=>o(l.version),"aria-pressed":l.version===r,className:"w-full text-left rounded border px-3 py-2 focus:outline-none focus-visible:ring-2 focus-visible:ring-[#F59E0B]",style:{borderColor:l.version===r?t.amber:t.line,backgroundColor:l.version===r?`${t.amber}12`:void 0},children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(d,{className:"text-[13px] font-semibold",children:l.version}),e.jsx(g,{tone:l.status,children:l.status}),e.jsxs(d,{className:"ml-auto opacity-70",children:["← ",l.parent]}
1)]}),e.jsxs("div",{className:"mt-1 text-[12px]",style:{color:t.muted},children:["trained from ",u(l.trainedFromEvents)," events · ",l.trainedAt," · ",l.residency," residency"]})]})},l.version))}),e.jsxs("div",{className:"mt-4 rounded border p-3",style:{borderColor:t.line},"aria-live":"polite",children:[e.jsxs("div",{className:"text-[10px] font-bold uppercase tracking-[0.18em]",style:{color:t.muted},children:["Lineage — ",a.version]}),e.jsx("p",{className:"mt-1 text-[13px]",children:a.note}),e.jsxs("dl",{className:"mt-2 grid grid-cols-2 gap-2 text-[12px]",children:[e.jsxs("div",{children:[e.jsx("dt",{style:{color:t.muted},children:"Parent"}),e.jsx("dd",{children:e.jsx(d,{children:a.parent})})]}),e.jsxs("div",{children:[e.jsx("dt",{style:{color:t.muted},children:"Training events"}),e.jsx("dd",{children:e.jsx(d,{children:u(a.trainedFromEvents)})})]}),e.jsxs("div",{children:[e.jsx("dt",{style:{color:t.muted},children:"Residency"}),e.jsxs("dd",{children:[a.residency," — data never leaves the region"]})]}),e.jsxs("div",{children:[e.jsx("dt",{style:{color:t.muted},children:"Trained"}),e.jsx("dd",{children:e.jsx(d,{children:a.trainedAt})})]})]})]})]})]})})}function V({samples:s,tolerance:r}){const l=s.map((n,i)=>`${i/(s.length-1)*200},${50-n/r*50}`).join(" ");return e.jsxs("svg",{viewBox:"0 0 200 50",className:"w-full h-auto",role:"img","aria-label":`Deviation samples, ${s.length} readings between ${Math.min(...s)} and ${Math.max(...s)} millimetres, tolerance ${r}`,children:[e.jsx("line",{x1:"0",x2:200,y1:"0",y2:"0",stroke:t.bad,strokeWidth:"0.8",strokeDasharray:"3 2"}),e.jsx("polyline",{points:l,fill:"none",stroke:t.amber,strokeWidth:"1.6"}),s.map((n,i)=>e.jsx("circle",{cx:i/(s.length-1)*200,cy:50-n/r*50,r:"1.6",fill:t.amber},i))]})}function re(){const s=h.halo,r=h.sentinel.sites.find(n=>n.id===s.siteId),o=s.checklist.filter(n=>n.done).length,a=s.nodes.filter(n=>n.status==="commissioned").length,l=T.specs.haloH30;return e.jsxs(C,{product:`${y("halo")} Commissioning`,screen:"halo-commissioning",title:`${r.name} — ${s.nodes.length} × H30`,subtitle:`Survey ${s.surveyRef} · firmware ${s.firmware} · partner ${s.commissioningPartner}`,testId:"sirdar-demo-ui-root",children:[e.jsxs("dl",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:[e.jsx(j,{label:"Nodes commissioned",value:`${a} / ${s.nodes.length}`,hint:`${s.nodes.filter(n=>n.status==="calibrating").length} calibrating · ${s.nodes.filter(n=>n.status==="pending").length} pending`}),e.jsx(j,{label:"Calibration target",value:l.find(n=>n.includes("mm")),hint:"target board, per node"}),e.jsx(j,{label:"Time sync offset",value:`${s.timeSync.offsetNs} ns`,hint:`tolerance ${s.timeSync.toleranceNs} ns`,accent:!0}),e.jsx(j,{label:"Checklist",value:`${o} / ${s.checklist.length}`,hint:"current node"})]}),e.jsxs("div",{className:"grid gap-4 lg:grid-cols-[1fr_1fr] flex-1 min-h-0",children:[e.jsxs("div",{className:"flex flex-col gap-4 min-w-0",children:[e.jsx(p,{title:"Node status",aside:e.jsx(d,{children:s.siteId}),testId:"sirdar-demo-nodes",children:e.jsx("ul",{className:"grid grid-cols-2 md:grid-cols-4 gap-2",role:"list",children:s.nodes.map(n=>e.jsxs("li",{className:"rounded border px-3 py-2",style:{borderColor:n.id===s.liveReadout.nodeId?t.amber:t.line},children:[e.jsx(d,{className:"block",children:n.id}),e.jsx("div",{className:"mt-1",children:e.jsx(g,{tone:n.status,children:n.status})}),e.jsxs("div",{className:"mt-1 text-[11px]",style:{color:t.muted},children:[n.mount,"-mount · ",n.rangeM===null?"no range yet":`${n.rangeM} m`,n.deviationMm===null?"":` · ±${n.deviationMm} mm`]})]},n.id))})}),e.jsx(p,{title:`Calibration checklist — ${s.liveReadout.nodeId}`,aside:e.jsxs("span",{children:[o," of ",s.checklist.length," complete"]}),testId:"sirdar-demo-checklist",children:e.jsx("ol",{className:"space-y-1.5",role:"list",children:s.checklist.map((n,i)=>e.jsxs("li",{className:"flex items-center gap-3 text-[13px]",children:[e.jsx("span",{"aria-hidden":"true",className:"inline-flex h-5 w-5 items-center justify-center rounded-full text-[11px] font-bold",style:n.done?{backgroundColor:t.ok,color:t.amberInk}:{border:`1px solid ${t.line}`,color:t.muted},children:n.done?"✓":i+1}),e.jsx("span",{style:{color:n.done?t.text:t.muted},children:n.step}),e.jsx("span",{className:"sr-only",children:n.done?"complete":"not yet complete"})]},n.step))})})]}),e.jsxs("div",{className:"flex flex-col gap-4 min-w-0",children:[e.jsxs(p,{title:"Live readout",aside:e.jsxs("span",{children:[s.liveReadout.samplesPerSecond," samples/s"]}),testId:"sirdar-demo-readout",children:[e.jsxs("dl",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 text-[12px]",children:[e.jsxs("div",{children:[e.jsx("dt",{style:{color:t.muted},children:"Node"}),e.jsx("dd",{children:e.jsx(d,{className:"text-[13px]",children:s.liveReadout.nodeId})})]}),e.jsxs("div",{children:[e.jsx("dt",{style:{color:t.muted},children:"Target range"}),e.jsxs("dd",{className:"font-mono text-xl",children:[s.liveReadout.targetRangeM," m"]})]}),e.jsxs("div",{children:[e.jsx("dt",{style:{color:t.muted},children:"Measured"}),e.jsxs("dd",{className:"font-mono text-xl",children:[s.liveReadout.measuredRangeM," m"]})]}),e.jsxs("div",{children:[e.jsx("dt",{style:{color:t.muted},children:"Deviation"}),e.jsxs("dd",{className:"font-mono text-xl",style:{color:t.amber},children:[s.liveReadout.deviationMm," mm"]})]})]}),e.jsx("div",{className:"mt-3",children:e.jsx(V,{samples:s.liveReadout.samples,tolerance:s.liveReadout.toleranceMm})}),e.jsxs("p",{className:"mt-1 text-[11px]",style:{color:t.muted},children:["Dashed line = ±",s.liveReadout.toleranceMm," mm tolerance · board ",s.liveReadout.boardTemperatureC," °C · ambient ",s.liveReadout.ambientC," °C"]})]}),e.jsxs(p,{title:"Timestamp sync",aside:e.jsx(g,{tone:"healthy",children:"locked"}),testId:"sirdar-demo-timesync",children:[e.jsxs("dl",{className:"grid grid-cols-2 gap-3 text-[12px]",children:[e.jsxs("div",{children:[e.jsx("dt",{style:{color:t.muted},children:"Source"}),e.jsx("dd",{children:s.timeSync.source})]}),e.jsxs("div",{children:[e.jsx("dt",{style:{color:t.muted},children:"Grandmaster"}),e.jsx("dd",{children:e.jsx(d,{children:s.timeSync.grandmasterId})})]}),e.jsxs("div",{children:[e.jsx("dt",{style:{color:t.muted},children:"Offset"}),e.jsxs("dd",{className:"font-mono text-xl",style:{color:t.amber},children:[s.timeSync.offsetNs," ns"]})]}),e.jsxs("div",{children:[e.jsx("dt",{style:{color:t.muted},children:"Last correction"}),e.jsx("dd",{children:e.jsx(d,{children:s.timeSync.lastCorrection})})]})]}),e.jsxs("p",{className:"mt-3 text-[11px]",style:{color:t.muted},children:["Every observation is stamped and signed at the node; ",y("sentinel")," verifies the signature before ",y("atlas")," accepts it for training."]})]})]})]})]})}export{ie as AetherSiteBoardScreen,ne as AtlasStudioScreen,t as DEMO_UI,re as HaloCommissioningScreen,le as SentinelInvestigationScreen,te as SentinelOverviewScreen};

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.