1 line
30 KiB
JavaScript
1 line
30 KiB
JavaScript
"use strict";exports.id=11,exports.ids=[11],exports.modules={39915:(e,t,a)=>{a.d(t,{H:()=>n});var l=a(17577),s=a(94464),r=a(57975),i=a(69325);let d=async({legajo:e,facultad:t,certificadoQR:a})=>{let l=(0,i.B)();return(await s.Z.request({url:`${r.Q}/api/v1/certificadoQR`,method:"POST",data:{legajo:e,facultad:t,certificadoQR:a},headers:{Authorization:`${l}`}})).data.url};function n({legajo:e,facultad:t,token:a}){let[s,r]=(0,l.useState)(null),[i,n]=(0,l.useState)(!0),[o,c]=(0,l.useState)(null),[u,x]=(0,l.useState)(null),[h,m]=(0,l.useState)(!1),[f,C]=(0,l.useState)(null);return{tipos:s,loadingTipos:i,errorTipos:o,certificados:u,loadingCertificados:h,errorCertificados:f,obtenerCertificados:(0,l.useCallback)(async a=>{m(!0),C(null);try{let l=await d({legajo:e,facultad:t,certificadoQR:a});return x(l),l}catch(e){C(e)}finally{m(!1)}},[e,t,a])}}},40501:(e,t,a)=>{a.d(t,{default:()=>g});var l=a(10326);a(4047),a(60661),a(43626);var s=a(17577),r=a.n(s),i=a(79040),d=a(90753),n=a(35047),o=a(90434),c=a(46226);let u=({children:e,activeCondition:t})=>{let[a,r]=(0,s.useState)(t);return l.jsx("li",{children:e(()=>{r(!a)},a)})};var x=a(18341),h=a(39915);let m=({sidebarOpen:e,setSidebarOpen:t})=>{let a=(0,n.usePathname)(),i=(0,s.useRef)(null),d=(0,s.useRef)(null),{user:m}=(0,x.a)(),{tipos:f,obtenerCertificados:C}=(0,h.H)({legajo:m?.currentUser?.legajo,facultad:m?.currentUser?.facultad,token:m?.token}),[p,g]=(0,s.useState)(!0);return(0,s.useEffect)(()=>{let a=({target:a})=>{d.current&&i.current&&(!e||d.current.contains(a)||i.current.contains(a)||t(!1))};return document.addEventListener("click",a),()=>document.removeEventListener("click",a)}),(0,s.useEffect)(()=>{let a=({keyCode:a})=>{e&&27===a&&t(!1)};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)}),(0,s.useEffect)(()=>{localStorage.setItem("sidebar-expanded",p.toString()),p?document.querySelector("body")?.classList.add("sidebar-expanded"):document.querySelector("body")?.classList.remove("sidebar-expanded")},[p]),(0,l.jsxs)("aside",{ref:d,className:`absolute left-0 top-0 z-9999 flex h-screen w-72.5 flex-col overflow-y-hidden bg-black duration-300 ease-linear dark:bg-boxdark lg:static lg:translate-x-0 ${e?"translate-x-0":"-translate-x-full"}`,children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-2 px-6 py-5.5 lg:py-6.5",children:[(0,l.jsxs)(o.default,{href:"/",children:[l.jsx(c.default,{src:"/images/logo/logo_utn_white.png",width:220,height:32,priority:!0,alt:"Logo"}),l.jsx("h5",{className:"text-xs text-white",children:"SISTEMA DE AUTOGESTI\xd3N ACAD\xc9MICO"})]}),l.jsx("button",{ref:i,onClick:()=>t(!e),"aria-controls":"sidebar","aria-expanded":e,className:"block lg:hidden",children:l.jsx("svg",{className:"fill-current",width:"20",height:"18",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M19 8.175H2.98748L9.36248 1.6875C9.69998 1.35 9.69998 0.825 9.36248 0.4875C9.02498 0.15 8.49998 0.15 8.16248 0.4875L0.399976 8.3625C0.0624756 8.7 0.0624756 9.225 0.399976 9.5625L8.16248 17.4375C8.31248 17.5875 8.53748 17.7 8.76248 17.7C8.98748 17.7 9.17498 17.625 9.36248 17.475C9.69998 17.1375 9.69998 16.6125 9.36248 16.275L3.02498 9.8625H19C19.45 9.8625 19.825 9.4875 19.825 9.0375C19.825 8.55 19.45 8.175 19 8.175Z",fill:""})})})]}),l.jsx("div",{className:"no-scrollbar flex flex-col overflow-y-auto duration-300 ease-linear",children:l.jsx("nav",{className:"mt-5 py-4 px-4 lg:mt-9 lg:px-6",children:(0,l.jsxs)("div",{children:[l.jsx("h3",{className:"mb-4 ml-4 text-sm font-semibold text-bodydark2",children:"MEN\xda"}),(0,l.jsxs)("ul",{className:"mb-6 flex flex-col gap-1.5",children:[l.jsx(u,{activeCondition:"/"===a||a.includes("estudiante/cursado-"),children:(e,t)=>(0,l.jsxs)(r().Fragment,{children:[(0,l.jsxs)(o.default,{href:"#",className:`group relative flex items-center gap-2.5 rounded-sm px-4 py-2 font-medium text-bodydark1 duration-300 ease-in-out hover:bg-graydark dark:hover:bg-meta-4 ${("/estudiante/cursado-horarios"===a||a.includes("/estudiante/cursado-horarios"))&&"bg-graydark dark:bg-meta-4"}`,onClick:t=>{t.preventDefault(),p?e():g(!0)},children:[(0,l.jsxs)("svg",{className:"fill-current",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsxs)("g",{clipPath:"url(#clip0_130_9728)",children:[l.jsx("path",{d:"M3.45928 0.984375H1.6874C1.04053 0.984375 0.478027 1.51875 0.478027 2.19375V3.96563C0.478027 4.6125 1.0124 5.175 1.6874 5.175H3.45928C4.10615 5.175 4.66865 4.64063 4.66865 3.96563V2.16562C4.64053 1.51875 4.10615 0.984375 3.45928 0.984375ZM3.3749 3.88125H1.77178V2.25H3.3749V3.88125Z",fill:""}),l.jsx("path",{d:"M7.22793 3.71245H16.8748C17.2123 3.71245 17.5217 3.4312 17.5217 3.06558C17.5217 2.69995 17.2404 2.4187 16.8748 2.4187H7.22793C6.89043 2.4187 6.58105 2.69995 6.58105 3.06558C6.58105 3.4312 6.89043 3.71245 7.22793 3.71245Z",fill:""}),l.jsx("path",{d:"M3.45928 6.75H1.6874C1.04053 6.75 0.478027 7.28437 0.478027 7.95937V9.73125C0.478027 10.3781 1.0124 10.9406 1.6874 10.9406H3.45928C4.10615 10.9406 4.66865 10.4062 4.66865 9.73125V7.95937C4.64053 7.28437 4.10615 6.75 3.45928 6.75ZM3.3749 9.64687H1.77178V8.01562H3.3749V9.64687Z",fill:""}),l.jsx("path",{d:"M16.8748 8.21252H7.22793C6.89043 8.21252 6.58105 8.49377 6.58105 8.8594C6.58105 9.22502 6.86231 9.47815 7.22793 9.47815H16.8748C17.2123 9.47815 17.5217 9.1969 17.5217 8.8594C17.5217 8.5219 17.2123 8.21252 16.8748 8.21252Z",fill:""}),l.jsx("path",{d:"M3.45928 12.8531H1.6874C1.04053 12.8531 0.478027 13.3875 0.478027 14.0625V15.8344C0.478027 16.4813 1.0124 17.0438 1.6874 17.0438H3.45928C4.10615 17.0438 4.66865 16.5094 4.66865 15.8344V14.0625C4.64053 13.3875 4.10615 12.8531 3.45928 12.8531ZM3.3749 15.75H1.77178V14.1188H3.3749V15.75Z",fill:""}),l.jsx("path",{d:"M16.8748 14.2875H7.22793C6.89043 14.2875 6.58105 14.5687 6.58105 14.9344C6.58105 15.3 6.86231 15.5812 7.22793 15.5812H16.8748C17.2123 15.5812 17.5217 15.3 17.5217 14.9344C17.5217 14.5687 17.2123 14.2875 16.8748 14.2875Z",fill:""})]}),l.jsx("defs",{children:l.jsx("clipPath",{id:"clip0_130_9728",children:l.jsx("rect",{width:"18",height:"18",fill:"white"})})})]}),"Cursado",l.jsx("svg",{className:`absolute right-4 top-1/2 -translate-y-1/2 fill-current ${t&&"rotate-180"}`,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.41107 6.9107C4.73651 6.58527 5.26414 6.58527 5.58958 6.9107L10.0003 11.3214L14.4111 6.91071C14.7365 6.58527 15.2641 6.58527 15.5896 6.91071C15.915 7.23614 15.915 7.76378 15.5896 8.08922L10.5896 13.0892C10.2641 13.4147 9.73651 13.4147 9.41107 13.0892L4.41107 8.08922C4.08563 7.76378 4.08563 7.23614 4.41107 6.9107Z",fill:""})})]}),l.jsx("div",{className:`translate transform overflow-hidden ${!t&&"hidden"}`,children:(0,l.jsxs)("ul",{className:"mt-4 mb-5.5 flex flex-col gap-2.5 pl-6",children:[l.jsx("li",{children:l.jsx(o.default,{href:"/estudiante/cursado-horarios",className:`group relative flex items-center gap-2.5 rounded-md px-4 font-medium text-bodydark2 duration-300 ease-in-out hover:text-white ${"/estudiante/cursado-horarios"===a&&"text-white"}`,children:"Horarios y Aulas"})}),l.jsx("li",{children:l.jsx(o.default,{href:"/estudiante/cursado-examenes",className:`group relative flex items-center gap-2.5 rounded-md px-4 font-medium text-bodydark2 duration-300 ease-in-out hover:text-white ${"/estudiante/cursado-examenes"===a&&"text-white"} `,children:"Notas de Parciales"})}),l.jsx("li",{children:l.jsx(o.default,{href:"/estudiante/cursado-inscripcion",className:`group relative flex items-center gap-2.5 rounded-md px-4 font-medium text-bodydark2 duration-300 ease-in-out hover:text-white ${"/estudiante/cursado-inscripcion"===a&&"text-white"}`,children:"Inscripci\xf3n a Cursado"})})]})})]})}),l.jsx(u,{activeCondition:"/"===a||a.includes("examenes"),children:(e,t)=>(0,l.jsxs)(r().Fragment,{children:[(0,l.jsxs)(o.default,{href:"#",className:`group relative flex items-center gap-2.5 rounded-sm px-4 py-2 font-medium text-bodydark1 duration-300 ease-in-out hover:bg-graydark dark:hover:bg-meta-4 ${("/estudiante/cursado-horarios"===a||a.includes("/estudiante/cursado-horarios"))&&"bg-graydark dark:bg-meta-4"}`,onClick:t=>{t.preventDefault(),p?e():g(!0)},children:[l.jsx("svg",{className:"fill-current",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M15.7499 2.9812H14.2874V2.36245C14.2874 2.02495 14.0062 1.71558 13.6405 1.71558C13.2749 1.71558 12.9937 1.99683 12.9937 2.36245V2.9812H4.97803V2.36245C4.97803 2.02495 4.69678 1.71558 4.33115 1.71558C3.96553 1.71558 3.68428 1.99683 3.68428 2.36245V2.9812H2.2499C1.29365 2.9812 0.478027 3.7687 0.478027 4.75308V14.5406C0.478027 15.4968 1.26553 16.3125 2.2499 16.3125H15.7499C16.7062 16.3125 17.5218 15.525 17.5218 14.5406V4.72495C17.5218 3.7687 16.7062 2.9812 15.7499 2.9812ZM1.77178 8.21245H4.1624V10.9968H1.77178V8.21245ZM5.42803 8.21245H8.38115V10.9968H5.42803V8.21245ZM8.38115 12.2625V15.0187H5.42803V12.2625H8.38115ZM9.64678 12.2625H12.5999V15.0187H9.64678V12.2625ZM9.64678 10.9968V8.21245H12.5999V10.9968H9.64678ZM13.8374 8.21245H16.228V10.9968H13.8374V8.21245ZM2.2499 4.24683H3.7124V4.83745C3.7124 5.17495 3.99365 5.48433 4.35928 5.48433C4.7249 5.48433 5.00615 5.20308 5.00615 4.83745V4.24683H13.0499V4.83745C13.0499 5.17495 13.3312 5.48433 13.6968 5.48433C14.0624 5.48433 14.3437 5.20308 14.3437 4.83745V4.24683H15.7499C16.0312 4.24683 16.2562 4.47183 16.2562 4.75308V6.94683H1.77178V4.75308C1.77178 4.47183 1.96865 4.24683 2.2499 4.24683ZM1.77178 14.5125V12.2343H4.1624V14.9906H2.2499C1.96865 15.0187 1.77178 14.7937 1.77178 14.5125ZM15.7499 15.0187H13.8374V12.2625H16.228V14.5406C16.2562 14.7937 16.0312 15.0187 15.7499 15.0187Z",fill:""})}),"Ex\xe1menes",l.jsx("svg",{className:`absolute right-4 top-1/2 -translate-y-1/2 fill-current ${t&&"rotate-180"}`,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.41107 6.9107C4.73651 6.58527 5.26414 6.58527 5.58958 6.9107L10.0003 11.3214L14.4111 6.91071C14.7365 6.58527 15.2641 6.58527 15.5896 6.91071C15.915 7.23614 15.915 7.76378 15.5896 8.08922L10.5896 13.0892C10.2641 13.4147 9.73651 13.4147 9.41107 13.0892L4.41107 8.08922C4.08563 7.76378 4.08563 7.23614 4.41107 6.9107Z",fill:""})})]}),l.jsx("div",{className:`translate transform overflow-hidden ${!t&&"hidden"}`,children:(0,l.jsxs)("ul",{className:"mt-4 mb-5.5 flex flex-col gap-2.5 pl-6",children:[l.jsx("li",{children:l.jsx(o.default,{href:"/estudiante/examenes-finales",className:`group relative flex items-center gap-2.5 rounded-md px-4 font-medium text-bodydark2 duration-300 ease-in-out hover:text-white ${"/estudiante/examenes-finales"===a&&"text-white"}`,children:"Ex\xe1menes Finales"})}),l.jsx("li",{children:l.jsx(o.default,{href:"/estudiante/examenes-inscripcion",className:`group relative flex items-center gap-2.5 rounded-md px-4 font-medium text-bodydark2 duration-300 ease-in-out hover:text-white ${"/estudiante/examenes-inscripcion"===a&&"text-white"} `,children:"Inscripci\xf3n a Ex\xe1menes"})})]})})]})}),l.jsx("li",{children:(0,l.jsxs)(o.default,{href:"/estudiante/estado-academico-detalle",className:`group relative flex items-center gap-2.5 rounded-sm py-2 px-4 font-medium text-bodydark1 duration-300 ease-in-out hover:bg-graydark dark:hover:bg-meta-4 ${a.includes("/estudiante/estado-academico-detalle")&&"bg-graydark dark:bg-meta-4"}`,children:[(0,l.jsxs)("svg",{className:"fill-current",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{d:"M1.43425 7.5093H2.278C2.44675 7.5093 2.55925 7.3968 2.58737 7.31243L2.98112 6.32805H5.90612L6.27175 7.31243C6.328 7.48118 6.46862 7.5093 6.58112 7.5093H7.453C7.76237 7.48118 7.87487 7.25618 7.76237 7.03118L5.428 1.4343C5.37175 1.26555 5.3155 1.23743 5.14675 1.23743H3.88112C3.76862 1.23743 3.59987 1.29368 3.57175 1.4343L1.153 7.08743C1.0405 7.2843 1.20925 7.5093 1.43425 7.5093ZM4.47175 2.98118L5.3155 5.17493H3.59987L4.47175 2.98118Z",fill:""}),l.jsx("path",{d:"M10.1249 2.5031H16.8749C17.2124 2.5031 17.5218 2.22185 17.5218 1.85623C17.5218 1.4906 17.2405 1.20935 16.8749 1.20935H10.1249C9.7874 1.20935 9.47803 1.4906 9.47803 1.85623C9.47803 2.22185 9.75928 2.5031 10.1249 2.5031Z",fill:""}),l.jsx("path",{d:"M16.8749 6.21558H10.1249C9.7874 6.21558 9.47803 6.49683 9.47803 6.86245C9.47803 7.22808 9.75928 7.50933 10.1249 7.50933H16.8749C17.2124 7.50933 17.5218 7.22808 17.5218 6.86245C17.5218 6.49683 17.2124 6.21558 16.8749 6.21558Z",fill:""}),l.jsx("path",{d:"M16.875 11.1656H1.77187C1.43438 11.1656 1.125 11.4469 1.125 11.8125C1.125 12.1781 1.40625 12.4594 1.77187 12.4594H16.875C17.2125 12.4594 17.5219 12.1781 17.5219 11.8125C17.5219 11.4469 17.2125 11.1656 16.875 11.1656Z",fill:""}),l.jsx("path",{d:"M16.875 16.1156H1.77187C1.43438 16.1156 1.125 16.3969 1.125 16.7625C1.125 17.1281 1.40625 17.4094 1.77187 17.4094H16.875C17.2125 17.4094 17.5219 17.1281 17.5219 16.7625C17.5219 16.3969 17.2125 16.1156 16.875 16.1156Z",fill:"white"})]}),"Estado Acad\xe9mico"]})}),l.jsx(u,{activeCondition:a.includes("correlatividad"),children:(e,t)=>(0,l.jsxs)(r().Fragment,{children:[(0,l.jsxs)(o.default,{href:"#",className:`group relative flex items-center gap-2.5 rounded-sm px-4 py-2 font-medium text-bodydark1 duration-300 ease-in-out hover:bg-graydark dark:hover:bg-meta-4 ${("/estudiante/plan-de-estudio"===a||"/estudiante/correlatividad-cursado"===a||a.includes("/estudiante/correlatividad"))&&"bg-graydark dark:bg-meta-4"}`,onClick:t=>{t.preventDefault(),p?e():g(!0)},children:[(0,l.jsxs)("svg",{className:"fill-current",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{d:"M13.2875 0.506226H2.7125C1.75625 0.506226 0.96875 1.29373 0.96875 2.24998V15.75C0.96875 16.7062 1.75625 17.5219 2.74063 17.5219H13.3156C14.2719 17.5219 15.0875 16.7344 15.0875 15.75V2.24998C15.0313 1.29373 14.2438 0.506226 13.2875 0.506226ZM13.7656 15.75C13.7656 16.0312 13.5406 16.2562 13.2594 16.2562H2.7125C2.43125 16.2562 2.20625 16.0312 2.20625 15.75V2.24998C2.20625 1.96873 2.43125 1.74373 2.7125 1.74373H13.2875C13.5688 1.74373 13.7938 1.96873 13.7938 2.24998V15.75H13.7656Z",fill:""}),l.jsx("path",{d:"M11.7965 2.6156H8.73086C8.22461 2.6156 7.80273 3.03748 7.80273 3.54373V7.25623C7.80273 7.76248 8.22461 8.18435 8.73086 8.18435H11.7965C12.3027 8.18435 12.7246 7.76248 12.7246 7.25623V3.5156C12.6965 3.03748 12.3027 2.6156 11.7965 2.6156ZM11.4309 6.8906H9.06836V3.88123H11.4309V6.8906Z",fill:""}),l.jsx("path",{d:"M3.97773 4.35938H6.03086C6.36836 4.35938 6.67773 4.07812 6.67773 3.7125C6.67773 3.34687 6.39648 3.09375 6.03086 3.09375H3.94961C3.61211 3.09375 3.30273 3.375 3.30273 3.74063C3.30273 4.10625 3.61211 4.35938 3.97773 4.35938Z",fill:""}),l.jsx("path",{d:"M3.97773 7.9312H6.03086C6.36836 7.9312 6.67773 7.64995 6.67773 7.28433C6.67773 6.9187 6.39648 6.63745 6.03086 6.63745H3.94961C3.61211 6.63745 3.30273 6.9187 3.30273 7.28433C3.30273 7.64995 3.61211 7.9312 3.97773 7.9312Z",fill:""}),l.jsx("path",{d:"M12.0789 10.2374H3.97891C3.64141 10.2374 3.33203 10.5187 3.33203 10.8843C3.33203 11.2499 3.61328 11.5312 3.97891 11.5312H12.0789C12.4164 11.5312 12.7258 11.2499 12.7258 10.8843C12.7258 10.5187 12.4164 10.2374 12.0789 10.2374Z",fill:""}),l.jsx("path",{d:"M12.0789 13.8093H3.97891C3.64141 13.8093 3.33203 14.0906 3.33203 14.4562C3.33203 14.8218 3.61328 15.1031 3.97891 15.1031H12.0789C12.4164 15.1031 12.7258 14.8218 12.7258 14.4562C12.7258 14.0906 12.4164 13.8093 12.0789 13.8093Z",fill:""})]}),"Plan de Estudio",l.jsx("svg",{className:`absolute right-4 top-1/2 -translate-y-1/2 fill-current ${t&&"rotate-180"}`,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.41107 6.9107C4.73651 6.58527 5.26414 6.58527 5.58958 6.9107L10.0003 11.3214L14.4111 6.91071C14.7365 6.58527 15.2641 6.58527 15.5896 6.91071C15.915 7.23614 15.915 7.76378 15.5896 8.08922L10.5896 13.0892C10.2641 13.4147 9.73651 13.4147 9.41107 13.0892L4.41107 8.08922C4.08563 7.76378 4.08563 7.23614 4.41107 6.9107Z",fill:""})})]}),l.jsx("div",{className:`translate transform overflow-hidden ${!t&&"hidden"}`,children:(0,l.jsxs)("ul",{className:"mt-4 mb-5.5 flex flex-col gap-2.5 pl-6",children:[l.jsx("li",{children:l.jsx(o.default,{href:"/estudiante/plan-de-estudio",className:`group relative flex items-center gap-2.5 rounded-md px-4 font-medium text-bodydark2 duration-300 ease-in-out hover:text-white ${"/estudiante/plan-de-estudio"===a&&"text-white"}`,children:"Materias del Plan"})}),l.jsx("li",{children:l.jsx(o.default,{href:"/estudiante/correlativas-cursado",className:`group relative flex items-center gap-2.5 rounded-md px-4 font-medium text-bodydark2 duration-300 ease-in-out hover:text-white ${"/estudiante/correlativas-cursado"===a&&"text-white"} `,children:"Correlatividad para cursar"})}),l.jsx("li",{children:l.jsx(o.default,{href:"/estudiante/correlativas-examenes",className:`group relative flex items-center gap-2.5 rounded-md px-4 font-medium text-bodydark2 duration-300 ease-in-out hover:text-white ${"/estudiante/correlativas-examenes"===a&&"text-white"}`,children:"Correlatividad para rendir"})})]})})]})}),l.jsx(u,{activeCondition:a.includes("correlatividad"),children:(e,t)=>(0,l.jsxs)(r().Fragment,{children:[(0,l.jsxs)(o.default,{href:"#",className:`group relative flex items-center gap-2.5 rounded-sm px-4 py-2 font-medium text-bodydark1 duration-300 ease-in-out hover:bg-graydark dark:hover:bg-meta-4 ${("/estudiante/plan-de-estudio"===a||"/estudiante/correlatividad-cursado"===a||a.includes("/estudiante/correlatividad"))&&"bg-graydark dark:bg-meta-4"}`,onClick:t=>{t.preventDefault(),p?e():g(!0)},children:[(0,l.jsxs)("svg",{className:"fill-current",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{d:"M13.2875 0.506226H2.7125C1.75625 0.506226 0.96875 1.29373 0.96875 2.24998V15.75C0.96875 16.7062 1.75625 17.5219 2.74063 17.5219H13.3156C14.2719 17.5219 15.0875 16.7344 15.0875 15.75V2.24998C15.0313 1.29373 14.2438 0.506226 13.2875 0.506226ZM13.7656 15.75C13.7656 16.0312 13.5406 16.2562 13.2594 16.2562H2.7125C2.43125 16.2562 2.20625 16.0312 2.20625 15.75V2.24998C2.20625 1.96873 2.43125 1.74373 2.7125 1.74373H13.2875C13.5688 1.74373 13.7938 1.96873 13.7938 2.24998V15.75H13.7656Z",fill:""}),l.jsx("path",{d:"M11.7965 2.6156H8.73086C8.22461 2.6156 7.80273 3.03748 7.80273 3.54373V7.25623C7.80273 7.76248 8.22461 8.18435 8.73086 8.18435H11.7965C12.3027 8.18435 12.7246 7.76248 12.7246 7.25623V3.5156C12.6965 3.03748 12.3027 2.6156 11.7965 2.6156ZM11.4309 6.8906H9.06836V3.88123H11.4309V6.8906Z",fill:""}),l.jsx("path",{d:"M3.97773 4.35938H6.03086C6.36836 4.35938 6.67773 4.07812 6.67773 3.7125C6.67773 3.34687 6.39648 3.09375 6.03086 3.09375H3.94961C3.61211 3.09375 3.30273 3.375 3.30273 3.74063C3.30273 4.10625 3.61211 4.35938 3.97773 4.35938Z",fill:""}),l.jsx("path",{d:"M3.97773 7.9312H6.03086C6.36836 7.9312 6.67773 7.64995 6.67773 7.28433C6.67773 6.9187 6.39648 6.63745 6.03086 6.63745H3.94961C3.61211 6.63745 3.30273 6.9187 3.30273 7.28433C3.30273 7.64995 3.61211 7.9312 3.97773 7.9312Z",fill:""}),l.jsx("path",{d:"M12.0789 10.2374H3.97891C3.64141 10.2374 3.33203 10.5187 3.33203 10.8843C3.33203 11.2499 3.61328 11.5312 3.97891 11.5312H12.0789C12.4164 11.5312 12.7258 11.2499 12.7258 10.8843C12.7258 10.5187 12.4164 10.2374 12.0789 10.2374Z",fill:""}),l.jsx("path",{d:"M12.0789 13.8093H3.97891C3.64141 13.8093 3.33203 14.0906 3.33203 14.4562C3.33203 14.8218 3.61328 15.1031 3.97891 15.1031H12.0789C12.4164 15.1031 12.7258 14.8218 12.7258 14.4562C12.7258 14.0906 12.4164 13.8093 12.0789 13.8093Z",fill:""})]}),"Tramites",l.jsx("svg",{className:`absolute right-4 top-1/2 -translate-y-1/2 fill-current ${t&&"rotate-180"}`,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.41107 6.9107C4.73651 6.58527 5.26414 6.58527 5.58958 6.9107L10.0003 11.3214L14.4111 6.91071C14.7365 6.58527 15.2641 6.58527 15.5896 6.91071C15.915 7.23614 15.915 7.76378 15.5896 8.08922L10.5896 13.0892C10.2641 13.4147 9.73651 13.4147 9.41107 13.0892L4.41107 8.08922C4.08563 7.76378 4.08563 7.23614 4.41107 6.9107Z",fill:""})})]}),l.jsx("div",{className:`translate transform overflow-hidden ${!t&&"hidden"}`,children:l.jsx("ul",{className:"mt-4 mb-5.5 flex flex-col gap-2.5 pl-6",children:f?.map((e,t)=>l.jsx("li",{children:l.jsx("p",{className:" hover:text-primary",children:l.jsx("span",{onClick:async()=>{let t=await C(e.numero_cqr);t?window.open(t,"_blank"):alert("No se pudo obtener el certificado. Intente nuevamente.")},children:e.nombre_cer})})},`${e.nombre_cer}_${t}`))})})]})})]})]})})})]})},f=({sidebarOpen:e,setSidebarOpen:t})=>{let a=(0,n.usePathname)(),i=(0,s.useRef)(null),d=(0,s.useRef)(null),[x,h]=(0,s.useState)(!0);return(0,s.useEffect)(()=>{let a=({target:a})=>{d.current&&i.current&&(!e||d.current.contains(a)||i.current.contains(a)||t(!1))};return document.addEventListener("click",a),()=>document.removeEventListener("click",a)}),(0,s.useEffect)(()=>{let a=({keyCode:a})=>{e&&27===a&&t(!1)};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)}),(0,s.useEffect)(()=>{localStorage.setItem("sidebar-expanded",x.toString()),x?document.querySelector("body")?.classList.add("sidebar-expanded"):document.querySelector("body")?.classList.remove("sidebar-expanded")},[x]),(0,l.jsxs)("aside",{ref:d,className:`absolute left-0 top-0 z-9999 flex h-screen w-72.5 flex-col overflow-y-hidden bg-black duration-300 ease-linear dark:bg-boxdark lg:static lg:translate-x-0 ${e?"translate-x-0":"-translate-x-full"}`,children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-2 px-6 py-5.5 lg:py-6.5",children:[(0,l.jsxs)(o.default,{href:"/",children:[l.jsx(c.default,{src:"/images/logo/logo_utn_white.png",width:220,height:32,priority:!0,alt:"Logo"}),l.jsx("h5",{className:"text-xs text-white",children:"SISTEMA DE AUTOGESTI\xd3N ACAD\xc9MICO"})]}),l.jsx("button",{ref:i,onClick:()=>t(!e),"aria-controls":"sidebar","aria-expanded":e,className:"block lg:hidden",children:l.jsx("svg",{className:"fill-current",width:"20",height:"18",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M19 8.175H2.98748L9.36248 1.6875C9.69998 1.35 9.69998 0.825 9.36248 0.4875C9.02498 0.15 8.49998 0.15 8.16248 0.4875L0.399976 8.3625C0.0624756 8.7 0.0624756 9.225 0.399976 9.5625L8.16248 17.4375C8.31248 17.5875 8.53748 17.7 8.76248 17.7C8.98748 17.7 9.17498 17.625 9.36248 17.475C9.69998 17.1375 9.69998 16.6125 9.36248 16.275L3.02498 9.8625H19C19.45 9.8625 19.825 9.4875 19.825 9.0375C19.825 8.55 19.45 8.175 19 8.175Z",fill:""})})})]}),l.jsx("div",{className:"no-scrollbar flex flex-col overflow-y-auto duration-300 ease-linear",children:l.jsx("nav",{className:"mt-5 py-4 px-4 lg:mt-9 lg:px-6",children:(0,l.jsxs)("div",{children:[l.jsx("h3",{className:"mb-4 ml-4 text-sm font-semibold text-bodydark2",children:"MEN\xda"}),(0,l.jsxs)("ul",{className:"mb-6 flex flex-col gap-1.5",children:[l.jsx(u,{activeCondition:"/"===a||a.includes("/docente/materias-dictadas"),children:(e,t)=>(0,l.jsxs)(r().Fragment,{children:[(0,l.jsxs)(o.default,{href:"#",className:`group relative flex items-center gap-2.5 rounded-sm px-4 py-2 font-medium text-bodydark1 duration-300 ease-in-out hover:bg-graydark dark:hover:bg-meta-4 ${("/docente/materias-dictadas"===a||a.includes("/docente/materias-dictadas"))&&"bg-graydark dark:bg-meta-4"}`,onClick:t=>{t.preventDefault(),x?e():h(!0)},children:[(0,l.jsxs)("svg",{className:"fill-current",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsxs)("g",{clipPath:"url(#clip0_130_9728)",children:[l.jsx("path",{d:"M3.45928 0.984375H1.6874C1.04053 0.984375 0.478027 1.51875 0.478027 2.19375V3.96563C0.478027 4.6125 1.0124 5.175 1.6874 5.175H3.45928C4.10615 5.175 4.66865 4.64063 4.66865 3.96563V2.16562C4.64053 1.51875 4.10615 0.984375 3.45928 0.984375ZM3.3749 3.88125H1.77178V2.25H3.3749V3.88125Z",fill:""}),l.jsx("path",{d:"M7.22793 3.71245H16.8748C17.2123 3.71245 17.5217 3.4312 17.5217 3.06558C17.5217 2.69995 17.2404 2.4187 16.8748 2.4187H7.22793C6.89043 2.4187 6.58105 2.69995 6.58105 3.06558C6.58105 3.4312 6.89043 3.71245 7.22793 3.71245Z",fill:""}),l.jsx("path",{d:"M3.45928 6.75H1.6874C1.04053 6.75 0.478027 7.28437 0.478027 7.95937V9.73125C0.478027 10.3781 1.0124 10.9406 1.6874 10.9406H3.45928C4.10615 10.9406 4.66865 10.4062 4.66865 9.73125V7.95937C4.64053 7.28437 4.10615 6.75 3.45928 6.75ZM3.3749 9.64687H1.77178V8.01562H3.3749V9.64687Z",fill:""}),l.jsx("path",{d:"M16.8748 8.21252H7.22793C6.89043 8.21252 6.58105 8.49377 6.58105 8.8594C6.58105 9.22502 6.86231 9.47815 7.22793 9.47815H16.8748C17.2123 9.47815 17.5217 9.1969 17.5217 8.8594C17.5217 8.5219 17.2123 8.21252 16.8748 8.21252Z",fill:""}),l.jsx("path",{d:"M3.45928 12.8531H1.6874C1.04053 12.8531 0.478027 13.3875 0.478027 14.0625V15.8344C0.478027 16.4813 1.0124 17.0438 1.6874 17.0438H3.45928C4.10615 17.0438 4.66865 16.5094 4.66865 15.8344V14.0625C4.64053 13.3875 4.10615 12.8531 3.45928 12.8531ZM3.3749 15.75H1.77178V14.1188H3.3749V15.75Z",fill:""}),l.jsx("path",{d:"M16.8748 14.2875H7.22793C6.89043 14.2875 6.58105 14.5687 6.58105 14.9344C6.58105 15.3 6.86231 15.5812 7.22793 15.5812H16.8748C17.2123 15.5812 17.5217 15.3 17.5217 14.9344C17.5217 14.5687 17.2123 14.2875 16.8748 14.2875Z",fill:""})]}),l.jsx("defs",{children:l.jsx("clipPath",{id:"clip0_130_9728",children:l.jsx("rect",{width:"18",height:"18",fill:"white"})})})]}),"Cursado",l.jsx("svg",{className:`absolute right-4 top-1/2 -translate-y-1/2 fill-current ${t&&"rotate-180"}`,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.41107 6.9107C4.73651 6.58527 5.26414 6.58527 5.58958 6.9107L10.0003 11.3214L14.4111 6.91071C14.7365 6.58527 15.2641 6.58527 15.5896 6.91071C15.915 7.23614 15.915 7.76378 15.5896 8.08922L10.5896 13.0892C10.2641 13.4147 9.73651 13.4147 9.41107 13.0892L4.41107 8.08922C4.08563 7.76378 4.08563 7.23614 4.41107 6.9107Z",fill:""})})]}),l.jsx("div",{className:`translate transform overflow-hidden ${!t&&"hidden"}`,children:l.jsx("ul",{className:"mt-4 mb-5.5 flex flex-col gap-2.5 pl-6",children:l.jsx("li",{children:l.jsx(o.default,{href:"materias-que-dicta",className:`group relative flex items-center gap-2.5 rounded-md px-4 font-medium text-bodydark2 duration-300 ease-in-out hover:text-white ${"docente/materias-dictadas"===a&&"text-white"}`,children:"Materias dictadas"})})})})]})}),l.jsx(u,{activeCondition:"/"===a||a.includes("docente/tribunales-que-integra"),children:(e,t)=>(0,l.jsxs)(r().Fragment,{children:[(0,l.jsxs)(o.default,{href:"#",className:`group relative flex items-center gap-2.5 rounded-sm px-4 py-2 font-medium text-bodydark1 duration-300 ease-in-out hover:bg-graydark dark:hover:bg-meta-4 ${("docente/tribunales-que-integra"===a||a.includes("docente/tribunales-que-integra"))&&"bg-graydark dark:bg-meta-4"}`,onClick:t=>{t.preventDefault(),x?e():h(!0)},children:[l.jsx("svg",{className:"fill-current",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M15.7499 2.9812H14.2874V2.36245C14.2874 2.02495 14.0062 1.71558 13.6405 1.71558C13.2749 1.71558 12.9937 1.99683 12.9937 2.36245V2.9812H4.97803V2.36245C4.97803 2.02495 4.69678 1.71558 4.33115 1.71558C3.96553 1.71558 3.68428 1.99683 3.68428 2.36245V2.9812H2.2499C1.29365 2.9812 0.478027 3.7687 0.478027 4.75308V14.5406C0.478027 15.4968 1.26553 16.3125 2.2499 16.3125H15.7499C16.7062 16.3125 17.5218 15.525 17.5218 14.5406V4.72495C17.5218 3.7687 16.7062 2.9812 15.7499 2.9812ZM1.77178 8.21245H4.1624V10.9968H1.77178V8.21245ZM5.42803 8.21245H8.38115V10.9968H5.42803V8.21245ZM8.38115 12.2625V15.0187H5.42803V12.2625H8.38115ZM9.64678 12.2625H12.5999V15.0187H9.64678V12.2625ZM9.64678 10.9968V8.21245H12.5999V10.9968H9.64678ZM13.8374 8.21245H16.228V10.9968H13.8374V8.21245ZM2.2499 4.24683H3.7124V4.83745C3.7124 5.17495 3.99365 5.48433 4.35928 5.48433C4.7249 5.48433 5.00615 5.20308 5.00615 4.83745V4.24683H13.0499V4.83745C13.0499 5.17495 13.3312 5.48433 13.6968 5.48433C14.0624 5.48433 14.3437 5.20308 14.3437 4.83745V4.24683H15.7499C16.0312 4.24683 16.2562 4.47183 16.2562 4.75308V6.94683H1.77178V4.75308C1.77178 4.47183 1.96865 4.24683 2.2499 4.24683ZM1.77178 14.5125V12.2343H4.1624V14.9906H2.2499C1.96865 15.0187 1.77178 14.7937 1.77178 14.5125ZM15.7499 15.0187H13.8374V12.2625H16.228V14.5406C16.2562 14.7937 16.0312 15.0187 15.7499 15.0187Z",fill:""})}),"Ex\xe1menes",l.jsx("svg",{className:`absolute right-4 top-1/2 -translate-y-1/2 fill-current ${t&&"rotate-180"}`,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.41107 6.9107C4.73651 6.58527 5.26414 6.58527 5.58958 6.9107L10.0003 11.3214L14.4111 6.91071C14.7365 6.58527 15.2641 6.58527 15.5896 6.91071C15.915 7.23614 15.915 7.76378 15.5896 8.08922L10.5896 13.0892C10.2641 13.4147 9.73651 13.4147 9.41107 13.0892L4.41107 8.08922C4.08563 7.76378 4.08563 7.23614 4.41107 6.9107Z",fill:""})})]}),l.jsx("div",{className:`translate transform overflow-hidden ${!t&&"hidden"}`,children:l.jsx("ul",{className:"mt-4 mb-5.5 flex flex-col gap-2.5 pl-6",children:l.jsx("li",{children:l.jsx(o.default,{href:"/docente/tribunales-que-integra",className:`group relative flex items-center gap-2.5 rounded-md px-4 font-medium text-bodydark2 duration-300 ease-in-out hover:text-white ${"/docente/tribunales-que-integra"===a&&"text-white"}`,children:"Tribunales que integra"})})})})]})})]})]})})})]})};var C=a(79971),p=a(69450);function g({children:e}){let[t,a]=(0,s.useState)(!1),[r,o]=(0,s.useState)(!0),{user:c,getUser:u,logout:h}=(0,x.a)(),[g,v]=(0,s.useState)("Active"),{push:j}=(0,n.useRouter)();(0,d.Yp)({onIdle:()=>{v("Idle")},onActive:()=>{v("Active")},timeout:3e5,throttle:500});let w=null;return c?.currentUser?.role===p.G7.Estudiante?w=m:c?.currentUser?.role===p.G7.Docente&&(w=f),l.jsx("html",{suppressHydrationWarning:!0,lang:"en",children:l.jsx("body",{children:l.jsx("div",{className:"dark:bg-boxdark-2 dark:text-bodydark",children:r?l.jsx(i.Z,{mensaje:"Cargando informaci\xf3n"}):(0,l.jsxs)("div",{className:"flex h-screen overflow-hidden",children:[w&&l.jsx(w,{sidebarOpen:t,setSidebarOpen:a}),(0,l.jsxs)("div",{className:"relative flex flex-1 flex-col overflow-y-auto overflow-x-hidde w-full",children:[l.jsx(C.Z,{sidebarOpen:t,setSidebarOpen:a}),l.jsx("main",{children:l.jsx("div",{className:"mx-auto max-w-screen-2xl p-4 md:p-6 2xl:p-10",children:e})})]})]})})})})}},96266:(e,t,a)=>{a.d(t,{Z:()=>l});let l=(0,a(68570).createProxy)(String.raw`C:\DISCOD\PROYECTOS\SYSACAD_UI\sysacad_ui\layouts\dashboard.tsx#default`)}}; |