1import{r as c,j as s,L as i}from"./vendor-KOqQknli.js";import{u as d}from"./erp-command-center-BBwgRbRQ.js";import{t as m}from"./teacherPortal.service-QUPCvNqD.js";const p=()=>{const{employee:t}=d(),r=t==null?void 0:t.employee_token,[n,l]=c.useState([]),[a,o]=c.useState(null);return c.useEffect(()=>{r&&m.listSections(r).then(e=>e.json()).then(e=>{e.data?l(e.data):o(e.error||"Failed")}).catch(e=>o(e.message))},[r]),s.jsxs(s.Fragment,{children:[s.jsx("h1",{className:"hr-portal__page-title",children:"My courses"}),a&&s.jsx("div",{className:"tch-panel text-danger",children:a}),s.jsxs("div",{className:"tch-panel",children:[s.jsx("ul",{className:"list-unstyled mb-0",children:n.map(e=>s.jsx("li",{className:"mb-2",children:s.jsxs(i,{to:`/portal/teacher/courses/${e.section_id}`,children:[e.term_code," â ",e.course_code," ",e.section_label,": ",e.course_title]})},e.section_id))}),n.length===0&&!a&&s.jsx("p",{className:"text-muted small mb-0",children:"No sections assigned as instructor."})]})]})};export{p 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.