"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[149,823],{79583:(L,D,o)=>{o.d(D,{A:()=>k,o:()=>M});var e=o(67115),v=o(14646),d=o(78799),z=o(67820);const A=({buttonTheme:s="primary"})=>(0,e.AH)` display: inline-block; inline-size: fit-content; padding: ${v.YK.xxs}; border: 2px solid ${d.U[s].default.border}; border-radius: 5px; text-align: center; text-decoration: none; font-weight: 700; color: ${d.U[s].default.text}; background-color: ${d.U[s].default.background}; transition: all 0.3s ease-in-out; touch-action: manipulation; cursor: pointer; a:visited { color: ${d.U[s].default.text}; } :not(:disabled) { &:hover, &:focus-visible { background-color: ${d.U[s].hover.background}; color: ${d.U[s].hover.text}; border: 2px solid ${d.U[s].hover.border}; transition: all 0.3s ease-in-out; transform: scale(1.05); } &:focus-visible { outline: 2px solid ${d.U[s].focus.border}; outline-offset: 0; } } &:disabled { cursor: not-allowed; opacity: 0.5; } .canvas-button { &:hover, &:focus-visible { background-color: ${d.U[s].hover.background}; color: ${d.U[s].hover.text}; border: 2px solid ${d.U[s].hover.border}; transition: all 0.3s ease-in-out; } &:focus-visible { outline: 2px solid ${d.U[s].focus.border}; outline-offset: 0; } } `,k=e.Ay.button` ${A} `,M=(0,e.Ay)(z.A)` ${A} `},69352:(L,D,o)=>{o.d(D,{A:()=>z});var e=o(48322),v=o(79583);const z=({label:A,buttonTheme:k,onClick:M,link:s,className:C,...T})=>A?s?e.createElement(v.o,{className:`button__link ${C||""}`,path:s,buttonTheme:k,id:s.startsWith("https://digital.ucas.com/")?"primary-cta":"",...T},A):e.createElement(v.A,{className:`button ${C||""}`,onClick:M,buttonTheme:k,...T},A):null},83652:(L,D,o)=>{o.r(D),o.d(D,{default:()=>d});var e=o(48322);const d=({className:z,text:A})=>!A||A.length<=0?null:e.createElement("div",{className:`markup ${z||""}`,dangerouslySetInnerHTML:{__html:A}})},47068:(L,D,o)=>{o.d(D,{A:()=>M});var e=o(48322),v=o(67115);const z=v.Ay.form` ${({theme:{colors:s,spacing:C}})=>(0,v.AH)` display: flex; width: 100%; justify-content: center; .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; } input[type='search'] { -webkit-appearance: none; appearance: none; border: 0; outline: none; box-shadow: none; /* Prevent iOS zoom on focus */ font-size: 16px; line-height: 1.5; } /* Hide native iOS search decorations/cancel button */ input[type='search']::-webkit-search-cancel-button, input[type='search']::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; } input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px inherit inset; -webkit-text-fill-color: inherit; transition: background-color 9999s ease-in-out 0s; } button { -webkit-appearance: none; appearance: none; } .search-input__input { max-width: 650px; width: 100%; min-height: 40px; padding: 0 10px; border: 1px solid ${s.light.brand.lightGold}; border-radius: 5px 0 0 5px; font-size: 1rem; outline: none; transition: all 0.3s; &:focus { outline: none; box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5); } } .search-input__icon { } .search-input__default-button { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 50px; padding: 0 ${C.xxxs}; border: none; border-radius: 0 5px 5px 0; font-size: 1rem; background-color: ${s.light.brand.midBlue}; color: #fff; cursor: pointer; transition: all 0.3s; &:hover { background-color: ${s.light.brand.darkBlue}; } &:focus { outline: none; box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5); } } .search-input__listing-input { width: 100%; min-height: 48px; padding: 0 10px; border: 1px solid ${s.light.brand.lightGold}; border-right-color: ${s.light.neutral.white}; border-radius: 5px 0 0 5px; font-size: 1rem; outline: none; transition: all 0.3s; border-right: none; &:focus { outline: none; box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5); } } .search-input__listing-button { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 50px; padding: 0 ${C.xxxs}; border: 1px solid ${s.light.brand.lightGold}; border-left-color: ${s.light.neutral.white}; border-radius: 0 5px 5px 0; font-size: 1rem; background-color: ${s.light.neutral.white}; color: ${s.light.brand.midBlue}; cursor: pointer; transition: all 0.3s; border-left: none; &:hover { color: ${s.light.neutral.white}; background-color: ${s.light.brand.darkBlue}; } } `} `;var A=o(28203);const M=({className:s,placeholder:C,value:T="",autofocus:V=!1,isListing:j=!1,submit:F})=>{const[J,X]=(0,e.useState)(!1),[H,G]=(0,e.useState)(T),Z=i=>{i.preventDefault(),X(!J)},I=i=>{G(i.target.value)},O=(0,e.useRef)(null),q=i=>{const Q=`/search.aspx?term=${i}`;location.href=Q},W=i=>{i.preventDefault(),j?F(H):q(H)};return(0,e.useEffect)(()=>{G(T)},[T]),e.createElement(z,{onSubmit:i=>{i.preventDefault(),W(i)},autoCapitalize:"off",className:`${s||""}`,onKeyDown:i=>i.key==="Enter"?W(i):null},e.createElement("label",{className:"sr-only",htmlFor:"searchInput"},"Keyword search"),e.createElement("input",{type:"search",value:H,onChange:I,placeholder:C||"Search",id:"searchInput",ref:O,autoFocus:V,autoCapitalize:"off",autoCorrect:"off",enterKeyHint:"search",className:j?"search-input__listing-input":"search-input__input"}),e.createElement("button",{type:"submit",value:"search",onClick:i=>W(i),onKeyDown:i=>i.key==="Enter"?Z(i):null,className:j?"search-input__listing-button":"search-input__default-button"},e.createElement("label",{className:"sr-only",htmlFor:"searchInput"},"Search"),e.createElement(A.A,{className:"search-input__icon",size:22,icon:"search"})))}},70149:(L,D,o)=>{o.d(D,{A:()=>xe});var e=o(48322),v=o(43266),d=o(67115);const A=d.Ay.div` ${({theme:{colors:t,spacing:n}})=>(0,d.AH)` position: relative; padding-block: ${n.xs}; background-color: ${t.light.system.alerts}; .u-container { display: flex; justify-content: space-between; gap: ${n.xxs}; } .alert__text-container { max-width: 75ch; } .alert__description { margin-block-start: 0.5em; } .alert__link { margin-block-start: 1em; } .alert__button { align-self: flex-start; padding: ${n.xxxs}; } .alert__icon { min-height: 20px; min-width: 20px; } `} `;var k=o(28203),M=o(69352),s=o(83652);const T=({title:t,description:n,link:a})=>{const[b,c]=(0,e.useState)(!0);(0,e.useEffect)(()=>{sessionStorage.getItem("alertDismissed")||c(!0)},[]);const f=()=>{c(!1),sessionStorage.setItem("alertDismissed","true")};return!b||!t?null:e.createElement(A,null,e.createElement("div",{className:"u-container"},e.createElement("div",{className:"alert__text-container"},e.createElement("h2",{className:"alert__title"},t),n&&e.createElement(s.default,{className:"alert__description flow",text:n}),a&&e.createElement(M.A,{className:"alert__link",link:a,label:"Find out more",buttonTheme:"clear"})),e.createElement(M.A,{className:"alert__button",onClick:f,buttonTheme:"none",label:e.createElement(e.Fragment,null,e.createElement(k.A,{className:"alert__icon",icon:"close",size:24}),e.createElement("span",{className:"sr-only alert__dismiss-message"},"Dismiss alert message"))})))};var V=o(94836),j=o(39966);function F(t,n={}){return{type:t,...n}}const J=()=>F(GET_SITE_CONFIG),X=t=>F(j.ux,t),G=d.Ay.div` ${({theme:{colors:t}})=>(0,d.AH)` position: fixed; inset: auto 0 0 0; padding: var(--space-s-m) 0; width: 100%; color: white; background-color: ${t.light.neutral.grey80}; z-index: 9999; a { color: ${t.light.brand.lightBlue}; } .cookie-banner__content { display: flex; justify-content: space-between; align-items: center; gap: var(--grid-gutter); } .cookie-banner__dismiss { flex: 0 0 52px; border-color: white; color: white; } `} `,I=()=>{const t=(0,v.wA)(),[n,a]=(0,V.lT)(["cookiePolicy"]),b=()=>{a("cookiePolicy",!0)};return n.cookiePolicy&&t(X(!0)),n.cookiePolicy?null:e.createElement(G,null,e.createElement("div",{className:"u-container"},e.createElement("div",{className:"cookie-banner__content"},e.createElement("p",null,"We use cookies to enhance your online experience. To find out more, please read our"," ",e.createElement("a",{href:"/contact/cookies-notice.aspx"},"Cookies Notice")," and"," ",e.createElement("a",{href:"/contact/privacy-notice.aspx"},"Privacy Notice"),"."),e.createElement(M.A,{buttonTheme:"clear",label:e.createElement(e.Fragment,null,e.createElement("span",{className:"sr-only"},"Close cookie banner"),e.createElement(k.A,{icon:"close",size:16})),onClick:()=>b(),className:"cookie-banner__dismiss"}))))};var O=o(39289);const W=d.Ay.footer` ${({theme:{colors:t,mq:n,spacing:a}})=>(0,d.AH)` .footer__top { background-color: ${t.light.brand.darkBlue}; padding: ${a.xs} 0; @media ${n.min.px.tablet} { padding: ${a.m} 0; } } .footer__heading { font-weight: 700; } .footer__container { display: flex; flex-direction: column; .footer__logo-row { @media ${n.min.px.tablet} { margin-bottom: ${a.s}; } .link { display: flex; width: fit-content; } .footer__logo { height: 70px; max-width: 150px; fill: ${t.light.neutral.white}; @media ${n.min.px.tablet} { max-width: 207px; } } } .footer__list-columns { display: flex; flex-direction: column; @media ${n.min.px.tablet} { flex-direction: row; flex-wrap: wrap; gap: ${a.s}; } @media ${n.min.px.largeDesktop} { gap: ${a.l}; flex-wrap: nowrap; } } .footer__columns-row { display: flex; flex-direction: column; @media ${n.min.px.tablet} { flex-direction: row; gap: ${a.xs}; .footer__column { flex: 1 1 45%; } .footer__map-column { flex: 1 1 100%; } } @media ${n.min.px.largeDesktop} { flex-direction: row; .footer__column { flex: 1 1 0; } .footer__map-column { flex: 2 1 0; } } } .footer__mobile-only { display: block; border-bottom: 1px solid ${t.light.neutral.white}; padding: ${a.xs} 0; @media ${n.min.px.tablet} { display: none; } } .footer__desktop-only { display: none; @media ${n.min.px.tablet} { display: block; } } .footer__column { flex: 1 1 0; min-width: 0; border-radius: 4px; color: ${t.light.neutral.white}; ul { display: flex; flex-direction: column; gap: ${a.xs}; margin: ${a.xs} 0 0 0; padding: 0; list-style: none; @media ${n.min.px.tablet} { margin: ${a.xs} 0; } } a { color: ${t.light.neutral.white}; text-decoration: none; &:hover { text-decoration: underline; } } .footer__dropdown-toggle { background: none; border: none; font-weight: bold; /* font-size: 1rem; */ cursor: pointer; color: ${t.light.neutral.white}; display: flex; flex-direction: row; justify-content: space-between; width: 100%; padding: 0; .chevron-icon { width: 24px; } } .footer__dropdown-panel { display: flex; flex-direction: column; } } .footer__map-column { min-width: 220px; padding: 0; display: flex; flex-direction: column; border-left: none; color: ${t.light.neutral.white}; margin-top: ${a.s}; @media ${n.min.px.tablet} { margin-top: 0; flex: 2 1 0; } @media ${n.min.px.largeDesktop} { margin-top: 0; padding: 0 0 0 ${a.m}; border-left: 2px solid ${t.light.brand.midBlue}; } .footer__map-panel { display: flex; flex-direction: column; gap: ${a.xxs}; margin: ${a.s} 0 0 0; padding: 0; } .footer__map { display: flex; align-items: center; justify-content: center; position: relative; img { object-fit: cover; width: 100%; height: 100%; max-height: 450px; display: block; border-radius: 10px; } .footer__map-pin { position: absolute; top: 45%; left: 45%; transform: translate(-50%, -100%); pointer-events: none; .footer__map-pin-icon { color: ${t.light.brand.midBlue}; font-size: 2rem; height: 62px; width: 62px; } } } } .footer__socials { display: flex; flex-direction: row; margin-top: 3rem; align-self: center; @media ${n.min.px.tablet} { align-self: flex-end; } } } .footer__middle { background: ${t.light.neutral.white}; ul { padding: ${a.xxs} 0; list-style: none; display: flex; flex-direction: column; gap: ${a.xxs}; align-items: center; @media ${n.min.px.tablet} { flex-direction: row; align-items: flex-start; } a { color: ${t.light.neutral.black}; text-decoration: none; &:hover { text-decoration: underline; } } } } .footer__bottom { background-color: ${t.light.brand.midBlue}; .copyright { padding-top: ${a.xs}; padding-bottom: ${a.xs}; color: ${t.light.neutral.white}; } } `} `;var i=o(67820),Q=o(42501),ae=o(78739);const oe=()=>{const t=(0,v.d4)(O.oL),[n,a]=(0,e.useState)([]),b=new Date().getFullYear();if(!t)return null;const c=l=>{a(r=>r.includes(l)?r.filter(p=>p!==l):[...r,l])},{getInTouch:f,linksColumnOne:N,linksColumnTwo:x,linksColumnThree:g,linksColumnFour:$,linksBottom:_,mapImage:m,mapText:h}=t,E=[{title:f.heading,items:[...f.phone?[{label:f.phone,url:`tel:${f.phone}`,isPhone:!0}]:[],...f.email?[{label:f.email,url:`mailto:${f.email}`}]:[]]},{title:N.heading,items:N.items},{title:x.heading,items:x.items},{title:g.heading,items:g.items},{title:$.heading,items:$.items}];return e.createElement(W,null,e.createElement("div",{className:"footer__top"},e.createElement("div",{className:"footer__container u-container"},e.createElement("div",{className:"footer__logo-row"},e.createElement(i.A,{path:"/"},e.createElement(k.A,{className:"footer__logo",icon:"logo"}),e.createElement("span",{className:"sr-only"},"Return to the homepage"))),e.createElement("div",{className:"footer__columns-row"},e.createElement("div",{className:"footer__list-columns"},E.map((l,r)=>e.createElement("div",{className:"footer__column",key:r},e.createElement("div",{className:"footer__mobile-only"},e.createElement("button",{className:"footer__dropdown-toggle","aria-expanded":n.includes(r),onClick:()=>c(r)},l.title,e.createElement(k.A,{className:"chevron-icon",icon:"arrowDown"})),n.includes(r)&&e.createElement("ul",{className:"footer__dropdown-panel"},l.items.map((p,u)=>e.createElement("li",{key:u},e.createElement(i.A,{className:p.isPhone?"footer__phone-link":void 0,key:u,path:p.url},p.label))))),e.createElement("div",{className:"footer__desktop-only"},e.createElement("p",{className:"footer__heading h4"},l.title),e.createElement("ul",{className:"footer__list-panel"},l.items.map((p,u)=>e.createElement("li",{key:u},e.createElement(i.A,{className:p.isPhone?"footer__phone-link":void 0,key:u,path:p.url},p.label)))))))),e.createElement("div",{className:"footer__map-column"},e.createElement("p",{className:"footer__heading h4"},"We are here"),e.createElement("div",{className:"footer__map-panel"},e.createElement("div",null,h),e.createElement("div",{className:"footer__map"},m&&e.createElement(Q.A,{...m}))))),e.createElement("div",{className:"footer__socials"},e.createElement(ae.A,null)))),e.createElement("div",{className:"footer__middle"},e.createElement("div",{className:"u-container"},e.createElement("ul",null,_.map((l,r)=>e.createElement("li",{key:r},e.createElement(i.A,{key:r,path:l.url},l.label)))))),e.createElement("div",{className:"footer__bottom"},e.createElement("div",{className:"copyright u-container"},e.createElement("p",null,"\xA9 ",b," ºÚÁÏÍø"))))},re=d.Ay.header` ${({theme:{colors:t,spacing:n,mq:a}})=>(0,d.AH)` display: block; width: 100%; background-color: ${t.light.brand.darkBlue}; .header__logo { height: 70px; max-width: 150px; fill: ${t.light.neutral.white}; @media ${a.min.px.tablet} { max-width: 207px; } } &.header--homepage { position: sticky; top: 0; z-index: 1000; transition: transform 0.3s ease; background: transparent; .header__sub-nav { border-top-left-radius: 30px; } .header__container { background-color: ${t.light.brand.darkBlue}; border-bottom-left-radius: 30px; transition: background-color 0.3s ease, backdrop-filter 0.3s ease; padding: 0 ${n.s}; max-width: var(--grid-max-width); } .header__outer-wrapper { max-width: var(--grid-max-width); margin: 0 auto; padding-inline: 0; @media ${a.min.px.desktop} { padding-inline: var(--grid-gutter); } } .header__sub-menu-container, .mobile-nav__container, .header__sub-menu-one, .header__top-item, .mobile-nav__back-button { border-top-left-radius: 30px; } .mobile-nav__top-menu-list-item:first-child .mobile-nav__top-menu-button { border-top-left-radius: 30px; } .mobile-nav__container { padding-inline: 0; background-color: ${t.light.neutral.lightGrey}; } .header__search-container { padding: 0; background-color: transparent; max-width: var(--grid-max-width); @media (min-width: 990px) { padding: 0 ${n.s}; } form { height: 100%; padding-top: ${n.s}; padding-bottom: ${n.s}; background-color: ${t.light.brand.lightBlue}; border-top-left-radius: 30px; padding: ${n.s}; overflow: hidden; -webkit-mask-image: -webkit-radial-gradient(white, black); } } } &.header--open-days { position: absolute; top: 0; left: 0; right: 0; z-index: 1000; background: transparent; .header__desktop-nav-static-link { color: ${t.light.neutral.white}; } } &.header--hidden { transform: translateY(calc(-100% - 15px)); } &.header--visible-translucent { .header__container { background-color: rgba(0, 0, 51, 0.7); backdrop-filter: blur(6px); } } .header__outer-wrapper { position: relative; padding-inline: var(--grid-gutter); } .header__container { position: relative; display: flex; flex-direction: row; align-items: center; justify-content: space-between; width: 100%; height: 100px; margin: 0 auto; } .header__button { cursor: pointer; padding: 0; border: none; background-color: transparent; color: ${t.light.neutral.white}; } .header__button--search { padding: 8px; } .header_button-container { display: flex; align-items: center; gap: 4px; cursor: pointer; @media ${a.min.px.tablet} { gap: ${n.xxxs}; } } .header__search-container { z-index: 999; position: absolute; display: flex; align-items: center; justify-content: center; padding: ${n.s}; margin: 100px auto 0 auto; left: 0; right: 0; top: 0; width: 100%; height: auto; opacity: 1; background-color: ${t.light.brand.lighterBlue}; transition: opacity ease-in-out 1s; } `} `;var le=o(8981);const ie=d.Ay.div` ${({theme:{colors:t,spacing:n}})=>(0,d.AH)` .mobile-nav__container { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; width: 100vw; margin: 0; transition: transform 200ms ease, opacity 200ms ease; opacity: 1; position: fixed; left: 0; right: 0; top: 100px; /* header height */ bottom: 0; height: calc(100dvh - 100px); height: calc(100vh - 100px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; z-index: 1001; background-color: ${t.light.neutral.lightGrey}; padding-bottom: env(safe-area-inset-bottom); } .mobile-nav__top-menu-list { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; list-style-type: none; padding: 0; margin: 0; width: 100%; .mobile-nav__top-menu-list-item { width: 100%; } } .mobile-nav__top-menu-button, .mobile-nav__sub-menu-button, .mobile-nav__sub-menu-link { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 100%; padding: ${n.xs} ${n.s}; border: none; background-color: ${t.light.neutral.lightGrey}; font-weight: 700; color: ${t.light.brand.darkBlue}; &.hidden { display: none; } } .mobile-nav__sub-menu-link { text-decoration: 1px underline ${t.light.brand.midBlue}; text-underline-offset: 10px; } button { cursor: pointer; } .mobile-nav__back-button { display: flex; justify-content: flex-start; align-items: center; width: 100%; gap: ${n.xxxs}; padding: ${n.xs} ${n.s}; border: none; background-color: ${t.light.brand.lightestGold}; position: sticky; /* keep the back button visible at the top while scrolling */ top: 0; z-index: 1; } .mobile-nav__sub-menu-one-container { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; margin: 0 auto; transition: all ease-in-out 1s; opacity: 1; position: absolute; left: 0; right: 0; top: 0; margin-top: 100px; height: 100%; z-index: 999; background-color: ${t.light.brand.darkBlue}; } .mobile-nav__sub-menu-list { color: ${t.light.brand.gold}; margin: 0; list-style-type: none; width: 100%; padding: 0; } .mobile-nav__sub-menu-top-item { display: flex; gap: ${n.xxxs}; padding: ${n.xs} ${n.s}; color: ${t.light.neutral.black}; font-weight: 700; font-style: italic; background-color: ${t.light.brand.lighterBlue}; &.one { &.hidden { display: none; } } &.two { &.hidden { display: none; } } .mobile-nav__sub-menu-top-item-link { color: ${t.light.brand.gold}; } } .mobile-nav__sub-menu-two-item { padding-bottom: ${n.xxs}; } .mobile-nav__top-menu-one-icon { &.active { transform: rotate(90deg); } } .mobile-nav__menu-chevron { color: ${t.light.brand.darkBlue}; } .mobile-nav__sub-menu-one-icon { cursor: pointer; } li { text-underline-offset: 5px; } .mobile-nav__sub-menu-one-link, .mobile-nav__top-menu-button { font-weight: 700; color: ${t.light.brand.darkBlue}; } .mobile-nav__sub-menu-two { margin: 0; padding: ${n.xxs}; list-style-type: none; width: 100%; } .mobile-nav__sub-menu-two-link { color: ${t.light.brand.lightestGold}; } `} `,se=({navMenu:t})=>{const[n,a]=(0,e.useState)(100),[b,c]=(0,e.useState)(100),[f,N]=(0,e.useState)(100),[x,g]=(0,e.useState)(!1),[$,_]=(0,e.useState)(!1),[m,h]=(0,e.useState)(!1);return e.createElement(ie,null,e.createElement("div",{className:"mobile-nav__container"},x&&e.createElement("button",{onClick:E=>{E.stopPropagation(),g(!1),_(!1),a(100),c(100),N(100),h(!1)},className:"mobile-nav__back-button","aria-label":"Back to main menu","aria-expanded":x},e.createElement(k.A,{className:"mobile-nav__back-button-icon",icon:"arrowLeft",size:24}),"Back to main menu"),e.createElement("ul",{className:"mobile-nav__top-menu-list"},t.map((E,l)=>e.createElement("li",{className:"mobile-nav__top-menu-list-item",key:l,role:"menuitem"},e.createElement("button",{className:`mobile-nav__top-menu-button ${x?"hidden":""}`,"aria-label":E.label,"aria-expanded":n===l,onClick:()=>{a(l===n?100:l),c(100),g(!0)},onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),r.stopPropagation(),a(l===n?100:l),c(100),g(!0))}},E.label,e.createElement(k.A,{className:"mobile-nav__menu-chevron",icon:"arrowRight",size:24})),l===n&&e.createElement("ul",{className:`mobile-nav__sub-menu-list ${n===l?"active":""}`},e.createElement("li",{className:`mobile-nav__sub-menu-top-item one ${$?"hidden":""}`,role:"menuitem"},"pages in",e.createElement(i.A,{path:E.url,className:"mobile-nav__sub-menu-top-item-link"},E.label)),E.subMenuOne?.map((r,p)=>e.createElement("li",{key:p,className:"mobile-nav__sub-menu-one-item",role:"menuitem"},r.subMenuTwo&&r.subMenuTwo.length>0?e.createElement("button",{className:`mobile-nav__sub-menu-button ${$?"hidden":""}`,"aria-label":r.label,"aria-expanded":b===p,onClick:u=>{u.stopPropagation(),c(r.subMenuTwo&&r.subMenuTwo.length>0&&p!==b?p:b===p?100:b),_(!0)},onKeyDown:u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),u.stopPropagation(),c(r.subMenuTwo&&r.subMenuTwo.length>0&&p!==b?p:b===p?100:b),_(!0))}},r.label,e.createElement(k.A,{className:"mobile-nav__menu-chevron",icon:"arrowRight",size:24})):e.createElement(i.A,{className:`mobile-nav__sub-menu-link ${$?"hidden":""}`,path:r.url},r.label),p===b&&e.createElement("ul",{className:"mobile-nav__sub-menu-list"},e.createElement("li",{className:`mobile-nav__sub-menu-top-item two ${m?"hidden":""}`,role:"menuitem"},"pages in",e.createElement(i.A,{path:r.url,className:"mobile-nav__sub-menu-top-item-link"},r.label)),r.subMenuTwo?.map((u,S)=>e.createElement("li",{key:S,className:"mobile-nav__sub-menu-item",role:"menuitem"},u.subMenuThree&&u.subMenuThree.length>0?e.createElement("button",{className:`mobile-nav__sub-menu-button ${m?"hidden":""}`,onClick:y=>{y.stopPropagation(),N(S),h(!0)},onKeyDown:y=>{(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),y.stopPropagation(),N(S),h(!0))},"aria-label":u.label,"aria-expanded":f===S},u.label,e.createElement(k.A,{className:"mobile-nav__menu-chevron",icon:"arrowRight",size:24})):e.createElement(i.A,{className:`mobile-nav__sub-menu-link ${m?"hidden":""}`,path:u.url},u.label),S===f&&e.createElement("ul",{className:"mobile-nav__sub-menu-list"},e.createElement("li",{className:"mobile-nav__sub-menu-top-item three",role:"menuitem"},"pages in",e.createElement(i.A,{path:u.url,className:"mobile-nav__sub-menu-top-item-link"},u.label)),u.subMenuThree?.map((y,P)=>e.createElement("li",{key:P,className:"mobile-nav__sub-menu-item",role:"menuitem"},e.createElement(i.A,{className:"mobile-nav__sub-menu-link",path:y.url},y.label)))))))))))))))};var ce=o(47068),ue=o(81333),de=o(90490),me=o.n(de),ee=o(11029);const he=d.Ay.nav` ${({theme:{colors:t,spacing:n}})=>(0,d.AH)` display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 0 ${n.s}; .header__desktop-nav { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 0 ${n.s}; } .header__desktop-nav-list-item, .header__button { color: ${t.light.neutral.white}; font-size: 1rem; font-weight: 500; cursor: pointer; } .header__desktop-nav-static-link { color: ${t.light.brand.lightGold}; font-size: 1rem; font-weight: 500; cursor: pointer; text-decoration: none; } .header__desktop-nav-list { display: flex; flex-direction: row; justify-content: space-between; align-items: center; list-style-type: none; height: 100%; gap: ${n.s}; padding: 0; margin: 0; } .header__sub-nav { display: flex; align-items: center; justify-content: center; width: 100%; max-width: var(--grid-max-width); margin: 0 auto; transition: all ease-in-out 1s; opacity: 1; position: absolute; left: 0; right: 0; top: 0; margin-top: 100px; height: max-content; z-index: 999; background-color: ${t.light.neutral.white}; } .header__sub-menu-container { display: grid; align-items: start; grid-template-columns: repeat(3, 1fr); width: 100%; color: ${t.light.neutral.black}; border: 1px solid ${t.light.neutral.lightGrey}; } .header__sub-menu-one { display: flex; width: 100%; position: relative; left: 0; flex-direction: column; list-style-type: none; margin: 0; padding: 0; background-color: ${t.light.neutral.white}; .header__sub-menu-one-item { :hover { background-color: ${t.light.neutral.lightGrey}; } :hover .header__sub-menu-two { background-color: ${t.light.neutral.lightGrey}; } } } .header__sub-menu-two { background-color: ${t.light.neutral.white}; position: absolute; list-style-type: none; height: 100%; width: 100%; left: 100%; top: 0; bottom: 0; padding: 0; margin: 0; z-index: 999; height: 100%; .header__sub-menu-two-item { :hover .header__sub-menu-three { background-color: ${t.light.brand.lightestGold}; } } } .header__sub-menu-three { background-color: ${t.light.neutral.white}; position: absolute; list-style-type: none; height: 100%; width: 100%; left: 100%; top: 0; bottom: 0; z-index: 999; padding: 0; height: 100%; } .header__sub-menu-one-item, .header__sub-menu-two-item, .header__sub-menu-three-item { display: flex; align-items: center; justify-content: space-between; padding: ${n.xxs} ${n.s}; width: 100%; } .header__sub-menu-one-item { :hover { .header__sub-menu-one-link::after { width: 100%; } } } .header__sub-menu-two-item { :hover { .header__sub-menu-two-link::after { width: 100%; } } } .header__sub-menu-three-item { :hover { .header__sub-menu-three-link::after { width: 100%; } } } .header__top-item { background-color: ${t.light.brand.lighterBlue}; padding: ${n.xxs} ${n.xxs}; text-align: start; } .header__top-item-link { text-decoration: none; border-bottom: 2px solid ${t.light.brand.gold}; color: ${t.light.brand.gold}; } .header__sub-menu-one-link, .header__sub-menu-two-link, .header__sub-menu-three-link { display: flex; position: relative; height: 100%; inline-size: max-content; color: ${t.light.brand.darkBlue}; font-weight: 700; text-decoration: none; transition: color 0.3s ease; cursor: pointer; &::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 2px; background: ${t.light.brand.midBlue}; transition: width 0.3s ease-in-out; } } .header__sub-menu-one-icon, .header__sub-menu-two-icon { transition: transform 0.3s ease-in-out; } .header__sub-menu-one-item { :hover { .header__sub-menu-one-icon { transform: rotate(90deg); } } } .header__sub-menu-two-item { :hover { .header__sub-menu-two-icon { transform: rotate(90deg); } } } .header__sub-menu-two, .header__sub-menu-three { display: none; } .header__sub-menu-button { background-color: transparent; border: none; cursor: pointer; } .header__sub-menu-one-item:hover .header__sub-menu-two, .header__sub-menu-two.active, .header__sub-menu-three.active { display: block; min-height: 100%; max-height: max-content; } .header__sub-menu-two.active { background-color: ${t.light.neutral.lightGrey}; } .header__sub-menu-three.active { background-color: ${t.light.brand.lightestGold}; } .header__sub-menu-two-item:hover .header__sub-menu-three { display: block; min-height: 100%; height: max-content; } .header__sub-menu-card { display: flex; flex-direction: column; gap: ${n.xxs}; padding: ${n.s}; color: ${t.light.neutral.black}; } .header__sub-menu-card-image { max-height: 300px; } `} `,pe=({navMenu:t,featureLinks:n,setActiveItem:a,activeItem:b,setActiveSubMenu:c,activeSubMenu:f,setActiveSubTwoMenu:N,activeSubTwoMenu:x})=>!t||!n?null:e.createElement(he,null,e.createElement("ul",{className:"header__desktop-nav-list"},n&&n.map((g,$)=>e.createElement("li",{key:$,className:"header__desktop-nav-static-list-item"},e.createElement(i.A,{className:"header__desktop-nav-static-link",path:g.url},g.label))),t.map((g,$)=>e.createElement("li",{className:"header__desktop-nav-list-item",key:$},e.createElement("button",{className:"header__button",onClick:()=>a(b!==$?$:100)},g.label),b===$&&e.createElement("div",{className:"header__sub-nav"},e.createElement("div",{className:"header__sub-menu-container"},e.createElement("ul",{className:"header__sub-menu-one"},e.createElement("li",{className:"header__top-item"},e.createElement(i.A,{className:"header__top-item-link",path:g.url},g.label)),g.subMenuOne?.map((_,m)=>e.createElement("li",{key:m,className:"header__sub-menu-one-item"},e.createElement(i.A,{className:"header__sub-menu-one-link",path:_.url},_.label),_.subMenuTwo&&_.subMenuTwo.length>0&&e.createElement("button",{onKeyDown:h=>{h.key==="Enter"&&(h.preventDefault(),h.stopPropagation(),c(m))},className:"header__sub-menu-button"},e.createElement(k.A,{className:"header__sub-menu-one-icon",icon:"arrowRight",size:24})),_.subMenuTwo&&_.subMenuTwo.length>0&&e.createElement("ul",{className:`header__sub-menu-two ${f===m?"active":""}`},_.subMenuTwo.map((h,E)=>e.createElement("li",{key:E,className:"header__sub-menu-two-item"},e.createElement(i.A,{className:"header__sub-menu-two-link",path:h.url},h.label),h.subMenuThree&&h.subMenuThree.length>0&&e.createElement("button",{onKeyDown:l=>{l.key==="Enter"&&(l.preventDefault(),l.stopPropagation(),N(E))},className:"header__sub-menu-button"},e.createElement(k.A,{className:"header__sub-menu-two-icon",icon:"arrowRight",size:24})),h.subMenuThree&&h.subMenuThree.length>0&&e.createElement("ul",{className:`header__sub-menu-three ${x===E?"active":""}`},h.subMenuThree.map((l,r)=>e.createElement("li",{key:r,className:"header__sub-menu-three-item"},e.createElement(i.A,{className:"header__sub-menu-three-link",path:l.url},l.label)))))))))),g.cards&&g.cards.map((_,m)=>e.createElement(i.A,{key:m,path:_.url,className:"header__sub-menu-card"},e.createElement("img",{src:_.image?.src,alt:_.image?.alt,className:"header__sub-menu-card-image"}),e.createElement("div",{className:"header__sub-menu-card-text-container"},e.createElement("h5",null,_.title),e.createElement("p",null,_.description))))))))));var Y=o(52546);const be=({hideOffsetDown:t=120,hideDeltaDown:n=24,showDeltaUp:a=8,translucentHoldMs:b=220,topSolidThreshold:c=8,startVisible:f=!0,paused:N=!1}={})=>{const[x,g]=(0,e.useState)(f),[$,_]=(0,e.useState)(!1),m=(0,e.useRef)(f),h=(0,e.useRef)(!1),E=(0,e.useRef)(0),l=(0,e.useRef)(0),r=(0,e.useRef)(!1),p=(0,e.useRef)(null),u=(0,e.useRef)(!!N);(0,e.useEffect)(()=>{m.current=x},[x]);const S=()=>{p.current!==null&&(window.clearTimeout(p.current),p.current=null)},y=()=>Math.max(0,window.scrollY??window.pageYOffset??document.documentElement.scrollTop??0),P=()=>{h.current||(h.current=!0,_(!0)),S(),p.current=window.setTimeout(()=>{h.current=!1,_(!1),p.current=null},b)},R=()=>{h.current&&(h.current=!1,_(!1)),S()};return(0,e.useEffect)(()=>{if(u.current=!!N,!(typeof window>"u")&&u.current){m.current||(m.current=!0,g(!0)),R();const B=y();E.current=B,l.current=B}},[N]),(0,e.useEffect)(()=>{if(typeof window>"u")return;const B=()=>{r.current||(r.current=!0,window.requestAnimationFrame(()=>{if(u.current){r.current=!1;return}const w=y(),U=E.current,K=w-U,te=K>0?1:K<0?-1:0,ne=Math.abs(w-l.current);if(w<=c){m.current||(m.current=!0,g(!0),l.current=0),R(),E.current=w,r.current=!1;return}te>0&&(w>t&&ne>n&&m.current&&(m.current=!1,g(!1),l.current=w),R()),te<0&&((!m.current&&ne>=a||!m.current&&a===0)&&(m.current=!0,g(!0),l.current=w),P()),E.current=w,r.current=!1}))};return E.current=y(),h.current=!1,_(!1),window.addEventListener("scroll",B,{passive:!0}),()=>{window.removeEventListener("scroll",B),S()}},[t,n,a,b,c]),{isVisible:x,isTranslucent:$}},_e=()=>{const[t,n]=(0,e.useState)(100),[a,b]=(0,e.useState)(!1),[c,f]=(0,e.useState)(!1),N=(0,e.useRef)(null),{width:x}=(0,le.l)(),[g,$]=(0,e.useState)(100),[_,m]=(0,e.useState)(100),h=(0,v.d4)(Y.DT.selectors.selectRouteEntryContentTypeId)==="homeNEW",l=(0,ee.zy)().pathname.startsWith("/study/open-days"),r=(0,ee.W6)(),p=w=>r.push(`/search?term=${w}`),u=(0,v.d4)(O.z0),{isVisible:S,isTranslucent:y}=be({hideOffsetDown:120,hideDeltaDown:24,showDeltaUp:8,translucentHoldMs:220,topSolidThreshold:8,startVisible:!0,paused:a||c});(0,e.useEffect)(()=>{const w=U=>{N.current&&!N.current.contains(U.target)&&(n(100),$(100),m(100),f(!1),b(!1))};return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[]),(0,e.useEffect)(()=>{c&&n(100)},[c]),(0,e.useEffect)(()=>{t!==100&&f(!1)},[t]);const P=()=>{b(!1),f(w=>!w)};(0,e.useEffect)(()=>{const w=x<990&&a||c,U=document.body.style.overflow,K=document.body.style.touchAction;return w?(document.body.style.overflow="hidden",document.body.style.touchAction="none"):(document.body.style.overflow=U,document.body.style.touchAction=K),()=>{document.body.style.overflow=U,document.body.style.touchAction=K}},[a,c,x]);const{navMenu:R,featureLinks:B}=u;return!R||!B?null:e.createElement(re,{ref:N,className:`header ${h?"header--homepage":""} ${l?"header--open-days":""} ${h&&!S?"header--hidden":""} ${h&&S&&y?"header--visible-translucent":""} `},e.createElement(me(),{active:a||c},e.createElement("div",{className:"header__outer-wrapper"},e.createElement("div",{className:"header__container u-container"},e.createElement("div",{className:"header__logo-container"},e.createElement(i.A,{path:"/"},e.createElement(k.A,{className:"header__logo",icon:"logo"}),e.createElement("span",{className:"sr-only"},"Return to the homepage"))),x>990&&e.createElement(pe,{navMenu:R,featureLinks:B,setActiveItem:n,activeItem:t,setActiveSubMenu:$,activeSubMenu:g,setActiveSubTwoMenu:m,activeSubTwoMenu:_}),e.createElement("div",{className:"header_button-container"},e.createElement("button",{className:"header__button header__button--search",onClick:P,"aria-expanded":c,"aria-controls":"header-search"},c?e.createElement(e.Fragment,null,e.createElement("span",{className:"sr-only"},"Close search"),e.createElement(k.A,{icon:"close",className:"header__search-icon",size:32})):e.createElement(e.Fragment,null,e.createElement("span",{className:"sr-only"},"Open search"),e.createElement(k.A,{icon:"search",className:"header__search-icon",size:32}))),x<990&&e.createElement(ue.Ay,{color:"#ffffff",toggled:a,toggle:w=>{b(w),f(!1)},size:24,label:a?"Close menu":"Open menu"}))),c&&e.createElement("div",{className:"header__search-container",id:"header-search"},e.createElement(ce.A,{submit:w=>p(w),autofocus:!0})),x<990&&a&&e.createElement(se,{navMenu:R}))))};var fe=o(14864);const ge=`https://www.${PUBLIC_URI.replace(/(http|https):\/\/|www\.|\/$/g,"")}`,ye=({authorTwitterHandle:t,description:n,locale:a="en_GB",ogDescription:b,ogImage:c,ogImageAltText:f,ogType:N="website",pageTitle:x,rssFeedPath:g,twitterCardType:$="summary",twitterHandle:_,insytful:m=!0,noIndex:h=!1,noFollow:E=!1,schema:l})=>{const r=(0,v.d4)(Y.DT.selectors.selectCurrentProject),p=(0,v.d4)(Y.DT.selectors.selectRouteEntryEntryId),u=(0,v.d4)(Y.DT.selectors.selectCanonicalPath),S=(0,v.d4)(O.TX),y=(0,v.d4)(O.Iz),P=S??"ºÚÁÏÍø",R=P?`${x} | ${P}`:`${x}`,B=`${ge}${u}`;return e.createElement(fe.m,null,e.createElement("title",null,R),h?e.createElement("meta",{name:"robots",content:"noindex"}):null,E?e.createElement("meta",{name:"robots",content:"nofollow"}):null,n?e.createElement("meta",{name:"description",content:n}):null,e.createElement("meta",{property:"og:site_name",content:P}),u?e.createElement("meta",{property:"og:url",content:B}):null,e.createElement("meta",{property:"og:title",content:x}),b||n?e.createElement("meta",{property:"og:description",content:b||n}):null,c||y?.src?e.createElement("meta",{property:"og:image",content:c||(y&&y.src?y.src:"")}):null,f||y?.alt?e.createElement("meta",{property:"og:image:alt",content:f||(y&&y?.alt?y.alt:"")}):null,e.createElement("meta",{property:"og:image:width",content:"1200"}),e.createElement("meta",{property:"og:image:height",content:"630"}),e.createElement("meta",{property:"og:type",content:N}),a?e.createElement("meta",{property:"og:locale",content:a}):null,e.createElement("meta",{name:"twitter:card",content:$}),_?e.createElement("meta",{name:"twitter:site",content:_}):null,t?e.createElement("meta",{name:"twitter:creator",content:t}):null,e.createElement("meta",{name:"twitter:title",content:x}),n?e.createElement("meta",{name:"twitter:description",content:n}):null,c?e.createElement("meta",{name:"twitter:image",content:c}):null,f?e.createElement("meta",{name:"twitter:image:alt",content:f}):null,u?e.createElement("link",{rel:"canonical",href:B}):null,m&&r?e.createElement("meta",{name:"IDL:ProjectId",content:r}):null,m&&p?e.createElement("meta",{name:"IDL:EntryId",content:p}):null,g?e.createElement("link",{rel:"alternate",type:"application/rss+xml",title:`RSS Feed for ${P}`,href:g}):null,l?e.createElement("script",{type:"application/ld+json"},JSON.stringify(l)):null)},xe=({className:t,children:n,meta:a,showClearing:b})=>{const c=(0,v.d4)(O.c1)??null;return e.createElement(e.Fragment,null,e.createElement(I,null),b&&e.createElement(T,{...c}),e.createElement(ye,{...a}),e.createElement(_e,null),e.createElement("main",{id:"main",className:`main ${t||""}`},n),e.createElement(oe,null))}},8981:(L,D,o)=>{o.d(D,{l:()=>d});var e=o(48322),v=o(35241);function d(){const[A,k]=(0,e.useState)({width:0,height:0}),M=()=>{k({width:window.innerWidth,height:window.innerHeight})};return(0,v.ML)("resize",M),(0,v.Es)(()=>{M()},[]),A}var z=null}}]);