PageSourceSearch

https://portal.mbspsu.ac.in/assets/page-D8EiRtM-.js

js mbspsu.ac.in collected 2026-10-02 23:21:24 UTC 10,432 bytes, 1 lines download raw bytes

1import{b as l,j as e,a as I}from"./index-BYSgNRRT.js";import{u as L}from"./context-DorME31A.js";import{g as _}from"./IAMRoles-BULRuEnn.js";import{A as D}from"./AccessDeniedShield-v-vKy2ex.js";import{T as O}from"./triangle-alert-CW9isGwF.js";import{S as q}from"./search-CUdDfAuk.js";import{P as B}from"./plus-Ua97l2Nt.js";import"./createLucideIcon-CCoGJ95F.js";import"./shield-alert-CG9Fz3JP.js";import"./rotate-ccw-EOgoUK5v.js";import"./settings-CzyzuuDs.js";import"./shield-CLHDadQx.js";import"./user-_EnDf0fY.js";import"./activity-kI4wEC5M.js";import"./shield-check-Bo0XR05Z.js";import"./x-D-_sPpdJ.js";import"./index-CbwAmprr.js";function M(){const{colleges:o}=L(),[n,w]=l.useState(null),[S,R]=l.useState(!0),[c,C]=l.useState("All"),[i,k]=l.useState(""),[u,d]=l.useState([]),[x,m]=l.useState(""),[b,h]=l.useState(""),[g,f]=l.useState(""),[v,A]=l.useState("col-1");l.useEffect(()=>{if((async()=>{var r;try{const s=await I.getSession();(r=s==null?void 0:s.data)!=null&&r.user&&w(s.data.user)}catch(s){console.error(s)}finally{R(!1)}})(),typeof window<"u"){const r=localStorage.getItem("coe_re_evaluation_queue");if(r)d(JSON.parse(r));else{const s=[{id:"REEVAL-701",studentName:"Sandeep Singh",paper:"Sports Kinesiology",originalGrade:"B",finalGrade:"Pending Review",status:"In-Review",collegeId:"col-3"},{id:"REEVAL-702",studentName:"Manpreet Singh",paper:"Sports Psychology",originalGrade:"C+",finalGrade:"B+",status:"Grade Updated",collegeId:"col-1"}];d(s),localStorage.setItem("coe_re_evaluation_queue",JSON.stringify(s))}}},[]);const N=n?_("examinations.reevaluation",n):"None",a=N==="Viewer",P=N==="None",E=t=>{const r=o==null?void 0:o.find(s=>s.id===t);return r?r.name:"MBSPSU Main Campus"},G=t=>{if(t.preventDefault(),a){alert("Error: You do not have write permissions to submit petitions.");return}const s=[{id:`REEVAL-${Math.floor(703+Math.random()*100)}`,studentName:x,paper:b,originalGrade:g,finalGrade:"Pending Review",status:"In-Review",collegeId:v},...u];d(s),localStorage.setItem("coe_re_evaluation_queue",JSON.stringify(s)),m(""),h(""),f(""),alert("Re-evaluation petition submitted successfully.")},j=(t,r)=>{if(a){alert("Error: You do not have write permissions to change grades.");return}const s=u.map(p=>p.id===t?{...p,finalGrade:r,status:"Grade Updated"}:p);d(s),localStorage.setItem("coe_re_evaluation_queue",JSON.stringify(s)),alert(`Re-evaluation completed. Student grade upgraded to ${r}.`)},y=u.filter(t=>{const r=c==="All"||t.collegeId===c,s=t.studentName.toLowerCase().includes(i.toLowerCase())||t.id.toLowerCase().includes(i.toLowerCase())||t.paper.toLowerCase().includes(i.toLowerCase());return r&&s});return S?e.jsx("div",{className:"flex items-center justify-center p-12",children:e.jsx("span",{className:"text-xs font-black uppercase text-emerald-500 animate-pulse",children:"Loading Re-evaluation Module..."})}):P?e.jsx(D,{principalEmail:(n==null?void 0:n.email)||"[email protected]",resourcePath:"examinations.reevaluation",resolvedLevel:"None"}):e.jsxs("div",{className:"space-y-6",children:[a&&e.jsxs("div",{className:"p-4 bg-amber-500/10 border border-amber-500/20 text-amber-600 dark:text-amber-400 rounded-2xl text-xs font-semibold flex items-start gap-3",children:[e.jsx(O,{className:"w-4 h-4 shrink-0 mt-0.5"}),e.jsxs("div",{children:[e.jsx("span",{className:"font-extrabold uppercase tracking-wider block mb-0.5 text-amber-700 dark:text-amber-300 text-[10px]",children:"Read-Only clearance"}),"You hold Viewer permissions on this examinations sub-module. All action operations, record updates, and button submissions are disabled by Cloud IAM policies."]})]}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-lg font-black uppercase",children:"Re-Evaluation Desk Queue"}),e.jsx("p",{className:"text-xs text-stone-400 font-medium",children:"Process candidate re-checking petitions, edit grade registers, and resolve audit trials."})]}),e.jsxs("div",{className:"flex flex-col md:flex-row gap-4 justify-between items-start md:items-center bg-surface border border-divider p-4 rounded-[1.5rem] text-xs font-semibold",children:[e.jsxs("div",{className:"flex flex-1 gap-3 w-full items-center",children:[e.jsxs("div",{className:"relative flex-1 max-w-md",children:[e.jsx(q,{className:"absolute left-3.5 to
1p-3 w-3.5 h-3.5 text-stone-400"}),e.jsx("input",{type:"text",placeholder:"Search by student, ID, subject...",value:i,onChange:t=>k(t.target.value),className:"w-full pl-9 pr-4 py-2.5 bg-background border border-divider rounded-xl focus:outline-none focus:ring-1 focus:ring-emerald-500 font-semibold"})]}),e.jsxs("select",{value:c,onChange:t=>C(t.target.value),className:"px-3.5 py-2.5 bg-background border border-divider rounded-xl focus:outline-none focus:ring-1 focus:ring-emerald-500 font-bold",children:[e.jsx("option",{value:"All",children:"All Affiliated Colleges"}),o==null?void 0:o.map(t=>e.jsxs("option",{value:t.id,children:[t.name," (",t.city,")"]},t.id))]})]}),e.jsxs("div",{className:"text-[10px] text-stone-400 font-black uppercase tracking-widest pl-3 flex items-center gap-2",children:[e.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-emerald-500 animate-ping"}),"Live Filters Active"]})]}),e.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-3 gap-6 items-start",children:[e.jsxs("div",{className:"xl:col-span-1 bg-surface border border-divider rounded-[2rem] p-6 space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2 pb-2 border-b border-divider",children:[e.jsx(B,{className:"w-4 h-4 text-emerald-600"}),e.jsx("h3",{className:"text-xs font-black uppercase text-foreground font-sans",children:"Submit Re-evaluation"})]}),e.jsxs("form",{onSubmit:G,className:"space-y-3.5 text-xs",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{className:"font-bold text-stone-400",children:"Student Candidate Name"}),e.jsx("input",{type:"text",required:!0,disabled:a,placeholder:"e.g. Gurpreet Singh",value:x,onChange:t=>m(t.target.value),className:`w-full px-3.5 py-2.5 bg-background border border-stone-200 rounded-xl ${a?"opacity-60 cursor-not-allowed":""}`})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{className:"font-bold text-stone-400",children:"Paper Subject"}),e.jsx("input",{type:"text",required:!0,disabled:a,placeholder:"Sports Psychology",value:b,onChange:t=>h(t.target.value),className:`w-full px-3.5 py-2.5 bg-background border border-stone-200 rounded-xl ${a?"opacity-60 cursor-not-allowed":""}`})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{className:"font-bold text-stone-400",children:"Original Grade"}),e.jsx("input",{type:"text",required:!0,disabled:a,placeholder:"B",value:g,onChange:t=>f(t.target.value),className:`w-full px-3.5 py-2.5 bg-background border border-stone-200 rounded-xl font-bold font-mono ${a?"opacity-60 cursor-not-allowed":""}`})]})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{className:"font-bold text-stone-400",children:"Target College"}),e.jsx("select",{disabled:a,value:v,onChange:t=>A(t.target.value),className:`w-full px-3.5 py-2.5 bg-background border border-divider rounded-xl font-semibold ${a?"opacity-60 cursor-not-allowed":""}`,children:o==null?void 0:o.map(t=>e.jsx("option",{value:t.id,children:t.name},t.id))})]}),e.jsx("button",{type:"submit",disabled:a,className:"w-full mt-2 py-2.5 bg-emerald-600 hover:bg-emerald-700 text-white rounded-xl font-bold flex items-center justify-center gap-2 border-none cursor-pointer transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:"Submit Petition Record"})]})]}),e.jsxs("div",{className:"xl:col-span-2 bg-surface border border-divider rounded-[2rem] p-6 space-y-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-xs font-black uppercase text-stone-955 font-sans",children:"Re-Evaluation Desk Queue"}),e.jsx("p",{className:"text-[10px] text-stone-400 font-semibold",children:"Process grade update petitions, verify checking answers, and audit scripts."})]}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-left border-collapse text-xs",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-stone-50/50 text-[9px] font-black text-muted uppercase tracking-widest border-b border-divider",children:[e.jsx("th",{className:"py-3 px-4",children:"Petition ID"}),e.jsx("th",{className:"py-3 px-4",children:"Student Candidate"}),e.jsx("th",{className:"py-3 px-4",children:"College"}),e.jsx("th",{className:"py-3 px-4",children:"Paper Details"}),e.jsx("th",{className:"py-3 px-4",children:"Original → Final Grade"}),e.jsx("th",{className:"py-3 px-4",children:"Action Options"})]})}),e.jsxs("tbody",{className:"divide-y divide-stone-100",children:[y.map(t=>e.jsxs("tr",{className:"hover:bg-stone-50/40 transition-all",children:[e.jsx("td",{className:"py-3.5 px-4 font-mono font-bold text-stone-500",children:t.id}),e.jsx("td",{className:"py-3.5 px-4 font-black",children:t.studentName}),e.jsx("td",{className:"py-3.5 px-4 font-bold text-stone-600",children:E(t.collegeId)}),e.jsx("td",{className:"py-3.5 px-4 font-semibold text-foreground",children:t.paper}),e.jsxs("td",{className:"py-3.5 px-4 font-mono font-bold",children:[e.jsx("span",{className:"text-red-500",children:t.originalGrade}),e.jsx("span",{className:"mx-2 text-stone-400",children:"→"}),e.jsx("span",{className:"text-emerald-500 font-black",children:t.finalGrade})]}),e.jsx("td",{className:"py-3.5 px-4",children:t.status==="In-Review"?e.jsxs("div",{className:"flex gap-1.5",children:[e.jsx("button",{onClick:()=>j(t.id,"B+"),disabled:a,className:"py-0.5 px-2 bg-emerald-600 hover:bg-emerald-700 text-white rounded text-[10px] font-bold border-none cursor-pointer transition-all disabled:opacity-50",children:"Upgrade B+"}),e.jsx("button",{onClick:()=>j(t.id,"A"),disabled:a,className:"py-0.5 px-2 bg-indigo-650 hover:bg-indigo-755 text-white rounded text-[10px] font-bold border-none cursor-pointer transition-all disabled:opacity-50",children:"Upgrade A"})]}):e.jsx("span",{className:"py-1 px-2.5 bg-green-500/10 text-green-600 border border-green-500/20 rounded-lg text-[9px] font-bold uppercase",children:"Grade Audited"})})]},t.id)),y.length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:6,className:"py-8 text-center text-stone-450 font-bold",children:"No active grade re-evaluation petitions."})})]})]})})]})]})]})}function ae(){return e.jsx(M,{})}export{ae 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.