PageSourceSearch

https://niaefeup.pt/_app/immutable/nodes/7.BEsLVUpS.js

js niaefeup.pt collected 2026-10-02 07:02:05 UTC 5,997 bytes, 1 lines download raw bytes

1import{A as e,B as t,Ct as n,Dt as r,N as i,Y as a,_t as o,a as s,et as c,gt as l,j as u,k as d,m as f,nt as p,tt as m,ut as h}from"../chunks/D7R0R1WC.js";import"../chunks/xihTtKlq.js";import{t as g}from"../chunks/D0JJQXR_.js";import{n as _,t as v}from"../chunks/sxrVSQSj.js";import{t as y}from"../chunks/4mu8HQ17.js";var b=[{id:1,title:`Jantar de Curso`,description:`Momento de convívio entre estudantes do curso. Bebida à descrição, buffet e boas vibes.`,slug:`jantar-de-curso`,image:`/api_images/events/jantar_de_curso_1.png`,category:`Social`},{id:2,title:`Churrasco de Informática`,description:`Convívio e churrasco para os estudantes de Engenharia Informática.`,slug:`churrasco-de-informatica`,image:`/api_images/events/churrasco.jpg`,category:`Social`},{id:3,title:`SINF - Semana de Informática`,description:`A Semana de Informática (SINF), organizada pelo NI, foi criada com o intuito de permitir aos participantes desenvolver as suas capacidades nas diversas áreas da Informática, promovendo a sua interação com o mundo empresarial através de eventos sociais.`,slug:`sinf-semana-de-informatica`,image:`/api_images/events/sinf_2025.jpg`,category:`Tecnologia`},{id:4,title:`Sessão Erasmus`,description:`Evento dedicado a explorar a experiência de outros colegas em Erasmus e esclarecimento de dúvidas.`,slug:`sessao-erasmus`,image:`/api_images/events/sessao_erasmus.jpg`,category:`Educação`},{id:5,title:`Workshop Python`,description:`Workshop prático focado em introdução e ferramentas de programação em Python com intuito de ajudar e orientar caloiros.`,slug:`workshop-python`,image:`/api_images/events/workshop_1.png`,category:`Tecnologia`},{id:6,title:`Mostra Mestrados`,description:`Evento onde os estudantes dos vários mestrados falam das suas experiências no curso e esclarecimento de dúvidas.`,slug:`mostra-mestrados`,image:`/api_images/events/mestrados.jpg`,category:`Educação`},{id:7,title:`Rally Tascas`,description:`Rally das tascas tradicional do NIAEFEUP.`,slug:`rally-tascas`,image:`/api_images/events/rally_tascas.jpg`,category:`Social`},{id:8,title:`Jantar de Gala`,description:`Jantar de Gala do NIAEFEUP para celebrar o ano e a comunidade.`,slug:`jantar-de-gala`,image:`/api_images/events/jantar_de_gala.jpg`,category:`Social`}],x=r({load:()=>S}),S=async({fetch:e})=>({events:b,hasPerms:await y(e)}),C=i(`<p class="z-20 mx-auto w-full max-w-[80%] overflow-hidden text-ellipsis whitespace-nowrap text-center text-xs text-gray-100 sm:text-xs md:text-sm lg:text-base xl:text-lg"> </p>`),w=i(`<p class="z-20 mx-auto w-full max-w-[80%] truncate text-center text-xs text-gray-100"> </p>`),T=i(`<div class="group relative box-content flex h-full w-full justify-center md:shadow-black/[.58] md:text-shadow" data-testid="event-hexagon"><div class="flex w-full flex-col content-center justify-center"><!> <div class="relative z-20 my-1.5 w-full"><div aria-hidden="true" class="pointer-events-none absolute -inset-1 opacity-100 transition-opacity duration-100 ease-out sm:opacity-0 sm:group-hover:opacity-100"><span class="absolute inset-0 border-2 border-taupe-200"></span> <span class="absolute inset-1 bg-taupe-200"></span></div> <p class="relative break-words text-center text-sm font-semibold text-rose-950 sm:text-sm sm:text-gray-100 sm:group-hover:text-rose-950 sm:group-hover:text-shadow-none md:text-base lg:text-lg xl:text-xl"> </p></div> <!></div> <div class="absolute inset-0 z-10 h-full w-full bg-vivid-red-950/62 text-lg"></div> <img alt="Miniatura do evento" class="absolute inset-0 z-0 h-full w-full object-cover"/></div>`);function E(r,i){o(i,!0);let m=s(i,`orientation`,3,`vertical`),g=e=>{if(e instanceof Date)return e;let t=e.match(/^(\d{2})-(\d{2})-(\d{4}) (\d{2}):(\d{2})$/);if(t){let[,e,n,r,i,a]=t;return new Date(`${r}-${n}-${e}T${i}:${a}`)}return new Date(e.replace(` `,`T`))},v=()=>{if(!i.data.dateInterval?.startDate||!i.data.dateInterval?.endDate||i.data.dateInterval.startDate===`TBD`)return``;let e=g(i.data.dateInterval.startDate),t=g(i.data.dateInterval.endDate);if(isNaN(e.getTime())||isNaN(t.getTime()))return``;let n=e=>e.toLocaleDateString(`pt`,{day:`numeric`,month:`short`}).replace(/\./g,``).replace(/ de /g,` `);return`${n(e)} – ${n(t)}`};_(r,{get orientation(){return m()},children:(r,o)=>{var s=T(),l=c(s),m=c(l),g=t=>{var r=C(),i=c(r,!0);n(r),a(t=>e(i,t),[()=>v()]),u(t,r)},_=h(()=>v());d(m,e=>{t(_)&&e(g)});var y=p(m,2),b=p(c(y),2),x=c(b,!0);n(b),n(y);var S=p(y,2),E=t=>{var r=w(),o=c(r,!0);n(r),a(()=>{f(r,`title`,i.data.location),e(o,i.data.location)}),u(t,r)};d(S,e=>{i.data.location&&e(E)}),n(l);var D=p(l,4);n(s),a(()=>{e(x,i.data.title),f(D,`src`,i.data.image||`/images/ni_logo.png`)}),u(r,s)},$$slots:{default:!0}}),l()}var D=i(`<div class="my-8 flex w-5/6 justify-end sm:my-6 md:my-6 lg:mb-12 xl:mb-12 2xl:mb-12"><a href="/events/create"><!></a></div>`),O=i(`<div class="py-12 text-center"><p class="text-gray-400">Nenhum evento encontrado</p></div>`),k=i(`<div class="w-full md:hidden"><!></div> <div class="hidden w-full md:block"><!></div>`,1),A=i(`<section><div class="flex w-full flex-col items-center"><h1 class="my-2 text-center font-source-code text-xl text-white md:my-4 md:text-3xl"><span>&lt;</span> <strong>Eventos</strong> <span>/&gt;</span></h1> <!> <div class="w-full max-w-7xl px-4 md:pt-10 md:px-20 lg:px-16"><!></div></div></section>`);function j(e,r){o(r,!0);let i=h(()=>r.data.hasPerms),a=h(()=>r.data.events);var s=A(),f=c(s),_=p(c(f),2),y=e=>{var t=D(),r=c(t);g(c(r),{color:`secondary`,hoverColor:`red`,width:`small`,text:`Novo Evento`}),n(r),n(t),u(e,t)};d(_,e=>{t(i)&&e(y)});var b=p(_,2),x=c(b),S=e=>{u(e,O())},C=e=>{var r=k(),i=m(r);v(c(i),{get items(){return t(a)},cols:1,orientation:`vertical`,gap:`medium`,get component(){return E}}),n(i);var o=p(i,2);v(c(o),{get items(){return t(a)},cols:4,orientation:`vertical`,gap:`medium`,get component(){return E}}),n(o),u(e,r)};d(x,e=>{t(a).length===0?e(S):e(C,-1)}),n(b),n(f),n(s),u(e,s),l()}export{j as component,x as universal};

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.