"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[191,498,154,772,511],{6300:(me,P,n)=>{n.d(P,{g:()=>t});const t={article:"News",blog:"Blog",event:"Event",programme:"Programme",scholarship:"Scholarship"}},2559:(me,P,n)=>{n.r(P),n.d(P,{default:()=>H});var t=n(6109),o=n(3519),b=n(1224),h=n(5884),v=n(5861),Z=n(1183),i=n(2294);const x=({image:d,title:j,copy:k})=>{const N=(0,i.Z)();return t.createElement(G,null,d&&t.createElement(Y,null,t.createElement(L,{src:d.asset?.sys?.uri,alt:d.altText,width:360,height:240})),t.createElement(V,{$brandEbs:N},t.createElement(h.ZP,{as:"h3",$size:"4",$color:"black"},j),k&&t.createElement(Z.ZP,{as:"p"},k)))},G=o.default.div`
display: flex;
flex-direction: column;
`,Y=o.default.div`
height: 15rem;
width: 100%;
`,L=(0,o.default)(v.Z)`
height: 15rem;
object-fit: cover;
object-position: center center;
width: 100%;
`,V=o.default.div`
display: flex;
width: 100%;
height: 100%;
padding: ${d=>d.theme.spacing.s} 0;
flex-direction: column;
align-items: flex-start;
gap: ${d=>d.theme.spacing.s};
color: ${d=>d.theme.colors.neutral.black};
border-bottom: solid transparent ${d=>d.theme.spacing.xs};
border-bottom-color: ${d=>d.$brandEbs?d.theme.colors.green.shade:d.theme.colors.stone.shade};
@media ${d=>d.theme.mq.min.tablet} {
padding: ${d=>d.theme.spacing.s};
}
`,K=x,H=({title:d,intro:j,cards:k})=>!k||!Array.isArray(k)?null:t.createElement(b.ZP,{id:"cardGrid",heading:d,lead:j,width:!1,background:"white",padding:!1,variant:"feature"},t.createElement(w,{length:k.length},k.map((N,u)=>t.createElement(K,{key:u,image:N.image,...N})))),w=o.default.div`
display: flex;
flex-direction: column;
gap: ${d=>d.theme.spacing.l};
@media ${d=>d.theme.mq.min.tablet} {
display: grid;
grid-template-columns: repeat(2, 1fr);
}
@media ${d=>d.theme.mq.min.laptop} {
grid-template-columns: repeat(
${d=>d.length&&d.length<4?d.length:4},
1fr
);
}
`},4929:(me,P,n)=>{n.r(P),n.d(P,{default:()=>Yn});var t=n(6109),o=n(6641),b=n(5964),h=n(1224);const Z=({anchorId:e="promo",heading:l,lead:r,cta:s})=>t.createElement(h.ZP,{id:e,heading:l,lead:r,seeMoreText:s?.label,seeMoreLink:s?.path,condensed:!0,width:!1,background:"white",padding:!1,variant:"feature"});var i=n(3519),x=n(1433);const G=(e,l)=>{const[r,s]=(0,t.useState)(!0),[a,c]=(0,t.useState)(!0),p=(0,t.useCallback)(()=>{e&&(e.scrollPrev(),l&&l(e))},[e,l]),f=(0,t.useCallback)(()=>{e&&(e.scrollNext(),l&&l(e))},[e,l]),g=(0,t.useCallback)(S=>{s(!S.canScrollPrev()),c(!S.canScrollNext())},[]);return(0,t.useEffect)(()=>{e&&(g(e),e.on("reInit",g).on("select",g))},[e,g]),{prevBtnDisabled:r,nextBtnDisabled:a,onPrevButtonClick:p,onNextButtonClick:f}},L=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 V=n(5492);const K=e=>{const l=(0,t.useRef)(0),r=(0,t.useCallback)(()=>{e&&(l.current=e.selectedScrollSnap())},[e]);return(0,t.useEffect)(()=>{if(e)return e.on("select",r),r(),()=>{e.off("select",r)}},[e,r]),l.current},H=(e,l)=>{(0,t.useEffect)(()=>{e.current&&e.current.querySelectorAll("a").forEach(s=>{l?s.setAttribute("tabindex","-1"):s.removeAttribute("tabindex")})},[e,l])};var w=n(2294);x.Z.globalOptions={loop:!0};const d=({slides:e})=>{const[l,r]=(0,x.Z)(),{nextBtnDisabled:s,onNextButtonClick:a,prevBtnDisabled:c,onPrevButtonClick:p}=G(r),f=K(r),g="carousel-items",S=(0,w.Z)();return e?.length?t.createElement(j,{"aria-label":"Featured links","aria-roledescription":"carousel"},t.createElement(q,null,t.createElement(_,{disabled:s,onClick:a,"aria-label":"Next slide","aria-controls":g,brandEbs:S},t.createElement(V.rx,{width:"2rem"})),t.createElement(le,{disabled:c,onClick:p,"aria-label":"Previous slide","aria-controls":g,brandEbs:S},t.createElement(V.gf,{width:"2rem"}))),t.createElement("div",{ref:l},t.createElement(k,{id:g,"aria-live":"polite"},e.map((B,se)=>{const ue=se+1+" of "+e.length,ce=f===se;return t.createElement(N,{key:B?.id,visible:ce,ariaLabel:ue},B.slide)})))):null},j=i.default.section`
overflow: hidden;
position: relative;
`,k=i.default.div`
display: flex;
`,N=({children:e,visible:l,ariaLabel:r})=>{const s=(0,t.useRef)(null);return H(s,!l),t.createElement(u,{ref:s,"aria-label":r,role:"group","aria-roledescription":"slide"},e)},u=i.default.div`
flex: 0 0 100%;
min-width: 0;
`,q=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};
}
`,re=(0,i.default)(L)`
position: absolute;
display: flex;
justify-content: center;
align-items: center;
top: 6.25rem;
@media ${e=>e.theme.mq.min.laptop} {
position: initial;
}
`,le=(0,i.default)(re)`
left: 0;
`,_=(0,i.default)(re)`
right: 0;
`,I=d;var y=n(5884),ie=n(4666),Q=n(5861);const be=({image:e,title:l,text:r,cta:s})=>{const a="white",c=(0,w.Z)();return t.createElement(m,null,e?t.createElement(ee,null,t.createElement(R,{src:e,alt:"",height:652,width:1100,loading:"lazy"})):null,t.createElement(C,null,t.createElement(E,null,t.createElement(X,{$color:c?"greenLight":"white",$size:"4",as:"p"},l),r?t.createElement(O,{$color:a,$size:"4 italic",as:"p"},r):null),s?t.createElement(ie.ZP,{$variant:c?"greenOutline":"whiteOutline",path:s.path},s.label):null))},m=i.default.div`
position: relative;
display: flex;
flex-direction: column;
@media ${e=>e.theme.mq.min.laptop} {
flex-direction: row;
height: 40.75rem;
}
`,C=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};
}
`,E=i.default.div`
display: flex;
flex-direction: column;
gap: ${e=>e.theme.spacing.xs};
`,O=(0,i.default)(y.ZP)`
margin-bottom: 0;
`,X=(0,i.default)(O)`
@media ${e=>e.theme.mq.min.laptop} {
font-size: 2.5rem;
}
`,ee=i.default.div`
height: 15rem;
overflow: hidden;
@media ${e=>e.theme.mq.min.laptop} {
position: absolute;
width: 100%;
height: 100%;
}
`,R=(0,i.default)(Q.Z)`
height: 100%;
width: 100%;
object-fit: cover;
`,F=be,oe=({videos:e})=>{const l=e[0],r=e.filter((s,a)=>a>0);return t.createElement(ke,null,t.createElement(b.nk,{key:(0,o.Z)(),...l,size:"large",background:"transparent"}),r?.length?t.createElement(xe,{length:r.length},r.map(s=>t.createElement(b.nk,{key:(0,o.Z)(),...s,size:"medium",background:"transparent"}))):null)},ke=i.default.div`
display: grid;
gap: ${e=>e.theme.spacing.l} ${e=>e.theme.spacing.xs};
`,xe=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 pe=n(878),fe=n(6681),ye=n(1420),te=n(3327),ne=n(5151);const Me=({anchorId:e="text",heading:l,content:r})=>t.createElement(h.ZP,{id:e,heading:l,width:!0,background:"white",padding:!1,variant:"feature"},t.createElement(ne.default,{text:r}));var Le=n(5838),ae=n(5821),Ee=n(2559),W=n(2036),ve=n(113);const Be=({chatType:e,title:l,intro:r})=>{const s=e==="Staff"?W.VC.staff.link:W.VC.student.link,a=e==="Staff"?W.VC.staff.height:W.VC.student.height;return t.createElement(h.ZP,{heading:l,lead:r,id:"unibuddyChat",padding:!1,variant:"feature"},t.createElement(ve.Z,{src:W.VC.source+s,title:W.VC.title+s,height:a}))};var De=n(3686),Ie=n(8102),We=n(1191),we=n(9208),Re=n(6204);const J=({heading:e})=>t.createElement(h.ZP,{variant:"feature",id:"libcal",condensed:!0,padding:!1},t.createElement(Qe,{as:"h2",$size:"2"},e),t.createElement(He,{id:"api_month_cid9127_iid854",className:"libcal-widget"},t.createElement(Ie.q,{script:[{type:"text/javascript",innerHTML:Je}]})),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)),Ke=(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 {
${y.B8}
color: ${e=>e.theme.colors.link.default};
&[target='_blank'] {
${we.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};
}
${Re.H}
}
`,He=i.default.div`
${Ke}
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
}
`,Qe=(0,i.default)(y.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)(ie.ZP)`
@media ${e=>e.theme.mq.min.mobile} {
width: fit-content;
}
`,Je=`
(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)`,Ye=J;var qe=n(9457),Ne=n(4586),Oe=n(7664),A=n(8561),ze=n(9522),_e=n(1650),je=n(6300);const et=({title:e,intro:l,manualBlogPostSelection:r,keywordsEBS:s,keywordsLocation:a,keywordsTheme:c,seeMore:p})=>{const f=(0,fe.v9)(ye.i8.selectors.selectVersionStatus),[g,S]=(0,t.useState)(null),B=(0,w.Z)(),ce=(D=>Object.entries(D).filter(([M])=>M!=null).map(([M,z])=>({field:M,contains:z})))({keywordsLocation:a,keywordsTheme:c,keywordsEBS:s});(0,t.useEffect)(()=>{let D=!0;return(async()=>{let z=[];z=[A.Op.equalTo("sys.versionStatus",f),A.Op.equalTo("sys.contentTypeId","blog"),A.Op.or(...ce.flatMap(T=>T.contains?Array.isArray(T.contains)?T.contains.map(de=>A.Op.contains(T.field,de)):[A.Op.contains(T.field,T.contains)]:[]))];const $=new A.Query(...z);$.orderBy=A.OrderBy.desc("datePublished");const Ce=await(0,ze.E)(Oe.cachedSearch.search($,0));if(Ce.response&&D){const de=Ce.response.items.map(ge=>(0,Oe.mapJson)(ge,_e.k));if(!r||r.length===0)S(de.slice(0,3));else{const ge=[...r,...de],Ae=[...new Map(ge.map(Ze=>[Ze.id,Ze])).values()];S(Ae.slice(0,3))}}})(),()=>{D=!1}},[]);const Pe="greyShade";return g?t.createElement(h.ZP,{id:"blog",heading:e,lead:l,background:"white",width:!1,padding:!1,variant:"feature",seeMoreLink:p},t.createElement(tt,null,g.map((D,M)=>t.createElement(Ne.Z,{key:M,variant:Pe==="greyShade"?B?"darkBlueWithGreenBorder":"darkBlue":"white",taxonomy:je.g.blog,color:B?"green":"pink",padded:!0,...D})))):null},tt=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 nt=n(9531),at=n(4162),rt=n(3621),lt=n(7021),it=n(1160);const ot=({title:e,intro:l,manualProgrammeSelection:r,gcmEntry:s,keywordsLevel:a,keywordsLocation:c,subject:p,nonstandard:f})=>{const g=(0,fe.v9)(ye.i8.selectors.selectVersionStatus),[S,B]=(0,t.useState)(null),ce=(D=>Object.entries(D).filter(([M])=>M!=null).map(([M,z])=>({field:M,contains:z})))({keywordsLevel:a,keywordsLocation:c,subject:p,nonstandard:f});(0,t.useEffect)(()=>{let D=!0;return(async()=>{let z=[];z=[A.Op.equalTo("sys.versionStatus",g),A.Op.equalTo("sys.contentTypeId","programme"),A.Op.or(...ce.flatMap(T=>T.contains?Array.isArray(T.contains)?T.contains.map(de=>A.Op.contains(T.field,de)):[A.Op.contains(T.field,T.contains)]:[]))];const $=new A.Query(...z);$.orderBy=A.OrderBy.asc("entryTitle");const Ce=await(0,ze.E)(Oe.cachedSearch.search($,0));if(Ce.response&&D){const de=Ce.response.items.map(ge=>(0,Oe.mapJson)(ge,it.a));if(!r||r.length===0)B(de.slice(0,4));else{const ge=[...r],Ae=[...new Map(ge.map(Ze=>[Ze.id,Ze])).values()];B(Ae.slice(0,4))}}})(),()=>{D=!1}});const Pe="stoneDark";return S?t.createElement(h.ZP,{id:"programmes",heading:e,lead:l,background:Pe,width:!1,padding:!1,variant:"feature"},t.createElement(st,null,S.map((D,M)=>t.createElement(Ne.Z,{key:M,title:D.name,taxonomy:je.g.programme,...D,padded:!0})))):null},st=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 ct=n(3230);const dt=({map:e})=>e?t.createElement(h.ZP,{id:"Maps",padding:!1,variant:"feature",background:"white",width:!1},t.createElement(mt,null,e.map((l,r)=>{const s=r%2===0?"right":"left";return t.createElement(ct.Z,{key:r,layout:s,...l})}))):null,mt=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 ut=n(8749),U=n(1183),gt=n(7552),Fe=n(8223),ht=n(6841),pt=n(697);const ft=({image:e,header:l,name:r,jobTitle:s,description:a,additionalBio:c,link:p,staffType:f="academic"})=>{const g=c?c.split(`
`):null;return t.createElement(yt,{$isLeader:!!l,$isAcademic:f==="academic"},e&&t.createElement(Et,{...e,$isLeader:!!l,$isAcademic:f==="academic"}),t.createElement(vt,{$isLeader:!!l,$isAcademic:f==="academic"},l&&t.createElement(y.ZP,{as:"div",$size:"3",$color:"stoneDark"},l),t.createElement($t,null,t.createElement(y.ZP,{as:"h3",$size:"4 serif",$color:"stoneDark"},r),s&&t.createElement(U.ZP,{$color:"black",as:"p"},s)),a&&t.createElement(U.ZP,{as:"p"},a),p?t.createElement(ut.Z,{link:p,label:r}):g?t.createElement(Fe.Z,{trigger:t.createElement(ie.ZP,{as:"button",$variant:"textSmallBluePrimary"},ht.L.readMore,t.createElement(gt.Z,{width:"1em"})),variant:"text"},t.createElement(bt,null,t.createElement(y.ZP,{as:"span",$size:"4 serif"},pt.Z.biography,": ",r),t.createElement(U.ZP,{as:"p"},a),g.map((S,B)=>B===0||S.length===0?null:t.createElement(U.ZP,{as:"p",key:B},S)))):null))},yt=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"};
}
`,Et=(0,i.default)(Q.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%"};
}
`,vt=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};
}
`,$t=i.default.div`
display: flex;
flex-direction: column;
gap: ${e=>e.theme.spacing.xxs};
`,bt=i.default.div`
display: flex;
flex-direction: column;
gap: ${e=>e.theme.spacing.s};
`,xt=ft,St=({title:e,intro:l,cta:r,cards:s})=>!s||!Array.isArray(s)?null:t.createElement(h.ZP,{id:"CardGridPeopleNonAcademic_"+e?.replace(" ",""),heading:e,lead:l,seeMoreText:r?.label,seeMoreLink:r?.path,width:!1,background:"white",padding:!1,variant:"feature"},t.createElement(Pt,null,s.map((a,c)=>t.createElement(xt,{key:c,...a,staffType:"non-academic"})))),Pt=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);
}
`,Ct=({image:e,title:l,copy:r,cta:s})=>{if(!e)return null;const a=f=>f&&f==="secondary"?"darkOutline":"blue",c=(0,fe.v9)(ye.routing.selectors.selectRouteEntryContentTypeId),p=c==="contentPage"||c==="subLandingPage";return t.createElement(Mt,{$panelSlim:p},e.src?t.createElement(Lt,{className:"contentImage",$imageSrc:e.src}):null,t.createElement(Bt,null,t.createElement(y.ZP,{as:"h2",$size:"2"},l),t.createElement("div",null,t.createElement(b.Lu,{text:r})),s?.link?t.createElement(Dt,{$variant:a(s.variant??""),path:s.link},t.createElement(U.ZP,{as:"span"},s.label)):null))},Zt=(0,i.css)`
padding: ${e=>e.theme.spacing.xxl} ${e=>e.theme.spacing.xxxl};
`,kt=(0,i.css)`
padding: ${e=>e.theme.spacing.xxl} ${e=>e.theme.spacing.xs};
`,Mt=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?kt:Zt}
}
`,Lt=i.default.div`
width: 100%;
background-size: cover;
background-position: center center;
background-image: url(/_Z8mtzw_1559e683-52c9-4836-b8e3-756a35a9bc23/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)(ie.ZP)`
@media ${e=>e.theme.mq.min.mobile} {
width: fit-content;
}
`,It=Ct,Ot=({title:e,description:l,variant:r="primary",$brandEbs:s=!1})=>{const a=r||"primary",c=Rt(a),p=At(a,s);return t.createElement(Tt,{$variant:a,$brandEbs:!0},t.createElement(wt,null,t.createElement(y.ZP,{as:"h3",$size:"2",$color:p},e),t.createElement(U.ZP,{as:"p",$align:"center",$color:c,$weight:"bold"},l)))},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};
`,wt=i.default.div`
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: ${e=>e.theme.spacing.s};
flex-grow: 1;
`,Rt=e=>{let l;switch(e){case"primary":l="white";break;case"secondary":l="blue";break}return l},At=(e,l)=>{let r;switch(e){case"primary":l?r="greenLight":r="bluebrightShade";break;case"secondary":l?r="blueDark":r="bluebright";break}return r},Gt=Ot,Wt=({title:e,intro:l,variant:r,cards:s})=>{const a=(0,w.Z)();return!s||!Array.isArray(s)?null:t.createElement(h.ZP,{id:"cardStatistics",heading:e,lead:l,width:!1,background:"white",padding:!1,variant:"feature"},t.createElement(Nt,{length:s.length},s.map((c,p)=>t.createElement(Gt,{key:p,...c,variant:r,$brandEbs:a}))))},Nt=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
);
}
`,zt=Wt;var jt=n(7493),Ft=n(6810),Ut=n(6043);const Vt=({hideItems:e,title:l,copy:r,subtitle:s,image:a,cta:c,ctaAsset:p,theme:f,layout:g="right"})=>{const S=(0,fe.v9)(Ut.Kd)==="ebs",B=$=>$==="blue"||$==="blueDark"&&!S?"bluebrightShade":($==="blueDark"||$===null)&&S?"greenShade":$==="blueBright"?"bluePrimary":$==="blueDarkWithGreenAccent"?"greenShade":"white",se=$=>$==="blueBright"?"bluePrimary":"white",ue=$=>$==="blueBright"?"black":"white",ce=$=>$==="blueBright"?"blue":$==="blueDarkWithGreenAccent"||($==="blueDark"||$===null)&&S===!0?"greenLight":$==="orchil"?"pink":$==="stone"?"sand":$==="green"?"green":"blueBright",Pe=e?.includes("title"),D=e?.includes("subtitle"),M=e?.includes("copy"),z=e?.includes("image");return t.createElement(Ht,{$hasImage:!!a&&!z,bannerTheme:f},a?.src&&!z?t.createElement(Xt,{bImage:a,role:"img","aria-label":a.alt}):null,t.createElement(Qt,{$hasImage:!!a&&!e?.includes("image"),$layout:g},l&&!Pe?t.createElement(y.ZP,{as:"h2",$size:"2",$color:B(f)},l):null,s&&!D?t.createElement(y.ZP,{as:"p",$size:"4",$color:se(f)},s):null,r&&!M?t.createElement(U.ZP,{as:"p",$color:ue(f)},r):null,c?.link?t.createElement(ie.ZP,{path:c.link,$variant:ce(f)},c.label):p?.asset?t.createElement(ie.ZP,{path:p.asset,$variant:ce(f)},p.label):null))},Kt=(0,i.css)`
@media ${e=>e.theme.mq.min.laptop} {
display: grid;
grid-template-columns: repeat(2, 1fr);
}
`,Ht=i.default.div`
${e=>e.$hasImage&&Kt}
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};
`,Qt=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_1559e683-52c9-4836-b8e3-756a35a9bc23/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_1559e683-52c9-4836-b8e3-756a35a9bc23/static/modern/js/${e=>e.bImage?.srcLarge}');
min-height: calc(
${e=>e.theme.spacing.superxl} + ${e=>e.theme.spacing.xxxl}
);
}
`,Jt=Vt;var Yt=n(9406);const qt=({formID:e})=>{const l="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(h.ZP,{heading:W.ND.donation.heading,id:"alumni-donate",padding:!1,variant:"feature"},t.createElement(ve.Z,{src:l,title:W.ND.donation.iframeTitle,height:1500,name:"blackbaud",width:425}))};var $e=n(6946);const _t=({image:e,title:l,text:r})=>t.createElement(en,null,e?t.createElement(tn,null,t.createElement(nn,{...e,sizes:$e.wi})):null,t.createElement(an,null,t.createElement(rn,null,t.createElement(ln,{$color:"stoneDark",$size:"4 serif",as:"p"},l),r?t.createElement(U.ZP,{$color:"black",as:"p"},r):null))),en=i.default.div`
position: relative;
display: flex;
flex-direction: column;
`,tn=i.default.div`
height: 20rem;
max-height: 75vh;
overflow: hidden;
@media ${e=>e.theme.mq.min.laptop} {
/* position: absolute; */
width: 100%;
height: 100%;
}
`,nn=(0,i.default)(Q.Z)`
height: 100%;
width: 100%;
object-fit: cover;
`,an=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};
`,ln=(0,i.default)(y.ZP)`
font-weight: normal;
`,on=_t;var Ue=n(7397);const sn=({slides:e})=>{const[l,r]=(0,x.Z)(),{nextBtnDisabled:s,onNextButtonClick:a,prevBtnDisabled:c,onPrevButtonClick:p}=G(r),f=K(r),g="carousel-items";return e?.length?t.createElement(cn,{"aria-label":"Featured links","aria-roledescription":"gallery"},t.createElement(gn,null,t.createElement(fn,{disabled:s,onClick:a,"aria-label":"Next slide","aria-controls":g},t.createElement(Ue.Z,{width:"1.5rem"})),t.createElement(pn,{disabled:c,onClick:p,"aria-label":"Previous slide","aria-controls":g},t.createElement(yn,{width:"1.5rem"}))),t.createElement("div",{ref:l},t.createElement(dn,{id:g,"aria-live":"polite"},e.map((S,B)=>{const se=B+1+" / "+e.length,ue=f===B;return t.createElement(mn,{key:S?.id,visible:ue,ariaLabel:se},S.slide)})))):null},cn=i.default.section`
overflow: hidden;
position: relative;
`,dn=i.default.div`
display: flex;
`,mn=({children:e,visible:l,ariaLabel:r})=>{const s=(0,t.useRef)(null);return H(s,!l),t.createElement(un,{ref:s,"aria-label":r,role:"group","aria-roledescription":"slide"},e)},un=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;
}
`,gn=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};
}
`,hn=(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;
`,Ve=(0,i.default)(L)`
position: absolute;
display: flex;
justify-content: center;
align-items: center;
@media ${e=>e.theme.mq.max.laptop} {
${hn}
}
`,pn=(0,i.default)(Ve)`
left: 1.5rem;
`,fn=(0,i.default)(Ve)`
right: 1.5rem;
`,yn=(0,i.default)(Ue.Z)`
transform: scaleX(-1);
`,En=sn;var vn=n(763);const $n=({image:e})=>{let r=(0,vn.U)({assetHeight:e.height,assetWidth:e.width,width:421});return r>640&&(r=640),r<320&&(r=320),t.createElement(xn,null,t.createElement(Cn,{title:"image",variant:"image",trigger:t.createElement(bn,null,t.createElement(Pn,{...e,width:421,height:r}))},t.createElement(Sn,{...e,width:800})),t.createElement(Zn,{...e,width:421,height:r}))},bn=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;
}
}
`,xn=i.default.div`
@media ${e=>e.theme.mq.min.tablet} {
margin-bottom: ${e=>e.theme.spacing.s};
}
`,Sn=(0,i.default)(Q.Z)`
object-fit: contain;
`,Pn=(0,i.default)(Q.Z)`
display: none;
@media ${e=>e.theme.mq.min.tablet} {
display: block;
max-height: 40rem; // 640px;
width: 100%;
object-fit: cover;
}
`,Cn=(0,i.default)(Fe.Z)`
display: none;
@media ${e=>e.theme.mq.min.tablet} {
display: block;
}
`,Zn=(0,i.default)(Q.Z)`
object-fit: cover;
@media ${e=>e.theme.mq.min.tablet} {
display: none;
}
`,kn=$n,Mn=({title:e,intro:l,images:r})=>t.createElement(h.ZP,{id:"imageGrid",heading:e,lead:l,width:!1},t.createElement(Ln,null,r.map((s,a)=>t.createElement(kn,{key:a,image:s})))),Ln=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=Mn,Dn=({mailChimpEmbedUrl:e})=>t.createElement(ve.Z,{src:e,title:W.TO.iframeTitle,height:500});var In=n(689);const On=({title:e,image:l,jobTitle:r,link:s,school:a,service:c,department:p})=>{const f=a||c,g=f?p?f+"; "+p:f:p||void 0;return t.createElement(Tn,null,t.createElement(wn,null,l&&t.createElement(Rn,{...l}),t.createElement(An,null,t.createElement(Gn,{path:s},t.createElement(Wn,{as:"h3",$size:"4 serif",$color:"stoneDark"},e)),r&&t.createElement(U.ZP,{as:"p",$color:"stoneDark"},r),g&&t.createElement(U.ZP,{as:"p",$color:"stoneDark",$styleFont:"italic"},g))))},Tn=i.default.div`
position: relative;
`,wn=i.default.div`
height: 100%;
display: flex;
flex-direction: column;
`,Rn=(0,i.default)(Q.Z)`
height: 20rem;
object-fit: cover;
object-position: top;
flex-shrink: 0;
`,An=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%;
`,Gn=(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)(y.ZP)`
font-weight: bold;
`,Nn=On,zn=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"})),jn=({id:e,text:l="Loading...",status:r})=>t.createElement(Fn,{id:e,$status:r??"not loading"},t.createElement(zn,{className:"fa-spin-pulse"}),t.createElement(U.ZP,{as:"p"},l)),Fn=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;
`,Un=jn;var Vn=n(7074);const Kn={id:"",mapper:(e=[])=>e},Hn=e=>{if(!e)return null;const[l,r]=(0,t.useState)(Kn),s=e.replace(".html",".json");return(0,t.useEffect)(()=>{const a=document.getElementById("funnelbackLoading");a&&(a.style.display="flex"),fetch(s).then(c=>{if(!c.ok)throw new Error(`HTTP error! status: ${c.status}`);return c.json()}).then(c=>{r({id:"filteredProfiles",config:{title:"Filtered profiles",customApi:{uri:s}},mapper:(p=[])=>p?.response?.resultPacket?.results?.map(g=>({id:g.title,link:g.liveUrl,title:g.listMetadata.t?.[0]??g.title,image:g.listMetadata.image?{src:g.listMetadata.image?.[0].replace("w=480","w="+$e.uh.width).replace("h=480","h="+$e.uh.height),alt:"",width:$e.uh.width,height:$e.uh.height}:$e.uh,jobTitle:g.listMetadata.jobTitle?.[0],school:g.listMetadata.school?.[0],department:g.listMetadata.department?.[0],service:g.listMetadata.service?.[0]}))}),a&&(a.style.display="none")}).catch(c=>console.error("Error:",c))},[s]),(0,Vn._7)(l)},Qn=({title:e,intro:l,url:r,profiles:s})=>{const{results:a}=Hn(r);return t.createElement(h.ZP,{id:"profiles",heading:e,lead:l,width:!1,padding:!1,variant:"feature",seeMoreLink:r},t.createElement(Un,{id:"funnelbackLoading",status:"not loading"}),t.createElement(Xn,null,a?.length>0&&a.map(c=>t.createElement(Nn,{key:c.id,...c}))))},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);
}
`,Jn=Qn,Yn=({items:e})=>{const l=(0,fe.v9)(ye.routing.selectors.selectRouteEntryContentTypeId),r=()=>l==="researchInstituteOverview"||l==="researchProjectThemeOverview"||l==="campaignPage"||l==="subLandingPage"||l==="contentPage"||l==="schoolLandingPage"||l.includes("shapingFutures")?"white":"greyShade",s=()=>l==="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 t.createElement(h.ZP,{key:(0,o.Z)()+a._type,id:(0,o.Z)(),background:"white",lead:a.lead,width:!0,padding:!0,heading:a.heading,condensed:!0},t.createElement(b.Lu,{key:(0,o.Z)(),text:a.children}));case"promoTextBlock":return t.createElement(Z,{key:(0,o.Z)(),...a});case"textBlock":return t.createElement(Me,{key:(0,o.Z)(),...a});case"genericBanner":return t.createElement(Le.Z,{key:(0,o.Z)(),...a});case"ctaBanner":return t.createElement(Jt,{key:(0,o.Z)(),...a});case"video":return t.createElement(h.ZP,{key:(0,o.Z)()+a._type,id:(0,o.Z)(),background:r(),width:!1,padding:s(),variant:"feature"},a?.videos?t.createElement(Te,{...a}):t.createElement(b.nk,{...a,background:"transparent"}));case"blogMinilist":return t.createElement(et,{key:(0,o.Z)(),...a});case"eventsMinilist":return t.createElement(qe.default,{key:(0,o.Z)(),...a});case"newsMinilist":return t.createElement(b.Xx,{key:(0,o.Z)(),...a});case"profilesMinilistFunnelback":return t.createElement(Jn,{key:(0,o.Z)(),...a});case"mailChimpSignupForm":return t.createElement(h.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(nt.default,{key:(0,o.Z)(),...a});case"programmeMinilist":return t.createElement(ot,{key:(0,o.Z)(),...a});case"formGecko":return t.createElement(rt.Z,{key:(0,o.Z)(),...a});case"maps":return t.createElement(dt,{key:(0,o.Z)(),...a});case"essenceBlock":return t.createElement(h.ZP,{key:(0,o.Z)()+a._type,id:(0,o.Z)(),background:"darkBlue",variant:"feature",width:!1,padding:!1},t.createElement(b.__,{key:(0,o.Z)(),...a}));case"banners":case"griBanners":case"gridFocusBanners":return t.createElement(b.O,{key:(0,o.Z)(),...a});case"imageGallery":return t.createElement(h.ZP,{key:(0,o.Z)()+a._type,id:(0,o.Z)(),width:!1,padding:!1},t.createElement(En,{key:(0,o.Z)(),slides:a.slides?.map(c=>({id:c.id,slide:t.createElement(on,{...c})}))}));case"spotlightCarousel":return t.createElement(I,{key:(0,o.Z)(),slides:a.slides?.map(c=>({id:c.id,slide:t.createElement(F,{...c})}))});case"quote":case"statistic":return t.createElement(b.pu,{key:(0,o.Z)(),...a});case"cardRow":return t.createElement(pe.Z,{key:(0,o.Z)(),...a});case"cardStatisticRow":return t.createElement(zt,{key:(0,o.Z)(),...a});case"cardRowPeopleNonacademic":return t.createElement(St,{key:(0,o.Z)(),...a});case"cardRowNoLinks":return t.createElement(Ee.default,{key:(0,o.Z)(),...a});case"embeddedContent":return t.createElement(Ft.Z,{key:(0,o.Z)(),...a});case"generalCardRow":return t.createElement(Yt.Z,{key:(0,o.Z)(),...a});case"testimonial":return t.createElement(h.ZP,{key:(0,o.Z)()+a._type,id:(0,o.Z)(),background:l==="campaignPage"?"darkBlue":"white",variant:"feature",width:!1,padding:!1},t.createElement(te.Z,{key:(0,o.Z)(),...a,variant:l==="campaignPage"?"darkBlue":"white"}));case"donorboxDonationForm":return t.createElement(ae.default,{key:(0,o.Z)(),...a});case"blackbaudDonationForm":return t.createElement(qt,{key:(0,o.Z)(),...a});case"blackbaudRegistrationForm":return t.createElement(jt.Z,{key:(0,o.Z)(),...a});case"searchBar":return t.createElement(lt.Z,{key:(0,o.Z)(),...a});case"formGravity":return t.createElement(at.Z,{key:(0,o.Z)(),...a});case"podcast":return t.createElement(h.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(Ye,{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,P,n)=>{n.r(P),n.d(P,{default:()=>H});var t=n(6109),o=n(3519),b=n(4586),h=n(1224),v=n(7664),Z=n(8561),i=n.n(Z),x=n(9522),G=n(6681),Y=n(1420),L=n(3714),V=n(6300),K=n(2294);const H=({title:d,intro:j,manualEventsSelection:k,keywordsLocation:N,keywordsSchools:u,keywordsType:q,seeMore:re})=>{const le=(0,G.v9)(Y.i8.selectors.selectVersionStatus),[_,I]=(0,t.useState)(null),y=(0,K.Z)(),be=(C=>Object.entries(C).filter(([E])=>E!=null).map(([E,O])=>({field:E,contains:O})))({keywordsLocation:N,keywordsSchools:u,keywordsType:q});(0,t.useEffect)(()=>{let C=!0;return(async()=>{let O=[];O=[Z.Op.equalTo("sys.versionStatus",le),Z.Op.equalTo("sys.contentTypeId","event"),Z.Op.or(...be.flatMap(R=>R.contains?Array.isArray(R.contains)?R.contains.map(F=>Z.Op.contains(R.field,F)):[Z.Op.contains(R.field,R.contains)]:[]))];const X=new Z.Query(...O);X.orderBy=Z.OrderBy.asc("date.from");const ee=await(0,x.E)(v.cachedSearch.search(X,0));if(ee.response&&C){const F=ee.response.items.map(oe=>(0,v.mapJson)(oe,L.B));if(!k||k.length===0)I(F.slice(0,3));else{const oe=[...k,...F],ke=[...new Map(oe.map(xe=>[xe.id,xe])).values()];I(ke.slice(0,3))}}})(),()=>{C=!1}},[]);const m="greyShade";return _?t.createElement(h.ZP,{id:"events",heading:d,lead:j,background:m,width:!1,padding:!1,variant:"feature",seeMoreLink:re},t.createElement(w,null,_.map((C,E)=>t.createElement(b.Z,{key:E,variant:y?"darkBlueWithGreenBorder":"darkBlue",taxonomy:V.g.event,color:y?"green":"pink",padded:!0,...C})))):null},w=o.default.div`
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: ${d=>d.theme.spacing.s};
@media ${d=>d.theme.mq.min.laptop} {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
}
`},5821:(me,P,n)=>{n.r(P),n.d(P,{default:()=>i});var t=n(6109),o=n(8102),b=n(1224),h=n(113);const v=({formID:x})=>{const G="https://donorbox.org/embed/"+x;return t.createElement(b.ZP,{heading:"Make a donation",id:"donor",padding:!1,variant:"feature"},t.createElement(o.q,{script:[{type:"text/javascript",innerHTML:Z}]}),t.createElement(h.Z,{src:G,title:"Donate to 乐播传媒",height:1075,name:"donorbox",width:425}))},Z=`
(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,P,n)=>{n.r(P),n.d(P,{default:()=>Q});var t=n(6109),o=n(3519),b=n(1224),h=n(7664),v=n(8561),Z=n(9522),i=n(6681),x=n(1420),G=n(5119),Y=n(8749),L=n(5861),V=n(5884),K=n(689),he=n(2315),H=n(5492),w=n(1183);const d=({image:m,pureProfileUrl:C,name:E,jobTitle:O,school:X,department:ee,email:R,linkedIn:F})=>t.createElement(j,null,m&&t.createElement(k,{...m}),t.createElement(N,null,t.createElement(q,{name:E,jobTitle:O,school:X,department:ee}),t.createElement(le,{email:R,linkedIn:F}),C&&t.createElement(u,{link:C,label:E}))),j=o.default.div`
display: flex;
flex-direction: column;
`,k=(0,o.default)(L.Z)`
width: 100%;
object-fit: cover;
object-position: top center;
height: 20rem;
`,N=o.default.div`
display: flex;
flex-grow: 1;
flex-direction: column;
gap: ${m=>m.theme.spacing.s};
padding: ${m=>m.theme.spacing.l} ${m=>m.theme.spacing.xs};
background-color: ${m=>m.theme.colors.grey.shade};
@media ${m=>m.theme.mq.min.tablet} {
padding: ${m=>m.theme.spacing.l} ${m=>m.theme.spacing.s};
}
`,u=(0,o.default)(Y.Z)`
margin-top: auto;
`,q=({name:m,jobTitle:C,school:E,department:O})=>{if(!m)return null;const X={$size:"4 serif",$color:"black"};return t.createElement(re,null,t.createElement(V.ZP,{...X,as:"h3"},m),C?t.createElement(w.ZP,{as:"p"},C):null,E||O?t.createElement(w.ZP,{as:"p",$styleFont:"italic"},E&&E!=="Global Research Institutes"?E:null,O?t.createElement(w.ZP,{as:"span",$styleFont:"italic"},E&&E!=="Global Research Institutes"?", ":null,O):null):null)},re=o.default.div`
display: flex;
flex-direction: column;
gap: ${m=>m.theme.spacing.s};
`,le=({email:m,linkedIn:C})=>{const E={height:"2.25rem",width:"2.25rem"};return!m&&!C?null:t.createElement(_,null,m?t.createElement(I,{path:"mailto:"+m},t.createElement("span",{className:"visually-hidden"},"Email"),t.createElement(H.FX,{...E})):null,C?t.createElement(I,{path:C},t.createElement("span",{className:"visually-hidden"},"LinkedIn"),t.createElement(he.IL,{...E})):null)},_=o.default.div`
display: flex;
gap: ${m=>m.theme.spacing.xs};
`,I=(0,o.default)(K.Z)`
display: inline-flex;
justify-content: center;
align-items: center;
color: ${m=>m.theme.colors.blue.primary};
`,y=d,Q=({title:m,intro:C,manualPeopleSelection:E,school:O,department:X,alphabeticalOrder:ee})=>{const R=(0,i.v9)(x.i8.selectors.selectVersionStatus),[F,oe]=(0,t.useState)(null),Te=(te=>Object.entries(te).filter(([ne])=>ne!=null).map(([ne,Se])=>({field:ne,contains:Se})))({school:O,department:X});(0,t.useEffect)(()=>{let te=!0;return(async()=>{let Se=[];Se=[v.Op.equalTo("sys.versionStatus",R),v.Op.equalTo("sys.contentTypeId","pureProfile"),v.Op.or(...Te.flatMap(ae=>ae.contains?Array.isArray(ae.contains)?ae.contains.map(Ee=>v.Op.contains(ae.field,Ee)):[v.Op.contains(ae.field,ae.contains)]:[]))];const Me=new v.Query(...Se);ee&&(Me.orderBy=v.OrderBy.asc("surnameFirstName"));const Le=await(0,Z.E)(h.cachedSearch.search(Me,0));if(Le.response&&te){const Ee=Le.response.items.map(W=>(0,h.mapJson)(W,G.E));if(!E||E.length===0)oe(Ee.slice(0,4));else{const W=E,ve=[];W.forEach(J=>{ve.push(J.id)});const Ge=[v.Op.equalTo("sys.versionStatus",R),v.Op.equalTo("sys.contentTypeId","pureProfile"),v.Op.or(...ve.flatMap(J=>[v.Op.equalTo("sys.id",J)]))],Be=new v.Query(...Ge);ee&&(Be.orderBy=v.OrderBy.asc("surnameFirstName"));const De=await(0,Z.E)(h.cachedSearch.search(Be,0));let Ie=[];De.response&&te&&(Ie=De.response.items);const we=[...Ie.map(J=>(0,h.mapJson)(J,G.E)),...Ee],Re=[...new Map(we.map(J=>[J.id,J])).values()];oe(Re.slice(0,E.length))}}})(),()=>{te=!1}},[]);const pe=(0,i.v9)(x.routing.selectors.selectRouteEntryContentTypeId),ye=(()=>pe==="researchInstituteOverview"||pe==="researchProjectThemeOverview"||pe==="contentPage"||pe==="subLandingPage"?"white":"greyShade")();return F?t.createElement(b.ZP,{id:"people",heading:m,lead:C,background:ye,width:!1,padding:!1,variant:"feature"},t.createElement(be,null,F.map((te,ne)=>t.createElement(y,{key:ne,...te})))):null},be=o.default.div`
display: flex;
flex-direction: column;
gap: ${m=>m.theme.spacing.xs};
@media ${m=>m.theme.mq.min.mobile} {
display: grid;
grid-template-columns: repeat(2, 1fr);
}
@media ${m=>m.theme.mq.min.tablet} {
grid-template-columns: repeat(3, 1fr);
}
@media ${m=>m.theme.mq.min.desktop} {
grid-template-columns: repeat(4, 1fr);
}
`},7021:(me,P,n)=>{n.d(P,{Z:()=>N});var t=n(6109),o=n(3519),b=n(5492),h=n(4666),v=n(2361),Z=n(6681),i=n(6043),x=n(3719),G=n(1679),Y=n(1183);const L={search:"Search",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 V=n(2294);const K=({level:u,school:q,global:re})=>{const le=(0,V.Z)(),_=(0,Z.v9)(i.Kd)??"";let I=L.programmes.all;u&&(u==="Global College"?I=L.programmes.level.globalCollege:u==="Undergraduate"?I=L.programmes.level.undergraduate:u==="Postgraduate"?I=L.programmes.level.postgraduate:u==="Research"?I=L.programmes.level.research:u==="Graduate Apprenticeships"&&(I=L.programmes.delivery.graduateApprenticeships));let y;return _&&!re&&(y=_),u&&u==="Graduate Apprenticeships"&&(y?y+=",ga+":y="ga"),q&&(y?y+=`,${q}+`:y=q),t.createElement(he,{$brandEbs:le},t.createElement(v.H,null,t.createElement(H,{action:"https://search.hw.ac.uk/s/search.html"},t.createElement("input",{type:"hidden",name:"collection",value:"heriot-watt~sp-programmes"}),t.createElement("input",{type:"hidden",name:"profile",value:"programmes"}),u&&u!=="Graduate Apprenticeships"&&t.createElement("input",{type:"hidden",name:"f.Level|level",value:u}),y&&t.createElement("input",{type:"hidden",name:"gscope1",value:y}),t.createElement(w,{placeholder:I,name:"query",type:"search","aria-label":I}),!u&&t.createElement("select",{name:"f.Level|level","aria-label":x.OP.level},t.createElement("option",{value:""},"Select study level"),t.createElement("option",{value:x.RD.globalCollege},x.RD.globalCollege),t.createElement("option",{value:x.RD.undergraduate},x.RD.undergraduate),t.createElement("option",{value:x.RD.postgraduate},x.RD.postgraduate),t.createElement("option",{value:x.RD.research},x.RD.research)),t.createElement(d,{as:"button",type:"submit",$variant:le?"greenLight":"blueBright"},t.createElement(Y.ZP,{as:"span"},L.search),t.createElement(j,{as:"span"},t.createElement(k,null))))))},he=(0,o.default)(v.Y)`
background-color: ${u=>u.$brandEbs?u.theme.colors.blue.dark:u.theme.colors.blue.primary};
padding-top: ${u=>u.theme.spacing.l};
padding-bottom: ${u=>u.theme.spacing.l};
`,H=o.default.form`
${G.r}
color: ${u=>u.theme.colors.neutral.white};
display: flex;
flex-direction: column;
gap: ${u=>u.theme.spacing.xs};
max-width: 60rem;
@media ${u=>u.theme.mq.min.laptop} {
flex-direction: row;
gap: ${u=>u.theme.spacing.s};
}
`,w=o.default.input`
flex-grow: 1;
`,d=(0,o.default)(h.ZP)`
display: flex;
align-items: center;
gap: ${u=>u.theme.spacing.xs};
`,j=(0,o.default)(Y.ZP)`
display: inline-flex;
`,k=(0,o.default)(b.L)`
height: auto;
width: 1.25rem;
`,N=K},9522:(me,P,n)=>{n.d(P,{E:()=>t});const t=o=>o.then(b=>({error:null,response:b})).catch(b=>({error:b,response:null}))}}]);