"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[524],{53091:(O,f,i)=>{i.d(f,{A:()=>C});var s=i(48322),u=i(50423),d=i(67115),h=i(28130),A=i(27877),p=i(82472),k=i(669),b=i(85703);const E=(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; } ${b.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 ${H=>H.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 x=i(14646);const c={colors:p.T,breakpoints:x.fi,mq:x.mq,spacing:x.YK,grid:x.Vg};var t=i(94836),P=i(89703);const U=({skipPath:H="#main"})=>s.createElement(R,{to:H},"Skip to main content"),R=(0,d.Ay)(P.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; } `,Y=U,N="black",j={overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",position:"absolute",inset:0,zIndex:9999,height:"100%",maxHeight:"100vh",backgroundColor:"white"},L=()=>s.createElement("div",{style:j},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:N,stopOpacity:"0",offset:"0%"}),s.createElement("stop",{stopColor:N,stopOpacity:".631",offset:"63.146%"}),s.createElement("stop",{stopColor:N,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:N,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"}))))));O=i.hmd(O);const T=H=>s.createElement(s.Fragment,null,s.createElement("div",{id:"app-root"},s.createElement(d.NP,{theme:c},s.createElement(t.vD,{defaultSetOptions:{path:"/"}},s.createElement(E,null),s.createElement(Y,null),s.createElement(h.F6,{...H,notFoundComponent:A.default,loadingComponent:L}))))),C=(0,u.KS)(O)(T)},93149:(O,f,i)=>{i.d(f,{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:(O,f,i)=>{i.d(f,{J:()=>k});const s=({assetHeight:b,assetWidth:v,width:E})=>{if(!E)return b;const x=v/b;return Math.round(E/x)},u=({assetHeight:b,assetWidth:v,height:E})=>{if(!E)return v;const x=v/b;return Math.round(E*x)},d=({assetHeight:b,assetWidth:v,height:E,width:x})=>{let c=E||s({assetHeight:b,assetWidth:v,width:x}),t=x||u({assetHeight:b,assetWidth:v,height:E});return b{const c=v/b;let t=b,P=v;return x&&P>x&&(t=Math.round(x/c),P=x),E&&t>E&&(t=E,P=Math.round(E*c)),{height:t,width:P}},A=({fit:b,height:v,image:E,width:x})=>{const c=E.asset?.sys?.properties?.height||0,t=E.asset?.sys?.properties?.width||0;return b.startsWith("crop")?d({assetHeight:c,assetWidth:t,height:v,width:x}):h({assetHeight:c,assetWidth:t,height:v,width:x})},p=({effect:b={},fit:v="crop",format:E="webp",height:x,quality:c=75,src:t,width:P})=>{const U={h:x,w:P,fit:v,...b,q:c,f:E};return t.split("?")[0]+"?"+Object.keys(U).filter(R=>U[R]).map(R=>`${R}=${U[R]}`).join("&")},k=({effect:b,fit:v="crop",format:E="webp",height:x,image:c,quality:t=75,width:P})=>{const U=c?.altText||c?.caption||c?.asset?.title,R=c?.caption,Y=c?.asset?.sys?.id,{height:N,width:j}=A({fit:v,height:x,image:c,width:P}),L=p({effect:b,fit:v,format:E,height:N,quality:t,src:c?.asset?.sys?.uri,width:j});return{alt:U,caption:R,height:N,id:Y,src:L,width:j}}},72056:(O,f,i)=>{i.d(f,{D:()=>A,I:()=>h});var s=i(2621),u=i(38698);function d(p,k=80,b){if(!p)return p;const v=b?.suffix??"...",E=b?.preserveWords??!0;if(p.length<=k)return p;if(k<=v.length)return v.slice(0,k);const x=k-v.length;let c=p.slice(0,x);if(E){const t=c.lastIndexOf(" ");t>0&&(c=c.slice(0,t))}return c=c.replace(/[ \t\n\r.,;:!-]+$/u,""),c+v}const h=p=>({_type:p._type??"latestNewsAndEvents",title:p.title??"Latest News and Events",manualResults:Array.isArray(p.manualPicker)?p.manualPicker.map(A):null,button:p.button?{label:p.button.label??"",link:p.button.url??"",buttonTheme:"secondary"}:null}),A=p=>{const k=p?.publishedDate??p?.dateAndTime?.from??p?.date?.from??null,b=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:b,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:(O,f,i)=>{i.d(f,{T:()=>d,X:()=>u});var s=i(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:(O,f,i)=>{i.d(f,{B:()=>E,EV:()=>b,Fc:()=>A,It:()=>p,K6:()=>u,Wp:()=>h,Z_:()=>x,b9:()=>v,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,A=c=>c.course?.selectedOption,p=c=>c.course?.selectedOptionId,k=c=>c.course?.selectedCourseOptions,b=c=>s(c)?c.course?.selectedOption?.introduction?.summary:null,v=c=>s(c)?{content:c.course?.selectedOption?.courseContent.content,modules:c.course?.selectedOption?.courseContent.modules}:null,E=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,x=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:(O,f,i)=>{i.d(f,{J9:()=>v,Oj:()=>k,rc:()=>b,sj:()=>p,xM:()=>h});const s="@COURSE/",u=null,d=null,h=`${s}GET_COURSE_CONFIG_ERROR`,A=null,p=`${s}GET_COURSE_OPTIONS`,k=`${s}SET_OPTIONS`,b=`${s}SET_OPTIONS_ERROR`,v=`${s}SET_SELECTED_OPTION`},29244:(O,f,i)=>{i.d(f,{H:()=>s,T:()=>u});const s=d=>d.openDayConfig?.isReady,u=d=>d.openDayConfig},46070:(O,f,i)=>{i.d(f,{Nk:()=>E,PL:()=>u,PT:()=>v,T2:()=>s,TT:()=>x,ZY:()=>k,jH:()=>p,lT:()=>d,tD:()=>b,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",A="@OPEN_DAY_USER_PICKS/RESET_PICKS",p="@OPEN_DAY_USER_PICKS/REMOVE_COURSE_PICK",k="@OPEN_DAY_USER_PICKS/REMOVE_ACCOMMODATION_TALK",b="@OPEN_DAY_USER_PICKS/REMOVE_STUDENT_LIFE_TALK",v="@OPEN_DAY_USER_PICKS/REMOVE_CAMPUS_TOUR_TALK",E="@OPEN_DAY_USER_PICKS/REMOVE_ADVICE_HUB_TALK",x="@OPEN_DAY_USER_PICKS/TOGGLE_ADVICE_HUB_TALK"},39289:(O,f,i)=>{i.d(f,{FB:()=>h,Hy:()=>b,Iz:()=>k,TX:()=>u,WD:()=>c,c1:()=>E,cG:()=>s,jI:()=>x,oL:()=>p,sW:()=>v,z0:()=>d});const s=t=>t.config.isReady,u=t=>t.config?.title,d=t=>t.config?.header,h=t=>t.config?.socialMedia,A=t=>t.config?.footer,p=t=>t.config?.footerNew,k=t=>t.config?.fallbackImage,b=t=>t.config?.courseFallbackImage,v=t=>t.config?.clearing,E=t=>t.config?.clearingCta,x=t=>t.config?.courseMessage,c=t=>t.config?.cardFallbackImage},39966:(O,f,i)=>{i.d(f,{M:()=>u,YK:()=>d,ux:()=>h,xT:()=>A});const s="@CONFIG/",u=`${s}GET_SITE_CONFIG`,d=`${s}SET_SITE_CONFIG`,h=`${s}SET_COOKIE_ACCEPTED`,A=`${s}GET_SITE_CONFIG_ERROR`},90985:(O,f,i)=>{i.d(f,{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"}},22504:(O,f,i)=>{i.d(f,{CB:()=>ce,RM:()=>le,Xn:()=>h,Zf:()=>Te,cj:()=>Ie,ef:()=>J,tQ:()=>Ae,tj:()=>ue});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],A=["metaInformation","title","description","keywords","image","noIndex","noFollow"],p=["asset","altText","caption","transformations","properties","filename","fileSize","filePath","width","fileId","height"],k=["content"],b=["internalReference","statistic","statisticLead","source","statContext","isOrb","fullStatContext","fullStatSource","fullStatDate","plusStatistic"],v=["internalReference","title","description","image","summary"],E=["title","uRL","logo"],x=["label","uRL",...A],c=["title","scholarships","additionalCosts"],t=["title","accomodationFees"],P=["title","ukFee","ukFeeTBC","overseasFee","overseasFeeTBC","description","overseasDescription"],U=["year","mandatoryModules","optionalModules","title","description"],R=["type","url"],Y=["position"],N=["courseGallery","title","images",...Y],j=["title","content"],L=["studyMode","startDate","location","placement","duration","ucasCodeOverride","applicationURL"],T=["qualification","grade"],C=["video","title","videoURL","positionControl",...Y],H=["bio","profileImage","role","email","contactDetails","shortBio"],q=["text","image"],J=[...A,"entryTitle","title","date","bannerImage","location","eventLink","summary","entryThumbnail","time","eventCategories","eventLinkSecondary","entryLink","content","contactInformation","renderThumbnailInEventContent","thumbnail","imageAlignment","date.from","category","dateAndTime","sys"],Te=[...h,...A,...J,...b,"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"],ye=["youtubeURL","title"],re=["images","title"],be=["shortDescription","bannerImage","courseLevel","name","slug"],Ce=["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",...t,...L,...x,...U,...j,...T],Ae=[...h,...k,...t,...c,...Ce,...b,...E,...v,...P,...H,...q,...j,...x,...R,...N,...C,...T,...p,...A,...be,...ye,...re,...J,"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"],le=[...h,...p,...A,"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"],ce=[...h,...A,"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"],ue=new Set([...h,...J,"title","summary","entryTitle","publishedDate","date","location","name","uRL"]),Ie=[...h,...ce,"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"]},88863:(O,f,i)=>{i.d(f,{nV:()=>k,py:()=>h});var s=i(90985);const u={all:"all",event:"event"},d={all:"all"},h={[s.f.eventListing]:u.event,[s.f.listing]:u.event},A={all:"all"},p={},k={title:100,description:50}},51389:(O,f,i)=>{i.d(f,{v:()=>s});const s=u=>new Intl.NumberFormat("en-GB",{style:"currency",currency:"GBP",minimumFractionDigits:0,maximumFractionDigits:0}).format(u)},27877:(O,f,i)=>{i.r(f),i.d(f,{default:()=>d});var s=i(48322);const d=()=>s.createElement(s.Fragment,null,s.createElement("header",null,s.createElement("h1",null,"404 Page Not Found")))},78799:(O,f,i)=>{i.d(f,{U:()=>u});var s=i(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:(O,f,i)=>{i.d(f,{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:(O,f,i)=>{i.d(f,{l:()=>h});var s=i(67115),u=i(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 ${A=>A.theme.colors.light.neutral.grey80}; } legend { padding-inline-end: 8px; } label, legend, .webformlabel, .webformlabel2, .form__checkboxLabel { color: ${A=>A.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 ${A=>A.theme.colors.light.brand.lightGold}; border-radius: 5px; } input[type='radio'], input[type='checkbox'] { padding-inline-end: 8px; width: 24px; height: 24px; accent-color: ${A=>A.theme.colors.light.brand.gold}; } button, .submitbutton { display: inline-block; inline-size: fit-content; padding: ${A=>A.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:(O,f,i)=>{i.d(f,{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:(O,f,i)=>{i.d(f,{A4:()=>k,DF:()=>h,Ju:()=>b,uY:()=>p});var s=i(67115),u=i(82472),d=i(14646);const h=v=>({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})[v],A=v=>({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})[v],p=(v,E)=>(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: ${v}; @media ${d.mq.min.px.mobile} { } @media ${d.mq.min.px.laptop} { top: 64px; left: -64px; width: 100%; border-bottom-left-radius: 50px; } ${E==="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); } `} ${E==="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; `,b=(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:(O,f,i)=>{i.d(f,{Yq:()=>s});const s=(c,t)=>{const U=new Date(c).getDay(),R=c?.split("T"),Y=R[0].split("-"),N=R[1].split(":"),[j,L,T]=Y,[C,H]=N,q=["$","$$","$$$","$$$$"],J=["\xA3","\xA3\xA3","\xA3\xA3\xA3","\xA3\xA3\xA3\xA3"];return t.replace(/d/g,J[0]).replace(/M/g,q[0]).replace("HH",C).replace("H",parseInt(C).toString()).replace("hh",E(k(parseInt(C)))).replace("h",k(parseInt(C)).toString()).replace("mm",H).replace("m",parseInt(H).toString()).replace("tt",b(parseInt(C))).replace("t",b(parseInt(C)).slice(0,1)).replace("~",v(T)).replace("yyyy",j).replace("yy",j.slice(-2)).replace(q[3],h[parseInt(L)]).replace(q[2],d[parseInt(L)]).replace(q[1],L).replace(q[0],parseInt(L).toString()).replace(J[3],p[U]).replace(J[2],A[U]).replace(J[1],T).replace(J[0],parseInt(T).toString())},u=(c,t,P=" - ")=>{if(!c)return null;if(!t)return`${c.to} - ${c.from}`;const U=c.from,R=s(U,t),Y=c.to,N=s(Y,t);let j="";return R===N&&R?j=R:j=`${R}${P}${N}`,j},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"],A=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],p=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],k=c=>c>12?c-12:c,b=c=>c>11?"PM":"AM",v=c=>[1,21,31].includes(parseInt(c))?"st":[3,23].includes(parseInt(c))?"rd":[2,22].includes(parseInt(c))?"nd":"th",E=c=>("0"+c).slice(-2),x=c=>{const t=new Date().getTimezoneOffset()*6e4;return new Date(c-t).toISOString().slice(0,-1)}},78915:(O,f,i)=>{i.d(f,{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:(O,f,i)=>{i.d(f,{A:()=>s});function s(){return typeof window<"u"}},18136:(O,f,i)=>{var s=i(33807),u=i(53091),d=i(90985),h=i(22504),A=i(87168);const p=(0,A.Ay)(()=>Promise.resolve().then(i.bind(i,27877))),k=(0,A.Ay)(()=>Promise.resolve().then(i.bind(i,83692)),{resolveComponent:e=>e.VersionInfo}),b=(0,A.Ay)(()=>Promise.all([i.e(336),i.e(241),i.e(104),i.e(550),i.e(805),i.e(488),i.e(862),i.e(335),i.e(219),i.e(249),i.e(148)]).then(i.bind(i,19627))),v=(0,A.Ay)(()=>Promise.all([i.e(336),i.e(241),i.e(104),i.e(550),i.e(862),i.e(335),i.e(219),i.e(249),i.e(539)]).then(i.bind(i,87644))),E=(0,A.Ay)(()=>Promise.all([i.e(336),i.e(241),i.e(104),i.e(862),i.e(335),i.e(219)]).then(i.bind(i,93216))),x=(0,A.Ay)(()=>Promise.all([i.e(550),i.e(862),i.e(121)]).then(i.bind(i,43634))),c=(0,A.Ay)(()=>Promise.all([i.e(241),i.e(104),i.e(862),i.e(335),i.e(950)]).then(i.bind(i,60445)));var t=i(30589),P=i(81893);const U=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()}),R=t.z.object({id:t.z.string(),state:t.z.string()}),Y=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:U.optional(),versionStatus:t.z.enum(["published","latest"]).optional(),workflow:R.nullish().optional()}),N=Y.extend({metadata:t.z.any().optional(),version:U.extend({archived:t.z.string().nullish(),archivedBy:t.z.string().nullish(),deleted:t.z.string().nullish(),deletedBy:t.z.string().nullish()}).optional()}),j=t.z.object({altText:t.z.string().nullish(),sys:Y.extend({properties:t.z.object({height:t.z.number(),width:t.z.number()}).optional()})}),L=t.z.object({altText:t.z.string().nullish(),asset:j,caption:t.z.string().nullish().optional(),transformations:t.z.unknown().optional()}),T=t.z.object({entryThumbnail:L.nullish(),entryTitle:t.z.string(),entryDescription:t.z.string().nullish(),sys:N}),C=t.z.any(),H=t.z.object({title:t.z.string().nullish(),description:t.z.string().nullish(),keywords:t.z.string().nullish(),image:L.nullish(),noIndex:t.z.boolean(),noFollow:t.z.boolean()}),q=T.extend({title:t.z.string(),scholarships:C.nullish(),additionalCosts:C.nullish()}),J=T.extend({title:t.z.string()}),Te=T.extend({title:t.z.string()}),ye=T.extend({title:t.z.string()}),re=T.extend({internalReference:t.z.string(),title:t.z.string().nullish(),description:t.z.string().nullish(),image:L.nullish(),summary:t.z.string().nullish()}),be=T.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=T.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()}),Ae=T.extend({title:t.z.string(),uRL:t.z.string().nullish(),logo:L.nullish()}),le=T.extend({label:t.z.string(),uRL:t.z.string(),metaInformation:H}),ce=T.extend({title:t.z.string(),accomodationFees:C.nullish()}),ue=T.extend({title:t.z.string(),ukFee:t.z.number().nullish(),overseasFee:t.z.number().nullish(),description:C.nullish(),overseasDescription:C.nullish(),hideOrb:t.z.boolean().nullish()}),Ie=T.extend({title:t.z.string()}),Ct=T.extend({title:t.z.string()}),At=T.extend({title:t.z.string(),id:t.z.string().nullish(),description:t.z.string().nullish()}),Pe=T.extend({title:t.z.string(),description:t.z.string().nullish()}),Re=T.extend({internalReference:t.z.string(),title:t.z.string().nullish(),description:C.nullish()}),It=t.z.object({year:t.z.string().nullish(),mandatoryModules:t.z.array(Re),optionalModules:t.z.array(Re),richText:t.z.string().nullish()}),Et=t.z.object({type:t.z.enum(["Facebook","X","Instagram","Linkedin","YouTube","TikTok"]),url:t.z.string().nullish()}),de=t.z.object({position:t.z.enum(["Overview","Careers","Teaching and assessment","More to explore","Fees"])}),Ne=t.z.object({courseGallery:t.z.object({title:t.z.string().nullish(),images:t.z.array(L)}),positionControl:de}),Ue=t.z.object({courseVideo:t.z.object({title:t.z.string().nullish(),youtubeURL:t.z.string().nullish()}),positionControl:de}),xt=T.extend({title:t.z.string()}),Ee=t.z.object({title:t.z.string(),content:t.z.string()}),Be=t.z.object({qualification:t.z.string().nullish(),grade:t.z.string().nullish()}),me=T.extend({bio:t.z.string().nullish(),profileImage:L.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()}),xe=T.extend({text:t.z.string().nullish(),image:L.nullish()}),St=t.z.object({positionControl:de,quote:xe.nullable()}),$e=T.extend({internalReference:t.z.string(),title:t.z.string().nullish(),formURL:t.z.string().nullish()}),Se=T.extend({name:t.z.string()}),Ot=T.extend({metaInformation:H.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:L.nullish(),thumbnail:L.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:T.nullish()}).nullish(),eventLinkSecondary:t.z.object({linkPath:t.z.string().nullish(),linkText:t.z.string().nullish(),openInNewWindow:t.z.boolean().nullish(),entryLink:T.nullish()}).nullish(),eventCategories:t.z.array(Se).nullish(),content:C.nullish(),contactInformation:t.z.string().nullish(),renderThumbnailInEventContent:t.z.boolean().nullish(),imageAlignment:t.z.string().nullish(),category:t.z.array(Se).nullish()}),Jn=T.extend({metaInformation:H.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:L.nullish(),entryThumbnail:L.nullish(),imageAlignment:t.z.string().nullish(),articleContent:C.nullish(),category:t.z.array(Se).nullish()}),ae=t.z.enum(["Gold","Light Gold","Lighter Gold","Blue","Light Blue","Dark Blue","Light Grey"]),zt=T.extend({courseTitle:t.z.string().nullish(),description:t.z.string().nullish(),shortDescription:t.z.string().nullish(),image:L.nullish(),bannerImage:L.nullish(),courseLevel:t.z.object({name:t.z.string().nullish()}).nullish(),level:T.nullish()}),wt=t.z.object({studyMode:Ct.nullish(),startDate:Ie.nullish(),location:At.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=T.extend({title:t.z.string(),academicYear:ce.nullish(),intakes:t.z.array(wt).min(1),studyAbroad:t.z.boolean().nullish(),availableThroughClearing:t.z.boolean().nullish(),descriptionOverride:t.z.string().nullish(),summaryOverride:t.z.string().nullish(),careersOverride:C.nullish(),placementsOverride:C.nullish(),overviewOverride:C.nullish(),discoverUniIDOverride:t.z.string().nullish(),moreToExploreOverride:t.z.array(le),registerInterestFormOverride:t.z.string().nullish(),structureIntroduction:C.nullish(),yearStructure:t.z.array(It),teachingAndAssessmentIntroduction:C.nullish(),teachingAndAssessment:t.z.array(Ee).nullish(),howToApply:C.nullish(),additionalApplicationInformation:C.nullish(),fee:ue.nullable(),ptFee:ue.nullable(),additionalCostsOverride:C.nullish(),accommodationFeesOverride:C.nullish(),feesTabs:t.z.array(Ee).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(Be).nullish(),additionalRequirements:C.nullish(),anyQuestions:T.extend({internalReference:t.z.string(),title:t.z.string().nullish(),content:C.nullish()}).nullable(),promoMessageTitle:t.z.string().nullish(),promoMessage:C.nullish(),highlightsOverride:t.z.array(re).nullish(),imageGalleryOverride:t.z.array(Ne).nullish(),videosOverride:t.z.array(Ue).nullish(),caseStudiesOverride:t.z.array(xe).nullish(),staffOverride:t.z.array(me).nullish()}),Oe=T.extend({optionId:t.z.string().optional(),metaInformation:H.nullish(),title:t.z.string(),courseTitle:t.z.string(),award:t.z.array(Te),description:t.z.string(),summary:t.z.string().nullish(),ucasCode:t.z.string().nullish(),level:J,subjectArea:t.z.array(q).nullish(),school:t.z.array(xt).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:C.nullish(),accreditations:t.z.array(Ae).nullish(),overview:C.nullish(),overviewOverride:C.nullish(),placements:C.nullish(),placementsOverride:C.nullish(),careers:C.nullish(),careersOverride:C.nullish(),highlights:t.z.array(re).nullish(),ucasTariffPoints:t.z.number().nullish(),ucasTariffPointsUpper:t.z.number().nullish(),entryRequirements:t.z.array(Be).nullish(),additionalRequirements:C.nullish(),anyQuestions:T.extend({internalReference:t.z.string(),title:t.z.string().nullish(),content:C.nullish()}).nullable(),fAQ:t.z.array(Ee).nullish(),contactDetails:me.nullish(),secondaryCTA:t.z.union([le,$e]).nullish(),secondaryCTALabel:t.z.string().nullish(),contactCTA:t.z.union([le,$e]).nullish(),contactCTALabel:t.z.string().nullish(),image:L,thumbnail:L.nullish(),relatedCourses:t.z.array(zt).nullish(),socialMedia:t.z.array(Et).nullish(),registerInterestForm:t.z.string().nullish(),staffIntroduction:C.nullish(),staff:t.z.array(me).nullish(),caseStudiesIntroduction:C.nullish(),teachingAndAssessment:C.nullish(),caseStudies:t.z.array(xe).nullish(),imageGallery:t.z.array(Ne).nullish(),video:t.z.array(Ue).nullish(),quote:t.z.array(St).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(me).nullish(),events:t.z.array(Ot).nullish(),hideApplyNow:t.z.boolean().nullish(),positionControl:de.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()}),Lt=T.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()}),Ge=T.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()}),Mt=T.extend({title:t.z.string(),entryTitle:t.z.string().nullish(),arrivalLocation:Ge.nullish(),talks:t.z.array(Lt).nullish(),description:t.z.string().nullish(),course:Oe.nullish()}),Dt=T.extend({title:t.z.string(),description:t.z.string().nullish(),entryTitle:t.z.string().nullish(),entryDescription:t.z.string().nullish(),courseArea:Pe.nullish(),courseTalks:t.z.array(Mt).nullish()}),Qn=T.extend({title:t.z.string(),description:t.z.string().nullish(),dateAndTime:t.z.string().nullish(),courseAreas:t.z.array(Pe).nullish(),openDayItems:t.z.array(Dt).nullish(),bannerImage:L.nullish(),welcomeMessageOverride:t.z.string().nullish(),arrivalLocation:Ge.nullish(),openDayType:t.z.enum(["Default","Offer Holder Day"]).nullish(),adviceHubInfo:C.nullish(),adviceHubAdditionalInfoPopup:t.z.string().nullish(),adviceHubTalks:t.z.array(t.z.object({title:t.z.string().nullish(),sys:N,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:L.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:N,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:N,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=i(38698);const pe=(e,n,o="Register for updates")=>{const l=e.secondaryCTA&&e.secondaryCTA.sys.contentTypeId===d.f.externalForm,m=n?.config?.courses?.secondaryCTA&&n?.config?.courses?.secondaryCTA.sys.contentTypeId===d.f.externalForm,r=l?{label:e.secondaryCTA?.title||o,modalTitle:e.secondaryCTA?.title,modalFormUrl:e.secondaryCTA?.formURL,link:void 0}:m?{label:o,modalTitle:n?.config?.courses?.secondaryCTA?.entryTitle,modalFormUrl:n?.config?.courses?.secondaryCTA?.formURL,link:void 0}:{label:o,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}},Ft=(e,n)=>{const o=e.instance[0],l=o.intakes[0].ucasCodeOverride??e.ucasCode,m=o.intakes[0].applicationURL??void 0,r=e.hideApplyNow??!1;return{title:e.courseTitle??e.entryTitle,description:o.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(g=>g.title),tags:l||e.honours?[...l?[{label:`UCAS Code: ${l}`}]:[],...e.honours?[{label:e.honours.entryTitle}]:[]]:null,applicationCTA:r?null:{label:"Apply now",buttonTheme:"primary",link:m,disabled:!m},secondaryCTA:n?pe(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}}},Pt=(e,n)=>{const o=e.applicationUrl??void 0,l=e.primaryCTALabel??"Apply now",m=e.moduleCode??void 0,r=e.hideApplyNow??!1,g=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(w=>w.title),tags:[{label:"Short course"},...e.award[0].entryTitle?[{label:e.award[0].entryTitle}]:[],...m?[{label:`${m}`}]:[]],applicationCTA:r?null:{label:l,buttonTheme:"primary",link:o,disabled:!o},secondaryCTA:!g&&n?pe(e,n,e.secondaryCTALabel??"Register for updates"):g?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}}},Rt=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}},je=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??""}}))},oe=e=>e?e.replace(/\s(.)/g,function(n){return n.toUpperCase()}).replace(/\s/g,"").replace(/^(.)/,function(n){return n.toLowerCase()}):null,Ke=(e,n)=>!e||e.length<=0?null:{highlights:e.map(o=>({title:o.title??o.entryTitle,description:o.description??o.entryDescription??"No description provided",image:{src:o.image?.asset?.sys.uri??"",alt:o.image?.altText??""},url:o?.sys?.uri??null,summary:o.summary??null})),sliderTheme:oe(n)??"gold"};var He=i(93149);const Ye=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 Nt=i(62937),Ut=i.n(Nt);const Ve=e=>{const{id:n,location:o,startDate:l,studyMode:m,placement:r,duration:g,durationMode:w}=e,I=`${n}-${o?.entryTitle}-${l?.entryTitle}-${m?.entryTitle}-${r}-${g}-${w}`;return Ut()(I)},We=e=>e.map(n=>n.intakes.map(o=>{const l=Ve(o);return{...o,id:l}})).flat(1);var Je=i(51389);const Qe=(e,n,o)=>{if(!e&&!o&&!n||typeof o!="string")return null;if(o&&!n)return`${o}`;const l=e===1?n?.toLowerCase().replace(/s$/,""):n?.toLowerCase();return`${e} ${l} ${o?.toLowerCase()}`.trim()},ze=(e,n)=>!e&&!n?null:e&&!n?e.toString():`${e.toString()} - ${n?.toString()}`,Bt=(e,n)=>{const o=We(e.instance),l=e.instance[0],m=o[0],r=l.intakes[0].applicationURL??void 0,g=(z,G)=>z==="TBC"?"TBC":typeof z=="number"?`${(0,Je.v)(z)}`:"",w=e?.ukFeeLabelOverride??"UK and EU",I=e?.overseasFeeLabelOverride??"International",D=[];D.push({icon:"starsGroup",label:e?.ucasTariffPoints?"UCAS points":null,content:l.ucasTariffPoints?{type:"markup",text:l.ucasTariffPoints?`${ze(l.ucasTariffPoints,l.ucasTariffPointsUpper)}`:""}:e?.ucasTariffPoints?{type:"markup",text:e.ucasTariffPoints?`${ze(e.ucasTariffPoints,e.ucasTariffPointsUpper)}`:""}:null}),D.push({icon:"star",label:e.optionalKeyFact??null});const F=z=>{const G=l?.fee,y=e.fee,W=l?.ptFee,_=e.ptFee;return G&&typeof G[z]=="number"?G[z]:G&&G[`${z}TBC`]===!0?"TBC":y&&typeof y[z]=="number"?y[z]:y&&y[`${z}TBC`]===!0?"TBC":W&&typeof W[z]=="number"?W[z]:W&&W[`${z}TBC`]===!0?"TBC":_&&typeof _[z]=="number"?_[z]:_&&_[`${z}TBC`]===!0?"TBC":null},V=F("ukFee"),K=F("overseasFee"),S=g(V),$=g(K);if(S||$){const z=[];S&&z.push(`${w} ${S}`),$&&z.push(`${I} ${$}`),D.push({icon:"pound",label:"Fees",breakContent:!0,content:{type:"markup",text:`${z.join("
")}
`}})}return D.push({icon:"clock",label:Qe(m?.duration,m?.durationMode,m?.studyMode&&m.studyMode.entryTitle)}),D.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}),D.push({icon:"globe",label:e?.instance&&e.instance[0]?.studyAbroad?"Study abroad available":null}),{events:!1,facts:D,applicationCTA:{label:"Apply now",buttonTheme:"primary",link:r,disabled:!r},hideApplyNow:e.hideApplyNow,secondaryCTA:n?pe(e,n,"Register for updates"):{label:"Register for updates",buttonTheme:"secondary",link:void 0,modalTitle:void 0,modalFormUrl:void 0,disabled:!1}}},$t=(e,n)=>{const o=e.applicationUrl??void 0,l=e.primaryCTALabel??"Apply now",m=e.secondaryCTALabel??"Register for updates",r=e.hideApplyNow??!1,g=e.hideSecondaryCTA??!1,w=e?.ukFeeLabelOverride??"UK and EU",I=e?.overseasFeeLabelOverride??"International",D=z=>z==="TBC"?"TBC":typeof z=="number"?`${(0,Je.v)(z)}`:"",F=[];F.push({icon:"star",label:e.optionalKeyFact??null}),F.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:""}`:""}`}}),F.push({icon:"clock",label:Qe(e?.duration,e?.durationMode,e?.studyMode&&e.studyMode.entryTitle)});const V=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,S=D(V),$=D(K);if(S||$){const z=[];S&&z.push(`${w} ${S}`),$&&z.push(`${I} ${$}`),F.push({icon:"pound",label:"Fees",breakContent:!0,content:{type:"markup",text:`${z.join("
")}
`}})}return{events:!1,facts:F,applicationCTA:r?null:{label:l,buttonTheme:"primary",link:o,disabled:!o},secondaryCTA:g?null:n?pe(e,n,m):{label:m,buttonTheme:"secondary",link:void 0,modalTitle:void 0,modalFormUrl:void 0,disabled:!1}}},Gt=(e,n)=>e&&n&&e===n?`${e}`:e&&n?`${e} - ${n}`:e?`${e}`:n?`${n}`:"",jt=e=>{const n=e.date.from?(0,ee.Yq)(e.date.from,"MMMM d, yyyy"):null,o=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:Gt(n,o)}},{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}},Kt=e=>e?{yearStructures:e.map(n=>({title:n?.year??null,mandatoryModules:n.mandatoryModules&&n.mandatoryModules.length>0?{title:"Mandatory modules",items:n.mandatoryModules.map(o=>({title:o?.title,canvas:!0,canvasData:o.description}))}:null,optionalModules:n.optionalModules&&n.optionalModules.length>0?{title:"Optional modules",items:n.optionalModules.map(o=>({title:o?.title,canvas:!0,canvasData:o.description}))}:null,text:n?.richText??null}))}:null,he=(e,n,o)=>{if(!e||e.length<=0)return null;switch(n){case"event":return{id:`event-slider-${e[0].sys.id}`,type:"event",galleryTheme:oe(o)??"gold",content:e.map(l=>{const{title:m,date:r,location:g,summary:w,eventLink:I}=l;return{title:m,date:r.to?(0,ee.Yq)(r.to,"MMMM d yyyy"):null,location:g,summary:w,link:I?{label:I.linkText??"Book your place",path:I.linkPath??null}:null}})};case"profile":return e[0].sys.contentTypeId===d.f.profile?{id:`profile-slider-${e[0].sys.id}`,type:"profile",galleryTheme:oe(o)??"gold",content:e.map(l=>{const{entryTitle:m,shortBio:r,profileImage:g}=l;return{name:m,bio:r??null,thumbnail:g&&g?.asset.sys.uri?{src:`${g?.asset?.sys?.uri}?q=90&w=340&h=340&f=webp`??0,alt:g?.altText??void 0}:null}})}:{id:`alt-slider-${e[0].sys.id}`,type:"profile",galleryTheme:oe(o)??"gold",content:e.map(l=>{const{entryTitle:m,text:r,image:g}=l;return{name:m,bio:r??null,thumbnail:g&&g?.asset.sys.uri?{src:`${g?.asset?.sys?.uri}?q=90&w=340&h=340&f=webp`??0,alt:g?.altText??void 0,caption:g?.caption??null}:null}})};default:return null}},Ht=e=>String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-"),Xe=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}))},Ze=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:Ht(n.entryTitle)}`}))},qe=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})),_e=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}),Yt=e=>!e.fAQ||e.fAQ.length<=0?{...se(e),schema:{"@context":"https://schema.org","@graph":[et()]}}:{...se(e),schema:{"@context":"https://schema.org","@graph":[et(),Vt(e)]}},et=()=>({"@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"}}),Vt=e=>!e.fAQ||e.fAQ.length<=0?null:{"@type":"FAQPage",mainEntity:e.fAQ?.map(o=>{const l=o.title,m=o.content;return{"@type":"Question",name:l,text:m}})},Wt=e=>{const n=e?.instance&&e?.instance[0],{ucasTariffPoints:o,ucasTariffPointsUpper:l,entryRequirements:m}=e,{ucasTariffPoints:r,ucasTariffPointsUpper:g,entryRequirements:w}=n,I=ze(r??o,g??l),D=(w&&w.length>0?w:m)||[];return{ucasPoints:I??void 0,requirements:D.length>0?D.map(F=>!F.grade||!F.qualification?null:{grade:F.grade,qualification:F.qualification}):null}};var B=i(2621);const tt=(e,n)=>!e||e.length<=0?null:e.map(o=>({position:o.positionControl.position,video:{src:o.courseVideo.youtubeURL??void 0,title:o.courseVideo.title??void 0,videoTheme:oe(n)??"lightGold",format:o.courseVideo.youtubeURL?.includes("youtube")?"youtube":"vimeo"}})),nt=(e,n)=>!e||e.length<=0?null:e.map(o=>{const l=o.courseGallery.images[0]?.asset?.sys?.id||Date.now();return{position:o.positionControl.position,gallery:{id:`gallery-${l}`,title:o.courseGallery.title??void 0,content:o.courseGallery.images.map(m=>(0,B.J)({image:m})),galleryTheme:oe(n)??"lightGold",type:"image"}}}),ot=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"}})),it=e=>!e||!e.caseStudies||e.caseStudies.length===0?null:{position:e.positionControl?.position??"Teaching and assessment",caseStudies:{caseStudiesIntroduction:e.caseStudiesIntroduction??null,caseStudies:he(e.caseStudies,"profile",e.caseStudiesSliderTheme)}},lt=(e,n)=>{const o=e.secondaryCTA&&e.secondaryCTA.sys.contentTypeId===d.f.externalForm,l=n?.config?.courses?.secondaryCTA&&n?.config?.courses?.secondaryCTA.sys.contentTypeId===d.f.externalForm;return e&&o?{title:e.secondaryCTA.title,formUrl:e.secondaryCTA.formURL}:!o&&n&&l?{title:n?.config?.courses?.secondaryCTA?.entryTitle,formUrl:n?.config?.courses?.secondaryCTA?.formURL}:null},Jt=[{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"}],at=e=>{const n=o=>o.some(l=>l?.find(m=>m?.type==="_heading"&&m.properties?.level===2&&m.properties?.id));return n(e)?{custom:n(e),links:e.map(o=>{if(o){const l=o.find(m=>m.type==="_heading"&&m.properties?.level===2&&m.properties?.id);return l?{children:l.value?.[0]?.value??l.value,path:l.value?.[0]?.properties?.link.sys.uri?`#${l.value?.[0]?.properties?.link.sys.uri}`:l.properties?.id?`#${l.properties?.id}`:void 0}:{children:void 0,path:void 0}}else return{children:void 0,path:void 0}}).filter(o=>o.path!==void 0)}:{custom:!1,links:Jt}};var Qt=i(78915);const st=e=>!e||e.length<=0?null:{id:`event-slider-${e[0].sys.id}`,content:e.map(n=>{const{title:o,date:l,location:m,summary:r,eventLink:g,time:w,sys:I}=n;return{title:o??null,url:I.uri??null,date:l.to?(0,ee.Yq)(l.to,"MMMM d yyyy"):null,location:m??null,summary:r??null,time:w??null,link:g?{label:g.linkText??"Book your place",path:g.linkPath??null}:null}})},we=(e,n,o=!1)=>o?Array.isArray(e)&&e.length>0&&e[0]?.value?.length!==0?e:n??null:e??n??null,rt=e=>{if(!e)return null;const n=[],o=typeof e.ukFee=="number"||e.ukFeeTBC===!0,l=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);(o||l)&&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},ct=(e,n)=>{try{Oe.safeParse(e);const o=n??e.state,l=e?.instance&&e?.instance[0],m=l.intakes[0],r=l?Ve(l.intakes[0]):void 0,g=(y,W)=>!y&&!W?null:W&&(0,Qt.R)(W)?W??y:y,I=(y=>{const W=[],_=new Set;return y.instance.forEach(ve=>{ve.intakes.forEach(De=>{[{id:y.discoverUniID??null,title:y.courseTitle},{id:ve.discoverUniIDOverride??null,title:`${y.courseTitle} ${ve.academicYear?.entryTitle}`},{id:De.discoverUniID??null,title:`${y.courseTitle} ${ve.academicYear?.entryTitle} - ${De.studyMode?.entryTitle}`,mode:De.studyMode?.entryTitle==="Part-time"?"PartTime":"FullTime"}].forEach(Fe=>{_.has(Fe.id)||(_.add(Fe.id),W.push(Fe))})})}),W})(e),D=[e.overview,l.structureIntroduction,e.careers,l.teachingAndAssessmentIntroduction,l.howToApply],F=l?.videosOverride&&l.videosOverride.length>0?l.videosOverride:e.video,V=F?tt(F,e.videoTheme):null,K=l?.imageGalleryOverride&&l.imageGalleryOverride.length>0?l.imageGalleryOverride:e.imageGallery,S=K?nt(K,e.imageGalleryTheme):null,$=e.quote?ot(e.quote):null,z=l?.caseStudiesOverride&&l.caseStudiesOverride.length>0?l.caseStudiesOverride:e.caseStudies,G=it({positionControl:e.positionControl,caseStudiesIntroduction:e.caseStudiesIntroduction,caseStudies:z,caseStudiesSliderTheme:e.caseStudiesSliderTheme});return{cpdCourse:!1,status:"success",optionId:r,metadata:Yt(e),hero:Ft(e,o),keyFacts:Bt(e,o),modalContent:lt(e,o),navigation:at(D),introduction:{summary:l.summaryOverride??e.summary??null,statistics:Ye(e.statistics),accrediations:je(e.accreditations),accreditationContent:e.accreditation??null},overview:{overview:we(l?.overviewOverride,e.overview,!0),placements:we(l?.placementsOverride,e.placements,!0),video:V?.find(y=>y.position==="Overview")??null,gallery:S?.find(y=>y.position==="Overview")??null,quote:$?.find(y=>y.position==="Overview")??null,caseStudy:G?.position==="Overview"?G:null},courseContent:{content:l?.structureIntroduction??null,modules:Kt(l.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:we(l?.careersOverride,e.careers,!0),video:V?.find(y=>y.position==="Careers")??null,gallery:S?.find(y=>y.position==="Careers")??null,quote:$?.find(y=>y.position==="Careers")??null,caseStudy:G?.position==="Careers"?G:null},teaching:{teachingIntroduction:l?.teachingAndAssessmentIntroduction??null,staffIntroduction:e.staffIntroduction??null,staffMembers:l?.staffOverride&&l.staffOverride.length>0?he(l.staffOverride,"profile",e.staffSliderTheme):e.staff?he(e.staff,"profile",e.staffSliderTheme):null,teachingTabs:{title:"Teaching and assessment contents",content:l.teachingAndAssessment??void 0},video:V?.find(y=>y.position==="Teaching and assessment")??null,gallery:S?.find(y=>y.position==="Teaching and assessment")??null,quote:$?.find(y=>y.position==="Teaching and assessment")??null,caseStudy:G?.position==="Teaching and assessment"?G:null},highlights:Ke(l?.highlightsOverride&&l.highlightsOverride.length>0?l.highlightsOverride:e.highlights,e.highlightsTheme),entryRequirements:{requirements:Wt(e),additionalRequirements:Array.isArray(l.additionalRequirements)&&l.additionalRequirements.length===1&&l.additionalRequirements[0]?.value?.length===0?e.additionalRequirements??null:l.additionalRequirements??e.additionalRequirements??null,anyQuestions:l.anyQuestions?.content??e.anyQuestions?.content??null},moreToExplore:{exploreCards:l.moreToExploreOverride&&l.moreToExploreOverride.length>0?Xe(l.moreToExploreOverride):o.config.courses.moreToExplore?Xe(o.config?.courses?.moreToExplore):null,video:V?.find(y=>y.position==="More to explore")??null,gallery:S?.find(y=>y.position==="More to explore")??null,quote:$?.find(y=>y.position==="More to explore")??null,caseStudy:G?.position==="More to explore"?G:null},fees:{fees:rt(l?.fee),ptFee:rt(l?.ptFee),additionalFees:g(o.config?.courses.additionalCosts,l.additionalCostsOverride),accomodationFees:e.hideAccommodationFeesTab===!1?g(o.config?.courses.accommodationFees,l.accommodationFeesOverride):null,feesTabs:l.feesTabs,video:V?.find(y=>y.position==="Fees")??null,gallery:S?.find(y=>y.position==="Fees")??null,quote:$?.find(y=>y.position==="Fees")??null,caseStudy:G?.position==="Fees"?G:null},howToApply:{howToApply:l?.howToApply??null,howToApplyTitle:l?.howToApplyTitleOverride??"How to apply",additionalInformationTitle:l?.additionalApplicationTitleOverride??"Additional information",additionalApplicationInformation:l?.additionalApplicationInformation??null,applyNowUrl:m?.applicationURL??null,hideApplyNowButton:l?.hideApplyNowButton??!1},staffContact:e.courseContactDetails&&e.courseContactDetails.length>0?qe(e.courseContactDetails):null,uniContact:e.contactDetails?_e(e.contactDetails):null,faqs:(0,He.U)(e.fAQ),unistats:I,relatedCourses:Ze(e.relatedCourses),clearingAvailable:l?.availableThroughClearing??!1,events:e.events?st(e.events):null,hideCourseMessage:e.hideCourseMessage??!1,promoMessage:l?.promoMessage||l?.promoMessageTitle?{title:l.promoMessageTitle??null,message:l.promoMessage??null}:null,liveChat:e.liveChat??!1}}catch(o){const l=o instanceof t.G?(0,P.yu)(o):o;return(0,P.DG)(l)?{status:"error",error:l,entryTitle:e.entryTitle,entryId:e.sys.id}:{status:"error",entryTitle:e.entryTitle,entryId:e.sys.id}}},Xt=(e,n)=>{try{Oe.safeParse(e);const o=n??e.state,l=[e.overview,e.careers,e.teachingAndAssessment,e.additionalRequirements],m=e.video?tt(e.video,e.videoTheme):null,r=e.imageGallery?nt(e.imageGallery,e.imageGalleryTheme):null,g=e.quote?ot(e.quote):null,w=it({positionControl:e.positionControl,caseStudiesIntroduction:e.caseStudiesIntroduction,caseStudies:e.caseStudies,caseStudiesSliderTheme:e.caseStudiesSliderTheme});return{cpdCourse:!0,status:"success",metadata:se(e),hero:Pt(e,o),keyFacts:$t(e,o),modalContent:lt(e,o),navigation:at(l),introduction:{summary:e.summary??null,statistics:Ye(e.statistics),accrediations:je(e.accreditations),accreditationContent:e.accreditation??null},overview:{overview:e.overview??null,placements:e.placements??null,video:m?.find(I=>I.position==="Overview")??null,gallery:r?.find(I=>I.position==="Overview")??null,quote:g?.find(I=>I.position==="Overview")??null,caseStudy:w?.position==="Overview"?w:null},careers:{careers:e.careers??null,video:m?.find(I=>I.position==="Careers")??null,gallery:r?.find(I=>I.position==="Careers")??null,quote:g?.find(I=>I.position==="Careers")??null,caseStudy:w?.position==="Careers"?w:null},teaching:{teachingIntroduction:e.teachingAndAssessment??null,staffIntroduction:e.staffIntroduction??null,staffMembers:e.staff?he(e.staff,"profile",e.staffSliderTheme):null,video:m?.find(I=>I.position==="Teaching and assessment")??null,gallery:r?.find(I=>I.position==="Teaching and assessment")??null,quote:g?.find(I=>I.position==="Teaching and assessment")??null,caseStudy:w?.position==="Teaching and assessment"?w:null},highlights:Ke(e.highlights,e.highlightsTheme),entryRequirements:{additionalRequirements:e.additionalRequirements??null,anyQuestions:e.anyQuestions?.content??null},staffContact:e.courseContactDetails&&e.courseContactDetails.length>0?qe(e.courseContactDetails):null,uniContact:e.contactDetails?_e(e.contactDetails):null,faqs:(0,He.U)(e.fAQ),relatedCourses:Ze(e.relatedCourses),relatedCourseTitle:"Similar modules to consider",events:e.events?st(e.events):null,hideCourseMessage:e.hideCourseMessage??!1}}catch(o){const l=o instanceof t.G?(0,P.yu)(o):o;return(0,P.DG)(l)?{status:"error",error:l,entryTitle:e.entryTitle,entryId:e.sys.id}:{status:"error",entryTitle:e.entryTitle,entryId:e.sys.id}}},Zt=e=>({metadata:se(e),status:"success",hero:Rt(e),keyFacts:jt(e),content:e.content??null,contactInformation:e.contactInformation??null,id:e.sys.id,categoryId:e.category?.[0]?.sys.id??null}),qt=e=>({title:e?.title??null,subTitle:e.subTitle??null,image:e?.image?(0,B.J)({image:e?.image,height:1440,width:2560}):null,secondImage:e?.secondImage?(0,B.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,B.J)({image:e?.imageMobile,width:720,height:1280}):null,secondImageMobile:e?.secondImageMobile?(0,B.J)({image:e?.secondImageMobile,width:720,height:1280}):null});var _t=i(83692);const en={text:"."},Zn=e=>({text:e}),tn=e=>{if(!e)return"";const n=new Date(e),o=n.getDate(),l=n.toLocaleString("en-GB",{weekday:"long"}),m=n.toLocaleString("en-GB",{month:"long"}),r=n.getFullYear(),g=nn(o);return`${l} ${o}${g} ${m} ${r}`},nn=e=>[1,21,31].includes(e)?"st":[2,22].includes(e)?"nd":[3,23].includes(e)?"rd":"th",on=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?tn(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})),ln=e=>{const n=on(e?.events??[]),o=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,B.J)({image:e.image}):null,featuredTitle:e?.featuredTitle??null,events:o}};var an=i(60554),ke=i(72056);const sn=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})),rn=e=>({title:e.title??null,subtitle:e.subtitle??null,description:e.description??null,image:e?.image?(0,B.J)({image:e?.image}):null,button:e.button??null,statistics:sn(e?.statistics)}),cn=e=>({quoteCards:e.quoteCard.map(n=>({image:n.image?(0,B.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"}),un=e=>({_type:"cardCarousel",title:e.title??null,description:e.description??null,cards:e.cardEntry?e.cardEntry.map(n=>({image:n.image?(0,B.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}),dn=e=>({_type:"alert",title:e?.title??null,alert:e?.content??null}),mn={featureEvents:ln,videoSection:an.X,textBlock:en,latestNewsAndEvents:ke.I,latestNews:ke.I,latestEvents:ke.I,statSectionWithImage:rn,quoteBanner:cn,cardCarousel:un,alert:dn},pn=e=>({metadata:se(e),title:e.title??"",heroBanner:e.heroBanner?qt(e?.heroBanner):void 0,composer:e.composer?{items:(0,_t.mapComposer)(e?.composer,mn)}:void 0,status:"success"}),_n={title:"entryTitle",description:"description"},hn=e=>({title:e.title||e.entryTitle}),gn=e=>{const n=e.openDayItems||[],o=n.map(r=>({id:r.courseArea?.sys?.id,name:r.title??r.courseArea?.title,description:r.courseArea?.description,arrivalLocation:r.courseArea?.arrivalLocation?.name})),l=new Map;n.forEach(r=>{const g=r.title??r.courseArea?.title,w=r.courseArea?.sys?.id,I=r.courseTalks||[],D=r.additionalInfoPopup||null,F=r.arrivalLocation?.name||null;l.has(g)||l.set(g,{courseAreaTitle:g,courseAreaId:w,additionalInfo:D,arrivalLocation:F,courses:[]});const V=l.get(g);I.forEach(K=>{V.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(S=>S&&S.eventType).map(S=>({title:S.title,id:S?.sys?.id,eventType:S.eventType,time:{start:S.startTime??"TBA",end:S.endTime??"TBA"},description:S.entryDescription||S.description,location:{roomName:S.roomInfo?.name??void 0,floor:S.roomInfo?.floor??void 0,roomCode:S.roomInfo?.code??void 0},additionalInfo:S.additionalInfoPopup||null}))})})});const m=Array.from(l.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:o,schedule:m},heroImage:e.bannerImage?(0,B.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,B.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}}},fn=async()=>{const{reducer:e,sagas:n}=await Promise.all([i.e(336),i.e(532)]).then(i.bind(i,64336)),{searchConfig:o}=await i.e(21).then(i.bind(i,68373));return{key:"search",reducer:e(o),saga:n}},ie=e=>(n,o)=>{const l={node:n,...n.entry||{},state:o};return e(l)},vn=[{contentTypeID:d.f.course,component:b,entryMapper:ie(ct),fields:[...new Set(h.tQ)],linkDepth:3},{contentTypeID:d.f.event,component:v,entryMapper:ie(Zt),fields:[...new Set(h.ef)],linkDepth:3},{contentTypeID:d.f.courseCpd,component:b,entryMapper:ie(Xt),fields:[...new Set(h.tQ)],linkDepth:3},{contentTypeID:d.f.eventListing,component:E,entryMapper:ie(hn),fields:[...new Set(h.Xn)],linkDepth:3,injectRedux:fn},{contentTypeID:d.f.openDayProgramme,component:x,entryMapper:ie(gn),fields:[...new Set(h.cj)],linkDepth:5},{contentTypeID:d.f.home,component:c,entryMapper:ie(pn),fields:[...new Set(h.Zf)],linkDepth:3}];var a=i(48322),Tn=i(67115),yn=i(669);const bn=()=>a.createElement(Cn,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)))),Cn=Tn.Ay.div` ${yn.l}; `,An=bn,no={title:"entryTitle",description:"description"},In=[{path:"/test-form",component:An},{path:"/404",component:p},{path:"/zenInfo",ssrOnly:!0,component:k}];var ge=i(72972),te=i(39966);const En={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},xn=(0,ge.jM)((e,n)=>{switch(n.type){case te.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 te.ux:{e.cookies=!0;return}case te.xT:{e.isError=!0,e.error=n.error;return}default:return e}},En);var ne=i(25466);const Sn={isReady:!1,isError:!1,error:null,options:[],courseOptions:{},selectedOption:{},selectedOptionId:"",selectedCourseOptions:{}},On=(0,ge.jM)((e,n)=>{switch(n.type){case ne.Oj:{e.options=n.mappedOptions,e.courseOptions=n.courseOptions,e.selectedOptionId===""&&(e.selectedOptionId=n.mappedOptions[0].optionId??"");break}case ne.J9:{const o=n.id,l=e.options.find(r=>r.optionId===o),m=e.courseOptions.content?.options.find(r=>r.id===o);e.selectedOption=l??e?.options[0],e.selectedOptionId=o??e?.options[0]?.optionId,e.selectedCourseOptions=m??e.courseOptions;break}case ne.xM:{e.isError=!0,e.error=n.error;break}default:break}},Sn),fe="@OPEN_DAY_CONFIG/",zn=`${fe}GET_OPEN_DAY_CONFIG`,ut=`${fe}SET_OPEN_DAY_CONFIG`,Le=`${fe}GET_OPEN_DAY_CONFIG_ERROR`,wn=`${fe}SET_OPEN_DAY_COOKIE_ACCEPTED`,kn={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},Ln=(0,ge.jM)((e,n)=>{switch(n.type){case ut:{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 wn:{e.cookies=!0;return}case Le:{e.isError=!0,e.error=n.error;return}default:return e}},kn);var X=i(46070);const dt="openDayUserPicks",Mn=(()=>{try{const e=localStorage.getItem(dt);if(e)return JSON.parse(e)}catch{}return{chosenCourses:[],chosenAccommodationTalks:[],chosenStudentLifeTalks:[],chosenCampusTourTalks:[],chosenAdviceHubTalks:[]}})();function Z(e){try{localStorage.setItem(dt,JSON.stringify(e))}catch{}}const Dn=(0,ge.jM)((e,n)=>{switch(n.type){case X.T2:{e.chosenCourses=n.payload,Z(e);return}case X.PL:{const o=n.payload,l=e.chosenAccommodationTalks.indexOf(o);l>=0?e.chosenAccommodationTalks.splice(l,1):e.chosenAccommodationTalks.push(o),Z(e);return}case X.lT:{const o=n.payload,l=e.chosenStudentLifeTalks.indexOf(o);l>=0?e.chosenStudentLifeTalks.splice(l,1):e.chosenStudentLifeTalks.push(o),Z(e);return}case X.zz:{const o=n.payload,l=e.chosenCampusTourTalks.indexOf(o);l>=0?e.chosenCampusTourTalks.splice(l,1):e.chosenCampusTourTalks.push(o),Z(e);return}case X.TT:{const o=n.payload,l=e.chosenAdviceHubTalks.indexOf(o);l>=0?e.chosenAdviceHubTalks.splice(l,1):e.chosenAdviceHubTalks.push(o),Z(e);return}case X.Nk:{e.chosenAdviceHubTalks=e.chosenAdviceHubTalks.filter(o=>o!==n.payload),Z(e);return}case X.jH:{const{courseAreaId:o,courseTitle:l}=n.payload;e.chosenCourses=e.chosenCourses.filter(m=>!(m.courseAreaId===o&&m.courseTitle===l)),Z(e);return}case X.ZY:{e.chosenAccommodationTalks=e.chosenAccommodationTalks.filter(o=>o!==n.payload),Z(e);return}case X.tD:{e.chosenStudentLifeTalks=e.chosenStudentLifeTalks.filter(o=>o!==n.payload),Z(e);return}case X.PT:{e.chosenCampusTourTalks=e.chosenCampusTourTalks.filter(o=>o!==n.payload),Z(e);return}default:return e}},Mn),Fn={...{course:On,config:xn,openDayConfig:Ln,openDayUserPicks:Dn}};var M=i(75953),Q=i(18737),Me=i(52546),mt=i(92301);const Pn=e=>!e||e.length<=0?{options:[]}:{options:e.map((o,l)=>({id:o.id??l.toString(),title:`${o.startDate?.entryTitle} - ${o.location?.entryTitle}`,intakeData:o}))},Rn=[(0,M.jP)(ne.sj,pt)];function*pt({api:e}){const n=yield(0,M.Lt)();try{if(!(0,mt.K6)(n)){const o=n.routing.currentPath,l=yield(0,M.Lt)(Me.rE.selectors.selectVersionStatus),m=new Q.XK(Q.Op.equalTo("sys.versionStatus",l),Q.Op.equalTo("sys.contentTypeId",d.f.course),Q.Op.equalTo("sys.uri",o));m.fields=[...new Set(h.tQ)];const g=(yield e.search(m,3))?.items?.[0];if(g){const I=(g?.instance.map(S=>S.intakes.map($=>({...$,parentInstance:S}))).flat()).map(S=>{const{parentInstance:$,...z}=S;return{...g,instance:[{...$,intakes:[z]}]}}),D=We(g.instance),V={icon:"calendar",label:"Start date and location",breakContent:!0,content:{type:"dropdown",options:Pn(D).options}},K=I.map(S=>ct(S,n));K?yield(0,M.yJ)({type:ne.Oj,mappedOptions:K,courseOptions:V}):yield(0,M.yJ)({type:ne.rc})}}}catch(o){yield(0,M.yJ)({type:ne.xM,error:o.toString()})}}function*ao(){const e=yield select();if(e.routing.entry?.sys.contentTypeId===contentTypes.course&&!hasCourseConfig(e)){const o=e.routing?.mappedEntry;if(o){const l=o.intakes,r=l?(g=>{if(!(!g||g.length<=0))return g?.map(w=>{const I=w.id,D=o.instance.filter(F=>F.sys.id===I);return{...o,instance:D[0],intakes:w}})})(l):null;r?yield put({type:SET_OPTIONS,courseOptions:r}):yield put({type:SET_OPTIONS_ERROR})}}}var ht=i(39289);const Nn=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,B.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(o=>({image:{src:o.image.asset.sys.uri,alt:o.image.altText},title:o.title,description:o.description,url:o.url})):void 0,subMenuOne:n.navigationLevelOneItem?.map(o=>({label:o.label,url:o.url,subMenuTwo:o.navigationLevelTwoItem?.map(l=>({label:l.label,url:l.url,subMenuThree:l.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,B.J)({image:e.mapImage}):void 0,mapText:e.mapText},courseMessage:{title:e.courseMessageTitle,message:e.courseMessage}}),Un=[(0,M.jP)(te.M,gt)];function*gt({api:e}){const n=yield(0,M.Lt)();try{if(!(0,ht.cG)(n)){const o=yield(0,M.Lt)(Me.rE.selectors.selectVersionStatus),l=new Q.XK(Q.Op.equalTo("sys.versionStatus",o),Q.Op.or(Q.Op.equalTo("sys.contentTypeId",d.f.config)));if(l.fields=[...h.RM],!h.RM||h.RM.length<=0)return;const m=yield e.search(l,3),r=m?.items?.[0]?Nn(m.items[0]):null;r?yield(0,M.yJ)({type:te.YK,config:r}):yield(0,M.yJ)({type:te.xT})}}catch(o){yield(0,M.yJ)({type:te.xT,error:o.toString()})}}var ft=i(29244);const Bn=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,B.J)({image:e.campusTourVideo.overlayImage}):null}},additionalInfo:e.campusTourAdditionalInfoPopup??void 0},campusMaps:{title:e.campusMapsTitle,mainCampusImage:e.mainCampusImage?(0,B.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,B.J)({image:n.mapImage}):void 0,description:n.description,campusMaps:n.floorInformation?n.floorInformation.map(o=>({label:o.floorName??void 0,campusMapImage:o.floorMap?(0,B.J)({image:o.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}}),$n=[(0,M.jP)(zn,vt)];function*vt({api:e}){const n=yield(0,M.Lt)();try{if(!(0,ft.H)(n)){const o=yield(0,M.Lt)(Me.rE.selectors.selectVersionStatus),l=new Q.XK(Q.Op.equalTo("sys.versionStatus",o),Q.Op.or(Q.Op.equalTo("sys.contentTypeId",d.f.openDayConfig)));if(l.fields=[...h.CB],!h.CB||h.CB.length<=0)return;const m=yield e.search(l,5),r=m?.items?.[0]?Bn(m.items[0]):null;r?yield(0,M.yJ)({type:ut,config:r}):yield(0,M.yJ)({type:Le})}}catch(o){yield(0,M.yJ)({type:Le,error:o.toString()})}}const Gn=[...Rn,...Un,...$n],jn=async()=>{const{routeParams:e,setRouteFilters:n}=await Promise.all([i.e(336),i.e(532)]).then(i.bind(i,64336)),o=(await Promise.all([i.e(336),i.e(43)]).then(i.bind(i,10506))).default;return{routeParams:e,setRouteFilters:n,mappers:o}};var Kn=i(88863),Hn=i(90009),Tt=i.n(Hn),yt=i(43762);function bt(e){return e?!(e.includes(".contensis.cloud")||e.startsWith("http://localhost")):!1}const Yn={onRouteLoad:function*({path:n,ssr:o}){return(yield(0,M.Lt)(ht.cG))||(yield(0,M.T1)(gt,o)),n.includes("/courses")&&((yield(0,M.Lt)(mt.K6))||(yield(0,M.T1)(pt,o))),n.includes("/open-day")&&((yield(0,M.Lt)(ft.H))||(yield(0,M.T1)(vt,o))),yield{customNavigation:{ancestors:!1,children:!1,siblings:!1,tree:!1},entryLinkDepth:0,preventScrollTop:!!n.includes("/courses")}},onRouteLoaded:function*({path:n,entry:o,location:l,staticRoute:m}){const r=o?.sys?.contentTypeId,g=m?.route?.listingType||Kn.py[r];if(n.startsWith("/search")||g){const{routeParams:w,setRouteFilters:I,mappers:D}=yield jn(),F=w(m,l);yield(0,M.T1)(I,{listingType:g,mappers:D,params:F})}(0,yt.A)()&&bt(window?.location.href)&&Tt().dataLayer({dataLayer:{event:"pageview",page:{path:n}}})}},Vn={gtmId:"GTM-NN49B4Z"};(0,yt.A)()&&bt(window.location.href)&&Tt().initialize(Vn);const Wn={routes:{ContentTypeMappings:vn,StaticRoutes:In},stateType:"js",withReducers:Fn,withSagas:Gn,withEvents:Yn};new s.A(u.A,Wn)},32645:()=>{}},O=>{var f=s=>O(O.s=s);O.O(0,[883],()=>(f(32645),f(18136)));var i=O.O()}]);