1import{j as e}from"./vendor-markdown-Bj2spg3f.js";import{r as v,L as T}from"./vendor-react-B-0p-RVf.js";import{u as G,b as Q}from"./index-45gJDKBt.js";import{U as W,F as N,V as Z,I as K,d as D,b8 as P,q as U,S as X,O as ee,aE as O,b9 as te,c as R,aJ as re,Z as se,a as ie,p as V,v as ae}from"./vendor-icons-D-5f6XKt.js";import"./vendor-misc-D0V4jby4.js";import"./vendor-i18n-D8j9R6P3.js";const c=l=>l>=1e6?(l/1e6).toFixed(1)+"M":l>=1e3?(l/1e3).toFixed(1)+"K":l,ne=l=>{if(!l)return"Never";const r=Date.now()-new Date(l).getTime(),g=Math.floor(r/6e4);if(g<1)return"Just now";if(g<60)return`${g}m ago`;const y=Math.floor(g/60);return y<24?`${y}h ago`:`${Math.floor(y/24)}d ago`},j={free:{bg:"linear-gradient(135deg, #ede9fe, #ddd6fe)",color:"#7C3AED",ring:"#8B5CF6"},starter:{bg:"linear-gradient(135deg, #dbeafe, #bfdbfe)",color:"#2563EB",ring:"#3B82F6"},pro:{bg:"linear-gradient(135deg, #fef3c7, #fde68a)",color:"#D97706",ring:"#F59E0B"},enterprise:{bg:"linear-gradient(135deg, #f5f3ff, #ede9fe)",color:"#6D28D9",ring:"#7C3AED"}};function xe(){const{currencySign:l}
1=G(),[r,g]=v.useState(null),[y,L]=v.useState(!0),[z,I]=v.useState(!1),b=v.useMemo(()=>{try{return JSON.parse(localStorage.getItem("user")||"{}")}catch{return{}}},[]);b.is_admin||b.role;const d=b.role==="moderator"&&!b.is_admin,$=async(t=!1)=>{t&&I(!0);try{const a=await Q.get("/api/admin/dashboard");g(a.data)}catch(a){console.error("Admin dashboard error:",a)}finally{L(!1),I(!1)}};if(v.useEffect(()=>{$()},[]),y)return e.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"60vh"},children:e.jsxs("div",{style:{textAlign:"center"},children:[e.jsx("div",{className:"spinner",style:{width:44,height:44,margin:"0 auto 16px"}}),e.jsx("p",{style:{color:"var(--text-muted)",fontSize:"0.9rem"},children:"Loading dashboard..."})]})});const H=[{label:"Total Users",value:c(r?.total_users??0),change:r?.new_users_24h??0,changeLabel:"new today",icon:e.jsx(W,{size:20}),gradient:"linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%)",shadowColor:"rgba(139, 92, 246, 0.3)",to:"/admin/users"},{label:"Total Projects",value:c(r?.total_projects??0),change:r?.new_projects_24h??0,changeLabel:"new today",icon:e.jsx(N,{size:20}),gradient:"linear-gradient(135deg, #3B82F6 0%, #2563EB 100%)",shadowColor:"rgba(59, 130, 246, 0.3)",to:"/admin/projects"},{label:"Videos Generated",value:c(r?.total_videos??0),change:r?.completed_jobs??0,changeLabel:"completed",icon:e.jsx(Z,{size:20}),gradient:"linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%)",shadowColor:"rgba(139, 92, 246, 0.3)",to:d?"/admin/projects":"/admin/jobs"},{label:"Scenes Today",value:c(r?.scenes_today??0),change:null,changeLabel:"across all users",icon:e.jsx(K,{size:20}),gradient:"linear-gradient(135deg, #F59E0B 0%, #D97706 100%)",shadowColor:"rgba(245, 158, 11, 0.3)",to:d?"/admin/projects":"/admin/jobs"},...d?[]:[{label:"Total Earnings",value:l+c(r?.total_earnings??0),change:r?.pending_payments??0,changeLabel:"pending",icon:e.jsx(D,{size:20}),gradient:"linear-gradient(135deg, #10B981 0%, #059669 100%)",shadowColor:"rgba(16, 185, 129, 0.3)",to:"/admin/billing"},{label:"Monthly Revenue",value:l+c(r?.monthly_earnings??0),change:0,changeLabel:"this month",icon:e.jsx(P,{size:20}),gradient:"linear-gradient(135deg, #F59E0B 0%, #D97706 100%)",shadowColor:"rgba(245, 158, 11, 0.3)",to:"/admin/billing"},{label:"Pending Payments",value:c(r?.pending_payments??0),change:0,changeLabel:"awaiting",icon:e.jsx(U,{size:20}),gradient:"linear-gradient(135deg, #EF4444 0%, #DC2626 100%)",shadowColor:"rgba(239, 68, 68, 0.3)",to:"/admin/billing"}]],C=r?.plan_distribution||[],J=C.reduce((t,a)=>t+a.count,0)||1,w=r?.projects_7d||[],S=r?.users_7d||[];Math.max(...w.map(t=>t.count),1),Math.max(...S.map(t=>t.count),1);const f=(r?.active_jobs??0)+(r?.completed_jobs??0)+(r?.failed_jobs??0),k=f>0?{active:(r?.active_jobs??0)/f*100,completed:(r?.completed_jobs??0)/f*100,failed:(r?.failed_jobs??0)/f*100}:{active:0,completed:0,failed:0},q=d?[{to:"/admin/users",icon:e.jsx(W,{size:18}),label:"Users",desc:"View accounts",color:"#8B5CF6"},{to:"/admin/projects",icon:e.jsx(N,{size:18}),label:"Projects",desc:"Browse projects",color:"#3B82F6"},{to:"/admin/tickets",icon:e.jsx(R,{size:18}),label:"Tickets",desc:"Support requests",color:"#F59E0B"},{to:"/admin/affiliates",icon:e.jsx(V,{size:18}),label:"Affiliates",desc:"Partner list",color:"#7C3AED"}]:[{to:"/admin/users",icon:e.jsx(W,{size:18}),label:"Users",desc:"Manage accounts",color:"#8B5CF6"},{to:"/admin/plans",icon:e.jsx(D,{size:18}),label:"Plans",desc:"Pricing & limits",color:"#3B82F6"},{to:"/admin/activity-logs",icon:e.jsx(U,{size:18}),label:"Activity",desc:"User actions",color:"#F59E0B"},{to:"/admin/flow-accounts",icon:e.jsx(V,{size:18}),label:"Flow",desc:"API accounts",color:"#3B82F6"},{to:"/admin/jobs",icon:e.jsx(R,{size:18}),label:"Jobs",desc:"Queue status",color:"#7C3AED"},{to:"/admin/settings",icon:e.jsx(ae,{size:18}),label:"Settings",desc:"App config",color:"#8B5CF6"}];return e.jsxs("div",{className:"fade-in",children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:28},children:[e.jsxs("div",{children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:4},children:[e.jsx("div",{style:{width:36,height:36,borderRadius:10,background:"linear-gradient(135deg, #8B5CF6, #3B82F6)",display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx(X,{size:18,color:"white"})}),e.jsx("h1",{style:{fontSize:"1.6rem",fontWeight:800,letterSpacing:"-0.03em",margin:0},children:d?"Moderator Dashboard":"Admin Dashboard"})]}),e.jsx("p",{style:{color:"var(--text-muted)",fontSize:"0.875rem",margin:0,paddingLeft:46},children:d?"User overview and weekly activity":"System overview and real-time analytics"})]}),e.jsxs("button",{onClick:()=>$(!0),disabled:z,style:{display:"flex",alignItems:"center",gap:6,padding:"8px 16px",borderRadius:"var(--radius)",background:"var(--bg-secondary)",border:"1px solid var(--border)",color:"var(--text-secondary)",fontSize:"0.8rem",fontWeight:600,cursor:"pointer",transition:"all 0.2s",boxShadow:"var(--shadow-xs)"},children:[e.jsx(ee,{size:14,className:z?"spinning":""}),z?"Refreshing...":"Refresh"]})]}),e.jsx("div",{className:"admin-kpi-grid",style:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:16,marginBottom:24},children:H.map((t,a)=>e.jsxs(T,{to:t.to,className:"stagger-1",style:{background:"var(--bg-secondary)",borderRadius:16,padding:24,border:"1px solid var(--border)",position:"relative",overflow:"hidden",transition:"all 0.3s ease",textDecoration:"none",color:"inherit",curs
1or:"pointer"},onMouseEnter:s=>{s.currentTarget.style.transform="translateY(-2px)",s.currentTarget.style.boxShadow=`0 8px 24px ${t.shadowColor}`},onMouseLeave:s=>{s.currentTarget.style.transform="translateY(0)",s.currentTarget.style.boxShadow="none"},children:[e.jsx("div",{style:{position:"absolute",top:-20,right:-20,width:80,height:80,borderRadius:"50%",background:t.gradient,opacity:.08}}),e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:16},children:[e.jsx("span",{style:{fontSize:"0.78rem",fontWeight:600,color:"var(--text-muted)",letterSpacing:"0.02em"},children:t.label}),e.jsx("div",{style:{width:36,height:36,borderRadius:10,background:t.gradient,display:"flex",alignItems:"center",justifyContent:"center",color:"white",boxShadow:`0 4px 12px ${t.shadowColor}`},children:t.icon})]}),e.jsx("div",{style:{fontSize:"2rem",fontWeight:800,letterSpacing:"-0.03em",lineHeight:1,marginBottom:8,color:"var(--text-primary)"},children:t.value}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[t.change!==null&&t.change>0&&e.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:2,fontSize:"0.72rem",fontWeight:700,color:"var(--success)",background:"var(--success-light)",padding:"2px 8px",borderRadius:20},children:[e.jsx(O,{size:12})," +",t.change]}),e.jsx("span",{style:{fontSize:"0.72rem",color:"var(--text-muted)",fontWeight:500},children:t.changeLabel})]})]},a))}),e.jsxs("div",{className:"admin-mid-grid",style:{display:"grid",gridTemplateColumns:"2fr 1fr",gap:16,marginBottom:16},children:[e.jsxs("div",{className:"stagger-2",style:{background:"var(--bg-secondary)",borderRadius:16,border:"1px solid var(--border)",padding:24},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:20},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[e.jsx(te,{size:18,style:{color:"var(--primary)"}}),e.jsx("h3",{style:{margin:0,fontSize:"1rem",fontWeight:700},children:"Weekly Activity"})]}),e.jsxs("div",{style:{display:"flex",gap:16},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,fontSize:"0.72rem",color:"var(--text-muted)"},children:[e.jsx("div",{style:{width:10,height:2,background:"var(--primary)"}})," Projects"]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,fontSize:"0.72rem",color:"var(--text-muted)"},children:[e.jsx("div",{style:{width:10,height:2,background:"var(--accent)"}})," Users"]})]})]}),w.length>0||S.length>0?(()=>{const t=new Set;w.forEach(i=>t.add(i.date)),S.forEach(i=>t.add(i.date));const s=Array.from(t).sort().map(i=>({date:i,projects:w.find(n=>n.date===i)?.count||0,users:S.find(n=>n.date===i)?.count||0})),h=Math.max(...s.map(i=>Math.max(i.projects,i.users)),1),x=600,B=180,o={l:32,r:12,t:18,b:28},E=x-o.l-o.r,u=B-o.t-o.b,p=i=>s.length===1?o.l+E/2:o.l+i/(s.length-1)*E,_=i=>o.t+u-i/h*u,F=i=>s.map((n,m)=>`${m===0?"M":"L"} ${p(m).toFixed(1)} ${_(n[i]).toFixed(1)}`).join(" "),M=i=>`${F(i)} L ${p(s.length-1).toFixed(1)} ${(o.t+u).toFixed(1)} L ${p(0).toFixed(1)} ${(o.t+u).toFixed(1)} Z`,A=4;return e.jsx("div",{style:{width:"100%"},children:e.jsxs("svg",{viewBox:`0 0 ${x} ${B}`,preserveAspectRatio:"none",style:{width:"100%",height:200,display:"block"},children:[e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"proj-grad",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0%",stopColor:"var(--primary)",stopOpacity:"0.28"}),e.jsx("stop",{offset:"100%",stopColor:"var(--primary)",stopOpacity:"0"})]}),e.jsxs("linearGradient",{id:"user-grad",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0%",stopColor:"var(--accent)",stopOpacity:"0.28"}),e.jsx("stop",{offset:"100%",stopColor:"var(--accent)",stopOpacity:"0"})]})]}),Array.from({length:A+1}).map((i,n)=>{const m=o.t+n/A*u,Y=Math.round(h*(1-n/A));return e.jsxs("g",{children:[e.jsx("line",{x1:o.l,x2:x-o.r,y1:m,y2:m,stroke:"var(--border)",strokeWidth:"1",strokeDasharray:"2 4",opacity:"0.6"}),e.jsx("text",{x:o.l-6,y:m+3,fontSize:"9",fill:"var(--text-muted)",textAnchor:"end",children:Y})]},n)}),e.jsx("path",{d:M("projects"),fill:"url(#proj-grad)"}),e.jsx("path",{d:M("users"),fill:"url(#user-grad)"}),e.jsx("path",{d:F("projects"),fill:"none",stroke:"var(--primary)",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:F("users"),fill:"none",stroke:"var(--accent)",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"}),s.map((i,n)=>e.jsxs("g",{children:[e.jsx("circle",{cx:p(n),cy:_(i.projects),r:"3.2",fill:"var(--bg-secondary)",stroke:"var(--primary)",strokeWidth:"2",children:e.jsx("title",{children:`${new Date(i.date).toLocaleDateString("en",{weekday:"short",month:"short",day:"numeric"})} ⢠${i.projects} projects`})}),e.jsx("circle",{cx:p(n),cy:_(i.users),r:"3.2",fill:"var(--bg-secondary)",stroke:"var(--accent)",strokeWidth:"2",children:e.jsx("title",{children:`${new Date(i.date).toLocaleDateString("en",{weekday:"short",month:"short",day:"numeric"})} ⢠${i.users} users`})})]},`pts-${n}`)),s.map((i,n)=>e.jsx("text",{x:p(n),y:B-8,fontSize:"9.5",fill:"var(--text-muted)",textAnchor:"middle",fontWeight:"600",children:new Date(i.date).toLocaleDateString("en",{weekday:"short"})},`lbl-${n}`))]})})})():e.jsxs("div",{style:{height:180,display:"flex",alignItems:"center",justifyContent:"center",color:"var(--text-muted)",fontSize:"0.85rem"},children:[e.jsx(R,{size:20,style:{marginRight:8,opacity:.4}})," No activity data yet"]})]}),e.jsxs("div",{className:"stagger-2",style:{background:"var(--bg-secondary)",borderRadius:16,border:"1px solid var(--border)",padding:24},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:20},children:[e.jsx(re,{size:18,style:{color:"var(--accent)"}}),e.jsx("h3",{style:{margin:0,fontSize:"1rem",fontWeight:700},children:"Plan Distribution"})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:12},children:[C.map((t,a)=>{const s=t.plan||"free",h=j[s]||j.free,x=Math.round(t.count/J*100);return e.jsxs("div",{children:[e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:6},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[e.jsx("div",{style:{width:28,height:28,borderRadius:8,background:h.bg,display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx("span",{style:{fontSize:"0.65rem",fontWeight:800,color:h.color,textTransform:"uppercase"},children:s[0]})}),e.jsx("span",{style:{fontWeight:700,fontSize:"0.85rem",textTransform:"capitalize",color:"var(--text-primary)"},children:s})]}),e.jsxs("div",{style:{textAlign:"right"},children:[e.jsx("span",{style:{fontSize:"0.85rem",fontWeight:800,color:"var(--text-primary)"},children:t.count}),e.jsxs("span",{style:{fontSize:"0.72rem",color:"var(--text-muted)",marginLeft:4},children:["(",x,"%)"]})]})]}),e.jsx("div",{style:{height:6,background:"var(--bg-tertiary)",borderRadius:9999,overflow:"hidden"},children:e.jsx("div",{style:{height:"100%",borderRadius:9999,width:`${x}%`,background:h.ring,transition:"width 0.8s cubic-bezier(0.4, 0, 0.2, 1)"}})})]},a)}),C.length===0&&e.jsx("div",{style:{textAlign:"center",padding:20,color:"var(--text-muted)",fontSize:"0.85rem"},children:"No users yet"})]})]})]}),e.jsxs("div",{style:{display:"grid",gridTemplateColumns:d?"1fr":"1fr 1fr",gap:16,marginBottom:16},children:[!d&&e.jsxs("div",{className:"stagger-3",style:{background:"var(--bg-secondary)",borderRadius:16,border:"1px solid var(--border)",padding:24},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:16},children:[e.jsx(se,{size:18,style:{color:"var(--warning)"}}),e.jsx("h3",{style:{margin:0,fontSize:"1rem",fontWeight:700},children:"Job Queue Status"})]}),e.jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr",gap:12,marginBottom:16},children:[{label:"Active",value:r?.active_jobs??0,color:"var(--warning)",bg:"var(--warning-light)"}
1,{label:"Completed",value:r?.completed_jobs??0,color:"var(--success)",bg:"var(--success-light)"},{label:"Failed",value:r?.failed_jobs??0,color:"var(--danger)",bg:"var(--danger-light)"}].map((t,a)=>e.jsxs("div",{style:{background:t.bg,borderRadius:12,padding:"14px 12px",textAlign:"center"},children:[e.jsx("div",{style:{fontSize:"1.4rem",fontWeight:800,color:t.color,lineHeight:1},children:t.value}),e.jsx("div",{style:{fontSize:"0.68rem",fontWeight:600,color:t.color,marginTop:4,opacity:.8,textTransform:"uppercase",letterSpacing:"0.05em"},children:t.label})]},a))}),f>0&&e.jsxs("div",{style:{height:8,borderRadius:9999,overflow:"hidden",display:"flex",background:"var(--bg-tertiary)"},children:[e.jsx("div",{style:{width:`${k.completed}%`,background:"var(--success)",transition:"width 0.6s"}}),e.jsx("div",{style:{width:`${k.active}%`,background:"var(--warning)",transition:"width 0.6s"}}),e.jsx("div",{style:{width:`${k.failed}%`,background:"var(--danger)",transition:"width 0.6s"}})]})]}),e.jsxs("div",{className:"stagger-3",style:{background:"var(--bg-secondary)",borderRadius:16,border:"1px solid var(--border)",padding:24},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:16},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[e.jsx(P,{size:18,style:{color:"var(--info)"}}),e.jsx("h3",{style:{margin:0,fontSize:"1rem",fontWeight:700},children:"Recent Activity"})]}),e.jsxs(T,{to:"/admin/users",style:{fontSize:"0.75rem",fontWeight:600,display:"flex",alignItems:"center",gap:4},children:["View all ",e.jsx(ie,{size:12})]})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[(r?.recent_users||[]).slice(0,5).map((t,a)=>e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"8px 10px",borderRadius:10,transition:"background 0.2s",cursor:"default"},onMouseEnter:s=>s.currentTarget.style.background="var(--bg-tertiary)",onMouseLeave:s=>s.currentTarget.style.background="transparent",children:[e.jsx("div",{style:{width:32,height:32,borderRadius:9,flexShrink:0,background:`linear-gradient(135deg, ${["#8B5CF6","#3B82F6","#F59E0B","#7C3AED","#3B82F6"][a%5]}, ${["#7C3AED","#2563EB","#D97706","#8B5CF6","#8B5CF6"][a%5]})`,display:"flex",alignItems:"center",justifyContent:"center",fontSize:"0.7rem",fontWeight:700,color:"white"},children:(t.full_name||t.email||"U")[0].toUpperCase()}),e.jsxs("div",{style:{flex:1,minWidth:0},children:[e.jsx("div",{style:{fontSize:"0.82rem",fontWeight:600,color:"var(--text-primary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.full_name||t.email?.split("@")[0]}),e.jsxs("div",{style:{fontSize:"0.68rem",color:"var(--text-muted)"},children:[t.scenes_used_today||0," scenes today"]})]}),e.jsxs("div",{style:{textAlign:"right",flexShrink:0},children:[e.jsx("span",{style:{fontSize:"0.65rem",fontWeight:700,padding:"2px 8px",borderRadius:20,textTransform:"capitalize",...j[t.plan]?{background:j[t.plan].bg,color:j[t.plan].color}:{background:"var(--bg-tertiary)",color:"var(--text-muted)"}},children:t.plan||"free"}),e.jsx("div",{style:{fontSize:"0.62rem",color:"var(--text-muted)",marginTop:2},children:ne(t.last_login_at)})]})]},a)),(!r?.recent_users||r.recent_users.length===0)&&e.jsx("div",{style:{textAlign:"center",padding:20,color:"var(--text-muted)",fontSize:"0.85rem"},children:"No recent users"})]})]})]}),r?.earnings_by_plan?.length>0&&e.jsxs("div",{style:{background:"var(--card-bg)",borderRadius:14,padding:"20px",border:"1px solid var(--border)",marginBottom:24},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:16},children:[e.jsx(D,{size:18,style:{color:"#10B981"}}),e.jsx("h3",{style:{fontSize:15,fontWeight:700,margin:0,color:"var(--text)"},children:"Earnings by Plan"})]}),e.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(200px, 1fr))",gap:12},children:r.earnings_by_plan.map((t,a)=>e.jsxs("div",{style:{background:"var(--bg)",borderRadius:10,padding:"16px",textAlign:"center"},children:[e.jsx("div",{style:{fontSize:13,fontWeight:600,color:"var(--text)",textTransform:"capitalize",marginBottom:6},children:t.plan_name||t.plan_id}),e.jsxs("div",{style:{fontSize:24,fontWeight:700,color:"#10B981"},children:[l,parseFloat(t.total||0).toFixed(0)]}),e.jsxs("div",{style:{fontSize:12,color:"var(--text-muted)",marginTop:4},children:[t.count," payment",t.count!==1?"s":""]})]},a))})]}),e.jsxs("div",{className:"stagger-4",style:{marginBottom:0},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:14},children:[e.jsx(O,{size:16,style:{color:"var(--primary)"}}),e.jsx("h3",{style:{margin:0,fontSize:"0.95rem",fontWeight:700}
1,children:"Quick Actions"})]}),e.jsx("div",{className:"admin-quick-grid",style:{display:"grid",gridTemplateColumns:"repeat(6, 1fr)",gap:10},children:q.map((t,a)=>e.jsxs(T,{to:t.to,style:{background:"var(--bg-secondary)",borderRadius:14,border:"1px solid var(--border)",padding:"18px 14px",textDecoration:"none",color:"inherit",textAlign:"center",transition:"all 0.25s ease",position:"relative",overflow:"hidden"},onMouseEnter:s=>{s.currentTarget.style.transform="translateY(-3px)",s.currentTarget.style.borderColor=t.color,s.currentTarget.style.boxShadow=`0 6px 20px ${t.color}20`},onMouseLeave:s=>{s.currentTarget.style.transform="translateY(0)",s.currentTarget.style.borderColor="var(--border)",s.currentTarget.style.boxShadow="none"},children:[e.jsx("div",{style:{width:38,height:38,borderRadius:10,margin:"0 auto 10px",background:`${t.color}12`,color:t.color,display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.25s"},children:t.icon}),e.jsx("div",{style:{fontSize:"0.82rem",fontWeight:700,color:"var(--text-primary)",marginBottom:2},children:t.label}),e.jsx("div",{style:{fontSize:"0.68rem",color:"var(--text-muted)",fontWeight:500},children:t.desc})]},a))})]})]})}export{xe 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.