Registro y elevación de componentes base (ADN, Scripts, Servicios)

This commit is contained in:
Ricardo Monla
2026-02-15 20:37:53 -03:00
parent 9e9bf62c68
commit c865a7772b
25279 changed files with 3354766 additions and 0 deletions
@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7409],{7589:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_not-found/page",function(){return n(3634)}])},3634:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}}),n(7043);let i=n(7437);n(2265);let o={fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},l={display:"inline-block"},r={display:"inline-block",margin:"0 20px 0 0",padding:"0 23px 0 0",fontSize:24,fontWeight:500,verticalAlign:"top",lineHeight:"49px"},d={fontSize:14,fontWeight:400,lineHeight:"49px",margin:0};function s(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("title",{children:"404: This page could not be found."}),(0,i.jsx)("div",{style:o,children:(0,i.jsxs)("div",{children:[(0,i.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}),(0,i.jsx)("h1",{className:"next-error-h1",style:r,children:"404"}),(0,i.jsx)("div",{style:l,children:(0,i.jsx)("h2",{style:d,children:"This page could not be found."})})]})})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},function(e){e.O(0,[2971,2117,1744],function(){return e(e.s=7589)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6716],{9559:function(n,e,u){Promise.resolve().then(u.bind(u,3933))}},function(n){n.O(0,[3587,9070,4609,5947,8316,1479,2971,2117,1744],function(){return n(n.s=9559)}),_N_E=n.O()}]);
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8098,5271],{3154:function(e,n,s){Promise.resolve().then(s.t.bind(s,5878,23)),Promise.resolve().then(s.t.bind(s,2972,23))}},function(e){e.O(0,[4609,2971,2117,1744],function(){return e(e.s=3154)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5271,8098],{3154:function(e,n,s){Promise.resolve().then(s.t.bind(s,5878,23)),Promise.resolve().then(s.t.bind(s,2972,23))}},function(e){e.O(0,[4609,2971,2117,1744],function(){return e(e.s=3154)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2366],{8236:function(e,r,t){Promise.resolve().then(t.bind(t,8877)),Promise.resolve().then(t.t.bind(t,5878,23)),Promise.resolve().then(t.t.bind(t,2972,23))},575:function(e,r,t){"use strict";t.d(r,{V:function(){return n}});let n=(0,t(2265).createContext)({user:null,setUser:()=>{}})},3014:function(e,r,t){"use strict";t.d(r,{a:function(){return l}});var n=t(2265),s=t(575);let u=()=>{let[e,r]=(0,n.useState)(null);return{value:e,setItem:(e,t)=>{localStorage.setItem(e,t),r(t)},getItem:e=>{let t=localStorage.getItem(e);return r(t),t},removeItem:e=>{localStorage.removeItem(e),r(null)}}},a=()=>{let{user:e,setUser:r}=(0,n.useContext)(s.V),{setItem:t}=u();return{user:e,addUser:e=>{r(e),t("user",JSON.stringify(e))},removeUser:()=>{r(null),t("user","")},setUser:r}},l=()=>{let{user:e,addUser:r,removeUser:t,setUser:s}=a(),{getItem:l,setItem:o}=u(),[i,c]=(0,n.useState)(null),[d,f]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=l("user");e&&!i&&(r(JSON.parse(e)),c(JSON.parse(e)))},[r,l,i]),{user:i,login:e=>{f(!1),r(e),f(!0)},loging:d,logout:()=>{s(null),c(null),t()},setUser:s,getUser:()=>{let e=l("user");return e&&!i?(r(JSON.parse(e)),c(JSON.parse(e)),JSON.parse(e)):null},updateUser:e=>{o("user",JSON.stringify(e)),c(e)}}}},8877:function(e,r,t){"use strict";t.d(r,{default:function(){return l}});var n=t(7437);t(7960),t(2336),t(7337);var s=t(575),u=t(3014),a=t(9376);function l(e){let{children:r}=e,{user:t,setUser:l}=(0,u.a)();return t&&(0,a.redirect)("/estudiante/menu-principal"),(0,n.jsx)(s.V.Provider,{value:{user:t,setUser:l},children:(0,n.jsx)("html",{suppressHydrationWarning:!0,lang:"en",children:(0,n.jsx)("body",{children:(0,n.jsx)("div",{className:"rounded-sm border border-stroke bg-whiten shadow-default dark:border-strokedark dark:bg-boxdark",children:(0,n.jsx)("div",{className:"h-screen overflow-auto",children:(0,n.jsx)("div",{className:"relative flex-1 flex-col h-screen",children:(0,n.jsx)("main",{children:(0,n.jsx)("div",{className:"mx-auto max-w-screen-2xl",children:r})})})})})})})})}},9376:function(e,r,t){"use strict";var n=t(5475);t.o(n,"redirect")&&t.d(r,{redirect:function(){return n.redirect}}),t.o(n,"usePathname")&&t.d(r,{usePathname:function(){return n.usePathname}}),t.o(n,"useRouter")&&t.d(r,{useRouter:function(){return n.useRouter}}),t.o(n,"useSearchParams")&&t.d(r,{useSearchParams:function(){return n.useSearchParams}})},2336:function(){},7960:function(){},7337:function(){}},function(e){e.O(0,[3587,9070,4609,2971,2117,1744],function(){return e(e.s=8236)}),_N_E=e.O()}]);
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1468],{6306:function(e,a,r){Promise.resolve().then(r.bind(r,5913)),Promise.resolve().then(r.bind(r,8001))},5913:function(e,a,r){"use strict";r.d(a,{default:function(){return b}});var t=r(7437),s=r(2265),d=r(3708),n=r(3464),o=r(3330),c=r(5740);let l=async e=>{let a=(0,c.B)();try{let r=await n.Z.post("".concat(o.Q,"/api/v1/legacy306"),e,{headers:{Authorization:"".concat(a)}});return{estadisticas:r.data.registros,datosGenerales:r.data.parametro3[0]}}catch(e){throw Error(e.response.data.statussalida)}};var i=r(3014),u=r(9317),m=r(9376);let p=[{Header:"Pregunta",accessor:"pregunta"},{Header:"Respuesta",accessor:"respuesta"},{Header:"Cantidad",accessor:"cantidad"}];var b=()=>{let[e,a]=(0,s.useState)([]),[r,n]=(0,s.useState)(null),[o,c]=(0,s.useState)(!1),[b,x]=(0,s.useState)(!1),{user:h}=(0,i.a)(),k=(0,m.useSearchParams)(),g=Number(k.get("plan")),j=Number(k.get("materia")),N=Number(k.get("anoacademico")),f=Number(k.get("encuesta")),y=Number(k.get("comision")),v=Number(k.get("especialidad")),w=(0,s.useMemo)(()=>p,[]),E=(0,s.useMemo)(()=>Array.isArray(e)?e:[],[e]),{getTableProps:S,getTableBodyProps:H,headerGroups:P,rows:_,prepareRow:C}=(0,d.useTable)({data:E,columns:w}),A=async e=>{c(!0);let{estadisticas:r,datosGenerales:t}=await l({encuesta:f,especialidad:v,plan:g,materia:j,anoacademico:N,comision:y});a(r||[]),n(t||null),c(!1)};return((0,s.useEffect)(()=>{o||!h||b||(A(h),x(!0))},[h,o,b]),o)?(0,t.jsx)(u.Z,{mensaje:"Cargando informaci\xf3n"}):(0,t.jsx)("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,t.jsxs)("div",{className:"max-w-full overflow-x-auto",children:[r&&(0,t.jsxs)("div",{className:"text-center mb-6 pb-10",children:[(0,t.jsx)("h2",{className:"text-xl font-semibold text-gray-800",children:r.nombre}),(0,t.jsx)("h4",{className:"text-xl font-semibold text-gray-800",children:r.observacion}),(0,t.jsxs)("p",{className:"text-sm text-gray-600",children:[r.comision," | Cantidad de respuestas: ",r.cantidad," (",r.porcentaje," %)"]})]}),(0,t.jsxs)("table",{className:"w-full table-auto",...S(),children:[(0,t.jsx)("thead",{children:P.map((e,a)=>(0,s.createElement)("tr",{...e.getHeaderGroupProps(),key:"headerGroup-".concat(a)},e.headers.map(e=>(0,s.createElement)("th",{...e.getHeaderProps(),key:"column-".concat(e.id),className:"py-4 px-4 font-medium text-black dark:text-white"},e.render("Header")))))}),(0,t.jsx)("tbody",{...H(),children:e.map((a,r)=>{let s=r>0?e[r-1]:null;return a.pregunta&&!a.pregunta.includes("-------")?"S"!==a.titulo?(0,t.jsxs)("tr",{children:[s&&a.pregunta===s.pregunta?(0,t.jsx)("td",{}):(0,t.jsx)("td",{className:"border border-[#eee] py-5 px-4 dark:border-strokedark",children:a.pregunta}),(0,t.jsx)("td",{className:"border-b border-l border-[#eee] py-5 px-4 dark:border-strokedark",children:a.respuesta}),(0,t.jsxs)("td",{className:"border-b border-[#eee] py-5 px-4 dark:border-strokedark",children:[a.cantidad," ( ",a.porcentaje," %)"]})]},r):(0,t.jsx)("tr",{children:(0,t.jsx)("td",{colSpan:3,className:"border-b border-[#eee] py-5 px-4 dark:border-strokedark",children:(0,t.jsx)("b",{children:a.pregunta})})},r):null})})]})]})})}}},function(e){e.O(0,[3587,9070,4609,5947,8316,798,5640,1320,8001,2971,2117,1744],function(){return e(e.s=6306)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[51],{1829:function(e,r,a){Promise.resolve().then(a.bind(a,5196)),Promise.resolve().then(a.bind(a,8001))},7176:function(e,r,a){"use strict";var t=a(7437);a(2265),r.Z=e=>{let{column:r}=e,{filterValue:a,setFilter:o}=r;return(0,t.jsx)("div",{className:"w-full mt-2.5 ",children:(0,t.jsx)("input",{type:"text",value:a||"",onChange:e=>o(e.target.value),onClick:e=>e.stopPropagation(),className:"w-full px-3 py-1 border border-stroke focus:border-primary outline-none rounded-md "})})}},5196:function(e,r,a){"use strict";a.d(r,{default:function(){return g}});var t=a(7437),o=a(2265),s=a(3708),d=a(7176),n=a(9376),l=a(3464),i=a(3330),c=a(5740);let u=async(e,r,a,t,o,s,d)=>{let n=(0,c.B)();try{return(await l.Z.post("".concat(i.Q,"/api/v1/legacy601"),{legajo:e,especialidad:r,materia:t,plan:a,fecha:o,codigoTribunal:s,codigoHorario:d},{headers:{Authorization:"".concat(n)}})).data.registros}catch(e){throw Error(e.response.data.statussalida)}};var m=a(9317);let b=[{Header:"Legajo",accessor:"legajo"},{Header:"Estudiante",accessor:"estudiante"},{Header:"Nota",accessor:"nota"}],p={legajo:73761,especialidad:5,plan:2023,materia:106,anoacademico:2023,comision:1};var g=()=>{let e=(0,n.useSearchParams)(),[r,a]=(0,o.useState)([]),[l,i]=(0,o.useState)(!1),[c,g]=(0,o.useState)(!1),h=(0,o.useMemo)(()=>b,[]),x=(0,o.useMemo)(()=>Array.isArray(r)?r:[],[r]),k=(0,o.useMemo)(()=>({Filter:d.Z}),[]),{getTableProps:f,getTableBodyProps:N,headerGroups:j,page:y,prepareRow:w}=(0,s.useTable)({data:x,columns:h,defaultColumn:k},s.useFilters,s.useGlobalFilter,s.useSortBy,s.usePagination),v=Number(e.get("legajo")),E=Number(e.get("especialidad")),P=Number(e.get("plan")),S=Number(e.get("materia")),H=e.get("fecha"),_=H?new Date(H):null;_&&isNaN(_.getTime())&&console.error("Fecha inv\xe1lida:",H);let C=_?_.toISOString().split("T")[0]:null,T=Number(e.get("codigotribunal")),F=Number(e.get("codigohorario")),Z=async e=>{i(!0),a(await u(v,E,P,S,C,T,F)||[]),i(!1)};return((0,o.useEffect)(()=>{l||!p||c||(Z(p),g(!0))},[p,l,c]),l)?(0,t.jsx)(m.Z,{mensaje:"Cargando informaci\xf3n"}):(0,t.jsx)("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,t.jsx)("div",{className:"max-w-full overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full table-auto",...f(),children:[(0,t.jsx)("thead",{children:j.map((e,r)=>(0,o.createElement)("tr",{...e.getHeaderGroupProps(),key:"headerGroup-".concat(r)},e.headers.map((e,r)=>(0,o.createElement)("th",{...e.getHeaderProps(e.getSortByToggleProps()),key:"column-".concat(r),className:"py-4 px-4 font-medium text-black dark:text-white"},e.render("Header")))))}),(0,t.jsx)("tbody",{...N(),children:r.map((e,r)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"border-b border-[#eee] py-5 px-4 dark:border-strokedark",children:e.legajo}),(0,t.jsx)("td",{className:"border-b border-[#eee] py-5 px-4 dark:border-strokedark",children:e.nombre}),(0,t.jsx)("td",{className:"border-b border-[#eee] py-5 px-4 dark:border-strokedark",children:e.nota})]},"row-".concat(r)))})]})})})}}},function(e){e.O(0,[3587,9070,4609,5947,8316,798,5640,1320,8001,2971,2117,1744],function(){return e(e.s=1829)}),_N_E=e.O()}]);
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[938],{7716:function(e,r,a){Promise.resolve().then(a.bind(a,7729)),Promise.resolve().then(a.bind(a,8001))},7176:function(e,r,a){"use strict";var o=a(7437);a(2265),r.Z=e=>{let{column:r}=e,{filterValue:a,setFilter:s}=r;return(0,o.jsx)("div",{className:"w-full mt-2.5 ",children:(0,o.jsx)("input",{type:"text",value:a||"",onChange:e=>s(e.target.value),onClick:e=>e.stopPropagation(),className:"w-full px-3 py-1 border border-stroke focus:border-primary outline-none rounded-md "})})}},7729:function(e,r,a){"use strict";a.d(r,{default:function(){return h}});var o=a(7437),s=a(2265),d=a(3708),t=a(7648),c=a(7176),l=a(3464),n=a(3330),i=a(5740);let b=async e=>{try{return(await l.Z.post("".concat(n.Q,"/api/v1/legacy602"),{legajo:e},{headers:{Authorization:"".concat((0,i.B)())}})).data.registros}catch(e){throw Error(e.response.data.statussalida)}};var u=a(3014),p=a(9317);let m=[{Header:"Especialidad",accessor:"especialidad"},{Header:"Materia",accessor:"materia"},{Header:"Cargo",accessor:"cargo"},{Header:"Tribunal",accessor:"tribunal"},{Header:"Plan",accessor:"plan"},{Header:"Aula",accessor:"aula"},{Header:"Fecha",accessor:"fecha"},{Header:"H.P.",accessor:"horasPractico"},{Header:"H.T.",accessor:"horasTeorico"},{Header:"Insc.",accessor:"inscriptos"}];var h=()=>{let[e,r]=(0,s.useState)([]),[a,l]=(0,s.useState)(!1),[n,i]=(0,s.useState)(!1),{user:h}=(0,u.a)(),k=(0,s.useMemo)(()=>m,[]),x=(0,s.useMemo)(()=>Array.isArray(e)?e:[],[e]),g=(0,s.useMemo)(()=>({Filter:c.Z}),[]),{getTableProps:f,getTableBodyProps:y,headerGroups:j,page:N,prepareRow:v}=(0,d.useTable)({data:x,columns:k,defaultColumn:g},d.useFilters,d.useGlobalFilter,d.useSortBy,d.usePagination),H=async e=>{l(!0),r(await b(e.currentUser.legajo)||[]),l(!1)};return((0,s.useEffect)(()=>{a||!h||n||(H(h),i(!0))},[h,a,n]),a)?(0,o.jsx)(p.Z,{mensaje:"Cargando informaci\xf3n"}):(0,o.jsx)("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,o.jsx)("div",{className:"max-w-full overflow-x-auto",children:(0,o.jsxs)("table",{className:"w-full table-auto",...f(),children:[(0,o.jsx)("thead",{children:j.map((e,r)=>(0,s.createElement)("tr",{...e.getHeaderGroupProps(),key:"headerGroup-".concat(r)},e.headers.map(e=>(0,s.createElement)("th",{...e.getHeaderProps(e.getSortByToggleProps()),key:"column-".concat(e.id),className:"py-4 px-4 font-medium text-black dark:text-white"},e.render("Header")))))}),(0,o.jsx)("tbody",{...y(),children:e.map((e,r)=>(0,o.jsxs)("tr",{children:[(0,o.jsx)("td",{className:"border-b border-[#eee] py-5 px-4 dark:border-strokedark",children:e.abreviaturaespecialidad}),(0,o.jsx)("td",{className:"border-b border-[#eee] py-5 px-4 dark:border-strokedark",children:e.nombre}),(0,o.jsx)("td",{className:"border-b border-[#eee] py-5 px-4 dark:border-strokedark",children:e.cargo}),(0,o.jsx)("td",{className:"border-b border-[#eee] py-5 px-4 dark:border-strokedark",children:e.tribunal}),(0,o.jsx)("td",{className:"border-b border-[#eee] py-5 px-4 dark:border-strokedark",children:e.plan}),(0,o.jsx)("td",{className:"border-b border-[#eee] py-5 px-4 dark:border-strokedark",children:e.aula}),(0,o.jsx)("td",{className:"border-b border-[#eee] py-5 px-4 dark:border-strokedark",children:e.fecha}),(0,o.jsx)("td",{className:"border-b border-[#eee] py-5 px-4 dark:border-strokedark",children:e.horariopractico}),(0,o.jsx)("td",{className:"border-b border-[#eee] py-5 px-4 dark:border-strokedark",children:e.horarioteorico}),(0,o.jsx)("td",{className:"border-b border-[#eee] py-5 px-4 dark:border-strokedark",children:e.alumnos>0&&(0,o.jsx)(t.default,{href:"/docente/inscriptos-por-mesa?legajo=".concat(h.legajo,"&especialidad=").concat(e.especialidad,"&materia=").concat(e.materia,"&plan=").concat(e.plan,"&fecha=").concat(e.fecha,"&codigotribunal=").concat(e.codigotribunal,"&codigohorario=").concat(e.codigohorario),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,o.jsx)("span",{className:"text-xs px-2",children:e.alumnos})})})]},r))})]})})})}}},function(e){e.O(0,[3587,9070,4609,5947,8316,798,5640,1320,8001,2971,2117,1744],function(){return e(e.s=7716)}),_N_E=e.O()}]);
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3406],{2480:function(){},1739:function(e,t,n){Promise.resolve().then(n.bind(n,4016))},4016:function(e,t,n){"use strict";n.r(t);var o=n(7437),i=n(166),r=n(4422);let l=(0,i.default)(()=>Promise.resolve().then(n.bind(n,5738)).then(e=>e.PDFDownloadLink),{loadableGenerated:{webpack:()=>[null]},ssr:!1});t.default=()=>(0,o.jsx)(l,{document:(0,o.jsx)(r.Z,{}),fileName:"fee_acceptance.pdf",children:e=>{let{blob:t,url:n,loading:o,error:i}=e;return o?"Loading document...":"Descarga tu Comprobante"}})},4422:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var o=n(7437),i=n(166),r=n(5738);(0,i.default)(()=>Promise.resolve().then(n.bind(n,5738)).then(e=>e.PDFViewer),{loadableGenerated:{webpack:()=>[null]},ssr:!1}),(0,i.default)(()=>Promise.resolve().then(n.bind(n,5738)).then(e=>e.PDFDownloadLink),{loadableGenerated:{webpack:()=>[null]},ssr:!1});let l=r.StyleSheet.create({page:{flexDirection:"row",backgroundColor:"#FFFFFF",width:"100%",height:"100%",margin:30,padding:30,textAlign:"left"},section:{margin:10,padding:30,flexGrow:1},container:{flex:1,flexDirection:"column",alignContent:"flex-start",justifyContent:"center"},headSection:{width:"100%",flexDirection:"column",flexWrap:"nowrap",alignContent:"flex-start",justifyContent:"flex-start",alignItems:"center",fontSize:2},imageLogo:{width:"150px",height:"auto",alignSelf:"center",alignItems:"center",marginLeft:"-5px",marginBottom:"15px"},docTitle:{textAlign:"center",fontSize:"14px",paddingBottom:"15px"},userData:{width:"17cm",fontSize:12,marginTop:"12px",marginBottom:"15px",borderBottom:1,borderBottomColor:"#757575",borderBottomWidth:"2px"},lineData:{marginBottom:"10px"},subjectRow:{width:"17cm",fontSize:12,marginTop:"8px",marginBottom:"10px",borderBottom:1,borderBottomColor:"#757575",borderBottomWidth:"2px"}});function a(e){var t;let{data:n=[],estudiante:i={}}=e;return(0,o.jsx)(r.Document,{children:(0,o.jsx)(r.Page,{size:"A4",style:l.page,children:(0,o.jsxs)(r.View,{children:[(0,o.jsxs)(r.View,{style:l.headSection,children:[(0,o.jsx)(r.Image,{src:"/images/logo/logo_pdf.png",style:l.imageLogo}),(0,o.jsx)(r.Text,{style:l.docTitle,children:"COMPROBANTE DE INSCRIPCI\xd3N A EX\xc1MEN FINAL"})]}),(0,o.jsxs)(r.View,{style:l.userData,children:[(0,o.jsxs)(r.Text,{style:l.lineData,children:["Nombre del Estudiante: ",null==i?void 0:null===(t=i.kermetPayload)||void 0===t?void 0:t.nombre]}),(0,o.jsxs)(r.Text,{style:l.lineData,children:["Legajo: ",null==i?void 0:i.currentUser.legajo]})]}),n.map((e,t)=>(0,o.jsxs)(r.View,{style:l.subjectRow,children:[(0,o.jsxs)(r.Text,{style:l.lineData,children:["Materia: ",e.nombrelargo]}),(0,o.jsxs)(r.Text,{style:l.lineData,children:["Tribunal: ",e.nombretribunal]}),(0,o.jsxs)(r.Text,{style:l.lineData,children:["Fecha y hora: ",e.fecha," - ",e.horariopractico," Hs"]}),(0,o.jsxs)(r.Text,{style:l.lineData,children:["Codigo de validacion: ",e.checksum]})]},"".concat(t,"-insc")))]})})})}}},function(e){e.O(0,[249,7448,7282,5947,7419,2971,2117,1744],function(){return e(e.s=1739)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8381],{9272:function(e,t,r){Promise.resolve().then(r.bind(r,7185)),Promise.resolve().then(r.bind(r,8001))},9956:function(e,t,r){"use strict";r.d(t,{_:function(){return n}});var a=r(3464),s=r(3330),d=r(5740);let n=async(e,t)=>{try{return(await a.Z.post("".concat(s.Q,"/api/v1/legacy402"),{legajo:e,facultad:t},{headers:{Authorization:"".concat((0,d.B)())}})).data.registros}catch(e){throw Error(e.response.data.statussalida)}}},7185:function(e,t,r){"use strict";var a=r(7437),s=r(2265),d=r(9956),n=r(3014),o=r(9317);t.default=()=>{let{user:e}=(0,n.a)(),[t,r]=(0,s.useState)([]),[i,c]=(0,s.useState)(!1),[l,h]=(0,s.useState)("");(0,s.useMemo)(()=>t,[t]);let u=async e=>{c(!0);let t=await (0,d._)(e.currentUser.legajo,e.currentUser.facultad);r(t),c(!1),h(t.length>0?"data":"no_data")};return((0,s.useEffect)(()=>{i||!e||l||u(e)},[i,t,e,l]),i)?(0,a.jsx)(o.Z,{mensaje:"Cargando informaci\xf3n"}):(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.jsx)("div",{className:"flex justify-between pb-4",children:(0,a.jsx)("div",{className:"w-100 relative"})}),(0,a.jsxs)("div",{className:"max-w-full overflow-x-auto",children:[(0,a.jsxs)("table",{className:"w-full",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:"py-4 px-4 font-medium text-center text-black dark:text-white",children:"A\xf1o"}),(0,a.jsx)("th",{className:"py-4 px-4 font-medium text-black dark:text-white",children:"Materia"}),(0,a.jsx)("th",{className:"py-4 px-4 font-medium text-black dark:text-white",children:"Correlatividad"})]})}),(0,a.jsx)("tbody",{children:t.map((e,t)=>(0,a.jsxs)("tr",{children:[""===e.estado&&(0,a.jsx)("td",{className:"text-sm text-center border-b border-[#eee] dark:border-strokedark",children:e.año}),""===e.estado&&(0,a.jsx)("td",{className:"border-b border-[#eee] py-5 px-4 pl-5 dark:border-strokedark",children:(0,a.jsx)("h5",{className:"font-medium text-black dark:text-white",children:e.nombre})}),""===e.estado&&""===e.faltareg&&(0,a.jsx)("td",{className:"text-sm border-b border-[#eee] py-5 px-4 dark:border-strokedark",children:"Puede cursar"}),""===e.estado&&(0,a.jsx)("td",{className:"text-sm border-b border-[#eee] py-5 px-4 dark:border-strokedark",children:e.faltareg})]},t))})]}),(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"})]})]})]})}},4474:function(e,t,r){"use strict";r.d(t,{o:function(){return s}});class a extends Error{}function s(e,t){let r;if("string"!=typeof e)throw new a("Invalid token specified: must be a string");t||(t={});let s=!0===t.header?0:1,d=e.split(".")[s];if("string"!=typeof d)throw new a(`Invalid token specified: missing part #${s+1}`);try{r=function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw Error("base64 string is not of the correct length")}try{var r;return r=t,decodeURIComponent(atob(r).replace(/(.)/g,(e,t)=>{let r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}catch(e){return atob(t)}}(d)}catch(e){throw new a(`Invalid token specified: invalid base64 for part #${s+1} (${e.message})`)}try{return JSON.parse(r)}catch(e){throw new a(`Invalid token specified: invalid json for part #${s+1} (${e.message})`)}}a.prototype.name="InvalidTokenError"}},function(e){e.O(0,[3587,9070,4609,5947,8316,798,1320,8001,2971,2117,1744],function(){return e(e.s=9272)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7662],{3778:function(e,t,r){Promise.resolve().then(r.bind(r,351)),Promise.resolve().then(r.bind(r,8001))},9956:function(e,t,r){"use strict";r.d(t,{_:function(){return n}});var a=r(3464),s=r(3330),d=r(5740);let n=async(e,t)=>{try{return(await a.Z.post("".concat(s.Q,"/api/v1/legacy402"),{legajo:e,facultad:t},{headers:{Authorization:"".concat((0,d.B)())}})).data.registros}catch(e){throw Error(e.response.data.statussalida)}}},351:function(e,t,r){"use strict";var a=r(7437),s=r(2265),d=r(9956),n=r(3014),o=r(9317);t.default=()=>{let{user:e}=(0,n.a)(),[t,r]=(0,s.useState)([]),[i,l]=(0,s.useState)(!1),[c,u]=(0,s.useState)("");(0,s.useMemo)(()=>t,[t]);let p=async e=>{l(!0);let t=await (0,d._)(e.currentUser.legajo,e.currentUser.facultad);r(t),l(!1),u(t.length>0?"data":"no_data")},h=e=>{var t,r;return!e.estado||(null===(t=e.estado)||void 0===t?void 0:t.includes("Apro"))||""!==e.faltaap?""!==e.estado&&(null===(r=e.estado)||void 0===r?void 0:r.includes("Apro"))?null:(0,a.jsx)("td",{className:"text-sm border-b border-[#eee] py-5 px-4 dark:border-strokedark",children:e.faltaap}):(0,a.jsx)("td",{className:"text-sm border-b border-[#eee] py-5 px-4 dark:border-strokedark",children:"Puede rendir"})};return((0,s.useEffect)(()=>{i||!e||c||p(e)},[i,t,e,c]),i)?(0,a.jsx)(o.Z,{mensaje:"Cargando informaci\xf3n"}):(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.jsx)("div",{className:"flex justify-between pb-4",children:(0,a.jsx)("div",{className:"w-100 relative"})}),(0,a.jsxs)("div",{className:"max-w-full overflow-x-auto",children:[(0,a.jsxs)("table",{className:"w-full",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:"py-4 px-4 font-medium text-center text-black dark:text-white",children:"A\xf1o"}),(0,a.jsx)("th",{className:"py-4 px-4 font-medium text-black dark:text-white",children:"Materia"}),(0,a.jsx)("th",{className:"py-4 px-4 font-medium text-black dark:text-white",children:"Correlatividad"})]})}),(0,a.jsx)("tbody",{children:t.map((e,t)=>{var r,s;return(0,a.jsxs)("tr",{children:[(""===e.estado||!(null===(r=e.estado)||void 0===r?void 0:r.includes("Apro")))&&(0,a.jsx)("td",{className:"text-sm text-center border-b border-[#eee] dark:border-strokedark",children:e.año}),(""===e.estado||!(null===(s=e.estado)||void 0===s?void 0:s.includes("Apro")))&&(0,a.jsx)("td",{className:"border-b border-[#eee] py-5 px-4 pl-5 dark:border-strokedark",children:(0,a.jsx)("h5",{className:"font-medium text-black dark:text-white",children:e.nombre})}),h(e)]},t)})})]}),(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"})]})]})]})}},4474:function(e,t,r){"use strict";r.d(t,{o:function(){return s}});class a extends Error{}function s(e,t){let r;if("string"!=typeof e)throw new a("Invalid token specified: must be a string");t||(t={});let s=!0===t.header?0:1,d=e.split(".")[s];if("string"!=typeof d)throw new a(`Invalid token specified: missing part #${s+1}`);try{r=function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw Error("base64 string is not of the correct length")}try{var r;return r=t,decodeURIComponent(atob(r).replace(/(.)/g,(e,t)=>{let r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}catch(e){return atob(t)}}(d)}catch(e){throw new a(`Invalid token specified: invalid base64 for part #${s+1} (${e.message})`)}try{return JSON.parse(r)}catch(e){throw new a(`Invalid token specified: invalid json for part #${s+1} (${e.message})`)}}a.prototype.name="InvalidTokenError"}},function(e){e.O(0,[3587,9070,4609,5947,8316,798,1320,8001,2971,2117,1744],function(){return e(e.s=3778)}),_N_E=e.O()}]);
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
(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()}]);
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4984],{8375:function(e,r,t){Promise.resolve().then(t.bind(t,4042)),Promise.resolve().then(t.bind(t,8001))},7176:function(e,r,t){"use strict";var a=t(7437);t(2265),r.Z=e=>{let{column:r}=e,{filterValue:t,setFilter:s}=r;return(0,a.jsx)("div",{className:"w-full mt-2.5 ",children:(0,a.jsx)("input",{type:"text",value:t||"",onChange:e=>s(e.target.value),onClick:e=>e.stopPropagation(),className:"w-full px-3 py-1 border border-stroke focus:border-primary outline-none rounded-md "})})}},4042:function(e,r,t){"use strict";var a=t(7437),s=t(2265),n=t(7176),o=t(9376),i=t(9317);let c=[{Header:"Pregunta",accessor:"pregunta"},{Header:"Respuesta",accessor:"respuesta"},{Header:"Observaci\xf3n",accessor:"observacion"}];r.default=()=>{(0,o.useSearchParams)();let[e,r]=(0,s.useState)(!1),[t,d]=(0,s.useState)(!1);return((0,s.useMemo)(()=>c,[]),(0,s.useMemo)(()=>({Filter:n.Z}),[]),e)?(0,a.jsx)(i.Z,{mensaje:"Cargando informaci\xf3n"}):(0,a.jsxs)("div",{className:"rounded-lg border border-stroke bg-white p-6 shadow-lg dark:border-strokedark dark:bg-boxdark text-center",children:[(0,a.jsx)("h2",{className:"text-xl font-semibold text-gray-800 dark:text-white",children:"\xa1Encuesta enviada con \xe9xito!"}),(0,a.jsx)("p",{className:"mt-2 text-gray-600 dark:text-gray-300",children:"Gracias por tu participaci\xf3n. Hemos recibido tus respuestas correctamente."})]})}},4474:function(e,r,t){"use strict";t.d(r,{o:function(){return s}});class a extends Error{}function s(e,r){let t;if("string"!=typeof e)throw new a("Invalid token specified: must be a string");r||(r={});let s=!0===r.header?0:1,n=e.split(".")[s];if("string"!=typeof n)throw new a(`Invalid token specified: missing part #${s+1}`);try{t=function(e){let r=e.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw Error("base64 string is not of the correct length")}try{var t;return t=r,decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let t=r.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t="0"+t),"%"+t}))}catch(e){return atob(r)}}(n)}catch(e){throw new a(`Invalid token specified: invalid base64 for part #${s+1} (${e.message})`)}try{return JSON.parse(t)}catch(e){throw new a(`Invalid token specified: invalid json for part #${s+1} (${e.message})`)}}a.prototype.name="InvalidTokenError"}},function(e){e.O(0,[3587,9070,4609,5947,8316,798,1320,8001,2971,2117,1744],function(){return e(e.s=8375)}),_N_E=e.O()}]);
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2789],{4233:function(e,a,s){Promise.resolve().then(s.bind(s,6805)),Promise.resolve().then(s.bind(s,8001))},7176:function(e,a,s){"use strict";var r=s(7437);s(2265),a.Z=e=>{let{column:a}=e,{filterValue:s,setFilter:t}=a;return(0,r.jsx)("div",{className:"w-full mt-2.5 ",children:(0,r.jsx)("input",{type:"text",value:s||"",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 "})})}},6805:function(e,a,s){"use strict";s.d(a,{default:function(){return p}});var r=s(7437),t=s(2265),l=s(3708),d=s(7176),o=s(3014),n=s(3464),c=s(3330),i=s(5740);let x=async(e,a)=>{let s=(0,i.B)();try{return(await n.Z.post("".concat(c.Q,"/api/v1/legacy402"),{legajo:e,facultad:a},{headers:{Authorization:"".concat(s)}})).data.registros}catch(e){throw Error(e.response.data.statussalida)}};var m=s(9317);let u=[{Header:"Fecha",accessor:"fecha"},{Header:"Materia",accessor:"materia"},{Header:"Nota",accessor:"nota"},{Header:"Especialidad",accessor:"especialidad"},{Header:"Plan",accessor:"plan"}];var p=()=>{let{user:e}=(0,o.a)(),[a,s]=(0,t.useState)([]),[n,c]=(0,t.useState)(!1),i=(0,t.useMemo)(()=>u,[]),p=(0,t.useMemo)(()=>a,[a]),b=(0,t.useMemo)(()=>({Filter:d.Z}),[]),{getTableProps:h,getTableBodyProps:f,headerGroups:j,page:k,prepareRow:w,state:N,setGlobalFilter:v,nextPage:g,previousPage:y,canNextPage:E,canPreviousPage:S,pageOptions:P,setPageSize:_,gotoPage:C}=(0,l.useTable)({data:p,columns:i,defaultColumn:b},l.useFilters,l.useGlobalFilter,l.useSortBy,l.usePagination),H=async e=>{c(!0),s(await x(e.currentUser.legajo,e.currentUser.facultad)),c(!1)};(0,t.useEffect)(()=>{n||(null==a?void 0:a.length)||!e||H(e)},[n,a,e]);let{globalFilter:M,pageIndex:F,pageSize:Z}=N;return n?(0,r.jsx)(m.Z,{mensaje:"Cargando informaci\xf3n"}):(0,r.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,r.jsx)("div",{className:"flex justify-between pb-4",children:(0,r.jsx)("div",{className:"w-100 relative"})}),(0,r.jsxs)("div",{className:"max-w-full overflow-x-auto",children:[(0,r.jsxs)("table",{className:"w-full table-auto",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{className:"bg-gray-2 text-left dark:bg-meta-4",children:[(0,r.jsx)("th",{colSpan:1,className:"sm:max-w-[100px] lg:min-w-[250px] py-4 px-4 font-medium text-black dark:text-white xl:pl-11",children:"Materia"}),(0,r.jsx)("th",{colSpan:2,className:"py-4 px-4 font-medium text-black dark:text-white",children:"Estado"})]})}),(0,r.jsx)("tbody",{children:null==a?void 0:a.map((e,a)=>(0,r.jsxs)("tr",{children:[(0,r.jsxs)("td",{colSpan:1,className:"sm:max-w-[100px] lg:min-w-[250px] border-b border-[#eee] py-5 px-4 pl-9 dark:border-strokedark xl:pl-11",children:[(0,r.jsx)("h5",{className:"font-medium text-black dark:text-white",children:e.nombre}),(0,r.jsxs)("p",{className:"text-sm",children:["A\xf1o: ",e.año," - Plan: ",e.plan]})]}),(0,r.jsx)("td",{colSpan:1,className:"sm:max-w-[100px] lg:min-w-[250px] border-b border-[#eee] py-5 px-4 dark:border-strokedark",children:(0,r.jsx)("p",{className:"text-sm font-medium dark:text-white",children:e.estado})}),(0,r.jsx)("td",{})]},a))})]}),(0,r.jsxs)("div",{className:"flex justify-between px-6 pt-5 pb-5 border-t border-stroke",children:[(0,r.jsx)("div",{className:"flex"}),(0,r.jsx)("p",{className:"font-medium"})]})]})]})}}},function(e){e.O(0,[3587,9070,4609,5947,8316,798,5640,1320,8001,2971,2117,1744],function(){return e(e.s=4233)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6459],{7383:function(e,a,r){Promise.resolve().then(r.bind(r,4949)),Promise.resolve().then(r.bind(r,8001))},7176:function(e,a,r){"use strict";var t=r(7437);r(2265),a.Z=e=>{let{column:a}=e,{filterValue:r,setFilter:s}=a;return(0,t.jsx)("div",{className:"w-full mt-2.5 ",children:(0,t.jsx)("input",{type:"text",value:r||"",onChange:e=>s(e.target.value),onClick:e=>e.stopPropagation(),className:"w-full px-3 py-1 border border-stroke focus:border-primary outline-none rounded-md "})})}},4949:function(e,a,r){"use strict";r.d(a,{default:function(){return u}});var t=r(7437),s=r(2265),l=r(3708),d=r(7176),o=r(3014),c=r(3464),i=r(3330),n=r(5740);let x=async(e,a)=>{let r=(0,n.B)();try{return(await c.Z.post("".concat(i.Q,"/api/v1/legacy206"),{legajo:e,facultad:a},{headers:{Authorization:"".concat(r)}})).data.registros}catch(e){throw Error(e.response.data.statussalida)}};var m=r(9317);let p=[{Header:"Materia",accessor:"materia"},{Header:"Comisi\xf3n",accessor:"comision"},{Header:"Horario",accessor:"horario"},{Header:"Duraci\xf3n",accessor:"duracion"}];var u=()=>{let{user:e}=(0,o.a)(),[a,r]=(0,s.useState)([]),[c,i]=(0,s.useState)(!1),n=(0,s.useMemo)(()=>p,[]),u=(0,s.useMemo)(()=>a,[a]),b=(0,s.useMemo)(()=>({Filter:d.Z}),[]),{getTableProps:h,getTableBodyProps:k,headerGroups:f,page:w,prepareRow:j,state:N,setGlobalFilter:y,nextPage:g,previousPage:v,canNextPage:S,canPreviousPage:C,pageOptions:E,setPageSize:_,gotoPage:H}=(0,l.useTable)({data:u,columns:n,defaultColumn:b},l.useFilters,l.useGlobalFilter,l.useSortBy,l.usePagination),M=async e=>{i(!0),r(await x(e.currentUser.legajo,e.currentUser.facultad)),i(!1)};(0,s.useEffect)(()=>{c||a.length||!e||M(e)},[c,a,e]);let{globalFilter:P,pageIndex:F,pageSize:Z}=N;return c?(0,t.jsx)(m.Z,{mensaje:"Cargando informaci\xf3n"}):(0,t.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,t.jsx)("div",{className:"flex justify-between pb-4",children:(0,t.jsx)("div",{className:"w-100 relative"})}),(0,t.jsxs)("div",{className:"max-w-full overflow-x-auto",children:[(0,t.jsxs)("table",{className:"w-full table-auto",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"bg-gray-2 text-left dark:bg-meta-4",children:[(0,t.jsx)("th",{colSpan:2,className:"sm:max-w-[100px] lg:min-w-[250px] py-4 px-4 font-medium text-black dark:text-white xl:pl-11",children:"Materia"}),(0,t.jsx)("th",{colSpan:1,className:"sm:max-w-[100px] lg:max-w-[100px] py-4 px-4 font-medium text-black dark:text-white text-center",children:"Nota"}),(0,t.jsx)("th",{colSpan:1,className:"sm:max-w-[100px] lg:max-w-[100px] py-4 px-4 font-medium text-black dark:text-white",children:"Especialidad"}),(0,t.jsx)("th",{colSpan:1,className:"py-4 px-4 font-medium text-black dark:text-white",children:"Plan"}),(0,t.jsx)("th",{colSpan:1,className:"py-4 px-4 font-medium text-black dark:text-white",children:"C\xf3digo"})]})}),(0,t.jsx)("tbody",{children:a.map((e,a)=>(0,t.jsxs)("tr",{children:[(0,t.jsxs)("td",{colSpan:2,className:"sm:max-w-[100px] lg:min-w-[250px] border-b border-[#eee] py-5 px-4 pl-9 dark:border-strokedark xl:pl-11",children:[(0,t.jsx)("h5",{className:"font-medium text-black dark:text-white",children:e.nombre}),(0,t.jsxs)("p",{className:"text-sm",children:["Fecha: ",e.fecha]})]}),(0,t.jsx)("td",{colSpan:1,className:"sm:max-w-[100px] lg:min-w-[250px] border-b border-[#eee] py-5 px-4 dark:border-strokedark text-center",children:(0,t.jsx)("p",{className:"text-sm font-medium dark:text-white",children:e.nota})}),(0,t.jsx)("td",{colSpan:1,className:"sm:max-w-[100px] lg:min-w-[250px] border-b border-[#eee] py-5 px-4 dark:border-strokedark",children:(0,t.jsx)("p",{className:"text-sm font-medium dark:text-white",children:e.abreviaturaespecialidad})}),(0,t.jsx)("td",{className:"border-b border-[#eee] py-5 px-4 dark:border-strokedark",children:e.plan}),(0,t.jsx)("td",{className:"border-b border-[#eee] py-5 px-4 dark:border-strokedark",children:e.materia}),(0,t.jsx)("td",{})]},a))})]}),(0,t.jsxs)("div",{className:"flex justify-between px-6 pt-5 pb-5 border-t border-stroke",children:[(0,t.jsx)("div",{className:"flex"}),(0,t.jsx)("p",{className:"font-medium"})]})]})]})}}},function(e){e.O(0,[3587,9070,4609,5947,8316,798,5640,1320,8001,2971,2117,1744],function(){return e(e.s=7383)}),_N_E=e.O()}]);
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5892],{6387:function(e,r,t){Promise.resolve().then(t.bind(t,1656)),Promise.resolve().then(t.bind(t,8001))},1656:function(e,r,t){"use strict";t.d(r,{default:function(){return m}});var a=t(7437),s=t(2265),n=t(3464),i=t(3330),o=t(5740);let c=async(e,r,t)=>{try{return(await n.Z.post("".concat(i.Q,"/api/v1/legacy105"),{especialidad:e,plan:r,tipo:1,facultad:t},{headers:{Authorization:"".concat((0,o.B)())}})).data.registros}catch(e){throw Error(e.response.data.statussalida)}},d=async(e,r,t)=>{try{return(await n.Z.post("".concat(i.Q,"/api/v1/legacy104"),{especialidad:e,plan:r,tipo:1,facultad:t},{headers:{Authorization:"".concat((0,o.B)())}})).data.registros}catch(e){throw Error(e.response.data.statussalida)}};var l=t(802),u=t(9317),h=t(3014);let p={"1c":"Primer Cuatrimestre","1/2c":"Primer y Segundo Cuatrimestre","2c":"Segundo Cuatrimestre",anual:"Anual"};var m=()=>{let[e]=(0,l.Z)("materias",[]),{user:r}=(0,h.a)(),[t,n]=(0,s.useState)([]),[i,o]=(0,s.useState)(!1);(0,s.useMemo)(()=>t,[t]);let m=async e=>{o(!0);let[r,t]=await Promise.all([c(e.currentUser.especialidad,e.currentUser.plan,e.currentUser.facultad),d(e.currentUser.especialidad,e.currentUser.plan,e.currentUser.facultad)]);n(r.map(e=>{for(let r=0;r<t.length;r++)if(t[r].codigo===e.materia)return{...e,condicion:t[r].condicion};return{...e}})),o(!1)};return((0,s.useEffect)(()=>{i||t.length||!r||m(r)},[i,t,m,r]),i)?(0,a.jsx)(u.Z,{mensaje:"Cargando informaci\xf3n"}):(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.jsx)("div",{className:"flex justify-between pb-4",children:(0,a.jsx)("div",{className:"w-100 relative"})}),(0,a.jsxs)("div",{className:"max-w-full overflow-x-auto",children:[(0,a.jsxs)("table",{className:"w-full",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:"py-4 px-4 font-medium text-center text-black dark:text-white",children:"A\xf1o"}),(0,a.jsx)("th",{className:"py-4 px-4 font-medium text-black dark:text-white",children:"Materia"}),(0,a.jsx)("th",{className:"py-4 px-4 font-medium text-black dark:text-white",children:"Dictado"})]})}),(0,a.jsx)("tbody",{children:t.map((e,r)=>{var t,s;return(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"text-sm text-center border-b border-[#eee] dark:border-strokedark",children:e.año}),(0,a.jsx)("td",{className:"border-b border-[#eee] py-5 px-4 pl-5 dark:border-strokedark",children:(0,a.jsx)("h5",{className:"font-medium text-black dark:text-white",children:e.nombre})}),(0,a.jsx)("td",{className:"text-sm border-b border-[#eee] py-5 px-4 dark:border-strokedark",children:null!==(s=p[null===(t=e.cuatrimestre)||void 0===t?void 0:t.toLowerCase()])&&void 0!==s?s:e.cuatrimestre})]},r)})})]}),(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"})]})]})]})}},4474:function(e,r,t){"use strict";t.d(r,{o:function(){return s}});class a extends Error{}function s(e,r){let t;if("string"!=typeof e)throw new a("Invalid token specified: must be a string");r||(r={});let s=!0===r.header?0:1,n=e.split(".")[s];if("string"!=typeof n)throw new a(`Invalid token specified: missing part #${s+1}`);try{t=function(e){let r=e.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw Error("base64 string is not of the correct length")}try{var t;return t=r,decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let t=r.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t="0"+t),"%"+t}))}catch(e){return atob(r)}}(n)}catch(e){throw new a(`Invalid token specified: invalid base64 for part #${s+1} (${e.message})`)}try{return JSON.parse(t)}catch(e){throw new a(`Invalid token specified: invalid json for part #${s+1} (${e.message})`)}}a.prototype.name="InvalidTokenError"}},function(e){e.O(0,[3587,9070,4609,5947,8316,798,1320,8001,2971,2117,1744],function(){return e(e.s=6387)}),_N_E=e.O()}]);
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1931],{4455:function(n,e,u){Promise.resolve().then(u.bind(u,3933))}},function(n){n.O(0,[3587,9070,4609,5947,8316,1479,2971,2117,1744],function(){return n(n.s=4455)}),_N_E=n.O()}]);