PageSourceSearch

https://ec2u.eu/_next/static/chunks/app/search/page-ce302a602e0f9ce3.js

js ec2u.eu collected 2026-10-02 06:00:18 UTC 12,552 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[959],{5769:(e,t,r)=>{"use strict";r.d(t,{Ey:()=>l,G0:()=>d,S$:()=>s,kx:()=>a,oW:()=>c,wp:()=>i,yZ:()=>n,zf:()=>o});let a=!1,l=[{label:"Research projects",value:"project"},{label:"Work packages",value:"workpackage"},{label:"Resources",value:"resource"},{label:"Masters",value:"master"},{label:"Organisations",value:"organisation"},{label:"People",value:"profile"},{label:"Blog posts",value:"blog_post"},{label:"Pages",value:"editorial_page"}],s={default:4,1280:3,720:2,500:1},i={default:3,1280:3,720:2,500:1},n={default:2,1280:2,720:2,500:1},o={default:3,1280:2,720:2,500:1},d="32",c="32"},7689:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(51256).A)("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]])},26795:(e,t,r)=>{"use strict";r.d(t,{default:()=>u});var a=r(35306),l=r(68199),s=r(40433),i=r(52165),n=r(31355),o=r(32532),d=r(5218),c=r(42936);let u=()=>{let e=(0,c.useSearchParams)().get("q")||"",t=(0,d.r)({currentTitle:"Search",navVoices:[]});return(0,a.jsx)("div",{className:"border-t border-b border-neutral-90 py-4 md:py-3 lg:py-4",children:(0,a.jsxs)(s.m,{children:[(0,a.jsx)(n.$,{items:t}),(0,a.jsx)("div",{className:"mt-10 lg:mt-[128px] mb-20",children:(0,a.jsx)(o.p,{disabled:!0,placeholder:"Start typing...",defaultValue:e,className:"border-0 border-b placeholder:text-neutral-05 font-medium rounded-none bg-transparent text-10xl! lg:text-12xl! h-full outline-0 focus:outline-0 ring-0!"})}),(0,a.jsx)(l.A,{children:[1,1,1,1,1,1,1,1,1,1,1,1,1,1,11,1].map((e,t)=>(0,a.jsx)(i.A,{hasImage:t%2==0},t))})]})})}},27928:(e,t,r)=>{"use strict";r.d(t,{$:()=>d});var a=r(35306),l=r(82274),s=r(44420),i=r(11516),n=r(53907);let o=(0,i.F)("cursor-pointer disabled:opacity-50 inline-flex items-center justify-center gap-2 text-sm lg:text-md ring-offset-background transition-all duration-100 ease-in-out focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none [&_svg]:pointer-events-none  [&_svg]:shrink-0",{variants:{size:{sm:"py-[6px] px-3",md:"py-2 px-3",icon:"p-2"},variant:{outline:"rounded-[4px] border border-primary-70 text-primary-70 hover:text-primary-80 hover:border-primary-80 font-bold [&.dark]:border-white [&.dark]:text-white hover:[&.dark]:text-primary-10 hover:[&.dark]:border-primary-10",filled:"rounded-[4px] bg-primary-70 text-white hover:bg-primary-80 font-bold [&.dark]:bg-white [&.dark]:text-primary-70 hover:[&.dark]:bg-primary-10 hover:[&.dark]:text-primary-80",raised:"text-primary-70 hover:text-primary-80 [&.dark]:text-white hover:[&.dark]:text-primary-10 "},mode:{light:"light",dark:"dark"}},defaultVariants:{variant:"filled",size:"md",mode:"light"}}),d=l.forwardRef((e,t)=>{let{className:r,size:l,variant:i,mode:d,asChild:c=!1,...u}=e,x=c?s.DX:"button";return(0,a.jsx)(x,{className:(0,n.cn)(o({size:l,variant:i,className:r,mode:d})),ref:t,...u})});d.displayName="Button"},32532:(e,t,r)=>{"use strict";r.d(t,{p:()=>s});var a=r(35306);r(82274);var l=r(53907);function s(e){let{className:t,type:r,...s}=e;return(0,a.jsx)("input",{type:r,"data-slot":"input",className:(0,l.cn)("file:text-foreground placeholder:text-muted-foreground selection:text-primary-foreground border-input flex h-9 w-full min-w-0 rounded-[32px] border bg-neutral-95 px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 aria-invalid:border-destructive text-caption!",t),...s})}},55386:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var a=r(82274);let l=e=>(0,a.useMemo)(()=>{var t,r,a,l,s,i;if(!e)return{imageUrl:null,documentUrl:null};let n=(null==(r=e.field_media_image)||null==(t=r.image_style_uri)?void 0:t.wide)||null,o=n?n.replace(/^https?:\/\/ec2u\.eu/,""):null,d=(null==(l=e.field_media_image)||null==(a=l.uri)?void 0:a.url)||null;return{imageUrl:o||d,documentUrl:(null==(i=e.field_media_document)||null==(s=i.uri)?void 0:s.url)||null}},[e])},70071:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(51256).A)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},71631:(e,t,r)=>{"use strict";r.d(t,{default:()=>$});var a=r(35306),l=r(9375),s=r(96436),i=r(8568),n=r(77826),o=r(23262),d=r(62779),c=r(84770),u=r(15362);let x=e=>{let{type:t,payload:r}=e;return"node--workpackage"===t?(0,a.jsx)(l.A,{item:r}):"node--profile"===t?(0,a.jsx)(s.A,{item:r}):"node--editorial_page"===t?(0,a.jsx)(i._,{item:r}):"node--blog_post"===t?(0,a.jsx)(n.z,{item:r}):"node--organisation"===t?(0,a.jsx)(o.A,{item:r}):"node--resource"===t?(0,a.jsx)(u.z,{item:r}):"node--project"===t?(0,a.jsx)(d.h,{item:r}):"node--master"===t?(0,a.jsx)(c.z,{item:r}):(0,a.jsxs)("p",{children:["not found ",r.type]})};var m=r(68199),p=r(40433),h=r(8809),f=r(50466),g=r(60605);let v=(0,r(51256).A)("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);var b=r(23117);let y=e=>{let{options:t,activeOption:r,onFilterChange:l,disabled:s}=e,i=t.find(e=>e.value===r);return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"mb-0",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,a.jsx)(v,{className:"w-4 h-4 text-neutral-05"}),(0,a.jsx)("span",{className:"font-medium text-neutral-05",children:"Filter by content type:"})]}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:(0,a.jsx)(f.N,{mode:"wait",children:r?(0,a.jsx)(g.P.div,{initial:{opacity:0,scale:.8}
1,animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2,ease:"easeOut"},children:(0,a.jsxs)(h.E,{onClick:()=>!s&&l(""),variant:"outline",className:"px-2 py-1 uppercase cursor-pointer bg-primary border-primary text-white transition-colors flex items-center gap-2",children:[null==i?void 0:i.label,(0,a.jsx)(b.A,{className:"w-4 h-4"})]})},"active-filter"):(0,a.jsx)(g.P.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2,ease:"easeOut"},className:"flex flex-wrap gap-3",children:t.map((e,t)=>(0,a.jsx)(g.P.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.2,delay:.05*t,ease:"easeOut"},children:(0,a.jsx)(h.E,{onClick:()=>!s&&l(e.value),variant:"outline",className:"px-2 py-1 uppercase cursor-pointer hover:bg-primary hover:border-primary hover:text-white transition-colors",children:e.label})},e.value))},"all-filters")})})]})})};var j=r(91650),N=r(27928),k=r(31355),w=r(32532),A=r(5769),_=r(5218),S=r(16931),C=r(42936),z=r(82274),E=r(87964),P=r(44955),R=r(70071),H=r(7689),L=r(40647),U=r.n(L);let F=e=>{let{query:t,onClearSearch:r}=e;return(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center  bg-white rounded-xl border border-neutral-90 p-4 text-center",children:[(0,a.jsx)("div",{className:"w-12 h-12 rounded-full bg-muted flex items-center justify-center mb-6",children:(0,a.jsx)(P.A,{className:"w-6 h-6 text-muted-foreground"})}),(0,a.jsx)(E.H5,{className:"text-2xl font-semibold mb-2",children:"No results found"}),(0,a.jsxs)(E.HL,{className:"text-muted-foreground mb-6 max-w-md",children:["We couldn't find anything matching"," ",(0,a.jsx)("span",{className:"font-medium",children:t}),". Try adjusting your search."]}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3 mb-8",children:[(0,a.jsxs)(N.$,{size:"sm",onClick:r,variant:"outline",className:"flex items-center gap-2",children:[(0,a.jsx)(R.A,{className:"w-4 h-4"}),"Clear search"]}),(0,a.jsx)(N.$,{size:"sm",variant:"outline",className:"flex items-center gap-2 bg-transparent",asChild:!0,children:(0,a.jsxs)(U(),{href:"/",className:"flex items-center gap-2",children:[(0,a.jsx)(H.A,{className:"w-4 h-4"}),"Go to homepage"]})})]})]})};var M=r(26795),O=r(62252);function $(e){let{items:t,total:r,taxonomies:l}=e,s=(0,C.useSearchParams)(),i=s.get("q")||"",n=s.get("entity")||"",o=s.get("type")||"",[d,c]=(0,z.useState)(i),u=(0,C.useRouter)(),h=(0,_.r)({currentTitle:"Search",navVoices:[]}),[v,E]=(0,z.useTransition)(),[P,R]=(0,z.useState)(t);(0,z.useEffect)(()=>{c(i)},[i]),(0,z.useEffect)(()=>{let e=s.get("from");e&&parseInt(e)>0?R(e=>[...e,...t]):R(t)},[t,s]),(0,z.useEffect)(()=>{let e=setTimeout(()=>{d.trim()?u.push("/search?q=".concat(encodeURIComponent(d))):u.push("/search")},900);return()=>clearTimeout(e)},[d,u]);let H=()=>{c(""),u.push("/search")};return(0,a.jsx)(z.Suspense,{fallback:(0,a.jsx)(M.default,{}),children:(0,a.jsx)("div",{className:"border-t border-neutral-90 py-4 md:py-3 lg:py-4",children:(0,a.jsxs)(p.m,{children:[(0,a.jsx)(k.$,{items:h}),(0,a.jsx)("div",{className:"mt-10 lg:mt-[128px] mb-16",children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(w.p,{onChange:e=>{c(e.target.value)},placeholder:"Start typing...",value:d,className:"border-0 border-b placeholder:text-neutral-05 font-medium rounded-none bg-transparent text-10xl! lg:text-12xl! h-full outline-0 focus:outline-0 ring-0!"}),(0,a.jsx)(f.N,{children:d&&(0,a.jsx)(g.P.button,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2},onClick:H,className:"absolute top-1/2 right-0 -translate-y-1/2 text-neutral-05 hover:text-neutral-20 transition-colors",children:(0,a.jsx)(b.A,{className:"h-6 w-6"})})})]})}),(0,a.jsx)(j.A,{children:(0,a.jsx)(y,{options:A.Ey,activeOption:n,onFilterChange:e=>{u.push("/search?q=".concat(encodeURIComponent(i),"&entity=").concat(e))},filterLabel:"Entity"})}),Array.isArray(l)&&l.length>0&&(0,a.jsx)("div",{className:"mb-4",children:(0,a.jsx)(O.A,{options:l,activeOption:o,onFilterChange:e=>{let t=new URLSearchParams(s.toString());e?t.set("type",e):t.delete("type"),E(()=>{u.push("?".concat(t.toString()))})},filterLabel:"Type"})}),P.length>0&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(m.A,{children:P.map((e,t)=>(0,a.jsx)(x,{type:e.type,payload:e},t))})}),P.length<r&&(0,a.jsx)("div",{className:"col-span-full flex justify-center",children:(0,a.jsxs)(N.$,{disabled:v,onClick:()=>{let e=new URLSearchParams(s.toString()),t=P.length;e.set("from",t.toString()),E(()=>{u.push("?".concat(e.toString()),{scroll:!1})})},variant:"outline",children:["Load more",v&&(0,a.jsx)(S.A,{className:"ml-2 h-4 w-4 animate-spin"})]})}),i&&0===P.length&&(0,a.jsx)(F,{query:i,onClearSearch:H})]})})})}},79141:(e,t,r)=>{"use strict";r.d(t,{H$:()=>d,JR:()=>s,Nh:()=>c,Rm:()=>i,eC:()=>n});var a=r(5769),l=r(51892);l.env.FE_URL||a.kx;let s="https://data.ec2u.eu/events/",i="https://data.ec2u.eu",n="".concat(i,"/courses/"),o=l.env.API_BASE_URL||"https://ec2u.eu",d="".concat(o,"/api")||0,c=o},79481:(e,t,r)=>{Promise.resolve().then(r.bind(r,71631)),Promise.resolve().then(r.bind(r,26795))},87964:(e,t,r)=>{"use strict";r.d(t,{H2:()=>u,H3:()=>x,H4:()=>m,H5:()=>p,H6:()=>h,HL:()=>d,fz:()=>f,vw:()=>c});var a=r(35306),l=r(82274),s=r(12042);let i={h1:"text-10xl lg:text-12xl",h2:"text-8xl lg:text-11xl",h3:"text-7xl lg:text-9xl",h4:"text-6xl lg:text-7xl",h5:"text-4xl lg:text-5xl",h6:"text-2xl lg:text-3xl"},n={regular:"font-normal",medium:"font-medium",bold:"font-bold"};function o(e){let{variant:t="medium",size:r,as:l,className:o,...d}=e;return(0,a.jsx)(null!=l?l:r,{className:(0,s.A)(i[r],n[t],o),...d})}function d(e){let{variant:t="medium",as:r,className:l,...i}=e;return(0,a.jsx)(null!=r?r:"span",{className:(0,s.A)("text-sm lg:text-md",n[t],l),...i})}function c(e){let{variant:t="regular",as:r,className:l,...i}=e;return(0,a.jsx)(null!=r?r:"span",{className:(0,s.A)("text-xs lg:text-xs font-bold",l),...i})}function u(e){return(0,a.jsx)(o,{...e,size:"h2"})}function x(e){return(0,a.jsx)(o,{...e,size:"h3"})}function m(e){return(0,a.jsx)(o,{...e,size:"h4"})}function p(e){return(0,a.jsx)(o,{...e,size:"h5"})}function h(e){return(0,a.jsx)(o,{...e,size:"h6"})}function f(e){let{className:t,prose:r=!0,as:a="p",variant:i="regular",style:o,onClick:d,...c}=e;return l.createElement(a,{style:{...o},className:(0,s.A)("max-w-full text-lg! lg:text-xl! text-neutral-05",t,n[i],{"prose prose-light":r}),...c})}}},e=>{var t=t=>e(e.s=t);e.O(0,[836,647,714,997,69,486,523,448,621,358],()=>t(79481)),_N_E=e.O()}]);

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.