zenith-frontend / assets /MensReaAnalyzer-ASubHBpj.js
Antigravity Agent
Fix: proper React deployment with correct index.html
ef0d982
import{c as l,j as e,M as n}from"./index-B6LgHwxl.js";import{r as d}from"./vendor-C1HQAMsB.js";import{C as o,a as x,b as p,c as m}from"./Card-BQbkbI2V.js";import{B as h}from"./brain-D0FWv8Ts.js";import{A as b}from"./arrow-right-AGtofRys.js";import{C as g}from"./circle-check-B8OWK3WQ.js";/**
* @license lucide-react v0.555.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const f=[["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"m19 8 3 8a5 5 0 0 1-6 0zV7",key:"zcdpyk"}],["path",{d:"M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1",key:"1yorad"}],["path",{d:"m5 8 3 8a5 5 0 0 1-6 0zV7",key:"eua70x"}],["path",{d:"M7 21h10",key:"1b0cd5"}]],u=l("scale",f);/**
* @license lucide-react v0.555.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const j=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],N=l("target",j),T=({evidence:v=[]})=>{const[t,c]=d.useState("INTENT"),[i]=d.useState([{id:"1",type:"KNOWLEDGE",description:"Subject accessed sensitive admin panel 3 times prior to incident",confidence:85,evidenceIds:["log_123"]},{id:"2",type:"INTENT",description:"Structured transactions below reporting threshold ($9,900)",confidence:92,evidenceIds:["tx_456","tx_457"]},{id:"3",type:"MOTIVE",description:"High personal debt detected in background check",confidence:60,evidenceIds:["credit_report_001"]}]),a=s=>i.filter(r=>r.type===s);return e.jsx("div",{className:"h-full bg-slate-50 dark:bg-slate-900 p-6 overflow-y-auto",children:e.jsxs("div",{className:"max-w-4xl mx-auto space-y-6",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsxs("h2",{className:"text-2xl font-bold flex items-center gap-2 text-slate-800 dark:text-white",children:[e.jsx(h,{className:"text-purple-600"}),"Mens Rea Analysis"]}),e.jsx("p",{className:"text-slate-500 text-sm",children:"Automated intent pattern recognition and legal element mapping"})]}),e.jsx("div",{className:"flex gap-2",children:e.jsx("span",{className:"bg-purple-100 text-purple-700 px-3 py-1 rounded-full text-xs font-bold border border-purple-200",children:"Establish Legal Intent"})})]}),e.jsx("div",{className:"grid grid-cols-3 gap-4",children:[{id:"KNOWLEDGE",icon:e.jsx(N,{size:20}),label:"Knowledge",desc:"Awareness of Facts"},{id:"INTENT",icon:e.jsx(b,{size:20}),label:"Intent",desc:"Purpose to Commit"},{id:"MOTIVE",icon:e.jsx(u,{size:20}),label:"Motive",desc:"Reason for Action"}].map(s=>e.jsxs("button",{onClick:()=>c(s.id),className:`p-4 rounded-xl border-2 transition-all flex flex-col items-center text-center gap-2 ${t===s.id?"border-purple-500 bg-purple-50 dark:bg-purple-900/20 text-purple-700 dark:text-purple-300":"border-slate-200 dark:border-slate-700 bg-white dark:bg-slate-800 text-slate-500 dark:text-slate-400 hover:border-purple-300"}`,children:[s.icon,e.jsxs("div",{children:[e.jsx("div",{className:"font-bold text-sm",children:s.label}),e.jsx("div",{className:"text-xs opacity-75",children:s.desc})]})]},s.id))}),e.jsxs("div",{className:"space-y-4",children:[a(t).map(s=>e.jsxs(o,{className:"border-l-4 border-l-purple-500",children:[e.jsx(x,{className:"pb-2",children:e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsx(p,{className:"text-base font-medium text-slate-800 dark:text-slate-200",children:s.description}),e.jsx("div",{className:"flex items-center gap-2",children:e.jsxs("span",{className:`text-xs font-bold px-2 py-1 rounded ${s.confidence>80?"bg-green-100 text-green-700":s.confidence>50?"bg-amber-100 text-amber-700":"bg-red-100 text-red-700"}`,children:[s.confidence,"% Confidence"]})})]})}),e.jsx(m,{children:e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("div",{className:"text-xs font-bold uppercase text-slate-400 tracking-wider",children:"Supporting Evidence"}),e.jsxs("div",{className:"flex gap-2 flex-wrap",children:[s.evidenceIds.map(r=>e.jsxs("div",{className:"flex items-center gap-1 bg-slate-100 dark:bg-slate-800 px-2 py-1 rounded text-xs text-slate-600 dark:text-slate-300 border border-slate-200 dark:border-slate-700",children:[e.jsx(g,{size:12,className:"text-green-500"}),r]},r)),s.evidenceIds.length===0&&e.jsxs("div",{className:"flex items-center gap-1 text-amber-500 text-xs",children:[e.jsx(n,{size:12})," No mapped evidence"]})]})]})})]},s.id)),a(t).length===0&&e.jsxs("div",{className:"text-center py-12 text-slate-400 border-2 border-dashed border-slate-200 dark:border-slate-700 rounded-xl",children:[e.jsxs("p",{children:["No indicators detected for ",t.toLowerCase(),"."]}),e.jsx("button",{className:"mt-4 text-purple-600 hover:underline text-sm font-medium",children:"Run Advanced AI Scan"})]})]})]})})};export{T as MensReaAnalyzer};