PageSourceSearch

https://lms.edubull.ai/static/js/1474.d6dff99b.chunk.js

js edubull.ai collected 2026-10-05 12:24:15 UTC 8,943 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkeeebee_frontend=self.webpackChunkeeebee_frontend||[]).push([[1474],{81474(e,t,n){n.r(t);var r=n(5544),i=n(9950),a=n(33784),o=n(74627),s=n(94591),l=n(22781),d=n(51787),c=n(88801),x=n(37772),h=n(75933),g=n(44414);const p=e=>e>=90?{grade:"A+",color:"#2e7d32"}:e>=80?{grade:"A",color:"#388e3c"}:e>=70?{grade:"B+",color:"#1976d2"}:e>=60?{grade:"B",color:"#1565c0"}:e>=50?{grade:"C",color:"#f57c00"}:e>=40?{grade:"D",color:"#e65100"}:{grade:"F",color:"#c62828"},f=()=>{const e=(0,i.useState)(null),t=(0,r.A)(e,2),n=t[0],f=t[1],j=(0,i.useState)(""),m=(0,r.A)(j,2),A=m[0],b=m[1];if((0,i.useEffect)(()=>{try{const e=localStorage.getItem("reportCardPrint");e?(f(JSON.parse(e)),localStorage.removeItem("reportCardPrint")):b("No report data found. Please generate a report card first.")}catch(e){b("Failed to load report data.")}},[]),A)return(0,g.jsxs)(a.A,{sx:{flexDirection:"column",minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",gap:2},children:[(0,g.jsx)(o.A,{color:"error",children:A}),(0,g.jsx)(s.A,{variant:"contained",onClick:()=>window.close(),children:"Close"})]});if(!n)return(0,g.jsx)(a.A,{sx:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,g.jsx)(l.A,{})});const v=n.report,y=n.date,u=v.subjects.filter(e=>e.overall>0),w=u.length>0?u.reduce((e,t)=>e+t.overall,0)/u.length:0,k=p(w);return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("style",{children:"\n  @media print {\n    @page { size: A4; margin: 1.5cm; }\n    body { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }\n    .no-print { display: none !important; }\n    .section-block { page-break-inside: avoid; break-inside: avoid; }\n  }\n  @media screen {\n    .print-container { max-width: 820px; margin: 0 auto; padding: 40px; background: white; box-shadow: 0 0 12px rgba(0,0,0,0.08); }\n  }\n  body { background: #f5f5f5; margin: 0; font-family: Georgia, 'Times New Roman', serif; }\n"}),(0,g.jsx)(a.A,{className:"no-print",sx:{position:"fixed",top:20,right:20,zIndex:1e3},children:(0,g.jsx)(s.A,{variant:"contained",startIcon:(0,g.jsx)(x.A,{}),onClick:()=>window.print(),size:"large",sx:{background:"linear-gradient(135deg, #4F46E5, #3730A3)"},children:"Print / Save as PDF"})}),(0,g.jsxs)(a.A,{className:"print-container",children:[(0,g.jsxs)(a.A,{sx:{background:"linear-gradient(135deg, #4F46E5 0%, #3730A3 100%)",color:"white",borderRadius:2,p:4,mb:4,textAlign:"center",position:"relative",overflow:"hidden"},children:[(0,g.jsx)(a.A,{sx:{position:"absolute",top:0,right:0,width:10,height:"100%",background:"#F59E0B"}}),(0,g.jsx)(o.A,{variant:"overline",sx:{letterSpacing:4,opacity:.9,fontWeight:600},children:"EeeBee \xb7 Student Performance"}),(0,g.jsx)(o.A,{variant:"h3",sx:{letterSpacing:3,fontWeight:800,mb:.5,mt:.5},children:"REPORT CARD"}),(0,g.jsx)(o.A,{variant:"h6",sx:{opacity:.9},children:v.org_name}),(0,g.jsxs)(o.A,{variant:"body2",sx:{opacity:.75,mt:.5},children:["Academic Year \xb7 ",y]})]}),(0,g.jsxs)(a.A,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:3,pb:2.5,borderBottom:"2px solid #4F46E5",flexWrap:"wrap",gap:2},children:[(0,g.jsxs)(a.A,{children:[(0,g.jsx)(o.A,{variant:"h4",sx:{fontWeight:700},children:v.student.name}),(0,g.jsx)(o.A,{variant:"h6",color:"text.secondary",sx:{fontWeight:400},children:v.student.batch_name})]}),w>0&&(0,g.jsxs)(a.A,{sx:{textAlign:"center",p:2,borderRadius:2,border:"3px solid ".concat(k.color),minWidth:120},children:[(0,g.jsx)(o.A,{variant:"caption",color:"text.secondary",sx:{display:"block"},children:"Overall Grade"}),(0,g.jsx)(o.A,{variant:"h2",sx:{fontWeight:900,color:k.color,lineHeight:1.1},children:k.grade}),(0,g.jsxs)(o.A,{variant:"body2",color:"text.secondary",children:[w.toFixed(1),"%"]})]})]}),(0,g.jsx)(o.A,{variant:"h5",sx:{fontWeight:700,mb:2,color:"#4F46E5"},children:"Academic Performance"}),(0,g.jsx)(a.A,{className:"section-block",sx:{overflowX:"auto",mb:3},children:(0,g.jsxs)("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:14},children:[(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{style:{background:"linear-gradient(135deg, #4F46E5, #3730A3)",color:"white"},children:[(0,g.jsx)("th",{style:{padding:"12px 16px",textAlign:"left",fontWeight:700,borderRadius:"4px 0 0 0"},children:"Subject"}),(0,g.jsx)("th",{style:{padding:"12px 16px",textAlign:"center",fontWeight:700},children:"Assignments"}),(0,g.jsx)("th",{style:{padding:"12px 16px",textAlign:"center",fontWeight:700},children:"Exams"}),(0,g.jsx)("th",{style:{padding:"12px 16px",textAlign:"center",fontWeight:700},children:"Overall %"}),(0,g.jsx)("th",{style:{padding:"12px 16px",textAlign:"center",fontWeight:700,borderRadius:"0 4px 0 0"},children:"Grade"})]})}),(0,g.jsx)("tbody",{children:v.subjects.map((e,t)=>{const n=p(e.overall);return(0,g.jsxs)(i.Fragment,{children:[(0,g.jsxs)("tr",{style:{background:t%2===0?"#f8f6ff":"white",borderBottom:"1px solid #e0e0e0"},children:[(0,g.jsx)("td",{style:{padding:"12px 16px",fontWeight:600,color:"#2c3e50"},children:e.name}),(0,g.jsx)("td",{style:{padding:"12px 16px",textAlign:"center",color:"#555"},children:e.assignment_avg>0?"".concat(e.assignment_avg.toFixed(1),"%"):"\u2014"}),(0,g.jsx)("td",{style:{padding:"12px 16px",textAlign:"center",color:"#555"},children:e.exam_avg>0?"".concat(e.exam_avg.toFixed(1),"%"):"\u2014"}),(0,g.jsx)("td",{style:{padding:"12px 16px",textAlign:"center"},children:e.overall>0?(0,g.jsxs)(a.A,{sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:1},children:[(0,g.jsx)(a.A,{sx:{width:60,height:8,borderRadius:4,bgcolor:"#e0e0e0",overflow:"hidden"},children:(0,g.jsx)(a.A,{sx:{width:"".concat(e.overall,"%"),height:"100%",borderRadius:4,background:"linear-gradient(90deg, #4F46E5, #6366F1)"}})}),(0,g.jsxs)("span",{style:{fontWeight:600},children:[e.overall.toFixed(1),"%"]})]}):"\u2014"}),(0,g.jsx)("td",{style:{padding:"12px 16px",textAlign:"center",fontWeight:800,fontSize:16,color:e.overall>0?n.color:"#aaa"},children:e.overall>0?n.grade:"\u2014"})]}),e.comment&&(0,g.jsx)("tr",{style:{background:t%2===0?"#f8f6ff":"white",borderBottom:"1px solid #e8e0f8"},children:(0,g.jsxs)("td",{colSpan:5,style:{padding:"4px 16px 12px",color:"#555",fontSize:13,fontStyle:"italic"},children:["\ud83d\udcac ",e.comment]})})]},e.name)})})]})}),(0,g.jsxs)(a.A,{className:"section-block",sx:{p:3,borderRadius:2,mb:3,background:"linear-gradient(135deg, #f0f4ff, #f8f0ff)",border:"1px solid #d4c8f8",display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:2},children:[(0,g.jsxs)(a.A,{children:[(0,g.jsx)(o.A,{variant:"subtitle2",color:"text.secondary",gutterBottom:!0,children:"Attendance"}),(0,g.jsxs)(o.A,{variant:"h4",sx:{fontWeight:800,color:"#4F46E5"},children:[v.attendance.attendance_percentage,"%"]})]}),(0,g.jsxs)(a.A,{children:[(0,g.jsx)(o.A,{variant:"subtitle2",color:"text.secondary",gutterBottom:!0,children:"Days Present"}),(0,g.jsxs)(o.A,{variant:"h4",sx:{fontWeight:800},children:[v.attendance.present," ",(0,g.jsxs)("span",{style:{fontSize:20,color:"#aaa"},children:["/ ",v.attendance.total_days]})]})]}),(0,g.jsx)(a.A,{children:(0,g.jsx)(d.A,{icon:v.attendance.attendance_percentage>
1=75?(0,g.jsx)(c.A,{}):(0,g.jsx)(h.A,{}),label:v.attendance.attendance_percentage>=75?"Good Standing":"Needs Improvement",color:v.attendance.attendance_percentage>=75?"success":"warning",sx:{fontSize:14,height:36,fontWeight:600}})})]}),v.overall_comment&&(0,g.jsxs)(a.A,{className:"section-block",sx:{p:3,borderRadius:2,mb:4,border:"1px solid #d4c8f8",borderLeft:"4px solid #4F46E5",bgcolor:"#fafafe"},children:[(0,g.jsx)(o.A,{variant:"subtitle1",sx:{fontWeight:700,mb:1,color:"#4F46E5"},children:"Teacher's Remarks"}),(0,g.jsx)(o.A,{variant:"body1",sx:{lineHeight:1.9,fontStyle:"italic",color:"#444"},children:v.overall_comment})]}),(0,g.jsxs)(a.A,{sx:{pt:3,mt:4,borderTop:"2px solid #4F46E5",display:"flex",justifyContent:"space-between",alignItems:"flex-end",flexWrap:"wrap",gap:2},children:[(0,g.jsxs)(a.A,{sx:{textAlign:"center"},children:[(0,g.jsx)(a.A,{sx:{width:140,height:40,borderBottom:"1.5px solid #333",mb:.5}}),(0,g.jsx)(o.A,{variant:"caption",color:"text.secondary",children:"Class Teacher"})]}),(0,g.jsxs)(a.A,{sx:{textAlign:"center"},children:[(0,g.jsx)(o.A,{variant:"caption",color:"text.secondary",sx:{display:"block"},children:"Generated by"}),(0,g.jsx)(o.A,{variant:"body2",sx:{fontWeight:700,color:"#4F46E5"},children:"EeeBee"})]}),(0,g.jsxs)(a.A,{sx:{textAlign:"center"},children:[(0,g.jsx)(a.A,{sx:{width:140,height:40,borderBottom:"1.5px solid #333",mb:.5}}),(0,g.jsx)(o.A,{variant:"caption",color:"text.secondary",children:"Principal"})]})]})]})]})};n.d(t,["default",0,f])},37772(e,t,n){var r=n(43591),i=n(44414);const a=(0,r.A)((0,i.jsx)("path",{d:"M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3m-3 11H8v-5h8zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m-1-9H6v4h12z"}),"Print");n.d(t,["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.