"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[148],{6203:(er,oe,m)=>{m.r(oe),m.d(oe,{default:()=>Dn});var e=m(8322),_=m(3266),se=m(2546),v=m(2333),ze=m(1029),s=m(7115),Fe=m(5141);const ce=s.Ay.div` ${({theme:{colors:t,spacing:n}})=>(0,s.AH)` display: flex; flex-direction: row; gap: ${n.m}; overflow: hidden; padding-left: ${n.l}; .course-modules__tabs { display: flex; flex-direction: column; gap: ${n.s}; width: 100%; position: relative; } .course-modules__reqiurements-title { display: block; padding: ${n.s} ${n.xxxs} ${n.xxs} ${n.xxxs}; color: ${t.light.brand.burgundy}; } .course-modules__tab-button { background: none; color: ${t.light.brand.midBlue}; text-decoration: underline; border: none; font-weight: 700; cursor: pointer; transition: all 200ms ease; &:hover, &:focus-visible { color: ${t.light.brand.darkBlue}; outline-offset: 2px; transition: all 200ms ease; } } .course-modules__text { padding: ${n.xs} ${n.xxxs}; } .course-modules__tabs { position: relative; } .course-modules__tab::before { content: ''; position: absolute; top: 3px; left: -40px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid ${t.light.brand.lightBlue}; background-color: ${t.light.neutral.white}; cursor: pointer; } .course-modules__tab.active::before { outline: 2px solid ${t.light.brand.lightBlue}; border: 2px solid ${t.light.neutral.white}; background-color: ${t.light.brand.lightBlue}; } .course-modules__tab { position: relative; } .course-modules__tabs::before { content: ''; position: absolute; width: 2px; height: calc(100% - 6px); background: ${t.light.brand.lightBlue}; top: 3px; left: -31px; } .course-modules__tab.active:last-child::after { content: ''; position: absolute; width: 15px; height: 2px; background: ${t.light.brand.lightBlue}; top: calc(100% - 4px); left: -38px; } `} `,de=s.Ay.nav` ${({theme:{colors:t,spacing:n,mq:r}})=>(0,s.AH)` z-index: 100; width: 100%; background-color: ${t.light.brand.lightestGold}; @media ${r.min.px.laptop} { display: grid; grid-template-columns: minmax(var(--grid-gutter), 1fr) minmax(100px, 37.5rem) minmax(100px, 37.5rem) minmax(var(--grid-gutter), 1fr); } .u-container { display: flex; justify-content: space-between; align-items: flex-start; } .scroll-container { padding-inline: var(--grid-gutter); @media ${r.min.px.laptop} { padding: 0; grid-area: 1 / 2 / 1 / none; } } .course-nav__nav-container { display: flex; align-items: flex-start; gap: ${n.s}; padding: 0; list-style: none; } .course-nav__nav-item { display: inline-block; text-underline-offset: ${n.s}; } .course-nav__nav-link { display: flex; position: relative; padding: ${n.s} 0; 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: 0; left: 0; width: 0; height: 4px; background: ${t.light.brand.burgundy}; transition: width 0.3s ease; } &:hover::after, &.course-nav__nav-link--active::after { width: 100%; } } `} `,Oe=s.Ay.div` ${({theme:{mq:t,colors:n,spacing:r}})=>(0,s.AH)` .flow > * + * { margin-block-start: 2em; } .u-container { max-width: var(--grid-max-width); padding-inline: var(--grid-gutter); margin-inline: auto; } .u-grid { display: flex; flex-direction: column-reverse; @media ${t.min.px.laptop} { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-areas: 'content content content content content content content content . aside aside aside'; } } .course-body { max-width: var(--grid-max-width); margin-block-start: var(--space-l-xl); margin-inline: auto; } .course-body__content { padding-block-end: var(--space-xl-2xl); @media ${t.min.px.laptop} { grid-area: content; } } .course-body__aside { margin-block-start: 0; margin-block-end: var(--space-xl-2xl); @media ${t.min.px.laptop} { grid-area: aside; } } h1, h2, h3, h4, h5, h6 { color: ${n.light.brand.darkBlue}; } .lead { font-weight: 600; } blockquote { margin-block-start: var(--space-xl-2xl); } .content-slider { overflow: visible; } .highlights-slider { ::before { content: ''; display: block; height: 100%; width: 100%; background-color: ${n.light.brand.lightestGold}; } } ${de} { position: sticky; top: 0; } ${Fe.A} { position: sticky; top: 120px; bottom: 80px; } .unistats { padding-block: var(--space-xl-2xl); background-color: ${n.light.brand.lightestGold}; } .unistats-container { display: flex; flex-direction: column; gap: ${r.s}; } .contact-section__container { display: flex; flex-direction: column; gap: ${r.s}; } .related-courses { margin: 0; padding-block: var(--space-xl-2xl); background-color: ${n.light.brand.lightGold}; h2 { margin-block-end: 0.5em; } } ${ce} { margin-block-start: var(--space-m-l); margin-block-end: var(--space-l-xl); } .statistics { @media ${t.min.px.tablet} { display: flex; flex-flow: row wrap; align-items: center; justify-content: space-between; gap: 2em; } @media screen and (min-width: 1200px) { flex-flow: row nowrap; } .statistic { margin-block-end: 2rem; flex: 1 1 50%; @media ${t.min.px.tablet} { flex: 1 1 100%; } @media screen and (min-width: 1200px) { flex: 1 1 50%; } } } `} `;var S=m(2301),J=m(9289),Re=m(5466);function me(t,n={}){return{type:t,...n}}const ir=()=>me(GET_COURSE_CONFIG),Te=t=>me(Re.J9,{id:t}),pe={placementAvailable:"Placement available",studyAbroadAvailable:"Study abroad available",contactMessage:"If you have any questions, please get in touch. We're here to help you every step of the way.",ucasTariff:"UCAS tariff points required:"};var Me=m(7145),Pe=m(118),De=m(2040),je=m(9703),Le=m(499);const Ge=({links:t,activeSection:n,setActiveSection:r})=>{const i=(0,_.d4)(se.DT.selectors.selectCurrentLocation);if((0,e.useEffect)(()=>{const o=document.querySelector(".course-nav__nav-link--active");o&&o.scrollIntoView({inline:"center"})},[n]),!t||t.length<=0)return null;const l=o=>{r(o),"ontouchend"in window&&(window.location.hash=o)},a=o=>{const c=o.getBoundingClientRect().top+window.pageYOffset,p=-100;window.scrollTo({top:c+p,behavior:"smooth"})};return e.createElement(de,{className:"course-navigation","aria-label":"Course navigation"},e.createElement(Le.A,{className:"scroll-container"},e.createElement("ol",{className:"course-nav__nav-container"},t.map((o,c)=>!o.path||!o.children?null:e.createElement("li",{key:c,className:"course-nav__nav-item"},e.createElement(je.Vq,{to:{...i,hash:o.path},scroll:p=>a(p),className:`h6 course-nav__nav-link ${o.path===n?"course-nav__nav-link--active":""}`,onClick:()=>o.path?l(o.path):null},o.children))))))};var Ve=m(2774),E=m(1541),y=m(5703);const Ye=(0,s.AH)` .swiper-container-fade.swiper-container-free-mode .swiper-slide { transition-timing-function: ease-out; } .swiper-container-fade .swiper-slide { pointer-events: none; transition-property: opacity; } .swiper-container-fade .swiper-slide .swiper-slide { pointer-events: none; } .swiper-container-fade .swiper-slide-active, .swiper-container-fade .swiper-slide-active .swiper-slide-active { pointer-events: auto; } `,Ue=s.Ay.div` ${({theme:{colors:t,mq:n,spacing:r},sliderTheme:i="gold"})=>{const l=(0,y.DF)(i);return(0,s.AH)` position: relative; padding-bottom: 28px; @media ${n.min.px.tablet} { padding-bottom: 64px; } .slider__wrapper { position: relative; } .swiper-container { margin-left: auto; margin-right: auto; position: relative; list-style: none; padding: 0; z-index: 1; } .slider__content-container { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; background-color: ${l}; min-height: 460px; min-width: 320px; max-width: 320px; padding: ${r.s}; position: absolute; top: 80px; right: 0; z-index: 2; border-radius: 0px 50px 0px 50px; @media ${n.min.px.tablet} { min-width: 370px; max-width: 470px; } @media ${n.min.px.largeDesktop} { min-width: 370px; max-width: 370px; } } .slider__title { color: ${i==="darkBlue"?t.light.neutral.white:t.light.neutral.black}; font-family: 'Bebas Neue', sans-serif; font-weight: 400; } .slider__text-container { display: flex; flex-direction: column; gap: ${r.xs}; color: ${i==="darkBlue"?t.light.neutral.white:t.light.neutral.black}; } .slider__description { text-align: left; font-weight: 600; p { text-align: left; font-weight: 600; } } .swiper-wrapper { position: relative; width: 100%; height: 100%; z-index: 1; display: flex; transition-property: transform; box-sizing: content-box; } .swiper-slide { flex-shrink: 0; width: 100%; height: 100%; position: relative; transition-property: transform; } /* Auto Height */ .swiper-container-autoheight { &, .swiper-slide { height: auto; } .swiper-wrapper { align-items: flex-start; transition-property: transform, height; } } ${Ye}; .swiper-arrow-controls { z-index: 2; } .swiper-slide-active { z-index: 99; } .swiper-slide-next { .swiper-slide img { border-radius: 0px 50px 0px 0px; @media ${a=>a.theme.mq.min.px.tablet} { border-radius: 0px 50px 0px 0px; } } } .swiper-prev { background-color: rgba(0, 0, 0, 0.5); border: 2px solid transparent; color: ${a=>a.theme.colors.light.neutral.white}; } .swiper-next { border: 2px solid ${a=>a.theme.colors.light.neutral.white}; color: ${a=>a.theme.colors.light.brand.midBlue}; } .swiper-arrow { position: relative; display: inline-block; padding: 0.5rem; margin: 0.5rem; border: none; border-radius: 50%; color: ${a=>a.theme.colors.light.brand.midBlue}; background-color: white; transition: all ease-in-out 150ms; cursor: pointer; &:hover, &:focus-visible { color: white; background-color: ${a=>a.theme.colors.light.brand.darkBlue}; transition: all ease-in-out 150ms; /* transform: scale(1.1); */ } &:disabled { cursor: not-allowed; color: white; background-color: rgba(0, 0, 0, 0.4); } } .swiper-pagination { font-size: 0; line-height: 0; text-align: center; z-index: 2; } .swiper-pagination-bullet { position: relative; display: inline-block; border: 1px solid white; border-radius: 50%; height: 1rem; width: 1rem; margin: 0.5rem; background-color: rgba(0, 0, 0, 0.4); transition: background-color ease-in-out 150ms; cursor: pointer; &:hover, &:focus-visible { background-color: ${a=>a.theme.colors.light.brand.gold}; opacity: 1.2; transition: background-color ease-in-out 150ms; } } .swiper-pagination-bullet-active { background-color: white; transition: background-color ease-in-out 150ms; } .swiper-pagination-bullet { height: 12px; width: 12px; border-radius: 50%; border: 1px solid white; margin: 0 5px; @media ${a=>a.theme.mq.min.px.largeDesktop} { height: 16px; width: 16px; } } .slider__navigation-container { display: flex; align-items: center; justify-content: space-between; gap: ${a=>a.theme.spacing.xxs}; width: 100%; .slider__pagination-container { display: flex; gap: ${a=>a.theme.spacing.xxxs}; .swiper-pagination-bullet { height: 12px; width: 12px; border-radius: 50%; border: 1px solid white; margin: 0 5px; @media ${a=>a.theme.mq.min.px.largeDesktop} { height: 16px; width: 16px; } } } .swiper-arrow-controls { display: flex; .swiper-arrow { display: flex; align-items: center; border-radius: 50%; cursor: pointer; padding: ${a=>a.theme.spacing.xxxs}; max-height: 42px; max-width: 42px; transition: transform 0.3s ease-in-out; &:hover { transform: scale(1.1); } } .swiper-prev { background-color: rgba(0, 0, 0, 0.5); border: 2px solid transparent; color: ${a=>a.theme.colors.light.neutral.white}; } .swiper-next { background-color: ${a=>a.theme.colors.light.neutral.white}; border: 2px solid ${a=>a.theme.colors.light.neutral.white}; color: ${a=>a.theme.colors.light.brand.midBlue}; } } } .slider__image-container { position: relative; height: 100%; width: 100%; ::before { background-color: ${l}; content: ''; position: absolute; left: -64px; bottom: 0; width: 66px; height: calc(100% - 80px); z-index: -1; } } .slider__image { height: 100%; width: 100%; height: 300px; max-width: 580px; object-fit: cover; object-position: top; @media ${n.min.px.tablet} { height: 460px; max-width: 520px; } } `}} `;var Ie=m(8981),We=m(4646);const Ke=(0,s.AH)` .swiper-container-fade.swiper-container-free-mode .swiper-slide { transition-timing-function: ease-out; } .swiper-container-fade .swiper-slide { pointer-events: none; transition-property: opacity; } .swiper-container-fade .swiper-slide .swiper-slide { pointer-events: none; } .swiper-container-fade .swiper-slide-active, .swiper-container-fade .swiper-slide-active .swiper-slide-active { pointer-events: auto; } `,Xe=s.Ay.div` ${({theme:{colors:t,mq:n,spacing:r},sliderTheme:i="blue"})=>{const l=(0,y.DF)(i);return(0,s.AH)` display: flex; flex-direction: column; align-items: center; justify-content: flex-start; position: relative; ::before { content: ''; position: absolute; bottom: 0; left: unset; right: unset; width: calc(100% + (var(--grid-gutter) * 2)); height: 98%; background-color: ${l}; } .swiper-slide { flex-shrink: 0; width: 100%; height: 100%; position: relative; transition-property: transform; } /* Auto Height */ .swiper-container-autoheight { &, .swiper-slide { height: auto; } .swiper-wrapper { align-items: flex-start; transition-property: transform, height; } } .swiper-wrapper { position: relative; width: 100%; height: 100%; z-index: 1; display: flex; transition-property: transform; box-sizing: content-box; } ${Ke}; .swiper-arrow-controls { z-index: 2; } .swiper-pagination { font-size: 0; line-height: 0; text-align: center; z-index: 2; } .swiper-pagination-bullet { position: relative; display: inline-block; border: 1px solid white; border-radius: 50%; height: 1rem; width: 1rem; margin: 0.5rem; background-color: rgba(0, 0, 0, 0.4); transition: background-color ease-in-out 150ms; cursor: pointer; &:hover, &:focus-visible { background-color: ${a=>a.theme.colors.light.brand.gold}; opacity: 1.2; transition: background-color ease-in-out 150ms; } } .swiper-pagination-bullet-active { background-color: white; transition: background-color ease-in-out 150ms; } .swiper-pagination-bullet { height: 12px; width: 12px; border-radius: 50%; border: 1px solid white; margin: 0 5px; @media ${a=>a.theme.mq.min.px.largeDesktop} { height: 16px; width: 16px; } } .swiper-slide-active { z-index: 99; } .slider-mobile__image-container { width: 100%; z-index: 1; } .slider-mobile__image { object-fit: cover; object-position: top; width: 100%; height: 180px; @media ${n.min.px.mobile} { height: 300px; object-position: center; } } .slider-mobile__content-container { display: flex; flex-direction: column; gap: ${r.xxs}; position: relative; height: 100%; } .slider-mobile__title { width: max-content; padding-top: ${r.xxs}; color: ${t.light.neutral.black}; font-family: 'Bebas Neue', sans-serif; font-weight: 400; } .slider-mobile__navigation-container { display: flex; flex-direction: row; align-items: center; justify-content: space-between; padding: ${r.xxs} 0; height: 100%; width: 100%; gap: ${r.xs}; } .slider-mobile__navigation-container > * { min-width: 0; } .slider-mobile__description { min-height: 140px; -webkit-font-smoothing: subpixel-antialiased; color: ${i==="darkBlue"?t.light.neutral.white:t.light.neutral.black}; font-weight: 600; } .slider-mobile__button-container { display: flex; align-items: center; justify-content: space-between; gap: ${r.xxs}; } .slider-mobile__button-prev, .slider-mobile__button-next { display: flex; align-items: center; border-radius: 50%; cursor: pointer; padding: ${r.xxxs}; max-height: 42px; max-width: 42px; } .slider-mobile__button-prev { background-color: rgba(0, 0, 0, 0.5); border: 2px solid transparent; color: ${t.light.neutral.white}; } .slider-mobile__button-next { background-color: ${t.light.neutral.white}; border: 2px solid ${t.light.neutral.white}; color: ${t.light.brand.midBlue}; } `}} `;var D=m(2047),j=m(3383),L=m(5839),G=m(6211),V=m(2541),Y=m(4689),U=m(3983),w=m(8401);L.A.use([G.A,V.A,Y.A,U.A]);const Qe=({id:t})=>e.createElement("div",{className:"swiper-arrow-controls slider-mobile__button-container"},e.createElement("button",{className:"swiper-prev swiper-arrow slider-mobile__button-prev"},e.createElement(E.A,{icon:"arrowLeft",size:30})),e.createElement("button",{className:"swiper-next swiper-arrow slider-mobile__button-next",id:`swiper-next-${t}`},e.createElement(E.A,{icon:"arrowRight",size:30}))),Je=()=>e.createElement("div",{className:"swiper-pagination"}),Ze=({highlights:t,sliderTheme:n="gold",id:r,currentIndex:i,setCurrentIndex:l})=>{const a={autoHeight:!0,slidesPerView:1,spaceBetween:0,effect:"fade",fadeEffect:{crossFade:!0},navigation:{nextEl:".swiper-next.swiper-arrow",prevEl:".swiper-prev.swiper-arrow"},pagination:{el:".swiper-pagination",clickable:!0},loop:!1,preventClicks:!1,preventClicksPropagation:!1};return e.createElement(Xe,{sliderTheme:n,className:"slider"},e.createElement("div",{className:"slider-mobile__image-container"},e.createElement("div",{className:"slider"},e.createElement(D.R,{...a,onSlideChange:o=>l(o.activeIndex)},t.map((o,c)=>e.createElement(j.q,{key:c},e.createElement("div",{className:"swiper-slide"},e.createElement("img",{className:"slider-mobile__image",src:o.image.src,alt:o.image.alt,"aria-label":`slide ${i+1} of ${t.length}`})))),e.createElement("div",{className:"slider-mobile__content-container"},e.createElement("div",{className:"h3 slider-mobile__title"},t[i].title),t[i].summary?e.createElement(w.VK,{className:"slider-mobile__description",text:t[i].summary}):e.createElement("p",{className:"slider-mobile__description"},t[i].description),e.createElement("div",{className:"slider-mobile__navigation-container"},e.createElement(Je,null),e.createElement(Qe,{id:r})))))))};var Z=m(3652);L.A.use([G.A,V.A,Y.A,U.A]);const qe=({id:t})=>e.createElement("div",{className:"swiper-arrow-controls"},e.createElement("button",{className:"swiper-prev swiper-arrow"},e.createElement(E.A,{icon:"arrowLeft",size:30})),e.createElement("button",{className:"swiper-next swiper-arrow",id:`swiper-next-${t}`},e.createElement(E.A,{icon:"arrowRight",size:30}))),et=()=>e.createElement("div",{className:"swiper-pagination"}),tt=t=>e.createElement("div",{className:"swiper-slide"},e.createElement("div",{className:"slider__image-container"},e.createElement("img",{className:"slider__image",src:t.image?.src,alt:t.image?.alt,"aria-label":"slide of highlights"}))),nt=({highlights:t,sliderTheme:n="gold",id:r="highlights slider"})=>{const{width:i}=(0,Ie.l)(),l={autoHeight:!0,slidesPerView:1,spaceBetween:0,effect:"fade",fadeEffect:{crossFade:!0},navigation:{nextEl:".swiper-next.swiper-arrow",prevEl:".swiper-prev.swiper-arrow"},pagination:{el:".swiper-pagination",clickable:!0},loop:!1,preventClicks:!1,preventClicksPropagation:!1},[a,o]=(0,e.useState)(0);return i>=We.fi.px.tablet?e.createElement(Ue,{sliderTheme:n,className:"slider",id:"highlights"},e.createElement("div",{className:"slider__wrapper"},e.createElement(D.R,{className:"highlight-slider__container",...l,onSlideChange:c=>o(c.activeIndex)},t.map((c,p)=>e.createElement(j.q,{key:p},e.createElement(tt,{...c}))),e.createElement("div",{className:"slider__content-container"},e.createElement("div",{className:"slider__text-container"},e.createElement("span",{className:"h3 slider__title"},t[a].title),t[a].summary?e.createElement(Z.default,{className:"slider__description",text:t[a].summary}):e.createElement("p",{className:"slider__description"},t[a].description)),e.createElement("div",{className:"slider__navigation-container"},e.createElement(et,null),e.createElement(qe,{id:r})))))):e.createElement(Ze,{highlights:t,sliderTheme:n,currentIndex:a,setCurrentIndex:o,id:r})};var q=m(4984);const rt=s.Ay.div` ${({theme:{mq:t,spacing:n},cardRowTheme:r="gold",layout:i})=>{const l=(0,y.DF)(r);return(0,s.AH)` position: relative; &.container { padding-bottom: 28px; @media ${t.min.px.tablet} { padding-bottom: 64px; } } .card-row__wrapper { display: flex; flex-flow: column nowrap; align-items: stretch; position: relative; gap: var(--space-m-l, ${n.s}); &.container { ::before { ${(0,y.uY)(l,"cards")} } } @media ${t.min.px.tablet} { flex-flow: row wrap; } } .card-row__card { margin-inline: auto; width: 100%; flex: 1; @media ${t.min.px.tablet} { margin-inline: 0; flex: ${i==="container"?"1 0 calc(33% - var(--grid-gutter))":"1 0 calc(50% - var(--grid-gutter))"}; } @media ${t.min.px.laptop} { flex: ${i==="container"?"0 0 100%":"1 0 calc(50% - var(--grid-gutter))"}; } @media screen and (min-width: 1200px) { flex: ${i==="container"?"1":"1 0 calc(25% - var(--grid-gutter))"}; } } &.full-width { background-color: ${l}; } `}} `,it=s.Ay.div` ${({theme:{colors:t,mq:n},cardTheme:r="blue",rounded:i,hideDescription:l})=>{const a=(0,y.DF)(r);return(0,s.AH)` position: relative; display: flex; flex-flow: column nowrap; transition: all 1s ease-in-out; cursor: pointer; overflow: hidden; &:hover, &:focus-within { .card__image { transform: scale(1.05); } } .card__media { order: -1; height: 180px; min-height: 180px; width: 100%; overflow: hidden; } .card__image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease-in-out; } .card__content { display: flex; flex-flow: column nowrap; padding: var(--space-m-l) 1.5rem var(--space-3xl-4xl) var(--space-s-m); background-color: ${a}; height: 100%; } .card__category { order: -1; margin-block-end: 0.5em; font-weight: 700; color: ${t.light.neutral.grey80}; @media ${n.min.px.largeMobile} { margin-block-end: 1em; } } .card__title { margin-block-end: 0.5em; font-weight: 700; @media ${n.min.px.largeMobile} { font-weight: 600; } a { color: ${t.light.brand.darkBlue}; text-decoration: none; &::after { ${y.A4}; z-index: 1; } } } ${l&&(0,s.AH)` .card__description { display: none; } .card__content { padding-block-end: ${i==="start"?"2.5rem":"1.5rem"}; } `} ${i==="start"&&(0,s.AH)` .card__image { border-top-right-radius: 50px; @media ${n.min.px.tablet} { border-radius: 0; } } .card__content { @media ${n.min.px.tablet} { border-bottom-left-radius: 50px; } } `} ${i==="end"&&(0,s.AH)` .card__content { border-bottom-left-radius: 50px; @media ${n.min.px.tablet} { border-radius: 0; } } .card__image { @media ${n.min.px.tablet} { border-top-right-radius: 50px; } } `} `}} `;var I=m(2501),W=m(7820);const at=({title:t,image:n,url:r,description:i,category:l,cardTheme:a="blue",rounded:o="none",hideDescription:c=!1,className:p})=>!t||!n.src?null:e.createElement(it,{className:`card ${p||""}`,cardTheme:a,rounded:o,hideDescription:c},e.createElement("div",{className:"card__content"},e.createElement("h2",{className:"[ h4 ] card__title"},e.createElement(W.A,{path:r},t)),l&&e.createElement("p",{className:"card__category"},l),i&&e.createElement("p",{className:"card__description"},i)),e.createElement("div",{className:"card__media"},e.createElement(I.A,{src:n.src,alt:n.alt,width:328,height:180,className:"card__image",id:"card-image"}))),ue=({cards:t,cardRowTheme:n,layout:r="full-width",className:i})=>t?e.createElement(rt,{cardRowTheme:n,layout:r,className:`card-row ${r} ${i||""}`},e.createElement("div",{className:`card-row__wrapper ${r}`},t.map((l,a,{length:o})=>{let c="none";return o-1===a?c="end":a===0&&(c="start"),e.createElement(at,{key:a,...l,rounded:c,className:"card-row__card"})}))):null,lt=s.Ay.address` ${({theme:{colors:t,spacing:n}})=>(0,s.AH)` display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-m-xl, ${n.m}); padding: var(--space-m-l, ${n.s}); background-color: ${t.light.brand.lighterBlue}; font-style: normal; text-align: center; `} `,ot=({title:t,email:n,phoneNumber:r})=>t?e.createElement(lt,null,e.createElement("p",{className:"h6 callout-card__title"},t),n&&e.createElement(W.A,{className:"callout-card__email",path:`mailto:${n}`},n),r&&e.createElement(W.A,{className:"callout-card__phone-number",path:`tel:+44${r}`},r)):null,st=s.Ay.div` ${({theme:{colors:t,spacing:n,mq:r},align:i})=>(0,s.AH)` display: flex; flex-wrap: wrap; gap: var(--space-l-xl, ${n.s}); align-items: center; justify-content: ${i==="start"?"flex-start":"center"}; @media ${r.min.px.tablet} { flex-wrap: nowrap; align-items: flex-start; justify-content: normal; } .profile__content-container { display: flex; flex-direction: column; gap: var(--space-xs-s, ${n.xxxs}); } .profile__title, .profile__role { color: ${t.light.brand.darkBlue}; text-align: ${i==="start"?"left":"center"}; @media ${r.min.px.tablet} { text-align: left; } } .profile__thumbnail { width: 170px; height: 170px; min-width: 170px; object-fit: cover; object-position: top; } .profile__email { padding-block-start: var(--space-3xs-2xs, ${n.xxxs}); max-width: max-content; } `} `,he=({thumbnail:t,name:n,bio:r,role:i,email:l,className:a,align:o})=>{const c=(0,_.d4)(J.Iz);return n?e.createElement(st,{className:a,align:o??"center"},t||c?e.createElement("img",{className:"profile__thumbnail",src:t&&t.src?t.src:c?.src,alt:t&&t.alt?t.alt:c?.alt}):null,e.createElement("div",{className:"profile__content-container"},e.createElement("h3",{className:"h2 profile__title"},n),r&&e.createElement(Z.default,{className:"flow",text:r}),i&&e.createElement("p",{className:"h5 profile__role"},i),l&&e.createElement(W.A,{className:"profile__email",path:`mailto:${l}`},l))):null};var K=m(6638);const ct=({title:t,id:n,mode:r="FullTime",className:i})=>((0,e.useEffect)(()=>{(function(l){"use strict";const a=l.createElement("script");a.id="unistats-widget-script",a.src="https://widget.discoveruni.gov.uk/widget/embed-script.js";const o=l.getElementsByTagName("script")[0];l.getElementById("unistats-widget-script")||o?.parentNode?.insertBefore(a,o)})(document)},[n]),n?e.createElement(dt,{className:i},e.createElement("div",{title:t,id:(0,K.Y)(t),className:"kis-widget","data-institution":"10007139","data-course":n,"data-kismode":r,"data-orientation":"responsive","data-language":"en-GB"})):null),dt=s.Ay.div` overflow: hidden; `,mt=ct;var pt=m(6706),ut=m.n(pt);const ht={overlay:{backgroundColor:"rgba(0, 0, 0, 0.75)"},content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)",minWidth:"300px",minHeight:"300px",height:"auto",width:"auto",backgroundColor:"#ffffff",padding:"1rem"}},gt=({children:t,modalTitle:n,isOpen:r,setOpen:i})=>e.createElement(ut(),{isOpen:r,onRequestClose:()=>i(!1),contentLabel:"Modal",style:ht},n&&e.createElement(bt,null,n),e.createElement(xt,null,t),e.createElement(ft,{onClick:()=>i(!1)},e.createElement("span",{className:"sr-only"},"Close modal"),e.createElement(E.A,{icon:"close",size:24}))),bt=s.Ay.h1` padding-top: ${({theme:t})=>t.spacing.s}; margin-block-end: 0.5em; text-align: center; `,xt=s.Ay.div` height: 100%; margin: 0 auto; .modal-image { cursor: pointer; max-width: 60vw; max-height: 80vh; width: 100%; height: auto; @media (min-width: 768px) { min-height: 300px; min-width: 300px; } @media (min-width: 900px) { min-height: 500px; min-width: 500px; } } .modal-image-caption { font-weight: 500; text-align: center; padding: 1rem 0rem 0rem 0rem; } .form-modal { min-height: 350px; @media (min-width: 768px) { min-height: 450px; min-width: 550px; } @media (min-width: 900px) { min-height: 600px; min-width: 600px; } } `,ft=s.Ay.button` position: absolute; top: 0; right: 0; padding: 1rem; margin-bottom: 2rem; border: none; background-color: ${({theme:t})=>t.colors.light.neutral.white}; cursor: pointer; `,ge=gt,wt=(0,s.i7)` 0% { opacity: 0; } 100% { opacity: 1; } `,vt=s.Ay.div` ${({theme:{colors:t,mq:n,spacing:r},slideFrom:i})=>(0,s.AH)` overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: var(--space-l-xl, ${r.s}); padding: var(--space-l-xl, ${r.s}); border: 1px solid ${t.light.brand.lightGold}; border-radius: 0 50px 0 50px; width: 100%; text-align: center; @media ${n.min.px.tablet} { text-align: left; flex-direction: row; } .accreditation-slider__container { display: flex; flex-direction: column; align-items: center; gap: var(--space-m-l, ${r.s}); animation: ${i==="right"||i==="left"?wt:"none"} 0.7s ease-in-out forwards; @media ${n.min.px.tablet} { flex-direction: row; } .accreditation-slider__image { width: 128px; } .accreditation-slider__title { flex-grow: 1; } @media ${n.min.px.tablet} { :focus-visible { outline: 2px solid ${t.light.brand.darkBlue}; outline-offset: 0; } } } .accreditation-slider__button-container { display: flex; align-items: center; justify-content: center; gap: ${r.xxs}; .accreditation-slider__button-prev, .accreditation-slider__button-next { display: flex; align-items: center; border-radius: 50%; cursor: pointer; padding: ${r.xxxs}; max-height: 42px; max-width: 42px; transition: transform 0.3s ease-in-out; &:hover { transform: scale(1.1); } } .accreditation-slider__button-prev { background-color: ${t.light.neutral.white}; border: 2px solid ${t.light.brand.darkBlue}; color: ${t.light.brand.darkBlue}; } .accreditation-slider__button-next { background-color: ${t.light.brand.midBlue}; border: 2px solid ${t.light.brand.midBlue}; color: ${t.light.neutral.white}; } .accreditation-slider__icon { min-height: 24px; min-width: 24px; } } `} `,Et=({accreditations:t})=>{const[n,r]=(0,e.useState)(0),[i,l]=(0,e.useState)(""),a=(0,e.useRef)(null),[o,c]=(0,e.useState)(0),p=()=>{l(""),setTimeout(()=>{r((n+1)%t.length),l("right"),a.current&&a.current.focus()},200)},x=()=>{l(""),setTimeout(()=>{r((n-1+t.length)%t.length),l("left"),a.current&&a.current.focus()},200)},g=f=>{c(f.touches[0].clientX)},b=f=>{const M=f.touches[0].clientX,C=o-M;Math.abs(C)>50&&(C>0?p():x())};return e.createElement(vt,{slideFrom:i},e.createElement("div",{className:"accreditation-slider__container",tabIndex:-1,ref:a,onTouchStart:g,onTouchMove:b},e.createElement("img",{className:"accreditation-slider__image",src:t[n].image.src,alt:t[n].image.alt,"aria-label":`slide ${n+1} of ${t.length}`}),e.createElement("div",{className:"h5 accreditation-slider__title"},t[n].title)),t.length>1&&e.createElement("div",{className:"accreditation-slider__button-container"},e.createElement("p",{className:"h6 slider-counter"},`0${n+1}/0${t.length}`),e.createElement("button",{className:"accreditation-slider__button-prev",onClick:x,"aria-label":"Previous slide"},e.createElement(E.A,{className:"accreditation-slider__icon",icon:"arrowLeft",size:24})),e.createElement("button",{className:"accreditation-slider__button-next",onClick:p,"aria-label":"Next slide"},e.createElement(E.A,{className:"accreditation-slider__icon",icon:"arrowRight",size:24}))))},yt=s.Ay.figure` ${({theme:{colors:t,spacing:n,mq:r}})=>(0,s.AH)` .statistic__container { display: flex; align-items: center; gap: var(--space-s-m); } .statistic__orb { --orb-size: 170px; height: var(--orb-size); min-height: var(--orb-size); width: var(--orb-size); min-width: var(--orb-size); padding: ${n.s}; border-radius: 50%; background-color: ${t.light.brand.darkBlue}; color: ${t.light.brand.lightGold}; font-weight: 600; overflow: hidden; font-family: 'Bebas Neue', sans-serif; transition: font-size 0.2s ease-in-out; .statistic__text { font-size: var(--step-8); font-weight: 400; transition: font-size 0.2s ease-in-out; } &.percentage, &.date, &.top, &.none { display: flex; align-items: center; justify-content: center; } &.top { flex-direction: column; line-height: 1; } &.none { text-align: center; } } .statistic__information { text-align: left; text-wrap: balance; &.no-orb { max-width: 352px; } } .statistic__no-orb { color: ${t.light.brand.gold}; } &.orb .statistic__container { flex-direction: column; @media ${r.min.px.mobile} { flex-direction: row; } } .statistic__source { margin-top: ${n.xxs}; color: ${t.light.neutral.grey80}; font-size: var(--step--0); text-align: left; @media ${r.min.px.tablet} { text-align: center; } } `} `,$t=({statistic:t,statContext:n,statInfo:r,source:i,isOrb:l=!0})=>{if(!t)return null;let a;switch(n){case"%":a=e.createElement("div",{className:"statistic__orb percentage"},e.createElement("span",{className:"statistic__text"},t),e.createElement("span",{className:"h4 statistic__context"},"%"));break;case"st":case"nd":case"rd":case"th":a=e.createElement("div",{className:"statistic__orb date"},e.createElement("span",{className:"statistic__text"},t),e.createElement("span",{className:"h4 statistic__context"},n));break;case"Top":a=e.createElement("div",{className:"statistic__orb top"},e.createElement("span",{className:"h4 statistic__context"},n),e.createElement("span",{className:"statistic__text"},t));break;default:a=l&&e.createElement("div",{className:"statistic__orb none"},e.createElement("span",{className:"h4"},t))}return e.createElement(yt,{className:`statistic ${l?"orb":"no-orb"}`},e.createElement("div",{className:"statistic__container"},l?e.createElement(e.Fragment,null,a,r&&e.createElement("p",{className:"h3 statistic__information"},r)):e.createElement("p",{className:"h3 statistic__information"},e.createElement("span",{className:"statistic__no-orb"},t," "),r&&r)),i&&e.createElement("figcaption",{className:"p statistic__source"},i))},_t=({title:t,message:n})=>!t||!n?null:e.createElement(kt,{className:"flow"},e.createElement(Nt,null,e.createElement("h2",null,t),e.createElement(w.Hl,{data:n}))),kt=s.Ay.div` position: relative; ::before { @media ${t=>t.theme.mq.min.px.laptop} { content: ''; z-index: -1; position: absolute; top: 0; right: unset; width: 100%; height: 100%; background: ${t=>t.theme.colors.light.brand.lighterBlue}; left: -64px; width: calc(100% + 64px); } } `,Nt=s.Ay.div` position: relative; display: flex; flex-direction: column; gap: ${t=>t.theme.spacing.xxs}; padding: ${t=>t.theme.spacing.m}; background: ${t=>t.theme.colors.light.brand.lighterBlue}; width: 100%; @media ${t=>t.theme.mq.min.px.laptop} { padding: ${t=>t.theme.spacing.l} 0; width: calc(100% - 2 * ${t=>t.theme.spacing.xs}); background: none; } `,St=_t,At=({id:t,summary:n,statistics:r,accrediations:i,accreditationContent:l,promoMessage:a})=>{const o=(0,_.d4)(S.EV);return!o&&!n&&!r&&!i&&!l?null:e.createElement(Ct,{id:t,className:"flow"},o||n?e.createElement("p",{className:"lead"},o??n):null,r&&e.createElement("div",{className:"statistics"},r.map((c,p)=>e.createElement($t,{key:p,...c}))),i&&e.createElement(Et,{...i}),l&&e.createElement(w.Hl,{data:l}),a&&!a.hideCourseMessage&&e.createElement(St,{...a}),e.createElement("hr",null))},Ct=s.Ay.section``,Ht=At,Bt=s.Ay.div` ${({theme:{colors:t},videoTheme:n="gold"})=>{const r=(0,y.DF)(n),i={gold:t.light.brand.lightGold,lightGold:t.light.brand.gold,blue:t.light.brand.lightBlue,lightBlue:t.light.brand.midBlue,darkBlue:t.light.brand.midBlue,lightGrey:t.light.neutral.lightGrey,darkGrey:t.light.neutral.grey,lighterGold:t.light.brand.lightGold}[n];return(0,s.AH)` position: relative; .video { position: relative; max-height: 500px; width: 100%; aspect-ratio: 16 / 9; iframe { position: absolute; top: 0; left: 0; bottom: 0; right: 0; width: 100%; height: 100%; border: none; margin: 0; padding: 0; } } button { display: block; position: relative; padding: 0; border: 0; width: 100%; height: 100%; background: none; cursor: pointer; } .youtube-play-btn { position: absolute; z-index: 10; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; display: block; padding: 0; margin: 0 auto; user-select: none; background-color: ${r}; transition: background-color 0.5s ease; border-radius: 5px; &:after { position: absolute; top: calc(50% - 15px); left: calc(50% - 8px); content: ''; border-color: transparent transparent transparent #fff; border-style: solid; border-width: 14px 0 14px 20px; } &:hover { background-color: ${i}; } } img { display: block; height: 100%; width: 100%; aspect-ratio: 16/9; object-fit: fill; } `}} `,be=t=>{const n=/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/,r=t.match(n);return r&&r[2].length==11?r[2]:null},zt=t=>{const n=/(http|https)?:\/\/(www\.|player\.)?vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|video\/|)(\d+)(?:|\/\?)/,i=t.match(n)?.pop();return i||null},Ft=({src:t,posterImage:n,videoTheme:r="blue",className:i,format:l="youtube"})=>{const[a,o]=(0,e.useState)(!1),c=()=>{o(!a)};let p,x;return l==="vimeo"?(x="Vimeo video",p=`https://player.vimeo.com/video/${zt(t)}`):(x="YouTube video",p=`https://youtube.com/embed/${be(t)}`),(0,e.useEffect)(()=>{if(!n)o(!0);else{const b=document.getElementById("video-player")?.getElementsByTagName("iframe");b&&!b[0]?.src.includes("autoplay")&&n?.src&&(b[0].src+="?autoplay=1")}},[a,n]),t?e.createElement(Bt,{videoTheme:r,className:i&&i},!a&&e.createElement("button",{onClick:()=>c()},e.createElement("span",{className:"youtube-play-btn"}),e.createElement("img",{src:n?.src?n?.src:`https://img.youtube.com/vi/${be(t)}/hqdefault.jpg`,alt:n?.alt})),a&&e.createElement("div",{id:"video-player",className:"video"},e.createElement("iframe",{width:"560",height:"315",src:p,title:x,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0}))):null},Ot=s.Ay.div` ${({theme:{colors:t,mq:n},videoTheme:r="gold"})=>{const i=(0,y.DF)(r);return(0,s.AH)` position: relative; height: 100%; color: ${t.light.neutral.black}; padding-bottom: 28px; .video-player__title { color: ${t.light.brand.darkBlue}; } @media ${n.min.px.tablet} { padding-bottom: 64px; } .video-player__container { position: relative; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; margin-block-start: 1em; ::before { ${(0,y.uY)(i)} } } .video-player__embed { position: relative; height: 100%; width: 100%; z-index: 1; @media ${n.min.px.tablet} { width: 100%; } } `}} `,O=({src:t,title:n,videoTheme:r="blue",posterImage:i,description:l,format:a})=>e.createElement(Ot,{className:"video-player",videoTheme:r},e.createElement("div",{className:"video-player__text-container"},n&&e.createElement("h3",{className:"video-player__title"},n),l&&e.createElement("p",null,l)),e.createElement("div",{className:"video-player__container"},e.createElement(Ft,{className:"video-player__embed",src:t,posterImage:i,format:a,videoTheme:r}))),Rt=(0,s.AH)` .swiper-container-fade.swiper-container-free-mode .swiper-slide { transition-timing-function: ease-out; } .swiper-container-fade .swiper-slide { pointer-events: none; transition-property: opacity; } .swiper-container-fade .swiper-slide .swiper-slide { pointer-events: none; } .swiper-container-fade .swiper-slide-active, .swiper-container-fade .swiper-slide-active .swiper-slide-active { pointer-events: auto; } `,Tt=s.Ay.div` ${({theme:{colors:t,mq:n,spacing:r},galleryTheme:i="gold",length:l})=>{const a=(0,y.DF)(i);return(0,s.AH)` position: relative; padding-bottom: 28px; @media ${n.min.px.tablet} { /* padding-bottom: 64px; */ } .slider__wrapper { position: relative; ::before { ${(0,y.uY)(a,l>1?"slider":"cards")} } } .swiper-container { margin-left: auto; margin-right: auto; position: relative; overflow: hidden; list-style: none; padding: 0; z-index: 1; } .swiper-wrapper { position: relative; width: 100%; height: 100%; z-index: 1; display: flex; transition-property: transform; box-sizing: content-box; } .swiper-slide { flex-shrink: 0; width: 100%; height: 100%; position: relative; transition-property: transform; } /* Auto Height */ .swiper-container-autoheight { &, .swiper-slide { height: auto; } .swiper-wrapper { align-items: flex-start; transition-property: transform, height; } } ${Rt}; .swiper-arrow-controls { z-index: 2; } .swiper-slide-active { .swiper-slide img { border-radius: 0px 0px 0px 50px; @media ${o=>o.theme.mq.min.px.tablet} { border-radius: 0px 0px 0px 50px; } } } .swiper-slide-next { .swiper-slide img { border-radius: 0px 50px 0px 0px; @media ${o=>o.theme.mq.min.px.tablet} { border-radius: 0px 50px 0px 0px; } } } .swiper-prev { background-color: rgba(0, 0, 0, 0.5); border: 2px solid transparent; color: ${t.light.neutral.white}; } .swiper-next { background-color: ${t.light.neutral.white}; border: 2px solid ${t.light.neutral.white}; color: ${t.light.brand.midBlue}; } .swiper-arrow { position: relative; display: inline-block; padding: 0.5rem; margin: 0.5rem; border: none; border-radius: 50%; color: ${o=>o.theme.colors.light.brand.midBlue}; background-color: white; transition: all ease-in-out 150ms; cursor: pointer; &:hover, &:focus-visible { color: white; background-color: ${o=>o.theme.colors.light.brand.darkBlue}; transition: all ease-in-out 150ms; /* transform: scale(1.1); */ } &:disabled { cursor: not-allowed; color: white; background-color: rgba(0, 0, 0, 0.4); } } .swiper-pagination { font-size: 0; line-height: 0; text-align: center; z-index: 2; } .swiper-pagination-bullet { position: relative; display: inline-block; border: 1px solid white; border-radius: 50%; height: 1rem; width: 1rem; margin: 0.5rem; background-color: rgba(0, 0, 0, 0.4); transition: background-color ease-in-out 150ms; cursor: pointer; &:hover, &:focus-visible { background-color: ${o=>o.theme.colors.light.brand.gold}; opacity: 1.2; transition: background-color ease-in-out 150ms; } } .swiper-pagination-bullet-active { background-color: white; transition: background-color ease-in-out 150ms; } .swiper-pagination-bullet { height: 12px; width: 12px; border-radius: 50%; border: 1px solid white; margin: 0 5px; @media ${n.min.px.largeDesktop} { height: 16px; width: 16px; } } .slider__title { margin-bottom: 1em; } .slider__navigation-container { display: ${l>1?"flex":"none"}; align-items: center; justify-content: space-between; gap: ${r.xxs}; margin-top: ${r.xxs}; @media ${n.min.px.laptop} { width: calc(100% - calc(var(--grid-gutter) + 64px)); } .content-slider__pagination-container { display: flex; gap: ${r.xxxs}; .swiper-pagination-bullet { height: 12px; width: 12px; border-radius: 50%; border: 1px solid white; margin: 0 5px; @media ${n.min.px.largeDesktop} { height: 16px; width: 16px; } } } .swiper-arrow-controls { display: flex; .swiper-arrow { display: flex; align-items: center; border-radius: 50%; cursor: pointer; padding: ${r.xxxs}; max-height: 42px; max-width: 42px; transition: transform 0.3s ease-in-out; &:hover { transform: scale(1.1); } } .swiper-prev { background-color: rgba(0, 0, 0, 0.5); border: 2px solid transparent; color: ${t.light.neutral.white}; } .swiper-next { background-color: ${t.light.neutral.white}; border: 2px solid ${t.light.neutral.white}; color: ${t.light.brand.midBlue}; } } } `}} `,xe=s.Ay.div` position: relative; display: flex; flex-flow: column nowrap; cursor: pointer; .slide-content { position: relative; flex: 0 0 376px; padding: 2rem 0.5rem 1rem 0.5rem; border-radius: 0 0 0 50px; background-color: ${t=>t.theme.colors.light.brand.lightGold}; z-index: 1; @media ${t=>t.theme.mq.min.px.largeMobile} { padding: 2rem; margin-left: auto; min-height: 460px; } } img { width: 100%; height: 180px; object-fit: cover; @media ${t=>t.theme.mq.min.px.mobile} { height: 275px; } @media ${t=>t.theme.mq.min.px.desktop} { height: 375px; } } `,Mt=s.Ay.div` ${({theme:{colors:t,mq:n,spacing:r},galleryTheme:i="gold"})=>{const l=(0,y.DF)(i);return(0,s.AH)` position: relative; display: flex; flex-flow: column nowrap; background-color: ${a=>a.theme.colors.light.neutral.white}; border: 1px solid ${l||t.light.brand.midBlue}; padding: ${r.l} ${r.xs}; width: 100%; border-radius: 0 50px 0px 50px; @media ${n.min.px.tablet} { padding: ${r.xl} ${r.s}; } @media ${n.min.px.largeMobile} { flex-flow: row nowrap; padding-block-start: 4rem; } `}} `;var fe=m(5241);L.A.use([G.A,V.A,Y.A,U.A]);const Pt=({id:t})=>e.createElement("div",{className:"swiper-arrow-controls"},e.createElement("button",{className:"swiper-prev swiper-arrow",id:`swiper-prev-${t}`},e.createElement(E.A,{icon:"arrowLeft",size:24})),e.createElement("button",{className:"swiper-next swiper-arrow",id:`swiper-next-${t}`},e.createElement(E.A,{icon:"arrowRight",size:24}))),Dt=()=>e.createElement("div",{className:"swiper-pagination"}),jt=t=>{const[n,r]=(0,e.useState)(!1),{width:i}=(0,fe.lW)(),l=()=>{r(!0)};return e.createElement(e.Fragment,null,i>768?e.createElement(xe,{className:"swiper-slide",onClick:l},e.createElement(I.A,{...t,id:"slider-image"})):e.createElement(xe,{className:"swiper-slide"},e.createElement(I.A,{...t,id:"slider-image"})),e.createElement(ge,{isOpen:n,setOpen:r},e.createElement(I.A,{className:"modal-image",...t,sizes:{1440:2e3,992:2e3,default:250},id:"slider-image"}),t.caption&&e.createElement("p",{className:"modal-image-caption"},t.caption)))},Lt=({galleryTheme:t,...n})=>e.createElement(Mt,{galleryTheme:t},e.createElement(he,{...n})),A=({content:t,galleryTheme:n="gold",type:r="image",title:i,controls:l=!0,pagination:a=!0,id:o})=>{const{width:c}=(0,fe.lW)(),p=x=>{switch(x){case"profile":return{autoHeight:!0,slidesPerView:1,spaceBetween:0,effect:"fade",fadeEffect:{crossFade:!0},navigation:{nextEl:".swiper-next.swiper-arrow",prevEl:".swiper-prev.swiper-arrow"},pagination:{el:".swiper-pagination",clickable:!0},loop:!0};case"event":return{autoHeight:!0,slidesPerView:1,spaceBetween:0,effect:"fade",fadeEffect:{crossFade:!0},navigation:{nextEl:".swiper-next.swiper-arrow",prevEl:".swiper-prev.swiper-arrow"},pagination:{el:".swiper-pagination",clickable:!0},loop:!0};case"image":default:return{slidesPerView:t.length>1?2:1,spaceBetween:c>768?32:16,effect:"slide",fadeEffect:{crossFade:!0},keyboard:{enabled:!0},initialSlide:0,navigation:{nextEl:".swiper-next.swiper-arrow",prevEl:".swiper-prev.swiper-arrow"},pagination:{el:".swiper-pagination",clickable:!0,type:"bullets"},loop:!0}}};return e.createElement(Tt,{galleryTheme:n,length:t.length,className:`slider ${r&&`slider--${r}`}`},i&&e.createElement("h3",{className:"slider__title"},i),e.createElement("div",{className:"slider__wrapper"},e.createElement(D.R,{...p(r)},t.map((x,g)=>e.createElement(j.q,{key:g},r==="profile"?e.createElement(Lt,{...x,galleryTheme:n}):e.createElement(jt,{...x}))),e.createElement("div",{className:"slider__navigation-container"},a&&e.createElement(Dt,null),l&&e.createElement(Pt,{id:o})))))},Gt=s.Ay.blockquote` ${({theme:{colors:t,spacing:n},quoteTheme:r="gold"})=>{const i=(0,y.DF)(r);return(0,s.AH)` display: flex; flex-direction: column; padding: var(--space-m-l, ${n.s}); border: 1px solid ${i}; border-radius: 0 50px 0 50px; .icon--quote { color: ${i}; align-self: flex-start; } .quote__content { margin-block: 1em; } footer { color: ${t.light.brand.darkBlue}; font-weight: 700; cite { display: block; margin-top: 0.25em; font-weight: 400; font-style: normal; } } `}} `,R=({quote:t,author:n,reference:r,quoteTheme:i})=>t?e.createElement(Gt,{quoteTheme:i},e.createElement(E.A,{size:40,icon:"quote"}),e.createElement(w.VK,{className:"h5 quote__content flow",text:t}),e.createElement("footer",null,n," ",e.createElement("cite",null,r))):null;var ee=m(8915);const Vt=({id:t,caseStudies:n,caseStudiesIntroduction:r})=>!n||r&&!(0,ee.R)(r)===null?null:e.createElement(Yt,{id:t,className:"flow"},r&&e.createElement(w.Hl,{data:r}),n&&e.createElement(A,{...n})),Yt=s.Ay.div``,T=Vt,Ut=({id:t,overview:n,placements:r,video:i,gallery:l,quote:a,caseStudy:o})=>!n&&!r&&!i&&!l&&!a&&!o?null:e.createElement(It,{id:t,className:"flow"},n&&e.createElement(w.Hl,{data:n}),r&&e.createElement(w.Hl,{data:r}),e.createElement("hr",null),i?.video?e.createElement(e.Fragment,null,e.createElement(O,{...i.video}),e.createElement("hr",null)):null,l?.gallery?e.createElement(e.Fragment,null,e.createElement(A,{...l.gallery}),e.createElement("hr",null)):null,a?.quote?e.createElement(e.Fragment,null,e.createElement(R,{...a.quote}),e.createElement("hr",null)):null,o?.caseStudies?e.createElement(e.Fragment,null,e.createElement(T,{...o.caseStudies}),e.createElement("hr",null)):null),It=s.Ay.section``,Wt=Ut,Kt=({yearStructures:t})=>{const[n,r]=(0,e.useState)(0);return t?e.createElement(ce,null,e.createElement("div",{className:"course-modules__tabs"},t.map((i,l)=>e.createElement("div",{key:l,className:`course-modules__tab ${n===l?"active":""}`},e.createElement("h3",{className:"p"},e.createElement("button",{className:"course-modules__tab-button",onClick:()=>r(l)},i.title)),n===l&&e.createElement(e.Fragment,null,i.mandatoryModules&&i.mandatoryModules?.items.length>0?e.createElement(e.Fragment,null,i.mandatoryModules.title&&e.createElement("strong",{className:"h6 course-modules__reqiurements-title"},i.mandatoryModules.title),e.createElement(q.A,{items:[...i.mandatoryModules.items]})):null,i.optionalModules&&i.optionalModules?.items.length>0?e.createElement(e.Fragment,null,i.optionalModules.title&&e.createElement("h6",{className:"course-modules__reqiurements-title"},i.optionalModules.title),e.createElement(q.A,{items:[...i.optionalModules.items]}),i.text&&e.createElement(Z.default,{text:i.text,className:"course-modules__text flow"})):null))))):null},Xt=({id:t,content:n,modules:r})=>{const i=(0,_.d4)(S.b9);return!i&&!n&&!r?null:e.createElement(Qt,{id:t,className:"flow"},(i?.content||n)&&e.createElement(w.Hl,{data:i?.content??n}),(i?.modules||r)&&e.createElement(Kt,{...i?.modules?i.modules:r}),e.createElement("hr",null))},Qt=s.Ay.section``,Jt=Xt,Zt=({id:t,careers:n,video:r,gallery:i,quote:l,caseStudy:a})=>!n&&!r&&!i&&!l&&!a?null:e.createElement(qt,{id:t,className:"flow"},n&&e.createElement(w.Hl,{data:n}),e.createElement("hr",null),r?.video?e.createElement(e.Fragment,null,e.createElement(O,{...r.video}),e.createElement("hr",null)):null,i?.gallery?e.createElement(e.Fragment,null,e.createElement(A,{...i.gallery}),e.createElement("hr",null)):null,l?.quote?e.createElement(e.Fragment,null,e.createElement(R,{...l.quote}),e.createElement("hr",null)):null,a?.caseStudies.caseStudies||a?.caseStudies.caseStudiesIntroduction?e.createElement(e.Fragment,null,e.createElement(T,{...a.caseStudies}),e.createElement("hr",null)):null),qt=s.Ay.section``,en=Zt,tn=s.Ay.div` ${({theme:{colors:t,mq:n,spacing:r},afterHeight:i})=>{let l;return i==="150px"?l="50px":l="0",(0,s.AH)` display: flex; .u-container { display: flex; flex-direction: column; gap: ${r.s}; } .tabbed-content__tab-content-container { position: relative; } .tabbed-content__tab-content-container .tab-content-wrapper { position: relative; padding-bottom: ${l}; } .tabbed-content__tab-content-container .tab-content-wrapper .tab-content { max-height: auto; overflow: hidden; } .tabbed-content__tab-content-container.show-full .tab-content-wrapper .tab-content { max-height: none !important; } /* .tab-content-wrapper:not(.show-full) .read-more { display: none; } */ .tabbed-content__tab-content-container .tab-content-wrapper .tab-content::after { content: ''; position: absolute; bottom: 50px; left: 0; width: 100%; height: ${i}; background: linear-gradient( to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 100% ); } .tabbed-content__tab-content-container.show-full .tab-content-wrapper .tab-content::after { display: none; } .tabbed-content__tab-content-container .tab-content-wrapper .read-more { position: absolute; bottom: 0; left: 0; right: 0; margin: 0 auto; width: max-content; border: none; color: ${t.light.brand.midBlue}; cursor: pointer; background: none; transition: all 200ms ease; &:hover, &:focus-within { transition: all 200ms ease; color: ${t.light.brand.darkBlue}; } } .tabbed-content__container { display: flex; flex-direction: column; gap: ${r.s}; width: 100%; @media ${n.min.px.tablet} { flex-direction: row; } } .tabbed-content__tabs-list { display: flex; align-items: flex-start; list-style-type: none; padding: 0; flex-direction: row; max-width: none; overflow: auto; gap: ${r.xxxs}; scroll-behavior: smooth; scrollbar-width: thin; @media ${n.min.px.tablet} { flex-direction: column; width: max-content; overflow: unset; flex-direction: column; min-width: max-content; } &::-webkit-scrollbar { width: 8px; } &::-webkit-scrollbar-track { background: #f5f5f5; } &::-webkit-scrollbar-thumb { background-color: #888; border-radius: 20px; border: 3px solid #f5f5f5; } &::-webkit-scrollbar-thumb:hover { background-color: #555; } .tabbed-content__tab-list-item { display: inline-block; width: auto; position: relative; background: linear-gradient( to right, ${t.light.brand.lightestGold}, ${t.light.brand.lightestGold} ) no-repeat; background-size: 0 100%; transition: background-size 0.5s ease-in-out; @media ${n.min.px.tablet} { width: 100%; } ::before { content: ''; position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: ${t.light.brand.burgundy}; transition: width 0.3s; @media ${n.min.px.tablet} { top: 0; height: 0; width: 4px; transition: height 0.3s; } } &:hover { background-size: 100% 100%; } &:hover::before, &.active-tab::before { width: 100%; @media ${n.min.px.tablet} { height: 100%; width: 4px; } } &.active-tab { background-color: ${t.light.brand.lightestGold}; } button { cursor: pointer; padding: ${r.xxs}; border: none; inline-size: max-content; height: 100%; width: 100%; background: none; text-align: center; transition: transform 0.3s ease-in-out; @media ${n.min.px.tablet} { text-align: left; } } } } `}} `,te=({title:t,content:n,className:r,disableReadMore:i=!1})=>{const[l,a]=(0,e.useState)(()=>n&&n.length>0?n[0].title:null),o=(0,e.useRef)(null),c=(0,e.useRef)([]),[p,x]=(0,e.useState)(!1),g=(0,e.useRef)(null),b=(u,$)=>{$.stopPropagation(),a(u),o.current&&o.current.focus()},f=()=>{if(l!==null){const u=c.current[Number(l)];u&&u.focus()}},M=()=>{x(!p)};(0,e.useEffect)(()=>{x(!1)},[l]);const[C,re]=(0,e.useState)(0),H=(0,e.useRef)(null);(0,e.useEffect)(()=>{const u=setTimeout(()=>{if(g.current){const $=g.current.offsetHeight;re($)}},0);return()=>clearTimeout(u)},[l]);const N=(n?.length??0)*66;return(0,e.useEffect)(()=>{const u=setTimeout(()=>{if(g.current&&H.current){const $=N;H.current.offsetHeight>$&&!i?H.current.style.maxHeight=`${$}px`:H.current.style.maxHeight="none"}},0);return()=>clearTimeout(u)},[l,i,N]),n?e.createElement(tn,{className:r&&r,afterHeight:C>N&&!i?"150px":"0"},e.createElement("div",{className:"tabbed-content__container"},t&&e.createElement("h3",{className:"sr-only"},t),e.createElement("ul",{className:"tabbed-content__tabs-list",role:"tablist"},n.map((u,$)=>e.createElement("li",{className:`tabbed-content__tab-list-item ${l===u.title?"active-tab":""}`,key:$,role:"presentation"},e.createElement("button",{role:"tab",className:"h6","aria-controls":(0,K.Y)(u.title),"aria-selected":l===u.title,onClick:z=>b(u.title,z),ref:z=>c.current[$]=z},u.title)))),e.createElement("div",{className:`tabbed-content__tab-content-container ${p?"show-full":""}`,ref:o,tabIndex:-1,onBlur:f},n.map((u,$)=>l===u.title&&e.createElement("div",{key:$,id:(0,K.Y)(u.title),className:"tab-content-wrapper","aria-labelledby":(0,K.Y)(u.title),role:"tabpanel",ref:g},e.createElement("div",{className:"tab-content",ref:H},typeof u.content=="string"?e.createElement(w.VK,{text:u.content,className:"markup"}):u.content),C>N&&!i&&e.createElement("button",{className:"h6 read-more",onClick:M},p?"Close":"Read more")))))):null},nn=({id:t,teachingIntroduction:n,teachingTabs:r,staffIntroduction:i,staffMembers:l,video:a,gallery:o,quote:c,caseStudy:p})=>!r&&!l&&!a&&!o&&!c&&!p&&!n&&!i?null:e.createElement(rn,{id:t,className:"flow"},n&&e.createElement(w.Hl,{data:n}),r&&e.createElement(te,{...r}),i&&e.createElement(w.Hl,{data:i}),l&&e.createElement(A,{...l}),e.createElement("hr",null),a?.video?e.createElement(e.Fragment,null,e.createElement(O,{...a.video}),e.createElement("hr",null)):null,o?.gallery?e.createElement(e.Fragment,null,e.createElement(A,{...o.gallery}),e.createElement("hr",null)):null,c?.quote?e.createElement(e.Fragment,null,e.createElement(R,{...c.quote}),e.createElement("hr",null)):null,p?.caseStudies.caseStudies||p?.caseStudies.caseStudiesIntroduction?e.createElement(e.Fragment,null,e.createElement(T,{...p.caseStudies}),e.createElement("hr",null)):null),rn=s.Ay.section``,an=nn,ln=({ucasPoints:t,requirements:n})=>e.createElement(on,{className:"flow entry-requirements-table"},t&&e.createElement("p",{className:"lead"},pe.ucasTariff," ",e.createElement("strong",null,t)),n&&n.length>0&&e.createElement("table",null,e.createElement("caption",null,"Typical Offer"),e.createElement("thead",{className:"sr-only"},e.createElement("tr",null,e.createElement("th",null,"Qualification"),e.createElement("th",null,"Grade"))),e.createElement("tbody",null,n.map((r,i)=>r?e.createElement("tr",{key:i},e.createElement("td",null,r.qualification),e.createElement("td",null,r.grade)):null)))),on=s.Ay.div` ${y.Ju}; table { margin-block-start: 2em; width: 100%; } thead { text-align: left; } thead th:first-of-type, tbody td:first-of-type { width: min-content; @media ${t=>t.theme.mq.min.px.tablet} { width: 25; } } thead th:last-of-type, tbody td:last-of-type { width: 100%; @media ${t=>t.theme.mq.min.px.tablet} { width: 75%; } } `,sn=ln,cn=({id:t,requirements:n,additionalRequirements:r,anyQuestions:i,cpdCourse:l})=>!n&&!r&&!i?null:e.createElement(dn,{id:t,className:"flow"},!l&&e.createElement("h2",null,"Entry requirements"),n&&e.createElement(sn,{...n}),r&&e.createElement(w.Hl,{data:r}),i&&e.createElement(w.Hl,{data:i}),e.createElement("hr",null)),dn=s.Ay.section``,mn=cn,pn=({id:t,exploreCards:n,video:r,gallery:i,quote:l,caseStudy:a})=>!n&&!r&&!i&&!l&&!a?null:e.createElement(un,{id:t,className:"flow"},r?e.createElement(e.Fragment,null,e.createElement(O,{...r.video}),e.createElement("hr",null)):null,i?e.createElement(e.Fragment,null,e.createElement(A,{...i.gallery}),e.createElement("hr",null)):null,l?e.createElement(e.Fragment,null,e.createElement(R,{...l.quote}),e.createElement("hr",null)):null,a?.caseStudies?e.createElement(e.Fragment,null,e.createElement(T,{...a.caseStudies}),e.createElement("hr",null)):null,e.createElement("h2",null,"More to explore"),n&&e.createElement(ue,{...n}),e.createElement("hr",null)),un=s.Ay.section``,hn=pn,gn=s.Ay.div` ${({theme:{colors:t,mq:n,spacing:r}})=>(0,s.AH)` display: flex; flex-direction: column-reverse; justify-content: space-between; align-items: center; gap: var(--space-l-xl, {spacing.m}); padding-bottom: var(--space-m-l, ${r.s}); border-bottom: 1px solid ${t.light.brand.lightGold}; &:not(:first-child) { padding-top: var(--space-m-l, ${r.s}); } @media ${n.min.px.tablet} { flex-direction: row; } .fee-card__orb { --orb-size: 170px; display: flex; align-items: center; text-align: center; justify-content: center; height: var(--orb-size); min-height: var(--orb-size); width: var(--orb-size); min-width: var(--orb-size); background-color: ${t.light.brand.lightGold}; color: ${t.light.brand.darkBlue}; padding: ${r.s}; border-radius: 50%; overflow: hidden; p { font-weight: 600; font-family: 'Bebas Neue', sans-serif; transition: font-size 0.4s ease-in-out; } } `} `;var bn=m(8566),xn=m(1389);const we=({description:t,fee:n,hideOrb:r})=>!n||!t||Array.isArray(t[0].value)&&t[0].value.length===0||t[0].value===""?null:e.createElement(gn,null,t&&e.createElement("div",{className:"fee-card__description-container"},e.createElement(bn.default,{data:t})),!r&&t&&n&&e.createElement("div",{className:"fee-card__orb","aria-hidden":"true"},e.createElement("p",{className:"h2"},typeof n=="number"?(0,xn.v)(n):n))),fn=(t,n,r,i,l)=>{const a=[];return t&&a.push({title:"Full time",content:t.map((o,c)=>e.createElement(we,{key:c===0?"uk":"overseas",description:o?.description,fee:o?.fee??"",hideOrb:o?.hideOrb}))}),n&&a.push({title:"Part-time",content:n.map((o,c)=>e.createElement(we,{key:c===0?"uk":"overseas",description:o?.description,fee:o?.fee??"",hideOrb:o?.hideOrb}))}),r&&r.length>0&&r[0].value!==null&&!(Array.isArray(r[0].value)&&r[0].value.length===0)&&a.push({title:"Other costs",content:e.createElement(e.Fragment,null,e.createElement(w.Hl,{data:r}))}),i&&i.length>0&&i[0].value!==null&&!(Array.isArray(i[0].value)&&i[0].value.length===0)&&a.push({title:"Accommodation",content:e.createElement(e.Fragment,null,e.createElement(w.Hl,{data:i}))}),l&&a.push(...l.map(o=>({title:o.title,content:e.createElement(e.Fragment,null,e.createElement(w.VK,{text:o.content}))}))),a},wn=({id:t,fees:n,ptFees:r,additionalFees:i,accomodationFees:l,feesTabs:a,video:o,gallery:c,quote:p,caseStudy:x})=>{const g=(0,_.d4)(S.B);return!n&&!g?.fees&&!a?null:e.createElement(vn,{id:t,className:"flow"},e.createElement("h2",null,"Fees"),(n||g?.fees||a)&&(i||g?.additionalFees)&&(l||g?.accomodationFees)&&e.createElement(te,{title:"Fees contents",content:fn(g?.fees??n,g?.ptFees??r,g?.additionalFees??i,g?.accomodationFees??l,g?.feesTabs??a??[]),disableReadMore:!0}),e.createElement("hr",null),o?.video?e.createElement(e.Fragment,null,e.createElement(O,{...o.video}),e.createElement("hr",null)):null,c?.gallery?e.createElement(e.Fragment,null,e.createElement(A,{...c.gallery}),e.createElement("hr",null)):null,p?.quote?e.createElement(e.Fragment,null,e.createElement(R,{...p.quote}),e.createElement("hr",null)):null,x?.caseStudies?e.createElement(e.Fragment,null,e.createElement(T,{...x.caseStudies}),e.createElement("hr",null)):null)},vn=s.Ay.section``,En=wn;var ne=m(7454);const yn=(t,n,r,i,l,a)=>{const o=[];return t&&t.length>0&&t[0].value!==null&&!(Array.isArray(t[0].value)&&t[0].value.length===0)&&o.push({title:r,content:e.createElement(e.Fragment,null,e.createElement(w.Hl,{data:t}),l&&!a&&e.createElement(ne.A,{buttonTheme:"primary",label:"Apply now",link:l,className:"canvas-button"}))}),n&&n.length>0&&n[0].value!==null&&!(Array.isArray(n[0].value)&&n[0].value.length===0)&&o.push({title:i,content:e.createElement(e.Fragment,null,e.createElement(w.Hl,{data:n}))}),o},$n=({id:t,howToApplyTitle:n,howToApply:r,additionalApplicationInformation:i,additionalInformationTitle:l,applyNowUrl:a,hideApplyNowButton:o})=>{const c=(0,_.d4)(S.Z_);return(c?.howToApply&&(0,ee.R)(c.howToApply))??(r&&(0,ee.R)(r))?e.createElement(_n,{id:t,className:"flow"},e.createElement("h2",null,"How to apply"),e.createElement(te,{key:c?.howToApply?.[0]?.id||r?.[0]?.id||0,title:"How to apply contents",content:yn(c?.howToApply??r,c?.additionalApplicationInformation??i,c?.howToApplyTitle??n,c?.additionalInformationTitle??l,c?.applyNowUrl??a,c?.hideApplyNowButton??o),disableReadMore:!0}),e.createElement("hr",null)):null},_n=s.Ay.section` .canvas-button { margin-top: ${t=>t.theme.spacing.xxs}; &:hover, &:focus-visible { transform: scale(1); } } `,kn=$n;var Nn=m(2459);const Sn=({title:t,date:n,location:r,summary:i,link:l,time:a,url:o})=>e.createElement(An,null,e.createElement("div",{className:"event__info-container"},e.createElement("div",{className:"event__icon-container"},n&&e.createElement("div",{className:"event__info"},e.createElement(E.A,{icon:"calendar",size:24}),e.createElement("p",{className:"event__date"},n)),a&&e.createElement("div",{className:"event__info"},e.createElement(E.A,{icon:"clock",size:24}),e.createElement("p",{className:"event__time"},a))),r&&e.createElement("div",{className:"event__tag"},e.createElement("p",{className:"event__location"},r))),e.createElement("div",{className:"event__details-container"},t&&o?e.createElement(Nn.N_,{to:o,className:"event__title-link"},e.createElement("h3",{className:"event__title"},t)):e.createElement("h3",{className:"event__title"},t),i&&e.createElement("p",null,i)),l&&l.path&&e.createElement(ne.A,{buttonTheme:"secondary",className:"event__button",link:l.path,label:l.label})),An=s.Ay.div` position: relative; display: flex; flex-direction: column; gap: ${t=>t.theme.spacing.xxs}; z-index: 99; pointer-events: all; .event__title-link { color: ${t=>t.theme.colors.light.brand.darkBlue}; text-decoration: none; &:hover { text-decoration: underline; } } .event__title { color: ${t=>t.theme.colors.light.brand.darkBlue}; } .event__icon-container { display: flex; flex-direction: column; gap: ${t=>t.theme.spacing.xxxs}; } .event__info-container { display: flex; justify-content: space-between; gap: ${t=>t.theme.spacing.xs}; width: 100%; } .event__details-container { display: flex; flex-direction: column; gap: ${t=>t.theme.spacing.xxs}; width: 100%; } .event__info { display: flex; align-items: center; gap: ${t=>t.theme.spacing.xxxs}; svg { color: ${t=>t.theme.colors.light.brand.midBlue}; } } .event__tag { display: flex; padding: 4px 6px; background-color: ${t=>t.theme.colors.light.brand.burgundy}; color: ${t=>t.theme.colors.light.neutral.white}; font-weight: 700; height: fit-content; } .event__date, .event__time { font-weight: 700; color: ${t=>t.theme.colors.light.brand.darkBlue}; } .event__button { margin-top: ${t=>t.theme.spacing.xxs}; z-index: 999; &:hover { transform: scale(1); } } `,Cn=(0,s.AH)` .swiper-container-fade.swiper-container-free-mode .swiper-slide { transition-timing-function: ease-out; } .swiper-container-fade .swiper-slide { pointer-events: none; transition-property: opacity; } .swiper-container-fade .swiper-slide .swiper-slide { pointer-events: none; } .swiper-container-fade .swiper-slide-active, .swiper-container-fade .swiper-slide-active .swiper-slide-active { pointer-events: auto; } `,Hn=s.Ay.div` position: relative; border: 1px solid ${t=>t.theme.colors.light.brand.lightGold}; border-bottom-left-radius: 50px; border-top-right-radius: 50px; @media ${t=>t.theme.mq.min.px.laptop} { border: unset; } .slider__wrapper { position: relative; ::before { @media ${t=>t.theme.mq.min.px.laptop} { content: ''; z-index: -1; position: absolute; top: 0; right: unset; width: 100%; height: 100%; border: 1px solid ${t=>t.theme.colors.light.brand.lightGold}; border-bottom-left-radius: 50px; border-top-right-radius: 50px; left: -64px; width: calc(100% + 64px); } } } .slider__content { padding: ${t=>t.theme.spacing.m}; width: 100%; @media ${t=>t.theme.mq.min.px.laptop} { padding: ${t=>t.theme.spacing.l} 0; width: calc(100% - 2 * ${t=>t.theme.spacing.xs}); } } .swiper-container { margin-left: auto; margin-right: auto; position: relative; overflow: hidden; list-style: none; padding: 0; z-index: 1; } .swiper-wrapper { position: relative; width: 100%; height: 100%; z-index: 1; display: flex; transition-property: transform; box-sizing: content-box; } .swiper-slide { flex-shrink: 0; width: 100%; height: 100%; position: relative; transition-property: transform; } /* Auto Height */ .swiper-container-autoheight { &, .swiper-slide { height: auto; } .swiper-wrapper { align-items: flex-start; transition-property: transform, height; } } ${Cn}; .swiper-arrow-controls { z-index: 2; } .swiper-slide-active { z-index: 99; .swiper-slide img { border-radius: 0px 0px 0px 50px; @media ${t=>t.theme.mq.min.px.tablet} { border-radius: 0px 0px 0px 50px; } } } .swiper-slide-next { .swiper-slide img { border-radius: 0px 50px 0px 0px; @media ${t=>t.theme.mq.min.px.tablet} { border-radius: 0px 50px 0px 0px; } } } .swiper-prev { background-color: rgba(0, 0, 0, 0.5); border: 2px solid transparent; color: ${t=>t.theme.colors.light.neutral.white}; } .swiper-next { border: 2px solid ${t=>t.theme.colors.light.neutral.white}; color: ${t=>t.theme.colors.light.brand.midBlue}; } .swiper-arrow { position: relative; display: inline-block; padding: 0.5rem; margin: 0.5rem; border: none; border-radius: 50%; color: ${t=>t.theme.colors.light.brand.midBlue}; background-color: white; transition: all ease-in-out 150ms; cursor: pointer; &:hover, &:focus-visible { color: white; background-color: ${t=>t.theme.colors.light.brand.darkBlue}; transition: all ease-in-out 150ms; transform: scale(1.1); } &:disabled { cursor: not-allowed; color: white; background-color: rgba(0, 0, 0, 0.4); } } .swiper-pagination { font-size: 0; line-height: 0; text-align: center; z-index: 2; } .swiper-pagination-bullet { position: relative; display: inline-block; border: 1px solid white; border-radius: 50%; height: 1rem; width: 1rem; margin: 0.5rem; background-color: rgba(0, 0, 0, 0.4); transition: background-color ease-in-out 150ms; cursor: pointer; &:hover, &:focus-visible { background-color: ${t=>t.theme.colors.light.brand.gold}; opacity: 1.2; transition: background-color ease-in-out 150ms; } } .swiper-pagination-bullet-active { background-color: ${t=>t.theme.colors.light.neutral.white}; transition: background-color ease-in-out 150ms; } .swiper-pagination-bullet { height: 12px; width: 12px; border-radius: 50%; border: 1px solid ${t=>t.theme.colors.light.brand.lightGold}; margin: 0 5px; @media ${t=>t.theme.mq.min.px.largeDesktop} { height: 16px; width: 16px; } } .slider__title { margin-bottom: 1em; } .slider__navigation-container { display: ${t=>t.length>1?"flex":"none"}; align-items: center; justify-content: space-between; gap: ${t=>t.theme.spacing.xxs}; margin-top: ${t=>t.theme.spacing.xxs}; width: 100%; .content-slider__pagination-container { display: flex; gap: ${t=>t.theme.spacing.xxxs}; .swiper-pagination-bullet { height: 12px; width: 12px; border-radius: 50%; border: 1px solid white; margin: 0 5px; @media ${t=>t.theme.mq.min.px.largeDesktop} { height: 16px; width: 16px; } } } .swiper-arrow-controls { display: flex; .swiper-arrow { display: flex; align-items: center; border-radius: 50%; cursor: pointer; padding: ${t=>t.theme.spacing.xxxs}; max-height: 42px; max-width: 42px; transition: transform 0.3s ease-in-out; &:hover { transform: scale(1.1); } } .swiper-prev { background-color: rgba(0, 0, 0, 0.5); border: 1px solid transparent; color: ${t=>t.theme.colors.light.neutral.white}; } .swiper-next { background-color: ${t=>t.theme.colors.light.neutral.white}; border: 1px solid ${t=>t.theme.colors.light.brand.lightGold}; color: ${t=>t.theme.colors.light.brand.midBlue}; } } } `,Bn=s.Ay.div``;L.A.use([G.A,V.A,Y.A,U.A]);const zn=({id:t})=>e.createElement("div",{className:"swiper-arrow-controls"},e.createElement("button",{className:"swiper-prev swiper-arrow",id:`swiper-prev-${t}`},e.createElement(E.A,{icon:"arrowLeft",size:24})),e.createElement("button",{className:"swiper-next swiper-arrow",id:`swiper-next-${t}`},e.createElement(E.A,{icon:"arrowRight",size:24}))),Fn=()=>e.createElement("div",{className:"swiper-pagination"}),On=({event:t})=>e.createElement(Bn,{className:"swiper-slide"},e.createElement(Sn,{...t})),Rn=({content:t,controls:n=!0,pagination:r=!0,id:i})=>{const l={autoHeight:!0,slidesPerView:1,spaceBetween:0,effect:"fade",fadeEffect:{crossFade:!0},navigation:{nextEl:".swiper-next.swiper-arrow",prevEl:".swiper-prev.swiper-arrow"},pagination:{el:".swiper-pagination",clickable:!0},loop:!1,preventClicks:!1,preventClicksPropagation:!1};return e.createElement(Hn,{length:t.length,className:"slider slider--event"},e.createElement("div",{className:"slider__wrapper"},e.createElement("div",{className:"slider__content"},e.createElement(D.R,{...l},t.map((a,o)=>e.createElement(j.q,{key:o},e.createElement(On,{event:a}))),e.createElement("div",{className:"slider__navigation-container"},r&&e.createElement(Fn,null),n&&e.createElement(zn,{id:i}))))))},Tn=({id:t,content:n})=>{if(!n||n.length<0)return null;const r=n.length>0?"Upcoming events":"Upcoming event";return e.createElement(Mn,{id:t,className:"flow"},e.createElement("h3",null,r),e.createElement(Rn,{id:"event-slider",content:n}),e.createElement("hr",null))},Mn=s.Ay.section``,Pn=t=>{if(!t||!t.date||!t.date)return!1;const n=new Date(t.date),r=new Date;return n>r},Dn=({mappedEntry:t})=>{const n=(0,_.d4)(S.Fc),r=(0,_.d4)(J.sW),i=(0,_.d4)(J.jI),l=(0,_.d4)(se.DT.selectors.selectCurrentLocation),[a,o]=(0,e.useState)({isOpen:!1,title:"",formUrl:""}),c=(d,k)=>{!d||!k||o({isOpen:!0,title:d,formUrl:k})},p=()=>{o({isOpen:!1,title:"",formUrl:""})},[x,g]=(0,e.useState)("");let b="200px";if(typeof window<"u"){const d=window&&window.innerHeight;b=d?`${d-200}px`:"205px"}const f=(d,k)=>{const Be=document.querySelector(k)?.previousSibling?.previousSibling?.id;g(d==="above"?k:Be?`#${Be}`:x)},M=(0,_.wA)(),C=(0,ze.W6)(),re=(0,_.d4)(S.It),H=(0,_.d4)(S.ls),N=new URLSearchParams(l?.search),[u,$]=(0,e.useState)(H.find(d=>Object.fromEntries(N).option===d.optionId)?.optionId??re);if((0,e.useEffect)(()=>{u&&(M(Te(u)),N.set("option",u),C.push(l.pathname+"?"+N.toString()))},[u]),t&&t.status==="error")return e.createElement(Pe.A,{...t});const{metadata:z,hero:ie,modalContent:X,navigation:h,keyFacts:ve,introduction:jn,overview:Ln,courseContent:Gn,careers:Vn,teaching:Yn,highlights:Ee,entryRequirements:ye,moreToExplore:Un,fees:$e,howToApply:In,staffContact:Wn,uniContact:_e,faqs:ke,unistats:P,relatedCourses:Ne,clearingAvailable:Kn,events:Se,hideCourseMessage:Xn,contactCTA:F,relatedCourseTitle:Qn,cpdCourse:Ae}=t||{},{hero:ae,modalContent:Q,navigation:B,keyFacts:Ce,clearingAvailable:Jn,entryRequirements:He}=n||{},Zn=(!!Kn||!!Jn)&&!!r,le=Se?Se?.content?.filter(d=>Pn(d)):null,qn={title:i?.title,message:i?.message,hideCourseMessage:Xn};if(t&&t.status==="success"&&n)return e.createElement(Me.A,{meta:z,showClearing:Zn},e.createElement(Oe,null,e.createElement(De.A,{...ae??ie,secondaryCTA:{...ae?.secondaryCTA??ie?.secondaryCTA,onClick:()=>c(Q?.title??X?.title,Q?.formUrl??X?.formUrl)},id:u,setId:$}),e.createElement(Ge,{activeSection:x,setActiveSection:g,links:B?.links?B?.links:h?.links}),e.createElement("div",{className:"u-container course-body"},e.createElement("div",{className:"[ u-grid ] flow"},e.createElement("article",{className:"course-body__content"},e.createElement(Ht,{id:h?.custom?"":"introduction",...jn,promoMessage:qn}),h?.custom?e.createElement(v.Y,{fireOnRapidScroll:!0,topOffset:150,bottomOffset:b,onLeave:({currentPosition:d})=>f(d,B?.links?.[0]?.path??h?.links?.[0]?.path)}):e.createElement(v.Y,{fireOnRapidScroll:!0,topOffset:150,bottomOffset:b,onLeave:({currentPosition:d})=>f(d,"#overview")}),e.createElement(Wt,{id:h?.custom?"":"overview",...Ln}),le&&le.length>0&&e.createElement(Tn,{id:"events",content:le}),h?.custom?e.createElement(v.Y,{fireOnRapidScroll:!0,topOffset:150,bottomOffset:b,onLeave:({currentPosition:d})=>f(d,B?.links?.[1]?.path??h?.links?.[1]?.path)}):e.createElement(v.Y,{fireOnRapidScroll:!0,topOffset:150,bottomOffset:b,onLeave:({currentPosition:d})=>f(d,"#course-content")}),e.createElement(Jt,{id:h?.custom?"":"course-content",...Gn}),h?.custom?e.createElement(v.Y,{fireOnRapidScroll:!0,topOffset:150,bottomOffset:b,onLeave:({currentPosition:d})=>f(d,B?.links?.[2]?.path??h?.links?.[2]?.path)}):e.createElement(v.Y,{fireOnRapidScroll:!0,topOffset:150,bottomOffset:b,onLeave:({currentPosition:d})=>f(d,"#careers")}),e.createElement(en,{id:h?.custom?"":"careers",...Vn}),h?.custom?null:e.createElement(v.Y,{fireOnRapidScroll:!0,topOffset:150,bottomOffset:b,onLeave:({currentPosition:d})=>f(d,"#highlights")}),Ee&&e.createElement("section",{id:h?.custom?"":"highlights",className:"highlights flow"},e.createElement("h2",{className:"section"},"Course highlights"),e.createElement(nt,{...Ee}),e.createElement("hr",null)),h?.custom?e.createElement(v.Y,{fireOnRapidScroll:!0,topOffset:150,bottomOffset:b,onLeave:({currentPosition:d})=>f(d,B?.links?.[3]?.path??h?.links?.[3]?.path)}):e.createElement(v.Y,{fireOnRapidScroll:!0,topOffset:150,bottomOffset:b,onLeave:({currentPosition:d})=>f(d,"#teaching-and-assessment")}),e.createElement(an,{id:h?.custom?"":"teaching-and-assessment",...Yn}),h?.custom?null:e.createElement(v.Y,{fireOnRapidScroll:!0,topOffset:150,bottomOffset:b,onLeave:({currentPosition:d})=>f(d,"#entry-requirements")}),He??ye?e.createElement(mn,{id:h?.custom?"":"entry-requirements",...He??ye,cpdCourse:Ae}):null,h?.custom?null:e.createElement(v.Y,{fireOnRapidScroll:!0,topOffset:150,bottomOffset:b,onLeave:({currentPosition:d})=>f(d,"#fees")}),$e&&e.createElement(En,{id:h?.custom?"":"fees",...$e}),h?.custom?e.createElement(v.Y,{fireOnRapidScroll:!0,topOffset:150,bottomOffset:b,onLeave:({currentPosition:d})=>f(d,B?.links?.[4]?.path??h?.links?.[4]?.path)}):e.createElement(v.Y,{fireOnRapidScroll:!0,topOffset:150,bottomOffset:b,onLeave:({currentPosition:d})=>f(d,"#how-to-apply")}),e.createElement(kn,{id:(h?.custom,"how-to-apply"),...In}),h?.custom?null:e.createElement(v.Y,{fireOnRapidScroll:!0,topOffset:150,bottomOffset:b,onLeave:({currentPosition:d})=>f(d,"#contact")}),e.createElement("section",{id:h?.custom?"":"contact",className:"flow"},e.createElement("h2",null,"Contact"),e.createElement("div",{className:"contact-section__container"},e.createElement("p",null,pe.contactMessage)),Wn?.map((d,k)=>e.createElement(he,{align:"start",...d,key:k})),F&&e.createElement(e.Fragment,null,e.createElement(ne.A,{className:"course-hero__button",label:F.label,buttonTheme:F.buttonTheme,link:F.link,onClick:()=>c(F.modal?.title??void 0,F.modal?.formUrl??void 0)})),_e&&e.createElement(ot,{..._e}),e.createElement("hr",null)),!Ae&&e.createElement(hn,{id:"more-to-explore",...Un}),ke&&e.createElement("section",{id:h?.custom?"":"faqs"},e.createElement("h2",null,"FAQs"),e.createElement(q.A,{...ke}))),e.createElement("aside",{className:"course-body__aside key-facts"},ve&&e.createElement(Ve.A,{...Ce||ve,secondaryCTA:{...ae?.secondaryCTA??ie?.secondaryCTA,onClick:()=>c(Q?.title??X?.title,Q?.formUrl??X?.formUrl)},id:u,setId:$})))),P&&P.some(d=>d.id!==null)&&e.createElement("section",{className:"flow unistats"},e.createElement("div",{className:"u-container"},e.createElement("div",{className:"unistats-container"},P&&P.length>0?e.createElement(e.Fragment,null,P.map((d,k)=>e.createElement(mt,{key:`${d.title}-${k}`,...d}))):null))),Ne&&e.createElement("section",{className:"related-courses"},e.createElement("div",{className:"u-container"},e.createElement("h2",null,Qn??"Similar Course"),e.createElement(ue,{...Ne}))),e.createElement(ge,{isOpen:a.isOpen,setOpen:p,modalTitle:a.title},e.createElement("iframe",{title:a.title,src:a.formUrl,className:"form-modal"}))))}}}]);