"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[191,498,154,772,511],{6300:(me,Z,n)=>{n.d(Z,{g:()=>t});const t={article:"News",blog:"Blog",event:"Event",programme:"Programme",scholarship:"Scholarship"}},2559:(me,Z,n)=>{n.r(Z),n.d(Z,{default:()=>Q});var t=n(6109),o=n(3519),x=n(1224),p=n(5884),v=n(5861),k=n(1183),i=n(2294);const S=({image:u,title:J,copy:L})=>{const U=(0,i.Z)();return t.createElement(j,null,u&&t.createElement(H,null,t.createElement(M,{src:u.asset?.sys?.uri,alt:u.altText,width:360,height:240})),t.createElement(q,{$brandEbs:U},t.createElement(p.ZP,{as:"h3",$size:"4",$color:"black"},J),L&&t.createElement(k.ZP,{as:"p"},L)))},j=o.default.div` display: flex; flex-direction: column; `,H=o.default.div` height: 15rem; width: 100%; `,M=(0,o.default)(v.Z)` height: 15rem; object-fit: cover; object-position: center center; width: 100%; `,q=o.default.div` display: flex; width: 100%; height: 100%; padding: ${u=>u.theme.spacing.s} 0; flex-direction: column; align-items: flex-start; gap: ${u=>u.theme.spacing.s}; color: ${u=>u.theme.colors.neutral.black}; border-bottom: solid transparent ${u=>u.theme.spacing.xs}; border-bottom-color: ${u=>u.$brandEbs?u.theme.colors.green.shade:u.theme.colors.stone.shade}; @media ${u=>u.theme.mq.min.tablet} { padding: ${u=>u.theme.spacing.s}; } `,_=S,Q=({title:u,intro:J,cards:L})=>!L||!Array.isArray(L)?null:t.createElement(x.ZP,{id:"cardGrid",heading:u,lead:J,width:!1,background:"white",padding:!1,variant:"feature"},t.createElement(R,{length:L.length},L.map((U,te)=>t.createElement(_,{key:te,image:U.image,...U})))),R=o.default.div` display: flex; flex-direction: column; gap: ${u=>u.theme.spacing.l}; @media ${u=>u.theme.mq.min.tablet} { display: grid; grid-template-columns: repeat(2, 1fr); } @media ${u=>u.theme.mq.min.laptop} { grid-template-columns: repeat( ${u=>u.length&&u.length<4?u.length:4}, 1fr ); } `},4929:(me,Z,n)=>{n.r(Z),n.d(Z,{default:()=>qn});var t=n(6109),o=n(6641),x=n(5964),p=n(1224);const k=({anchorId:e="promo",heading:r,lead:l,cta:c})=>t.createElement(p.ZP,{id:e,heading:r,lead:l,seeMoreText:c?.label,seeMoreLink:c?.path,condensed:!0,width:!1,background:"white",padding:!1,variant:"feature"});var i=n(3519),S=n(1433);const j=(e,r)=>{const[l,c]=(0,t.useState)(!0),[a,m]=(0,t.useState)(!0),f=(0,t.useCallback)(()=>{e&&(e.scrollPrev(),r&&r(e))},[e,r]),E=(0,t.useCallback)(()=>{e&&(e.scrollNext(),r&&r(e))},[e,r]),h=(0,t.useCallback)(C=>{c(!C.canScrollPrev()),m(!C.canScrollNext())},[]);return(0,t.useEffect)(()=>{e&&(h(e),e.on("reInit",h).on("select",h))},[e,h]),{prevBtnDisabled:l,nextBtnDisabled:a,onPrevButtonClick:f,onNextButtonClick:E}},M=i.default.button` width: ${e=>e.theme.spacing.l}; height: ${e=>e.theme.spacing.l}; color: ${e=>e.theme.colors.neutral.white}; border: ${e=>e.theme.radius.m} solid transparent; border-color: ${e=>e.brandEbs?e.theme.colors.green.light:e.theme.colors.neutral.white}; background: ${e=>e.theme.colors.blue.dark}; appearance: none; &:disabled { opacity: 0.8; } &:hover { cursor: pointer; } `;var q=n(5492);const _=e=>{const r=(0,t.useRef)(0),l=(0,t.useCallback)(()=>{e&&(r.current=e.selectedScrollSnap())},[e]);return(0,t.useEffect)(()=>{if(e)return e.on("select",l),l(),()=>{e.off("select",l)}},[e,l]),r.current},Q=(e,r)=>{(0,t.useEffect)(()=>{e.current&&e.current.querySelectorAll("a").forEach(c=>{r?c.setAttribute("tabindex","-1"):c.removeAttribute("tabindex")})},[e,r])};var R=n(2294);S.Z.globalOptions={loop:!0};const u=({slides:e})=>{const[r,l]=(0,S.Z)(),{nextBtnDisabled:c,onNextButtonClick:a,prevBtnDisabled:m,onPrevButtonClick:f}=j(l),E=_(l),h="carousel-items",C=(0,R.Z)();return e?.length?t.createElement(J,{"aria-label":"Featured links","aria-roledescription":"carousel"},t.createElement(ue,null,t.createElement(s,{disabled:c,onClick:a,"aria-label":"Next slide","aria-controls":h,brandEbs:C},t.createElement(q.rx,{width:"2rem"})),t.createElement(ge,{disabled:m,onClick:f,"aria-label":"Previous slide","aria-controls":h,brandEbs:C},t.createElement(q.gf,{width:"2rem"}))),t.createElement("div",{ref:r},t.createElement(L,{id:h,"aria-live":"polite"},e.map((D,se)=>{const he=se+1+" of "+e.length,ce=E===se;return t.createElement(U,{key:D?.id,visible:ce,ariaLabel:he},D.slide)})))):null},J=i.default.section` overflow: hidden; position: relative; `,L=i.default.div` display: flex; `,U=({children:e,visible:r,ariaLabel:l})=>{const c=(0,t.useRef)(null);return Q(c,!r),t.createElement(te,{ref:c,"aria-label":l,role:"group","aria-roledescription":"slide"},e)},te=i.default.div` flex: 0 0 100%; min-width: 0; `,ue=i.default.div` @media ${e=>e.theme.mq.min.laptop} { position: absolute; z-index: 1; right: 0; top: 0; height: 100%; display: flex; padding: ${e=>e.theme.spacing.xxl}; flex-direction: column; justify-content: center; align-items: center; gap: ${e=>e.theme.spacing.xs}; background: ${e=>e.theme.colors.blue.dark}; } `,ie=(0,i.default)(M)` position: absolute; display: flex; justify-content: center; align-items: center; top: 6.25rem; @media ${e=>e.theme.mq.min.laptop} { position: initial; } `,ge=(0,i.default)(ie)` left: 0; `,s=(0,i.default)(ie)` right: 0; `,A=u;var P=n(5884),N=n(4666),O=n(5861);const G=({image:e,title:r,text:l,cta:c})=>{const a="white",m=(0,R.Z)();return t.createElement(d,null,e?t.createElement(ne,null,t.createElement(z,{src:e,alt:"",height:652,width:1100,loading:"lazy"})):null,t.createElement(y,null,t.createElement(g,null,t.createElement(V,{$color:m?"greenLight":"white",$size:"4",as:"p"},r),l?t.createElement(B,{$color:a,$size:"4 italic",as:"p"},l):null),c?t.createElement(N.ZP,{$variant:m?"greenOutline":"whiteOutline",path:c.path},c.label):null))},d=i.default.div` position: relative; display: flex; flex-direction: column; @media ${e=>e.theme.mq.min.laptop} { flex-direction: row; height: 40.75rem; } `,y=i.default.div` position: relative; display: flex; min-height: 20.1875rem; flex-direction: column; justify-content: space-between; gap: ${e=>e.theme.spacing.xs}; padding: ${e=>e.theme.spacing.l} ${e=>e.theme.spacing.m}; background: ${e=>e.theme.colors.blue.dark}; @media ${e=>e.theme.mq.min.laptop} { align-self: center; width: 29.5rem; height: 100%; max-height: 30.75rem; padding-top: ${e=>e.theme.spacing.xxl}; margin-left: ${e=>e.theme.spacing.l}; margin-top: ${e=>e.theme.spacing.l}; margin-bottom: ${e=>e.theme.spacing.l}; } `,g=i.default.div` display: flex; flex-direction: column; gap: ${e=>e.theme.spacing.xs}; `,B=(0,i.default)(P.ZP)` margin-bottom: 0; `,V=(0,i.default)(B)` @media ${e=>e.theme.mq.min.laptop} { font-size: 2.5rem; } `,ne=i.default.div` height: 15rem; overflow: hidden; @media ${e=>e.theme.mq.min.laptop} { position: absolute; width: 100%; height: 100%; } `,z=(0,i.default)(O.Z)` height: 100%; width: 100%; object-fit: cover; `,X=G,oe=({videos:e})=>{const r=e[0],l=e.filter((c,a)=>a>0);return t.createElement(Me,null,t.createElement(x.nk,{key:(0,o.Z)(),...r,size:"large",background:"transparent"}),l?.length?t.createElement(Se,{length:l.length},l.map(c=>t.createElement(x.nk,{key:(0,o.Z)(),...c,size:"medium",background:"transparent"}))):null)},Me=i.default.div` display: grid; gap: ${e=>e.theme.spacing.l} ${e=>e.theme.spacing.xs}; `,Se=i.default.div` display: grid; gap: ${e=>e.theme.spacing.xs}; @media ${e=>e.theme.mq.min.mobile} { grid-template-columns: repeat(2, 1fr); } @media ${e=>e.theme.mq.min.laptop} { grid-template-columns: repeat(${e=>e.length?e.length:4}, 1fr); } `,Te=oe;var ye=n(878),Ee=n(6681),ve=n(1420),ae=n(3327),le=n(5151);const Le=({anchorId:e="text",heading:r,content:l})=>t.createElement(p.ZP,{id:e,heading:r,width:!0,background:"white",padding:!1,variant:"feature"},t.createElement(le.default,{text:l}));var we=n(5838),re=n(5821),$e=n(2559),F=n(2036),be=n(113);const Be=({chatType:e,title:r,intro:l})=>{const c=e==="Staff"?F.VC.staff.link:F.VC.student.link,a=e==="Staff"?F.VC.staff.height:F.VC.student.height;return t.createElement(p.ZP,{heading:r,lead:l,id:"unibuddyChat",padding:!1,variant:"feature"},t.createElement(be.Z,{src:F.VC.source+c,title:F.VC.title+c,height:a}))};var De=n(3686),Ie=n(8102),We=n(1191),Re=n(9208),Ae=n(6204);const ee=({heading:e})=>t.createElement(p.ZP,{variant:"feature",id:"libcal",condensed:!0,padding:!1},t.createElement(Je,{as:"h2",$size:"2"},e),t.createElement(Qe,{id:"api_month_cid9127_iid854",className:"libcal-widget"},t.createElement(Ie.q,{script:[{type:"text/javascript",innerHTML:Ye}]})),t.createElement(Xe,{$variant:"darkOutline",openInNewWindow:!0,path:"https://hw.ac.libcal.com/calendar/studentevents?cid=9127&t=g&d=0000-00-00&cal=9127&inc=0"},We.tL.libcalCtaText)),He=(0,i.css)` // hide h3 .s-lc-ea-h3 { display: none; } // cell layout td { display: block; } @media ${e=>e.theme.mq.min.tablet} { td { display: table-cell; } } // title row .s-lc-ea-ttit { a { ${P.B8} color: ${e=>e.theme.colors.link.default}; &[target='_blank'] { ${Re.SX} } } @media ${e=>e.theme.mq.min.mobile} { td { background-color: transparent; } td:first-child { background-color: ${e=>e.theme.colors.bluebright.shade}; visibility: visible; } } } // date row .s-lc-ea-tdat { td:last-child { font-weight: bold; } } // description row .s-lc-ea-tdes { p { span { font-family: inherit !important; font-size: inherit !important; } + p { margin-top: ${e=>e.theme.spacing.xs}; } } a { color: ${e=>e.theme.colors.link.default} !important; } } // table table { .s-lc-ea-l { width: unset !important; } margin-bottom: ${e=>e.theme.spacing.xl}; border-bottom: 0 !important; border-top: 1px solid ${e=>e.theme.colors.bluebright.shade}; td:first-child { background-color: ${e=>e.theme.colors.bluebright.shade}; } td { border: ${e=>e.theme.colors.bluebright.shade}; } ${Ae.H} } `,Qe=i.default.div` ${He} max-width: ${e=>e.theme.grid.default.width}; margin-left: auto; margin-right: auto; @media ${e=>e.theme.mq.min.laptop} { padding-left: 1.5rem; // forces the widget to align with the canvas field contents } `,Je=(0,i.default)(P.ZP)` @media ${e=>e.theme.mq.min.laptop} { padding-left: ${e=>e.theme.spacing.s}; // forces the widget to align with the canvas field contents } `,Xe=(0,i.default)(N.ZP)` @media ${e=>e.theme.mq.min.mobile} { width: fit-content; } `,Ye=` (function (d) { "use strict"; var widgetScript = d.createElement("script"); widgetScript.id = "libcalEmbedScript"; widgetScript.src = "https://hw.ac.libcal.com/api_events.php?&m=month&cid=9127&audience=&c=&d=&tar=0&context=object&format=js"; var scriptTags = d.getElementsByTagName("script")[0]; if (d.getElementById("libcalEmbedScript")) { return; } scriptTags.parentNode.insertBefore(widgetScript, scriptTags); })(document)`,qe=ee;var _e=n(9457),je=n(4586),Oe=n(7664),W=n(8561),Ne=n(9522),et=n(1650),Fe=n(6300);const tt=({title:e,intro:r,manualBlogPostSelection:l,keywordsEBS:c,keywordsLocation:a,keywordsTheme:m,seeMore:f})=>{const E=(0,Ee.v9)(ve.i8.selectors.selectVersionStatus),[h,C]=(0,t.useState)(null),D=(0,R.Z)(),ce=(I=>Object.entries(I).filter(([w])=>w!=null).map(([w,K])=>({field:w,contains:K})))({keywordsLocation:a,keywordsTheme:m,keywordsEBS:c});(0,t.useEffect)(()=>{let I=!0;return(async()=>{let K=[];K=[W.Op.equalTo("sys.versionStatus",E),W.Op.equalTo("sys.contentTypeId","blog"),W.Op.or(...ce.flatMap(T=>T.contains?Array.isArray(T.contains)?T.contains.map(de=>W.Op.contains(T.field,de)):[W.Op.contains(T.field,T.contains)]:[]))];const b=new W.Query(...K);b.orderBy=W.OrderBy.desc("datePublished");const Ze=await(0,Ne.E)(Oe.cachedSearch.search(b,0));if(Ze.response&&I){const de=Ze.response.items.map(pe=>(0,Oe.mapJson)(pe,et.k));if(!l||l.length===0)C(de.slice(0,3));else{const pe=[...l,...de],Ge=[...new Map(pe.map(ke=>[ke.id,ke])).values()];C(Ge.slice(0,3))}}})(),()=>{I=!1}},[]);const Ce="greyShade";return h?t.createElement(p.ZP,{id:"blog",heading:e,lead:r,background:"white",width:!1,padding:!1,variant:"feature",seeMoreLink:f},t.createElement(nt,null,h.map((I,w)=>t.createElement(je.Z,{key:w,variant:Ce==="greyShade"?D?"darkBlueWithGreenBorder":"darkBlue":"white",taxonomy:Fe.g.blog,color:D?"green":"pink",padded:!0,...I})))):null},nt=i.default.div` display: flex; flex-wrap: wrap; justify-content: space-between; gap: ${e=>e.theme.spacing.s}; @media ${e=>e.theme.mq.min.laptop} { display: grid; grid-template-columns: 1fr 1fr 1fr; } `;var at=n(9531),lt=n(4162),rt=n(3621),it=n(7021),ot=n(1160);const st=({title:e,intro:r,manualProgrammeSelection:l,gcmEntry:c,keywordsLevel:a,keywordsLocation:m,subject:f,nonstandard:E})=>{const h=(0,Ee.v9)(ve.i8.selectors.selectVersionStatus),[C,D]=(0,t.useState)(null),ce=(I=>Object.entries(I).filter(([w])=>w!=null).map(([w,K])=>({field:w,contains:K})))({keywordsLevel:a,keywordsLocation:m,subject:f,nonstandard:E});(0,t.useEffect)(()=>{let I=!0;return(async()=>{let K=[];K=[W.Op.equalTo("sys.versionStatus",h),W.Op.equalTo("sys.contentTypeId","programme"),W.Op.or(...ce.flatMap(T=>T.contains?Array.isArray(T.contains)?T.contains.map(de=>W.Op.contains(T.field,de)):[W.Op.contains(T.field,T.contains)]:[]))];const b=new W.Query(...K);b.orderBy=W.OrderBy.asc("entryTitle");const Ze=await(0,Ne.E)(Oe.cachedSearch.search(b,0));if(Ze.response&&I){const de=Ze.response.items.map(pe=>(0,Oe.mapJson)(pe,ot.a));if(!l||l.length===0)D(de.slice(0,4));else{const pe=[...l],Ge=[...new Map(pe.map(ke=>[ke.id,ke])).values()];D(Ge.slice(0,4))}}})(),()=>{I=!1}});const Ce="stoneDark";return C?t.createElement(p.ZP,{id:"programmes",heading:e,lead:r,background:Ce,width:!1,padding:!1,variant:"feature"},t.createElement(ct,null,C.map((I,w)=>t.createElement(je.Z,{key:w,title:I.name,taxonomy:Fe.g.programme,...I,padded:!0})))):null},ct=i.default.div` display: flex; flex-direction: column; gap: ${e=>e.theme.spacing.xs}; @media ${e=>e.theme.mq.min.mobile} { display: grid; grid-template-columns: repeat(2, 1fr); } @media ${e=>e.theme.mq.min.tablet} { grid-template-columns: repeat(3, 1fr); } @media ${e=>e.theme.mq.min.desktop} { grid-template-columns: repeat(4, 1fr); } `;var dt=n(3230);const mt=({map:e})=>e?t.createElement(p.ZP,{id:"Maps",padding:!1,variant:"feature",background:"white",width:!1},t.createElement(ut,null,e.map((r,l)=>{const c=l%2===0?"right":"left";return t.createElement(dt.Z,{key:l,layout:c,...r})}))):null,ut=i.default.div` display: flex; flex-direction: column; gap: ${e=>e.theme.spacing.l}; @media ${e=>e.theme.mq.min.laptop} { gap: ${e=>e.theme.spacing.xl}; } @media ${e=>e.theme.mq.min.largeDesktop} { gap: ${e=>e.theme.spacing.xxl}; } `;var gt=n(8749),Y=n(1183),ht=n(7552),Ue=n(8223),pt=n(6841),ft=n(697);const yt=({image:e,header:r,name:l,jobTitle:c,description:a,additionalBio:m,link:f,staffType:E="academic"})=>{const h=m?m.split(` `):null;return t.createElement(Et,{$isLeader:!!r,$isAcademic:E==="academic"},e&&t.createElement(vt,{...e,$isLeader:!!r,$isAcademic:E==="academic"}),t.createElement($t,{$isLeader:!!r,$isAcademic:E==="academic"},r&&t.createElement(P.ZP,{as:"div",$size:"3",$color:"stoneDark"},r),t.createElement(bt,null,t.createElement(P.ZP,{as:"h3",$size:"4 serif",$color:"stoneDark"},l),c&&t.createElement(Y.ZP,{$color:"black",as:"p"},c)),a&&t.createElement(Y.ZP,{as:"p"},a),f?t.createElement(gt.Z,{link:f,label:l}):h?t.createElement(Ue.Z,{trigger:t.createElement(N.ZP,{as:"button",$variant:"textSmallBluePrimary"},pt.L.readMore,t.createElement(ht.Z,{width:"1em"})),variant:"text"},t.createElement(xt,null,t.createElement(P.ZP,{as:"span",$size:"4 serif"},ft.Z.biography,": ",l),t.createElement(Y.ZP,{as:"p"},a),h.map((C,D)=>D===0||C.length===0?null:t.createElement(Y.ZP,{as:"p",key:D},C)))):null))},Et=i.default.div` display: flex; flex-direction: column; @media ${e=>e.theme.mq.min.tablet} { display: ${e=>e.$isLeader&&e.$isAcademic&&"grid"}; grid-template-columns: ${e=>e.$isLeader&&e.$isAcademic&&"repeat(2, 1fr)"}; // below makes leader span all columns grid-column-start: ${e=>e.$isLeader&&e.$isAcademic&&+"1"}; grid-column-end: ${e=>e.$isLeader&&e.$isAcademic&&+"3"}; } @media ${e=>e.theme.mq.min.desktop} { grid-column-end: ${e=>e.$isLeader&&e.$isAcademic&&+"4"}; } `,vt=(0,i.default)(O.Z)` height: ${e=>e.$isLeader&&e.$isAcademic?"20rem":"25rem"}; width: 100%; object-fit: cover; object-position: top center; @media ${e=>e.theme.mq.min.tablet} { height: ${e=>e.$isLeader&&e.$isAcademic&&"0"}; width: ${e=>e.$isLeader&&e.$isAcademic&&"0"}; min-height: ${e=>e.$isLeader&&e.$isAcademic&&"100%"}; min-width: ${e=>e.$isLeader&&e.$isAcademic&&"100%"}; } `,$t=i.default.div` display: flex; flex-direction: column; align-items: center; gap: ${e=>e.theme.spacing.s}; text-align: center; padding: ${e=>e.theme.spacing.l} ${e=>e.theme.spacing.xs}; background-color: ${e=>e.theme.colors.grey.shade}; @media ${e=>e.theme.mq.min.tablet} { flex-grow: 1; align-items: flex-start; text-align: left; padding: ${e=>e.theme.spacing.l} ${e=>e.theme.spacing.s}; } @media ${e=>e.theme.mq.min.desktop} { padding: ${e=>e.$isLeader&&e.$isAcademic&&e.theme.spacing.xxl}; } `,bt=i.default.div` display: flex; flex-direction: column; gap: ${e=>e.theme.spacing.xxs}; `,xt=i.default.div` display: flex; flex-direction: column; gap: ${e=>e.theme.spacing.s}; `,St=yt,Pt=({title:e,intro:r,cta:l,cards:c})=>!c||!Array.isArray(c)?null:t.createElement(p.ZP,{id:"CardGridPeopleNonAcademic_"+e?.replace(" ",""),heading:e,lead:r,seeMoreText:l?.label,seeMoreLink:l?.path,width:!1,background:"white",padding:!1,variant:"feature"},t.createElement(Ct,null,c.map((a,m)=>t.createElement(St,{key:m,...a,staffType:"non-academic"})))),Ct=i.default.div` display: flex; flex-direction: column; gap: ${e=>e.theme.spacing.xs}; @media ${e=>e.theme.mq.min.tablet} { display: grid; grid-template-columns: repeat(2, 1fr); } `,Zt=({image:e,title:r,copy:l,cta:c})=>{if(!e)return null;const a=E=>E&&E==="secondary"?"darkOutline":"blue",m=(0,Ee.v9)(ve.routing.selectors.selectRouteEntryContentTypeId),f=m==="contentPage"||m==="subLandingPage";return t.createElement(Lt,{$panelSlim:f},e.src?t.createElement(wt,{className:"contentImage",$imageSrc:e.src}):null,t.createElement(Bt,null,t.createElement(P.ZP,{as:"h2",$size:"2"},r),t.createElement("div",null,t.createElement(x.Lu,{text:l})),c?.link?t.createElement(Dt,{$variant:a(c.variant??""),path:c.link},t.createElement(Y.ZP,{as:"span"},c.label)):null))},kt=(0,i.css)` padding: ${e=>e.theme.spacing.xxl} ${e=>e.theme.spacing.xxxl}; `,Mt=(0,i.css)` padding: ${e=>e.theme.spacing.xxl} ${e=>e.theme.spacing.xs}; `,Lt=i.default.div` display: flex; flex-direction: column; gap: ${e=>e.theme.spacing.m}; padding: ${e=>e.theme.spacing.s} ${e=>e.theme.spacing.xs}; max-width: 120em; // limit the size to 1920px margin: 0 auto; @media ${e=>e.theme.mq.min.tablet} { display: grid; grid-template-columns: repeat(2, 1fr); gap: ${e=>e.theme.spacing.l}; &:nth-of-type(2n) { & .contentImage { order: 1; } } } @media ${e=>e.theme.mq.min.desktop} { gap: ${e=>e.theme.spacing.xxl}; ${e=>e.$panelSlim?Mt:kt} } `,wt=i.default.div` width: 100%; background-size: cover; background-position: center center; background-image: url(/_Z8mtzw_669f862d-d3f6-4f0d-ad75-e51f9b01d664/static/modern/js/${e=>e.$imageSrc}); height: 100vw; // square... max-height: 60vh; // ...but watch in case full screen height @media ${e=>e.theme.mq.min.tablet} { padding-bottom: 100%; // force square proportions height: 100%; width: 100%; max-height: inherit; } `,Bt=i.default.div` display: flex; flex-direction: column; gap: ${e=>e.theme.spacing.m}; justify-content: center; @media ${e=>e.theme.mq.min.tablet} { padding: ${e=>e.theme.spacing.m} 0; } @media ${e=>e.theme.mq.min.laptop} { padding: ${e=>e.theme.spacing.l} 0; } @media ${e=>e.theme.mq.min.desktop} { padding: ${e=>e.theme.spacing.xl} 0; } @media ${e=>e.theme.mq.min.largeDesktop} { padding: ${e=>e.theme.spacing.xxl} 0; } `,Dt=(0,i.default)(N.ZP)` @media ${e=>e.theme.mq.min.mobile} { width: fit-content; } `,It=Zt,Ot=({title:e,description:r,variant:l="primary",$brandEbs:c=!1})=>{const a=l||"primary",m=At(a),f=Gt(a,c);return t.createElement(Tt,{$variant:a,$brandEbs:!0},t.createElement(Rt,null,t.createElement(P.ZP,{as:"h3",$size:"2",$color:f},e),t.createElement(Y.ZP,{as:"p",$align:"center",$color:m,$weight:"bold"},r)))},Tt=i.default.div` display: flex; flex-direction: column; padding: ${e=>e.theme.spacing.xl} ${e=>e.theme.spacing.s}; background-color: ${e=>e.$variant==="primary"?e.$brandEbs?e.theme.colors.blue.dark:e.theme.colors.blue.primary:e.theme.colors.neutral.white}; `,Rt=i.default.div` display: flex; flex-direction: column; justify-content: center; align-items: center; gap: ${e=>e.theme.spacing.s}; flex-grow: 1; `,At=e=>{let r;switch(e){case"primary":r="white";break;case"secondary":r="blue";break}return r},Gt=(e,r)=>{let l;switch(e){case"primary":r?l="greenLight":l="bluebrightShade";break;case"secondary":r?l="blueDark":l="bluebright";break}return l},zt=Ot,Wt=({title:e,intro:r,variant:l,cards:c})=>{const a=(0,R.Z)();return!c||!Array.isArray(c)?null:t.createElement(p.ZP,{id:"cardStatistics",heading:e,lead:r,width:!1,background:"white",padding:!1,variant:"feature"},t.createElement(jt,{length:c.length},c.map((m,f)=>t.createElement(zt,{key:f,...m,variant:l,$brandEbs:a}))))},jt=i.default.div` display: flex; flex-direction: column; gap: ${e=>e.theme.spacing.s}; @media ${e=>e.theme.mq.min.tablet} { display: grid; grid-template-columns: repeat(2, 1fr); gap: ${e=>e.theme.spacing.m}; } @media ${e=>e.theme.mq.min.laptop} { gap: ${e=>e.theme.spacing.l}; grid-template-columns: repeat( ${e=>e.length?e.length>6||e.length===4?4:e.length<3?2:3:3}, 1fr ); } `,Nt=Wt;var Ft=n(7493),Ut=n(6810),Vt=n(6043);const Kt=({hideItems:e,title:r,copy:l,subtitle:c,image:a,cta:m,ctaAsset:f,theme:E,layout:h="right"})=>{const C=(0,Ee.v9)(Vt.Kd)==="ebs",D=b=>b==="blue"||b==="blueDark"&&!C?"bluebrightShade":(b==="blueDark"||b===null)&&C?"greenShade":b==="blueBright"?"bluePrimary":b==="blueDarkWithGreenAccent"?"greenShade":"white",se=b=>b==="blueBright"?"bluePrimary":"white",he=b=>b==="blueBright"?"black":"white",ce=b=>b==="blueBright"?"blue":b==="blueDarkWithGreenAccent"||(b==="blueDark"||b===null)&&C===!0?"greenLight":b==="orchil"?"pink":b==="stone"?"sand":b==="green"?"green":"blueBright",Ce=e?.includes("title"),I=e?.includes("subtitle"),w=e?.includes("copy"),K=e?.includes("image");return t.createElement(Qt,{$hasImage:!!a&&!K,bannerTheme:E},a?.src&&!K?t.createElement(Xt,{bImage:a,role:"img","aria-label":a.alt}):null,t.createElement(Jt,{$hasImage:!!a&&!e?.includes("image"),$layout:h},r&&!Ce?t.createElement(P.ZP,{as:"h2",$size:"2",$color:D(E)},r):null,c&&!I?t.createElement(P.ZP,{as:"p",$size:"4",$color:se(E)},c):null,l&&!w?t.createElement(Y.ZP,{as:"p",$color:he(E)},l):null,m?.link?t.createElement(N.ZP,{path:m.link,$variant:ce(E)},m.label):f?.asset?t.createElement(N.ZP,{path:f.asset,$variant:ce(E)},f.label):null))},Ht=(0,i.css)` @media ${e=>e.theme.mq.min.laptop} { display: grid; grid-template-columns: repeat(2, 1fr); } `,Qt=i.default.div` ${e=>e.$hasImage&&Ht} background-color: ${e=>e.bannerTheme==="blue"?e.theme.colors.blue.primary:e.bannerTheme==="blueBright"?e.theme.colors.bluebright.mid:e.bannerTheme==="orchil"?e.theme.colors.orchil.dark:e.bannerTheme==="stone"?e.theme.colors.stone.primary:e.bannerTheme==="green"?e.theme.colors.green.mid:e.theme.colors.blue.dark}; `,Jt=i.default.div` display: flex; flex-direction: column; gap: ${e=>e.theme.spacing.s}; padding: ${e=>e.theme.spacing.l} ${e=>e.theme.spacing.xs}; align-items: center; text-align: center; @media ${e=>e.theme.mq.min.laptop} { gap: ${e=>e.theme.spacing.l}; padding-top: ${e=>e.$hasImage?e.theme.spacing.superxl:e.theme.spacing.xxl}; padding-right: ${e=>e.theme.spacing.xxxl}; padding-bottom: ${e=>e.$hasImage?e.theme.spacing.superxl:e.theme.spacing.xxl}; padding-left: ${e=>e.theme.spacing.xxxl}; ${e=>e.$layout==="left"&&(0,i.css)` order: -1; `} } `,Xt=i.default.div` background-image: url('/_Z8mtzw_669f862d-d3f6-4f0d-ad75-e51f9b01d664/static/modern/js/${e=>e.bImage?.src}'); background-repeat: no-repeat; background-size: cover; background-position: center; min-height: ${e=>e.theme.spacing.superxl}; @media ${e=>e.theme.mq.min.mobile} { background-image: url('/_Z8mtzw_669f862d-d3f6-4f0d-ad75-e51f9b01d664/static/modern/js/${e=>e.bImage?.srcLarge}'); min-height: calc( ${e=>e.theme.spacing.superxl} + ${e=>e.theme.spacing.xxxl} ); } `,Yt=Kt;var qt=n(9406);const _t=({formID:e})=>{const r="https://host.nxt.blackbaud.com/donor-form/?svcid=renxt&formId="+e+"&envid=p-flvyLhoMFkekLih67Ba6_Q&zone=eur&loaderVersion=2.5.0&referral=";return t.createElement(p.ZP,{heading:F.ND.donation.heading,id:"alumni-donate",padding:!1,variant:"feature"},t.createElement(be.Z,{src:r,title:F.ND.donation.iframeTitle,height:1500,name:"blackbaud",width:425}))};var xe=n(6946);const en=({image:e,title:r,text:l})=>t.createElement(tn,null,e?t.createElement(nn,null,t.createElement(an,{...e,sizes:xe.wi})):null,t.createElement(ln,null,t.createElement(rn,null,t.createElement(on,{$color:"stoneDark",$size:"4 serif",as:"p"},r),l?t.createElement(Y.ZP,{$color:"black",as:"p"},l):null))),tn=i.default.div` position: relative; display: flex; flex-direction: column; `,nn=i.default.div` height: 20rem; max-height: 75vh; overflow: hidden; @media ${e=>e.theme.mq.min.laptop} { /* position: absolute; */ width: 100%; height: 100%; } `,an=(0,i.default)(O.Z)` height: 100%; width: 100%; object-fit: cover; `,ln=i.default.div` position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: ${e=>e.theme.spacing.xs}; padding: ${e=>e.theme.spacing.m}; padding-bottom: ${e=>e.theme.spacing.xs}; // smaller padding-bottom for aria-label footer /* background: ${e=>e.theme.colors.grey.light}; */ @media ${e=>e.theme.mq.min.laptop} { padding-top: ${e=>e.theme.spacing.l}; } `,rn=i.default.div` display: flex; flex-direction: column; gap: ${e=>e.theme.spacing.xs}; `,on=(0,i.default)(P.ZP)` font-weight: normal; `,sn=en;var Ve=n(7397);const cn=({slides:e})=>{const[r,l]=(0,S.Z)(),{nextBtnDisabled:c,onNextButtonClick:a,prevBtnDisabled:m,onPrevButtonClick:f}=j(l),E=_(l),h="carousel-items";return e?.length?t.createElement(dn,{"aria-label":"Featured links","aria-roledescription":"gallery"},t.createElement(hn,null,t.createElement(yn,{disabled:c,onClick:a,"aria-label":"Next slide","aria-controls":h},t.createElement(Ve.Z,{width:"1.5rem"})),t.createElement(fn,{disabled:m,onClick:f,"aria-label":"Previous slide","aria-controls":h},t.createElement(En,{width:"1.5rem"}))),t.createElement("div",{ref:r},t.createElement(mn,{id:h,"aria-live":"polite"},e.map((C,D)=>{const se=D+1+" / "+e.length,he=E===D;return t.createElement(un,{key:C?.id,visible:he,ariaLabel:se},C.slide)})))):null},dn=i.default.section` overflow: hidden; position: relative; `,mn=i.default.div` display: flex; `,un=({children:e,visible:r,ariaLabel:l})=>{const c=(0,t.useRef)(null);return Q(c,!r),t.createElement(gn,{ref:c,"aria-label":l,role:"group","aria-roledescription":"slide"},e)},gn=i.default.div` flex: 0 0 96%; // show small amount of next slide to encourage swipe min-width: 0; @media ${e=>e.theme.mq.min.laptop} { flex-basis: 100%; // ...restore to 100% as now have buttons } &::after { content: attr(aria-label); margin-left: ${e=>e.theme.spacing.m}; font-style: italic; } `,hn=i.default.div` @media ${e=>e.theme.mq.min.laptop} { position: absolute; z-index: 1; top: calc(50% - 4rem); width: 100%; display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: ${e=>e.theme.spacing.xs}; } `,pn=(0,i.css)` border: 0 !important; clip: rect(0, 0, 0, 0) !important; height: 1px !important; margin: -1px !important; overflow: hidden !important; padding: 0 !important; white-space: nowrap !important; width: 1px !important; `,Ke=(0,i.default)(M)` position: absolute; display: flex; justify-content: center; align-items: center; @media ${e=>e.theme.mq.max.laptop} { ${pn} } `,fn=(0,i.default)(Ke)` left: 1.5rem; `,yn=(0,i.default)(Ke)` right: 1.5rem; `,En=(0,i.default)(Ve.Z)` transform: scaleX(-1); `,vn=cn;var $n=n(763);const bn=({image:e})=>{let l=(0,$n.U)({assetHeight:e.height,assetWidth:e.width,width:421});return l>640&&(l=640),l<320&&(l=320),t.createElement(Sn,null,t.createElement(Zn,{title:"image",variant:"image",trigger:t.createElement(xn,null,t.createElement(Cn,{...e,width:421,height:l}))},t.createElement(Pn,{...e,width:800})),t.createElement(kn,{...e,width:421,height:l}))},xn=i.default.button` display: none; @media ${e=>e.theme.mq.min.tablet} { display: inline; width: 100%; height: 100%; transition: ease-in opacity 0.2s; &:hover { cursor: pointer; opacity: 0.75; } } `,Sn=i.default.div` @media ${e=>e.theme.mq.min.tablet} { margin-bottom: ${e=>e.theme.spacing.s}; } `,Pn=(0,i.default)(O.Z)` object-fit: contain; `,Cn=(0,i.default)(O.Z)` display: none; @media ${e=>e.theme.mq.min.tablet} { display: block; max-height: 40rem; // 640px; width: 100%; object-fit: cover; } `,Zn=(0,i.default)(Ue.Z)` display: none; @media ${e=>e.theme.mq.min.tablet} { display: block; } `,kn=(0,i.default)(O.Z)` object-fit: cover; @media ${e=>e.theme.mq.min.tablet} { display: none; } `,Mn=bn,Ln=({title:e,intro:r,images:l})=>t.createElement(p.ZP,{id:"imageGrid",heading:e,lead:r,width:!1},t.createElement(wn,null,l.map((c,a)=>t.createElement(Mn,{key:a,image:c})))),wn=i.default.div` display: flex; flex-direction: column; gap: ${e=>e.theme.spacing.s}; @media ${e=>e.theme.mq.min.tablet} { display: block; column-count: 2; column-gap: ${e=>e.theme.spacing.s}; } @media ${e=>e.theme.mq.min.laptop} { column-count: 3; } `,Bn=Ln,Dn=({mailChimpEmbedUrl:e})=>t.createElement(be.Z,{src:e,title:F.TO.iframeTitle,height:500});var In=n(689);const On=({title:e,image:r,jobTitle:l,link:c,school:a,service:m,department:f})=>{const E=a||m,h=E?f?E+"; "+f:E:f||void 0;return t.createElement(Tn,null,t.createElement(Rn,null,r&&t.createElement(An,{...r}),t.createElement(Gn,null,t.createElement(zn,{path:c},t.createElement(Wn,{as:"h3",$size:"4 serif",$color:"stoneDark"},e)),l&&t.createElement(Y.ZP,{as:"p",$color:"stoneDark"},l),h&&t.createElement(Y.ZP,{as:"p",$color:"stoneDark",$styleFont:"italic"},h))))},Tn=i.default.div` position: relative; `,Rn=i.default.div` height: 100%; display: flex; flex-direction: column; `,An=(0,i.default)(O.Z)` height: 20rem; object-fit: cover; object-position: top; flex-shrink: 0; `,Gn=i.default.div` display: flex; flex-direction: column; gap: ${e=>e.theme.spacing.s}; padding: ${e=>e.theme.spacing.l} ${e=>e.theme.spacing.s}; background-color: ${e=>e.theme.colors.grey.shade}; height: 100%; `,zn=(0,i.default)(In.Z)` color: ${e=>e.theme.colors.stone.dark}; &:focus-visible::after { outline: ${e=>e.theme.spacing.xxxs} solid ${e=>e.theme.colors.ui.focus}; outline-offset: -${e=>e.theme.radius.s}; border-radius: ${e=>e.theme.radius.s}; } &:focus-visible { outline: unset; } &::after { content: ''; position: absolute; inset: 0; z-index: 2; } &:hover { text-decoration: none; &, h3 { color: ${e=>e.theme.colors.stone.primary}; } } `,Wn=(0,i.default)(P.ZP)` font-weight: bold; `,jn=On,Nn=e=>t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",className:"fa-spin",...e},t.createElement("path",{d:"M304 48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zm0 416a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM48 304a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm464-48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM142.9 437A48 48 0 1 0 75 369.1 48 48 0 1 0 142.9 437zm0-294.2A48 48 0 1 0 75 75a48 48 0 1 0 67.9 67.9zM369.1 437A48 48 0 1 0 437 369.1 48 48 0 1 0 369.1 437z"})),Fn=({id:e,text:r="Loading...",status:l})=>t.createElement(Un,{id:e,$status:l??"not loading"},t.createElement(Nn,{className:"fa-spin-pulse"}),t.createElement(Y.ZP,{as:"p"},r)),Un=i.default.div` display: ${e=>e.$status==="loading"?"flex":"none"}; flex-direction: row; gap: ${e=>e.theme.spacing.xs}; align-items: center; padding: ${e=>e.theme.spacing.s}; background: ${e=>e.theme.colors.grey.light}; width: fit-content; `,Vn=Fn;var Kn=n(7074);const Hn={id:"",mapper:(e=[])=>e},Qn=e=>{if(!e)return null;const[r,l]=(0,t.useState)(Hn),c=e.replace(".html",".json");return(0,t.useEffect)(()=>{const a=document.getElementById("funnelbackLoading");a&&(a.style.display="flex"),fetch(c).then(m=>{if(!m.ok)throw new Error(`HTTP error! status: ${m.status}`);return m.json()}).then(m=>{l({id:"filteredProfiles",config:{title:"Filtered profiles",customApi:{uri:c}},mapper:(f=[])=>f?.response?.resultPacket?.results?.map(h=>({id:h.title,link:h.liveUrl,title:h.listMetadata.t?.[0]??h.title,image:h.listMetadata.image?{src:h.listMetadata.image?.[0].replace("w=480","w="+xe.uh.width).replace("h=480","h="+xe.uh.height),alt:"",width:xe.uh.width,height:xe.uh.height}:xe.uh,jobTitle:h.listMetadata.jobTitle?.[0],school:h.listMetadata.school?.[0],department:h.listMetadata.department?.[0],service:h.listMetadata.service?.[0]}))}),a&&(a.style.display="none")}).catch(m=>console.error("Error:",m))},[c]),(0,Kn._7)(r)},Jn=({title:e,intro:r,url:l,profiles:c})=>{const{results:a}=Qn(l);return t.createElement(p.ZP,{id:"profiles",heading:e,lead:r,width:!1,padding:!1,variant:"feature",seeMoreLink:l},t.createElement(Vn,{id:"funnelbackLoading",status:"not loading"}),t.createElement(Xn,null,a?.length>0&&a.map(m=>t.createElement(jn,{key:m.id,...m}))))},Xn=i.default.div` display: flex; flex-direction: column; gap: ${e=>e.theme.spacing.s}; @media ${e=>e.theme.mq.min.tablet} { display: grid; grid-template-columns: repeat(2, 1fr); } @media ${e=>e.theme.mq.min.laptop} { grid-template-columns: repeat(3, 1fr); } @media ${e=>e.theme.mq.min.largeDesktop} { grid-template-columns: repeat(4, 1fr); } `,Yn=Jn,qn=({items:e})=>{const r=(0,Ee.v9)(ve.routing.selectors.selectRouteEntryContentTypeId),l=()=>r==="researchInstituteOverview"||r==="researchProjectThemeOverview"||r==="campaignPage"||r==="subLandingPage"||r==="contentPage"||r==="schoolLandingPage"||r.includes("shapingFutures")?"white":"greyShade",c=()=>r==="campaignPage";return!e||!Array.isArray(e)?null:t.createElement(t.Fragment,null,e.map(a=>{if(!a._type)return null;switch(a._type){case"genericSectionText":return a.lead||a.heading||a.children?t.createElement(p.ZP,{key:(0,o.Z)()+a._type,id:(0,o.Z)(),background:"white",lead:a.lead,width:!0,padding:!1,heading:a.heading,condensed:!0},t.createElement(x.Lu,{key:(0,o.Z)(),text:a.children})):null;case"promoTextBlock":return t.createElement(k,{key:(0,o.Z)(),...a});case"textBlock":return t.createElement(Le,{key:(0,o.Z)(),...a});case"genericBanner":return t.createElement(we.Z,{key:(0,o.Z)(),...a});case"ctaBanner":return t.createElement(Yt,{key:(0,o.Z)(),...a});case"video":return t.createElement(p.ZP,{key:(0,o.Z)()+a._type,id:(0,o.Z)(),background:l(),width:!1,padding:c(),variant:"feature"},a?.videos?t.createElement(Te,{...a}):t.createElement(x.nk,{...a,background:"transparent"}));case"blogMinilist":return t.createElement(tt,{key:(0,o.Z)(),...a});case"eventsMinilist":return t.createElement(_e.default,{key:(0,o.Z)(),...a});case"newsMinilist":return t.createElement(x.Xx,{key:(0,o.Z)(),...a});case"profilesMinilistFunnelback":return t.createElement(Yn,{key:(0,o.Z)(),...a});case"mailChimpSignupForm":return t.createElement(p.ZP,{key:(0,o.Z)(),id:(0,o.Z)(),width:!1,padding:!1,condensed:!0,heading:a.title,lead:a.intro},t.createElement(Dn,{...a}));case"peopleMinilist":return t.createElement(at.default,{key:(0,o.Z)(),...a});case"programmeMinilist":return t.createElement(st,{key:(0,o.Z)(),...a});case"formGecko":return t.createElement(rt.Z,{key:(0,o.Z)(),...a});case"maps":return t.createElement(mt,{key:(0,o.Z)(),...a});case"essenceBlock":return t.createElement(p.ZP,{key:(0,o.Z)()+a._type,id:(0,o.Z)(),background:"darkBlue",variant:"feature",width:!1,padding:!1},t.createElement(x.__,{key:(0,o.Z)(),...a}));case"banners":case"griBanners":case"gridFocusBanners":return t.createElement(x.O,{key:(0,o.Z)(),...a});case"imageGallery":return t.createElement(p.ZP,{key:(0,o.Z)()+a._type,id:(0,o.Z)(),width:!1,padding:!1},t.createElement(vn,{key:(0,o.Z)(),slides:a.slides?.map(m=>({id:m.id,slide:t.createElement(sn,{...m})}))}));case"spotlightCarousel":return t.createElement(A,{key:(0,o.Z)(),slides:a.slides?.map(m=>({id:m.id,slide:t.createElement(X,{...m})}))});case"quote":case"statistic":return t.createElement(x.pu,{key:(0,o.Z)(),...a});case"cardRow":return t.createElement(ye.Z,{key:(0,o.Z)(),...a});case"cardStatisticRow":return t.createElement(Nt,{key:(0,o.Z)(),...a});case"cardRowPeopleNonacademic":return t.createElement(Pt,{key:(0,o.Z)(),...a});case"cardRowNoLinks":return t.createElement($e.default,{key:(0,o.Z)(),...a});case"embeddedContent":return t.createElement(Ut.Z,{key:(0,o.Z)(),...a});case"generalCardRow":return t.createElement(qt.Z,{key:(0,o.Z)(),...a});case"testimonial":return t.createElement(p.ZP,{key:(0,o.Z)()+a._type,id:(0,o.Z)(),background:r==="campaignPage"?"darkBlue":"white",variant:"feature",width:!1,padding:!1},t.createElement(ae.Z,{key:(0,o.Z)(),...a,variant:r==="campaignPage"?"darkBlue":"white"}));case"donorboxDonationForm":return t.createElement(re.default,{key:(0,o.Z)(),...a});case"blackbaudDonationForm":return t.createElement(_t,{key:(0,o.Z)(),...a});case"blackbaudRegistrationForm":return t.createElement(Ft.Z,{key:(0,o.Z)(),...a});case"searchBar":return t.createElement(it.Z,{key:(0,o.Z)(),...a});case"formGravity":return t.createElement(lt.Z,{key:(0,o.Z)(),...a});case"podcast":return t.createElement(p.ZP,{key:(0,o.Z)()+a._type,id:(0,o.Z)(),background:"white",variant:"feature",width:!1,padding:!0},t.createElement(De.Z,{key:(0,o.Z)(),...a}));case"unibuddyChat":return t.createElement(Be,{key:(0,o.Z)(),...a});case"libCal":return t.createElement(qe,{key:(0,o.Z)(),...a});case"contentImagePanel":return t.createElement(It,{key:(0,o.Z)(),...a});case"imageGrid":return t.createElement(Bn,{key:(0,o.Z)(),...a});default:console.error("Composer Component ",a._type," not found");break}}))}},9457:(me,Z,n)=>{n.r(Z),n.d(Z,{default:()=>Q});var t=n(6109),o=n(3519),x=n(4586),p=n(1224),v=n(7664),k=n(8561),i=n.n(k),S=n(9522),j=n(6681),H=n(1420),M=n(3714),q=n(6300),_=n(2294);const Q=({title:u,intro:J,manualEventsSelection:L,keywordsLocation:U,keywordsSchools:te,keywordsType:ue,seeMore:ie})=>{const ge=(0,j.v9)(H.i8.selectors.selectVersionStatus),[s,A]=(0,t.useState)(null),P=(0,_.Z)(),G=(y=>Object.entries(y).filter(([g])=>g!=null).map(([g,B])=>({field:g,contains:B})))({keywordsLocation:U,keywordsSchools:te,keywordsType:ue});(0,t.useEffect)(()=>{let y=!0;return(async()=>{let B=[];B=[k.Op.equalTo("sys.versionStatus",ge),k.Op.equalTo("sys.contentTypeId","event"),k.Op.or(...G.flatMap(z=>z.contains?Array.isArray(z.contains)?z.contains.map(X=>k.Op.contains(z.field,X)):[k.Op.contains(z.field,z.contains)]:[]))];const V=new k.Query(...B);V.orderBy=k.OrderBy.asc("date.from");const ne=await(0,S.E)(v.cachedSearch.search(V,0));if(ne.response&&y){const X=ne.response.items.map(oe=>(0,v.mapJson)(oe,M.B));if(!L||L.length===0)A(X.slice(0,3));else{const oe=[...L,...X],Me=[...new Map(oe.map(Se=>[Se.id,Se])).values()];A(Me.slice(0,3))}}})(),()=>{y=!1}},[]);const d="greyShade";return s?t.createElement(p.ZP,{id:"events",heading:u,lead:J,background:d,width:!1,padding:!1,variant:"feature",seeMoreLink:ie},t.createElement(R,null,s.map((y,g)=>t.createElement(x.Z,{key:g,variant:P?"darkBlueWithGreenBorder":"darkBlue",taxonomy:q.g.event,color:P?"green":"pink",padded:!0,...y})))):null},R=o.default.div` display: flex; flex-wrap: wrap; justify-content: space-between; gap: ${u=>u.theme.spacing.s}; @media ${u=>u.theme.mq.min.laptop} { display: grid; grid-template-columns: 1fr 1fr 1fr; } `},5821:(me,Z,n)=>{n.r(Z),n.d(Z,{default:()=>i});var t=n(6109),o=n(8102),x=n(1224),p=n(113);const v=({formID:S})=>{const j="https://donorbox.org/embed/"+S;return t.createElement(x.ZP,{heading:"Make a donation",id:"donor",padding:!1,variant:"feature"},t.createElement(o.q,{script:[{type:"text/javascript",innerHTML:k}]}),t.createElement(p.Z,{src:j,title:"Donate to ÀÖ²¥´«Ã½",height:1075,name:"donorbox",width:425}))},k=` (function () { "use strict"; var e = document.createElement("script"); e.async = true; e.src = "https://donorbox.org/widget.js"; e.setAttribute("paypalExpress", "false"); document.getElementsByTagName("head")[0].appendChild(e); } ()); `,i=v},9531:(me,Z,n)=>{n.r(Z),n.d(Z,{default:()=>O});var t=n(6109),o=n(3519),x=n(1224),p=n(7664),v=n(8561),k=n(9522),i=n(6681),S=n(1420),j=n(5119),H=n(8749),M=n(5861),q=n(5884),_=n(689),fe=n(2315),Q=n(5492),R=n(1183);const u=({image:d,pureProfileUrl:y,name:g,jobTitle:B,school:V,department:ne,email:z,linkedIn:X})=>t.createElement(J,null,d&&t.createElement(L,{...d}),t.createElement(U,null,t.createElement(ue,{name:g,jobTitle:B,school:V,department:ne}),t.createElement(ge,{email:z,linkedIn:X}),y&&t.createElement(te,{link:y,label:g}))),J=o.default.div` display: flex; flex-direction: column; `,L=(0,o.default)(M.Z)` width: 100%; object-fit: cover; object-position: top center; height: 20rem; `,U=o.default.div` display: flex; flex-grow: 1; flex-direction: column; gap: ${d=>d.theme.spacing.s}; padding: ${d=>d.theme.spacing.l} ${d=>d.theme.spacing.xs}; background-color: ${d=>d.theme.colors.grey.shade}; @media ${d=>d.theme.mq.min.tablet} { padding: ${d=>d.theme.spacing.l} ${d=>d.theme.spacing.s}; } `,te=(0,o.default)(H.Z)` margin-top: auto; `,ue=({name:d,jobTitle:y,school:g,department:B})=>{if(!d)return null;const V={$size:"4 serif",$color:"black"};return t.createElement(ie,null,t.createElement(q.ZP,{...V,as:"h3"},d),y?t.createElement(R.ZP,{as:"p"},y):null,g||B?t.createElement(R.ZP,{as:"p",$styleFont:"italic"},g&&g!=="Global Research Institutes"?g:null,B?t.createElement(R.ZP,{as:"span",$styleFont:"italic"},g&&g!=="Global Research Institutes"?", ":null,B):null):null)},ie=o.default.div` display: flex; flex-direction: column; gap: ${d=>d.theme.spacing.s}; `,ge=({email:d,linkedIn:y})=>{const g={height:"2.25rem",width:"2.25rem"};return!d&&!y?null:t.createElement(s,null,d?t.createElement(A,{path:"mailto:"+d},t.createElement("span",{className:"visually-hidden"},"Email"),t.createElement(Q.FX,{...g})):null,y?t.createElement(A,{path:y},t.createElement("span",{className:"visually-hidden"},"LinkedIn"),t.createElement(fe.IL,{...g})):null)},s=o.default.div` display: flex; gap: ${d=>d.theme.spacing.xs}; `,A=(0,o.default)(_.Z)` display: inline-flex; justify-content: center; align-items: center; color: ${d=>d.theme.colors.blue.primary}; `,P=u,O=({title:d,intro:y,manualPeopleSelection:g,school:B,department:V,alphabeticalOrder:ne})=>{const z=(0,i.v9)(S.i8.selectors.selectVersionStatus),[X,oe]=(0,t.useState)(null),Te=(ae=>Object.entries(ae).filter(([le])=>le!=null).map(([le,Pe])=>({field:le,contains:Pe})))({school:B,department:V});(0,t.useEffect)(()=>{let ae=!0;return(async()=>{let Pe=[];Pe=[v.Op.equalTo("sys.versionStatus",z),v.Op.equalTo("sys.contentTypeId","pureProfile"),v.Op.or(...Te.flatMap(re=>re.contains?Array.isArray(re.contains)?re.contains.map($e=>v.Op.contains(re.field,$e)):[v.Op.contains(re.field,re.contains)]:[]))];const Le=new v.Query(...Pe);ne&&(Le.orderBy=v.OrderBy.asc("surnameFirstName"));const we=await(0,k.E)(p.cachedSearch.search(Le,0));if(we.response&&ae){const $e=we.response.items.map(F=>(0,p.mapJson)(F,j.E));if(!g||g.length===0)oe($e.slice(0,4));else{const F=g,be=[];F.forEach(ee=>{be.push(ee.id)});const ze=[v.Op.equalTo("sys.versionStatus",z),v.Op.equalTo("sys.contentTypeId","pureProfile"),v.Op.or(...be.flatMap(ee=>[v.Op.equalTo("sys.id",ee)]))],Be=new v.Query(...ze);ne&&(Be.orderBy=v.OrderBy.asc("surnameFirstName"));const De=await(0,k.E)(p.cachedSearch.search(Be,0));let Ie=[];De.response&&ae&&(Ie=De.response.items);const Re=[...Ie.map(ee=>(0,p.mapJson)(ee,j.E)),...$e],Ae=[...new Map(Re.map(ee=>[ee.id,ee])).values()];oe(Ae.slice(0,g.length))}}})(),()=>{ae=!1}},[]);const ye=(0,i.v9)(S.routing.selectors.selectRouteEntryContentTypeId),ve=(()=>ye==="researchInstituteOverview"||ye==="researchProjectThemeOverview"||ye==="contentPage"||ye==="subLandingPage"?"white":"greyShade")();return X?t.createElement(x.ZP,{id:"people",heading:d,lead:y,background:ve,width:!1,padding:!1,variant:"feature"},t.createElement(G,null,X.map((ae,le)=>t.createElement(P,{key:le,...ae})))):null},G=o.default.div` display: flex; flex-direction: column; gap: ${d=>d.theme.spacing.xs}; @media ${d=>d.theme.mq.min.mobile} { display: grid; grid-template-columns: repeat(2, 1fr); } @media ${d=>d.theme.mq.min.tablet} { grid-template-columns: repeat(3, 1fr); } @media ${d=>d.theme.mq.min.desktop} { grid-template-columns: repeat(4, 1fr); } `},7021:(me,Z,n)=>{n.d(Z,{Z:()=>ge});var t=n(6109),o=n(3519),x=n(5492),p=n(4666),v=n(2361),k=n(6681),i=n(6043),S=n(3719),j=n(1679),H=n(1183);const M={search:"Search",suggestions:"Suggestions",programmes:{all:"Search our programmes",level:{globalCollege:"Search our Global College programmes",undergraduate:"Search our Undergraduate programmes",postgraduate:"Search our Postgraduate programmes",research:"Search our Research programmes"},delivery:{graduateApprenticeships:"Search our Graduate Apprenticeship programmes"},gscopes:{globalCollege:"globalcollege",undergraduate:"ug",postgraduate:"pg",research:"research",graduateApprenticeships:"ga"}}};var q=n(2294),_=n(5718),fe=n(9648),Q=n(5884);const R=({level:s,school:A,global:P})=>{const{isJQueryLoaded:N,areOtherScriptsLoaded:O}=(0,_.Z)();(0,t.useEffect)(()=>{if(N&&O){console.log("All scripts loaded successfully!");const V=window.matchMedia("(max-height: 55rem)").matches?4:3;$(function(){$("input#searchBarInput").autocompletion({datasets:{programmes:{collection:"heriot-watt~sp-programmes",profile:ie(d,s??"",P??!1),program:"https://search.hw.ac.uk/s/suggest.json",name:M.suggestions,format:"extended",show:V,group:!0,template:{suggestion:'