(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[616],{76064:(x,h)=>{var e,t;/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(){"use strict";var v={}.hasOwnProperty;function a(){for(var m=[],b=0;b{"use strict";e.d(h,{Z:()=>y});var t=e(56109),v=e(40430);const m=v.default.section` ${({theme:{colors:l},coloring:A})=>{const S=()=>{switch(A){case"yellow":return` color: ${l.summerSchool.text.default}; background-color: ${l.summerSchool.brand.yellow}; `;case"blue":return` color: ${l.summerSchool.text.default}; background-color: ${l.summerSchool.brand.brightBlue}; `;case"pink":return` color: black; background-color: ${l.summerSchool.brand.pink}; `;case"green":return` color: ${l.summerSchool.text.default}; background-color: ${l.summerSchool.brand.green30}; `;case"light blue":return` color: ${l.summerSchool.text.default}; background-color: ${l.summerSchool.brand.brightBlue}; `;case"turquoise":return` color: ${l.summerSchool.text.default}; background-color: ${l.summerSchool.brand.turquoise}; `;default:return` color: ${l.summerSchool.text.default}; background-color: ${l.summerSchool.brand.yellow}; `}};return v.css` ${S}; overflow: hidden; @media screen and (min-width: 1024px) { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 800px; align-items: center; } .hero-content-container { padding: 8rem 1.6rem 4rem 1.6rem; @media screen and (min-width: 768px) { padding: 8rem 4rem 4rem 4rem; } @media screen and (min-width: 1024px) { grid-column: 1; display: flex; justify-content: flex-end; padding: 0 4rem; } .hero-content { width: fit-content; @media screen and (min-width: 1024px) { width: 560px; } @media screen and (min-width: 1680px) { width: 680px; } @media screen and (min-width: 1920px) { width: 800px; } h1 { max-width: 20ch; font-family: 'Aleo', sans-serif; font-size: 3.4rem; line-height: 1.2; color: inherit; @media screen and (min-width: 1024px) { font-size: 4.7rem; } @media screen and (min-width: 1024px) { font-size: 5.5rem; } } p { font-size: 2.5rem; line-height: 1.5; } } } .hero-cta-container { margin-top: 3.2rem; .button { display: inline-block; padding: 2rem 3.2rem; margin: 0 24px 24px 0; border: 1px solid currentColor; font-size: 1.8rem; color: inherit; text-decoration: none; &:first-of-type { border: 1px solid white; background-color: white; } @media screen and (min-width: 1024px) { padding: 2.4rem 4rem; font-size: 2rem; } } } .hero-image { grid-column: 2; height: 100%; width: 100%; & img { display: block; width: 100%; height: 100%; object-fit: cover; } } `}} `;var b=e(30689);const y=({title:l,summary:A,buttons:S,image:f,coloring:C,thumbnail:d})=>(f=f!=null&&f.url?f:d,t.createElement(m,{coloring:C},t.createElement("div",{className:"hero-content-container"},t.createElement("div",{className:"hero-content"},t.createElement("h1",null,l),t.createElement("p",null,A),S?t.createElement("div",{className:"hero-cta-container"},S==null?void 0:S.map((u,D)=>t.createElement(b.Z,{path:u==null?void 0:u.url,key:D,className:"button"},u!=null&&u.url?u==null?void 0:u.label:`${u.label} (missing url)`))):null)),(f==null?void 0:f.url)&&t.createElement("div",{className:"hero-image"},t.createElement("img",{src:`${f.url}?q=90&f=webp`,alt:f==null?void 0:f.altText}))))},20432:(x,h,e)=>{"use strict";e.d(h,{a:()=>a,t:()=>v});var t=e(40470);const v={ZenInfo:(0,t.ZP)(()=>Promise.resolve().then(e.bind(e,97664)),{resolveComponent:m=>m.VersionInfo})},a=(0,t.ZP)(()=>Promise.all([e.e(74),e.e(965),e.e(233),e.e(926),e.e(870),e.e(252),e.e(930),e.e(483),e.e(191)]).then(e.bind(e,28483)))},86935:(x,h,e)=>{"use strict";e.d(h,{Z:()=>C});var t=e(56109),v=e(78451),a=e.n(v),m=e(40430),b=e(18737);const i=m.css` ${({theme:d})=>m.css` display: block; width: 100%; max-width: 30.4rem; padding: 1.6rem; border: 0; border-radius: 5rem; font-size: 1.6rem; line-height: 2.4rem; text-align: center; font-weight: 500; text-decoration: none; cursor: pointer; transition: 0.2s background-color ease-in; &.primary { background-color: transparent; border: 0.1rem solid ${d.colors.purple}; color: ${d.colors.black}; & svg { stroke: ${d.colors.white}; } &:hover { background-color: ${d.colors.purple}; } } &.secondary { background-color: transparent; border: 0.1rem solid ${d.colors.purple}; color: ${d.colors.black}; &.solid { border: 0.1rem solid ${d.colors.white}; background-color: ${d.colors.white}; } } &.round { border-radius: 5rem; } &.square { border-radius: 0; } svg { width: 1.5rem; height: 1.5rem; margin-left: 1rem; } `} `,y=(0,m.default)(b.rU)` ${i} `,l=m.default.a` ${i} `;var A=e(76064),S=e.n(A);const f=({link:d,text:u,colortype:D,bg:B,bordertype:N,className:I=""})=>{if(!d)return t.createElement("span",{className:I},u);const T=S()({round:N==="round",square:N==="square",primary:D==="primary",secondary:D==="secondary",transparent:B==="transparent",solid:B==="solid"}),Z=!d.startsWith("/")&&!d.startsWith("#"),U=d.includes(".pdf");return Z||U?t.createElement(l,{link:d,text:u,colortype:D,bg:B,bordertype:N,className:[T,I],href:d},u):t.createElement(y,{colortype:D,bg:B,bordertype:N,className:[T,I],to:d},u)};f.propTypes={link:a().string,text:a().string,type:a().oneOf(["link","button"]),colortype:a().oneOf(["primary","secondary"]),bg:a().oneOf(["transparent","solid"]),bordertype:a().oneOf(["round","square"]),className:a().string,action:a().func,icon:a().string},f.defaultProps={colortype:"primary",bordertype:"square",bg:"transparent"};const C=f},76245:(x,h,e)=>{"use strict";e.d(h,{Z:()=>t.Z});var t=e(53762)},53762:(x,h,e)=>{"use strict";e.d(h,{Z:()=>y});var t=e(56109),v=e(78451),a=e.n(v),m=e(40430);const b=m.default.span` position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; /* added line */ `,i=({children:l,text:A,className:S})=>t.createElement(b,{className:`${S} sro-text`},A||l);i.propTypes={text:a().string,children:a().node,className:a().string};const y=i},73994:(x,h,e)=>{"use strict";e.r(h),e.d(h,{default:()=>se});var t=e(56109),v=e(48504),a=e(40430);const m=a.default.div` ${({theme:{colors:r,spacing:n,mq:o}})=>a.css` --title-spacing: 0 auto 4rem auto; .section-heading { margin: var(--title-spacing); text-align: center; } `} `;var b=e(68792),i=e(26414),y=e(53026),l=e(97248),A=e(79943);const f=a.default.section` ${({theme:r})=>a.css` padding: 4rem 0 4rem; background-color: ${r.colors.summerSchool.ui.grey}; @media screen and (min-width: 992px) { padding: 4rem 0 6.4rem; } h2 { margin-bottom: 1.6rem; text-align: center; color: ${r.colors.summerSchool.text.default}; @media ${r.mq.laptop} { text-align: left; } } .mini-programme-finder__form { @media ${r.mq.laptop} { display: flex; /* justify-content: space-between; */ align-items: end; } label { color: ${r.colors.summerSchool.text.default}; } .dropdown { margin-bottom: calc(${r.grid.gap} * 2); @media ${r.mq.laptop} { flex: 0 0 25%; margin-right: calc(${r.grid.gap} * 2); margin-bottom: 0; } select { width: 100%; } } .search-button { padding-top: 0; padding-bottom: 0; border: 1px solid ${r.colors.summerSchool.brand.pink}; border-radius: 0; max-width: 100%; line-height: 4.8rem; text-align: center; text-decoration: none; color: ${r.colors.summerSchool.text.default}; background-color: transparent; @media ${r.mq.laptop} { flex: 0 0 25%; align-self: flex-end; } } } `} `;var C=e(20187),d=e(78451),u=e.n(d);const B=a.default.div` ${()=>a.css` position: relative; label { display: block; padding-bottom: 0.8rem; } select { border: 1px solid #b7b7b7; /* padding: 1.6rem 5.6rem 1.6rem 2.6rem; */ padding: 0 1.6rem; font-size: 1.6rem; line-height: 4.8rem; appearance: none; /* background: rgba(255, 255, 255, 1) url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAMCAYAAABiDJ37AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAD0SURBVHgBpZLNDcIwDIWdlEoIoYpjaZKSERgBNoANGKFMABvABmUDRugIjEAPIHHj0AsXGmwhoFL/y5NycZ6/Z1m2hBBTx3HcJElu8IeUGi8Gg+GD2zYA5xC5rquho2gopIT9/pcuVvjOXaDUg713rQmakZRyS9ARqiXsrJRaFRoIKqU4NYF+YL4vt5VGNB3whVUeCqTgWthvUhEhdFce6oXo2Rf98aJir2cvGYOZ73ubfJi3MYbpy+UaQBtpTTvycEfjIAujmtblO2Z10OeTRwBmzZg1MSYNLCudx/Et7gR8Q8U0TeFojIE6WGPhOc1yh1uiF0dLQ+HwZpbXAAAAAElFTkSuQmCC') no-repeat right 2.55rem center; */ } svg { position: absolute; top: calc(50% - 4px); right: 1.6rem; width: 12px; height: 8px; transition: transform 0.2s ease-in-out; } &.open { svg { transform: scaleY(-1); } } `} `;var N=e(76245);const I=({label:r,options:n,className:o,handleChange:P,activeValue:p,renderLabel:L=!0})=>{const w=g=>g.replace(/[^a-zA-Z\s+]/g,"").replace(/\s+/g,"-").toLowerCase();let O;p&&n.filter(g=>g.value===p?O=g.value:null);const c=w(r);return t.createElement(B,{label:c,className:o},L?t.createElement("label",{htmlFor:`${c}-dropdown`,name:c},r):t.createElement(N.Z,null,t.createElement("label",{htmlFor:`${c}-dropdown`,name:c},r)),t.createElement("select",{id:`${c}-dropdown`,value:O,name:c,onChange:P,onBlur:P},n&&n.length&&n.map((g,j)=>t.createElement("option",{key:j,value:g.value},g.label))),t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 22 13",className:"filter-toggle-icon","aria-hidden":!0},t.createElement("path",{fill:"#1D1D1B",fillRule:"evenodd",d:"M.638966 1.40917C.438094 1.18467.457252.839837.681755.638966c.224504-.200872.569335-.181714.770205.042789L10.8062 11.1365 20.1605.681759c.2008-.224503.5457-.24366.7702-.042789.2245.200872.2436.54571.0428.77021L11.2234 12.3062c-.0162.0193-.034.0377-.0534.055-.1033.0924-.232.1382-.3605.1389-.1307.0009-.2621-.0449-.3671-.1389-.0194-.0174-.0372-.0358-.0535-.0551L.638966 1.40917Z",clipRule:"evenodd"})))};I.propTypes={label:u().string,className:u().string,options:u().array,activeValue:u().string,handleChange:u().func};const T=I;var Z=e(86935),U=e(60437),X=Object.defineProperty,G=Object.defineProperties,J=Object.getOwnPropertyDescriptors,H=Object.getOwnPropertySymbols,k=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,K=(r,n,o)=>n in r?X(r,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[n]=o,_=(r,n)=>{for(var o in n||(n={}))k.call(n,o)&&K(r,o,n[o]);if(H)for(var o of H(n))q.call(n,o)&&K(r,o,n[o]);return r},ee=(r,n)=>G(r,J(n)),W=(r,n,o)=>new Promise((P,p)=>{var L=c=>{try{O(o.next(c))}catch(g){p(g)}},w=c=>{try{O(o.throw(c))}catch(g){p(g)}},O=c=>c.done?P(c.value):Promise.resolve(c.value).then(L,w);O((o=o.apply(r,n)).next())});const te=(r,n)=>W(void 0,null,function*(){return yield(()=>W(this,null,function*(){try{let p=new y.AE(y.Op.equalTo("sys.versionStatus","published"),y.Op.equalTo("sys.dataFormat","entry"),y.Op.equalTo("sys.contentTypeId",r));return p.pageSize=n||100,p.fields=["entryTitle","sys","startDate"],yield l.k2.search(p,1)}catch(p){throw new Error(p)}}))()}),re=({filters:r,updateSelectedFilters:n})=>{const[o,P]=(0,t.useState)([]),[p,L]=(0,t.useState)(),[w,O]=(0,t.useState)();(0,t.useEffect)(()=>{te(["startDate","subjectArea"]).then(s=>{P(s.items)})},[]);const c=o==null?void 0:o.filter(s=>s.sys.contentTypeId==="subjectArea"),g=o==null?void 0:o.filter(s=>s.sys.contentTypeId==="startDate"),j=c?c==null?void 0:c.map(s=>{var E;return{label:s.entryTitle,value:(E=s==null?void 0:s.sys)==null?void 0:E.id}}):[{label:"Loading subject areas",value:""}];let $=[];g&&(g==null||g.map(s=>{var E;$.push({label:s.entryTitle,value:(E=s==null?void 0:s.sys)==null?void 0:E.id})})),$=$.sort((s,E)=>new Date(s.label)-new Date(E.label)).map((s,E)=>ee(_({},s),{label:`${s.label} (Session ${(0,U.Z)(E)})`}));const Y=(s,E)=>{switch(s){case"startDate":E!==w&&O(E);break;case"subject":E!==p&&L(E);break}},M=p?`&subjectArea=${p}`:null,F=w?`&startDate=${w}`:null;let ie="courses",R=`${A.s}/${ie}`;return(M||F)&&(R+="?"),M&&(R+=M),F&&(R+=F),t.createElement(f,null,t.createElement("div",{className:"wrapper"},t.createElement(C.Z,{text:"Identify the course that suits you",level:"2",className:"bold"}),t.createElement("div",{className:"mini-programme-finder__form"},$&&t.createElement(T,{label:"Start date",renderLabel:!1,options:[{label:"Start date",value:""},,...$],className:"dropdown",handleChange:s=>Y("startDate",s.target.value),activeValue:w}),j&&t.createElement(T,{label:"Subject area",renderLabel:!1,options:[{label:"Subject area",value:""},...j],className:"dropdown",handleChange:s=>Y("subject",s.target.value),activeValue:p}),t.createElement(Z.Z,{text:"Search courses",link:R,className:"search-button"}))))};var ne=e(20432),oe=Object.defineProperty,z=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,Q=(r,n,o)=>n in r?oe(r,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[n]=o,V=(r,n)=>{for(var o in n||(n={}))ae.call(n,o)&&Q(r,o,n[o]);if(z)for(var o of z(n))le.call(n,o)&&Q(r,o,n[o]);return r};const se=({mappedEntry:r})=>{const{title:n,hero:o,highlight:P,linkCardBlock:p,cardRow:L,testimonial:w,image:O,media:c,course:g,metadata:j,composerProps:$}=r||{};return t.createElement(v.Z,null,t.createElement(m,null,t.createElement(i.Z,V({},j)),t.createElement(b.Z,V({},o)),t.createElement(re,null),t.createElement("div",{className:"general-page-body__composer cms-content"},t.createElement(ne.a,{content:$}))))}},60437:(x,h,e)=>{"use strict";e.d(h,{Z:()=>v});const v=a=>{switch(a){case 0:return"One";case 1:return"Two";case 2:return"Three";default:break}}}}]);