1import{r as a,j as e,y as u,aF as h,d as p}from"./index-BuF13C9R.js";import{P as f}from"./PageHeader-BJWwaOi_.js";import{I as g}from"./input-B1pb-EbS.js";function y(){const[n,l]=a.useState([]),[s,c]=a.useState(""),[x,m]=a.useState(!0);a.useEffect(()=>{async function t(){const r=await p.entities.AuditLog.list("-created_date",100);l(r),m(!1)}t()},[]);const d=n.filter(t=>{var r,o,i;return((r=t.action)==null?void 0:r.includes(s))||((o=t.user_email)==null?void 0:o.includes(s))||((i=t.details)==null?void 0:i.includes(s))});return x?e.jsx("div",{className:"flex items-center justify-center h-64",children:e.jsx("div",{className:"w-8 h-8 border-4 border-primary/20 border-t-primary rounded-full animate-spin"})}):e.jsxs("div",{children:[e.jsx(f,{title:"××× ×¤×¢×××ת",description:"ר×ש×× ×× ×פע×××ת ש×××¦×¢× ××ער×ת"}),e.jsxs("div",{className:"bg-white rounded-2xl border border-border shadow-sm overflow-hidden",children:[e.jsx("div",{className:"px-6 py-4 border-b border-border",children:e.jsxs("div",{className:"relative max-w-sm",children:[e.jsx(u,{className:"absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(g,{placeholder:"××פ×ש ××××...",value:s,onChange:t=>c(t.target.value),className:"pr-10"})]})}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-border bg-muted/50",children:[e.jsx("th",{className:"text-right px-6 py-3 font-medium text-muted-foreground",children:"ת×ר××"}),e.jsx("th",{className:"text-right px-6 py-3 font-medium text-muted-foreground",children:"×שת×ש"}),e.jsx("th",{className:"text-right px-6 py-3 font-medium text-muted-foreground",children:"פע×××"}),e.jsx("th",{className:"text-right px-6 py-3 font-medium text-muted-foreground",children:"ס××"}),e.jsx("th",{className:"text-right px-6 py-3 font-medium text-muted-foreground",children:"פר×××"}),e.jsx("th",{className:"text-right px-6 py-3 font-medium text-muted-foreground",children:"×ת×××ת"})]})}),e.jsxs("tbody",{children:[d.map(t=>e.jsxs("tr",{className:"border-b border-border hover:bg-muted/30 transition-colors",children:[e.jsx("td",{className:"px-6 py-4 text-muted-foreground whitespace-nowrap",children:e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(h,{className:"w-3.5 h-3.5"}),new Date(t.created_date).toLocaleString("he-IL")]})}),e.jsx("td",{className:"px-6 py-4",children:t.user_email}),e.jsx("td",{className:"px-6 py-4 font-medium",children:t.action}),e.jsx("td",{className:"px-6 py-4 text-muted-foreground",children:t.target_type||"â"}),e.jsx("td",{className:"px-6 py-4 text-muted-foreground",children:t.details||"â"}),e.jsx("td",{className:"px-6 py-4",children:t.is_impersonation&&e.jsx("span",{className:"px-2.5 py-1 rounded-full text-xs font-medium bg-orange-100 text-orange-700",children:"××"})})]},t.id)),d.length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:6,className:"px-6 py-12 text-center text-muted-foreground",children:"××× ×¤×¢×××ת ××××"})})]})]})})]})]})}export{y as default};
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.