"use strict";exports.id=57642,exports.ids=[57642],exports.modules={57642:(a,b,c)=>{c.r(b),c.d(b,{default:()=>j});var d=c(48249),e=c(67484),f=c(42947),g=c(82697);c(92038),c(91115);let h={PENDING:"Pending",SUBMITTED:"Submitted",CHECKED:"Checked",LATE:"Late",MISSING:"Missing"},i={PENDING:"bg-slate-100 text-slate-700",SUBMITTED:"bg-sky-50 text-sky-800",CHECKED:"bg-emerald-50 text-emerald-800",LATE:"bg-amber-50 text-amber-800",MISSING:"bg-rose-50 text-rose-800"};function j(){let[a,b]=(0,e.useState)([]),[c,j]=(0,e.useState)(!0);return(0,d.jsx)(f.o,{title:"Homework",description:"Assignments for your class, with your evaluation status.",children:c?(0,d.jsx)("div",{className:"space-y-3 animate-pulse",children:Array.from({length:3}).map((a,b)=>(0,d.jsx)("div",{className:"h-28 rounded-lg bg-slate-100"},b))}):0===a.length?(0,d.jsx)(g.i0,{title:"No homework yet",description:"When teachers assign work to your class, it will appear here."}):(0,d.jsx)("ul",{className:"space-y-3",children:a.map(a=>(0,d.jsx)("li",{children:(0,d.jsxs)("div",{className:"rounded-lg border border-slate-100 bg-white p-4 shadow-sm sm:p-5",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("p",{className:"font-semibold text-slate-900",children:a.title}),(0,d.jsxs)("p",{className:"mt-1 text-xs text-slate-500",children:[a.subject?.name||"General",a.assignedDate?` \xb7 Assigned ${a.assignedDate}`:"",a.dueDate?` \xb7 Due ${a.dueDate}`:"",null!=a.maxMarks?` \xb7 Max ${a.maxMarks}`:""]})]}),(0,d.jsxs)("span",{className:`rounded-md px-2 py-0.5 text-xs font-semibold ${i[a.myEvaluation.status]||i.PENDING}`,children:[h[a.myEvaluation.status]||a.myEvaluation.status,null!=a.myEvaluation.marks?` \xb7 ${a.myEvaluation.marks}`:""]})]}),a.description?(0,d.jsx)("p",{className:"mt-3 whitespace-pre-wrap text-sm text-slate-600",children:a.description}):null,a.myEvaluation.remarks?(0,d.jsxs)("p",{className:"mt-2 text-sm text-slate-800",children:["Teacher remark: ",a.myEvaluation.remarks]}):null]})},a.id))})})}}};