1import{b as p,dT as f,er as N,j as s,L as v,C as g,g as y,V as w,aX as C,aJ as b,U as l,B as _,Q as M}from"./index-BczQTqp9.js";const L={monday:"Lun",tuesday:"Mar",wednesday:"Mié",thursday:"Jue",friday:"Vie",saturday:"Sáb",sunday:"Dom"},$=()=>{const o=p(),{email:m}=f(),{data:x,isLoading:u}=N(m),a=(x??[]).filter(e=>e.status==="active");return u?s.jsx("div",{className:"flex items-center justify-center py-16",children:s.jsx(v,{className:"w-6 h-6 animate-spin text-muted-foreground"})}):s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold text-foreground",children:"Mis Clases"}),s.jsx("p",{className:"text-muted-foreground text-sm",children:"Grupos asignados"})]}),s.jsxs("div",{className:"grid gap-4",children:[a.map(e=>{var i,n,d;const t=(e.schedule_days||[]).map(c=>L[c]||c).join(", "),r=((i=e.schedule_time_start)==null?void 0:i.slice(0,5))||"",h=((n=e.schedule_time_end)==null?void 0:n.slice(0,5))||"",j=t&&r?`${t} ${r}â${h}`:"â";return s.jsx(g,{className:"hover:shadow-md transition-shadow",children:s.jsx(y,{className:"p-4",children:s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3",children:[s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx("div",{className:"w-12 h-12 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:s.jsx("span",{className:"text-lg font-bold text-primary",children:(d=e.name)==null?void 0:d.slice(0,3)})}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-bold text-foreground",children:e.name}),s.jsx("p",{className:"text-sm text-muted-foreground",children:j})]})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs(w,{variant:"outline",className:"gap-1",children:[e.modality==="virtual"?s.jsx(C,{className:"w-3 h-3"}):s.jsx(b,{className:"w-3 h-3"}),e.modality==="virtual"?"Virtual":"Presencial"]}),s.jsxs("div",{className:"flex items-center gap-1 text-sm text-muted-foreground",children:[s.jsx(l,{className:"w-4 h-4"}),s.jsxs("span",{children:[e.current_students||0," / ",e.max_students||12]})]}),s.jsx(_,{size:"sm",variant:"ghost",onClick:()=>o(`/teacher/classes/${e.id}`),children:s.jsx(M,{className:"w-4 h-4"})})]})]})})},e.id)}),a.length===0&&s.jsxs("div",{className:"text-center py-12 text-muted-foreground",children:[s.jsx(l,{className:"w-12 h-12 mx-auto mb-3 opacity-40"}),s.jsx("p",{className:"text-lg font-medium",children:"No tienes grupos asignados"})]})]})]})};export{$ 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.