PageSourceSearch

https://lms.edubull.ai/static/js/9537.145fad4d.chunk.js

js edubull.ai collected 2026-10-05 12:23:53 UTC 10,357 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkeeebee_frontend=self.webpackChunkeeebee_frontend||[]).push([[9537],{77557(e,s,l){l.d(s,{Vq:()=>i,pp:()=>p,mK:()=>c,mD:()=>r,RS:()=>d,Oc:()=>h,Qm:()=>a,XI:()=>m,ab:()=>x,K1:()=>n,CD:()=>o,y$:()=>j,_4:()=>v});l(9950),l(7496);var t=l(44414);const i=e=>{let s=e.children,l=e.className,i=void 0===l?"":l;return(0,t.jsx)("div",{className:"el-page ".concat(i),children:s})},a=e=>{let s=e.eyebrow,l=e.title,i=e.caption,a=e.action;return(0,t.jsxs)("header",{className:"el-masthead",children:[(0,t.jsxs)("div",{children:[s&&(0,t.jsx)("div",{className:"el-eyebrow",children:s}),(0,t.jsx)("h1",{className:"el-headline",children:l}),i&&(0,t.jsx)("p",{className:"el-deck",children:i})]}),a]})},n=e=>{let s=e.onClick,l=e.loading,i=e.label,a=void 0===i?"Refresh":i;return(0,t.jsxs)("button",{type:"button",className:"el-action ".concat(l?"is-spinning":""),onClick:s,disabled:l,children:[(0,t.jsx)("span",{className:"el-action-dot"}),(0,t.jsx)("span",{className:"el-action-arrow",children:"\u21bb"}),(0,t.jsx)("span",{children:a})]})},r=e=>{let s=e.children;return(0,t.jsx)("div",{className:"el-filter",children:s})},c=e=>{let s=e.value,l=e.empty,i=e.disabled,a=e.onClick;return(0,t.jsxs)("button",{type:"button",className:"el-filter-pill ".concat(l?"is-empty":""," ").concat(i?"is-disabled":""),onClick:a,disabled:i,children:[s,(0,t.jsx)("span",{className:"el-filter-caret",children:"\u25be"})]})},d=e=>{let s=e.stats;return(0,t.jsx)("div",{className:"el-kpis",style:{"--el-kpis-cols":s.length},children:s.map((e,s)=>(0,t.jsxs)("div",{className:"el-kpi",children:[(0,t.jsx)("div",{className:"el-kpi-label",children:e.label}),(0,t.jsxs)("div",{className:"el-kpi-value ".concat(e.tone?"is-".concat(e.tone):""),children:[e.value,e.unit&&(0,t.jsx)("span",{className:"el-kpi-unit",children:e.unit})]}),e.note&&(0,t.jsx)("div",{className:"el-kpi-note",children:e.note})]},s))})},o=e=>{let s=e.title,l=e.caption,i=e.meta;return(0,t.jsxs)("div",{className:"el-section-head",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"el-section-title",children:s}),l&&(0,t.jsx)("div",{className:"el-section-caption",children:l})]}),i&&(0,t.jsx)("div",{className:"el-section-meta",children:i})]})},h=e=>{let s=e.children;return(0,t.jsx)("div",{className:"el-ledger",children:s})},x=e=>{let s=e.tone,l=void 0===s?"neutral":s,i=e.value;return(0,t.jsx)("span",{className:"el-pill is-".concat(l),children:i})},m=e=>{let s=e.value,l=e.thresholds;const i=(a=s)>=(n=void 0===l?{good:75,warn:50}:l).good?"good":a>=n.warn?"warn":"bad";var a,n;const r=Math.max(0,Math.min(100,s));return(0,t.jsxs)("div",{className:"el-perf",children:[(0,t.jsx)("div",{className:"el-perf-bar",children:(0,t.jsx)("div",{className:"el-perf-bar-fill is-".concat(i),style:{width:"".concat(r,"%")}})}),(0,t.jsxs)("div",{className:"el-perf-pct",children:[s.toFixed(0),"%"]})]})},p=e=>{let s=e.pretitle,l=void 0===s?"No selection yet":s,i=e.title,a=e.body;return(0,t.jsxs)("div",{className:"el-empty",children:[(0,t.jsx)("div",{className:"el-empty-pretitle",children:l}),(0,t.jsx)("div",{className:"el-empty-title",children:i}),(0,t.jsx)("div",{className:"el-empty-body",children:a})]})},j=e=>{let s=e.label,l=void 0===s?"Loading":s;return(0,t.jsxs)("div",{className:"el-loading",children:[(0,t.jsx)("div",{className:"el-spinner"}),(0,t.jsx)("div",{className:"el-loading-label",children:l})]})},v=e=>{let s=e.tabs,l=e.value,i=e.onChange,a=e.ariaLabel;return(0,t.jsx)("nav",{className:"el-tabs",role:"tablist","aria-label":a,children:s.map((e,s)=>{var a;const n="string"===typeof e?{label:e}:e,r=null!==(a=n.index)&&void 0!==a?a:String(s+1).padStart(2,"0");return(0,t.jsxs)("button",{role:"tab","aria-selected":l===s,className:"el-tab ".concat(l===s?"is-active":""),onClick:()=>!n.disabled&&i(s),disabled:n.disabled,children:[(0,t.jsx)("span",{className:"el-tab-index",children:r}),n.label]},s)})})}},99537(e,s,l){l.r(s),l.d(s,{default:()=>S});var t=l(5544),i=l(9950),a=l(45536),n=l(33784),r=l(22153),c=l(48015),d=l(74627),o=l(51787),h=l(22922),x=l(19992),m=l(24098),p=l(67708),j=l(43591),v=l(44414);const f=(0,j.A)((0,v.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7 2h1.5v3l2-3h1.7l-2 3 2 3h-1.7l-2-3v3H12zM7 7.25h2.5V6.5H7V5h4v3.75H8.5v.75H11V11H7zM19 13l-6 6-4-4-4 4v-2.5l4-4 4 4 6-6z"}),"Score");var u=l(33542),b=l(75933),g=l(20027),A=l(85247),y=l(79918),N=l(77557);const k={inactive:(0,v.jsx)(m.A,{fontSize:"small"}),missing_assignments:(0,v.jsx)(p.A,{fontSize:"small"}),low_score:(0,v.jsx)(f,{fontSize:"small"}),attendance:(0,v.jsx)(u.A,{fontSize:"small"})},w={high:"#f44336",medium:"#ff9800",low:"#2196f3"},_={high:"#fdecea",medium:"#fff3e0",low:"#e3f2fd"},C=e=>{var s;let l=e.student;const t=w[l.risk_level],i=_[l.risk_level];return(0,v.jsxs)(a.A,{sx:{p:2.5,borderRadius:2,border:"1.5px solid ".concat(t,"44"),background:i,position:"relative",overflow:"hidden"},children:[(0,v.jsx)(n.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:4,bgcolor:t,borderRadius:"2px 0 0 2px"}}),(0,v.jsxs)(r.A,{direction:"row",spacing:2,sx:{alignItems:"center",mb:1.5},children:[(0,v.jsx)(c.A,{sx:{bgcolor:t,width:40,height:40,fontWeight:700},children:null===(s=l.name[0])||void 0===s?void 0:s.toUpperCase()}),(0,v.jsxs)(n.A,{sx:{flex:1},children:[(0,v.jsx)(d.A,{variant:"subtitle2",sx:{fontWeight:700},children:l.name}),(0,v.jsx)(o.A,{size:"small",label:l.risk_level.toUpperCase(),sx:{bgcolor:t,color:"white",fontWeight:700,fontSize:"0.65rem",he
1ight:18,mt:.25}})]})]}),(0,v.jsx)(r.A,{spacing:.75,children:l.risks.map((e,s)=>(0,v.jsxs)(r.A,{direction:"row",spacing:1,sx:{alignItems:"center"},children:[(0,v.jsx)(n.A,{sx:{color:t,display:"flex"},children:k[e.type]||(0,v.jsx)(b.A,{fontSize:"small"})}),(0,v.jsx)(d.A,{variant:"caption",sx:{color:"text.secondary"},children:e.label})]},s))}),(0,v.jsx)(n.A,{sx:{mt:1.5,pt:1.5,borderTop:"1px solid ".concat(t,"33")},children:(0,v.jsxs)(r.A,{direction:"row",spacing:2,children:[null!==l.avg_score&&(0,v.jsxs)(n.A,{children:[(0,v.jsx)(d.A,{variant:"caption",color:"text.secondary",children:"Avg Score"}),(0,v.jsxs)(d.A,{variant:"body2",sx:{fontWeight:700,color:l.avg_score<50?"#f44336":"text.primary"},children:[l.avg_score,"%"]})]}),(0,v.jsxs)(n.A,{children:[(0,v.jsx)(d.A,{variant:"caption",color:"text.secondary",children:"Attendance"}),(0,v.jsxs)(d.A,{variant:"body2",sx:{fontWeight:700,color:l.attendance_pct<75?"#f44336":"text.primary"},children:[l.attendance_pct,"%"]})]}),null!==l.days_inactive&&(0,v.jsxs)(n.A,{children:[(0,v.jsx)(d.A,{variant:"caption",color:"text.secondary",children:"Last Active"}),(0,v.jsxs)(d.A,{variant:"body2",sx:{fontWeight:700,color:l.days_inactive>=7?"#f44336":"text.primary"},children:[l.days_inactive,"d ago"]})]})]})})]})},S=()=>{const e=(0,i.useState)([]),s=(0,t.A)(e,2),l=s[0],c=s[1],m=(0,i.useState)(!0),p=(0,t.A)(m,2),j=p[0],f=p[1],u=(0,i.useState)(""),k=(0,t.A)(u,2),w=k[0],_=k[1];(0,i.useEffect)(()=>{y.Ay.get("/at-risk/students").then(e=>c(e.data)).catch(()=>_("Failed to load at-risk students")).finally(()=>f(!1))},[]);const S=l.filter(e=>"high"===e.risk_level),M=l.filter(e=>"medium"===e.risk_level),z=l.filter(e=>"low"===e.risk_level);return(0,v.jsxs)(N.Vq,{children:[(0,v.jsx)(N.Qm,{eyebrow:"Teacher Suite \xb7 Early warning",title:"At-risk student alerts",caption:"Students flagged for intervention based on activity, assignments, scores, and attendance."}),(0,v.jsxs)(n.A,{sx:{maxWidth:1100,mx:"auto"},children:[j&&(0,v.jsx)(h.A,{sx:{borderRadius:1}}),w&&(0,v.jsx)(x.A,{severity:"error",children:w}),!j&&!w&&0===l.length&&(0,v.jsxs)(a.A,{sx:{p:4,textAlign:"center",borderRadius:2},children:[(0,v.jsx)(d.A,{color:"text.secondary",variant:"h6",children:"No at-risk students found"}),(0,v.jsx)(d.A,{variant:"body2",color:"text.secondary",sx:{mt:1},children:"All your students appear to be on track!"})]}),!j&&l.length>0&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(r.A,{direction:"row",spacing:1.5,sx:{mb:3,flexWrap:"wrap"},children:[(0,v.jsx)(o.A,{icon:(0,v.jsx)(g.A,{}),label:"".concat(S.length," High Risk"),sx:{bgcolor:"#fdecea",color:"#f44336",fontWeight:700,"& .MuiChip-icon":{color:"#f44336"}}}),(0,v.jsx)(o.A,{icon:(0,v.jsx)(b.A,{}),label:"".concat(M.length," Medium Risk"),sx:{bgcolor:"#fff3e0",color:"#e65100",fontWeight:700,"& .MuiChip-icon":{color:"#ff9800"}}}),(0,v.jsx)(o.A,{icon:(0,v.jsx)(A.A,{}),label:"".concat(z.length," Low Risk"),sx:{bgcolor:"#e3f2fd",color:"#1565c0",fontWeight:700,"& .MuiChip-icon":{color:"#2196f3"}}})]}),S.length>0&&(0,v.jsxs)(n.A,{sx:{mb:3},children:[(0,v.jsx)(d.A,{variant:"subtitle1",sx:{fontWeight:700,color:"#f44336",mb:1.5},children:"High Risk \u2014 Needs Immediate Attention"}),(0,v.jsx)(n.A,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:"1fr 1fr",md:"1fr 1fr 1fr"},gap:2},children:S.map(e=>(0,v.jsx)(C,{student:e},e.student_id))})]}),M.length>0&&(0,v.jsxs)(n.A,{sx:{mb:3},children:[(0,v.jsx)(d.A,{variant:"subtitle1",sx:{fontWeight:700,color:"#e65100",mb:1.5},children:"Medium Risk \u2014 Monitor Closely"}),(0,v.jsx)(n.A,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:"1fr 1fr",md:"1fr 1fr 1fr"},gap:2},children:M.map(e=>(0,v.jsx)(C,{student:e},e.student_id))})]}),z.length>0&&(0,v.jsxs)(n.A,{sx:{mb:3},children:[(0,v.jsx)(d.A,{variant:"subtitle1",sx:{fontWeight:700,color:"#1565c0",mb:1.5},children:"Low Risk \u2014 Keep an Eye On"}),(0,v.jsx)(n.A,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:"1fr 1fr",md:"1fr 1fr 1fr"},gap:2},children:z.map(e=>(0,v.jsx)(C,{student:e},e.student_id))})]})]})]})]})}},24098(e,s,l){var t=l(43591),i=l(44414);const a=(0,t.A)([(0,i.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,i.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");
1l.d(s,["A",0,a])},20027(e,s,l){var t=l(43591),i=l(44414);const a=(0,t.A)((0,i.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error");l.d(s,["A",0,a])},33542(e,s,l){var t=l(43591),i=l(44414);const a=(0,t.A)((0,i.jsx)("path",{d:"m9.31 17 2.44-2.44L14.19 17l1.06-1.06-2.44-2.44 2.44-2.44L14.19 10l-2.44 2.44L9.31 10l-1.06 1.06 2.44 2.44-2.44 2.44zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14z"}),"EventBusy");l.d(s,["A",0,a])}}]);

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.