1import{r as l,j as e,C as d,b as i,p as o,U as c,a as r,d as x,aU as m,af as n}from"./index-CT3mG8No.js";import{C as u}from"./calendar-tUKuUoNb.js";const j=({symbol:p})=>{const s=l.useMemo(()=>({netActivity:"selling",buyCount3M:2,sellCount3M:8,netShares3M:-245e3,netValue3M:-472e5,ownershipPct:.8,institutionalPct:72.4,recentTransactions:[{date:"2024-01-15",name:"Tim Cook",title:"CEO",type:"SELL",shares:5e4,price:192.45,value:9622500,reason:"10b5-1"},{date:"2024-01-12",name:"Luca Maestri",title:"CFO",type:"SELL",shares:25e3,price:191.2,value:478e4,reason:"10b5-1"},{date:"2024-01-08",name:"Jeff Williams",title:"COO",type:"SELL",shares:35e3,price:189.5,value:6632500,reason:"10b5-1"},{date:"2023-12-20",name:"Deirdre O Brien",title:"SVP Retail",type:"BUY",shares:5e3,price:185,value:925e3,reason:"Open Market"},{date:"2023-12-15",name:"Katherine Adams",title:"General Counsel",type:"SELL",shares:18e3,price:188.75,value:3397500,reason:"10b5-1"}],trend6M:[{month:"Aug",buys:1,sells:3,netValue:-125e5},{month:"Sep",buys:0,sells:5,netValue:-284e5},{month:"Oct",buys:2,sells:2,netValue:-82e5},{month:"Nov",buys:0,sells:4,netValue:-221e5},{month:"Dec",buys:1,sells:3,netValue:-158e5},{month:"Jan",buys:0,sells:4,netValue:-244e5}],clusteredActivity:{detected:!0,type:"selling",period:"Last 30 days",participants:4},upcomingBlackout:{start:"2024-01-25",end:"2024-02-05",reason:"Earnings Window"}}),[]);return e.jsxs(d,{className:"bg-card/50 border-border/50",children:[e.jsx(i,{className:"pb-3",children:e.jsxs(o,{className:"flex items-center gap-2 text-base",children:[e.jsx(c,{className:"w-4 h-4 text-primary"}),"Insider Transactions & Ownership",e.jsxs(r,{variant:s.netActivity==="selling"?"destructive":"default",className:"ml-auto text-[10px]",children:["Net ",s.netActivity.toUpperCase()]})]})}),e.jsxs(x,{className:"space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-4 gap-2",children:[e.jsxs("div",{className:"bg-background/50 p-2 rounded border border-border/30",children:[e.jsx("p",{className:"text-[10px] text-muted-foreground uppercase",children:"Net 3M Shares"}),e.jsxs("p",{className:`font-mono font-bold ${s.netShares3M>0?"text-profit":"text-loss"}`,children:[s.netShares3M>0?"+":"",(s.netShares3M/1e3).toFixed(0),"K"]})]}),e.jsxs("div",{className:"bg-background/50 p-2 rounded border border-border/30",children:[e.jsx("p",{className:"text-[10px] text-muted-foreground uppercase",children:"Net 3M Value"}),e.jsxs("p",{className:`font-mono font-bold ${s.netValue3M>0?"text-profit":"text-loss"}`,children:["$",Math.abs(s.netValue3M/1e6).toFixed(1),"M"]})]}),e.jsxs("div",{className:"bg-background/50 p-2 rounded border border-border/30",children:[e.jsx("p",{className:"text-[10px] text-muted-foreground uppercase",children:"Buys / Sells"}),e.jsxs("p",{className:"font-mono font-bold text-foreground",children:[e.jsx("span",{className:"text-profit",children:s.buyCount3M})," / ",e.jsx("span",{className:"text-loss",children:s.sellCount3M})]})]}),e.jsxs("div",{className:"bg-background/50 p-2 rounded border border-border/30",children:[e.jsx("p",{className:"text-[10px] text-muted-foreground uppercase",children:"Insider Own"}),e.jsxs("p",{className:"font-mono font-bold text-foreground",children:[s.ownershipPct,"%"]})]})]}),s.clusteredActivity.detected&&e.jsxs("div",{className:"flex items-center gap-2 p-2 bg-amber-500/10 border border-amber-500/30 rounded text-xs",children:[e.jsx(m,{className:"w-4 h-4 text-amber-500"}),e.jsxs("span",{className:"text-amber-200",children:["Clustered ",s.clusteredActivity.type," detected: ",s.clusteredActivity.participants," insiders in ",s.clusteredActivity.period]})]}),e.jsxs("div",{className:"flex items-center justify-between p-2 bg-background/50 border border-border/30 rounded",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(u,{className:"w-4 h-4 text-muted-foreground"}),e.jsx("span",{className:"text-xs text-muted-foreground",children:"Upcoming Blackout Period"})]}),e.jsxs("div",{className:"text-xs",children:[e.jsx("span",{className:"font-mono text-foreground",children:s.upcomingBlackout.start}),e.jsx("span",{className:"text-muted-foreground",children:" to "}),e.jsx("span",{className:"font-mono text-foreground",children:s.upcomingBlackout.end}),e.jsx(r,{variant:"outline",className:"ml-2 text-[9px]",children:s.upcomingBlackout.reason})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-xs font-medium text-foreground",children:"Recent Insider Transactions"}),e.jsx("div",{className:"space-y-1 max-h-48 overflow-y-auto",children:s.recentTransactions.map((t,a)=>e.jsxs("div",{className:"flex items-center justify-between bg-background/50 p-2 rounded border border-border/30 text-xs",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[e.jsx(r,{variant:t.type==="BUY"?"default":"destructive",className:"text-[9px] shrink-0",children:t.type}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"font-medium text-foreground truncate",children:t.name}),e.jsx("p",{className:"text-[10px] text-muted-foreground truncate",children:t.title})]})]}),e.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[e.jsxs("span",{className:"font-mono text-foreground",children:[(t.shares/1e3).toFixed(0),"K"]}),e.jsxs("span",{className:"font-mono text-muted-foreground",children:["@$",t.price]}),e.jsxs("span",{className:`font-mono ${t.type==="BUY"?"text-profit":"text-loss"}`,children:["$",(t.value/1e6).toFixed(1),"M"]})]})]},a))})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-xs font-medium text-foreground",children:"6-Month Insider Activity Trend"}),e.jsx("div",{className:"flex items-end gap-2 h-20",children:s.trend6M.map((t,a)=>e.jsxs("div",{className:"flex-1 flex flex-col items-center gap-1",children:[e.jsxs("div",{className:"w-full flex flex-col gap-0.5 h-14 justify-end",children:[e.jsx("div",{className:"w-full bg-profit/60 rounded-t",style:{height:`${t.buys*15}%`}}),e.jsx("div",{className:"w-full bg-loss/60 rounded-b",style:{height:`${t.sells*8}%`}})]}),e.jsx("span",{className:"text-[9px] text-muted-foreground",children:t.month}),e.jsxs("span",{className:`text-[8px] font-mono ${t.netValue>0?"text-profit":"text-loss"}`,children:[t.netValue>0?"+":"",(t.netValue/1e6).toFixed(0),"M"]})]},a))})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-xs font-medium text-foreground",children:"Ownership Distribution"}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsxs("div",{className:"flex justify-between text-xs",children:[e.jsx("span",{className:"text-muted-foreground",children:"Institutional"}),e.jsxs("span",{className:"font-mono text-foreground",children:[s.institutionalPct,"%"]})]}),e.jsx(n,{value:s.institutionalPct,className:"h-1.5"}),e.jsxs("div",{className:"flex justify-between text-xs",children:[e.jsx("span",{className:"text-muted-foreground",children:"Insider"}),e.jsxs("span",{className:"font-mono text-foreground",children:[s.ownershipPct,"%"]})]}),e.jsx(n,{value:s.ownershipPct*10,className:"h-1.5"})]})]})]})]})};export{j as InsiderTransactionsPanel};
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.