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
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()}]);