1import{u as p,r as i,j as s,c as u,B as f}from"./index-D_LfpuLQ.js";import{E as x}from"./EstimateFooter-BIaiRQj7.js";import{u as g,S as h,s as b}from"./ScanFrame-C4ctLvz8.js";import{f as y,C as S,F as v}from"./scan-DtuBmMir.js";function k(){const n=p(),o=g(),[a,c]=i.useState([]);i.useEffect(()=>{o.connected||n({to:"/scan"})},[o.connected,n]);function l(e){c(t=>t.includes(e)?t.filter(d=>d!==e):[...t,e])}function m(){b.patch({assessment:"compliance"}),n({to:"/scan/progress",search:{type:"compliance"}})}const r=y(a.length);return s.jsxs(h,{step:"assess",eyebrow:"Step 2b · Risk & Compliance",title:"Risk & Compliance Assessment",description:"Maps your agent to applicable regulations and standards, then produces an exec summary, conformity assessment report and an evidence pack with a remediation tracker. Pick the frameworks you need to satisfy.",showTryDifferent:!0,children:[s.jsxs("div",{className:"max-w-xl space-y-6",children:[s.jsx("div",{className:"flex flex-wrap gap-2",children:S.map(e=>{const t=a.includes(e);return s.jsx("button",{type:"button",onClick:()=>l(e),"aria-pressed":t,className:u("rounded-md border px-4 py-2 text-sm font-medium transition-colors",t?"border-primary bg-primary/10 text-primary":"border-border bg-card text-foreground hover:border-foreground"),children:e},e)})}),s.jsx(f,{size:"lg",className:"w-full",disabled:a.length===0,onClick:m,children:"Run Assessment"}),a.length===0&&s.jsx("p",{className:"text-xs text-muted-foreground",children:"Select at least one standard to continue."})]}),s.jsx(x,{minutes:r.minutes,credits:r.credits,availableCredits:v})]})}export{k as component};
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.