"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[524],{53091:(z,T,o)=>{o.d(T,{A:()=>v});var s=o(48322),u=o(50423),d=o(67115),h=o(28130),C=o(27877),p=o(82472),k=o(669),I=o(85703);const x=(0,d.DU)` *, *::before, *::after { box-sizing: border-box; } :root { /* Grid * @link https://utopia.fyi/grid/calculator?c=328,16,1.2,1184,16,1.25,5,2,&s=0.75|0.5|0.25,1.5|2|2.5|3|4|5|6,s-l&g=s,l,3xl,12 */ --grid-gutter: var(--space-s-l, clamp(1rem, 0.6168rem + 1.8692vw, 2rem)); --grid-max-width: calc(85.00rem + 2 * var(--grid-gutter)); --grid-columns: 12; /* Typography * @link https://utopia.fyi/type/calculator?c=320,16,1.125,1200,16,1.2,5,1,&s=0.75|0.5|0.5,1.5|2|2.5|3|4|5|6,s-l&g=s,l,xl,12 */ --step--1: clamp(0.8333rem, 0.9091rem + -0.101vi, 0.8889rem); --step-0: clamp(1rem, 1rem + 0vi, 1rem); --step-1: clamp(1.125rem, 1.0977rem + 0.1364vi, 1.2rem); --step-2: clamp(1.2656rem, 1.2022rem + 0.317vi, 1.44rem); --step-3: clamp(1.4238rem, 1.3132rem + 0.553vi, 1.728rem); --step-4: clamp(1.6018rem, 1.4302rem + 0.8578vi, 2.0736rem); --step-5: clamp(1.802rem, 1.5525rem + 1.2478vi, 2.4883rem); --step-6: clamp(2.0273rem, 1.6787rem + 1.7431vi, 2.986rem); --step-7: clamp(2.2807rem, 1.8071rem + 2.3682vi, 3.5832rem); --step-8: clamp(2.5658rem, 1.9352rem + 3.1528vi, 4.2998rem); --step-9: clamp(2.8865rem, 2.0599rem + 4.1332vi, 5.1598rem); /* Spacing * @link https://utopia.fyi/space/calculator?c=320,16,1.2,1200,16,1.25,5,2,&s=0.75|0.5|0.25,1.5|2|2.5|3|4|5|6,s-l&g=s,l,xl,12 */ --space-3xs: clamp(0.25rem, 0.25rem + 0vi, 0.25rem); --space-2xs: clamp(0.5rem, 0.5rem + 0vi, 0.5rem); --space-xs: clamp(0.75rem, 0.75rem + 0vi, 0.75rem); --space-s: clamp(1rem, 1rem + 0vi, 1rem); --space-m: clamp(1.5rem, 1.5rem + 0vi, 1.5rem); --space-l: clamp(2rem, 2rem + 0vi, 2rem); --space-xl: clamp(2.5rem, 2.5rem + 0vi, 2.5rem); --space-2xl: clamp(3rem, 3rem + 0vi, 3rem); --space-3xl: clamp(4rem, 4rem + 0vi, 4rem); --space-4xl: clamp(5rem, 5rem + 0vi, 5rem); --space-5xl: clamp(6rem, 6rem + 0vi, 6rem); /* One-up pairs */ --space-3xs-2xs: clamp(0.25rem, 0.1591rem + 0.4545vi, 0.5rem); --space-2xs-xs: clamp(0.5rem, 0.4091rem + 0.4545vi, 0.75rem); --space-xs-s: clamp(0.75rem, 0.6591rem + 0.4545vi, 1rem); --space-s-m: clamp(1rem, 0.8182rem + 0.9091vi, 1.5rem); --space-m-l: clamp(1.5rem, 1.3182rem + 0.9091vi, 2rem); --space-l-xl: clamp(2rem, 1.8182rem + 0.9091vi, 2.5rem); --space-xl-2xl: clamp(2.5rem, 2.3182rem + 0.9091vi, 3rem); --space-2xl-3xl: clamp(3rem, 2.6364rem + 1.8182vi, 4rem); --space-3xl-4xl: clamp(4rem, 3.6364rem + 1.8182vi, 5rem); --space-4xl-5xl: clamp(5rem, 4.6364rem + 1.8182vi, 6rem); /* Custom pairs */ --space-s-l: clamp(1rem, 0.6364rem + 1.8182vi, 2rem); --space-m-xl: clamp(1.5rem, 0.9444rem + 2.7778vi, 3.375rem); } .markup { * { margin-block-start: 1em; } h1, h2, h3, h4, h5, h6 { color: ${p.T.light.neutral.black}; } ul, ol { font-weight: 600; color: ${p.T.light.brand.darkBlue}; } ul li::marker, ol li::marker { color: ${p.T.light.brand.gold}; } dl { color: ${p.T.light.brand.darkBlue}; padding-left: 1em; } dl dt { font-weight: 600; } b, strong { font-weight: bold; } p { margin: 0.5em 0; line-height: 1.5; color: ${p.T.light.neutral.black}; } blockquote { margin: 0.5em 0; padding: 0.5em; border-left: 2px solid ${p.T.light.brand.burgundy}; color: ${p.T.light.neutral.black}; } hr { width: 100%; border: none; border-top: 1px solid ${p.T.light.neutral.lightGrey}; } figure { display: flex; flex-direction: column; margin: 1em 0; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); max-width: max-content; } figure img { max-width: 100%; height: auto; } figcaption { background-color: rgba(0, 0, 0, 0.1); padding: 0.5em; font-style: italic; text-align: center; } pre { padding: 0.5em; background-color: ${p.T.light.brand.lightGold}; overflow-x: auto; } table { width: 100%; border-collapse: collapse; } ${I.Ju}; } /* Resets the z-index stacking order */ #root { isolation: isolate; min-height: inherit; } #app-root, #main { min-height: inherit; } /* Remove default margin */ * { margin: 0; } /* Prevent font size inflation */ html { -moz-text-size-adjust: none; -webkit-text-size-adjust: none; text-size-adjust: none; } /* Sets base font to 16px */ body { min-height: 100vh; font-family: 'Open Sans', Arial, "Helvetica Neue", Helvetica, sans-serif; line-height: 1.5; } body.overlay-open { overflow: hidden !important; position: fixed; width: 100vw; } /* A elements that don't have a class get default styles */ a:not([class]) { text-decoration-skip-ink: auto; color: ${p.T.light.system.hyperlink}; &:hover, &:visited { color: ${p.T.light.brand.darkBlue}; } } /* a:not([class]):visited { color: ${p.T.light.system.hyperlink}; } */ /* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */ ul[role='list'], ol[role='list'] { list-style: none; } /* Improve media defaults */ img, picture, video, canvas, svg { display: block; max-width: 100%; } /* Inherit fonts for inputs and buttons */ input, button, textarea, select { font: inherit; } /* Remove all animations, transitions and smooth scroll for people that prefer not to see them */ @media (prefers-reduced-motion: reduce) { html:focus-within { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } } .u-container { max-width: var(--grid-max-width); padding-inline: var(--grid-gutter); margin-inline: auto; } .u-container--fluid { max-width: var(--grid-max-width); padding-inline: var(--grid-gutter); margin-inline: auto; &.full-width-mobile { padding-inline: 0; @media ${A=>A.theme.mq.min.px.tablet} { padding-inline: var(--grid-gutter); } } } .u-grid { display: grid; gap: var(--grid-gutter); } /* https://www.a11yproject.com/posts/how-to-hide-content/ */ .visually-hidden, .sr-only { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; } h1, .h1 { font-size: var(--step-5); font-weight: 700; } h2, .h2 { font-size: var(--step-4); font-weight: 700; } h3, .h3 { font-size: var(--step-3); font-weight: 600; } h4, .h4 { font-size: var(--step-2); font-weight: 600; } h5, .h5 { font-size: var(--step-1); font-weight: 600; } h6, .h6 { font-size: var(--step-0); font-weight: 600; } p, .p { font-size: var(--step-0); font-weight: 400; } p.lead, .lead { font-size: var(--step-1); font-weight: 400; } p.small, .small { font-size: var(--step--1); font-weight: 400; } a:focus:not(:focus-visible), button:focus:not(:focus-visible), input:focus:not(:focus-visible) { outline: none; } a:focus-visible, button:focus-visible, input:focus-visible { outline: transparent solid 4px; box-shadow: #fff 0 0 0 2px, ${p.T.light.brand.burgundy} 0 0 0 4px; text-decoration: none; box-decoration-break: clone; } .link { color: ${p.T.light.brand.midBlue}; &:hover { color: ${p.T.light.brand.darkBlue}; transition: all 200ms ease; } } hr { margin-block: var(--space-3xl-4xl) !important; border: none; height: 1px; background-color: ${p.T.light.neutral.lightGrey}; } .ReactModal__Content { width: calc(100% - 8rem); height: calc(100% - 8rem); iframe { border: none; width: 100%; height: 100%; } } .max-form { ${k.l}; } //Need to update for print styles @media print { body { font-size: 12pt; color: #000; background: none; } header, footer, .no-print { display: none !important; } .print-only { display: block !important; } button { display: none; } /* Optional: Remove margins or adjust layout */ html, body { margin: 0; padding: 0; } } @media print { body * { visibility: hidden; } #printable-tab, #printable-tab * { visibility: visible; } #printable-tab { position: absolute; left: 0; top: 0; width: 100%; } } `;var S=o(14646);const c={colors:p.T,breakpoints:S.fi,mq:S.mq,spacing:S.YK,grid:S.Vg};var g=o(94836),t=o(89703);const N=({skipPath:A="#main"})=>s.createElement(R,{to:A},"Skip to main content"),R=(0,d.Ay)(t.Vq)` position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; display: block; padding: 1.2rem 1.6rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 1px; :focus { position: static; width: auto; height: auto; margin: inherit; overflow: visible; clip: auto; clip-path: none; white-space: inherit; color: white; background-color: black; } `,V=N,B="black",U={overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",position:"absolute",inset:0,zIndex:9999,height:"100%",maxHeight:"100vh",backgroundColor:"white"},W=()=>s.createElement("div",{style:U},s.createElement("h3",{className:"sr-only"},"Loading..."),s.createElement("svg",{width:"38",height:"38",style:{width:"40px",height:"40px"},viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg"},s.createElement("defs",null,s.createElement("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a"},s.createElement("stop",{stopColor:B,stopOpacity:"0",offset:"0%"}),s.createElement("stop",{stopColor:B,stopOpacity:".631",offset:"63.146%"}),s.createElement("stop",{stopColor:B,offset:"100%"}))),s.createElement("g",{fill:"none",fillRule:"evenodd"},s.createElement("g",{transform:"translate(1 1)"},s.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18",id:"Oval-2",stroke:"url(#a)",strokeWidth:"2"},s.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})),s.createElement("circle",{fill:B,cx:"36",cy:"18",r:"1"},s.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"}))))));z=o.hmd(z);const M=A=>s.createElement(s.Fragment,null,s.createElement("div",{id:"app-root"},s.createElement(d.NP,{theme:c},s.createElement(g.vD,{defaultSetOptions:{path:"/"}},s.createElement(x,null),s.createElement(V,null),s.createElement(h.F6,{...A,notFoundComponent:C.default,loadingComponent:W}))))),v=(0,u.KS)(z)(M)},93149:(z,T,o)=>{o.d(T,{U:()=>s,e:()=>u});const s=d=>!d||d.length<=0?null:{items:d.map(h=>({title:h.title,children:h.content}))},u=d=>d?{items:d.accordionItem.map(h=>({title:h.title,children:h.content}))}:null},2621:(z,T,o)=>{o.d(T,{J:()=>k});const s=({assetHeight:I,assetWidth:y,width:x})=>{if(!x)return I;const S=y/I;return Math.round(x/S)},u=({assetHeight:I,assetWidth:y,height:x})=>{if(!x)return y;const S=y/I;return Math.round(x*S)},d=({assetHeight:I,assetWidth:y,height:x,width:S})=>{let c=x||s({assetHeight:I,assetWidth:y,width:S}),g=S||u({assetHeight:I,assetWidth:y,height:x});return I{const c=y/I;let g=I,t=y;return S&&t>S&&(g=Math.round(S/c),t=S),x&&g>x&&(g=x,t=Math.round(x*c)),{height:g,width:t}},C=({fit:I,height:y,image:x,width:S})=>{const c=x.asset?.sys?.properties?.height||0,g=x.asset?.sys?.properties?.width||0;return I.startsWith("crop")?d({assetHeight:c,assetWidth:g,height:y,width:S}):h({assetHeight:c,assetWidth:g,height:y,width:S})},p=({effect:I={},fit:y="crop",format:x="webp",height:S,quality:c=75,src:g,width:t})=>{const N={h:S,w:t,fit:y,...I,q:c,f:x};return g.split("?")[0]+"?"+Object.keys(N).filter(R=>N[R]).map(R=>`${R}=${N[R]}`).join("&")},k=({effect:I,fit:y="crop",format:x="webp",height:S,image:c,quality:g=75,width:t})=>{const N=c?.altText||c?.caption||c?.asset?.title,R=c?.caption,V=c?.asset?.sys?.id,{height:B,width:U}=C({fit:y,height:S,image:c,width:t}),W=p({effect:I,fit:y,format:x,height:B,quality:g,src:c?.asset?.sys?.uri,width:U});return{alt:N,caption:R,height:B,id:V,src:W,width:U}}},72056:(z,T,o)=>{o.d(T,{D:()=>C,I:()=>h});var s=o(2621),u=o(38698);function d(p,k=80,I){if(!p)return p;const y=I?.suffix??"...",x=I?.preserveWords??!0;if(p.length<=k)return p;if(k<=y.length)return y.slice(0,k);const S=k-y.length;let c=p.slice(0,S);if(x){const g=c.lastIndexOf(" ");g>0&&(c=c.slice(0,g))}return c=c.replace(/[ \t\n\r.,;:!-]+$/u,""),c+y}const h=p=>({_type:p._type??"latestNewsAndEvents",title:p.title??"Latest News and Events",manualResults:Array.isArray(p.manualPicker)?p.manualPicker.map(C):null,button:p.button?{label:p.button.label??"",link:p.button.url??"",buttonTheme:"secondary"}:null}),C=p=>{const k=p?.publishedDate??p?.dateAndTime?.from??p?.date?.from??null,I=p?.sys?.uri??(p?.sys?.slug?`/about/news/${p.sys.slug}`:"");return{title:d(p.title??void 0,60),description:p.summary??p.subHeading??void 0,link:I,date:k?(0,u.Yq)(k,"d MMM yyyy"):void 0,readTime:typeof p.readTime=="number"?p.readTime:void 0,image:p.thumbnail?(0,s.J)({image:p.thumbnail,width:900,height:900}):p.bannerImage?(0,s.J)({image:p.bannerImage,width:900,height:900}):null,id:p.sys?.id??"",contentType:p.sys?.contentTypeId??""}}},60554:(z,T,o)=>{o.d(T,{T:()=>d,X:()=>u});var s=o(2621);const u=h=>({src:h.videoComponent?.youTubeUrl??"",title:h.title??null??void 0,subTitle:h.subtitle??null??void 0,description:h.description??"",format:"youtube",posterImage:h.overlayImage?(0,s.J)({image:h.overlayImage}):null}),d=h=>({src:h.youTubeUrl??"",title:h.title})},92301:(z,T,o)=>{o.d(T,{B:()=>x,EV:()=>I,Fc:()=>C,It:()=>p,K6:()=>u,Wp:()=>h,Z_:()=>S,b9:()=>y,ls:()=>d});const s=c=>!!Object.keys(c.course.selectedOption).length,u=c=>c.course.isReady,d=c=>c.course?.options,h=c=>c.course?.courseOptions,C=c=>c.course?.selectedOption,p=c=>c.course?.selectedOptionId,k=c=>c.course?.selectedCourseOptions,I=c=>s(c)?c.course?.selectedOption?.introduction?.summary:null,y=c=>s(c)?{content:c.course?.selectedOption?.courseContent.content,modules:c.course?.selectedOption?.courseContent.modules}:null,x=c=>s(c)?{fees:c.course?.selectedOption?.fees?.fees,ptFee:c.course?.selectedOption?.fees?.ptFee,additionalFees:c.course?.selectedOption?.fees?.additionalFees,accomodationFees:c.course?.selectedOption?.fees?.accomodationFees,feesTabs:c.course?.selectedOption?.fees?.feesTabs}:null,S=c=>s(c)?{howToApply:c.course?.selectedOption?.howToApply?.howToApply,howToApplyTitle:c.course?.selectedOption?.howToApply?.howToApplyTitle,additionalApplicationInformation:c.course?.selectedOption?.howToApply?.additionalApplicationInformation,additionalInformationTitle:c.course?.selectedOption?.howToApply?.additionalInformationTitle,applyNowUrl:c.course?.selectedOption?.howToApply?.applyNowUrl,hideApplyNowButton:c.course?.selectedOption?.howToApply?.hideApplyNowButton}:null},25466:(z,T,o)=>{o.d(T,{J9:()=>y,Oj:()=>k,rc:()=>I,sj:()=>p,xM:()=>h});const s="@COURSE/",u=null,d=null,h=`${s}GET_COURSE_CONFIG_ERROR`,C=null,p=`${s}GET_COURSE_OPTIONS`,k=`${s}SET_OPTIONS`,I=`${s}SET_OPTIONS_ERROR`,y=`${s}SET_SELECTED_OPTION`},29244:(z,T,o)=>{o.d(T,{H:()=>s,T:()=>u});const s=d=>d.openDayConfig?.isReady,u=d=>d.openDayConfig},46070:(z,T,o)=>{o.d(T,{Nk:()=>x,PL:()=>u,PT:()=>y,T2:()=>s,TT:()=>S,ZY:()=>k,jH:()=>p,lT:()=>d,tD:()=>I,zz:()=>h});const s="@OPEN_DAY_USER_PICKS/SET_COURSE_PICK",u="@OPEN_DAY_USER_PICKS/TOGGLE_ACCOMMODATION_TALK",d="@OPEN_DAY_USER_PICKS/TOGGLE_STUDENT_LIFE_TALK",h="@OPEN_DAY_USER_PICKS/TOGGLE_CAMPUS_TOUR_TALK",C="@OPEN_DAY_USER_PICKS/RESET_PICKS",p="@OPEN_DAY_USER_PICKS/REMOVE_COURSE_PICK",k="@OPEN_DAY_USER_PICKS/REMOVE_ACCOMMODATION_TALK",I="@OPEN_DAY_USER_PICKS/REMOVE_STUDENT_LIFE_TALK",y="@OPEN_DAY_USER_PICKS/REMOVE_CAMPUS_TOUR_TALK",x="@OPEN_DAY_USER_PICKS/REMOVE_ADVICE_HUB_TALK",S="@OPEN_DAY_USER_PICKS/TOGGLE_ADVICE_HUB_TALK"},39289:(z,T,o)=>{o.d(T,{FB:()=>h,Hy:()=>I,Iz:()=>k,TX:()=>u,WD:()=>c,c1:()=>x,cG:()=>s,jI:()=>S,oL:()=>p,sW:()=>y,z0:()=>d});const s=g=>g.config.isReady,u=g=>g.config?.title,d=g=>g.config?.header,h=g=>g.config?.socialMedia,C=g=>g.config?.footer,p=g=>g.config?.footerNew,k=g=>g.config?.fallbackImage,I=g=>g.config?.courseFallbackImage,y=g=>g.config?.clearing,x=g=>g.config?.clearingCta,S=g=>g.config?.courseMessage,c=g=>g.config?.cardFallbackImage},39966:(z,T,o)=>{o.d(T,{M:()=>u,YK:()=>d,ux:()=>h,xT:()=>C});const s="@CONFIG/",u=`${s}GET_SITE_CONFIG`,d=`${s}SET_SITE_CONFIG`,h=`${s}SET_COOKIE_ACCEPTED`,C=`${s}GET_SITE_CONFIG_ERROR`},90985:(z,T,o)=>{o.d(T,{f:()=>s});const s={course:"courses",courseCpd:"coursesCpd",config:"siteConfig",externalForm:"externalForm",profile:"profile",caseStudy:"caseStudy",event:"event",eventListing:"eventListing",listing:"listing",openDayProgramme:"openDayProgramme",home:"homeNEW",news:"newsArticle",openDayConfig:"openDayConfig",dataCard:"dataCard",formPage:"formPage",dataForm:"dataForm"}},22504:(z,T,o)=>{o.d(T,{CB:()=>le,RM:()=>Ie,Xn:()=>h,Zf:()=>Te,cj:()=>ce,ef:()=>Q,tQ:()=>Ce,tj:()=>Ae});const s={availableLanguages:"sys.availableLanguages",contentTypeId:"sys.contentTypeId",dataFormat:"sys.dataFormat",id:"sys.id",language:"sys.language",published:"sys.version.published",slug:"sys.slug",uri:"sys.uri",versionStatus:"sys.versionStatus"},u={published:"published",latest:"latest"},d={entryTitle:"entryTitle",entryDescription:"entryDescription",entryThumbnail:"entryThumbnail"},h=[d.entryTitle,d.entryDescription,d.entryThumbnail,s.id,s.uri,s.published,s.contentTypeId],C=["metaInformation","title","description","keywords","image","noIndex","noFollow"],p=["asset","altText","caption","transformations","properties","filename","fileSize","filePath","width","fileId","height"],k=["content"],I=["internalReference","statistic","statisticLead","source","statContext","isOrb","fullStatContext","fullStatSource","fullStatDate","plusStatistic"],y=["internalReference","title","description","image","summary"],x=["title","uRL","logo"],S=["label","uRL",...C],c=["title","scholarships","additionalCosts"],g=["title","accomodationFees"],t=["title","ukFee","ukFeeTBC","overseasFee","overseasFeeTBC","description","overseasDescription"],N=["year","mandatoryModules","optionalModules","title","description"],R=["type","url"],V=["position"],B=["courseGallery","title","images",...V],U=["title","content"],W=["studyMode","startDate","location","placement","duration","ucasCodeOverride","applicationURL"],M=["qualification","grade"],v=["video","title","videoURL","positionControl",...V],A=["bio","profileImage","role","email","contactDetails","shortBio"],J=["text","image"],Q=[...C,"entryTitle","title","date","bannerImage","location","eventLink","summary","entryThumbnail","time","eventCategories","eventLinkSecondary","entryLink","content","contactInformation","renderThumbnailInEventContent","thumbnail","imageAlignment","date.from","category","dateAndTime","sys"],Te=[...h,...C,...Q,...I,"label","buttonLabel","event","eventLink","linkPath","videoComponent","caption","youTubeUrl","overlayImage","heroBanner","title","composer","latestNewsAndEvents","cardCarousel","videoSection","quoteBanner","statSectionWithImage","featureEvents","latestNews","latestEvents","statistics","statistic","statContext","statisticLead","fullStatContext","fullStatSource","fullStatDate","source","quoteBanner","quoteCard","quote","source","slug","sys.slug","publishedDate","animateBanners","heroBanners","secondImage","readTime","uRL","plusStatistic"],ve=["youtubeURL","title"],ye=["images","title"],re=["shortDescription","bannerImage","courseLevel","name","slug"],be=["title","academicYear","intakes","studyAbroad","availableThroughClearing","descriptionOverride","summaryOverride","discoverUniIDOverride","moreToExploreOverride","registerInterestFormOverride","structureIntroduction","yearStructure","teachingAndAssessmentIntroduction","teachingAndAssessment","feesTabs","howToApplyTitleOverride","additionalApplicationTitleOverride","howToApply","applyNowUrl","hideApplyNowButton","additionalApplicationInformation","fee","hideOrb","additionalCostsOverride","accommodationFeesOverride","ptFee","subjectToApproval","subjectToApprovalLabel","subjectToApprovalUrl","ucasTariffPoints","ucasTariffPointsUpper","entryRequirements","additionalRequirements","anyQuestions","promoMessageTitle","promoMessage","careersOverride","placementsOverride","overviewOverride","hideCourseMessage","highlightsOverride","imageGalleryOverride","videosOverride","caseStudiesOverride","staffOverride",...g,...W,...S,...N,...U,...M],Ce=[...h,...k,...g,...c,...be,...I,...x,...y,...t,...A,...J,...U,...S,...R,...B,...v,...M,...p,...C,...re,...ve,...ye,...Q,"sys","title","formURL","courseTitle","description","summary","ucasCode","level","award","subjectArea","school","subjectArea","honours","discoverUniID","instance","statistics","accreditation","accreditations","overview","placements","careers","highlights","highlightsTheme","ucasTariffPoints","ucasTariffPointsUpper","entryRequirements","additionalRequirements","anyQuestions","fAQ","contactDetails","courseContactDetails","secondaryCTA","secondaryCTALabel","image","thumbnail","relatedCourses","socialMedia","registerInterestForm","staffSliderTheme","staffIntroduction","staff","caseStudiesIntroduction","caseStudies","caseStudiesSliderTheme","imageGallery","video","email","featureNavLinks","optionalKeyFact","button","courseGallery","courseVideo","quote","positionControl","position","imageGalleryTheme","videoTheme","events","time","ukFeeLabelOverride","overseasFeeLabelOverride","hideApplyNow","hideCourseMessage","teachingAndAssessment","applicationUrl","durationMode","feeLabel","subjectToApproval","subjectToApprovalLabel","subjectToApprovalUrl","contactCTA","contactCTALabel","primaryCTALabel","moduleCode","hideSecondaryCTA","hideAccommodationFeesTab","liveChat"],Ie=[...h,...p,...C,"navigationItem","label","url","uRL","card","cardEntry","image","altText","title","description","navigationLevelOneItem","navigationLevelTwoItem","navigationLevelThreeItem","secondaryCTA","moreToExplore","additionalCosts","accommodationFees","socialMedia","type","contactDetails","heading","text","telephone","careers","footerMenu","items","campuses","furtherInfo","footerLinks","type","footerMenu","heading","bottomLinks","featureNavLinks","formURL","openGraphImage","courseFallbackImage","clearing","clearingCTA","courseMessageTitle","courseMessage","mapText","getInTouch","linksColumnOne","linksColumnTwo","linksColumnThree","linksColumnFour","linksBottom","mapImage","cardFallbackImage"],le=[...h,...C,"adviceHubAdditionalInfoPopup","studentLifeAdditionalInfoPopup","campusMapsAdditionalInfoPopup","exploreTheCityAdditionalInfoPopup","yourPicksAdditionalInfoPopup","accommodationAdditionalInfoPopup","campusTourAdditionalInfoPopup","adviceHubTextOverview","studentLifeTextOverview","campusMapsTextOverview","exploringTheCityTextOverview","yourPicksTextOverview","mainCampusImage","bannerImage","accommodationCallToAction","accommodationCallToActionDescription","campusTourCallToActionDescription","videoCallToAction","campusLocations","adviceHubInfo","exploringTheCityInfo","studentLifeTalks","accommodationTalks","campusTourTalks","accommodationVideo","accommodationVideo.videoComponent","accommodationVideo.videoComponent.caption","accommodationVideo.videoComponent.title","accommodationVideo.videoComponent.youTubeUrl","accommodationVideo.subtitle","accommodationVideo.description","accommodationVideo.overlayImage","accommodationVideo.title","campusTourVideo","campusTourVideo.videoComponent","campusTourVideo.videoComponent.caption","campusTourVideo.videoComponent.title","campusTourVideo.videoComponent.youTubeUrl","campusTourVideo.subtitle","campusTourVideo.description","campusTourVideo.overlayImage","campusTourVideo.title","callToAction","callToAction.buttonLabel","callToAction.url","name","description","mapImage","campusLocations.name","campusLocations.mapImage","floorInformation","floorInformation.floorName","floorInformation.floorMap","floorName","floorMap","campusTourTalks","startTime","endTime","campusTourCallToAction","campusTourAdditionalInfoPopup","optionalStartingPoint","location.name","location","courseAreasTextOverview","courseAreasAdditionalInfoPopup","travelToCampusInfo","travelToCampusAdditionalInfoPopup","faqs","faqAdditionalInfoPopup","faqTextOverview","fullScheduleTextOverview","fullScheduleAdditionalInfoPopup","content","description","accommodationTextOverview","campusTourTextOverview","adviceHubTalks","videoComponent","campusTourCallToActionDescription","openDayType"],Ae=new Set([...h,...Q,"title","summary","entryTitle","publishedDate","date","location","name","uRL"]),ce=[...h,...le,"id","title","description","date","courseAreas","courses","locations","dateAndTime","openDayItems","courseTalks","talks","eventType","course","arrivalLocation","courseArea","roomInfo","name","floor","code","startTime","endTime","bannerImage","additionalInfoPopup","welcomeMessageOverride","accommodationTextOverview","videoSection","description"],Ee=["entryTitle","iframeUrl","gaEventName"],Ne=[...h,...C,"title","form",...Ee.map(xe=>`form.${xe}`)]},88863:(z,T,o)=>{o.d(T,{nV:()=>k,py:()=>h});var s=o(90985);const u={all:"all",event:"event"},d={all:"all"},h={[s.f.eventListing]:u.event,[s.f.listing]:u.event},C={all:"all"},p={},k={title:100,description:50}},51389:(z,T,o)=>{o.d(T,{v:()=>s});const s=u=>new Intl.NumberFormat("en-GB",{style:"currency",currency:"GBP",minimumFractionDigits:0,maximumFractionDigits:0}).format(u)},27877:(z,T,o)=>{o.r(T),o.d(T,{default:()=>d});var s=o(48322);const d=()=>s.createElement(s.Fragment,null,s.createElement("header",null,s.createElement("h1",null,"404 Page Not Found")))},78799:(z,T,o)=>{o.d(T,{U:()=>u});var s=o(82472);const u={primary:{default:{background:s.T.light.brand.midBlue,text:s.T.light.neutral.white,border:s.T.light.brand.midBlue},hover:{background:s.T.light.neutral.white,text:s.T.light.brand.midBlue,border:s.T.light.brand.midBlue},focus:{border:s.T.light.brand.darkBlue}},secondary:{default:{background:s.T.light.neutral.white,text:s.T.light.brand.darkBlue,border:s.T.light.brand.darkBlue},hover:{background:s.T.light.brand.darkBlue,text:s.T.light.neutral.white,border:s.T.light.brand.darkBlue},focus:{border:s.T.light.neutral.lightGrey}},none:{default:{background:"transparent",text:s.T.light.brand.darkBlue,border:"transparent"},hover:{background:s.T.light.neutral.lightGrey,text:s.T.light.brand.darkBlue,border:"transparent"},focus:{border:s.T.light.brand.darkBlue}},clear:{default:{background:"transparent",text:s.T.light.neutral.black,border:s.T.light.neutral.black},hover:{background:s.T.light.neutral.lightGrey,text:s.T.light.neutral.black,border:s.T.light.neutral.black},focus:{border:s.T.light.brand.darkBlue}}}},82472:(z,T,o)=>{o.d(T,{T:()=>s});const s={light:{brand:{darkBlue:"#0C2340",midBlue:"#007DBA",lightBlue:"#59CBE8",lighterBlue:"#E7F3FC",gold:"#9B8B54",lightGold:"#C4B484",lightestGold:"#F2F0E5",burgundy:"#8F2A3B"},neutral:{black:"#000000",grey80:"#4D4D4C",grey:"#767676",lightGrey:"#ECEFEE",white:"#FFFFFF"},system:{hyperlink:"#055E8A",alerts:"#F9C302"}},dark:{brand:{darkBlue:"#0C2340",midBlue:"#007DBA",lightBlue:"#59CBE8",lighterBlue:"#E7F3FC",gold:"#9B8B54",lightGold:"#C4B484",lightestGold:"#F2F0E5",burgundy:"#8F2A3B"},neutral:{black:"#000000",grey80:"#4D4D4C",grey:"#767676",lightGrey:"#ECEFEE",white:"#FFFFFF"},system:{hyperlink:"#055E8A",alerts:"#F9C302"}}}},669:(z,T,o)=>{o.d(T,{l:()=>h});var s=o(67115),u=o(78799);const d=(0,s.AH)` .webformlabel { font-family: 'Open Sans', 'Segoe UI', Tahoma, 'Helvetica Neue', 'Roboto', sans-serif; color: #333; width: 200px; float: left; font-size: 16px; padding-top: 8px; } h3 { font-family: 'Open Sans', 'Segoe UI', Tahoma, 'Helvetica Neue', 'Roboto', sans-serif; color: #333; font-size: 32px; font-weight: 600; } p { font-family: 'Open Sans', 'Segoe UI', Tahoma, 'Helvetica Neue', 'Roboto', sans-serif; color: #333; font-size: 16px; } .paragraph { font-family: 'Open Sans', 'Segoe UI', Tahoma, 'Helvetica Neue', 'Roboto', sans-serif; color: #333; float: left; font-size: 16px; padding-top: 8px; padding-bottom: 16px; } .heading3 { font-family: 'Open Sans', 'Segoe UI', Tahoma, 'Helvetica Neue', 'Roboto', sans-serif; color: #333; float: left; font-size: 32px; font-weight: 600; padding-top: 16px; padding-bottom: 16px; } .webforminput { border: 1px solid gray; width: 300px; margin: 2px; padding: 5px; } .webformselect { border: 1px solid gray; width: 300px; margin: 5px; padding: 5px; } .webformselectm { border: 1px solid gray; width: 312px; margin: 2px; padding: 5px; } .submitbutton { margin-top: 10px; width: 230px; font-size: large; color: white; background: #12a0fb; align-content: center; } .warningmessage { color: dodgerblue; margin-top: 10px; margin-bottom: 10px; } /* CLIENT-SPECIFIC STYLES */ body, table, td, a { -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } table, td { mso-table-lspace: 0pt; mso-table-rspace: 0pt; } img { -ms-interpolation-mode: bicubic; } /* RESET STYLES */ img { border: 0; height: auto; line-height: 100%; outline: none; text-decoration: none; } table { border-collapse: collapse !important; } body { height: 100% !important; margin: 0 !important; padding: 0 !important; width: 100% !important; } /* iOS BLUE LINKS */ a[x-apple-data-detectors] { color: inherit !important; text-decoration: none !important; font-size: inherit !important; font-family: inherit !important; font-weight: inherit !important; line-height: inherit !important; } /* MOBILE STYLES */ @media screen and (max-width: 600px) { h1 { font-size: 32px !important; line-height: 32px !important; } .wrapper { width: 100% !important; } } /* ANDROID CENTER FIX */ div[style*='margin: 16px 0;'] { margin: 0 !important; } `,h=(0,s.AH)` ${d}; iframe { width: 100%; height: 100%; min-height: 100vh; border: none; } form { width: max-content; margin: 0 auto; font-family: 'Open Sans', sans-serif; } fieldset { padding: 0; border: none; border-top: 1px solid ${C=>C.theme.colors.light.neutral.grey80}; } legend { padding-inline-end: 8px; } label, legend, .webformlabel, .webformlabel2, .form__checkboxLabel { color: ${C=>C.theme.colors.light.neutral.grey80}; font-size: var(--step--1, 0.875rem); font-weight: 600; } input, .webforminput, .webformselect { appearance: none; padding: 0.5rem; margin: 1rem 0 0 0; border: none; border: 1px solid ${C=>C.theme.colors.light.brand.lightGold}; border-radius: 5px; } input[type='radio'], input[type='checkbox'] { padding-inline-end: 8px; width: 24px; height: 24px; accent-color: ${C=>C.theme.colors.light.brand.gold}; } button, .submitbutton { display: inline-block; inline-size: fit-content; padding: ${C=>C.theme.spacing.xxs}; border: 2px solid ${u.U.primary.default.border}; border-radius: 5px; text-align: center; text-decoration: none; font-weight: 700; color: ${u.U.primary.default.text}; background-color: ${u.U.primary.default.background}; transition: all 0.3s ease-in-out; touch-action: manipulation; cursor: pointer; :not(:disabled) { &:hover, &:focus-visible { background-color: ${u.U.primary.hover.background}; color: ${u.U.primary.hover.text}; border: 2px solid ${u.U.primary.hover.border}; transition: all 0.3s ease-in-out; } &:focus-visible { outline: 2px solid ${u.U.primary.focus.border}; outline-offset: 0; } } &:disabled { cursor: not-allowed; opacity: 0.5; } } `},14646:(z,T,o)=>{o.d(T,{Vg:()=>h,YK:()=>s,fi:()=>u,mq:()=>d});const s={xxxs:"0.5rem",xxs:"1rem",xs:"1.5rem",s:"2rem",m:"2.5rem",l:"3rem",xl:"4rem",xxl:"5rem",xxxl:"6rem"},u={px:{mobile:480,largeMobile:640,tablet:768,laptop:992,desktop:1024,largeDesktop:1440},em:{mobile:30,largeMobile:40,tablet:48,laptop:62,desktop:64,largeDesktop:90}},d={min:{px:{mobile:`only screen and (min-width: ${u.px.mobile}px)`,largeMobile:`only screen and (min-width: ${u.px.largeMobile}px)`,tablet:`only screen and (min-width: ${u.px.tablet}px)`,laptop:`only screen and (min-width: ${u.px.laptop}px)`,desktop:`only screen and (min-width: ${u.px.desktop}px)`,largeDesktop:`only screen and (min-width: ${u.px.largeDesktop}px)`},em:{mobile:`only screen and (min-width: ${u.em.mobile}em)`,largeMobile:`only screen and (min-width: ${u.em.largeMobile}em)`,tablet:`only screen and (min-width: ${u.em.tablet}em)`,laptop:`only screen and (min-width: ${u.em.laptop}em)`,desktop:`only screen and (min-width: ${u.em.desktop}em)`,largeDesktop:`only screen and (min-width: ${u.em.largeDesktop}em)`}},max:{px:{mobile:`only screen and (max-width: ${u.px.mobile}px)`,largeMobile:`only screen and (max-width: ${u.px.largeMobile}px)`,tablet:`only screen and (max-width: ${u.px.tablet}px)`,laptop:`only screen and (max-width: ${u.px.laptop}px)`,desktop:`only screen and (max-width: ${u.px.desktop}px)`,largeDesktop:`only screen and (max-width: ${u.px.largeDesktop}px)`},em:{mobile:`only screen and (max-width: ${u.em.mobile}em)`,largeMobile:`only screen and (max-width: ${u.em.largeMobile}em)`,tablet:`only screen and (max-width: ${u.em.tablet}em)`,laptop:`only screen and (max-width: ${u.em.laptop}em)`,desktop:`only screen and (max-width: ${u.em.desktop}em)`,largeDesktop:`only screen and (max-width: ${u.em.largeDesktop}em)`}}},h={default:{maxWidth:"120rem",gutter:s.xxs}}},85703:(z,T,o)=>{o.d(T,{A4:()=>k,DF:()=>h,Ju:()=>I,uY:()=>p});var s=o(67115),u=o(82472),d=o(14646);const h=y=>({gold:u.T.light.brand.gold,lightGold:u.T.light.brand.lightGold,blue:u.T.light.brand.midBlue,darkBlue:u.T.light.brand.darkBlue,lightBlue:u.T.light.brand.lightBlue,lighterBlue:u.T.light.brand.lighterBlue,lighterGold:u.T.light.brand.lightestGold,lightGrey:u.T.light.neutral.lightGrey})[y],C=y=>({gold:colors.light.brand.gold,blue:colors.light.brand.darkBlue,lightBlue:colors.light.brand.lightBlue,lighterGold:colors.light.brand.lightestGold,lightGrey:colors.light.neutral.lightGrey})[y],p=(y,x)=>(0,s.AH)` content: ''; z-index: -1; position: absolute; top: 28px; left: unset; right: unset; width: calc(100% + (var(--grid-gutter) * 2)); height: 100%; background-color: ${y}; @media ${d.mq.min.px.mobile} { } @media ${d.mq.min.px.laptop} { top: 64px; left: -64px; width: 100%; border-bottom-left-radius: 50px; } ${x==="slider"&&(0,s.AH)` left: calc(var(--grid-gutter) * -1); @media ${d.mq.min.px.tablet} { top: 84px; /** 42px is the height of the content slider controls */ height: calc(100% - 58px); } `} ${x==="cards"&&(0,s.AH)` left: calc(var(--grid-gutter) * -1); `} `,k=(0,s.AH)` position: absolute; content: ''; top: 0; right: 0; left: 0; bottom: 0; `,I=(0,s.AH)` tbody { tr:nth-child(odd) { background-color: ${u.T.light.brand.lighterBlue}; } & > td, & > th { padding: ${d.YK.xs}; } } tr { & > td, & > th { font-weight: 600; color: ${u.T.light.brand.darkBlue}; padding: ${d.YK.xs}; text-align: left; } } caption { font-weight: 600; color: ${u.T.light.brand.darkBlue}; padding: ${d.YK.xs}; background-color: rgba(0, 140, 204, 0.2); text-align: left; } `},38698:(z,T,o)=>{o.d(T,{Yq:()=>s});const s=(c,g)=>{const N=new Date(c).getDay(),R=c?.split("T"),V=R[0].split("-"),B=R[1].split(":"),[U,W,M]=V,[v,A]=B,J=["$","$$","$$$","$$$$"],Q=["\xA3","\xA3\xA3","\xA3\xA3\xA3","\xA3\xA3\xA3\xA3"];return g.replace(/d/g,Q[0]).replace(/M/g,J[0]).replace("HH",v).replace("H",parseInt(v).toString()).replace("hh",x(k(parseInt(v)))).replace("h",k(parseInt(v)).toString()).replace("mm",A).replace("m",parseInt(A).toString()).replace("tt",I(parseInt(v))).replace("t",I(parseInt(v)).slice(0,1)).replace("~",y(M)).replace("yyyy",U).replace("yy",U.slice(-2)).replace(J[3],h[parseInt(W)]).replace(J[2],d[parseInt(W)]).replace(J[1],W).replace(J[0],parseInt(W).toString()).replace(Q[3],p[N]).replace(Q[2],C[N]).replace(Q[1],M).replace(Q[0],parseInt(M).toString())},u=(c,g,t=" - ")=>{if(!c)return null;if(!g)return`${c.to} - ${c.from}`;const N=c.from,R=s(N,g),V=c.to,B=s(V,g);let U="";return R===B&&R?U=R:U=`${R}${t}${B}`,U},d=["","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],h=["","January","February","March","April","May","June","July","August","September","October","November","December"],C=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],p=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],k=c=>c>12?c-12:c,I=c=>c>11?"PM":"AM",y=c=>[1,21,31].includes(parseInt(c))?"st":[3,23].includes(parseInt(c))?"rd":[2,22].includes(parseInt(c))?"nd":"th",x=c=>("0"+c).slice(-2),S=c=>{const g=new Date().getTimezoneOffset()*6e4;return new Date(c-g).toISOString().slice(0,-1)}},78915:(z,T,o)=>{o.d(T,{R:()=>s});const s=u=>{if(!u||u.length===0)return!1;const d=u[0].value;return!!(Array.isArray(d)&&d.length>0||typeof d=="object"&&d!==null&&!Array.isArray(d)||typeof d=="string"&&d!==null)}},43762:(z,T,o)=>{o.d(T,{A:()=>s});function s(){return typeof window<"u"}},82791:(z,T,o)=>{var s=o(33807),u=o(53091),d=o(90985),h=o(22504),C=o(87168);const p=(0,C.Ay)(()=>Promise.resolve().then(o.bind(o,27877))),k=(0,C.Ay)(()=>Promise.resolve().then(o.bind(o,83692)),{resolveComponent:e=>e.VersionInfo}),I=(0,C.Ay)(()=>Promise.all([o.e(241),o.e(336),o.e(104),o.e(550),o.e(805),o.e(488),o.e(862),o.e(335),o.e(728),o.e(219),o.e(148)]).then(o.bind(o,19627))),y=(0,C.Ay)(()=>Promise.all([o.e(241),o.e(336),o.e(104),o.e(550),o.e(862),o.e(335),o.e(728),o.e(219),o.e(539)]).then(o.bind(o,87644))),x=(0,C.Ay)(()=>Promise.all([o.e(241),o.e(336),o.e(104),o.e(862),o.e(335),o.e(219)]).then(o.bind(o,93216))),S=(0,C.Ay)(()=>Promise.all([o.e(550),o.e(862),o.e(121)]).then(o.bind(o,43634))),c=(0,C.Ay)(()=>Promise.all([o.e(241),o.e(104),o.e(862),o.e(335),o.e(950)]).then(o.bind(o,60445))),g=(0,C.Ay)(()=>Promise.all([o.e(241),o.e(104),o.e(550),o.e(862),o.e(335),o.e(728),o.e(496)]).then(o.bind(o,68541)));var t=o(30589),N=o(81893);const R=t.z.object({createdBy:t.z.string().optional(),created:t.z.string().optional(),modifiedBy:t.z.string().optional(),modified:t.z.string().optional(),publishedBy:t.z.string().nullish().optional(),published:t.z.string().nullish().optional(),versionNo:t.z.string().optional()}),V=t.z.object({id:t.z.string(),state:t.z.string()}),B=t.z.object({allUris:t.z.array(t.z.string()).optional(),availableLanguages:t.z.array(t.z.string()).nullish().optional(),contentTypeId:t.z.string(),dataFormat:t.z.string().optional(),id:t.z.string(),isPublished:t.z.boolean().nullish().optional(),language:t.z.string().optional(),owner:t.z.string().nullish().optional(),projectId:t.z.string().nullish().optional(),properties:t.z.object({width:t.z.number().nullish(),height:t.z.number().nullish(),fileSize:t.z.number().nullish()}).optional(),slug:t.z.string().nullish().optional(),uri:t.z.string().nullish(),version:R.optional(),versionStatus:t.z.enum(["published","latest"]).optional(),workflow:V.nullish().optional()}),U=B.extend({metadata:t.z.any().optional(),version:R.extend({archived:t.z.string().nullish(),archivedBy:t.z.string().nullish(),deleted:t.z.string().nullish(),deletedBy:t.z.string().nullish()}).optional()}),W=t.z.object({altText:t.z.string().nullish(),sys:B.extend({properties:t.z.object({height:t.z.number(),width:t.z.number()}).optional()})}),M=t.z.object({altText:t.z.string().nullish(),asset:W,caption:t.z.string().nullish().optional(),transformations:t.z.unknown().optional()}),v=t.z.object({entryThumbnail:M.nullish(),entryTitle:t.z.string(),entryDescription:t.z.string().nullish(),sys:U}),A=t.z.any(),J=t.z.object({title:t.z.string().nullish(),description:t.z.string().nullish(),keywords:t.z.string().nullish(),image:M.nullish(),noIndex:t.z.boolean(),noFollow:t.z.boolean()}),Q=v.extend({title:t.z.string(),scholarships:A.nullish(),additionalCosts:A.nullish()}),Te=v.extend({title:t.z.string()}),ve=v.extend({title:t.z.string()}),ye=v.extend({title:t.z.string()}),re=v.extend({internalReference:t.z.string(),title:t.z.string().nullish(),description:t.z.string().nullish(),image:M.nullish(),summary:t.z.string().nullish()}),be=v.extend({internalReference:t.z.string(),statistic:t.z.string(),statisticLead:t.z.string().nullish(),source:t.z.string().nullish(),isOrb:t.z.boolean().nullish()}),Ce=v.extend({internalReference:t.z.string(),statContext:t.z.enum(["%","Top","st","nd","rd","th"]),statistic:t.z.number(),statisticLead:t.z.string().nullish(),source:t.z.string().nullish(),fullStatContext:t.z.string().nullish(),fullStatSource:t.z.string().nullish(),fullStatDate:t.z.string().nullish()}),Ie=v.extend({title:t.z.string(),uRL:t.z.string().nullish(),logo:M.nullish()}),le=v.extend({label:t.z.string(),uRL:t.z.string(),metaInformation:J}),Ae=v.extend({title:t.z.string(),accomodationFees:A.nullish()}),ce=v.extend({title:t.z.string(),ukFee:t.z.number().nullish(),overseasFee:t.z.number().nullish(),description:A.nullish(),overseasDescription:A.nullish(),hideOrb:t.z.boolean().nullish()}),Ee=v.extend({title:t.z.string()}),Ne=v.extend({title:t.z.string()}),xe=v.extend({title:t.z.string(),id:t.z.string().nullish(),description:t.z.string().nullish()}),Ue=v.extend({title:t.z.string(),description:t.z.string().nullish()}),Be=v.extend({internalReference:t.z.string(),title:t.z.string().nullish(),description:A.nullish()}),Et=t.z.object({year:t.z.string().nullish(),mandatoryModules:t.z.array(Be),optionalModules:t.z.array(Be),richText:t.z.string().nullish()}),xt=t.z.object({type:t.z.enum(["Facebook","X","Instagram","Linkedin","YouTube","TikTok"]),url:t.z.string().nullish()}),ue=t.z.object({position:t.z.enum(["Overview","Careers","Teaching and assessment","More to explore","Fees"])}),$e=t.z.object({courseGallery:t.z.object({title:t.z.string().nullish(),images:t.z.array(M)}),positionControl:ue}),Ge=t.z.object({courseVideo:t.z.object({title:t.z.string().nullish(),youtubeURL:t.z.string().nullish()}),positionControl:ue}),St=v.extend({title:t.z.string()}),Se=t.z.object({title:t.z.string(),content:t.z.string()}),je=t.z.object({qualification:t.z.string().nullish(),grade:t.z.string().nullish()}),de=v.extend({bio:t.z.string().nullish(),profileImage:M.nullish(),role:t.z.string().nullish(),contactDetails:t.z.object({email:t.z.string().nullish(),telephone:t.z.string().nullish()}),shortBio:t.z.string().nullish()}),Oe=v.extend({text:t.z.string().nullish(),image:M.nullish()}),Ot=t.z.object({positionControl:ue,quote:Oe.nullable()}),Ke=v.extend({internalReference:t.z.string(),title:t.z.string().nullish(),formURL:t.z.string().nullish()}),ze=v.extend({name:t.z.string()}),zt=v.extend({metaInformation:J.nullish(),title:t.z.string().nullish(),date:t.z.object({from:t.z.string().nullish(),to:t.z.string().nullish()}),dateAndTime:t.z.object({from:t.z.string().nullish(),to:t.z.string().nullish()}).nullish(),time:t.z.string().nullish(),bannerImage:M.nullish(),thumbnail:M.nullish(),location:t.z.string().nullish(),summary:t.z.string().nullish(),eventLink:t.z.object({linkPath:t.z.string().nullish(),linkText:t.z.string().nullish(),openInNewWindow:t.z.boolean().nullish(),entryLink:v.nullish()}).nullish(),eventLinkSecondary:t.z.object({linkPath:t.z.string().nullish(),linkText:t.z.string().nullish(),openInNewWindow:t.z.boolean().nullish(),entryLink:v.nullish()}).nullish(),eventCategories:t.z.array(ze).nullish(),content:A.nullish(),contactInformation:t.z.string().nullish(),renderThumbnailInEventContent:t.z.boolean().nullish(),imageAlignment:t.z.string().nullish(),category:t.z.array(ze).nullish()}),qn=v.extend({metaInformation:J.nullish(),title:t.z.string().nullish(),subHeading:t.z.string().nullish(),entryTitle:t.z.string().nullish(),entryDescription:t.z.string().nullish(),publishedDate:t.z.string().nullish(),readTime:t.z.number().nullish(),renderThumbnailInArticleContent:t.z.boolean().nullish(),thumbnail:M.nullish(),entryThumbnail:M.nullish(),imageAlignment:t.z.string().nullish(),articleContent:A.nullish(),category:t.z.array(ze).nullish()}),ae=t.z.enum(["Gold","Light Gold","Lighter Gold","Blue","Light Blue","Dark Blue","Light Grey"]),wt=v.extend({courseTitle:t.z.string().nullish(),description:t.z.string().nullish(),shortDescription:t.z.string().nullish(),image:M.nullish(),bannerImage:M.nullish(),courseLevel:t.z.object({name:t.z.string().nullish()}).nullish(),level:v.nullish()}),Lt=t.z.object({studyMode:Ne.nullish(),startDate:Ee.nullish(),location:xe.nullish(),placement:t.z.enum(["No placement","Placement options","Placement required"]).nullish(),duration:t.z.number().nullish(),durationMode:t.z.enum(["Years","Months","Weeks","Days"]).nullish(),ucasCodeOverride:t.z.string().nullish(),discoverUniID:t.z.string().nullish(),applicationURL:t.z.string().nullish(),id:t.z.string().optional()}),kt=v.extend({title:t.z.string(),academicYear:Ae.nullish(),intakes:t.z.array(Lt).min(1),studyAbroad:t.z.boolean().nullish(),availableThroughClearing:t.z.boolean().nullish(),descriptionOverride:t.z.string().nullish(),summaryOverride:t.z.string().nullish(),careersOverride:A.nullish(),placementsOverride:A.nullish(),overviewOverride:A.nullish(),discoverUniIDOverride:t.z.string().nullish(),moreToExploreOverride:t.z.array(le),registerInterestFormOverride:t.z.string().nullish(),structureIntroduction:A.nullish(),yearStructure:t.z.array(Et),teachingAndAssessmentIntroduction:A.nullish(),teachingAndAssessment:t.z.array(Se).nullish(),howToApply:A.nullish(),additionalApplicationInformation:A.nullish(),fee:ce.nullable(),ptFee:ce.nullable(),additionalCostsOverride:A.nullish(),accommodationFeesOverride:A.nullish(),feesTabs:t.z.array(Se).nullish(),howToApplyTitleOverride:t.z.string().nullish(),additionalApplicationTitleOverride:t.z.string().nullish(),applyNowURL:t.z.string().nullish(),hideApplyNowButton:t.z.boolean().nullish(),subjectToApproval:t.z.boolean().nullish(),subjectToApprovalLabel:t.z.string().nullish(),subjectToApprovalUrl:t.z.string().nullish(),ucasTariffPoints:t.z.number().nullish(),ucasTariffPointsUpper:t.z.number().nullish(),entryRequirements:t.z.array(je).nullish(),additionalRequirements:A.nullish(),anyQuestions:v.extend({internalReference:t.z.string(),title:t.z.string().nullish(),content:A.nullish()}).nullable(),promoMessageTitle:t.z.string().nullish(),promoMessage:A.nullish(),highlightsOverride:t.z.array(re).nullish(),imageGalleryOverride:t.z.array($e).nullish(),videosOverride:t.z.array(Ge).nullish(),caseStudiesOverride:t.z.array(Oe).nullish(),staffOverride:t.z.array(de).nullish()}),we=v.extend({optionId:t.z.string().optional(),metaInformation:J.nullish(),title:t.z.string(),courseTitle:t.z.string(),award:t.z.array(ve),description:t.z.string(),summary:t.z.string().nullish(),ucasCode:t.z.string().nullish(),level:Te,subjectArea:t.z.array(Q).nullish(),school:t.z.array(St).nullish(),honours:ye.nullish(),discoverUniID:t.z.string().nullish(),instance:t.z.array(kt).min(1),statistics:t.z.array(t.z.union([be,Ce])).nullish(),accreditation:A.nullish(),accreditations:t.z.array(Ie).nullish(),overview:A.nullish(),overviewOverride:A.nullish(),placements:A.nullish(),placementsOverride:A.nullish(),careers:A.nullish(),careersOverride:A.nullish(),highlights:t.z.array(re).nullish(),ucasTariffPoints:t.z.number().nullish(),ucasTariffPointsUpper:t.z.number().nullish(),entryRequirements:t.z.array(je).nullish(),additionalRequirements:A.nullish(),anyQuestions:v.extend({internalReference:t.z.string(),title:t.z.string().nullish(),content:A.nullish()}).nullable(),fAQ:t.z.array(Se).nullish(),contactDetails:de.nullish(),secondaryCTA:t.z.union([le,Ke]).nullish(),secondaryCTALabel:t.z.string().nullish(),contactCTA:t.z.union([le,Ke]).nullish(),contactCTALabel:t.z.string().nullish(),image:M,thumbnail:M.nullish(),relatedCourses:t.z.array(wt).nullish(),socialMedia:t.z.array(xt).nullish(),registerInterestForm:t.z.string().nullish(),staffIntroduction:A.nullish(),staff:t.z.array(de).nullish(),caseStudiesIntroduction:A.nullish(),teachingAndAssessment:A.nullish(),caseStudies:t.z.array(Oe).nullish(),imageGallery:t.z.array($e).nullish(),video:t.z.array(Ge).nullish(),quote:t.z.array(Ot).nullable(),optionalKeyFact:t.z.string().nullable(),highlightsTheme:ae.nullish(),videoTheme:ae.nullish(),imageGalleryTheme:ae.nullish(),staffSliderTheme:ae.nullish(),caseStudiesSliderTheme:ae.nullish(),courseContactDetails:t.z.array(de).nullish(),events:t.z.array(zt).nullish(),hideApplyNow:t.z.boolean().nullish(),positionControl:ue.nullish(),hideCourseMessage:t.z.boolean().nullish(),applicationUrl:t.z.string().nullish(),subjectToApproval:t.z.boolean().nullish(),subjectToApprovalLabel:t.z.string().nullish(),subjectToApprovalUrl:t.z.string().nullish(),hideOptionDropdown:t.z.boolean().nullish(),primaryCTALabel:t.z.string().nullish(),moduleCode:t.z.string().nullish(),hideSecondaryCTA:t.z.boolean().nullish(),hideAccommodationFeesTab:t.z.boolean().nullish(),liveChat:t.z.boolean().nullish()}),Mt=v.extend({title:t.z.string(),entryTitle:t.z.string().nullish(),description:t.z.string().nullish(),entryDescription:t.z.string().nullish(),eventType:t.z.string().nullish(),startTime:t.z.string().nullish(),endTime:t.z.string().nullish(),roomInfo:t.z.object({name:t.z.string().nullish(),floor:t.z.string().nullish(),code:t.z.string().nullish()}).nullish()}),He=v.extend({entryTitle:t.z.string(),id:t.z.string().nullish(),description:t.z.string().nullish(),entryDescription:t.z.string().nullish(),name:t.z.string().nullish()}),Dt=v.extend({title:t.z.string(),entryTitle:t.z.string().nullish(),arrivalLocation:He.nullish(),talks:t.z.array(Mt).nullish(),description:t.z.string().nullish(),course:we.nullish()}),Ft=v.extend({title:t.z.string(),description:t.z.string().nullish(),entryTitle:t.z.string().nullish(),entryDescription:t.z.string().nullish(),courseArea:Ue.nullish(),courseTalks:t.z.array(Dt).nullish()}),_n=v.extend({title:t.z.string(),description:t.z.string().nullish(),dateAndTime:t.z.string().nullish(),courseAreas:t.z.array(Ue).nullish(),openDayItems:t.z.array(Ft).nullish(),bannerImage:M.nullish(),welcomeMessageOverride:t.z.string().nullish(),arrivalLocation:He.nullish(),openDayType:t.z.enum(["Default","Offer Holder Day"]).nullish(),adviceHubInfo:A.nullish(),adviceHubAdditionalInfoPopup:t.z.string().nullish(),adviceHubTalks:t.z.array(t.z.object({title:t.z.string().nullish(),sys:U,startTime:t.z.string().nullish(),endTime:t.z.string().nullish(),location:t.z.object({name:t.z.string().nullish()}).nullish(),optionalStartingPoint:t.z.string().nullish(),description:t.z.string().nullish()})).nullish(),accommodationTextOverview:t.z.string().nullish(),videoSection:t.z.object({videoComponent:t.z.object({youTubeUrl:t.z.string().nullish()}).nullish(),overlayImage:M.nullish(),title:t.z.string().nullish(),description:t.z.string().nullish()}).nullish(),accommodationCallToActionDescription:t.z.string().nullish(),accommodationCallToAction:t.z.object({buttonLabel:t.z.string().nullish(),url:t.z.string().nullish()}).nullish(),accommodationTalks:t.z.array(t.z.object({title:t.z.string().nullish(),startTime:t.z.string().nullish(),endTime:t.z.string().nullish(),description:t.z.string().nullish(),sys:U,location:t.z.object({name:t.z.string().nullish()}).nullish(),optionalStartingPoint:t.z.string().nullish(),callToAction:t.z.object({buttonLabel:t.z.string().nullish(),url:t.z.string().nullish()}).nullish()})).nullish(),accommodationAdditionalInfoPopup:t.z.string().nullish(),studentLifeTextOverview:t.z.string().nullish(),studentLifeAdditionalInfoPopup:t.z.string().nullish(),studentLifeTalks:t.z.array(t.z.object({title:t.z.string().nullish(),description:t.z.string().nullish(),sys:U,startTime:t.z.string().nullish(),endTime:t.z.string().nullish(),location:t.z.object({name:t.z.string().nullish()}).nullish(),optionalStartingPoint:t.z.string().nullish()})).nullish()});var ee=o(38698);const me=(e,n,l="Register for updates")=>{const i=e.secondaryCTA&&e.secondaryCTA.sys.contentTypeId===d.f.externalForm,m=n?.config?.courses?.secondaryCTA&&n?.config?.courses?.secondaryCTA.sys.contentTypeId===d.f.externalForm,r=i?{label:e.secondaryCTA?.title||l,modalTitle:e.secondaryCTA?.title,modalFormUrl:e.secondaryCTA?.formURL,link:void 0}:m?{label:l,modalTitle:n?.config?.courses?.secondaryCTA?.entryTitle,modalFormUrl:n?.config?.courses?.secondaryCTA?.formURL,link:void 0}:{label:l,modalTitle:void 0,modalFormUrl:void 0,link:(e.secondaryCTA&&"uRL"in e.secondaryCTA?e.secondaryCTA.uRL:void 0)??n?.config?.courses?.secondaryCTA?.uRL};return{label:r.label,buttonTheme:"secondary",link:r.link,modalTitle:r.modalTitle,modalFormUrl:r.modalFormUrl,disabled:!1}},Pt=(e,n)=>{const l=e.instance[0],i=l.intakes[0].ucasCodeOverride??e.ucasCode,m=l.intakes[0].applicationURL??void 0,r=e.hideApplyNow??!1;return{title:e.courseTitle??e.entryTitle,description:l.descriptionOverride??e.description,image:{src:e.image?.asset?.sys.uri??null,alt:e.image?.altText??e.image?.asset?.altText??"No alt text provided"},awards:e.award.map(f=>f.title),tags:i||e.honours?[...i?[{label:`UCAS Code: ${i}`}]:[],...e.honours?[{label:e.honours.entryTitle}]:[]]:null,applicationCTA:r?null:{label:"Apply now",buttonTheme:"primary",link:m,disabled:!m},secondaryCTA:n?me(e,n,e.secondaryCTALabel??"Register for updates"):{label:e.secondaryCTALabel??"Register for updates",buttonTheme:"secondary",link:void 0,modalTitle:void 0,modalFormUrl:void 0,disabled:!1},subjectToApprovalTag:{subjectToApproval:e.instance[0].subjectToApproval??!1,subjectToApprovalLabel:e.instance[0].subjectToApprovalLabel??"Subject to approval",subjectToApprovalUrl:e.instance[0].subjectToApprovalUrl??null}}},Rt=(e,n)=>{const l=e.applicationUrl??void 0,i=e.primaryCTALabel??"Apply now",m=e.moduleCode??void 0,r=e.hideApplyNow??!1,f=e.hideSecondaryCTA??!1;return{title:e.courseTitle??e.entryTitle,description:e.description,image:{src:e.image?.asset?.sys.uri??null,alt:e.image?.altText??e.image?.asset?.altText??"No alt text provided"},awards:e.award.map(L=>L.title),tags:[{label:"Short course"},...e.award[0].entryTitle?[{label:e.award[0].entryTitle}]:[],...m?[{label:`${m}`}]:[]],applicationCTA:r?null:{label:i,buttonTheme:"primary",link:l,disabled:!l},secondaryCTA:!f&&n?me(e,n,e.secondaryCTALabel??"Register for updates"):f?null:{label:e.secondaryCTALabel??"Register for updates",buttonTheme:"secondary",link:void 0,modalTitle:void 0,modalFormUrl:void 0,disabled:!1},subjectToApprovalTag:{subjectToApproval:e.subjectToApproval??!1,subjectToApprovalLabel:e.subjectToApprovalLabel??"Subject to approval",subjectToApprovalUrl:e.subjectToApprovalUrl??null}}},Nt=e=>{const n=e.date.from?(0,ee.Yq)(e.date.from,"MMMM yyyy"):null;return{title:e.title??null,description:null,image:{src:e.bannerImage?.asset.sys.uri??null,alt:e.bannerImage?.altText??"No alt text provided"},awards:[],tags:[{label:e.eventCategories&&e.eventCategories.length>0&&e.eventCategories[0].name?e.eventCategories[0].name:null},{label:n}],applicationCTA:{label:e.eventLink?.linkText??"Learn more",buttonTheme:"primary",link:e.eventLink?.linkPath??e.eventLink?.entryLink?.sys.uri??void 0,disabled:!1},secondaryCTA:null}},Ye=e=>!e||e.length<=0?null:{accreditations:e.map(n=>({title:n.title,url:n.uRL??null,image:{src:n.logo?.asset.sys.uri??"",alt:n.logo?.altText??""}}))},ie=e=>e?e.replace(/\s(.)/g,function(n){return n.toUpperCase()}).replace(/\s/g,"").replace(/^(.)/,function(n){return n.toLowerCase()}):null,Ve=(e,n)=>!e||e.length<=0?null:{highlights:e.map(l=>({title:l.title??l.entryTitle,description:l.description??l.entryDescription??"No description provided",image:{src:l.image?.asset?.sys.uri??"",alt:l.image?.altText??""},url:l?.sys?.uri??null,summary:l.summary??null})),sliderTheme:ie(n)??"gold"};var We=o(93149);const Je=e=>!e||e.length<=0?null:e.map(n=>"statContext"in n?{statistic:n.statistic,statContext:n?.statContext,statInfo:n?.statisticLead??null,source:n?.source??null}:{isOrb:n.isOrb??!1,statistic:n.statistic,statInfo:n?.statisticLead??null,source:n?.source??null});var Ut=o(62937),Bt=o.n(Ut);const Qe=e=>{const{id:n,location:l,startDate:i,studyMode:m,placement:r,duration:f,durationMode:L}=e,E=`${n}-${l?.entryTitle}-${i?.entryTitle}-${m?.entryTitle}-${r}-${f}-${L}`;return Bt()(E)},Xe=e=>e.map(n=>n.intakes.map(l=>{const i=Qe(l);return{...l,id:i}})).flat(1);var Ze=o(51389);const qe=(e,n,l)=>{if(!e&&!l&&!n||typeof l!="string")return null;if(l&&!n)return`${l}`;const i=e===1?n?.toLowerCase().replace(/s$/,""):n?.toLowerCase();return`${e} ${i} ${l?.toLowerCase()}`.trim()},Le=(e,n)=>!e&&!n?null:e&&!n?e.toString():`${e.toString()} - ${n?.toString()}`,$t=(e,n)=>{const l=Xe(e.instance),i=e.instance[0],m=l[0],r=i.intakes[0].applicationURL??void 0,f=(w,j)=>w==="TBC"?"TBC":typeof w=="number"?`${(0,Ze.v)(w)}`:"",L=e?.ukFeeLabelOverride??"UK and EU",E=e?.overseasFeeLabelOverride??"International",F=[];F.push({icon:"starsGroup",label:e?.ucasTariffPoints?"UCAS points":null,content:i.ucasTariffPoints?{type:"markup",text:i.ucasTariffPoints?`${Le(i.ucasTariffPoints,i.ucasTariffPointsUpper)}`:""}:e?.ucasTariffPoints?{type:"markup",text:e.ucasTariffPoints?`${Le(e.ucasTariffPoints,e.ucasTariffPointsUpper)}`:""}:null}),F.push({icon:"star",label:e.optionalKeyFact??null});const P=w=>{const j=i?.fee,b=e.fee,Y=i?.ptFee,_=e.ptFee;return j&&typeof j[w]=="number"?j[w]:j&&j[`${w}TBC`]===!0?"TBC":b&&typeof b[w]=="number"?b[w]:b&&b[`${w}TBC`]===!0?"TBC":Y&&typeof Y[w]=="number"?Y[w]:Y&&Y[`${w}TBC`]===!0?"TBC":_&&typeof _[w]=="number"?_[w]:_&&_[`${w}TBC`]===!0?"TBC":null},H=P("ukFee"),K=P("overseasFee"),O=f(H),G=f(K);if(O||G){const w=[];O&&w.push(`${L} ${O}`),G&&w.push(`${E} ${G}`),F.push({icon:"pound",label:"Fees",breakContent:!0,content:{type:"markup",text:`${w.join("
")}
`}})}return F.push({icon:"clock",label:qe(m?.duration,m?.durationMode,m?.studyMode&&m.studyMode.entryTitle)}),F.push({icon:"book",label:e?.instance&&e?.instance[0]&&e.instance[0]?.intakes&&e.instance[0]?.intakes[0].placement?e.instance[0].intakes[0].placement==="Placement required"?"Placement":e.instance[0].intakes[0].placement==="Placement options"?"Placement available":(e.instance[0].intakes[0].placement==="No placement",null):null}),F.push({icon:"globe",label:e?.instance&&e.instance[0]?.studyAbroad?"Study abroad available":null}),{events:!1,facts:F,applicationCTA:{label:"Apply now",buttonTheme:"primary",link:r,disabled:!r},hideApplyNow:e.hideApplyNow,secondaryCTA:n?me(e,n,"Register for updates"):{label:"Register for updates",buttonTheme:"secondary",link:void 0,modalTitle:void 0,modalFormUrl:void 0,disabled:!1}}},Gt=(e,n)=>{const l=e.applicationUrl??void 0,i=e.primaryCTALabel??"Apply now",m=e.secondaryCTALabel??"Register for updates",r=e.hideApplyNow??!1,f=e.hideSecondaryCTA??!1,L=e?.ukFeeLabelOverride??"UK and EU",E=e?.overseasFeeLabelOverride??"International",F=w=>w==="TBC"?"TBC":typeof w=="number"?`${(0,Ze.v)(w)}`:"",P=[];P.push({icon:"star",label:e.optionalKeyFact??null}),P.push({icon:"calendar",label:"Start date and location",breakContent:!0,content:{type:"markup",text:`${e.startDate.entryTitle||e.location.entryTitle?`${e.startDate.entryTitle?e.startDate.entryTitle:""}${e.startDate.entryTitle&&e.location.entryTitle?" - ":""}${e.location.entryTitle?e.location.entryTitle:""}`:""}`}}),P.push({icon:"clock",label:qe(e?.duration,e?.durationMode,e?.studyMode&&e.studyMode.entryTitle)});const H=e&&e.fee?typeof e.fee?.ukFee=="number"?e.fee.ukFee:e.fee.ukFeeTBC===!0||e.fee.ukTBC===!0?"TBC":void 0:void 0,K=e&&e.fee?typeof e.fee?.overseasFee=="number"?e.fee.overseasFee:e.fee.overseasFeeTBC===!0||e.fee.overseasTBC===!0?"TBC":void 0:void 0,O=F(H),G=F(K);if(O||G){const w=[];O&&w.push(`${L} ${O}`),G&&w.push(`${E} ${G}`),P.push({icon:"pound",label:"Fees",breakContent:!0,content:{type:"markup",text:`${w.join("
")}
`}})}return{events:!1,facts:P,applicationCTA:r?null:{label:i,buttonTheme:"primary",link:l,disabled:!l},secondaryCTA:f?null:n?me(e,n,m):{label:m,buttonTheme:"secondary",link:void 0,modalTitle:void 0,modalFormUrl:void 0,disabled:!1}}},jt=(e,n)=>e&&n&&e===n?`${e}`:e&&n?`${e} - ${n}`:e?`${e}`:n?`${n}`:"",Kt=e=>{const n=e.date.from?(0,ee.Yq)(e.date.from,"MMMM d, yyyy"):null,l=e.date.to?(0,ee.Yq)(e.date.to,"MMMM d, yyyy"):null;return{events:!0,facts:[{icon:"calendar",label:null,content:{type:"markup",text:jt(n,l)}},{icon:"clock",label:null,content:{type:"markup",text:`${e.time}`}},{icon:"globe",label:null,content:{type:"markup",text:`${e.location}`}}],applicationCTA:{label:e.eventLink?.linkText??"Book now",buttonTheme:"primary",link:e.eventLink?.linkPath??e.eventLink?.entryLink?.sys.uri??e.eventLink?.entryLink?.sys.slug??void 0,openInNewWindow:e.eventLink?.openInNewWindow??!1,disabled:!1},secondaryCTA:e.eventLinkSecondary?.linkText||e.eventLinkSecondary?.linkPath||e.eventLinkSecondary?.entryLink?{label:e.eventLinkSecondary?.linkText??"Register your interest",buttonTheme:"secondary",link:e.eventLinkSecondary?.linkPath??e.eventLinkSecondary?.entryLink?.sys.uri??void 0,openInNewWindow:e.eventLinkSecondary?.openInNewWindow??!1,disabled:!1}:null}},Ht=e=>e?{yearStructures:e.map(n=>({title:n?.year??null,mandatoryModules:n.mandatoryModules&&n.mandatoryModules.length>0?{title:"Mandatory modules",items:n.mandatoryModules.map(l=>({title:l?.title,canvas:!0,canvasData:l.description}))}:null,optionalModules:n.optionalModules&&n.optionalModules.length>0?{title:"Optional modules",items:n.optionalModules.map(l=>({title:l?.title,canvas:!0,canvasData:l.description}))}:null,text:n?.richText??null}))}:null,pe=(e,n,l)=>{if(!e||e.length<=0)return null;switch(n){case"event":return{id:`event-slider-${e[0].sys.id}`,type:"event",galleryTheme:ie(l)??"gold",content:e.map(i=>{const{title:m,date:r,location:f,summary:L,eventLink:E}=i;return{title:m,date:r.to?(0,ee.Yq)(r.to,"MMMM d yyyy"):null,location:f,summary:L,link:E?{label:E.linkText??"Book your place",path:E.linkPath??null}:null}})};case"profile":return e[0].sys.contentTypeId===d.f.profile?{id:`profile-slider-${e[0].sys.id}`,type:"profile",galleryTheme:ie(l)??"gold",content:e.map(i=>{const{entryTitle:m,shortBio:r,profileImage:f}=i;return{name:m,bio:r??null,thumbnail:f&&f?.asset.sys.uri?{src:`${f?.asset?.sys?.uri}?q=90&w=340&h=340&f=webp`??0,alt:f?.altText??void 0}:null}})}:{id:`alt-slider-${e[0].sys.id}`,type:"profile",galleryTheme:ie(l)??"gold",content:e.map(i=>{const{entryTitle:m,text:r,image:f}=i;return{name:m,bio:r??null,thumbnail:f&&f?.asset.sys.uri?{src:`${f?.asset?.sys?.uri}?q=90&w=340&h=340&f=webp`??0,alt:f?.altText??void 0,caption:f?.caption??null}:null}})};default:return null}},Yt=e=>String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-"),_e=e=>!e||e.length<=0?null:{cardRowTheme:"darkBlue",layout:"container",cards:e.map(n=>({cardTheme:"lighterBlue",title:n.entryTitle,description:n.metaInformation?.description??void 0,image:{src:n.metaInformation?.image?.asset.sys.uri??null,alt:n.metaInformation?.image?.altText??"No alt text provided"},url:n.uRL}))},et=e=>!e||e.length<=0?null:{cardRowTheme:"lightGold",layout:"full-width",cards:e.map(n=>({cardTheme:"lighterGold",title:n.courseTitle??n.entryTitle,category:n?.level?.entryTitle??n?.courseLevel?.name??void 0,description:n?.description??n?.shortDescription??void 0,image:{src:n?.image?.asset.sys.uri??n?.bannerImage?.asset.sys.uri??null,alt:n?.image?.altText??n?.bannerImage?.altText??"No alt text provided"},url:n.sys.uri??`/courses/${n.sys?.slug?n.sys.slug:Yt(n.entryTitle)}`}))},tt=e=>e.map(n=>({name:n.entryTitle,role:n.role,thumbnail:{src:n.profileImage?.asset.sys.uri?`${n?.profileImage?.asset?.sys?.uri}?q=90&w=340&h=340&f=webp`:null,alt:n.profileImage?.altText??"No alt text provided"},email:n.contactDetails.email??void 0,bio:null})),nt=e=>e?{title:e.entryTitle,email:e.contactDetails.email??null,phoneNumber:e.contactDetails.telephone??null}:null,se=e=>({authorTwitterHandle:"worcester_uni",description:e?.metaInformation?.description??e.entryDescription??null,locale:"en_GB",ogDescription:e?.metaInformation?.description??e.entryDescription??null,ogImage:e?.metaInformation?.image?.asset.sys.uri??e.image?.asset.sys.uri??e.thumbnail?.asset.sys.uri??null,ogImageAltText:e?.metaInformation?.image?.altText??e.image?.altText,ogType:"website",pageTitle:e?.metaInformation?.title??e.entryTitle,rssFeedPath:"",twitterCardType:"summary",noIndex:e?.metaInformation?.noIndex??!1,noFollow:e?.metaInformation?.noFollow??!1}),Vt=e=>!e.fAQ||e.fAQ.length<=0?{...se(e),schema:{"@context":"https://schema.org","@graph":[ot()]}}:{...se(e),schema:{"@context":"https://schema.org","@graph":[ot(),Wt(e)]}},ot=()=>({"@type":"CollegeOrUniversity",name:"ºÚÁÏÍø",url:"/",sameAs:["https://www.facebook.com/UniversityOfWorcester","https://www.instagram.com/worcester_uni","https://x.com/worcester_uni","https://www.youtube.com/user/universityworcester"],address:{"@type":"PostalAddress",addressLocality:"Worcestershire",addressRegion:"Worcester",postalCode:"WR2 6AJ",streetAddress:"Henwick Grove",addressCountry:"GB"}}),Wt=e=>!e.fAQ||e.fAQ.length<=0?null:{"@type":"FAQPage",mainEntity:e.fAQ?.map(l=>{const i=l.title,m=l.content;return{"@type":"Question",name:i,text:m}})},Jt=e=>{const n=e?.instance&&e?.instance[0],{ucasTariffPoints:l,ucasTariffPointsUpper:i,entryRequirements:m}=e,{ucasTariffPoints:r,ucasTariffPointsUpper:f,entryRequirements:L}=n,E=Le(r??l,f??i),F=(L&&L.length>0?L:m)||[];return{ucasPoints:E??void 0,requirements:F.length>0?F.map(P=>!P.grade||!P.qualification?null:{grade:P.grade,qualification:P.qualification}):null}};var $=o(2621);const lt=(e,n)=>!e||e.length<=0?null:e.map(l=>({position:l.positionControl.position,video:{src:l.courseVideo.youtubeURL??void 0,title:l.courseVideo.title??void 0,videoTheme:ie(n)??"lightGold",format:l.courseVideo.youtubeURL?.includes("youtube")?"youtube":"vimeo"}})),it=(e,n)=>!e||e.length<=0?null:e.map(l=>{const i=l.courseGallery.images[0]?.asset?.sys?.id||Date.now();return{position:l.positionControl.position,gallery:{id:`gallery-${i}`,title:l.courseGallery.title??void 0,content:l.courseGallery.images.map(m=>(0,$.J)({image:m})),galleryTheme:ie(n)??"lightGold",type:"image"}}}),at=e=>!e||e.length<=0?null:e.map(n=>({position:n.positionControl.position,quote:{author:n.quote?.entryTitle??"",quote:n.quote?.text??void 0,reference:n.quote?.entryTitle??"",quoteTheme:"gold"}})),st=e=>!e||!e.caseStudies||e.caseStudies.length===0?null:{position:e.positionControl?.position??"Teaching and assessment",caseStudies:{caseStudiesIntroduction:e.caseStudiesIntroduction??null,caseStudies:pe(e.caseStudies,"profile",e.caseStudiesSliderTheme)}},rt=(e,n)=>{const l=e.secondaryCTA&&e.secondaryCTA.sys.contentTypeId===d.f.externalForm,i=n?.config?.courses?.secondaryCTA&&n?.config?.courses?.secondaryCTA.sys.contentTypeId===d.f.externalForm;return e&&l?{title:e.secondaryCTA.title,formUrl:e.secondaryCTA.formURL}:!l&&n&&i?{title:n?.config?.courses?.secondaryCTA?.entryTitle,formUrl:n?.config?.courses?.secondaryCTA?.formURL}:null},Qt=[{children:"Overview",path:"#overview"},{children:"Course content",path:"#course-content"},{children:"Careers",path:"#careers"},{children:"Highlights",path:"#highlights"},{children:"Teaching and assessment",path:"#teaching-and-assessment"},{children:"Entry requirements",path:"#entry-requirements"},{children:"Fees",path:"#fees"},{children:"Contact",path:"#contact"}],ct=e=>{const n=l=>l.some(i=>i?.find(m=>m?.type==="_heading"&&m.properties?.level===2&&m.properties?.id));return n(e)?{custom:n(e),links:e.map(l=>{if(l){const i=l.find(m=>m.type==="_heading"&&m.properties?.level===2&&m.properties?.id);return i?{children:i.value?.[0]?.value??i.value,path:i.value?.[0]?.properties?.link.sys.uri?`#${i.value?.[0]?.properties?.link.sys.uri}`:i.properties?.id?`#${i.properties?.id}`:void 0}:{children:void 0,path:void 0}}else return{children:void 0,path:void 0}}).filter(l=>l.path!==void 0)}:{custom:!1,links:Qt}};var Xt=o(78915);const ut=e=>!e||e.length<=0?null:{id:`event-slider-${e[0].sys.id}`,content:e.map(n=>{const{title:l,date:i,location:m,summary:r,eventLink:f,time:L,sys:E}=n;return{title:l??null,url:E.uri??null,date:i.to?(0,ee.Yq)(i.to,"MMMM d yyyy"):null,location:m??null,summary:r??null,time:L??null,link:f?{label:f.linkText??"Book your place",path:f.linkPath??null}:null}})},ke=(e,n,l=!1)=>l?Array.isArray(e)&&e.length>0&&e[0]?.value?.length!==0?e:n??null:e??n??null,dt=e=>{if(!e)return null;const n=[],l=typeof e.ukFee=="number"||e.ukFeeTBC===!0,i=e.description&&Array.isArray(e.description)&&e.description.length>0&&e.description[0]?.value!==null&&!(Array.isArray(e.description[0]?.value)&&e.description[0].value.length===0);(l||i)&&n.push({description:e.description??null,fee:typeof e.ukFee=="number"?e.ukFee:e.ukFeeTBC===!0?"TBC":null,hideOrb:e.hideOrb??!1});const m=typeof e.overseasFee=="number"||e.overseasFeeTBC===!0,r=e.overseasDescription&&Array.isArray(e.overseasDescription)&&e.overseasDescription.length>0&&e.overseasDescription[0]?.value!==null&&!(Array.isArray(e.overseasDescription[0]?.value)&&e.overseasDescription[0].value.length===0);return(m||r)&&n.push({description:e.overseasDescription??null,fee:typeof e.overseasFee=="number"?e.overseasFee:e.overseasFeeTBC===!0?"TBC":null,hideOrb:e.hideOrb??!1}),n.length>0?n:null},mt=(e,n)=>{try{we.safeParse(e);const l=n??e.state,i=e?.instance&&e?.instance[0],m=i.intakes[0],r=i?Qe(i.intakes[0]):void 0,f=(b,Y)=>!b&&!Y?null:Y&&(0,Xt.R)(Y)?Y??b:b,E=(b=>{const Y=[],_=new Set;return b.instance.forEach(fe=>{fe.intakes.forEach(Pe=>{[{id:b.discoverUniID??null,title:b.courseTitle},{id:fe.discoverUniIDOverride??null,title:`${b.courseTitle} ${fe.academicYear?.entryTitle}`},{id:Pe.discoverUniID??null,title:`${b.courseTitle} ${fe.academicYear?.entryTitle} - ${Pe.studyMode?.entryTitle}`,mode:Pe.studyMode?.entryTitle==="Part-time"?"PartTime":"FullTime"}].forEach(Re=>{_.has(Re.id)||(_.add(Re.id),Y.push(Re))})})}),Y})(e),F=[e.overview,i.structureIntroduction,e.careers,i.teachingAndAssessmentIntroduction,i.howToApply],P=i?.videosOverride&&i.videosOverride.length>0?i.videosOverride:e.video,H=P?lt(P,e.videoTheme):null,K=i?.imageGalleryOverride&&i.imageGalleryOverride.length>0?i.imageGalleryOverride:e.imageGallery,O=K?it(K,e.imageGalleryTheme):null,G=e.quote?at(e.quote):null,w=i?.caseStudiesOverride&&i.caseStudiesOverride.length>0?i.caseStudiesOverride:e.caseStudies,j=st({positionControl:e.positionControl,caseStudiesIntroduction:e.caseStudiesIntroduction,caseStudies:w,caseStudiesSliderTheme:e.caseStudiesSliderTheme});return{cpdCourse:!1,status:"success",optionId:r,metadata:Vt(e),hero:Pt(e,l),keyFacts:$t(e,l),modalContent:rt(e,l),navigation:ct(F),introduction:{summary:i.summaryOverride??e.summary??null,statistics:Je(e.statistics),accrediations:Ye(e.accreditations),accreditationContent:e.accreditation??null},overview:{overview:ke(i?.overviewOverride,e.overview,!0),placements:ke(i?.placementsOverride,e.placements,!0),video:H?.find(b=>b.position==="Overview")??null,gallery:O?.find(b=>b.position==="Overview")??null,quote:G?.find(b=>b.position==="Overview")??null,caseStudy:j?.position==="Overview"?j:null},courseContent:{content:i?.structureIntroduction??null,modules:Ht(i.yearStructure)},contactCTA:e.contactCTA?{label:e.contactCTALabel??null,buttonTheme:"secondary",link:"uRL"in e.contactCTA?e.contactCTA.uRL:null,modal:"formURL"in e.contactCTA?{title:e.contactCTA.entryTitle??null,formUrl:e.contactCTA.formURL??null}:null}:null,careers:{careers:ke(i?.careersOverride,e.careers,!0),video:H?.find(b=>b.position==="Careers")??null,gallery:O?.find(b=>b.position==="Careers")??null,quote:G?.find(b=>b.position==="Careers")??null,caseStudy:j?.position==="Careers"?j:null},teaching:{teachingIntroduction:i?.teachingAndAssessmentIntroduction??null,staffIntroduction:e.staffIntroduction??null,staffMembers:i?.staffOverride&&i.staffOverride.length>0?pe(i.staffOverride,"profile",e.staffSliderTheme):e.staff?pe(e.staff,"profile",e.staffSliderTheme):null,teachingTabs:{title:"Teaching and assessment contents",content:i.teachingAndAssessment??void 0},video:H?.find(b=>b.position==="Teaching and assessment")??null,gallery:O?.find(b=>b.position==="Teaching and assessment")??null,quote:G?.find(b=>b.position==="Teaching and assessment")??null,caseStudy:j?.position==="Teaching and assessment"?j:null},highlights:Ve(i?.highlightsOverride&&i.highlightsOverride.length>0?i.highlightsOverride:e.highlights,e.highlightsTheme),entryRequirements:{requirements:Jt(e),additionalRequirements:Array.isArray(i.additionalRequirements)&&i.additionalRequirements.length===1&&i.additionalRequirements[0]?.value?.length===0?e.additionalRequirements??null:i.additionalRequirements??e.additionalRequirements??null,anyQuestions:i.anyQuestions?.content??e.anyQuestions?.content??null},moreToExplore:{exploreCards:i.moreToExploreOverride&&i.moreToExploreOverride.length>0?_e(i.moreToExploreOverride):l.config.courses.moreToExplore?_e(l.config?.courses?.moreToExplore):null,video:H?.find(b=>b.position==="More to explore")??null,gallery:O?.find(b=>b.position==="More to explore")??null,quote:G?.find(b=>b.position==="More to explore")??null,caseStudy:j?.position==="More to explore"?j:null},fees:{fees:dt(i?.fee),ptFee:dt(i?.ptFee),additionalFees:f(l.config?.courses.additionalCosts,i.additionalCostsOverride),accomodationFees:e.hideAccommodationFeesTab===!1?f(l.config?.courses.accommodationFees,i.accommodationFeesOverride):null,feesTabs:i.feesTabs,video:H?.find(b=>b.position==="Fees")??null,gallery:O?.find(b=>b.position==="Fees")??null,quote:G?.find(b=>b.position==="Fees")??null,caseStudy:j?.position==="Fees"?j:null},howToApply:{howToApply:i?.howToApply??null,howToApplyTitle:i?.howToApplyTitleOverride??"How to apply",additionalInformationTitle:i?.additionalApplicationTitleOverride??"Additional information",additionalApplicationInformation:i?.additionalApplicationInformation??null,applyNowUrl:m?.applicationURL??null,hideApplyNowButton:i?.hideApplyNowButton??!1},staffContact:e.courseContactDetails&&e.courseContactDetails.length>0?tt(e.courseContactDetails):null,uniContact:e.contactDetails?nt(e.contactDetails):null,faqs:(0,We.U)(e.fAQ),unistats:E,relatedCourses:et(e.relatedCourses),clearingAvailable:i?.availableThroughClearing??!1,events:e.events?ut(e.events):null,hideCourseMessage:e.hideCourseMessage??!1,promoMessage:i?.promoMessage||i?.promoMessageTitle?{title:i.promoMessageTitle??null,message:i.promoMessage??null}:null,liveChat:e.liveChat??!1}}catch(l){const i=l instanceof t.G?(0,N.yu)(l):l;return(0,N.DG)(i)?{status:"error",error:i,entryTitle:e.entryTitle,entryId:e.sys.id}:{status:"error",entryTitle:e.entryTitle,entryId:e.sys.id}}},Zt=(e,n)=>{try{we.safeParse(e);const l=n??e.state,i=[e.overview,e.careers,e.teachingAndAssessment,e.additionalRequirements],m=e.video?lt(e.video,e.videoTheme):null,r=e.imageGallery?it(e.imageGallery,e.imageGalleryTheme):null,f=e.quote?at(e.quote):null,L=st({positionControl:e.positionControl,caseStudiesIntroduction:e.caseStudiesIntroduction,caseStudies:e.caseStudies,caseStudiesSliderTheme:e.caseStudiesSliderTheme});return{cpdCourse:!0,status:"success",metadata:se(e),hero:Rt(e,l),keyFacts:Gt(e,l),modalContent:rt(e,l),navigation:ct(i),introduction:{summary:e.summary??null,statistics:Je(e.statistics),accrediations:Ye(e.accreditations),accreditationContent:e.accreditation??null},overview:{overview:e.overview??null,placements:e.placements??null,video:m?.find(E=>E.position==="Overview")??null,gallery:r?.find(E=>E.position==="Overview")??null,quote:f?.find(E=>E.position==="Overview")??null,caseStudy:L?.position==="Overview"?L:null},careers:{careers:e.careers??null,video:m?.find(E=>E.position==="Careers")??null,gallery:r?.find(E=>E.position==="Careers")??null,quote:f?.find(E=>E.position==="Careers")??null,caseStudy:L?.position==="Careers"?L:null},teaching:{teachingIntroduction:e.teachingAndAssessment??null,staffIntroduction:e.staffIntroduction??null,staffMembers:e.staff?pe(e.staff,"profile",e.staffSliderTheme):null,video:m?.find(E=>E.position==="Teaching and assessment")??null,gallery:r?.find(E=>E.position==="Teaching and assessment")??null,quote:f?.find(E=>E.position==="Teaching and assessment")??null,caseStudy:L?.position==="Teaching and assessment"?L:null},highlights:Ve(e.highlights,e.highlightsTheme),entryRequirements:{additionalRequirements:e.additionalRequirements??null,anyQuestions:e.anyQuestions?.content??null},staffContact:e.courseContactDetails&&e.courseContactDetails.length>0?tt(e.courseContactDetails):null,uniContact:e.contactDetails?nt(e.contactDetails):null,faqs:(0,We.U)(e.fAQ),relatedCourses:et(e.relatedCourses),relatedCourseTitle:"Similar modules to consider",events:e.events?ut(e.events):null,hideCourseMessage:e.hideCourseMessage??!1}}catch(l){const i=l instanceof t.G?(0,N.yu)(l):l;return(0,N.DG)(i)?{status:"error",error:i,entryTitle:e.entryTitle,entryId:e.sys.id}:{status:"error",entryTitle:e.entryTitle,entryId:e.sys.id}}},qt=e=>({metadata:se(e),status:"success",hero:Nt(e),keyFacts:Kt(e),content:e.content??null,contactInformation:e.contactInformation??null,id:e.sys.id,categoryId:e.category?.[0]?.sys.id??null}),_t=e=>e.sys.contentTypeId===d.f.externalLink?!e.label||!e.uRL?null:{label:e.label,url:e.uRL}:!e.entryTitle||!e.sys.uri?null:{label:e.entryTitle,url:e.sys.uri},en=e=>e.bannerImage?{title:e.title??null,description:null,awards:[],tags:[],image:{src:e.bannerImage.asset.sys.uri??null,alt:e.bannerImage.altText??""},applicationCTA:{label:"",buttonTheme:"primary"},hideApplyNow:!0,secondaryCTA:null,id:e.sys.id,setId:n=>n}:null,tn=e=>({metadata:{authorTwitterHandle:"worcester_uni",description:e?.metaInformation?.description??e.entryDescription??null,locale:"en_GB",ogDescription:e?.metaInformation?.description??e.entryDescription??null,ogImage:e?.metaInformation?.image?.asset.sys.uri??null,ogImageAltText:e?.metaInformation?.image?.altText??null,ogType:"website",pageTitle:e?.metaInformation?.title??e.entryTitle,rssFeedPath:"",twitterCardType:"summary",noIndex:e?.metaInformation?.noIndex??!1,noFollow:e?.metaInformation?.noFollow??!1},hero:en(e),title:e.title??null,content:e.content??null,iframeUrl:e.form?.iframeUrl??"",gaEventName:e.form?.gaEventName??null,fallbackHeight:e.form?.fallbackHeight??1600,relatedLinks:(e.relatedLinks??[]).map(_t).filter(n=>n!==null)}),nn=e=>({title:e?.title??null,subTitle:e.subTitle??null,image:e?.image?(0,$.J)({image:e?.image,height:1440,width:2560}):null,secondImage:e?.secondImage?(0,$.J)({image:e?.secondImage,height:1440,width:2560}):null,callToAction:e?.callToAction&&e.callToAction.url&&e.callToAction?.buttonLabel?{label:e.callToAction?.buttonLabel,url:e.callToAction?.url}:null,imageMobile:e?.imageMobile?(0,$.J)({image:e?.imageMobile,width:720,height:1280}):null,secondImageMobile:e?.secondImageMobile?(0,$.J)({image:e?.secondImageMobile,width:720,height:1280}):null});var on=o(83692);const ln={text:"."},to=e=>({text:e}),an=e=>{if(!e)return"";const n=new Date(e),l=n.getDate(),i=n.toLocaleString("en-GB",{weekday:"long"}),m=n.toLocaleString("en-GB",{month:"long"}),r=n.getFullYear(),f=sn(l);return`${i} ${l}${f} ${m} ${r}`},sn=e=>[1,21,31].includes(e)?"st":[2,22].includes(e)?"nd":[3,23].includes(e)?"rd":"th",rn=e=>!e||e.length===0?[]:e.map(n=>({label:n?.label??void 0,buttonLabel:n?.buttonLabel??"Learn More",event:n?.event?{date:n.event.date.from?an(n.event.date.from):void 0,time:n.event.time??void 0,eventLink:n.event.eventLink&&typeof n.event.eventLink.linkPath=="string"?{linkPath:n.event.eventLink.linkPath}:null}:void 0})),cn=e=>{const n=rn(e?.events??[]),l=n.length===1?[...n,{buttonLabel:"View all Open Days",event:{date:"We have opportunities to visit all year round",eventLink:{linkPath:"/study/open-days/home.aspx"}},index:2}]:n;return{title:e?.title??null,subtitle:e?.subtitle??null,description:e?.description??null,image:e?.image?(0,$.J)({image:e.image}):null,featuredTitle:e?.featuredTitle??null,events:l}};var un=o(60554),Me=o(72056);const dn=e=>!e||e.length===0?null:e.map(n=>({statistic:n.statistic,statContext:n.statContext??null,statInfo:n.statisticLead??null,source:n.source??null,fullStatContext:n.fullStatContext??null,fullStatSource:n.fullStatSource??null,fullStatDate:n.fullStatDate?(0,ee.Yq)(n.fullStatDate,"dd MMMM yyyy"):"",className:n?.className??"",inView:n?.inView??"",plusStatistic:n?.plusStatistic??!1})),mn=e=>({title:e.title??null,subtitle:e.subtitle??null,description:e.description??null,image:e?.image?(0,$.J)({image:e?.image}):null,button:e.button??null,statistics:dn(e?.statistics)}),pn=e=>({quoteCards:e.quoteCard.map(n=>({image:n.image?(0,$.J)({image:n.image}):null,quote:{text:n.quote.text,source:n.quote.source||null,title:n.quote.title||null}})),title:e.title?e.title:"Quotes"}),hn=e=>({_type:"cardCarousel",title:e.title??null,description:e.description??null,cards:e.cardEntry?e.cardEntry.map(n=>({image:n.image?(0,$.J)({image:n.image,width:900,height:900}):null,title:n?.entry?.title??n.title??void 0,description:n?.entry?.description??n.description??void 0,link:n.entry?.url?.sys?.uri??n.entry?.sys?.uri??n.uRL??n.sys?.uri??null})):null}),gn=e=>({_type:"alert",title:e?.title??null,alert:e?.content??null}),fn={featureEvents:cn,videoSection:un.X,textBlock:ln,latestNewsAndEvents:Me.I,latestNews:Me.I,latestEvents:Me.I,statSectionWithImage:mn,quoteBanner:pn,cardCarousel:hn,alert:gn},Tn=e=>({metadata:se(e),title:e.title??"",heroBanner:e.heroBanner?nn(e?.heroBanner):void 0,composer:e.composer?{items:(0,on.mapComposer)(e?.composer,fn)}:void 0,status:"success"}),oo={title:"entryTitle",description:"description"},vn=e=>({title:e.title||e.entryTitle}),yn=e=>{const n=e.openDayItems||[],l=n.map(r=>({id:r.courseArea?.sys?.id,name:r.title??r.courseArea?.title,description:r.courseArea?.description,arrivalLocation:r.courseArea?.arrivalLocation?.name})),i=new Map;n.forEach(r=>{const f=r.title??r.courseArea?.title,L=r.courseArea?.sys?.id,E=r.courseTalks||[],F=r.additionalInfoPopup||null,P=r.arrivalLocation?.name||null;i.has(f)||i.set(f,{courseAreaTitle:f,courseAreaId:L,additionalInfo:F,arrivalLocation:P,courses:[]});const H=i.get(f);E.forEach(K=>{H.courses.push({courseTitle:K.title||K.course?.title,arrivalLocation:K.arrivalLocation?.name,cardTheme:"lightBlue",additionalInfo:K.additionalInfoPopup||null,id:K.course?.sys?.id,talks:(K.talks||[]).filter(O=>O&&O.eventType).map(O=>({title:O.title,id:O?.sys?.id,eventType:O.eventType,time:{start:O.startTime??"TBA",end:O.endTime??"TBA"},description:O.entryDescription||O.description,location:{roomName:O.roomInfo?.name??void 0,floor:O.roomInfo?.floor??void 0,roomCode:O.roomInfo?.code??void 0},additionalInfo:O.additionalInfoPopup||null}))})})});const m=Array.from(i.values());return{id:e?.sys?.id,title:e.title,description:e.description??null,status:"success",openDayType:e.openDayType||"Default",defaultArrivalLocation:e.arrivalLocation?.name??null,date:e.dateAndTime?(0,ee.Yq)(e.dateAndTime,"dddd, d MMMM yyyy"):void 0,tabSections:{courseAreas:l,schedule:m},heroImage:e.bannerImage?(0,$.J)({image:e.bannerImage,width:1200,height:600}):void 0,welcomeMessage:e.welcomeMessageOverride??null,adviceHub:{canvas:e.adviceHubInfo??void 0,additionalInfo:e.adviceHubAdditionalInfoPopup??void 0,adviceHubTalks:e.adviceHubTalks?e.adviceHubTalks.map(r=>({title:r?.title||"Untitled",id:r?.sys?.id??void 0,description:r?.description??void 0,time:{start:r?.startTime||"TBA",end:r?.endTime||"TBA"},location:{roomName:r?.location?.name??void 0,floor:r?.optionalStartingPoint??void 0,roomCode:void 0},cardTheme:"lightBlue"})):void 0},accommodation:{overview:e.accommodationTextOverview??void 0,videoSection:{title:e.videoSection?.title??void 0,description:e.videoSection?.description??void 0,video:{src:e.videoSection?.videoComponent?.youTubeUrl??void 0,videoTheme:"darkBlue",posterImage:e.videoSection?.overlayImage?(0,$.J)({image:e.videoSection.overlayImage}):null}},ctaCard:{content:e.accommodationCallToActionDescription??void 0,button:e.accommodationCallToAction?.url?{label:e.accommodationCallToAction?.buttonLabel??void 0,link:e.accommodationCallToAction?.url??void 0}:void 0},talks:e.accommodationTalks?e.accommodationTalks.map(r=>({ctaButton:r.callToAction?.url?{label:r.callToAction?.buttonLabel??void 0,link:r.callToAction?.url??void 0}:void 0,title:r?.title||"Untitled",id:r?.sys?.id??void 0,time:{start:r?.startTime||"TBA",end:r?.endTime||"TBA"},description:r?.description??void 0,location:{roomName:r?.location?.name??void 0,floor:r?.optionalStartingPoint??void 0,roomCode:void 0},hideAdd:Boolean(r.callToAction?.buttonLabel&&r.callToAction?.url)})):void 0,additionalInfo:e.accommodationAdditionalInfoPopup??void 0},studentLife:{overview:e.studentLifeTextOverview??void 0,additionalInfo:e.studentLifeAdditionalInfoPopup??void 0,studentTalks:e.studentLifeTalks?e.studentLifeTalks.map(r=>({title:r?.title||"Untitled",id:r?.sys?.id||"",description:r?.description??void 0,time:{start:r?.startTime||"TBA",end:r?.endTime||"TBA"},location:{roomName:r?.location?.name??void 0,floor:r?.optionalStartingPoint??void 0,roomCode:void 0},cardTheme:"lightBlue"})):void 0}}},bn=async()=>{const{reducer:e,sagas:n}=await Promise.all([o.e(336),o.e(532)]).then(o.bind(o,64336)),{searchConfig:l}=await o.e(21).then(o.bind(o,68373));return{key:"search",reducer:e(l),saga:n}},te=e=>(n,l)=>{const i={node:n,...n.entry||{},state:l};return e(i)},Cn=[{contentTypeID:d.f.course,component:I,entryMapper:te(mt),fields:[...new Set(h.tQ)],linkDepth:3},{contentTypeID:d.f.event,component:y,entryMapper:te(qt),fields:[...new Set(h.ef)],linkDepth:3},{contentTypeID:d.f.courseCpd,component:I,entryMapper:te(Zt),fields:[...new Set(h.tQ)],linkDepth:3},{contentTypeID:d.f.eventListing,component:x,entryMapper:te(vn),fields:[...new Set(h.Xn)],linkDepth:3,injectRedux:bn},{contentTypeID:d.f.openDayProgramme,component:S,entryMapper:te(yn),fields:[...new Set(h.cj)],linkDepth:5},{contentTypeID:d.f.home,component:c,entryMapper:te(Tn),fields:[...new Set(h.Zf)],linkDepth:3},{contentTypeID:d.f.formPage,component:g,entryMapper:te(tn),linkDepth:1}];var a=o(48322),In=o(67115),An=o(669);const En=()=>a.createElement(xn,null,a.createElement("form",{method:"post",action:""},a.createElement("div",{id:"JavascriptWarning",className:"warningmessage",style:{display:"none"}},"Javascript must be enabled in order to complete this form"),a.createElement("span",{className:"webformlabel"},"First Name"),a.createElement("input",{className:"webforminput",name:"C1IFirstName",type:"text"}),a.createElement("br",null),a.createElement("span",{className:"webformlabel"},"Last Name"),a.createElement("input",{className:"webforminput",name:"C0ILastName",type:"text"}),a.createElement("br",null),a.createElement("span",{className:"webformlabel"},"Address Line 1"),a.createElement("input",{className:"webforminput",name:"C2IAddressLine1",type:"text"}),a.createElement("br",null),a.createElement("span",{className:"webformlabel"},"Address Line 2"),a.createElement("input",{className:"webforminput",name:"C3IAddressLine2",type:"text"}),a.createElement("br",null),a.createElement("span",{className:"webformlabel"},"Town/City"),a.createElement("input",{className:"webforminput",name:"C4ICity",type:"text"}),a.createElement("br",null),a.createElement("span",{className:"webformlabel"},"Postcode"),a.createElement("input",{className:"webforminput",name:"C5IZipCode",type:"text"}),a.createElement("br",null),a.createElement("span",{className:"webformlabel"},"Email Address"),a.createElement("input",{className:"webforminput",name:"U6I58850",type:"email"}),a.createElement("br",null),a.createElement("span",{className:"webformlabel"},"Mobile number"),a.createElement("input",{className:"webforminput",name:"C7IPhone1",type:"tel"}),a.createElement("br",null),a.createElement("span",{className:"webformlabel"},"Area of Interest"),a.createElement("select",{className:"webformselect",name:"U8I103"},a.createElement("option",null,"Accounting"),a.createElement("option",null,"Archaeology"),a.createElement("option",{value:"Art Design and Digital Media"},"Art, Design and Digital Media"),a.createElement("option",{value:"Biochemistry Biomedical Science and Biological Sciences"},"Biochemistry, Biomedical Science and Biological Sciences"),a.createElement("option",null,"Business"),a.createElement("option",null,"Computing"),a.createElement("option",null,"Counselling"),a.createElement("option",null,"Criminology"),a.createElement("option",null,"Dance"),a.createElement("option",null,"Drama"),a.createElement("option",null,"Early Childhood and Education"),a.createElement("option",{value:"English Literature Language and Creative Writing"},"English Literature, Language and Creative Writing"),a.createElement("option",null,"Environmental Science"),a.createElement("option",null,"Film and Screenwriting"),a.createElement("option",null,"Geography"),a.createElement("option",null,"Health and Social Care"),a.createElement("option",null,"History"),a.createElement("option",null,"Human Nutrition"),a.createElement("option",null,"Journalism"),a.createElement("option",null,"Law"),a.createElement("option",null,"Marketing"),a.createElement("option",null,"Maths"),a.createElement("option",null,"Media and Culture"),a.createElement("option",null,"Midwifery"),a.createElement("option",null,"Nursing"),a.createElement("option",null,"Occupational Therapy"),a.createElement("option",null,"Paramedic Science"),a.createElement("option",null,"Pharmacology"),a.createElement("option",null,"Physiotherapy"),a.createElement("option",null,"Politics"),a.createElement("option",null,"Psychology"),a.createElement("option",null,"Social Work"),a.createElement("option",null,"Sociology"),a.createElement("option",null,"Sports and Physical Education"),a.createElement("option",null,"Sports Therapy"),a.createElement("option",null,"Teacher Training")),a.createElement("br",null),a.createElement("p",{style:{textAlign:"center",padding:"0px 30px 0px 0px"}},a.createElement("a",{href:"/study/open-days/Course-area.aspx",target:"_blank"},"Don't see your course listed?")),a.createElement("span",{className:"webformlabel"},"If you are currently studying, what best describes your level of study?"),a.createElement("select",{className:"webformselect",name:"U15I301"},a.createElement("option",{value:""},"- Please select option -"),a.createElement("option",null,"Year 11"),a.createElement("option",{value:"Year 12"},"Year 12/1st Yr College"),a.createElement("option",{value:"Year 13"},"Year 13/2nd Yr College"),a.createElement("option",null,"Access"),a.createElement("option",null,"Undergraduate"),a.createElement("option",null,"Other")),a.createElement("br",null),a.createElement("br",null),a.createElement("br",null),a.createElement("br",null),a.createElement("span",{className:"webformlabel"},"What best describes your qualifications?"),a.createElement("select",{className:"webformselect",name:"U16I302"},a.createElement("option",{value:""},"- Please select option -"),a.createElement("option",null,"A level"),a.createElement("option",null,"BTEC"),a.createElement("option",null,"Other")),a.createElement("br",null),a.createElement("span",{className:"webformlabel"},"I am looking to start in"),a.createElement("select",{className:"webformselect",name:"U9I13"},a.createElement("option",{value:""},"- Please select option -"),a.createElement("option",null,"2021"),a.createElement("option",null,"2020"),a.createElement("option",null,"2019")),a.createElement("br",null),a.createElement("span",{className:"webformlabel"},"Which date would you like to attend?"),a.createElement("select",{className:"webformselect",name:"U10I17"},a.createElement("option",{value:""},"- Please select date -"),a.createElement("option",null,"Sunday 30 June 2019"),a.createElement("option",null,"Sunday 8 September 2019"),a.createElement("option",null,"Saturday 28 September 2019"),a.createElement("option",null,"Saturday 2 November 2019"),a.createElement("option",null,"Sunday 1 December 2019")),a.createElement("br",null),a.createElement("span",{className:"webformlabel"},"Lead source"),a.createElement("input",{name:"U11I57997",type:"hidden",value:"GA Event"}),a.createElement("span",{className:"webformlabel"},"Phone 1 Description"),a.createElement("input",{name:"C12IPhone1Description",type:"hidden",value:"Mob"}),a.createElement("span",{className:"webformlabel"},"Date booking recieved"),a.createElement("input",{name:"U13I57",type:"hidden",value:"2024-05-15"}),a.createElement("br",null),a.createElement("span",{className:"webformlabel"},"We'd like to get in touch to tell you more about our courses and life at the University"),a.createElement("select",{className:"webformselect",name:"U14I107"},a.createElement("option",{value:""},"- Please select preference -"),a.createElement("option",{value:"Yes"},"Yes, I'm happy for you to contact me"),a.createElement("option",{value:"No"},"No, I don't want to receive further information")),a.createElement("br",null)," ",a.createElement("br",null),a.createElement("br",null),a.createElement("br",null),a.createElement("div",{id:"MandatoryWarning",className:"warningmessage",style:{display:"none"}},"All fields marked with a * must have a value in order to complete this form"),a.createElement("div",{id:"FormatWarning",className:"warningmessage",style:{display:"none"}}),a.createElement("input",{className:"submitbutton",type:"submit",id:"SubmitButton",value:"Book your place"}),a.createElement("fieldset",null,a.createElement("legend",null,a.createElement("span",{className:"webformlabel2"},"Address Lookup")),a.createElement("div",{className:"afd-typeahead-container"},a.createElement("div",{className:"afd-typeahead-field"},a.createElement("div",{className:"afd-typeahead-query"},a.createElement("label",{htmlFor:"add-search",className:"form-label"},"Address Search"),a.createElement("input",{autoComplete:"off",type:"search",id:"add-search","data-afd-control":"typeahead"}))),a.createElement("div",{className:"afd-search-again",style:{display:"none"}},"Search Again"),a.createElement("div",{className:"afd-manual-input-button",style:{display:"none"}},"Manual Input"),a.createElement("div",{className:"afd-manual-input-search-button",style:{display:"none"}},"Address Search")),a.createElement("div",null,a.createElement("p",{id:"toggleaddress"},"Enter address manually"))),a.createElement("div",null,a.createElement("span",{className:"webformlabel"},"Would you like to receive a University Prospectus?"),a.createElement("input",{id:"prospectusYes",name:"U16I441",type:"checkbox",value:"Yes"}),a.createElement("label",{className:"form__checkboxLabel",htmlFor:"prospectusYes"},"Yes, please send me a prospectus"),a.createElement("br",null),a.createElement("br",null),a.createElement("br",null)),a.createElement("fieldset",null,a.createElement("legend",{className:"webformlegend"},"I am looking to start University in *"),a.createElement("input",{type:"radio",id:"2024",name:"U7I13",value:"2024",className:"radio"}),a.createElement("label",{htmlFor:"2024",className:"form__checkboxLabel"},"2024"),a.createElement("br",null),a.createElement("input",{type:"radio",id:"2025",name:"U7I13",value:"2025",className:"radio"}),a.createElement("label",{htmlFor:"2025",className:"form__checkboxLabel"},"2025"),a.createElement("br",null)))),xn=In.Ay.div` ${An.l}; `,Sn=En,ao={title:"entryTitle",description:"description"},On=[{path:"/test-form",component:Sn},{path:"/404",component:p},{path:"/zenInfo",ssrOnly:!0,component:k}];var he=o(72972),ne=o(39966);const zn={isReady:!1,isError:!1,error:null,title:null,header:null,courses:{secondaryCTA:null,accommodationFees:null,additionalCosts:null,moreToExplore:null},socialMedia:[],footer:null,footerNew:null,fallbackImage:void 0,courseFallbackImage:void 0,clearing:!1,clearingCta:null,cookies:!1,courseMessage:{title:null,message:null},cardFallbackImage:void 0},wn=(0,he.jM)((e,n)=>{switch(n.type){case ne.YK:{e.title=n.config.title,e.header=n.config.header,e.courses=n.config.courses,e.socialMedia=n.config.socialMedia,e.fallbackImage=n.config.fallbackImage,e.courseFallbackImage=n.config.courseFallbackImage,e.footer=n.config.footer,e.footerNew=n.config.footerNew,e.clearing=n.config.clearing,e.clearingCta=n.config.clearingCta,e.courseMessage=n.config.courseMessage,e.cardFallbackImage=n.config.cardFallbackImage,e.isReady=!0,e.isError=!1,e.error=null;return}case ne.ux:{e.cookies=!0;return}case ne.xT:{e.isError=!0,e.error=n.error;return}default:return e}},zn);var oe=o(25466);const Ln={isReady:!1,isError:!1,error:null,options:[],courseOptions:{},selectedOption:{},selectedOptionId:"",selectedCourseOptions:{}},kn=(0,he.jM)((e,n)=>{switch(n.type){case oe.Oj:{e.options=n.mappedOptions,e.courseOptions=n.courseOptions,e.selectedOptionId===""&&(e.selectedOptionId=n.mappedOptions[0].optionId??"");break}case oe.J9:{const l=n.id,i=e.options.find(r=>r.optionId===l),m=e.courseOptions.content?.options.find(r=>r.id===l);e.selectedOption=i??e?.options[0],e.selectedOptionId=l??e?.options[0]?.optionId,e.selectedCourseOptions=m??e.courseOptions;break}case oe.xM:{e.isError=!0,e.error=n.error;break}default:break}},Ln),ge="@OPEN_DAY_CONFIG/",Mn=`${ge}GET_OPEN_DAY_CONFIG`,pt=`${ge}SET_OPEN_DAY_CONFIG`,De=`${ge}GET_OPEN_DAY_CONFIG_ERROR`,Dn=`${ge}SET_OPEN_DAY_COOKIE_ACCEPTED`,Fn={isReady:!1,isError:!1,error:null,yourPicks:null,accommodation:null,campusMaps:null,campusTour:null,exploringTheCity:null,adviceHub:null,studentLife:null,allCourseAreas:null,travelToCampus:null,faqs:null,cookies:!1},Pn=(0,he.jM)((e,n)=>{switch(n.type){case pt:{e.yourPicks=n.config.yourPicks,e.accommodation=n.config.accommodation,e.campusMaps=n.config.campusMaps,e.campusTour=n.config.campusTour,e.exploringTheCity=n.config.exploringTheCity,e.adviceHub=n.config.adviceHub,e.travelToCampus=n.config.travelToCampus,e.studentLife=n.config.studentLife,e.allCourseAreas=n.config.allCourseAreas,e.faqs=n.config.faqs,e.isReady=!0,e.isError=!1,e.error=null;return}case Dn:{e.cookies=!0;return}case De:{e.isError=!0,e.error=n.error;return}default:return e}},Fn);var Z=o(46070);const ht="openDayUserPicks",Rn=(()=>{try{const e=localStorage.getItem(ht);if(e)return JSON.parse(e)}catch{}return{chosenCourses:[],chosenAccommodationTalks:[],chosenStudentLifeTalks:[],chosenCampusTourTalks:[],chosenAdviceHubTalks:[]}})();function q(e){try{localStorage.setItem(ht,JSON.stringify(e))}catch{}}const Nn=(0,he.jM)((e,n)=>{switch(n.type){case Z.T2:{e.chosenCourses=n.payload,q(e);return}case Z.PL:{const l=n.payload,i=e.chosenAccommodationTalks.indexOf(l);i>=0?e.chosenAccommodationTalks.splice(i,1):e.chosenAccommodationTalks.push(l),q(e);return}case Z.lT:{const l=n.payload,i=e.chosenStudentLifeTalks.indexOf(l);i>=0?e.chosenStudentLifeTalks.splice(i,1):e.chosenStudentLifeTalks.push(l),q(e);return}case Z.zz:{const l=n.payload,i=e.chosenCampusTourTalks.indexOf(l);i>=0?e.chosenCampusTourTalks.splice(i,1):e.chosenCampusTourTalks.push(l),q(e);return}case Z.TT:{const l=n.payload,i=e.chosenAdviceHubTalks.indexOf(l);i>=0?e.chosenAdviceHubTalks.splice(i,1):e.chosenAdviceHubTalks.push(l),q(e);return}case Z.Nk:{e.chosenAdviceHubTalks=e.chosenAdviceHubTalks.filter(l=>l!==n.payload),q(e);return}case Z.jH:{const{courseAreaId:l,courseTitle:i}=n.payload;e.chosenCourses=e.chosenCourses.filter(m=>!(m.courseAreaId===l&&m.courseTitle===i)),q(e);return}case Z.ZY:{e.chosenAccommodationTalks=e.chosenAccommodationTalks.filter(l=>l!==n.payload),q(e);return}case Z.tD:{e.chosenStudentLifeTalks=e.chosenStudentLifeTalks.filter(l=>l!==n.payload),q(e);return}case Z.PT:{e.chosenCampusTourTalks=e.chosenCampusTourTalks.filter(l=>l!==n.payload),q(e);return}default:return e}},Rn),Un={...{course:kn,config:wn,openDayConfig:Pn,openDayUserPicks:Nn}};var D=o(75953),X=o(18737),Fe=o(52546),gt=o(92301);const Bn=e=>!e||e.length<=0?{options:[]}:{options:e.map((l,i)=>({id:l.id??i.toString(),title:`${l.startDate?.entryTitle} - ${l.location?.entryTitle}`,intakeData:l}))},$n=[(0,D.jP)(oe.sj,ft)];function*ft({api:e}){const n=yield(0,D.Lt)();try{if(!(0,gt.K6)(n)){const l=n.routing.currentPath,i=yield(0,D.Lt)(Fe.rE.selectors.selectVersionStatus),m=new X.XK(X.Op.equalTo("sys.versionStatus",i),X.Op.equalTo("sys.contentTypeId",d.f.course),X.Op.equalTo("sys.uri",l));m.fields=[...new Set(h.tQ)];const f=(yield e.search(m,3))?.items?.[0];if(f){const E=(f?.instance.map(O=>O.intakes.map(G=>({...G,parentInstance:O}))).flat()).map(O=>{const{parentInstance:G,...w}=O;return{...f,instance:[{...G,intakes:[w]}]}}),F=Xe(f.instance),H={icon:"calendar",label:"Start date and location",breakContent:!0,content:{type:"dropdown",options:Bn(F).options}},K=E.map(O=>mt(O,n));K?yield(0,D.yJ)({type:oe.Oj,mappedOptions:K,courseOptions:H}):yield(0,D.yJ)({type:oe.rc})}}}catch(l){yield(0,D.yJ)({type:oe.xM,error:l.toString()})}}function*uo(){const e=yield select();if(e.routing.entry?.sys.contentTypeId===contentTypes.course&&!hasCourseConfig(e)){const l=e.routing?.mappedEntry;if(l){const i=l.intakes,r=i?(f=>{if(!(!f||f.length<=0))return f?.map(L=>{const E=L.id,F=l.instance.filter(P=>P.sys.id===E);return{...l,instance:F[0],intakes:L}})})(i):null;r?yield put({type:SET_OPTIONS,courseOptions:r}):yield put({type:SET_OPTIONS_ERROR})}}}var Tt=o(39289);const Gn=e=>({title:e.entryTitle,courses:{secondaryCTA:e.secondaryCTA,additionalCosts:e.additionalCosts,accommodationFees:e.accommodationFees,moreToExplore:e.moreToExplore},fallbackImage:{src:e.openGraphImage.asset.sys.uri,alt:e.openGraphImage.altText},courseFallbackImage:{src:e.courseFallbackImage.asset.sys.uri,alt:e.courseFallbackImage.altText},cardFallbackImage:e.cardFallbackImage?(0,$.J)({image:e.cardFallbackImage,height:400,width:400}):void 0,clearing:e.clearing,clearingCta:{title:e.clearingCTA.entryTitle,link:e.clearingCTA.entryDescription,description:e.clearingCTA.metaInformation.description},header:{featureLinks:e.featureNavLinks.map(n=>({label:n.label,url:n.url})),navMenu:e.navigationItem.map(n=>({label:n.label,url:n.url,cards:n.cards?n.cards.map(l=>({image:{src:l.image.asset.sys.uri,alt:l.image.altText},title:l.title,description:l.description,url:l.url})):void 0,subMenuOne:n.navigationLevelOneItem?.map(l=>({label:l.label,url:l.url,subMenuTwo:l.navigationLevelTwoItem?.map(i=>({label:i.label,url:i.url,subMenuThree:i.navigationLevelThreeItem?.map(m=>({label:m.label,url:m.url}))}))}))}))},socialMedia:e.socialMedia.map(n=>({type:n.type,url:n.url})),footer:{contact:{heading:"Contact Us",text:"Reception",phone:e.contactDetails.telephone,email:e.contactDetails.email},careers:{heading:"Careers",label:e.careers.label,url:e.careers.url},campuses:e.campuses.map(n=>({label:n.label,url:n.url})),furtherInfo:e.furtherInfo.map(n=>({label:n.label,url:n.url})),footerLinks:e.bottomLinks.map(n=>({label:n.label,url:n.url}))},footerNew:{getInTouch:{heading:"Get in touch",phone:e.getInTouch.telephone,email:e.getInTouch.email},linksColumnOne:{heading:"Quick links",items:e.linksColumnOne.map(n=>({label:n.label,url:n.url}))},linksColumnTwo:{heading:"Students",items:e.linksColumnTwo.map(n=>({label:n.label,url:n.url}))},linksColumnThree:{heading:"Staff",items:e.linksColumnThree.map(n=>({label:n.label,url:n.url}))},linksColumnFour:{heading:"Alumni",items:e.linksColumnFour.map(n=>({label:n.label,url:n.url}))},linksBottom:e.linksBottom.map(n=>({label:n.label,url:n.url})),mapImage:e.mapImage?(0,$.J)({image:e.mapImage}):void 0,mapText:e.mapText},courseMessage:{title:e.courseMessageTitle,message:e.courseMessage}}),jn=[(0,D.jP)(ne.M,vt)];function*vt({api:e}){const n=yield(0,D.Lt)();try{if(!(0,Tt.cG)(n)){const l=yield(0,D.Lt)(Fe.rE.selectors.selectVersionStatus),i=new X.XK(X.Op.equalTo("sys.versionStatus",l),X.Op.or(X.Op.equalTo("sys.contentTypeId",d.f.config)));if(i.fields=[...h.RM],!h.RM||h.RM.length<=0)return;const m=yield e.search(i,3),r=m?.items?.[0]?Gn(m.items[0]):null;r?yield(0,D.yJ)({type:ne.YK,config:r}):yield(0,D.yJ)({type:ne.xT})}}catch(l){yield(0,D.yJ)({type:ne.xT,error:l.toString()})}}var yt=o(29244);const Kn=e=>({yourPicks:{textOverview:e.yourPicksTextOverview,additionalInfo:e.yourPicksAdditionalInfoPopup},campusTour:{title:"Campus Tour",overview:e.campusTourTextOverview??void 0,ctaCard:{content:e.campusTourCallToActionDescription,button:{label:e.campusTourCallToAction?.buttonLabel,link:e.campusTourCallToAction?.url}},talks:e.campusTourTalks?e.campusTourTalks.map(n=>({ctaButton:{label:n.callToAction?.buttonLabel,link:n.callToAction?.url},title:n?.title,id:n?.sys.id,time:{start:n?.startTime,end:n?.endTime},description:n?.description,location:{roomName:n?.location?.name,floor:n?.optionalStartingPoint}})):void 0,videoSection:{title:e.campusTourVideo?.title??void 0,description:e.campusTourVideo?.description??void 0,video:{src:e.campusTourVideo.videoComponent.youTubeUrl,videoTheme:"darkBlue",posterImage:e.campusTourVideo?.overlayImage?(0,$.J)({image:e.campusTourVideo.overlayImage}):null}},additionalInfo:e.campusTourAdditionalInfoPopup??void 0},campusMaps:{title:e.campusMapsTitle,mainCampusImage:e.mainCampusImage?(0,$.J)({image:e.mainCampusImage}):void 0,overview:e.campusMapsTextOverview??void 0,campusLocations:e.campusLocations?e.campusLocations.map(n=>({label:n.name,mapImage:n.mapImage?(0,$.J)({image:n.mapImage}):void 0,description:n.description,campusMaps:n.floorInformation?n.floorInformation.map(l=>({label:l.floorName??void 0,campusMapImage:l.floorMap?(0,$.J)({image:l.floorMap}):void 0})):void 0})):void 0,additionalInfo:e.campusMapsAdditionalInfoPopup??void 0},allCourseAreas:{overview:e.fullScheduleTextOverview??void 0,additionalInfo:e.fullScheduleAdditionalInfoPopup??void 0},exploringTheCity:{additionalInfo:e.exploreTheCityAdditionalInfoPopup??void 0,canvas:e.exploringTheCityInfo??void 0},travelToCampus:{additionalInfo:e.travelToCampusAdditionalInfoPopup??void 0,canvas:e.travelToCampusInfo??void 0},faqs:{additionalInfo:e.faqAdditionalInfoPopup??void 0,textOverview:e.faqTextOverview??void 0,faqs:e.faqs?e.faqs.map(n=>({title:n.title,children:n.content})):void 0}}),Hn=[(0,D.jP)(Mn,bt)];function*bt({api:e}){const n=yield(0,D.Lt)();try{if(!(0,yt.H)(n)){const l=yield(0,D.Lt)(Fe.rE.selectors.selectVersionStatus),i=new X.XK(X.Op.equalTo("sys.versionStatus",l),X.Op.or(X.Op.equalTo("sys.contentTypeId",d.f.openDayConfig)));if(i.fields=[...h.CB],!h.CB||h.CB.length<=0)return;const m=yield e.search(i,5),r=m?.items?.[0]?Kn(m.items[0]):null;r?yield(0,D.yJ)({type:pt,config:r}):yield(0,D.yJ)({type:De})}}catch(l){yield(0,D.yJ)({type:De,error:l.toString()})}}const Yn=[...$n,...jn,...Hn],Vn=async()=>{const{routeParams:e,setRouteFilters:n}=await Promise.all([o.e(336),o.e(532)]).then(o.bind(o,64336)),l=(await Promise.all([o.e(336),o.e(43)]).then(o.bind(o,10506))).default;return{routeParams:e,setRouteFilters:n,mappers:l}};var Wn=o(88863),Jn=o(90009),Ct=o.n(Jn),It=o(43762);function At(e){return e?!(e.includes(".contensis.cloud")||e.startsWith("http://localhost")):!1}const Qn={onRouteLoad:function*({path:n,ssr:l}){return(yield(0,D.Lt)(Tt.cG))||(yield(0,D.T1)(vt,l)),n.includes("/courses")&&((yield(0,D.Lt)(gt.K6))||(yield(0,D.T1)(ft,l))),n.includes("/open-day")&&((yield(0,D.Lt)(yt.H))||(yield(0,D.T1)(bt,l))),yield{customNavigation:{ancestors:!1,children:!1,siblings:!1,tree:!1},entryLinkDepth:0,preventScrollTop:!!n.includes("/courses")}},onRouteLoaded:function*({path:n,entry:l,location:i,staticRoute:m}){const r=l?.sys?.contentTypeId,f=m?.route?.listingType||Wn.py[r];if(n.startsWith("/search")||f){const{routeParams:L,setRouteFilters:E,mappers:F}=yield Vn(),P=L(m,i);yield(0,D.T1)(E,{listingType:f,mappers:F,params:P})}(0,It.A)()&&At(window?.location.href)&&Ct().dataLayer({dataLayer:{event:"pageview",page:{path:n}}})}},Xn={gtmId:"GTM-NN49B4Z"};(0,It.A)()&&At(window.location.href)&&Ct().initialize(Xn);const Zn={routes:{ContentTypeMappings:Cn,StaticRoutes:On},stateType:"js",withReducers:Un,withSagas:Yn,withEvents:Qn};new s.A(u.A,Zn)},32645:()=>{}},z=>{var T=s=>z(z.s=s);z.O(0,[883],()=>(T(32645),T(82791)));var o=z.O()}]);