"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[950],{118:(D,h,n)=>{n.d(h,{A:()=>u});var t=n(8322),y=n(7115);const o=({error:s,entryTitle:v,entryId:A})=>t.createElement(S,null,t.createElement("div",{className:"error-panel"},t.createElement("h1",null,"Entry Validation Error",v&&A?`: ${v} (${A})`:null),s&&s?.details?.length>0&&t.createElement("p",null,"Please resolve the following ",s.details.length," issues:"),s?.details?.map((i,B)=>t.createElement("div",{className:"error",key:B},t.createElement("code",null,t.createElement("span",null,t.createElement("strong",null,"Code")," ",i.code),"expected"in i&&t.createElement("span",null,t.createElement("strong",null,"Expected")," ",i?.expected),"received"in i&&t.createElement("span",null,t.createElement("strong",null,"Received")," ",i?.received),i.path&&i.path?.length>0&&i.path.map(($,k)=>t.createElement("span",{key:k},t.createElement("strong",null,"Field ID")," ",$)),t.createElement("span",null,t.createElement("strong",null,"Message")," ",i.message)))))),S=y.Ay.div` display: flex; padding: 2rem; h1 { margin-block-end: 0.25rem; font-size: 1.5rem; font-weight: 600; color: ${s=>s.theme.colors.light.brand.darkBlue}; } p { margin-block-end: 0.5em; } .error { margin-block-end: 1rem; } code { display: block; padding: 1rem; border: 1px solid ${s=>s.theme.colors.light.brand.lightBlue}; border-radius: 4px; background-color: ${s=>s.theme.colors.light.brand.lighterBlue}; span { display: block; } } `,u=o},445:(D,h,n)=>{n.r(h),n.d(h,{default:()=>U});var t=n(8322),y=n(1335),o=n(7115);const u=o.Ay.div` ${({theme:{mq:e,colors:r,spacing:l}})=>(0,o.AH)` &.home-template { } .search-bar-container { margin-top: ${l.xl}; } `} `;var s=n(118),v=n(8401);const i=o.Ay.form` ${({theme:{colors:e,spacing:r,mq:l}})=>(0,o.AH)` display: flex; flex-direction: column; width: 100%; justify-content: center; gap: ${r.xxs}; @media ${l.min.px.mobile} { flex-direction: row; align-items: center; } @media ${l.min.px.tablet} { gap: ${r.l}; } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; } .search-input__input { width: 100%; min-height: 50px; padding: 0 10px; border: none; border-bottom: 2px solid ${e.light.brand.gold}; font-size: 1rem; outline: none; transition: all 0.3s; &::placeholder { color: ${e.light.brand.darkBlue}; font-size: 1.2rem; font-weight: 700; } &:focus { outline: none; box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5); } } .search-input__default-button { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: fit-content; padding: ${r.xxs} ${r.xs}; border: none; border-radius: 5px; font-size: 1.1rem; background-color: ${e.light.brand.darkBlue}; color: ${e.light.neutral.white}; cursor: pointer; transition: all 0.3s; @media ${l.min.px.mobile} { .search-input__button-label { display: none; } } .search-input__icon { width: 30px; height: 30px; } @media ${l.min.px.tablet} { .search-input__button-label { display: flex; cursor: pointer; } .search-input__icon { width: 24px; height: 24px; } } &:hover { background-color: ${e.light.brand.midBlue}; } &:focus { outline: none; box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5); } } `} `,B=o.Ay.div` ${({theme:{spacing:e,mq:r,colors:l}})=>(0,o.AH)` display: flex; flex-direction: column; width: 100%; justify-content: center; gap: ${e.xxs}; max-width: 1200px; margin: 0 auto; .search-input__related-links { display: grid; grid-template-columns: 1fr 1fr; list-style: none; gap: ${e.xs}; width: 100%; li { display: flex; align-items: center; gap: ${e.xxxs}; a { display: flex; align-items: center; width: fit-content; color: ${l.light.brand.darkBlue}; text-decoration: none; } } @media ${r.min.px.tablet} { grid-template-columns: none; display: flex; flex-direction: row; align-items: flex-start; li { width: fit-content; } } } `} `;var $=n(1169),k=n(7820);const O=[{label:"Undergraduate",url:"/study/find-a-course/?level=52"},{label:"Postgraduate",url:"/study/find-a-course/?level=53"},{label:"A - Z of courses",url:"/study/find-a-course/a-z-of-courses"},{label:"CPD",url:"/study/professional-development/home.aspx"}],z=({links:e})=>t.createElement("ul",{className:"search-input__related-links u-container"},e.map((r,l)=>t.createElement("li",{key:l},t.createElement(k.A,{path:r.url},r.label,t.createElement($.A,{className:"related-link__icon",size:22,icon:"arrowRight"}))))),C=({className:e,placeholder:r,value:l="",isListing:d=!1,submit:b})=>{const[c,f]=(0,t.useState)(l),E=a=>{f(a.target.value)},g=(0,t.useRef)(null),x=a=>{const T=`/study/find-a-course/home.aspx?&term=${a}`;location.href=T},p=a=>{a.preventDefault(),d?b(c):x(c)};return(0,t.useEffect)(()=>{f(l)},[l]),t.createElement(i,{onSubmit:a=>{a.preventDefault(),p(a)},autoCapitalize:"off",className:`${e||""} u-container`,onKeyDown:a=>a.key==="Enter"?p(a):null},t.createElement("label",{className:"sr-only",htmlFor:"searchInput"},"Keyword search"),t.createElement("input",{type:"search",value:c,onChange:E,placeholder:r||"Search for your course...",id:"searchInput",ref:g,className:"search-input__input"}),t.createElement("button",{type:"submit",value:"search",onClick:a=>p(a),onKeyDown:a=>a.key==="Enter"?p(a):null,className:"search-input__default-button"},t.createElement($.A,{className:"search-input__icon",size:22,icon:"search"}),t.createElement("label",{className:"search-input__button-label",htmlFor:"searchInput"},"Search courses")))},j=null,H=({className:e})=>t.createElement(B,{className:e},t.createElement(C,{className:"search-input",placeholder:"Search for your course...",submit:r=>console.log(`Searching for: ${r}`)}),t.createElement(z,{links:O}));var N=n(4554);const L=o.Ay.section` position: relative; height: 200vh; overflow: hidden; margin-top: -100px; .u-container { position: relative; height: 100%; width: 100%; } .button__link { display: flex; align-items: center; justify-content: center; gap: 1rem; min-width: fit-content; width: max-content; padding: ${e=>e.theme.spacing.xxs} ${e=>e.theme.spacing.xs}; border: none; border-radius: 5px; font-size: var(--step-3); background-color: ${e=>e.theme.colors.light.brand.darkBlue}; color: ${e=>e.theme.colors.light.neutral.white}; cursor: pointer; transition: all 0.3s; text-decoration: none; margin: ${e=>e.theme.spacing.s} 0; font-family: 'Roboto Slab', serif; font-weight: 700; opacity: 0; transform: translateY(30px); &:hover { color: ${e=>e.theme.colors.light.brand.darkBlue}; background-color: ${e=>e.theme.colors.light.system.alerts}; } } `,W=o.Ay.div` position: sticky; top: 0; height: 100vh; width: 100%; overflow: hidden; `,P=o.Ay.div` position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url(/_imUtag_ff417428-ec1e-40e6-9d08-e2d1eb27d318/static/modern/js/${e=>e.src}); background-size: cover; background-position: center; `,I=o.Ay.div` display: flex; flex-direction: column; /* align-items: center; */ position: absolute; /* top: 50%; left: 50%; transform: translate(-50%, -50%); */ /* text-align: center; */ color: white; z-index: 2; will-change: transform; perspective: 1000px; /* @media ${e=>e.theme.mq.min.px.tablet} { */ top: 0; left: 0; transform: none; align-items: flex-start; text-align: left; padding: ${e=>e.theme.spacing.m}; margin-top: 150px; /* } */ .title-styled span, .subtitle-styled span { display: block; padding: 0 ${e=>e.theme.spacing.xxs}; margin-bottom: 0; max-width: max-content; font-family: 'Roboto Slab', serif; font-weight: 800; color: ${e=>e.theme.colors.light.brand.darkBlue}; } .title-styled { font-size: var(--step-6); display: flex; flex-direction: column; align-items: flex-start; text-align: left; span { margin-top: -3px; background-color: ${e=>e.theme.colors.light.neutral.white}; } } .subtitle-styled { font-size: var(--step-6); display: flex; flex-direction: column; align-items: center; opacity: 0; transform: translateY(30px); margin-top: 10px; span { background-color: ${e=>e.theme.colors.light.brand.lightBlue}; } ${e=>e.theme.mq.min.px.tablet} { align-items: flex-start; } } `,K=({title:e,image:r,secondImage:l,subTitle:d,callToAction:b})=>{const c=(0,t.useRef)(null),f=(0,t.useRef)(null),E=(0,t.useRef)(null),g=(0,t.useRef)(null),x=(0,t.useRef)(null);return(0,t.useEffect)(()=>{if(typeof window>"u")return;let p,a;return(async()=>{const{gsap:m}=await n.e(938).then(n.bind(n,5938)),{ScrollTrigger:M}=await n.e(77).then(n.bind(n,9077));a=M,m.registerPlugin(a),!(!c.current||!f.current||!E.current||!g.current||!x.current)&&(p=m.context(()=>{const R=[g.current,x.current];m.set(R,{y:0,scale:1,rotationX:0,transformOrigin:"50% 50% 0",force3D:!0}),m.fromTo(g.current,{opacity:0},{opacity:1,duration:2,ease:"power2.out"}),m.fromTo(x.current,{opacity:0},{opacity:1,duration:2,ease:"power2.out",delay:.4});const w=m.timeline({scrollTrigger:{trigger:c.current,start:"top top",end:"bottom top",scrub:1,pin:!0,anticipatePin:1}});w.fromTo(f.current,{clipPath:"inset(0% 0% 0% 0%)"},{clipPath:"inset(0% 0% 100% 0%)",duration:4,ease:"power2.inOut"},0),w.fromTo(E.current,{scale:1},{scale:1,duration:4,ease:"none"},0),w.to(R,{y:-20,scale:1.02,rotationX:5,ease:"none",duration:2},0),w.to(R,{y:0,scale:1,rotationX:0,ease:"none",duration:2},2),w.fromTo(".button__link",{opacity:0,y:30},{opacity:1,y:0,duration:2,ease:"power2.out"},">")},c))})(),()=>{p?.revert();try{a?.getAll?.().forEach(m=>m.kill())}catch{}}},[]),t.createElement(L,null,t.createElement(W,{ref:c},l&&t.createElement(P,{ref:E,src:l.src,style:{zIndex:0}}),r&&t.createElement(P,{ref:f,src:r.src,style:{zIndex:1,clipPath:"inset(0% 0% 0% 0%)"}}),t.createElement("div",{className:"u-container"},t.createElement(I,null,e&&t.createElement("h1",{className:"title-styled",ref:g},(0,N.O)(e)),d&&t.createElement("div",{className:"subtitle-styled",ref:x},(0,N.O)(d)),b?.url&&t.createElement(k.A,{className:"button__link",path:b.url},b.label)))))},U=({mappedEntry:e})=>{if(!e)return null;if(e&&e.status==="error")return t.createElement(s.A,{...e});const{metadata:r,heroBanner:l,composer:d}=e;return e&&e.status==="success"?t.createElement(y.A,{meta:r},t.createElement(u,{className:"home-template flow"},l&&t.createElement(K,{...l}),t.createElement("div",{className:"search-bar-container"},t.createElement(H,{className:"search-bar-wrapper"})),d&&t.createElement(v.Dk,{items:d.items,className:"home-composer flow"}))):null}},4554:(D,h,n)=>{n.d(h,{O:()=>y});var t=n(8322);const y=o=>o?(o.includes("[br]")?o.split("[br]").map(u=>u.trim()):[o.trim()]).map((u,s)=>t.createElement("span",{key:s},u)):null}}]);