PageSourceSearch

https://www.vetgeni.com/_next/static/chunks/pages/demo/administration-6329da8eb86c3b5d.js

js vetgeni.com collected 2026-10-02 00:10:13 UTC 21,285 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[24010],{27193:(e,t,i)=>{"use strict";i.d(t,{A:()=>h});var s=i(37876),n=i(14232),r=i(796),o=i(72364),a=i(97384),l=i(32937),d=i(17455),c=i(52563);let x={height:"100%",transition:"all 0.35s cubic-bezier(0.4, 0, 0.2, 1)",cursor:"pointer",overflow:"visible",boxShadow:"0 4px 20px rgba(0,0,0,0.08)",borderRadius:3,border:"1px solid rgba(0,0,0,0.06)","&:hover":{transform:"translateY(-8px)",boxShadow:"0 12px 40px rgba(0,0,0,0.18)","& .unified-icon-wrapper":{transform:"scale(1.08) rotate(4deg)"},"& .unified-arrow":{transform:"translateX(6px)",opacity:1},"& .unified-badge":{transform:"scale(1.08)"}}},h=({title:e,description:t,icon:i,onClick:h,hrefDisabled:u,gradientClass:p,gradient:m,bgColor:b="#800020",badge:g,statusLabel:f,statusColor:j,categoryLabel:A,locked:y,lockIcon:v,secondaryChipIcon:C,secondaryChipBg:S,secondaryChipTextColor:k,cardBorder:w})=>{let _=!y&&!u&&!!h;return(0,s.jsx)(r.A,{sx:{...x,border:w||x.border,cursor:_?"pointer":"default",opacity:y?.75:1,filter:y?"grayscale(15%)":"none"},children:(0,s.jsx)(o.A,{sx:{height:"100%"},disabled:!_,onClick:()=>_&&h&&h(),children:(0,s.jsxs)(a.A,{sx:{p:4},children:[(0,s.jsxs)(l.A,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",mb:3},children:[(0,s.jsxs)(l.A,{sx:{position:"relative"},children:[(0,s.jsxs)(l.A,{className:`unified-icon-wrapper ${p||""}`,sx:{background:m||void 0,borderRadius:3,p:2.25,display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.35s ease",boxShadow:`0 4px 18px ${b}40`,position:"relative"},children:[n.cloneElement(i,{sx:{color:"white",fontSize:44,opacity:y?.65:1}}),y&&v&&(0,s.jsx)(l.A,{sx:{position:"absolute",top:-6,right:-6,background:"rgba(0,0,0,0.6)",borderRadius:"50%",p:.5},children:n.cloneElement(v,{sx:{fontSize:16,color:"white"}})})]}),g&&(0,s.jsx)(l.A,{className:"unified-badge",sx:{position:"absolute",top:-10,right:-10,background:"white",color:b,width:34,height:34,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700,fontSize:"0.95rem",boxShadow:`0 2px 8px ${b}40`,transition:"transform 0.35s ease",border:`2px solid ${b}`},children:g})]}),(0,s.jsxs)(l.A,{sx:{display:"flex",flexDirection:"column",gap:1,alignItems:"flex-end"},children:[A&&(0,s.jsx)(l.A,{sx:{px:2,py:.5,borderRadius:15,bgcolor:`${b}20`,color:b,fontSize:"0.7rem",fontWeight:600,textTransform:"uppercase",letterSpacing:"0.5px",transition:"transform 0.35s ease"},children:A}),(f||C)&&(0,s.jsx)(d.A,{size:"small",icon:C||void 0,label:f,sx:{bgcolor:S||"rgba(0,0,0,0.04)",color:k||j||"rgba(0,0,0,0.6)",fontWeight:600,fontSize:"0.7rem"}})]})]}),(0,s.jsx)(c.A,{variant:"h6",component:"h3",sx:{fontWeight:600,mb:1.25,display:"flex",alignItems:"center",gap:1,color:y?"rgba(0,0,0,0.45)":"rgba(0,0,0,0.85)"},children:e}),t&&(0,s.jsx)(c.A,{variant:"body2",sx:{color:y?"rgba(0,0,0,0.45)":"rgba(0,0,0,0.6)",lineHeight:1.55,fontSize:"0.85rem",mb:.5},children:t})]})})})}},49305:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/demo/administration",function(){return i(76132)}])},63568:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var s=i(37876);i(14232);var n=i(796),r=i(32937),o=i(52563);let a=({onClick:e,size:t=180,label:i="Olivia"})=>(0,s.jsx)(n.A,{role:"button","aria-label":i,onClick:e,onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),e())},tabIndex:0,sx:{width:t,height:t,borderRadius:.22*t,position:"relative",cursor:"pointer",background:"linear-gradient(145deg, #02140e 0%, #032a18 35%, #043c23 65%, #021b11 100%)",border:"2px solid rgba(255,255,255,0.9)",boxShadow:"0 8px 22px -6px rgba(0,0,0,0.6), 0 4px 10px -2px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.06)",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",transition:"all .55s cubic-bezier(.4,0,.2,1)",userSelect:"none","&:before":{content:'""',position:"absolute",inset:0,background:"radial-gradient(circle at 30% 28%, rgba(255,255,255,0.22), transparent 55%), radial-gradient(circle at 70% 72%, rgba(3,120,60,0.35), rgba(0,0,0,0.1) 60%)",mixBlendMode:"screen",pointerEvents:"none"},"&:after":{content:'""',position:"absolute",top:0,left:0,right:0,height:"52%",background:"linear-gradient(to bottom, rgba(255,255,255,0.28), rgba(255,255,255,0) 70%)",pointerEvents:"none"},"&:hover":{transform:"translateY(-6px) scale(1.04)",boxShadow:"0 14px 34px -8px rgba(0,0,0,0.7), 0 6px 16px -4px rgba(0,0,0,0.55), 0 0 0 4px rgba(255,255,255,0.08)"},"&:focus-visible":{outline:"3px solid #18d28a",outlineOffset:4},"@media (max-width:600px)":{width:.75*t,height:.75*t,borderRadius:.75*t*.22}},children:(0,s.jsx)(r.A,{sx:{position:"relative",zIndex:2,textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",px:1},children:(0,s.jsx)(o.A,{component:"span","aria-hidden":"true",variant:"h5",sx:{fontWeight:700,letterSpacing:"0.6px",fontSize:.32*t,lineHeight:1,color:"#d6d6d6",textShadow:"0 2px 6px rgba(0,0,0,0.65)",fontFamily:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',"@media (max-width:600px)":{fontSize:.75*t*.32}},children:i})})})},76132:(e,t,i)=>{"use strict";i.r(t),i.d(t,{__N_SSP:()=>el,default:()=>ed});var s=i(37876),n=i(14232),r=i(77328),o=i.n(r),a=i(67840),l=i(6995),d=i(21392),c=i(32937),x=i(13145),h=i(28482),u=i(89595),p=i(52563),m=i(17455),b=i(21188),g=i(78163),f=i(12992),j=i(30997),A=i(23647),y=i(17808),v=i(796),C=i(97384),S=i(42922),k=i(77199),w=i(38347),_=i(61100),E=i(94870),z=i(40137),R=i(97544),W=i(2769),I=i(10163),F=i(77090),M=i(9846),P=i(69257),D=i(21961),T=i(65648),$=i(31286),O=i(66563),N=i(31734),B=i(21269),q=i(11988),G=i(8085),L=i(94832),H=i(47086),Y=i(1013),X=i(61901),U=i(97622),V=i(2410),K=i(80741),J=i(85115),Q=i(89099),Z=i(69367),ee=i(27193),et=i(63568);let ei="#C8102E",es="#f8f9fa",en="#000000",er="#000000",eo="#C8102E",ea="linear-gradient(135deg, #ff6b35 0%, #ff8a65 100%)";var el=!0;let ed=({user:e,userRole:t,department:i,isMasterUser:r=!1,canAccessAllDepartments:el=!1,initialModules:ed,initialSubmissions:ec,initialPerformance:ex,initialForumActivity:eh,adminData:eu})=>{let ep=(0,Q.useRouter)(),em=(0,Z.useSupabaseClient)(),eb=(0,a.A)();(0,l.A)(eb.breakpoints.down("md"));let eg=(0,s.jsx)(d.A,{variant:"contained",size:"small",onClick:()=>ep.push("/demo/administration"),startIcon:(0,s.jsx)($.A,{style:{fontSize:18}}),sx:{backgroundColor:"#000000 !important",color:"white !important",px:3,py:1,fontSize:"0.875rem",fontWeight:500,textTransform:"none",borderRadius:"6px","&:hover":{backgroundColor:"#C8102E !important"}
1,"&:focus":{outline:"2px solid #C8102E",outlineOffset:2},opacity:1,visibility:"visible"},"aria-label":"Back to Dashboard",children:"Back to Dashboard"}),[ef,ej]=(0,n.useState)(0),[eA,ey]=(0,n.useState)(0),[ev,eC]=(0,n.useState)("overview"),[eS,ek]=(0,n.useState)(ed),[ew,e_]=(0,n.useState)(ec),[eE,ez]=(0,n.useState)(ex),[eR,eW]=(0,n.useState)(eh),[eI,eF]=(0,n.useState)(!1),[eM,eP]=(0,n.useState)(!1),[eD,eT]=(0,n.useState)(null),[e$,eO]=(0,n.useState)(null),[eN,eB]=(0,n.useState)(0),eq=(0,s.jsxs)(c.A,{sx:{display:"flex",alignItems:"center",gap:2},children:["department"===ev&&el?eg:null,(0,s.jsx)(et.A,{size:56,label:"OliV",onClick:()=>ep.push("/demo/administration/olivia")})]}),eG=["Anesthesia","OSCE Communication","Pharmacology","Radiology","Professional Skills"],eL=eG[eA],[eH,eY]=(0,n.useState)({title:"",subject:el?"department"===ev?eL:eG[0]:i||"General",description:"",release_date:""});(0,n.useEffect)(()=>{eB(ew.length+eR.filter(e=>e.requires_response).length)},[ew,eR]),(0,n.useEffect)(()=>{el&&eM&&"department"===ev&&eY(e=>({...e,subject:eL}))},[eA,el,eM,eL,ev]);let eX=el?"overview"===ev?eS:eS.filter(e=>e.subject===eL):eS,eU=e=>{let t=eG[e],i="";switch(t){case"Anesthesia":i="/demo/faculty/anesthesia";break;case"OSCE Communication":i="/demo/administration/communications";break;case"Pharmacology":i="/demo/faculty/pharmacology";break;case"Radiology":i="/demo/faculty/radiology";break;case"Professional Skills":i="/demo/faculty/professional-skills";break;default:let s=t.toLowerCase().replace(/\s+/g,"-");i=`/demo/administration/${s}`}ep.push(i)};(0,n.useEffect)(()=>{let t=em.channel("faculty-submissions").on("postgres_changes",{event:"INSERT",schema:"public",table:"submissions",filter:`instructor_id=eq.${e.id}`},e=>{e_(t=>[e.new,...t])}).subscribe(),i=em.channel("faculty-forum").on("postgres_changes",{event:"INSERT",schema:"public",table:"forum_posts",filter:`module_instructor_id=eq.${e.id}`},e=>{e.new.requires_faculty_response&&eW(t=>[e.new,...t])}).subscribe();return()=>{t.unsubscribe(),i.unsubscribe()}},[e.id,em]);let eV=async()=>{if(eH.title&&eH.description){eF(!0);try{let{data:t,error:s}=await em.from("modules").insert({...eH,instructor_id:e.id,is_published:!1,content_count:0,assignment_count:0,quiz_count:0,enrolled_students:0,completion_rate:0}).select().single();if(s)throw s;ek([t,...eS]),eP(!1),eY({title:"",subject:el?"department"===ev?eL:eG[0]:i||"General",description:"",release_date:""})}catch(e){}finally{eF(!1)}}},eK=async(e,t)=>{try{let{error:i}=await em.from("modules").update({is_published:t}).eq("id",e);i||ek(eS.map(i=>i.id===e?{...i,is_published:t}:i))}catch(e){}},eJ=async e=>{if(confirm("Are you sure you want to delete this module?"))try{let{error:t}=await em.from("modules").delete().eq("id",e);t||ek(eS.filter(t=>t.id!==e))}catch(e){}},eQ=()=>{eO(null),eT(null)},eZ=[{title:"Anesthesia",description:"Anesthetic procedures, monitoring, and emergency management",icon:(0,s.jsx)(O.A,{}),gradient:"linear-gradient(135deg, #ff6b35 0%, #ff9800 50%, #1976d2 100%)",bgColor:"#ff6b35",badge:"A",onClick:()=>eU(0)},{title:"OSCE Communication",description:"Clinical communication skills and OSCE assessments",icon:(0,s.jsx)(N.A,{}),gradient:"#C8102E",bgColor:"#C8102E",badge:"C",onClick:()=>eU(1)},{title:"Pharmacology",description:"Drug calculations, therapeutics, and pharmacokinetics",icon:(0,s.jsx)(B.A,{}),gradient:"linear-gradient(135deg, #2e7d32 0%, #66bb6a 30%, #1976d2 100%)",bgColor:"#2e7d32",badge:"P",onClick:()=>eU(2)},{title:"Radiology",description:"Imaging techniques, interpretation, and diagnostics",icon:(0,s.jsx)(q.A,{}),gradient:"linear-gradient(135deg, #0d47a1 0%, #1565c0 60%, #1e88e5 100%)",bgColor:"#0d47a1",badge:"R",onClick:()=>eU(3)},{title:"Professional Skills",description:"Ethics, leadership, and professional development",icon:(0,s.jsx)(N.A,{}),gradient:"linear-gradient(135deg, #c2185b 0%, #8e24aa 60%, #6a1b9a 100%)",bgColor:"#c2185b",badge:"PS",onClick:()=>eU(4)}];return eS.reduce((e,t)=>e+t.enrolled_students,0),eS.length>0&&(eS.reduce((e,t)=>e+t.completion_rate,0),eS.length),ew.length,(0,s.jsxs)(J.A,{extraActions:eq,children:[(0,s.jsx)(o(),{children:(0,s.jsx)("title",{children:"Administration - VetGeni"})}),(0,s.jsxs)(c.A,{sx:{minHeight:"100vh",bgcolor:es},children:[(0,s.jsx)(c.A,{sx:{background:eo,color:"white",pt:{xs:4,md:8},pb:{xs:4,md:8},position:"relative",overflow:"hidden","&::before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,background:'url("/pattern.svg")',opacity:.1}},children:(0,s.jsx)(x.A,{maxWidth:"lg",sx:{position:"relative"},children:(0,s.jsx)(h.A,{in:!0,timeout:800,children:(0,s.jsx)(c.A,{sx:{position:"relative",zIndex:1},children:(0,s.jsxs)(c.A,{sx:{maxWidth:960,mx:"auto",px:{xs:3,md:6},py:{xs:4,md:6},border:"3px solid rgba(255,255,255,0.85)",borderRadius:"12px",backgroundColor:"rgba(200,16,46,0.95)",boxShadow:"0 10px 30px rgba(0,0,0,0.15)",textAlign:"center"},children:[(0,s.jsx)(c.A,{sx:{display:"flex",justifyContent:"center"},children:(0,s.jsx)(u.A,{sx:{width:{xs:80,md:100},height:{xs:80,md:100},mb:{xs:3,md:4},bgcolor:"rgba(255, 255, 255, 0.15)",backdropFilter:"blur(10px)",border:"3px solid rgba(255, 255, 255, 0.3)",boxShadow:"0 8px 32px rgba(0, 0, 0, 0.2)"},children:(0,s.jsx)($.A,{sx:{fontSize:{xs:40,md:56}}})})}),(0,s.jsx)(p.A,{variant:"h1",component:"h1",sx:{fontWeight:300,mb:2,fontSize:{xs:"2rem",md:"3rem"},fontFamily:'-apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif'},children:"Administration Dashboard"}),(0,s.jsx)(p.A,{variant:"h6",component:"p",sx:{opacity:.9,fontWeight:300,maxWidth:900,mx:"auto",mb:3},children:"Plan and publish modules, manage schedules, and oversee the gradebook across departments."}),(0,s.jsxs)(c.A,{sx:{display:"flex",justifyContent:"center",gap:2,alignItems:"center",flexWrap:"wrap"},children:[(0,s.jsx)(c.A,{sx:{px:3,py:1,borderRadius:25,background:"#C8102E",color:"white",boxShadow:"0 4px 14px rgba(200,16,46,0.35)",display:"flex",alignItems:"center"},children:(0,s.jsxs)(p.A,{variant:"body1",sx:{fontWeight:600,letterSpacing:"0.25px"},children:[eu.first_name," ",eu.last_name]})}),r&&(0,s.jsx)(m.A,{label:"ADMINISTRATOR",sx:{background:"#FFFFFF",color:"#000",fontWeight:700,letterSpacing:"0.5px",boxShadow:"0 2px 8px rgba(0,0,0,0.25)"}}),(0,s.jsx)(c.A,{sx:{px:2.5,py:1,borderRadius:18,background:"#000000",color:"white",fontWeight:700,fontSize:"0.75rem",letterSpacing:"1px",boxShadow:"0 3px 10px rgba(200,16,46,0.45)",textTransform:"uppercase"},children:eu.campus}),(0,s.jsx)(m.A,{icon:(0,s.jsx)(N.A,{}),label:"Class of 2028",sx:{background:"#FFFFFF",color:"#000000",fontWeight:700,borderRadius:"4px",px:2,py:.5,fontSize:"0.875rem","& .MuiChip-icon":{color:"#C8102E"},boxShadow:"0 2px 6px rgba(0,0,0,0.25)"}})]})]})})})})}),(0,s.jsx)(x.A,{maxWidth:"lg",sx:{mt:4,pb:8},children:(0,s.jsx)(c.A,{children:(0,s.jsx)(b.A,{in:!0,children:(0,s.jsxs)(c.A,{children:[el&&"overview"===ev&&(0,s.jsx)(g.A,{sx:{p:3,borderRadius:3,boxShadow:"0 2px 12px rgba(0,0,0,0.08)"},children:(0,s.jsxs)(c.A,{sx:{p:3},children:["  ",(0,s.jsxs)(f.Ay,{container:!0,spacing:3,children:["  ",eZ.map(e=>(0,s.jsx)(b.A,{in:!0,timeout:900,children:(0,s.jsx)(f.Ay,{item:!0,xs:12,sm:6,md:4,lg:3,children:(0,s.jsx)(ee.A,{title:e.title,de
1scription:e.description,icon:e.icon,gradient:e.gradient,bgColor:e.bgColor,cardBorder:e.cardBorder,badge:e.badge,statusLabel:"Open",secondaryChipBg:"rgba(0,0,0,0.04)",secondaryChipTextColor:er,onClick:e.onClick})})},e.title))]})]})}),(!el||"department"===ev)&&(0,s.jsxs)(c.A,{children:[el&&"department"===ev&&(0,s.jsxs)(c.A,{sx:{mb:3},children:[(0,s.jsx)(j.A,{value:eA,onChange:(e,t)=>ey(t),variant:"scrollable",scrollButtons:"auto",sx:{"& .MuiTab-root":{minWidth:120,fontWeight:500},"& .Mui-selected":{color:ei},"& .MuiTabs-indicator":{backgroundColor:ei}},children:eG.map((e,t)=>(0,s.jsx)(A.A,{label:e,sx:{textTransform:"none",fontSize:"0.95rem"}},e))}),(0,s.jsx)(y.A,{sx:{mt:2,mb:3}})]}),(0,s.jsxs)(c.A,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:3},children:[(0,s.jsxs)(c.A,{children:[(0,s.jsx)(p.A,{variant:"h5",sx:{fontWeight:600,color:en},children:el&&"department"===ev?`${eL} Modules`:"Your Modules"}),(0,s.jsx)(p.A,{variant:"body2",color:"text.secondary",sx:{mt:.5},children:el&&"department"===ev?`Showing modules from ${eL} department`:`Showing modules from ${i} department`})]}),(0,s.jsx)(d.A,{variant:"contained",startIcon:(0,s.jsx)(G.A,{}),onClick:()=>eP(!0),sx:{background:eo,"&:hover":{background:ea}},children:"Create Module"})]}),(0,s.jsx)(g.A,{sx:{p:3,borderRadius:3,boxShadow:"0 2px 12px rgba(0,0,0,0.08)"},children:(0,s.jsxs)(c.A,{sx:{p:3},children:["  ",(0,s.jsxs)(f.Ay,{container:!0,spacing:3,children:["  ",0===eX.length?(0,s.jsx)(f.Ay,{item:!0,xs:12,children:(0,s.jsxs)(g.A,{sx:{p:4,textAlign:"center",bgcolor:es},children:[(0,s.jsx)(N.A,{sx:{fontSize:64,color:"#7a7a7a",mb:2}}),(0,s.jsxs)(p.A,{variant:"h6",sx:{color:er,mb:1},children:["No ",el?eL:i," modules yet"]}),(0,s.jsx)(p.A,{variant:"body2",color:"text.secondary",sx:{mb:3},children:el?`Create the first module for the ${eL} department`:"Create your first module to get started"}),(0,s.jsx)(d.A,{variant:"contained",startIcon:(0,s.jsx)(G.A,{}),onClick:()=>eP(!0),sx:{background:eo,"&:hover":{background:ea}},children:"Create First Module"})]})}):eX.map(e=>(0,s.jsx)(f.Ay,{item:!0,xs:12,md:6,lg:4,children:(0,s.jsxs)(v.A,{sx:{height:"100%",display:"flex",flexDirection:"column",transition:"all 0.3s","&:hover":{transform:"translateY(-4px)",boxShadow:4}},children:[(0,s.jsxs)(C.A,{sx:{flexGrow:1},children:[(0,s.jsxs)(c.A,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",mb:2},children:[(0,s.jsx)(m.A,{label:e.subject,size:"small",sx:{bgcolor:"#C8102E",color:"white"}}),(0,s.jsx)(S.A,{size:"small",onClick:t=>{eO(t.currentTarget),eT(e)},"aria-label":"Module options",children:(0,s.jsx)(L.A,{})})]}),(0,s.jsx)(p.A,{variant:"h6",gutterBottom:!0,sx:{color:en},children:e.title}),(0,s.jsx)(p.A,{variant:"body2",color:"text.secondary",sx:{mb:2},children:e.description}),(0,s.jsxs)(c.A,{sx:{mb:2},children:[(0,s.jsxs)(c.A,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:1},children:[(0,s.jsx)(p.A,{variant:"caption",color:"text.secondary",children:"Completion Rate"}),(0,s.jsxs)(p.A,{variant:"caption",sx:{fontWeight:600},children:[e.completion_rate,"%"]})]}),(0,s.jsx)(k.A,{variant:"determinate",value:e.completion_rate,sx:{height:8,borderRadius:4,bgcolor:"#e0e0e0","& .MuiLinearProgress-bar":{background:e.completion_rate>70?"linear-gradient(135deg, #2e7d32 0%, #4caf50 100%)":e.completion_rate>40?"#C8102E":ea}}})]}),(0,s.jsxs)(f.Ay,{container:!0,spacing:1,children:[(0,s.jsx)(f.Ay,{item:!0,xs:4,children:(0,s.jsxs)(c.A,{sx:{textAlign:"center"},children:[(0,s.jsx)(p.A,{variant:"h6",sx:{color:"#1976d2"},children:e.content_count}),(0,s.jsx)(p.A,{variant:"caption",color:"text.secondary",children:"Contents"})]})}),(0,s.jsx)(f.Ay,{item:!0,xs:4,children:(0,s.jsxs)(c.A,{sx:{textAlign:"center"},children:[(0,s.jsx)(p.A,{variant:"h6",sx:{color:"#ff6b35"},children:e.assignment_count}),(0,s.jsx)(p.A,{variant:"caption",color:"text.secondary",children:"Assignments"})]})}),(0,s.jsx)(f.Ay,{item:!0,xs:4,children:(0,s.jsxs)(c.A,{sx:{textAlign:"center"},children:[(0,s.jsx)(p.A,{variant:"h6",sx:{color:"#2e7d32"},children:e.enrolled_students}),(0,s.jsx)(p.A,{variant:"caption",color:"text.secondary",children:"Students"})]})})]})]}),(0,s.jsx)(w.A,{sx:{px:2,pb:2},children:(0,s.jsx)(d.A,{size:"small",fullWidth:!0,variant:"outlined",onClick:()=>ep.push(`/demo/faculty/modules/${e.id}`),sx:{borderColor:ei,color:ei,"&:hover":{borderColor:"#000000",bgcolor:ei+"08"}},children:"Manage Module"})})]})},e.id))]})]})})]})]})})})}),(0,s.jsxs)(_.A,{anchorEl:e$,open:!!e$,onClose:eQ,children:[(0,s.jsxs)(E.A,{onClick:()=>{eD&&ep.push(`/demo/faculty/modules/${eD.id}/edit`),eQ()},children:[(0,s.jsx)(H.A,{fontSize:"small",sx:{mr:1}}),"Edit Module"]}),(0,s.jsx)(E.A,{onClick:()=>{eD&&eK(eD.id,!eD.is_published),eQ()},children:eD?.is_published?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Y.A,{fontSize:"small",sx:{mr:1}}),"Unpublish"]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(X.A,{fontSize:"small",sx:{mr:1}}),"Publish"]})}),(0,s.jsxs)(E.A,{onClick:()=>{eD&&ep.push(`/demo/faculty/modules/${eD.id}/copy`),eQ()},children:[(0,s.jsx)(U.A,{fontSize:"small",sx:{mr:1}}),"Duplicate"]}),(0,s.jsxs)(E.A,{onClick:()=>{eD&&ep.push(`/demo/faculty/modules/${eD.id}/export`),eQ()},children:[(0,s.jsx)(V.A,{fontSize:"small",sx:{mr:1}}),"Export"]}),(0,s.jsx)(y.A,{}),(0,s.jsxs)(E.A,{onClick:()=>
1{eD&&eJ(eD.id),eQ()},sx:{color:"error.main"},children:[(0,s.jsx)(K.A,{fontSize:"small",sx:{mr:1}}),"Delete"]})]}),(0,s.jsxs)(z.A,{open:eM,onClose:()=>eP(!1),maxWidth:"sm",fullWidth:!0,children:[(0,s.jsx)(R.A,{children:"Create New Module"}),(0,s.jsx)(W.A,{children:(0,s.jsxs)(c.A,{sx:{pt:2,display:"flex",flexDirection:"column",gap:3},children:[(0,s.jsx)(I.A,{label:"Module Title",fullWidth:!0,value:eH.title,onChange:e=>eY({...eH,title:e.target.value}),placeholder:"e.g., Introduction to Pharmacology"}),(0,s.jsxs)(F.A,{fullWidth:!0,children:[(0,s.jsx)(M.A,{children:"Subject"}),(0,s.jsx)(P.A,{value:eH.subject,label:"Subject",onChange:e=>eY({...eH,subject:e.target.value}),children:r||el?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(E.A,{value:"Anesthesia",children:"Anesthesia"}),(0,s.jsx)(E.A,{value:"OSCE Communication",children:"OSCE Communication"}),(0,s.jsx)(E.A,{value:"Pharmacology",children:"Pharmacology"}),(0,s.jsx)(E.A,{value:"Radiology",children:"Radiology"}),(0,s.jsx)(E.A,{value:"Surgery",children:"Surgery"}),(0,s.jsx)(E.A,{value:"Medicine",children:"Medicine"}),(0,s.jsx)(E.A,{value:"Pathology",children:"Pathology"}),(0,s.jsx)(E.A,{value:"General",children:"General"})]}):(0,s.jsx)(E.A,{value:i,children:i})})]}),(0,s.jsx)(I.A,{label:"Description",fullWidth:!0,multiline:!0,rows:3,value:eH.description,onChange:e=>eY({...eH,description:e.target.value}),placeholder:"Brief description of the module content and objectives"}),(0,s.jsx)(I.A,{label:"Release Date (Optional)",type:"datetime-local",fullWidth:!0,value:eH.release_date,onChange:e=>eY({...eH,release_date:e.target.value}),InputLabelProps:{shrink:!0},helperText:"Leave empty to release immediately upon publishing"})]})}),(0,s.jsxs)(D.A,{children:[(0,s.jsx)(d.A,{onClick:()=>eP(!1),children:"Cancel"}),(0,s.jsx)(d.A,{onClick:eV,variant:"contained",disabled:!eH.title||!eH.description||eI,sx:{background:eo,"&:hover":{background:ea}},children:eI?(0,s.jsx)(T.A,{size:24}):"Create Module"})]})]})]})]})}}},e=>{e.O(0,[48230,54587,7417,69229,31154,47251,49121,61225,45154,48003,45336,72297,47198,10163,82832,59598,44887,42526,5469,35049,85115,90636,46593,38792],()=>e(e.s=49305)),_N_E=e.O()}]);

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.