PageSourceSearch

https://www.ucalp.edu.ar/miucalp/build/assets/Dashboard-ChnhLoEp.js

js ucalp.edu.ar collected 2026-10-02 07:54:25 UTC 5,642 bytes, 1 lines download raw bytes

1import{j as e,r as m,a as b,y as f}from"./app-BZl21zSa.js";import{A as w}from"./AuthenticatedLayout-65-T7aJf.js";import"./ApplicationLogo-BYllIY3j.js";import"./transition-xllRY7Is.js";import"./Avatar-CifLqQ2Q.js";import"./urlHelper-l-vL0Rcp.js";import"./TopBar-CKlL9BGv.js";import"./index-Be81nlU3.js";import"./Modal-DbSps_B4.js";import"./dialog-DWi4MXZu.js";import"./TextInput-BXWAikdN.js";import"./PrimaryButton-BoPiYvtU.js";import"./SecondaryButton-D-WUXCbq.js";function j({service:t,className:i,...a}){return e.jsx(e.Fragment,{children:e.jsx("div",{className:`max-w-sm rounded-2xl overflow-hidden shadow-lg bg-white text-primario hover:bg-secundario hover:text-white ${i}`,...a,children:e.jsxs("div",{className:"px-6 py-4 pt-10",children:[e.jsx("div",{className:"font-bold text-xl mb-2",children:t.name}),e.jsx("p",{className:"text-base",children:t.description})]})})})}function v({service:t}){const i=()=>{const a=route("redirect.get",t.id);window.open(a,"_blank")};return e.jsxs("div",{className:"relative bg-primario text-white overflow-hidden rounded-xl mb-6",children:[e.jsx("div",{className:"absolute inset-0 bg-black opacity-10"}),e.jsx("div",{className:"relative px-6 py-8 md:px-12 md:py-12",children:e.jsxs("div",{className:"max-w-3xl mx-auto",children:[e.jsx("h1",{className:"text-2xl md:text-4xl font-bold mb-4",children:"¡hola! bienvenido a nuestra universidad"}),e.jsx("p",{className:"text-base md:text-lg mb-6 opacity-90",children:"Aquí comienza tu proceso de ingreso a la UCALP"}),e.jsxs("div",{className:"flex flex-col md:flex-row md:justify-between md:items-center space-y-3 md:space-y-0",children:[e.jsx("div",{className:"text-xs md:text-sm opacity-75 md:text-left",children:e.jsxs("div",{className:"space-x-4 md:space-x-0 md:space-y-1",children:[e.jsx("span",{className:"inline-block",children:"100% online"}),e.jsx("hr",{}),e.jsxs("span",{className:"inline-block md:block",children:["No estás solo en este camino, ",e.jsx("br",{})," te acompañamos en cada instancia."]})]})}),e.jsx("button",{onClick:i,className:"bg-amarillo text-white font-bold py-3 px-12 rounded-lg text-base hover:bg-gray-100 transition-colors duration-300 w-full md:w-auto md:ml-6",children:"Iniciar inscripción"})]})]})}),e.jsx("div",{className:"absolute top-0 right-0 w-20 h-20 bg-white opacity-5 rounded-full -translate-y-10 translate-x-10"}),e.jsx("div",{className:"absolute bottom-0 left-0 w-32 h-32 bg-white opacity-5 rounded-full translate-y-16 -translate-x-16"})]})}function H({auth:t,services:i,permissions:a,isGuest:r,requestedLogout:n}){const[x,l]=m.useState(!1);m.useEffect(()=>{if(n){l(!0);const s=new URL(window.location);s.searchParams.delete("intent"),window.history.replaceState({},"",s)}},[n]);const u=s=>{const g=route("redirect.get",s);window.open(g,"_blank")},h=()=>{f.post(route("logout"))},p=()=>{l(!1)},d=r&&i.some(s=>s.code==="admissions")&&t.user.ucalp_id===null,c=i.find(s=>s.code==="admissions"),o=d?i.filter(s=>s.code!=="admissions"):i;return e.jsxs(w,{user:t.user,header:e.jsxs("h2",{className:"font-semibold text-xl text-primario leading-tight",children:["Hola ",t.user.nickname,"!"]}),children:[e.jsx(b,{title:"Inicio"}),e.jsx("div",{className:"py-12",children:e.jsxs("div",{className:"max-w-7xl mx-auto sm:px-6 lg:px-8",children:[d&&c&&e.jsx(v,{service:c}),Array.isArray(o)&&o.length>0?e.jsx("div",{className:"grid gap-4 grid-flow-row-dense md:grid-cols-4 md:grid-rows-4 ",children:o.map(s=>e.jsx(j,{service:s,className:"hover:cursor-pointer",onClick:()=>u(s.id)},s.code))}):!r&&e.jsx("div",{children:"En este momento no hay servicios disponibles."}),t.user.ucalp_id===null&&e.jsx("div",{className:"mb-6 text-center",children:e.jsxs("p",{className:"text-sm text-gray-600",children:["¿Ya eras estudiante, docente o personal de UCALP?"," ",e.jsx("a",{href:route("profile.edit")+"#link-account",className:"text-primario hover:text-gray-800 underline transition-colors duration-200",children:"Vinculá tu cuenta aquí"})," ","si no ves tus accesos a Zona Interactiva, Campus o Biblioteca."]})})]})}),x&&e.jsx("div",{className:"fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full z-50",children:e.jsx("div",{className:"relative top-20 mx-auto p-5 border w-96 shadow-lg rounded-md bg-white",children:e.jsxs("div",{className:"mt-3 text-center",children:[e.jsx("div",{className:"mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-yellow-100",children:e.jsx("svg",{className:"h-6 w-6 text-yellow-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})})}),e.jsx("h3",{className:"text-lg leading-6 font-medium text-gray-900 mt-4",children:"Confirmar Cierre de Sesión"}),e.jsx("div",{className:"mt-2 px-7 py-3",children:e.jsx("p",{className:"text-sm text-gray-500",children:"¿Estás seguro que quieres cerrar sesión? Se cerrará tu sesión en todos los servicios conectados."})}),e.jsxs("div",{className:"items-center px-4 py-3",children:[e.jsx("button",{onClick:h,className:"px-4 py-2 bg-red-500 text-white text-base font-medium rounded-md w-full shadow-sm hover:bg-red-600 focus:outline-none focus:ring-2 focus:ring-red-300 mb-2",children:"Sí, cerrar sesión"}),e.jsx("button",{onClick:p,className:"px-4 py-2 bg-gray-300 text-gray-700 text-base font-medium rounded-md w-full shadow-sm hover:bg-gray-400 focus:outline-none focus:ring-2 focus:ring-gray-300",children:"Cancelar"})]})]})})})]})}export{H as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.