(window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[]).push([[20],{731:function(e,a,t){"use strict";t.r(a),t.d(a,"default",(function(){return G}));var n=t(0),o=t.n(n),l=t(647);var r={Countries:"countries",Nationalities:"nationalities",SubjectAreas:"subjectAreas",ClearingCourses:"clearingCourses",CourseLevelToSubjectArea:"levelToSubjectAreaDictionary",CourseLevelToSubjectAreaToCourse:"levelToSubjectAreaToCourseDictionary"},i=t(664),s=t(210),u=t(678),d=t(661),c=t(190),p=t(28);const m=0,y=1,b=2,v=3;var I={submitUrl:`.${l.c}${s.a.Enquiry}`,submitLabel:e=>{switch(e.mode.value){case y:return"Keep in touch";case b:case v:return"Email me an international student guide";case m:default:return"Send me a prospectus"}},submitSuccessRoute:e=>{switch(e.mode.value){case y:return"/order-a-prospectus/thank-you-for-sharing";case b:case v:return"/international-students/guide/thank-you";case m:default:return"/order-a-prospectus/thank-you"}},dependentDatasets:[r.Countries,r.Nationalities,r.CourseLevelToSubjectArea,r.CourseLevelToSubjectAreaToCourse],sectionNames:["How can we contact you?","Details about your studies with us:","Keep in touch options:"],fieldDictionary:{firstName:{sectionIndex:0,orderIndex:0,type:i.a.Text,label:"First name (given name)",value:"",required:!0,placeholder:"",autoComplete:"given-name"},lastName:{sectionIndex:0,orderIndex:1,type:i.a.Text,label:"Last name (family name)",value:"",required:!0,placeholder:"",autoComplete:"family-name"},email:{sectionIndex:0,orderIndex:2,type:i.a.Email,label:"Email address",value:"",required:!0,placeholder:"e.g. your.name@fabulous.org"},mobilePhone:{sectionIndex:0,orderIndex:3,type:i.a.Telephone,label:"Mobile Phone Number",subLabel:"Please provide your telephone number if you are happy to be contacted by telephone",value:"",required:!1,placeholder:""},dob:{sectionIndex:0,orderIndex:4,type:i.a.Date,label:"Date of birth",value:"",required:!1,placeholder:"",autoComplete:"bday"},nationality:{sectionIndex:0,orderIndex:5,type:i.a.Select,label:"Nationality",sourceOptions:{name:"nationalities"},value:"",required:!0,placeholder:"-- What is your current nationality? --"},livingInCountry:{sectionIndex:0,orderIndex:6,type:i.a.Select,label:"Country/region you currently live in",sourceOptions:{name:"countries"},value:"",required:!0,placeholder:"-- Where are you currently living? --",autoComplete:"country"},postalProspectus:{sectionIndex:d.a,orderIndex:-1,type:i.a.CalculatedFromField,value:"",calculation:e=>e.livingInCountry.value===d.c&&e.nationality.value===d.c?"1":"0"},mode:{sectionIndex:d.a,orderIndex:-1,type:i.a.CalculatedFromField,calculation:e=>e.nationality.value&&e.livingInCountry.value?e.nationality.value===d.c&&e.livingInCountry.value!==d.c?y:e.nationality.value!==d.c?e.livingInCountry.value===d.c?b:v:m:m},noPostalProspectusMessage:{sectionIndex:0,orderIndex:7,type:i.a.CalculatedMessage,label:null,subLabelCalculation:e=>e.nationality.value===d.c&&e.livingInCountry.value!==d.c?`As you are living outside the UK, we鈥檙e unable to post our prospectus. This is to help us reduce our carbon emissions. Don鈥檛 worry, our website has all the information you need. Check out our Undergraduate Study page and explore the different courses you can choose to study at the ${p.j}. By continuing to fill in this form, you'll receive the latest news and updates from UCLan.`:e.nationality.value&&e.nationality.value!==d.c?'As you are an international student, by filling out this form you will receive a digital version of our International Student Guide. Our guide contains useful information for overseas students. You can also check out our international student webpages and our A-Z course lists for in-depth information on all our programmes.':null,subLabel:null,value:"",required:!1,showIf:[{fieldKey:"livingInCountry",comparison:u.a.HasData},{fieldKey:"nationality",comparison:u.a.HasData}]},addressLine1:{sectionIndex:0,orderIndex:8,type:i.a.Text,label:"Address Line 1",value:"",required:!0,placeholder:"e.g. House #, Street Name",showIf:[{fieldKey:"livingInCountry",value:d.c,comparison:u.a.Equals},{fieldKey:"nationality",value:d.c,comparison:u.a.Equals}],autoComplete:"address-line1"},addressLine2:{sectionIndex:0,orderIndex:9,type:i.a.Text,label:"Address Line 2",value:"",required:!1,placeholder:"",showIf:[{fieldKey:"livingInCountry",value:d.c,comparison:u.a.Equals},{fieldKey:"nationality",value:d.c,comparison:u.a.Equals}],autoComplete:"address-line2"},townCity:{sectionIndex:0,orderIndex:10,type:i.a.Text,label:"Town/City",value:"",required:!1,placeholder:"",showIf:[{fieldKey:"livingInCountry",value:d.c,comparison:u.a.Equals},{fieldKey:"nationality",value:d.c,comparison:u.a.Equals}],autoComplete:"address-level2"},postcode:{sectionIndex:0,orderIndex:11,type:i.a.UKPostCode,label:"Postcode",value:"",required:!0,placeholder:"e.g. PR1 2HE",showIf:[{fieldKey:"livingInCountry",value:d.c,comparison:u.a.Equals},{fieldKey:"nationality",value:d.c,comparison:u.a.Equals}],autoComplete:"postal-code"},studyLevel:{sectionIndex:d.a,orderIndex:-1,type:i.a.Text,value:"undergraduate",label:"Study level"},subjectArea:{sectionIndex:1,orderIndex:1,type:i.a.Select,label:"What subject area are you most interested in?",value:"",required:!0,sourceOptions:{name:"levelToSubjectAreaDictionary",subKeyFilters:["studyLevel"]},placeholder:"-- select one --"},course:{sectionIndex:1,orderIndex:2,type:i.a.Select,label:"What course would you be most interested in?",value:"",required:!1,sourceOptions:{name:"levelToSubjectAreaToCourseDictionary",subKeyFilters:["studyLevel","subjectArea"]},placeholder:"-- Optionally select one --",showIf:[{fieldKey:"subjectArea",comparison:u.a.NotEquals,value:""}]},plannedStartYear:{sectionIndex:1,orderIndex:3,type:i.a.Radio,label:"I'm planning to start my studies between",options:[{label:"September 2025 and August 2026",value:c.a[202526],name:"plannedStartYear",id:"planned-start-year-6"},{label:"September 2026 and August 2027",value:c.a[202627],name:"plannedStartYear",id:"planned-start-year-7"}],value:"",required:!0,placeholder:""},optInEmail:{sectionIndex:2,orderIndex:0,type:i.a.Radio,label:"I would like and consent to receive related news/information via email",value:"",options:[{label:"No",value:"0",name:"optInEmail",id:"opt-in-email-false"},{label:"Yes",value:"1",name:"optInEmail",id:"opt-in-email-true"}],defaultToFirstOption:!1,required:!0,placeholder:""},optInSMS:{sectionIndex:2,orderIndex:1,type:i.a.Radio,label:"I would like and consent to receive related news/information via SMS",value:"",options:[{label:"No",value:"0",name:"optInSMS",id:"opt-in-sms-false"},{label:"Yes",value:"1",name:"optInSMS",id:"opt-in-sms-true"}],showIf:[{fieldKey:"mobilePhone",value:"",comparison:u.a.NotEquals}],defaultToFirstOption:!1,required:!0,placeholder:""},confirmation:{sectionIndex:3,orderIndex:2,type:i.a.Confirmation,label:"I would like and consent to receive news/information about the course via email",value:""},isInternational:{sectionIndex:d.a,orderIndex:-1,type:i.a.CalculatedFromField,calculation:e=>e.nationality.value!==d.c?"1":"0"},utm:{sectionIndex:d.a,orderIndex:-1,type:i.a.UTM},ga:{sectionIndex:d.a,orderIndex:-1,type:i.a.GoogleAnalytics},origin:{sectionIndex:d.a,orderIndex:-1,type:i.a.Origin}}};var h={submitUrl:`${l.c}${s.a.LeadGeneration}`,submitLabel:"Sign up for the mailing list",dependentDatasets:[],sectionNames:[""],fieldDictionary:{firstName:{sectionIndex:0,orderIndex:0,type:i.a.Text,label:"First Name (given name)",value:"",required:!0,placeholder:"",autoComplete:"given-name"},lastName:{sectionIndex:0,orderIndex:1,type:i.a.Text,label:"Last Name (family name)",value:"",required:!0,placeholder:"",autoComplete:"family-name"},email:{sectionIndex:0,orderIndex:2,type:i.a.Email,label:"Email Address",value:"",required:!0,placeholder:"e.g. your.name@fabulous.org"},studyLevel:{sectionIndex:0,orderIndex:3,type:i.a.Radio,label:"Study Level",options:[{label:"Undergraduate",value:"undergraduate",name:"studyLevel",id:"studyLevel-undergraduate"},{label:"Postgraduate Taught",value:"postgraduate",name:"studyLevel",id:"studyLevel-postgraduate"}],value:"",required:!0,placeholder:"",showIf:[{fieldKey:"subjectArea",value:"Astronomy",comparison:u.a.NotEquals}]},studyLevelAstronomy:{sectionIndex:0,orderIndex:3,type:i.a.Radio,label:"Study Level",options:[{label:"Undergraduate",value:"undergraduate",name:"studyLevel",id:"studyLevel-undergraduate"}],value:"",defaultToFirstOption:!1,required:!0,placeholder:"",keyForSubmission:"studyLevel",showIf:[{fieldKey:"subjectArea",value:"Astronomy",comparison:u.a.Equals}]},optInEmail:{sectionIndex:0,orderIndex:4,type:i.a.Radio,label:"I would like and consent to receive related news/information via email",value:"",options:[{label:"No",value:"0",name:"optInEmail",id:"opt-in-email-false"},{label:"Yes",value:"1",name:"optInEmail",id:"opt-in-email-true"}],defaultToFirstOption:!1,required:!0,placeholder:"",validation:e=>"1"!==e?["For us to send you emails we need your permission"]:[]},confirmation:{sectionIndex:0,orderIndex:5,type:i.a.Confirmation,label:"I would like and consent to receive news/information about the course via email confirmation",value:""},subjectArea:{sectionIndex:d.a,value:"",required:!0,placeholder:""},utm:{sectionIndex:d.a,orderIndex:-1,type:i.a.UTM},ga:{sectionIndex:d.a,orderIndex:-1,type:i.a.GoogleAnalytics},origin:{sectionIndex:d.a,orderIndex:-1,type:i.a.Origin}}};var x={submitUrl:`${l.c}${s.a.ProspectiveStudents}`,submitLabel:"Submit your enquiry",submitSuccessRoute:"/contact/studying-and-open-day-enquiry/thank-you",dependentDatasets:[r.Countries,r.Nationalities,r.CourseLevelToSubjectArea,r.CourseLevelToSubjectAreaToCourse],sectionNames:[{title:"How can we contact you?",description:"Our prospective student enquiries team are happy to answer any questions about studying with us, or enquiries about our Open Day events."},{title:"How can we help you?",description:"To help us quickly answer your message, please include as much detail as you can."},{title:"Keep in touch options:"}],fieldDictionary:{firstName:{sectionIndex:0,orderIndex:0,type:i.a.Text,label:"First Name (given name)",value:"",required:!0,placeholder:"",autoComplete:"given-name"},lastName:{sectionIndex:0,orderIndex:1,type:i.a.Text,label:"Last Name (family name)",value:"",required:!0,placeholder:"",autoComplete:"family-name"},email:{sectionIndex:0,orderIndex:2,type:i.a.Email,label:"Email Address",value:"",required:!0,placeholder:"e.g. your.name@fabulous.org"},mobilePhone:{sectionIndex:0,orderIndex:3,type:i.a.Telephone,label:"Mobile Phone Number",subLabel:"Please provide your telephone number if you are happy to be contacted by telephone",value:"",required:!1,placeholder:""},nationality:{sectionIndex:0,orderIndex:4,type:i.a.Select,label:"Nationality",sourceOptions:{name:"nationalities"},value:"",required:!0,placeholder:"-- What is your current nationality? --"},livingInCountry:{sectionIndex:0,orderIndex:5,type:i.a.Select,label:"Country/Region you currently live in",sourceOptions:{name:"countries"},value:"",required:!0,placeholder:"-- Where are you currently living? --",autoComplete:"country"},studyMode:{sectionIndex:0,orderIndex:6,type:i.a.Radio,label:"Study Mode",options:[{label:"Full Time",value:"full-time",name:"studyMode",id:"studyMode-full-time"},{label:"Part Time",value:"part-time",name:"studyMode",id:"studyMode-full-part"}],value:"",required:!0,placeholder:""},studyLevel:{sectionIndex:0,orderIndex:7,type:i.a.Radio,label:"Study Level",options:[{label:"Undergraduate (First degree)",value:"undergraduate",name:"studyLevel",id:"studyLevel-undergraduate"},{label:"Postgraduate Taught",value:"postgraduate",name:"studyLevel",id:"studyLevel-postgraduate"}],value:"undergraduate",required:!0,placeholder:""},subjectArea:{sectionIndex:0,orderIndex:8,type:i.a.Select,label:"What subject area are you most interested in?",value:"",required:!0,sourceOptions:{name:"levelToSubjectAreaDictionary",subKeyFilters:["studyLevel"]},placeholder:"-- select one --"},course:{sectionIndex:0,orderIndex:9,type:i.a.Select,label:"What course would you be most interested in?",value:"",required:!1,sourceOptions:{name:"levelToSubjectAreaToCourseDictionary",subKeyFilters:["studyLevel","subjectArea"]},placeholder:"-- Optionally select one --",showIf:[{fieldKey:"subjectArea",comparison:u.a.NotEquals,value:""}]},plannedStartYear:{sectionIndex:0,orderIndex:10,type:i.a.Radio,label:"I'm planning to start my studies between",options:[{label:"September 2025 and August 2026",value:c.a[202526],name:"plannedStartYear",id:"planned-start-year-6"},{label:"September 2026 and August 2027",value:c.a[202627],name:"plannedStartYear",id:"planned-start-year-7"}],value:"",defaultToFirstOption:!1,required:!0,placeholder:""},enquiry:{sectionIndex:1,orderIndex:0,type:i.a.TextArea,label:"What would you like to know?",value:"",required:!0,placeholder:""},optInEmail:{sectionIndex:2,orderIndex:0,type:i.a.Radio,label:"I would like and consent to receive related news/information via email",value:"",options:[{label:"No",value:"0",name:"optInEmail",id:"opt-in-email-false"},{label:"Yes",value:"1",name:"optInEmail",id:"opt-in-email-true"}],defaultToFirstOption:!1,required:!0,placeholder:""},optInSMS:{sectionIndex:2,orderIndex:1,type:i.a.Radio,label:"I would like and consent to receive related news/information via SMS",value:"",options:[{label:"No",value:"0",name:"optInSMS",id:"opt-in-sms-false"},{label:"Yes",value:"1",name:"optInSMS",id:"opt-in-sms-true"}],showIf:[{fieldKey:"mobilePhone",value:"",comparison:u.a.NotEquals}],defaultToFirstOption:!1,required:!0,placeholder:""},confirmation:{sectionIndex:3,orderIndex:2,type:i.a.Confirmation,label:"I would like and consent to receive news/information about the course via email",value:""},isInternational:{sectionIndex:d.a,orderIndex:-1,type:i.a.CalculatedFromField,calculation:e=>e.nationality.value!==d.c?"1":"0"},utm:{sectionIndex:d.a,orderIndex:-1,type:i.a.UTM},ga:{sectionIndex:d.a,orderIndex:-1,type:i.a.GoogleAnalytics},origin:{sectionIndex:d.a,orderIndex:-1,type:i.a.Origin}}};const g=0,f=1,S=2,w=3;var C={submitUrl:`${l.c}${s.a.InternationalStudentGuide}`,submitLabel:"Email me an international student guide",submitSuccessRoute:"/international-students/guide/thank-you",dependentDatasets:[r.Countries,r.Nationalities,r.CourseLevelToSubjectArea],sectionNames:["How can we contact you?","Details about your studies with us:","Keep in touch options:"],fieldDictionary:{firstName:{sectionIndex:0,orderIndex:0,type:i.a.Text,label:"First name (given name)",value:"",required:!0,placeholder:"",autoComplete:"given-name"},lastName:{sectionIndex:0,orderIndex:1,type:i.a.Text,label:"Last name (family name)",value:"",required:!0,placeholder:"",autoComplete:"family-name"},email:{sectionIndex:0,orderIndex:2,type:i.a.Email,label:"Email address",value:"",required:!0,placeholder:"e.g. your.name@fabulous.org"},dob:{sectionIndex:0,orderIndex:4,type:i.a.Date,label:"Date of birth",value:"",required:!1,placeholder:"",autoComplete:"bday"},nationality:{sectionIndex:0,orderIndex:5,type:i.a.Select,label:"Nationality",sourceOptions:{name:"nationalities"},excludeValues:[d.c],value:"",required:!0,placeholder:"-- What is your current nationality? --"},livingInCountry:{sectionIndex:0,orderIndex:6,type:i.a.Select,label:"Country/region you currently live in",sourceOptions:{name:"countries"},value:"",required:!0,placeholder:"-- Where are you currently living? --",autoComplete:"country"},postalProspectus:{sectionIndex:d.a,orderIndex:-1,type:i.a.CalculatedFromField,value:"0",calculation:()=>0},mode:{sectionIndex:d.a,orderIndex:-1,type:i.a.CalculatedFromField,calculation:e=>e.nationality.value&&e.livingInCountry.value?e.nationality.value===d.c&&e.livingInCountry.value!==d.c?f:e.nationality.value!==d.c?e.livingInCountry.value===d.c?S:w:g:g},studyLevel:{sectionIndex:1,orderIndex:1,type:i.a.Radio,label:"Study level",options:[{label:"Undergraduate (first degree)",value:"undergraduate",name:"studyLevel",id:"studyLevel-undergraduate"},{label:"Postgraduate taught",value:"postgraduate",name:"studyLevel",id:"studyLevel-postgraduate"}],value:"",required:!0,placeholder:""},subjectArea:{sectionIndex:1,orderIndex:2,type:i.a.Select,label:"What subject area are you most interested in?",value:"",required:!0,sourceOptions:{name:"levelToSubjectAreaDictionary",subKeyFilters:["studyLevel"]},showIf:[{fieldKey:"studyLevel",comparison:u.a.NotEquals,value:""}],placeholder:"-- select one --"},plannedStartYear:{sectionIndex:1,orderIndex:3,type:i.a.Radio,label:"I'm planning to start my studies between",options:[{label:"September 2025 and August 2026",value:c.a[202526],name:"plannedStartYear",id:"planned-start-year-6"},{label:"September 2026 and August 2027",value:c.a[202627],name:"plannedStartYear",id:"planned-start-year-7"}],value:"",defaultToFirstOption:!1,required:!0,placeholder:""},optInEmail:{sectionIndex:2,orderIndex:0,type:i.a.Radio,label:"I would like and consent to receive related news/information via email",value:"",options:[{label:"No",value:"0",name:"optInEmail",id:"opt-in-email-false"},{label:"Yes",value:"1",name:"optInEmail",id:"opt-in-email-true"}],defaultToFirstOption:!1,required:!0,placeholder:""},confirmation:{sectionIndex:3,orderIndex:2,type:i.a.Confirmation,label:"I would like and consent to receive news/information about the course via email",value:""},isInternational:{sectionIndex:d.a,orderIndex:-1,type:i.a.CalculatedFromField,calculation:e=>e.nationality.value!==d.c?"1":"0"},utm:{sectionIndex:d.a,orderIndex:-1,type:i.a.UTM},ga:{sectionIndex:d.a,orderIndex:-1,type:i.a.GoogleAnalytics},origin:{sectionIndex:d.a,orderIndex:-1,type:i.a.Origin}}};var q={submitUrl:`${l.c}${s.a.CoursePageLite}`,submitLabel:"Keep me up to date on this course",submitSuccessRoute:null,dependentDatasets:[r.Countries,r.Nationalities],sectionNames:["Your details"],fieldDictionary:{firstName:{sectionIndex:0,orderIndex:0,type:i.a.Text,label:"First name (given name)",value:"",required:!0,placeholder:"",autoComplete:"given-name",column:1},lastName:{sectionIndex:0,orderIndex:1,type:i.a.Text,label:"Last name (family name)",value:"",required:!0,placeholder:"",autoComplete:"family-name",column:2},email:{sectionIndex:0,orderIndex:2,type:i.a.Email,label:"Email address",value:"",required:!0,placeholder:"e.g. your.name@fabulous.org"},nationality:{sectionIndex:0,orderIndex:5,type:i.a.Select,label:"Nationality",sourceOptions:{name:"nationalities"},value:"",required:!0,placeholder:"-- What is your current nationality? --",column:1},livingInCountry:{sectionIndex:0,orderIndex:6,type:i.a.Select,label:"Country/region you currently live in",sourceOptions:{name:"countries"},value:"",required:!0,placeholder:"-- Where are you currently living? --",autoComplete:"country",column:2},subjectArea:{sectionIndex:d.a,orderIndex:-1,value:"",required:!0,placeholder:""},courseTitleWithAward:{sectionIndex:d.a,orderIndex:-1,value:"",required:!0,placeholder:""},confirmation:{sectionIndex:3,orderIndex:2,type:i.a.Confirmation,label:"I would like and consent to receive news/information about the course via email",value:""},isInternational:{sectionIndex:d.a,orderIndex:-1,type:i.a.CalculatedFromField,calculation:e=>e.nationality.value!==d.c?"1":"0"},utm:{sectionIndex:d.a,orderIndex:-1,type:i.a.UTM},ga:{sectionIndex:d.a,orderIndex:-1,type:i.a.GoogleAnalytics},origin:{sectionIndex:d.a,orderIndex:-1,type:i.a.Origin}}};var T={submitUrl:`${l.c}${s.a.OpenDay}`,submitLabel:"Book your place",dependentDatasets:[r.CourseLevelToSubjectArea,r.CourseLevelToSubjectAreaToCourse],sectionNames:[{title:"About you"},{title:"Your learning interests"},{title:"Attendees"},{title:"Data privacy and communications preferences",description:"

We鈥檒l send you follow-up information in relation to your event booking via email, post, telephone and/or SMS.

We鈥檇 love to send you further information that you may find useful about studying with us, such as services and support information, or related news about the University.

"}],fieldDictionary:{firstName:{sectionIndex:0,orderIndex:0,type:i.a.Text,label:"First Name (given name)",value:"",required:!0,placeholder:"",autoComplete:"given-name"},lastName:{sectionIndex:0,orderIndex:1,type:i.a.Text,label:"Last Name (family name)",value:"",required:!0,placeholder:"",autoComplete:"family-name"},email:{sectionIndex:0,orderIndex:2,type:i.a.Email,label:"Email Address",value:"",required:!0,placeholder:"e.g. your.name@fabulous.org"},dob:{sectionIndex:0,orderIndex:3,type:i.a.Date,label:"Date of birth",value:"",required:!1,placeholder:"",autoComplete:"bday"},mobilePhone:{sectionIndex:0,orderIndex:4,type:i.a.Telephone,label:"Mobile Phone Number",subLabel:"Please provide your telephone number if you are happy to be contacted by telephone",value:"",required:!1,placeholder:""},addressLine1:{sectionIndex:0,orderIndex:5,type:i.a.Text,label:"Address Line 1",value:"",required:!0,placeholder:"e.g. House #, Street Name",autoComplete:"address-line1"},addressLine2:{sectionIndex:0,orderIndex:6,type:i.a.Text,label:"Address Line 2",value:"",required:!1,placeholder:"",autoComplete:"address-line2"},townCity:{sectionIndex:0,orderIndex:7,type:i.a.Text,label:"Town/City",value:"",required:!1,placeholder:"",autoComplete:"address-level2"},postcode:{sectionIndex:0,orderIndex:8,type:i.a.UKPostCode,label:"Postcode",value:"",required:!0,placeholder:"e.g. PR1 2HE",autoComplete:"postal-code"},plannedStartYear:{sectionIndex:1,orderIndex:10,type:i.a.Select,label:"I'm planning to start my studies between",options:[{label:"September 2025 and August 2026",value:c.a[202526],name:"plannedStartYear",id:"planned-start-year-6"},{label:"September 2026 and August 2027",value:c.a[202627],name:"plannedStartYear",id:"planned-start-year-7"}],value:"",defaultToFirstOption:!1,required:!0,placeholder:"-- select one --"},showLevels:{sectionIndex:d.a,value:"Yes",type:i.a.Text,required:!0},studyLevelDefault:{sectionIndex:d.a,value:"undergraduate",type:i.a.Text,required:!1},studyLevel:{sectionIndex:1,orderIndex:121,type:i.a.Select,label:"Study level",options:[{label:"Undergraduate",value:"undergraduate",name:"studyLevel",id:"studyLevel-undergraduate"},{label:"Postgraduate Taught",value:"postgraduate",name:"studyLevel",id:"studyLevel-postgraduate"},{label:"Postgraduate Research",value:"postgraduate-research",name:"studyLevel",id:"studyLevel-postgraduate-research"}],value:"",defaultToFirstOption:!1,required:!0,placeholder:"-- select one --",showIf:[{fieldKey:"showLevels",comparison:u.a.Equals,value:"Yes"}]},subjectArea:{sectionIndex:1,orderIndex:122,type:i.a.Select,label:"What subject area are you most interested in?",value:"",required:!0,sourceOptions:{name:"levelToSubjectAreaDictionary",subKeyFilters:["studyLevel"]},placeholder:"-- select one --",showIf:[{fieldKey:"studyLevel",comparison:u.a.NotEquals,value:""}]},course:{sectionIndex:1,orderIndex:222,type:i.a.Select,label:"What course would you be most interested in?",value:"",required:!1,sourceOptions:{name:"levelToSubjectAreaToCourseDictionary",subKeyFilters:["studyLevel","subjectArea"]},placeholder:"-- Optionally select one --",showIf:[{fieldKey:"subjectArea",comparison:u.a.NotEquals,value:""}]},interestedInResearch:{sectionIndex:1,orderIndex:321,type:i.a.TextArea,label:"Are you interested in a research degree programme (Phd, Professional Doctorate or Masters by Research)? If so, please provide your chosen subject/research theme",value:"",required:!1,placeholder:"",showIf:[{fieldKey:"studyLevel",value:"postgraduate-research",comparison:u.a.Equals}]},numberOfGuests:{sectionIndex:2,type:i.a.Number,label:"Number of additional guests",value:"0",required:!0,placeholder:"Enter number of additional guests (Max 4)",min:0,max:4,validation:e=>{if(!/^(\d)+$/.test(e.toString()))return["Only use digits"];if(e.trim().length>0){const a=parseInt(e,10);if(isNaN(a))return["Somehow we dont think this is a number between 0 and 4"];if(a<0||a>4)return["Must be a number between 0 and 4"]}return[]}},specialRequirements:{sectionIndex:2,orderIndex:12,type:i.a.Radio,label:"Do any 海角视频 attendees have disability support requirements?",subLabel:"e.g. accessible needs or anything else..",value:"",options:[{label:"No",value:"No",name:"specialRequirements",id:"specialRequirements-false"},{label:"Yes",value:"Yes",name:"specialRequirements",id:"specialRequirements-true"}],defaultToFirstOption:!0,required:!0},specialRequirementsFreeText:{sectionIndex:2,orderIndex:13,type:i.a.TextArea,label:"Please indicate what support you鈥檒l need.",subLabel:"Our Inclusive Support team will get in touch to help you with your requirements",value:"",required:!0,placeholder:"E.g. BSL interpreter, support for wheelchair user",showIf:[{fieldKey:"specialRequirements",value:"Yes",comparison:u.a.Equals}]},optInEmail:{sectionIndex:3,orderIndex:0,type:i.a.Radio,label:"I would like and consent to receive related news/information via email",value:"",options:[{label:"No",value:"0",name:"optInEmail",id:"opt-in-email-false"},{label:"Yes",value:"1",name:"optInEmail",id:"opt-in-email-true"}],defaultToFirstOption:!1,required:!0,placeholder:""},optInSMS:{sectionIndex:3,orderIndex:1,type:i.a.Radio,label:"I would like and consent to receive related news/information via SMS",value:"",options:[{label:"No",value:"0",name:"optInSMS",id:"opt-in-sms-false"},{label:"Yes",value:"1",name:"optInSMS",id:"opt-in-sms-true"}],showIf:[{fieldKey:"mobilePhone",value:"",comparison:u.a.NotEquals}],defaultToFirstOption:!1,required:!0,placeholder:""},eventId:{sectionIndex:d.a,type:i.a.Text,required:!0},confirmation:{sectionIndex:3,orderIndex:2,type:i.a.Confirmation,label:"I would like and consent to receive news/information about the course via email",value:""},utm:{sectionIndex:d.a,orderIndex:-1,type:i.a.UTM},ga:{sectionIndex:d.a,orderIndex:-1,type:i.a.GoogleAnalytics},origin:{sectionIndex:d.a,orderIndex:-1,type:i.a.Origin}}};var E={submitUrl:`${l.d}${s.a.ClearingRegisterInterest}`,submitLabel:"Submit",dependentDatasets:[r.ClearingCourses],sectionNames:[{title:"About you"},{title:"Qualifications and work experience",description:"Tell us about any qualifications or work experience that relate to your course of interest."},{title:"Privacy statement and communications preferences",description:"By sharing your details, you agree for our Admissions Team to get in touch with you by phone or email. They will chat to you about your study options based on your qualifications and experience.

We鈥檇 also like to send you more useful information about studying with us. Please confirm if we can contact you by these methods below."}],fieldDictionary:{fullName:{sectionIndex:0,orderIndex:0,type:i.a.Text,label:"Full name",value:"",required:!0,placeholder:"e.g. Alex Smith",autoComplete:"name"},email:{sectionIndex:0,orderIndex:2,type:i.a.Email,label:"Email address",value:"",required:!0,placeholder:"e.g. your.name@email.com"},phoneNumber:{sectionIndex:0,orderIndex:4,type:i.a.Telephone,label:"Phone number",value:"",required:!0,placeholder:"e.g. 01772 201201"},modeOfStudy:{sectionIndex:0,orderIndex:4,type:i.a.Radio,label:"Mode of study",options:[{label:"Full-time",value:"full-time",name:"modeOfStudy",id:"modeOfStudy-full-time"},{label:"Part-time",value:"part-time",name:"modeOfStudy",id:"modeOfStudy-part-time"}],required:!0,asRow:!0},courseOfInterest:{sectionIndex:0,orderIndex:5,type:i.a.Select,label:"Course of interest",value:"",required:!0,sourceOptions:{name:"clearingCourses"},placeholder:"Select your course",correctPreSubmit:e=>{let{fieldKey:a,fieldDictionary:t,data:n,dependencyDictionary:o}=e;const l=o.clearingCourses.find(e=>e.value===t.value);l&&(n[a]={title:l.label,sysId:l.value})}},resultsStatus:{sectionIndex:1,orderIndex:10,type:i.a.Select,label:"Have you received your results?",options:[{label:"Yes, I have my results.",value:"yes",name:"resultsStatus",id:"resultsStatus-yes"},{label:"No, I'm awaiting my results.",value:"no",name:"resultsStatus",id:"resultsStatus-no"},{label:"I have no Level 3 qualifications",value:"no-level-3",name:"resultsStatus",id:"resultsStatus-no-level-3"}],placeholder:"Please select...",required:!0,value:""},qualifications:{sectionIndex:1,orderIndex:11,type:i.a.TextArea,label:"Qualifications and relevant work experience",subLabel:"Please provide details of qualifications (either achieved or predicted) in the following format
[Qualification] [Subject] [Grade]. For example:
",value:"",required:!0,placeholder:"e.g. A Level Biology B",showIf:[{fieldKey:"resultsStatus",value:"no-level-3",comparison:u.a.NotEquals}]},nonStandardQualifications:{sectionIndex:1,orderIndex:12,type:i.a.TextArea,label:"Non-standard qualifications and relevant work experience",subLabel:"Example:
Work experience: five years experience as a healthcare assistant",value:"",required:!0,placeholder:"E.g. five years experience as a healthcare assistant",showIf:[{fieldKey:"resultsStatus",value:"no-level-3",comparison:u.a.Equals}]},studentRegistrationNumber:{sectionIndex:1,type:i.a.Text,label:"If you've already applied to university through UCAS this year, please provide your UCAS number",instructions:"This is your 10 digit number you receive when you start a UCAS application",value:"",required:!1,placeholder:"e.g. 123-476-7890",validation:function(e,a){if(void 0===a&&(a=!1),""===e)return[];const t=e.toString().toLowerCase();if(a){if(!/^\d{0,3}-?\d{0,3}-?\d{0,4}$/.test(t))return["Should be 10 digits long, with optional '-' between letters"]}else if(!/^\d{3}-?\d{3}-?\d{4}$/.test(t))return["Should be 10 digits long, with optional '-' between letters"];return[]}},optInEmail:{sectionIndex:2,orderIndex:0,type:i.a.Checkbox,label:"Email",value:!1,options:[{label:"No",value:!1,name:"optInEmail",id:"opt-in-email-false"},{label:"Yes",value:!0,name:"optInEmail",id:"opt-in-email-true"}],defaultToFirstOption:!0,required:!1,placeholder:"",column:1},optInSMS:{sectionIndex:2,orderIndex:1,type:i.a.Checkbox,label:"SMS",value:!1,options:[{label:"No",value:!1,name:"optInSMS",id:"opt-in-sms-false"},{label:"Yes",value:!0,name:"optInSMS",id:"opt-in-sms-true"}],defaultToFirstOption:!0,required:!1,placeholder:"",column:2},optInPhone:{sectionIndex:2,orderIndex:1,type:i.a.Checkbox,label:"Telephone",value:!1,options:[{label:"No",value:!1,name:"optInPhone",id:"opt-in-phone-false"},{label:"Yes",value:!0,name:"optInPhone",id:"opt-in-phone-true"}],defaultToFirstOption:!0,required:!1,placeholder:"",column:3},confirmation:{sectionIndex:3,orderIndex:2,type:i.a.Confirmation,label:"I would like and consent to receive news/information about the course via email",value:""},utm:{sectionIndex:d.a,orderIndex:-1,type:i.a.UTM,correctPreSubmit:e=>{let{fieldKey:a,data:t}=e;t[a]=JSON.parse(t[a])}},ga:{sectionIndex:d.a,orderIndex:-1,type:i.a.GoogleAnalytics},origin:{sectionIndex:d.a,orderIndex:-1,type:i.a.Origin}}};var O={[s.a.Enquiry]:I,[s.a.LeadGeneration]:h,[s.a.ProspectiveStudents]:x,[s.a.InternationalStudentGuide]:C,[s.a.CoursePageLite]:q,[s.a.OpenDay]:T,[s.a.ClearingRegisterInterest]:E},L=t(744),A=t(781),j=t(16),N=t(311);const D={type:t(101).d};var F=t(96),k=t(685),P=t(22),R=t(118);var K=t(24),M=t(7),Y=t(4),U=t(309),W=t(679);const $="Please Note: The University is now closed for the Christmas holidays and will re-open on Thursday 2 January. Our team will reply to your enquiry upon their return.";function _(e){let{formType:a,data:t=null,onSubmitStatus:l=null}=e;const i=O[a],u=Object(j.d)(),d=Object(j.e)(R.b).includes("christmas_break"),p=a===s.a.OpenDay,m=a===s.a.ClearingRegisterInterest;let y=p?t.openDayCampus:null,b=p?t.limitToSubjectTier2SysId:null;p&&(Object(Y.a)(y)||(console.info("Open day campus is not set, setting a default"),y="Preston campus"));const v=Object(n.useCallback)(e=>(!Object(Y.a)(b)||e.subjectTier2SysIds.includes(b))&&Object(M.a)(e.allowedCampusesForOpenDays)&&e.allowedCampusesForOpenDays.includes(y),[y,b]),I=Object(n.useCallback)(()=>Object(N.a)(p?v:null,m),[v,p,m]),h=Object(j.e)(I),x=Object(j.e)(h),{fieldDictionary:g,sectionNames:f,dependentDatasets:S,submitUrl:w,submitLabel:C}=i;if(t&&Object.keys(t).forEach(e=>{void 0!==g[e]&&(g[e].value=t[e])}),p){const e=t.courseLevels.length>1;g.showLevels.value=e?"Yes":"No";const a=t.courseLevels[0],n=e?"":a;g.studyLevelDefault.value=n,g.studyLevel.value=n;const o=[{label:"Undergraduate",value:"undergraduate",name:"studyLevel",id:"studyLevel-undergraduate"},{label:"Postgraduate Taught",value:"postgraduate",name:"studyLevel",id:"studyLevel-postgraduate"},{label:"Postgraduate Research",value:"postgraduate-research",name:"studyLevel",id:"studyLevel-postgraduate-research"}];g.studyLevel.options=o.filter(e=>t.courseLevels.includes(e.value));const l=1===t.courseLevels.length&&"undergraduate"===a;g.plannedStartYear.label=l?"I鈥檓 planning to start my studies in":"I鈥檓 planning to start my studies between",g.plannedStartYear.options=[{label:l?"September 2025":"September 2025 and August 2026",value:c.a[202526],name:"plannedStartYear",id:"planned-start-year-6"},{label:l?"September 2026":"September 2026 and August 2027",value:c.a[202627],name:"plannedStartYear",id:"planned-start-year-7"}],Object(Y.a)(t.limitToAcademicTerm)&&(g.plannedStartYear.options=g.plannedStartYear.options.filter(e=>e.value===t.limitToAcademicTerm))}const[q,T]=Object(n.useState)({}),[E,K]=Object(n.useState)(null),[_,G]=Object(n.useState)(null),[B,H]=Object(n.useState)(null),[Q,J]=Object(n.useState)({success:null,error:null,isSubmitting:!1}),z=Object(n.useCallback)(e=>{J(e),null==l||l(e)},[l]),V=i.dependentDatasets.length>0;Object(n.useEffect)(()=>{V&&u(D)},[u,V]),Object(n.useEffect)(()=>{if(!Object(M.a)(S))return;const e={};S.forEach(a=>{switch(a){case r.Countries:e.countries=Object(A.a)();break;case r.ClearingCourses:e.clearingCourses=x.clearingCourses;break;case r.SubjectAreas:e.subjectAreas=x.subjectAreas;break;case r.Nationalities:e.nationalities=Object(A.b)();break;case r.CourseLevelToSubjectArea:e.levelToSubjectAreaDictionary=x.levelToSubjectAreaDictionary;break;case r.CourseLevelToSubjectAreaToCourse:e.levelToSubjectAreaToCourseDictionary=x.levelToSubjectAreaToCourseDictionary}}),T(a=>Object.assign({},a,e))},[x,S]);const Z=Object(n.useCallback)(()=>{z(Object.assign({},Q,{success:null,error:null,isSubmitting:!1}))},[Q,z]);return Object(n.useEffect)(()=>{let e=null;a===s.a.Enquiry?e=(e=>o.a.createElement(o.a.Fragment,null,o.a.createElement("p",null,"Thank you for requesting a prospectus."),d&&o.a.createElement("p",null,$),"1"===(null==e?void 0:e.postalProspectus)&&o.a.createElement("p",null,d?"Your request for a printed copy 海角视频 prospectus will be processed as\n soon as we return.":"Your request for a printed copy 海角视频 prospectus will be processed as\n soon as possible."),o.a.createElement("p",null,"Best Wishes,",o.a.createElement("br",null),"The Course Enquiries Team.")))(E):a===s.a.LeadGeneration?e=o.a.createElement(o.a.Fragment,null,d&&o.a.createElement("p",null,$),o.a.createElement("p",null,"We will send you updates with related information via email.")):a===s.a.ProspectiveStudents?e=o.a.createElement(o.a.Fragment,null,o.a.createElement("p",null,"Thank your for your enquiry."),o.a.createElement("p",null,d?$:"We'll get back to you as soon as we can.")):a===s.a.ClearingRegisterInterest?e=o.a.createElement(o.a.Fragment,null,o.a.createElement("p",null,o.a.createElement("strong",null,"Thank you for registering your interest with us for Clearing.")),o.a.createElement("p",null,"If you already have your results, we will be in touch with you to discuss your application based on the information you've provided."),o.a.createElement("p",null,"If you're still waiting for your results, we'll contact you on Thursday 14 August to talk through your options based on the grades you achieve.")):a===s.a.OpenDay&&(e=o.a.createElement(o.a.Fragment,null,o.a.createElement("p",null,o.a.createElement("strong",null,"Thank you for booking your place.")),o.a.createElement("p",null,"We're looking forward to seeing you on campus."),o.a.createElement("p",null,"We'll be in touch with more details about what you can expect on the day."),o.a.createElement("p",null,"Please keep an eye on your inbox for an email from us."))),H(a===s.a.ClearingRegisterInterest||a===s.a.OpenDay?o.a.createElement(o.a.Fragment,null,e):o.a.createElement(o.a.Fragment,null,o.a.createElement("h2",null,"Thank you."),o.a.createElement("p",null,"Your information was received successfully."),e)),G(o.a.createElement(o.a.Fragment,null,o.a.createElement("h2",null,"Oops!"),o.a.createElement("p",null,"We could not send the information to our systems."),o.a.createElement("p",null,"Either try again or contact us on"," ",o.a.createElement(k.a,{emailAddress:W.a,label:W.a})),Q.error&&o.a.createElement("p",null,Q.error),o.a.createElement("p",null,o.a.createElement(F.default,{onClick:e=>Z(e)},"Retry"))))},[E,Q,d,a,Z]),o.a.createElement(L.a,{initialFieldDictionary:g,sectionNames:f,dependencyDictionary:q,submitStatus:Q,submitLabel:C,successContent:B,errorContent:_,onSubmitForm:async(e,a,t)=>{const n="function"==typeof i.submitSuccessRoute?i.submitSuccessRoute(t):i.submitSuccessRoute;K(Object.assign({},e)),Object(P.d)({actionOrActions:[P.b.CLICK,"form-start-submit"]}),z(Object.assign({},Q,{isSubmitting:!0}));try{const a=Object.assign({},e);Object.entries(t).filter(e=>{let[,a]=e;return"function"==typeof a.correctPreSubmit}).forEach(e=>{let[t,n]=e;return n.correctPreSubmit({fieldKey:t,fieldDictionary:n,data:a,dependencyDictionary:q})});const o=await fetch(w,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(null!=o&&o.ok)z(Object.assign({},Q,{success:!0,isSubmitting:!1})),Object(P.d)({actionOrActions:P.b.FORM_SUBMITTED_OK}),Object(Y.a)(n)&&u(Object(U.a)(n));else{if(!o)throw new Error("Unknown error occurred");{let e="";if(404===o.status)e="Could not reach server to send data to. (404)";else{const a=await o.text();e=`A server or network error occurred ${o.status} ${o.statusText} ${a}`}z(Object.assign({},Q,{success:!1,error:e||o.statusText,isSubmitting:!1})),Object(P.d)({actionOrActions:P.b.FORM_ERROR,label:e})}}}catch(e){z(Object.assign({},Q,{success:!1,error:Object(Y.a)(e.message)?e.message:""+e,isSubmitting:!1})),Object(P.d)({actionOrActions:P.b.FORM_ERROR,label:`${e.message} ${e.status}`})}},formId:a,scrollToTop:p||m,showPrivacyStatement:p})}function G(e){let{formType:a,data:t=null,onSubmitStatus:n=null}=e;return O[a]?o.a.createElement(_,{formType:a,data:t,onSubmitStatus:n}):K.a}}}]); //# sourceMappingURL=20.0cf5b734498078d342f7.mjs.map