1import{c as d,y as m,j as e,C as r,o as t,p as a,a as i,q as n}from"./index-WxW1_FTW.js";import{A as x}from"./AdminLayout-rtKGF7nE.js";import{U as c}from"./users-DzkdAMc5.js";import{S as h}from"./settings-DU_4jCie.js";import{C as p}from"./clock-D_v4P0Lg.js";import{C as u}from"./circle-x-BTzteaZh.js";import{C as g}from"./circle-check-DIs3dxlh.js";import{A as f}from"./activity-B1JcMDut.js";import"./LinkstashLogo-_OYk2FGr.js";import"./button-Dfj20x_w.js";import"./index-BiS9G3Sf.js";import"./index-tES2v6oW.js";import"./briefcase-ppu5fUy1.js";import"./triangle-alert-Cchxe_Yo.js";import"./chevron-right-h6ooyqmc.js";import"./chevron-left-ZYRQ0zVN.js";/** 2 * @license lucide-react v0.453.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const j=d("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]);/** 7 * @license lucide-react v0.453.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const y=d("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]),N=[{title:"Total Users",value:"25",change:"+3 this week",trend:"up",icon:e.jsx(c,{className:"h-5 w-5"})},{title:"Active Sessions",value:"12",change:"+2 from yesterday",trend:"up",icon:e.jsx(f,{className:"h-5 w-5"})},{title:"System Uptime",value:"99.9%",change:"Last 30 days",trend:"neutral",icon:e.jsx(y,{className:"h-5 w-5"})}],w=[{id:1,user:"John Doe",action:"Created a new user",timestamp:"10 minutes ago",status:"success"},{id:2,user:"Jane Smith",action:"Updated settings",timestamp:"1 hour ago",status:"success"},{id:3,user:"Tom Wilson",action:"Failed login attempt",timestamp:"2 hours ago",status:"failed"},{id:4,user:"Sarah Johnson",action:"Password reset",timestamp:"3 hours ago",status:"pending"}];function I(){const{user:k}=m(),l=s=>{switch(s){case"success":return e.jsx(g,{className:"h-5 w-5 text-green-500"});case"failed":return e.jsx(u,{className:"h-5 w-5 text-red-500"});case"pending":return e.jsx(p,{className:"h-5 w-5 text-amber-500"});default:return null}};return e.jsx(x,{children:e.jsxs("div",{className:"p-6 space-y-6",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"Dashboard"}),e.jsx("div",{className:"flex items-center text-sm text-gray-600 dark:text-gray-400",children:e.jsxs("span",{children:["Last updated: ",new Date().toLocaleString()]})})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:N.map((s,o)=>e.jsxs(r,{children:[e.jsxs(t,{className:"flex flex-row items-center justify-between pb-2",children:[e.jsx(a,{className:"text-sm font-medium text-gray-600 dark:text-gray-400",children:s.title}),e.jsx("div",{className:"p-2 bg-gray-100 dark:bg-gray-800 rounded-md",children:s.icon})]}),e.jsxs(i,{children:[e.jsx("div",{className:"text-2xl font-bold",children:s.value}),e.jsx("p",{className:`text-xs font-medium mt-1 ${s.trend==="up"?"text-green-600 dark:text-green-500":s.trend==="down"?"text-red-600 dark:text-red-500":"text-gray-600 dark:text-gray-400"}`,children:s.change})]})]},o))}),e.jsxs(r,{children:[e.jsxs(t,{children:[e.jsx(a,{children:"Recent Activity"}),e.jsx(n,{children:"User actions from the last 24 hours"})]}),e.jsx(i,{children:e.jsx("div",{className:"space-y-4",children:w.map(s=>e.jsx("div",{className:"flex items-center justify-between p-3 bg-gray-50 dark:bg-gray-800 rounded-lg",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"flex-shrink-0",children:l(s.status)}),e.jsxs("div",{children:[e.jsxs("p",{className:"text-sm font-medium",children:[s.user," ",e.jsx("span",{className:"font-normal text-gray-600 dark:text-gray-400",children:s.action})]}),e.jsx("p",{className:"text-xs text-gray-600 dark:text-gray-400",children:s.timestamp})]})]})},s.id))})})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[e.jsxs(r,{children:[e.jsxs(t,{children:[e.jsx(a,{children:"User Management"}),e.jsx(n,{children:"Manage your organization's users"})]}),e.jsx(i,{className:"flex justify-center py-6",children:e.jsxs("a",{href:"/admin/users",className:"inline-flex items-center justify-center px-4 py-2 border border-transparent roun
11ded-md shadow-sm text-sm font-medium text-white bg-primary hover:bg-primary/90 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary",children:[e.jsx(c,{className:"h-5 w-5 mr-2"}),"Manage Users"]})})]}),e.jsxs(r,{children:[e.jsxs(t,{children:[e.jsx(a,{children:"System Settings"}),e.jsx(n,{children:"Configure your application settings"})]}),e.jsx(i,{className:"flex justify-center py-6",children:e.jsxs("a",{href:"/admin/settings",className:"inline-flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-primary hover:bg-primary/90 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary",children:[e.jsx(h,{className:"h-5 w-5 mr-2"}),"Adjust Settings"]})})]}),e.jsxs(r,{children:[e.jsxs(t,{children:[e.jsx(a,{children:"Bug Reports"}),e.jsx(n,{children:"Manage reported bugs and issues"})]}),e.jsx(i,{className:"flex justify-center py-6",children:e.jsxs("a",{href:"/admin/bug-tickets",className:"inline-flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-primary hover:bg-primary/90 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary",children:[e.jsx(j,{className:"h-5 w-5 mr-2"}),"Bug Tickets"]})})]})]})]})})}export{I 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.