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