(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4685],{2467:function(e,s,r){Promise.resolve().then(r.bind(r,7651)),Promise.resolve().then(r.bind(r,8001))},6894:function(e,s,r){"use strict";r.d(s,{f:function(){return c}});var a=r(3464),t=r(3330),l=r(5740);let c=async(e,s)=>{let r=(0,l.B)();try{return(await a.Z.post("".concat(t.Q,"/api/v1/legacy507"),{legajo:e,facultad:s},{headers:{Authorization:"".concat(r)}})).data.registros}catch(e){throw Error(e.response.data.statussalida)}}},7176:function(e,s,r){"use strict";var a=r(7437);r(2265),s.Z=e=>{let{column:s}=e,{filterValue:r,setFilter:t}=s;return(0,a.jsx)("div",{className:"w-full mt-2.5  ",children:(0,a.jsx)("input",{type:"text",value:r||"",onChange:e=>t(e.target.value),onClick:e=>e.stopPropagation(),className:"w-full px-3 py-1 border border-stroke focus:border-primary outline-none rounded-md "})})}},7651:function(e,s,r){"use strict";var a=r(7437),t=r(2265),l=r(7648),c=r(3708),i=r(7176),n=r(6894),d=r(3014),o=r(9317);let x=[{Header:"Materia",accessor:"materia"},{Header:"Comisi\xf3n",accessor:"comision"},{Header:"Horario",accessor:"horario"},{Header:"Duraci\xf3n",accessor:"duracion"}];s.default=()=>{let{user:e}=(0,d.a)(),[s,r]=(0,t.useState)([]),[u,m]=(0,t.useState)(""),[h,b]=(0,t.useState)(!1),p=(0,t.useMemo)(()=>x,[]),f=(0,t.useMemo)(()=>s,[s]),j=(0,t.useMemo)(()=>({Filter:i.Z}),[]),{getTableProps:k,getTableBodyProps:N,headerGroups:g,page:v,prepareRow:w,state:y,setGlobalFilter:C,nextPage:H,previousPage:E,canNextPage:M,canPreviousPage:S,pageOptions:_,setPageSize:A,gotoPage:P}=(0,c.useTable)({data:f,columns:p,defaultColumn:j},c.useFilters,c.useGlobalFilter,c.useSortBy,c.usePagination),z=async e=>{b(!0);let s=await (0,n.f)(null==e?void 0:e.currentUser.legajo,null==e?void 0:e.currentUser.facultad);r(s),b(!1),m(s.length>0?"data":"no_data")};(0,t.useEffect)(()=>{h||!e||u||z(e)},[h,s,e,u]);let{globalFilter:Z,pageIndex:B,pageSize:F}=y;return h?(0,a.jsx)(o.Z,{mensaje:"Cargando informaci\xf3n"}):"no_data"!==u||h?(0,a.jsxs)("div",{className:"rounded-sm border border-stroke bg-white px-5 pt-6 pb-2.5 shadow-default dark:border-strokedark dark:bg-boxdark sm:px-7.5 xl:pb-1",children:[(0,a.jsxs)("div",{className:"flex justify-between pb-4",children:[(0,a.jsx)("div",{className:"w-100 relative"}),(0,a.jsx)("div",{className:"flex items-center space-x-3.5",children:(0,a.jsxs)(l.default,{href:"/estudiante/cursado-examenes",className:"text-white bg-black hover:bg-primary focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center inline-flex items-center me-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800",children:[(0,a.jsx)("svg",{className:"fill-current",width:"16",height:"16",x:"0px",y:"0px",viewBox:"0 0 64 64",children:(0,a.jsxs)("g",{children:[(0,a.jsx)("path",{d:"M16.1,14.5h44.5c1.2,0,2.3-1,2.3-2.3s-1-2.3-2.3-2.3H16.1c-1.2,0-2.3,1-2.3,2.3S14.8,14.5,16.1,14.5z"}),(0,a.jsx)("path",{d:"M60.5,29.8H16.1c-1.2,0-2.3,1-2.3,2.3c0,1.2,1,2.3,2.3,2.3h44.5c1.2,0,2.3-1,2.3-2.3C62.8,30.8,61.8,29.8,60.5,29.8z"}),(0,a.jsx)("path",{d:"M60.5,49.5H16.1c-1.2,0-2.3,1-2.3,2.3s1,2.3,2.3,2.3h44.5c1.2,0,2.3-1,2.3-2.3S61.8,49.5,60.5,49.5z"}),(0,a.jsx)("circle",{cx:"6.2",cy:"12.2",r:"2.7"}),(0,a.jsx)("circle",{cx:"6.2",cy:"32",r:"2.7"}),(0,a.jsx)("circle",{cx:"6.2",cy:"51.8",r:"2.7"})]})}),(0,a.jsx)("span",{className:"text-xs px-2",children:" VER NOTAS DE PARCIALES"})]})})]}),(0,a.jsxs)("div",{className:"max-w-full overflow-x-auto",children:[(0,a.jsxs)("table",{className:"w-full table-auto",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"bg-gray-2 text-left dark:bg-meta-4",children:[(0,a.jsx)("th",{className:"min-w-[220px] py-4 px-4 font-medium text-black dark:text-white xl:pl-11",children:"Materia"}),(0,a.jsx)("th",{className:"min-w-[150px] py-4 px-4 font-medium text-black dark:text-white",children:"Horario"})]})}),(0,a.jsx)("tbody",{children:s.map((e,s)=>(0,a.jsxs)("tr",{children:[(0,a.jsxs)("td",{className:"border-b border-[#eee] py-5 px-4 pl-9 dark:border-strokedark xl:pl-11",children:[(0,a.jsx)("h5",{className:"font-medium text-black dark:text-white",children:e.nombre}),(0,a.jsxs)("p",{className:"text-sm",children:["Comisi\xf3n ",e.comision," - Aula ",e.aula]})]}),(0,a.jsx)("td",{className:"border-b border-[#eee] py-5 px-4 dark:border-strokedark",children:(0,a.jsx)("p",{className:"text-black dark:text-white",children:e.horarios})})]},s))})]}),(0,a.jsxs)("div",{className:"flex justify-between px-6 pt-5 pb-5 border-t border-stroke",children:[(0,a.jsx)("div",{className:"flex"}),(0,a.jsx)("p",{className:"font-medium"})]})]})]}):(0,a.jsx)("div",{children:" No est\xe1 cursando materias actualmente. "})}}},function(e){e.O(0,[3587,9070,4609,5947,8316,798,5640,1320,8001,2971,2117,1744],function(){return e(e.s=2467)}),_N_E=e.O()}]);