PageSourceSearch

https://www.placements.codegnan.com/assets/SuperManagerDashboard-CP31mvNp.js

js codegnan.com collected 2026-09-25 14:57:15 UTC 44,239 bytes, 20 lines download raw bytes

1import{j as e}from"./vendor-markdown-3uENCkuS.js";import{d as X,u as H,r as p}from"./vendor-react-router-fbnoKto0.js";import{j as V,u as Y}from"./vendor-redux-8frB-79w.js";import{du as Z}from"./index-zslOFxNg.js";import{f as J}from"./FormsV2Routes-CzPjOn1_.js";import{bc as j,U as y,bd as Q,be as ee,bf as se,b0 as ae,bg as B,aX as N,bh as T,aW as te,aq as v,S as h,I as g,O as w,aa as le,T as re,bi as $,bj as P,ai as de}from"./vendor-icons-kV6MQrcF.js";import{R as C,P as ce,l as ie,m as ne,T as z,j as oe,n as xe,C as me,X as pe,Y as he,A as ge}from"./vendor-recharts-DJYAw1LN.js";import"./vendor-react-dom-CekZHfxh.js";import"./vendor-antd-CYdTsTmT.js";import"./vendor-reactflow-CEYCdEGm.js";import"./vendor-syntax-highlighter-1lJlPebH.js";const l=({className:r})=>e.jsx("div",{className:`bg-gradient-to-r from-slate-200 via-slate-100 to-slate-200 bg-[length:200%_100%] animate-shimmer ${r}`}),be=()=>e.jsxs("div",{className:"flex flex-col gap-4 sm:gap-6 md:gap-8 p-3 sm:p-4 md:p-8 min-h-screen font-[Inter] bg-[#fdfdfd]",children:[e.jsx("div",{className:"flex flex-col xl:flex-row xl:items-center justify-between gap-6",children:e.jsxs("div",{className:"space-y-3",children:[e.jsx(l,{className:"h-10 w-72 rounded-xl"}),e.jsx(l,{className:"h-4 w-96 rounded-lg opacity-60"})]})}),e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-6 gap-3 sm:gap-4 md:gap-6",children:[...Array(6)].map((r,d)=>e.jsxs("div",{className:"bg-white p-3 sm:p-4 md:p-6 rounded-2xl sm:rounded-[24px] border border-slate-100 shadow-sm",children:[e.jsxs("div",{className:"flex justify-between items-start mb-6",children:[e.jsx(l,{className:"w-12 h-12 rounded-2xl"}),e.jsx(l,{className:"w-14 h-6 rounded-lg"})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx(l,{className:"h-2.5 w-20 rounded shadow-sm opacity-50"}),e.jsx(l,{className:"h-9 w-16 rounded-lg"}),e.jsx(l,{className:"h-2.5 w-32 rounded shadow-sm opacity-50"})]})]},d))}),e.jsxs("div",{className:"space-y-4",children:[e.jsx(l,{className:"h-4 w-44 rounded-lg opacity-70"}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3 sm:gap-4",children:[...Array(4)].map((r,d)=>e.jsxs("div",{className:"bg-white p-4 rounded-2xl border border-slate-100 shadow-sm flex items-center gap-4",children:[e.jsx(l,{className:"w-11 h-11 rounded-xl flex-shrink-0"}),e.jsxs("div",{className:"space-y-2.5 flex-1",children:[e.jsx(l,{className:"h-4 w-full rounded-md"}),e.jsx(l,{className:"h-2 w-2/3 rounded-md opacity-50"})]})]},d))})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-4 sm:gap-6 md:gap-8",children:[e.jsxs("div",{className:"lg:col-span-8 flex flex-col gap-4 sm:gap-6 md:gap-8",children:[e.jsxs("div",{className:"bg-white p-4 sm:p-5 md:p-7 rounded-2xl sm:rounded-[32px] border border-slate-100 shadow-sm sm:h-[400px] flex flex-col",children:[e.jsx(l,{className:"h-7 w-56 rounded-xl mb-8"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-5",children:[...Array(3)].map((r,d)=>e.jsxs("div",{className:"p-6 bg-slate-50/50 rounded-[28px] border border-slate-100 h-[185px] space-y-5",children:[e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsx(l,{className:"h-7 w-20 rounded-full"}),e.jsx(l,{className:"w-5 h-5 rounded-lg opacity-40"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(l,{className:"h-5 w-full rounded-lg"}),e.jsx(l,{className:"h-3 w-3/4 rounded-lg opacity-60"})]}),e.jsx("div",{className:"pt-4 border-t border-slate-200/50",children:e.jsx(l,{className:"h-3 w-1/2 rounded-lg opacity-50"})})]},d))})]}),e.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 sm:gap-6 md:gap-8",children:[...Array(2)].map((r,d)=>e.jsxs("div",{className:"bg-white rounded-2xl sm:rounded-[32px] border border-slate-100 shadow-sm sm:h-[600px] flex flex-col p-4 sm:p-6 md:p-8",children:[e.jsxs("div",{className:"space-y-3 mb-8",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx(l,{className:"h-7 w-48 rounded-xl"}),e.jsx(l,{className:"h-6 w-24 rounded-lg opacity-60"})]}
1),e.jsx(l,{className:"h-3 w-64 rounded-lg opacity-40"})]}),e.jsx("div",{className:"space-y-5 flex-1 overflow-hidden",children:[...Array(5)].map((b,a)=>e.jsxs("div",{className:"bg-slate-50/50 p-5 rounded-2xl border border-slate-100 space-y-4 shadow-sm",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx(l,{className:"h-4 w-36 rounded-md"}),e.jsx(l,{className:"h-4 w-4 rounded opacity-30"})]}),e.jsxs("div",{className:"flex gap-2.5",children:[e.jsx(l,{className:"h-7 w-24 rounded-xl"}),e.jsx(l,{className:"h-7 w-20 rounded-xl"})]})]},a))})]},d))})]}),e.jsxs("div",{className:"lg:col-span-4 flex flex-col gap-4 sm:gap-6 md:gap-8",children:[e.jsxs("div",{className:"bg-white p-4 sm:p-6 md:p-8 rounded-2xl sm:rounded-[32px] border border-slate-100 shadow-sm sm:h-[400px] flex flex-col",children:[e.jsx(l,{className:"h-6 w-40 rounded-xl mb-8"}),e.jsxs("div",{className:"grid grid-cols-2 gap-5 mb-8",children:[e.jsx(l,{className:"h-28 rounded-[24px]"}),e.jsx(l,{className:"h-28 rounded-[24px]"})]}),e.jsxs("div",{className:"space-y-4 flex-1",children:[e.jsx(l,{className:"h-20 rounded-2xl opacity-80"}),e.jsx(l,{className:"h-20 rounded-2xl opacity-80"})]})]}),e.jsxs("div",{className:"bg-white p-4 sm:p-6 md:p-8 rounded-2xl sm:rounded-[32px] border border-slate-100 shadow-sm sm:h-[600px] flex flex-col",children:[e.jsx(l,{className:"h-6 w-44 rounded-xl mb-10"}),e.jsx("div",{className:"flex justify-center mb-12",children:e.jsxs("div",{className:"relative",children:[e.jsx(l,{className:"w-56 h-56 rounded-full"}),e.jsx("div",{className:"absolute inset-4 bg-white rounded-full"})]})}),e.jsxs("div",{className:"space-y-5 flex-1",children:[e.jsx(l,{className:"h-20 rounded-2xl opacity-70"}),e.jsx(l,{className:"h-20 rounded-2xl opacity-70"}),e.jsx(l,{className:"h-20 rounded-2xl opacity-70"})]})]})]})]}),e.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4 sm:gap-6 md:gap-8",children:[...Array(3)].map((r,d)=>e.jsxs("div",{className:`p-8 rounded-[32px] border border-slate-100 shadow-sm h-[420px] flex flex-col ${d===2?"bg-slate-900":"bg-white"}`,children:[e.jsxs("div",{className:"flex justify-between items-start mb-10",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsx(l,{className:`h-7 w-44 rounded-xl ${d===2?"bg-slate-700 via-slate-600 to-slate-700":""}`}),e.jsx(l,{className:`h-3 w-56 rounded-lg opacity-40 ${d===2?"bg-slate-700 via-slate-600 to-slate-700":""}`})]}),e.jsx(l,{className:`w-8 h-8 rounded-xl ${d===2?"bg-amber-700 via-amber-600 to-amber-700":"opacity-30"}`})]}),e.jsx("div",{className:"flex-1 rounded-2xl overflow-hidden",children:e.jsx(l,{className:`w-full h-full rounded-2xl ${d===2?"bg-slate-800 via-slate-700 to-slate-800":"opacity-20"}`})})]},d))})]}),ue=r=>{var d;return[{label:"Total Batches",value:(r==null?void 0:r.total_batches)||"0",description:"",icon:B,color:"text-indigo-600"},{label:"Total Students",value:((d=r==null?void 0:r.total_students)==null?void 0:d.toLocaleString())||"0",description:"Active & Alumni",icon:y,color:"text-violet-600"},{label:"New Enrollments",value:(r==null?void 0:r.current_month_students)||"0",description:"Incoming this month",icon:de,color:"text-blue-600",bg:"bg-blue-50",trend:new Date().toLocaleString("default",{month:"long"})},{label:"Upcoming Batches",value:(r==null?void 0:r.upcoming_batches)||"0",description:"Starting soon",icon:g,color:"text-amber-600",bg:"bg-amber-50",trend:"Upcoming"},{label:"Exam Today",value:(r==null?void 0:r.batches_with_exam_today)||"0",description:"Batches scheduled",icon:P,color:"text-emerald-600",bg:"bg-emerald-50",trend:"Daily"},{label:"Total Active Batches Dropout",value:(r==null?void 0:r.total_dropout_students)||"0",description:"Total student attrition",icon:T,color:"text-rose-600"}]},$e=()=>{var M;const r=X(),d=H(),b=V(),{data:a,loading:L}=Y(s=>s.admin.superManagerStats),[u,E]=p.useState(""),[o,R]=p.useState(""),i=(a==null?void 0:a.placement_stats)||{},x=p.useMemo(()=>(i.batch_wise_stats||[]).filter(t=>(t.batch_name||"").toLowerCase().includes((u||"").toLowerCase())&&(t.manager_name||"").toLowerCase().includes((o||"").toLowerCase())).sort((t,c)=>(c.placement_percentage||0)-(t.placement_percentage||0)),[i.batch_wise_stats,u,o]),m=p.useMemo(()=>(i.manager_wise_stats||[]).filter(t=>(t.manager_name||"").toLowerCase().includes((o||"").toLowerCase())).sort((t,c)=>(c.placement_percentage||0)-(t.placement_percentage||0)),[i.manager_wise_stats,o]);p.useEffect(()=>{b(Z())},[b]);const n=d.pathname.startsWith("/super-manager")?"/super-manager"
1:d.pathname.startsWith("/cx-executive")?"/cx-executive":"/admin",F=ue(a),U=[{name:"Manager Availability",icon:j,color:"bg-blue-600",path:`${n}/manager-availability`},{name:"Mentor Availability",icon:y,color:"bg-indigo-600",path:`${n}/mentor-availability`},{name:"Room Availability",icon:Q,color:"bg-slate-800",path:`${n}/room-availability`},{name:"Manage Program Managers",icon:ee,color:"bg-indigo-600",path:`${n}/program-managers-management`},{name:"Forms Dashboard",icon:se,color:"bg-emerald-600",path:J(n)}],_=[{name:"Completed",value:(a==null?void 0:a.completed_batches)||0,color:"#10b981"},{name:"Active",value:(a==null?void 0:a.active_batches)||0,color:"#6366f1"},{name:"Upcoming",value:(a==null?void 0:a.upcoming_batches)||0,color:"#f59e0b"}],f=((a==null?void 0:a.manager_batch_exam_status)||[]).map(s=>({manager:s.manager_name,assigned:s.batches_with_exam_today,unassigned:s.batches_without_exam_today,total:s.batches_with_exam_today+s.batches_without_exam_today})),W=f.reduce((s,t)=>s+t.assigned,0),I=f.reduce((s,t)=>s+t.total,0),k=((a==null?void 0:a.upcoming_batches_data)||[]).map(s=>({name:s.Batch,date:s.StartDate?new Date(s.StartDate).toLocaleDateString("default",{month:"short",day:"numeric",year:"numeric"}):"TBA",technology:s.Course,status:"Scheduled"})),S=((a==null?void 0:a.weekly_report_trends)||[]).reduce((s,t)=>{const c=t.weeklyExamDate;return s[c]||(s[c]={all:[]}),s[c][t.batch]=(s[c][t.batch]||0)+1,s[c].all.push(t.batch),s},{}),K=Object.keys(S).sort((s,t)=>new Date(s)-new Date(t)),A=((a==null?void 0:a.active_batches_without_weekly_data)||[]).map(s=>({batch:s,status:"Pending",priority:"High"})),D=(a==null?void 0:a.current_activebatch_dropout_students)||[],q=D.length>0?D.map(s=>({batch:s.batch,Dropouts:s.dropout||0})):[{batch:"No Data",Dropouts:0}],G=s=>{const t=String(s||"");return t.length>12?`${t.slice(0,12)}...`:t};return L&&!a?e.jsx(be,{}):e.jsxs("div",{className:"flex flex-col gap-4 sm:gap-6 md:gap-8 p-3 sm:p-4 md:p-8 min-h-screen font-[Inter]",children:[e.jsx("div",{className:"flex flex-col xl:flex-row xl:items-center justify-between gap-3 sm:gap-6",children:e.jsxs("div",{children:[e.jsx("h1",{className:"text-xl sm:text-2xl md:text-3xl font-bold text-slate-900 tracking-tight",children:"Super Manager Dashboard"}),e.jsx("p",{className:"text-slate-500 text-xs sm:text-sm mt-0.5 sm:mt-1",children:"Real-time operational overview and performance metrics"})]})}),e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-6 gap-3 sm:gap-4 md:gap-6",children:F.map((s,t)=>e.jsxs("div",{className:"bg-white p-3 sm:p-4 md:p-6 rounded-2xl sm:rounded-[24px] border border-slate-100 shadow-sm group hover:shadow-md transition-all",children:[e.jsxs("div",{className:"flex justify-between items-start mb-3 sm:mb-4",children:[e.jsx("div",{className:`p-2 sm:p-3 rounded-xl sm:rounded-2xl ${s.bg}`,children:e.jsx(s.icon,{size:18,className:`${s.color} sm:!w-6 sm:!h-6`})}),e.jsx("span",{className:`text-[9px] sm:text-xs font-bold px-1.5 sm:px-2 py-0.5 sm:py-1 rounded-md sm:rounded-lg ${s.bg} ${s.color}`,children:s.trend})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-slate-500 text-[9px] sm:text-[10px] font-bold uppercase tracking-widest",children:s.label}),e.jsx("h2",{className:"text-xl sm:text-2xl md:text-3xl font-bold text-slate-900 mt-0.5 sm:mt-1",children:s.value}),e.jsx("p",{className:"text-slate-400 text-[10px] sm:text-xs mt-0.5 sm:mt-1 truncate",children:s.description})]})]},t))}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xs sm:text-sm font-bold text-slate-800 uppercase tracking-widest mb-3 sm:mb-4",children:"Easy Access Tools"}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3 sm:gap-4",children:U.map((s,t)=>e.jsxs("button",{onClick:s.path?()=>r(s.path):void 0,className:"flex items-center gap-3 sm:gap-4 bg-white p-3 sm:p-4 rounded-xl sm:rounded-2xl border border-slate-100 shadow-sm hover:border-indigo-400 hover:shadow-md transition-all group text-left active:scale-[0.98]",children:[e.jsx("div",{className:`p-2 sm:p-2.5 rounded-lg sm:rounded-xl ${s.color} text-white shadow-lg shrink-0`,children:e.jsx(s.icon,{size:18,className:"sm:!w-5 sm:!h-5"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-xs sm:text-sm font-bold text-slate-800 group-hover:text-indigo-600 transition-colors",children:s.name}),e.jsx("p",{className:"text-[10px] text-slate-400",children:"View live status"})]})]},t))})]}),e.jsxs("div",{className:"flex flex-col gap-6",children:[e.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-4",children:[e.jsxs("h3",{className:"text-xs sm:text-sm font-bold text-slate-800 uppercase tracking-widest flex items-center gap-2",children:[e.jsx(ae,{size:16,className:"text-indigo-600"}),"Placement Intelligence"]}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 w-full md:w-auto",children:[e.jsxs("div",{className:"relative w-full sm:w-48 lg:w-64",children:[e.jsx("input",{type:"text",placeholder:"Filter by Batch...",value:u,onChange:s=>E(s.target.value),className:"w-full text-xs pl-9 pr-4 py-2 bg-white border border-slate-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-indigo-500 shadow-sm transition-all"}),e.jsx(B,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"})]}),e.jsxs("div",{className:"relative w-full sm:w-48 lg:w-64",children:[e.jsx("input",{type:"text",placeholder:"Filter by Manager...",value:o,onChange:s=>R(s.target.value),className:"w-full text-xs pl-9 pr-4 py-2 bg-white border border-slate-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-indigo-500 shadow-sm transition-all"}),e.jsx(j,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"})]})]})]}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 xl:grid-cols-6 gap-3 sm:gap-4 lg:gap-6",children:[{label:"Total Placed",value:i.placed_count||0,icon:j,color:"text-emerald-600",bg:"bg-emerald-50"},{label:"Self Placed",value:i.self_placed_count||0,icon:N,color:"text-amber-600",bg:"bg-amber-50"},{label:"Total Dropout Students",value:i.total_dropout||0,icon:T,color:"text-rose-600",bg:"bg-rose-50"},{label:"Move to Placement",value:i.move_to_placement||0,icon:te,color:"text-indigo-600",bg:"bg-indigo-50"},{label:"Placement %",value:`${i.placement_percentage||0}%`,icon:v,color:"text-emerald-600",bg:"bg-emerald-50",valueColor:"text-emerald-600"},{label:"Dropout %",value:`${i.dropout_percentage||0}%`,icon:v,color:"text-rose-600",bg:"bg-rose-50",valueColor:"text-rose-600"}].map((s,t)=>e.jsxs("div",{className:"bg-white p-4 rounded-2xl border border-slate-100 shadow-sm group hover:shadow-md transition-all",children:[e.jsx("div",{className:`w-10 h-10 rounded-xl ${s.bg} flex items-center justify-center mb-3 transition-transform group-hover:scale-110`,children:e.jsx(s.icon,{size:20,className:s.color})}),e.jsx("p",{className:"text-slate-500 text-[10px] font-bold uppercase tracking-widest",children:s.label}),e.jsx("h2",{className:`text-xl font-bold mt-1 ${s.valueColor||"text-slate-900"}`,children:s.value})]},t))}),e.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-2 gap-4 lg:gap-6",children:[e.jsxs("div",{className:"bg-white rounded-2xl sm:rounded-[24px] border border-slate-100 shadow-sm overflow-hidden flex flex-col h-[400px] sm:h-[500px]",children:[e.jsxs("div",{className:"p-4 sm:p-6 border-b border-slate-50 flex items-center justify-between",children:[e.jsx("h4",{className:"text-sm font-bold text-slate-800",children:"Batch-wise Performance"}),e.jsxs("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest",children:[x.length," Batches Found"]})]}),e.jsxs("div",{className:"flex-1 overflow-y-auto custom-scrollbar",children:[e.jsxs("table",{className:"w-full text-left hidden lg:table",children:[e.jsx("thead",{className:"sticky top-0 bg-white shadow-[0_1px_0_0_rgba(0,0,0,0.05)] z-20",children:e.jsxs("tr",{className:"text-[10px] uppercase font-bold text-slate-400",children:[e.jsx("th",{className:"px-4 py-4 w-[25%]",children:"Batch"}),e.jsx("th",{className:"px-4 py-4 w-[20%]",children:"Manager"}),e.jsx("th",{className:"px-4 py-4 w-[15%]",children:"Total Students"}),e.jsx("th",{className:"px-4 py-4 text-center w-[20%]",children:"Placement %"}),e.jsx("th",{className:"px-4 py-4 text-right pr-6 w-[20%]",children:"Dropout %"})]})}),e.jsx("tbody",{className:"divide-y divide-slate-50",children:x.length>0?x.map((s,t)=>e.jsxs("tr",{className:"group hover:bg-slate-50 transition-colors",children:[e.jsx("td",{className:"px-4 py-4",children:e.jsx("span",{className:"text-sm font-bold text-slate-800",children:s.batch_name})}),e.jsx("td",{className:"px-4 py-4",children:e.jsx("span",{className:"text-xs text-slate-500 font-medium",children:s.manager_name})}),e.jsx("td",{className:"px-4 py-4",children:e.jsx("span",{className:"text-sm font-bold text-slate-700",children:s.total_students})}),e.jsx("td",{className:"px-4 py-4 text-center",children:e.jsxs("div",{className:"flex flex-col items-center gap-1",children:[e.jsxs("span",{className:"text-sm font-bold text-emerald-600",children:[s.placement_percentage,"%"]}),e.jsx("div",{className:"w-20 h-1.5 bg-slate-100 rounded-full overflow-hidden",children:e.jsx("div",{className:"h-full bg-emerald-500",style:{width:`${Math.min(s.placement_percentage,100)}%`}})})]})}),e.jsx("td",{className:"px-4 py-4 text-right pr-6",children:e.jsxs("span",{className:`text-xs font-bold ${s.dropout_percentage>10?"text-rose-600":"text-slate-500"}`,children:[s.dropout_percentage,"%"]})})]},t)):e.jsx("tr",{children:e.jsx("td",{colSpan:"5",className:"px-6 py-20 text-center",children:e.jsxs("div",{className:"flex flex-col items-center gap-2",children:[e.jsx(h,{size:40,className:"text-slate-200"}),e.jsx("p",{className:"text-sm text-slate-400 italic",children:"No matching batches found"})]})})})})]}),e.jsx("div",{className:"lg:hidden flex flex-col divide-y divide-slate-50",children:x.length>0?x.map((s,t)=>e.jsxs("div",{className:"p-4 space-y-4",children:[e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{children:[e.jsx("h5",{className:"text-sm font-bold text-slate-800",children:s.batch_name}),e.jsxs("p",{className:"text-[10px] text-slate-500 font-medium flex items-center gap-1 mt-0.5",children:["Managed by:"," ",e.jsx("span",{className:"text-indigo-600 italic",children:s.manager_name})]})]}),e.jsxs("div",{className:"text-right",children:[e.jsx("p",{className:"text-[10px] text-slate-400 font-bold uppercase tracking-wider",children:"Students"}),e.jsx("p",{className:"text-sm font-black text-slate-700",children:s.total_students})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"bg-slate-50 p-3 rounded-xl border border-slate-100",children:[e.jsx("p",{className:"text-[9px] font-bold text-slate-400 uppercase tracking-widest mb-1.5",children:"Placement"}),e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("span",{className:"text-sm font-black text-emerald-600",children:[s.placement_percentage,"%"]}),e.jsx("div",{className:"flex-1 h-1.5 bg-white rounded-full overflow-hidden border border-slate-100",children:e.jsx("div",{className:"h-full bg-emerald-500",style:{width:`${Math.min(s.placement_percentage,100)}%`}})})]})]}),e.jsxs("div",{className:"bg-slate-50 p-3 rounded-xl border border-slate-100",children:[e.jsx("p",{className:"text-[9px] font-bold text-slate-400 uppercase tracking-widest mb-1.5",children:"Dropout"}),e.jsxs("span",{className:`text-sm font-black ${s.dropout_percentage>10?"text-rose-600":"text-slate-600"}`,children:[s.dropout_percentage,"%"]})]})]})]},t)):e.jsx("div",{className:"py-20 text-center",children:e.jsxs("div",{className:"flex flex-col items-center gap-2",children:[e.jsx(h,{size:40,className:"text-slate-200"}),e.jsx("p",{className:"text-sm text-slate-400 italic",children:"No matching batches found"})]})})})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl sm:rounded-[24px] border border-slate-100 shadow-sm overflow-hidden flex flex-col h-[400px] sm:h-[500px]",children:[e.jsxs("div",{className:"p-4 sm:p-6 border-b border-slate-50 flex items-center justify-between",children:[e.jsx("h4",{className:"text-sm font-bold text-slate-800",children:"Manager-wise Performance"}),e.jsxs("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest",children:[m.length," Managers Found"]})]}),e.jsxs("div",{className:"flex-1 overflow-y-auto custom-scrollbar",children:[e.jsxs("table",{className:"w-full text-left hidden lg:table",children:[e.jsx("thead",{className:"sticky top-0 bg-white shadow-[0_1px_0_0_rgba(0,0,0,0.05)] z-20",children:e.jsxs("tr",{className:"text-[10px] uppercase font-bold text-slate-400",children:[e.jsx("th",{className:"px-4 py-4 w-[35%]",children:"Manager"}),e.jsx("th",{className:"px-4 py-4 w-[20%] text-center",children:"Batches"}),e.jsx("th",{className:"px-4 py-4 text-center w-[20%]",children:"Placement %"}),e.jsx("th",{className:"px-4 py-4 text-right pr-6 w-[25%]",children:"Dropout %"})]})}),e.jsx("tbody",{className:"divide-y divide-slate-50",children:m.length>0?m.map((s,t)=>e.jsxs("tr",{className:"group hover:bg-slate-50 transition-colors",children:[e.jsx("td",{className:"px-4 py-4",children:e.jsx("span",{className:"text-sm font-bold text-slate-800",children:s.manager_name})}),e.jsx("td",{className:"px-4 py-4 text-center",children:e.jsx("span",{className:"text-sm font-bold text-slate-700",children:s.assigned_batches})}),e.jsx("td",{className:"px-4 py-4 text-center",children:e.jsxs("div",{className:"flex flex-col items-center gap-1",children:[e.jsxs("span",{className:"text-sm font-bold text-emerald-600",children:[s.placement_percentage,"%"]}),e.jsx("div",{className:"w-20 h-1.5 bg-slate-100 rounded-full overflow-hidden",children:e.jsx("div",{className:"h-full bg-emerald-500",style:{width:`${Math.min(s.placement_percentage,100)}%`}})})]})}),e.jsx("td",{className:"px-4 py-4 text-right pr-6",children:e.jsxs("span",{className:`text-xs font-bold ${s.dropout_percentage>10?"text-rose-600":"text-slate-500"}`,children:[s.dropout_percentage,"%"]})})]},t)):e.jsx("tr",{children:e.jsx("td",{colSpan:"4",className:"px-6 py-20 text-center",children:e.jsxs("div",{className:"flex flex-col items-center gap-2",children:[e.jsx(h,{size:40,className:"text-slate-200"}),e.jsx("p",{className:"text-sm text-slate-400 italic",children:"No matching managers found"})]})})})})]}),e.jsx("div",{className:"lg:hidden flex flex-col divide-y divide-slate-50",children:m.length>0?m.map((s,t)=>e.jsxs("div",{className:"p-4 space-y-4",children:[e.jsx("div",{className:"flex justify-between items-start",children:e.jsxs("div",{children:[e.jsx("h5",{className:"text-sm font-bold text-slate-800",children:s.manager_name}),e.jsxs("p",{className:"text-[10px] text-slate-400 font-bold uppercase tracking-wider mt-1",children:["Assigned Batches:"," ",e.jsx("span",{className:"text-indigo-600",children:s.assigned_batches})]})]})}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"bg-slate-50 p-3 rounded-xl border border-slate-100",children:[e.jsx("p",{className:"text-[9px] font-bold text-slate-400 uppercase tracking-widest mb-1.5",children:"Placement"}),e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("span",{className:"text-sm font-black text-emerald-600",children:[s.placement_percentage,"%"]}),e.jsx("div",{className:"flex-1 h-1.5 bg-white rounded-full overflow-hidden border border-slate-100",children:e.jsx("div",{className:"h-full bg-emerald-500",style:{width:`${Math.min(s.placement_percentage,100)}%`}})})]})]}),e.jsxs("div",{className:"bg-slate-50 p-3 rounded-xl border border-slate-100",children:[e.jsx("p",{className:"text-[9px] font-bold text-slate-400 uppercase tracking-widest mb-1.5",children:"Dropout"}),e.jsxs("span",{className:`text-sm font-black ${s.dropout_percentage>10?"text-rose-600":"text-slate-600"}`,children:[s.dropout_percentage,"%"]})]})]})]},t)):e.jsx("div",{className:"py-20 text-center",children:e.jsxs("div",{className:"flex flex-col items-center gap-2",children:[e.jsx(h,{size:40,className:"text-slate-200"}),e.jsx("p",{className:"text-sm text-slate-400 italic",children:"No matching managers found"})]})})})]})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-4 sm:gap-6 md:gap-8",children:[e.jsxs("div",{className:"lg:col-span-8 fl
1ex flex-col gap-4 sm:gap-6 md:gap-8",children:[e.jsxs("div",{className:"bg-white p-4 sm:p-5 md:p-7 rounded-2xl sm:rounded-[24px] border border-slate-100 shadow-sm overflow-hidden sm:h-[400px] flex flex-col",children:[e.jsxs("h3",{className:"text-sm sm:text-base md:text-lg font-black text-slate-800 mb-4 sm:mb-6 md:mb-8 px-1 flex items-center gap-2 uppercase tracking-tight",children:[e.jsx(g,{size:18,className:"text-amber-500 sm:!w-[22px] sm:!h-[22px]"})," ","Upcoming New Batches"]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 gap-3 sm:gap-4 md:gap-5 flex-1 overflow-y-auto custom-scrollbar pr-1",children:k.length>0?k.map((s,t)=>e.jsxs("div",{className:"flex flex-col p-4 sm:p-5 md:p-6 bg-slate-50/50 rounded-2xl sm:rounded-3xl border border-slate-100 group hover:bg-white hover:border-amber-400 hover:shadow-xl transition-all sm:h-[180px]",children:[e.jsx("div",{className:"flex justify-between items-start mb-auto",children:e.jsx("span",{className:"text-[10px] font-black text-amber-600 bg-amber-50 px-3 py-1.5 rounded-full uppercase tracking-widest",children:s.status})}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-black text-slate-900 text-base mb-1 line-clamp-1",children:s.name}),e.jsx("p",{className:"text-xs text-slate-500 font-bold mb-4 line-clamp-1",children:s.technology}),e.jsx("div",{className:"flex items-center justify-between pt-4 border-t border-slate-200/50",children:e.jsxs("div",{className:"flex items-center gap-2 text-slate-600",children:[e.jsx(g,{size:14,className:"text-amber-500"}),e.jsx("span",{className:"text-[10px] font-black uppercase tracking-widest",children:s.date})]})})]})]},t)):e.jsxs("div",{className:"col-span-full h-full flex flex-col items-center justify-center py-12 text-center opacity-60",children:[e.jsx("div",{className:"w-16 h-16 bg-slate-100 rounded-full flex items-center justify-center mb-4",children:e.jsx(g,{size:32,className:"text-slate-300"})}),e.jsx("p",{className:"text-slate-500 font-bold italic",children:"No upcoming batches"}),e.jsx("p",{className:"text-[10px] text-slate-400 mt-1 uppercase tracking-widest font-black",children:"Check back later for updates"})]})})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 sm:gap-6 md:gap-8 mt-2 sm:mt-4",children:[e.jsxs("div",{className:"bg-white rounded-2xl sm:rounded-[24px] border border-slate-100 shadow-sm overflow-hidden flex flex-col h-[400px] sm:h-[500px] md:h-[600px]",children:[e.jsxs("div",{className:"p-4 sm:p-5 md:p-6 border-b border-slate-50",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2 text-rose-500",children:[e.jsxs("h3",{className:"text-sm sm:text-base md:text-lg font-bold text-slate-800 flex items-center gap-1.5 sm:gap-2",children:[e.jsx(N,{size:16,className:"text-rose-500 sm:!w-5 sm:!h-5"})," ","Recent Exam Reports"]}),e.jsx("span",{className:"px-1.5 sm:px-2 py-0.5 sm:py-1 bg-rose-50 text-rose-600 text-[9px] sm:text-[10px] font-bold rounded-md sm:rounded-lg uppercase tracking-wider shrink-0 ml-2",children:"Recent Activity"})]}),e.jsx("p",{className:"text-xs text-slate-400",children:"Latest report submissions across all batches"})]}),e.jsx("div",{className:"p-3 sm:p-4 md:p-6 flex-1 overflow-y-auto custom-scrollbar flex flex-col gap-3 sm:gap-4",children:K.slice(-10).reverse().map((s,t)=>e.jsxs("div",{onClick:()=>r(`${n}/weekly-reports`),className:"bg-slate-50/50 p-3 sm:p-4 rounded-xl border border-slate-100 shadow-sm hover:border-indigo-200 transition-all group cursor-pointer active:scale-[0.99]",children:[e.jsx("div",{className:"flex justify-between items-start mb-2",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(w,{size:16,className:"text-emerald-500"}),e.jsx("span",{className:"text-xs font-bold text-slate-500 uppercase tracking-tight",children:new Date(s).toLocaleDateString("default",{weekday:"short",month:"short",day:"numeric",year:"numeric"})})]})}),e.jsx("div",{className:"flex flex-wrap gap-2 mt-1",children:S[s].all.map((c,O)=>e.jsx("span",{className:"bg-white text-indigo-700 text-xs font-bold px-3 py-1 rounded-lg border border-indigo-100 shadow-sm",children:c},O))})]},t))})]}),e.jsxs("div",{className:"bg-white p-4 sm:p-5 md:p-6 rounded-2xl sm:rounded-[24px] border border-slate-100 shadow-sm flex flex-col h-[400px] sm:h-[500px] md:h-[600px]",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4 sm:mb-6",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsxs("h3",{className:"text-sm sm:text-base md:text-lg font-bold text-slate-800 flex items-center gap-1.5 sm:gap-2",children:[e.jsx(le,{size:16,className:"text-rose-500 sm:!w-5 sm:!h-5 shrink-0"})," ","Missing Exam Reports"]}),e.jsx("p",{className:"text-[10px] sm:text-xs text-slate-400 mt-0.5 sm:mt-1",children:"Batches with pending reports"})]}
1),e.jsx("span",{className:"px-1.5 sm:px-2 py-0.5 sm:py-1 bg-rose-50 text-rose-600 text-[9px] sm:text-[10px] font-bold rounded-md sm:rounded-lg uppercase tracking-wider shrink-0 ml-2",children:"Action Required"})]}),e.jsx("div",{className:"overflow-y-auto flex-1 custom-scrollbar pr-2",children:e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{className:"sticky top-0 bg-white z-10",children:e.jsxs("tr",{className:"text-[10px] uppercase font-bold text-slate-400 border-b border-slate-50",children:[e.jsx("th",{className:"pb-3 text-left",children:"Batch"}),e.jsx("th",{className:"pb-3 text-left",children:"Status"}),e.jsx("th",{className:"pb-3 text-right",children:"Priority"})]})}),e.jsx("tbody",{className:"divide-y divide-slate-50",children:A.length>0?A.map((s,t)=>e.jsxs("tr",{className:"group hover:bg-slate-50 transition-colors",children:[e.jsx("td",{className:"py-4",children:e.jsx("span",{className:"text-sm font-bold text-slate-800",children:s.batch})}),e.jsx("td",{className:"py-4 text-[11px] font-bold text-indigo-600",children:s.status}),e.jsx("td",{className:"py-4 text-right",children:e.jsx("span",{className:"text-[10px] font-black text-rose-600 bg-rose-50 px-2.5 py-1 rounded-lg uppercase tracking-wider",children:"Missed"})})]},t)):e.jsx("tr",{children:e.jsx("td",{colSpan:"3",className:"py-20 text-center",children:e.jsxs("div",{className:"flex flex-col items-center gap-2",children:[e.jsx(w,{size:40,className:"text-emerald-100"}),e.jsx("p",{className:"text-sm text-slate-400 italic",children:"No pending reports"})]})})})})]})})]})]})]}),e.jsxs("div",{className:"lg:col-span-4 flex flex-col gap-4 sm:gap-6 md:gap-8",children:[e.jsxs("div",{className:"bg-white p-4 sm:p-5 md:p-7 rounded-2xl sm:rounded-[24px] border border-slate-100 shadow-sm flex flex-col sm:h-[400px]",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4 sm:mb-6 md:mb-8",children:[e.jsxs("h3",{className:"text-xs sm:text-sm font-black text-slate-800 uppercase tracking-[0.1em] flex items-center gap-1.5 sm:gap-2",children:[e.jsx(y,{size:16,className:"text-indigo-500 sm:!w-[18px] sm:!h-[18px]"})," ","Student Progress"]}),e.jsxs("div",{className:"flex items-center gap-1 sm:gap-1.5 px-2 sm:px-3 py-0.5 sm:py-1 bg-indigo-50 rounded-full",children:[e.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-indigo-500 animate-pulse"}),e.jsx("span",{className:"text-[9px] sm:text-[10px] font-bold text-indigo-600 uppercase",children:"Live"})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-3 sm:gap-4 md:gap-5 mb-4 sm:mb-6 md:mb-8",children:[e.jsxs("div",{className:"p-3 sm:p-4 md:p-5 bg-slate-50 rounded-2xl sm:rounded-[20px] border border-slate-100 flex flex-col justify-center",children:[e.jsx("p",{className:"text-[9px] sm:text-[10px] font-extrabold text-slate-400 uppercase tracking-widest mb-0.5 sm:mb-1",children:"Total Enrollment"}),e.jsx("p",{className:"text-xl sm:text-2xl md:text-3xl font-black text-slate-800",children:(a==null?void 0:a.total_students)||0})]}),e.jsxs("div",{className:"p-3 sm:p-4 md:p-5 bg-indigo-50/50 rounded-2xl sm:rounded-[20px] border border-indigo-100 flex flex-col justify-center",children:[e.jsx("p",{className:"text-[9px] sm:text-[10px] font-extrabold text-indigo-400 uppercase tracking-widest mb-0.5 sm:mb-1",children:"New this Month"}),e.jsxs("p",{className:"text-xl sm:text-2xl md:text-3xl font-black text-indigo-600",children:["+",(a==null?void 0:a.current_month_students)||0]})]})]}),e.jsxs("div",{className:"flex-1 flex flex-col gap-3 sm:gap-4",children:[e.jsxs("div",{className:"flex-1 flex items-center justify-between p-3 sm:p-4 bg-slate-50/50 rounded-xl sm:rounded-2xl border border-slate-100 hover:bg-white hover:shadow-sm transition-all",children:[e.jsxs("div",{className:"flex items-center gap-2.5 sm:gap-3",children:[e.jsx("div",{className:"w-8 h-8 sm:w-10 sm:h-10 rounded-lg sm:rounded-xl bg-emerald-100 flex items-center justify-center text-emerald-600 shrink-0",children:e.jsx(w,{size:16,className:"sm:!w-5 sm:!h-5"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[9px] sm:text-[10px] font-bold text-slate-400 uppercase",children:"Daily Exam Load"}),e.jsx("p",{className:"text-xs sm:text-sm font-bold text-slate-700",children:"Exam Activity"})]})]}),e.jsxs("span",{className:"text-[10px] sm:text-xs font-black text-emerald-600 bg-emerald-50 px-2 sm:px-3 py-0.5 
1sm:py-1 rounded-md sm:rounded-lg shrink-0",children:[W,"/",I]})]}),e.jsxs("div",{className:"flex-1 flex items-center justify-between p-3 sm:p-4 bg-slate-50/50 rounded-xl sm:rounded-2xl border border-slate-100 hover:bg-white hover:shadow-sm transition-all",children:[e.jsxs("div",{className:"flex items-center gap-2.5 sm:gap-3",children:[e.jsx("div",{className:"w-8 h-8 sm:w-10 sm:h-10 rounded-lg sm:rounded-xl bg-indigo-100 flex items-center justify-center text-indigo-600 shrink-0",children:e.jsx(re,{size:16,className:"sm:!w-5 sm:!h-5"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[9px] sm:text-[10px] font-bold text-slate-400 uppercase",children:"Exam Reports"}),e.jsxs("p",{className:"text-xs sm:text-sm font-bold text-slate-700",children:[((M=a==null?void 0:a.weekly_report_trends)==null?void 0:M.length)||0," batches tracked"]})]})]}),e.jsx("span",{className:"text-[10px] sm:text-xs font-black text-indigo-600 bg-indigo-50 px-2 sm:px-3 py-0.5 sm:py-1 rounded-md sm:rounded-lg shrink-0",children:"Active"})]})]})]}),e.jsxs("div",{className:"bg-white p-4 sm:p-5 md:p-7 rounded-2xl sm:rounded-[24px] border border-slate-100 shadow-sm flex flex-col sm:h-[600px]",children:[e.jsx("h3",{className:"text-xs sm:text-sm font-black text-slate-800 uppercase tracking-[0.1em] mb-4 sm:mb-6 md:mb-8",children:"Batch Distribution"}),e.jsx("div",{className:"h-[200px] sm:h-[240px] md:h-[280px] mb-6 sm:mb-8 md:mb-10",children:e.jsx(C,{width:"100%",height:"100%",children:e.jsxs(ce,{margin:{top:4,right:8,bottom:24,left:8},children:[e.jsx(ie,{data:_,dataKey:"value",nameKey:"name",cx:"50%",cy:"50%",innerRadius:"80%",outerRadius:"100%",stroke:"none",isAnimationActive:!1,children:_.map(s=>e.jsx(ne,{fill:s.color},s.name))}),e.jsx(z,{formatter:(s,t)=>[`${s} batches`,t],contentStyle:{backgroundColor:"#1e293b",border:"none",borderRadius:12,color:"#fff",padding:12},itemStyle:{color:"#fff"},labelStyle:{color:"#fff",fontWeight:700}}),e.jsx(oe,{verticalAlign:"bottom",align:"center",iconType:"circle",formatter:s=>e.jsx("span",{className:"text-[10px] sm:text-xs font-bold text-slate-500",children:s})})]})})}),e.jsxs("div",{className:"space-y-3 sm:space-y-4 flex-1 flex flex-col justify-center",children:[e.jsxs("div",{className:"flex-1 flex items-center justify-between p-3 sm:p-4 bg-emerald-50/50 rounded-xl sm:rounded-2xl border border-emerald-100",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{className:"text-xs font-black text-emerald-700 uppercase tracking-wider",children:"Completed"}),e.jsx("span",{className:"text-[10px] text-emerald-600 font-bold",children:"Archive Status"})]}),e.jsxs("div",{className:"text-right flex flex-col",children:[e.jsx("span",{className:"text-lg font-black text-emerald-700",children:(a==null?void 0:a.completed_batches)||0}),e.jsxs("span",{className:"text-[10px] font-bold text-emerald-600",children:[a!=null&&a.total_batches?Math.round(a.completed_batches/a.total_batches*100):0,"%"]})]})]}),e.jsxs("div",{className:"flex-1 flex items-center justify-between p-3 sm:p-4 bg-indigo-50/50 rounded-xl sm:rounded-2xl border border-indigo-100",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{className:"text-xs font-black text-indigo-700 uppercase tracking-wider",children:"Active"}),e.jsx("span",{className:"text-[10px] text-indigo-600 font-bold",children:"In Progress"})]}),e.jsxs("div",{className:"text-right flex flex-col",children:[e.jsx("span",{className:"text-lg font-black text-indigo-700",children:(a==null?void 0:a.active_batches)||0}),e.jsxs("span",{className:"text-[10px] font-bold text-indigo-600",children:[a!=null&&a.total_batches?Math.round(a.active_batches/a.total_batches*100):0,"%"]})]})]}),e.jsxs("div",{className:"flex-1 flex items-center justify-between p-3 sm:p-4 bg-amber-50/50 rounded-xl sm:rounded-2xl border border-amber-100",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{className:"text-xs font-black text-amber-700 uppercase tracking-wider",children:"Upcoming"}),e.jsx("span",{className:"text-[10px] text-amber-600 font-bold",children:"Pending Start"})]}),e.jsxs("div",{className:"text-right flex flex-col",children:[e.jsx("span",{className:"text-lg font-black text-amber-700",children:(a==null?void 0:a.upcoming_batches)||0}),e.jsxs("span",{className:"text-[10px] font-bold text-amber-600",children:[a!=null&&a.total_batches?Math.round(a.upcoming_batches/a.total_batches*100):0,"%"]})]})]})]})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4 sm:gap-6 md:gap-8",children:[e.jsxs("div",{className:"bg-white p-4 sm:p-5 md:p-6 rounded-2xl sm:rounded-[24px] border border-slate-100 shadow-sm flex flex-col h-[320px] sm:h-[360px] md:h-[400px]",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4 sm:mb-6 md:mb-8",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsxs("h3",{className:"text-sm sm:text-base md:text-lg font-bold text-slate-800 flex items-center gap-1.5 sm:gap-2",children:[e.jsx(v,{size:16,className:"text-rose-500 sm:!w-5 sm:!h-5 shrink-0"})," ","Dropout Trends"]}),e.jsx("p",{className:"text-[10px] sm:text-xs text-slate-400 mt-0.5 sm:mt-1",children:"Attrition report by active batch"})]}),e.jsxs("div",{className:"flex items-center gap-1.5 sm:gap-2 shrink-0 ml-2",children:[e.jsx("span",{className:"w-2 h-2 rounded-full bg-rose-500"}),e.jsx("span",{className:"text-[9px] sm:text-[10px] font-bold text-slate-500 uppercase tracking-widest",children:"Dropout Count"})]})]}),e.jsx("div",{className:"flex-1 min-h-0",children:e.jsx(C,{width:"100%",height:"100%",children:e.jsxs(xe,{data:q,margin:{top:8,right:16,bottom:8,left:-8},children:[e.jsx(me,{vertical:!1,stroke:"#f1f5f9",strokeDasharray:"5 5"}),e.jsx(pe,{dataKey:"batch",interval:"preserveStartEnd",minTickGap:24,tickFormatter:G,tickMargin:8,tick:{fontSize:10,fill:"#64748b"}}),e.jsx(he,{allowDecimals:!1,domain:[0,s=>Math.max(Number(s||0)+1,1)],tick:{fontSize:11,fill:"#64748b"},tickMargin:8}),e.jsx(z,{contentStyle:{backgroundColor:"#1e293b",border:"none",borderRadius:12,color:"#fff",padding:12},itemStyle:{color:"#fff"},labelStyle:{color:"#fff",fontWeight:700}}),e.jsx(ge,{type:"monotone",dataKey:"Dropouts",stroke:"#f43f5e",fill:"rgba(244, 63, 94, 0.1)",strokeWidth:2,dot:{r:6,fill:"#f43f5e",stroke:"#fff",strokeWidth:3},activeDot:{r:8},isAnimationActive:!1})]})})})]}),e.jsxs("div",{className:"bg-white p-4 sm:p-5 md:p-6 rounded-2xl sm:rounded-[24px] border border-slate-100 shadow-sm flex flex-col h-[320px] sm:h-[360px] md:h-[400px]",children:[e.jsxs("div",{className:"flex items-center justify-between mb-3 sm:mb-4 px-1",children:[e.jsxs("h3",{className:"text-xs sm:text-sm font-bold text-slate-800 uppercase tracking-wider flex items-center gap-1.5 sm:gap-2",children:[e.jsx($,{size:14,className:"text-rose-500 sm:!w-4 sm:!h-4 shrink-0"}
1)," ","Unassigned Exam Batches"]}),e.jsxs("span",{className:"text-[9px] sm:text-[10px] font-bold text-slate-400 shrink-0 ml-2",children:[((a==null?void 0:a.manager_batch_exam_status)||[]).reduce((s,t)=>{var c;return s+(((c=t.today_notexam_batches)==null?void 0:c.length)||0)},0)," ","Total"]})]}),e.jsxs("div",{className:"flex flex-col gap-2 overflow-y-auto pr-2 flex-1 custom-scrollbar",children:[((a==null?void 0:a.manager_batch_exam_status)||[]).flatMap(s=>(s.today_notexam_batches||[]).map((t,c)=>e.jsx("div",{className:"flex items-center justify-between p-3 border border-slate-50 rounded-xl hover:bg-slate-50 transition-colors group",children:e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{className:"text-xs font-bold text-slate-700",children:t}),e.jsxs("span",{className:"text-[10px] text-slate-400 font-medium",children:["Managed by ",s.manager_name]})]})},`${s.manager_id}-${t}-${c}`))),((a==null?void 0:a.manager_batch_exam_status)||[]).every(s=>(s.today_notexam_batches||[]).length===0)&&e.jsx("div",{className:"py-8 text-center flex-1 flex items-center justify-center",children:e.jsx("p",{className:"text-xs text-slate-400 font-medium italic",children:"All batches assigned for today"})})]})]}),e.jsxs("div",{className:"bg-slate-900 p-4 sm:p-5 md:p-6 rounded-2xl sm:rounded-[24px] shadow-xl text-white flex flex-col h-[320px] sm:h-[360px] md:h-[400px]",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4 sm:mb-6 md:mb-8",children:[e.jsxs("h3",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.15em] sm:tracking-[0.2em] text-slate-400 flex items-center gap-1.5 sm:gap-2",children:[e.jsx(P,{size:12,className:"text-indigo-400 sm:!w-[14px] sm:!h-[14px]"})," ","Exam Assignments"]}),e.jsx(N,{size:16,className:"text-amber-400 sm:!w-5 sm:!h-5"})]}),e.jsx("div",{className:"space-y-4 sm:space-y-5 md:space-y-6 flex-1 overflow-y-auto custom-scrollbar pr-2",children:f.map((s,t)=>e.jsxs("div",{children:[e.jsxs("div",{className:"flex justify-between text-xs font-bold mb-2",children:[e.jsx("span",{className:"text-slate-400",children:s.manager}),e.jsxs("span",{className:s.unassigned>0?"text-rose-400":"text-emerald-400",children:[s.assigned,"/",s.total," Assigned"]})]}),e.jsxs("div",{className:"h-1.5 bg-slate-800 rounded-full overflow-hidden flex",children:[e.jsx("div",{className:"h-full bg-indigo-500",style:{width:`${s.assigned/s.total*100}%`}}),e.jsx("div",{className:"h-full bg-rose-500",style:{width:`${s.unassigned/s.total*100}%`}})]}),s.unassigned>0&&e.jsxs("p",{className:"text-[10px] text-rose-400 mt-1.5 font-bold italic flex items-center gap-1",children:[e.jsx($,{size:10})," ",s.unassigned," batches pending exam"]})]},t))})]})]}),e.jsx("style",{dangerouslySetInnerHTML:{__html:`
2        .custom-scrollbar::-webkit-scrollbar {
3          width: 3px;
4        }
5        .custom-scrollbar::-webkit-scrollbar-track {
6          background: #f1f5f9;
7          border-radius: 10px;
8        }
9        .custom-scrollbar::-webkit-scrollbar-thumb {
10          background: #cbd5e1;
11          border-radius: 10px;
12        }
13        .custom-scrollbar::-webkit-scrollbar-thumb:hover {
14          background: #94a3b8;
15        }
16        .custom-scrollbar {
17          scrollbar-width: thin;
18          scrollbar-color: #cbd5e1 #f1f5f9;
19        }
20      `}})]})};export{$e 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.