"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[520,795],{4984:(O,g,t)=>{t.d(g,{A:()=>m});var e=t(8322),s=t(7115);const b=s.Ay.div`
${()=>(0,s.AH)``}
`;var d=t(3689);const m=({title:o,items:n,className:i})=>!n||n.length<=0?null:e.createElement(b,{className:`accordion ${i||""}`},o&&e.createElement("h2",{className:"accordion__title"},o),n.map((l,u)=>e.createElement(d.A,{key:u,title:l.title,canvas:l.canvas,canvasData:l.canvasData},l.children)))},3689:(O,g,t)=>{t.d(g,{A:()=>o});var e=t(8322),s=t(7115);const b=s.Ay.div`
${({theme:{colors:n,spacing:i}})=>(0,s.AH)`
width: 100%;
&.is-closed {
.accordion-item__button {
border-bottom: 1px solid ${n.light.brand.lightGold};
background-color: white;
}
}
.accordion-item__button::before,
.accordion-item__button::after {
content: '';
position: absolute;
right: 10px;
top: 50%;
width: 16px;
height: 2px;
background-color: currentColor;
transition: transform 0.3s ease-in-out;
}
.accordion-item__button::before {
transform: rotate(0);
}
.accordion-item__button::after {
transform: rotate(90deg);
}
&.is-open .accordion-item__button::before {
transform: rotate(180deg);
}
&.is-open .accordion-item__button::after {
transform: rotate(0);
}
/* &.is-open .accordion-item__button {
background-size: 100% 100%;
} */
.accordion-item__button {
position: relative;
padding: ${i.xs} ${i.xxxs};
margin: 0;
border: none;
border-bottom: 1px transparent;
width: 100%;
text-align: left;
background-color: white;
cursor: pointer;
background: linear-gradient(to right, #f6f6f6, #f6f6f6) no-repeat;
background-size: 0 100%;
transition: background-size 0.5s ease-in-out;
&:hover {
background-size: 100% 100%;
}
&:hover,
&:focus-visible {
background-size: 100% 100%;
}
}
.accordion-item__label {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
.label {
padding-right: ${i.s};
margin: 0;
color: ${n.light.brand.darkBlue};
flex-grow: 1;
}
.accordion-item__icon {
color: ${n.light.brand.darkBlue};
min-height: 24px;
min-width: 24px;
}
}
.accordion-item__content {
max-height: 0;
overflow: hidden;
transition: max-height 1s ease-out, opacity 1s ease-out;
opacity: 0;
border-bottom: 1px solid ${n.light.brand.lightGold};
padding: ${i.xs} ${i.xxxs};
&.is-open {
max-height: 1000px;
opacity: 1;
transition: max-height 1s ease-in, opacity 1s ease-in;
}
}
`}
`;var d=t(8566),a=t(8401);const o=({title:n,children:i,className:l,initialState:u=!1,canvas:p=!1,canvasData:x})=>{const[f,y]=(0,e.useState)(u),k=_=>{_.stopPropagation(),y(!f)};return e.createElement(b,{className:`accordion-item ${l||""} ${f?"is-open":"is-closed"}`},e.createElement("button",{className:"accordion-item__button",onClick:_=>k(_),"aria-expanded":!!f,"aria-controls":n?.replace(/\s+/g,"-").toLowerCase()},e.createElement("span",{className:"accordion-item__label"},e.createElement("p",{className:"h6 label"},n))),f?e.createElement("div",{className:`accordion-item__content ${f?"is-open":"is-closed"}`,"aria-labelledby":n,id:n?.replace(/\s+/g,"-").toLowerCase()},p&&x?e.createElement(d.default,{className:"content",data:x}):null,i&&e.createElement(a.VK,{className:"content",text:i})):null)}},8566:(O,g,t)=>{t.r(g),t.d(g,{default:()=>N});var e=t(8322),s=t(6550),E=t(7820);const d=c=>{const{link:A,newTab:M}=c.block.properties||{},C={path:A?.sys?.uri,openInNewWindow:M};return e.createElement(E.A,{...C},e.createElement(s.N_.Children,{block:c.block}))};var a=t(7115),m=t(2472),o=t(5703);const i=a.Ay.div`
${()=>(0,a.AH)`
display: flex;
flex-direction: column;
* {
margin-block-start: 1em;
&:first-child {
margin-block-start: 0;
}
}
.testimonial {
margin-block: 2.5em;
}
.accordion {
margin-block: 2em;
& > .accordion-item {
margin-block-start: 0;
&:last-child {
margin-block-start: 0;
}
}
.accordion-item {
.accordion-item__button {
margin-block: 0;
.accordion-item__label {
.accordion-item__icon {
margin-block-start: 0;
}
}
}
}
}
.accordion-item {
margin-block-start: 0;
}
hr {
width: 100%;
}
ul,
ol {
font-weight: 600;
color: ${m.T.light.brand.darkBlue};
li::marker {
color: ${m.T.light.brand.gold};
}
}
a {
text-decoration: underline;
}
${o.Ju};
.canvas-button {
&:hover,
&:focus-visible {
transform: scale(1);
}
}
img {
align-self: center;
max-height: 600px;
}
`}
`;var l=t(4984),u=t(3149);const p=c=>{if(!c.block.value)return null;const A=(0,u.e)(c.block.value);return A?e.createElement(l.A,{...A}):null};var x=t(3692);const f=c=>({title:c.title,children:c.content});var y=t(3689);const k=c=>c.block.value?e.createElement(y.A,{...(0,x.mapJson)(c.block.value,f)}):null,_=c=>({label:c.label,buttonTheme:c.buttonTheme,link:c.url});var P=t(7454);const r=c=>c.block.value?e.createElement(P.A,{...(0,x.mapJson)(c.block.value,_),className:"canvas-button"}):null,h=c=>{const A={data:c?.block?.value?.snippet?.content};return!A.data||A.data.length<=0?null:e.createElement(N,{...A})},D={},B={accordion:p,accordionItem:k,button:r,snippet:h},N=({data:c,className:A})=>c?e.createElement(i,{className:A||""},e.createElement(s.Tz,{blocks:{_link:d},components:B},e.createElement(s.A4,{data:c}))):null},2040:(O,g,t)=>{t.d(g,{A:()=>P});var e=t(8322),s=t(7115),E=t(394);const d=s.Ay.div`
${({theme:{colors:r,mq:v,spacing:h}})=>(0,s.AH)`
padding-block: var(--space-m-xl, ${h.xl});
.u-container {
display: flex;
flex-direction: column-reverse;
justify-content: space-between;
gap: ${(0,E.A)(36)};
@media ${v.min.px.desktop} {
flex-direction: row;
}
}
.course-hero__content-container {
display: flex;
flex-direction: column;
justify-content: space-evenly;
height: inherit;
gap: ${h.xs};
flex: 1;
}
.course-hero__text-container {
order: 2;
}
.course-hero__title,
.course-hero__award {
color: ${r.light.brand.darkBlue};
}
.course-hero__title {
font-weight: 600;
text-wrap: balance;
&.course-hero__title--long {
font-size: var(--step-4);
font-weight: 700;
}
@media ${v.min.px.desktop} {
font-size: 3.75rem;
line-height: normal;
}
}
.course-hero__description {
padding-top: ${h.xs};
}
.course-hero__tag-container {
display: flex;
gap: ${h.xxs};
order: 1;
}
.course-hero__approval-tag {
&:hover {
cursor: pointer;
background-color: ${r.light.brand.darkBlue};
}
}
.course-hero__subject-to-approval-link {
color: white;
text-decoration: none;
}
.course-hero__button-container {
display: flex;
gap: ${h.xxs};
order: 3;
/* margin-block-start: ${h.xs}; */
align-items: stretch;
}
.course-hero__button {
display: flex;
justify-content: center;
align-items: center;
width: 50%;
min-height: 100%;
}
.course-hero__image-container {
flex: 1;
img {
width: 100%;
height: auto;
object-fit: cover;
}
}
.course-hero__options {
order: 2;
}
.course-hero__select {
--select-border: ${r.light.neutral.grey80};
--select-focus: ${r.light.brand.burgundy};
--select-arrow: var(--select-border);
position: relative;
display: grid;
grid-template-areas: 'select';
align-items: center;
width: 100%;
border: 1px solid var(--select-border);
border-radius: 4px;
padding: 1em;
cursor: pointer;
background-color: #fff;
background-image: linear-gradient(to top, #f9f9f9, #fff 33%);
&::after {
content: '';
grid-area: select;
justify-self: end;
width: 0.8em;
height: 0.5em;
background-color: var(--select-border);
clip-path: polygon(100% 0%, 0 0%, 50% 100%);
}
select {
// Reset default styles
grid-area: select;
appearance: none;
background-color: transparent;
border: none;
padding: 0 1em 0 0;
margin: 0;
width: 100%;
font-family: inherit;
font-size: inherit;
cursor: inherit;
line-height: inherit;
outline: none;
}
select:focus + .focus {
position: absolute;
top: -1px;
left: -1px;
right: -1px;
bottom: -1px;
border: 4px solid var(--select-focus);
border-radius: inherit;
}
}
`}
`;var a=t(5703);const o=s.Ay.p`
${({theme:{colors:r,spacing:v},tagTheme:h="lightGrey"})=>{const D=(0,a.DF)(h),B=h==="lightGrey"?r.light.brand.darkBlue:r.light.neutral.white;return(0,s.AH)`
inline-size: fit-content;
padding: ${v.xxxs};
background-color: ${D};
color: ${B};
font-size: var(--step--1, 0.875rem);
`}}
`,i=({label:r,tagTheme:v,className:h})=>r?e.createElement(o,{className:`tag ${h||""}`,tagTheme:v},r):null;var l=t(7454),u=t(2501),p=t(3266),x=t(9289),f=t(7820),y=t(2301);const k=r=>!!(r&&r.length>40),P=({tags:r,title:v,awards:h,description:D,applicationCTA:B,secondaryCTA:S,image:N,subjectToApprovalTag:c,id:A,setId:M})=>{const C=(0,p.d4)(x.Hy),L=(0,p.d4)(y.Wp),K=$=>{M($)};return v?e.createElement(d,null,e.createElement("div",{className:"u-container"},e.createElement("div",{className:"course-hero__content-container"},e.createElement("div",{className:"course-hero__text-container"},e.createElement("h1",{className:`course-hero__title ${k(v)?"course-hero__title--long":""}`},v),e.createElement("p",{className:"h3 course-hero__award"},h.map($=>$)),D&&e.createElement("p",{className:"h5 course-hero__description"},D)),e.createElement("div",{className:"course-hero__tag-container"},r&&r.length>0&&e.createElement(e.Fragment,null,r.map(($,I)=>e.createElement(i,{key:I,...$,tagTheme:"lightGrey"}))),c?.subjectToApproval&&c?.subjectToApprovalLabel&&c?.subjectToApprovalUrl&&e.createElement(i,{label:e.createElement(f.A,{className:"course-hero__subject-to-approval-link",path:c.subjectToApprovalUrl},c.subjectToApprovalLabel),className:"course-hero__approval-tag",tagTheme:"blue"})),e.createElement("div",{className:"course-hero__button-container"},B&&e.createElement(l.A,{openInNewWindow:!0,className:"course-hero__button",...B}),S&&e.createElement(l.A,{className:"course-hero__button",...S})),L&&L?.content?.options?.length>1?e.createElement("div",{className:"course-hero__options"},e.createElement("label",{htmlFor:"course-options",className:"sr-only"},"Select course option"),e.createElement("div",{className:"course-hero__select"},e.createElement("select",{name:"course-options",id:"course-options",onChange:$=>K($.target.value),value:A},L?.content?.options?.map($=>e.createElement("option",{key:$.id,value:$.id},$.title,", ",$.intakeData.studyMode.title))),e.createElement("span",{className:"focus"}))):null),e.createElement("div",{className:"course-hero__image-container"},N||C?e.createElement(u.A,{id:"course-hero__image",src:N.src?N.src:C?.src?C.src:"",alt:N.alt?N.alt:C?.alt?C.alt:"",height:412,width:540}):null))):null}},118:(O,g,t)=>{t.d(g,{A:()=>d});var e=t(8322),s=t(7115);const E=({error:a,entryTitle:m,entryId:o})=>e.createElement(b,null,e.createElement("div",{className:"error-panel"},e.createElement("h1",null,"Entry Validation Error",m&&o?`: ${m} (${o})`:null),a&&a?.details?.length>0&&e.createElement("p",null,"Please resolve the following ",a.details.length," issues:"),a?.details?.map((n,i)=>e.createElement("div",{className:"error",key:i},e.createElement("code",null,e.createElement("span",null,e.createElement("strong",null,"Code")," ",n.code),"expected"in n&&e.createElement("span",null,e.createElement("strong",null,"Expected")," ",n?.expected),"received"in n&&e.createElement("span",null,e.createElement("strong",null,"Received")," ",n?.received),n.path&&n.path?.length>0&&n.path.map((l,u)=>e.createElement("span",{key:u},e.createElement("strong",null,"Field ID")," ",l)),e.createElement("span",null,e.createElement("strong",null,"Message")," ",n.message)))))),b=s.Ay.div`
display: flex;
padding: 2rem;
h1 {
margin-block-end: 0.25rem;
font-size: 1.5rem;
font-weight: 600;
color: ${a=>a.theme.colors.light.brand.darkBlue};
}
p {
margin-block-end: 0.5em;
}
.error {
margin-block-end: 1rem;
}
code {
display: block;
padding: 1rem;
border: 1px solid ${a=>a.theme.colors.light.brand.lightBlue};
border-radius: 4px;
background-color: ${a=>a.theme.colors.light.brand.lighterBlue};
span {
display: block;
}
}
`,d=E},2501:(O,g,t)=>{t.d(g,{A:()=>a});var e=t(8322);const s=({height:m,src:o,width:n})=>(n&&(o=o.replace(/(w|width)=[0-9]*/,"w="+n.toString())),m&&(o=o.replace(/(h|height)=[0-9]*/,"h="+m.toString())),o),E=(m,o)=>m==="default"?1:o==="default"||mo?1:0,b=({height:m,sizes:o,src:n,width:i})=>{if(!o)return{srcSet:void 0,srcSizes:void 0};const l=i/m,{srcSet:u,srcSizes:p}=Object.keys(o).sort(E).reduce((x,f)=>{const y=o[f],k=Math.round(y/l),_=s({height:k,src:n,width:y});return{srcSet:[...x.srcSet,`${_} ${y}w`],srcSizes:[...x.srcSizes,f==="default"?`${y}px`:`(min-width:${f}px) ${y}px`]}},{srcSet:[],srcSizes:[]});return{srcSet:u.join(", "),srcSizes:p.join(", ")}},a=({alt:m,className:o,height:n,sizes:i,src:l,width:u})=>{const{srcSizes:p,srcSet:x}=b({height:n,sizes:i,src:l,width:u});return e.createElement("img",{className:o,loading:"lazy",sizes:p,srcSet:x,alt:m,height:n,src:l,width:u})}},4337:(O,g,t)=>{t.d(g,{A:()=>a});var e=t(8322),s=t(1541),E=t(8401),b=t(2774);const a=({icon:m,label:o,content:n,className:i,breakContent:l,id:u,setId:p})=>!o&&!n?null:e.createElement("li",{className:`key-fact ${i||""}`},e.createElement("span",{className:"key-fact__label"},e.createElement(s.A,{icon:m,size:24,className:"key-fact__icon"}),o||null,!l&&n?e.createElement("span",{className:"key-fact__content"},n.type==="markup"&&e.createElement(E.VK,{text:n.text}),n.type==="dropdown"&&e.createElement(b.m,{id:u,setId:p,...n})):null),l&&n?e.createElement(e.Fragment,null,n.type==="markup"&&e.createElement("span",{className:"key-fact__content key-fact__content--break"},e.createElement(E.VK,{className:"flow",text:n.text})),e.createElement("span",{className:"key-fact__content"},n.type==="dropdown"&&e.createElement(b.m,{id:u,setId:p,...n}))):null)},5141:(O,g,t)=>{t.d(g,{A:()=>b});var e=t(7115),s=t(394);const b=e.Ay.div`
${({theme:{colors:d,spacing:a}})=>(0,e.AH)`
.fact-list {
padding: 0;
margin: 0;
margin-block-start: var(--space-2xs-xs, ${a.xxxs});
list-style: none;
}
.key-fact {
padding: var(--space-xs-s, ${a.xxxs});
border-bottom: 1px solid ${d.light.brand.gold};
color: ${d.light.brand.darkBlue};
}
.key-fact__label {
display: flex;
gap: 8px;
}
.key-fact__icon {
color: ${d.light.brand.midBlue};
}
.key-fact__content--break {
display: block;
margin-block-start: var(--space-3xs-2xs, ${a.xxxs});
margin-inline-start: ${a.s};
}
.key-fact-option {
display: flex;
justify-content: space-between;
inline-size: fit-content;
padding: 0.5em;
margin-block-start: 0.375em;
border: none;
border-radius: 4px;
width: 100%;
background: none;
text-align: left;
color: ${d.light.brand.gold};
touch-action: manipulation;
cursor: pointer;
transition: all 200ms ease;
&.key-fact-option--active {
border: 2px solid ${d.light.brand.midBlue};
}
&.key-fact-option--singular {
cursor: default;
}
&:hover,
&:focus-within {
span,
.chevron-icon {
color: ${d.light.brand.darkBlue};
transition: all 200ms ease;
}
}
span {
font-weight: 700;
color: ${d.light.brand.midBlue};
&.active {
text-decoration-line: underline;
text-decoration-thickness: 2px;
text-underline-offset: 0.2em;
}
}
&:disabled {
cursor: not-allowed;
span {
color: ${d.light.neutral.grey};
}
}
.chevron-icon {
min-width: 24px;
border-radius: 50%;
border: 2px solid currentColor;
color: ${d.light.brand.midBlue};
}
}
.options-list {
padding: 0;
margin: 0;
margin-block-start: var(--space-2xs-xs, ${(0,s.A)(12)});
list-style: none;
& li {
margin-block-start: var(--space-3xs-2xs, ${a.xxxs});
}
}
.buttons-container {
display: flex;
flex-flow: column nowrap;
gap: var(--space-2xs-xs, ${(0,s.A)(12)});
margin-block-start: var(--space-m-l, ${a.s});
button,
a {
width: 100%;
}
}
`}
`},2774:(O,g,t)=>{t.d(g,{A:()=>i,m:()=>o});var e=t(8322),s=t(3266),E=t(2301),b=t(5141),d=t(7454),a=t(4337),m=t(1541);const o=({options:l,initialState:u=!1,id:p,setId:x})=>{const[f,y]=(0,e.useState)(u),k=(0,s.d4)(E.Wp),_=l.find(r=>r.id===p),P=r=>{x(r)};return!l||l.length<=0?null:e.createElement(e.Fragment,null,k?.content?.options&&k?.content?.options.length>1?e.createElement(e.Fragment,null,e.createElement("button",{onClick:()=>y(!f),"aria-expanded":!!f,"aria-controls":_?.title?.replace(/\s+/g,"-").toLowerCase(),className:`key-fact-option ${_?.id===p&&"key-fact-option--active"}`},e.createElement("span",{className:"active"},_?.title),e.createElement(m.A,{className:"chevron-icon",icon:f?"arrowUp":"arrowDown",size:24})),f?e.createElement("ul",{className:"options-list"},k?.content?.options.map((r,v)=>e.createElement("li",{key:`${r.title}-${v}`},e.createElement("button",{onClick:()=>P(r.id),disabled:p===r.id,className:"key-fact-option"},e.createElement("span",null,r.title))))):null):e.createElement("div",{className:"key-fact-option key-fact-option--singular"},e.createElement("span",{className:"active"},_?.title)))},i=({applicationCTA:l,secondaryCTA:u,facts:p,hideApplyNow:x,id:f,setId:y,events:k})=>{const _=(0,s.d4)(E.Wp);if(!p||p.length<=0)return null;const P=(v,h,...D)=>[...v.slice(0,h),...D,...v.slice(h)];let r=p;return _&&!k&&(r=P(p,2,_)),e.createElement(b.A,null,e.createElement("h2",{className:"h4 key-facts__title"},k?"Event details":"Key facts"),e.createElement("ul",{className:"fact-list"},r.map((v,h)=>e.createElement(a.A,{key:h,...v,id:f,setId:y}))),e.createElement("div",{className:"buttons-container"},l&&l.link&&e.createElement(d.A,{className:"course-hero__button",...l}),u&&u.link&&e.createElement(d.A,{className:"course-hero__button",id:"secondary-cta",...u})))}},394:(O,g,t)=>{t.d(g,{A:()=>e});const e=E=>`${s(E)}rem`,s=E=>E/16}}]);