1var LOCATIONS=[{label:"Any Campus",value:null},{label:"Warrnambool",value:"Warrnambool"},{label:"Sherwood Park",value:"Sherwood Park"},{label:"Hamilton",value:"Hamilton"},{label:"Portland",value:"Portland"},{label:"Colac",value:"Colac"},{label:"Stawell",value:"Stawell"},{label:"Glenormiston",value:"Glenormiston"},{label:"South Australia",value:"South Australia"},{label:"Workplace Training",value:"Workplace Training"}],STUDY_MODES=[{label:"Any mode",value:null},{label:"Full-time",value:"Full-time"},{label:"Part-time",value:"Part-time"},{label:"Apprenticeship",value:"Apprenticeship"},{label:"Traineeship",value:"Traineeship"},{label:"Short Course",value:"Short Course"}],STUDY_AREAS=[{label:"All Study Areas",value:null},{label:"Agriculture & Horticulture",value:"Agriculture & Horticulture"},{label:"Arts",value:"Arts"},{label:"Building & Construction",value:"Building & Construction"},{label:"Business",value:"Business"},{label:"Civil Construction",value:"Civil Construction"},{label:"Electrical",value:"Electrical"},{label:"Engineering",value:"Engineering"},{label:"Food & Hospitality",value:"Food & Hospitality"},{label:"Hair, Beauty & Wellness",value:"Hair, Beauty & Wellness"},{label:"Health & Community Services",value:"Health & Community Services"},{label:"High Risk Work Licences",value:"High Risk Work Licences"},{label:"Motorcycle Licences",value:"Motorcycle Licences"},{label:"OHS",value:"OHS"}];$(document).ready(function(){$(".accordion__toggle").on("click",function(e){e.preventDefault(),($accordionParentElement=$(this).parent()).toggleClass("accordion--open"),$(".accordion__content",$accordionParentElement).slideToggle(300)})});const shortyAccs=document.querySelectorAll(".shorty-acc__toggle"),shortyBook=(shortyAccs.forEach(e=>{e.addEventListener("click",({target:e})=>{var e=e.closest(".shorty-acc"),t=e.querySelector(".shorty-acc__toggle"),e=e.querySelector(".shorty-acc__content");"true"===t.getAttribute("aria-expanded")?(t.setAttribute("aria-expanded",!1),e.setAttribute("aria-hidden",!0)):(t.setAttribute("aria-expanded",!0),e.setAttribute("aria-hidden",!1))})}),document.querySelector(".shorty-book"));function updateFullWidthElements(a){a=$(window).width();$(".full-width").each(function(e,t){$(this).css("width",a+"px"),$(this).css("margin-left",-a/2+"px"),$(this).trigger("full-width-resize")})}function checkForMapsToInit(){$(".map").length&&initializeMap()}shortyBook&&shortyBook.addEventListener("click",e=>{var t,a=document.getElementById("course-dates").querySelector(".shorty-acc");a&&(t=a.querySelector(".shorty-acc__toggle"),a=a.querySelector(".shorty-acc__content"),t.setAttribute("aria-expanded",!0),a.setAttribute("aria-hidden",!1))}),$(function(){var E=$("body");if(window.currentTab=0,window.hasInvalidValue=!1,window.formGa={second:!1,third:!1,final:!1},window.formAge=0,E.hasClass("page-type--applynowform")){const B=$("#apply-now-form"),s=document.querySelector("#apply-now-form"),r=$(".apply-now__next"),i=$(".apply-now__back");E=$(".apply-now__save");const l=$(".apply-now__submit"),c=[document.querySelector('[data-step="0"]'),document.querySelector('[data-step="1"]'),document.querySelector('[data-step="2"]'),document.querySelector('[data-step="3"]')],u=$("#FirstName"),d=$("#PreferredName");$("#WhatAreYouInterested-Another");var R=$("#UserCourseAreas");const W=$("#Course"),h=$("#UserSelectedCourse"),p=$("#dob-day"),g=$("#dob-month"),m=$("#dob-year");var e,t;$("#parent-guardian-details");const f=$("#IsPostalAddressHome-Yes"),G=$("#IsPostalAddressHome-No"),v=$("#different-postal-address"),y=$("#IsStudyAddressHome-Yes"),J=$("#IsStudyAddressHome-No"),b=$("#different-study-address"),w=$("#CompletedHigherEducation-Yes"),j=$("#CompletedHigherEducation-No"),_=$(".higher-education-details"),k=$(".visa-field-wrapper"),C=$('[name="ResidencyStatus"]'),Q=$('[name="CountryOfBirth"]'),S=$(".other-birth-country"),K=$("#OtherCountryOfBirth"),Z=$("#ArrivalYear"),X=$('[name="IsAboriginalAndTorresStraitIslander"]'),A=$(".origin-specify-radios"),ee=$
1('[name="Origin]'),te=$('[name="OtherLanguage"]'),q=$(".other-spoken-language"),ae=$("#MostSpokenLanguage"),oe=$('[name="HasDisability"'),D=$(".additional-support-options"),L=$(".additional-support-other"),ne=$('[name="DisabilityCondition"]'),se=$("#OtherDisabilityCondition"),re=$('[name="DigitalTechnology"]'),N=$(".other-digital-technology"),ie=$("#OtherDigitalTechnology"),le=$('[name="HasEnoughSupport"]'),P=$(".support-condition"),ce=$("#SupportCondition"),ue=$('[name="PreferredPaymentMethod"]'),M=$(".third-party-payment"),de=$("#ThirdPartyBusinessName"),he=$("#ThirdPartyContactName"),pe=$("#ThirdPartyContactEmail"),ge=$("#ThirdPartyContactPhone"),me=$('[name="CreditTransfer"]'),T=$(".credit-transfer"),fe=$('[name="ApplyForRecognitionOfPriorLearning"]'),I=$(".previous-work-info"),ve=$("#PreviousWork"),ye=$('[name="CompletedHigherEducation"]'),O=$(".higher-education-details"),be=$('[name="EnrolledInSecondarySchool"]'),x=$(".enrollment-note"),we=document.querySelectorAll(".gte-one");if(F(R.val(),!1),V(h.val()),R.change(function(e){F(e.target.value,!0)}),h.change(function(e){V(e.target.value)}),r.on("click",function(e){e.preventDefault();var e=c[window.currentTab],t=e.querySelectorAll("input,textarea,select");if(t.length){window.hasInvalidValue=!1;for(let e=0;e<t.length;e+=1)n(t[e])}window.hasInvalidValue?(e=e.querySelectorAll("input.input-validation-error, select.input-validation-error, textarea.input-validation-error")).length&&e[0].parentElement.scrollIntoView({behavior:"smooth",block:"center"}):(c[window.currentTab].classList.remove("active"),window.currentTab+=1,c[window.currentTab].classList.add("active"),0<window.currentTab&&i.show(),3===window.currentTab&&(r.hide(),l.show()),2!==window.currentTab||window.formGa.second||(window.formGa.second=!0,gtag&>ag("event","Proceed to second step",{event_category:"Apply Now Form",event_label:"Next"})),3!==window.currentTab||window.formGa.third||(window.formGa.third=!0,gtag&>ag("event","Proceed to third step",{event_category:"Apply Now Form",event_label:"Next"})),3!==window.currentTab||window.formGa.final||(window.formGa.final=!0,gtag&>ag("event","Proceed to final step",{event_category:"Apply Now Form",event_label:"Next"})),s.scrollIntoView({behavior:"smooth"}))}),i.on("click",function(e){e.preventDefault(),c[window.currentTab].classList.remove("active"),--window.currentTab,c[window.currentTab].classList.add("active"),s.scrollIntoView({behavior:"smooth"}),0===window.currentTab&&i.hide(),window.currentTab<3&&(r.show(),l.hide())}),E.on("click",function(e){e.preventDefault();var e=new FormData(s),t=Object.fromEntries(e.entries()),e=(t.DisabilityCondition=e.getAll("DisabilityCondition"),t.PreferredLearningMethod=e.getAll("PreferredLearningMethod"),t.DigitalTechnology=e.getAll("DigitalTechnology"),t.FinancialSupport=e.getAll("FinancialSupport"),JSON.stringify(t));fetch("/Umbraco/Api/ApplyNow/SaveAndContinue",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:e}).then(e=>{if(e&&e.status){const t=document.querySelector("#applyNowModal"),a=document.querySelector("#applyNowModal-bg");t&&a&&(t.classList.add("show"),a.classList.add("show"),t.addEventListener("click",()=>{t.classList.remove("show"),a.classList.remove("show")}),a.addEventListener("click",()=>{t.classList.remove("show"),a.classList.remove("show")}))}e.json()})}),B.on("submit",function(e){e.preventDefault();var t,a,e=c[window.currentTab],o=e.querySelectorAll("input,textarea,select");if(o.length){window.hasInvalidValue=!1;for(let e=0;e<o.length;e+=1)n(o[e])}window.hasInvalidValue?(e=e.querySelectorAll("input.input-validation-error, select.input-validation-error, textarea.input-validation-error")).length&&e[0].parentElement.scrollIntoView({behavior:"smooth",block:"center"}):($("input[name=Campus]:checked").length<1&&$("#campus-not-sure").prop("checked",!0),e=p.val(),t=g.val(),a=m.val(),B[0].DateOfBirth.value=a+"-"+t+"-"+e,gtag&>ag("event","Successfully submit",{event_category:"Apply Now Form",event_label:"Submit",transport_type:"beacon"}),s.submit())}),i.hide(),l.hide(),u&&d){const $e=document.querySelector(".pref-name-note");u.on("blur",e=>{d.val(e.target.value)}),$e&&d.on("change",e=>{e.target.value&&e.target.value!==u.val()?$e.classList.add("show"):$e.classList.remove("show")})}if(G&&f&&v&&(f.checked||v.hide(),G.on("change",e=>{e.target.checked&&(v.show(),v.find("input,select").prop("required",!0))}),f.on("change",e=>{e.target.checked&&(v.hide(),v.find("input,select").prop("required",!1))})),J&&y&&b&&(y.checked||b.hide(),J.on("change",e=>{e.target.checked&&(b.show(),b.find("input,select").prop("required",!0))}),y.on("change",e=>{e.target.checked&&(b.hide(),b.find("input,select").prop("required",!1))})),j&&w&&_&&(w.checked||_.hide(),j.on("change",e=>{e.target.checked&&_.show()}),w.on("change",e=>{e.target.checked&&_.hide()})),p&&g&&m&&(p.on("change",()=>{o()}),g.on("change",()=>{o()}),m.on("change",()=>{o()})),C&&k&&(e=C.filter('[value="Permanent humanitarian visa"]'),t=C.filter('[value="Temporary entry permit or diplomat"]'),e&&e.checked||t&&t.checked||k.hide(),C.on("change",e=>{"Permanent humanitarian visa"===e.target.value&&e.target.checked||"Temporary entry permit or diplomat"===e.target.value&&e.target.checked?k.show():k.hide()})),Q&&K&&Z&&S&&((e=Q.filter('[value="Other"]'))&&e.checked||S.hide(),Q.on("change",e=>{"Australia"===e.target.value&&e.target.checked?(S.hide(),K.prop("required",!1),Z.prop("required",!1)):(S.show(),K.prop("required",!0),Z.prop("required",!0))})),X&&ee&&A&&((t=X.filter('[value="No"]'))&&t.checked||A.hide(),X.on("change",e=>{"No"===e.target.value&&e.target.checked?(A.hide(),ee.prop("required",!1)):(A.show(),ee.prop("required",!0))})),te&&ae&&q&&((e=te.filter('[value="No"]'))&&e.checked||q.hide(),te.on("change",e=>{"No"===e.target.value&&e.target.checked?(q.hide(),ae.prop("required",!1)):(q.show(),ae.prop("required",!0))})),oe&&D&&L&&ne&&se&&((t=oe.filter('[value="No"]'))&&t.checked||D.hide(),(e=ne.f
1ilter('[value="Other, please specify"]'))&&e.checked||L.hide(),oe.on("change",e=>{"No"===e.target.value&&e.target.checked?(D.hide(),L.hide()):D.show()}),ne.on("change",e=>{"Other, please specify"===e.target.value&&(e.target.checked?(L.show(),se.prop("required",!0)):(L.hide(),se.prop("required",!1)))})),re&&N&&ie&&((t=re.filter('[value="Other"]'))&&t.checked||N.hide(),N.hide(),re.on("change",e=>{"Other"===e.target.value&&(e.target.checked?(N.show(),ie.prop("required",!0)):(N.hide(),ie.prop("required",!1)))})),le&&P&&ce&&((e=le.filter('[value="Yes"]'))&&e.checked||P.hide(),le.on("change",e=>{"Yes"===e.target.value&&e.target.checked?(P.show(),ce.prop("required",!0)):(P.hide(),ce.prop("required",!1))})),ue&&de&&he&&pe&&ge&&M&&((t=ue.filter('[value="Authority to Invoice (Third Party to Pay)"]'))&&t.checked||M.hide(),ue.on("change",e=>{"Authority to Invoice (Third Party to Pay)"===e.target.value&&e.target.checked?(M.show(),de.prop("required",!0),he.prop("required",!0),pe.prop("required",!0),ge.prop("required",!0)):(M.hide(),de.prop("required",!1),he.prop("required",!1),pe.prop("required",!1),ge.prop("required",!1))})),me&&T&&((e=me.filter('[value="Yes"]'))&&e.checked||T.hide(),me.on("change",e=>{"Yes"===e.target.value&&e.target.checked?T.show():T.hide()})),fe&&I&&ve&&((t=fe.filter('[value="No"]'))&&t.checked||I.hide(),fe.on("change",e=>{"Yes"===e.target.value&&e.target.checked?(I.show(),ve.prop("required",!0)):(I.hide(),ve.prop("required",!1))})),ye&&O&&((e=ye.filter('[value="No"]'))&&e.checked&&O.hide(),ye.on("change",e=>{"No"===e.target.value&&e.target.checked?O.hide():O.show()})),be&&x&&((t=be.filter('[value="No"]'))&&t.checked&&window.formAge<17&&x.addClass("show"),be.on("change",e=>{"No"===e.target.value&&e.target.checked&&window.formAge<17?x.addClass("show"):x.removeClass("show")})),we.length)for(let e=0;e<we.length;e+=1){var U=we[e].querySelectorAll('input[type="checkbox"]');if(U.length)for(let e=0;e<U.length;e+=1)U[e].addEventListener("change",e=>{n(e.target)})}var H=s.querySelectorAll("input,textarea,select");for(let e=0;e<H.length;e+=1){var a=H[e];a.dataset.valRequired&&(a.required="required"),a.addEventListener("invalid",e=>{n(e.target)}),a.addEventListener("blur",e=>{n(e.target)})}function F(e,a){var o=Number.parseInt(e,10);if(-1!==o&&(window.allCourseOptions=window.allCourseOptions||h.find("option"),window.allCourseOptions.length)){let t="";for(let e=0;e<window.allCourseOptions.length;e+=1){var n=window.allCourseOptions[e],s=n.dataset.area?Number.parseInt(n.dataset.area,10):0;s!==o&&0!==s&&0!==e||(t+=n.outerHTML),a&&h.val("")}t&&h.html(t)}}function V(e){e&&W.val(e)}function n(e){var t=e.name,a=e.closest(".required-multi-choice-question")||e.closest(".swtf-control")||e.parentElement,o=(a.querySelector("label"),a.querySelector(`[data-valmsg-for="${t}"]`));if($(e).valid()&&"-1"!==e.value){if("checkbox"===e.type&&e.required)if(0==a.querySelectorAll('input[name="'+t+'"]:checked').length)return o&&(o.innerText="This field is required.",o.classList.add("field-validation-error")),e.classList.add("input-validation-error"),void(window.hasInvalidValue=!0);e.classList.remove("input-validation-error"),o&&(o.classList.remove("field-validation-error"),o.innerText="")}else e.required&&o&&(e.classList.add("input-validation-error"),o.classList.add("field-validation-error"),window.hasInvalidValue=!0)}function o(){var e=$("#dob-day"),t=$("#dob-month"),a=$("#dob-year"),o=$("#DateOfBirth"),n=$("#parent-guardian-details"),s=$(".parent-guardian-details--heading"),e=e.val(),t=t.val(),a=a.val();e&&t&&a&&(a=a+"-"+t+"-"+e,t=dayjs(),(e=dayjs(a,"YYYY-MM-DD")).isValid()&&(o.val(a),o=n.find("input"),t.subtract(18,"year").isAfter(e)?(o.length&&o.prop("required",!1),n.hide(),s.hide()):(o.length&&o.prop("required",!0),n.show(),s.show()),window.formAge=t.diff(e,"year")),a=$(".dob-note"),o=$("#EnrolledInSecondarySchool-No"),a&&(window.formAge<17?a.addClass("show"):a.removeClass("show")),o)&&(19<=window.formAge&&o.prop("checked",!0),window.formAge<17)&&(o.checked?x.addClass("show"):x.addClass("hide"))}function z(){var e=document.querySelector("#Address"),t=document.querySelector("#PostalAddress"),a=document.querySelector("#StudyAddress");(autocomplete=new google.maps.places.Autocomplete(e,{componentRestrictions:{country:["au"]},fields:["address_components"],types:["address"]})).addListener("place_changed",()=>Y()),(autocompletePostal=new google.maps.places.Autocomplete(t,{componentRestrictions:{country:["au"]},fields:["address_components"],types:["address"]})).addListener("place_changed",()=>Y("postal")),(autocompleteStudy=new google.maps.places.Autocomplete(a,{componentRestrictions:{country:["au"]},fields:["address_components"],types:["address"]})).addListener("place_changed",()=>Y("study"))}function Y(e){let t=null,a="";var o={address:"",city:"",postcode:"",state:""};if("postal"===e?(t=autocompletePostal.getPlace(),a="Postal"):"study"===e?(t=autocompleteStudy.getPlace(),a="Study"):t=autocomplete.getPlace(),t){for(const i of t.address_components)switch(i.types[0]){case"subpremise":o.address=i.long_name+" / ";break;case"street_number":o.address+=i.long_name+" ";break;case"route":o.address+=""+i.long_name;break;case"postal_code":o.postcode=i.long_name;break;case"locality":o.city=i.long_name;break;case"administrative_area_level_1":o.state=i.long_name}var e=document.querySelector(`#${a}Address`),n=document.querySelector(`#${a}Town`),s=document.querySelector(`#${a}Postcode`),r=document.querySelector(`#${a}State`);r.focus(),e&&o.address&&(e.value=o.address),n&&o.city&&(n.value=o.city),s&&o.postcode&&(s.value=o.postcode),r&&o.state&&(r.value=o.state)}}o(),setTimeout(()=>{window.initAutocomplete=z,window.initAutocomplete()},2500)}}
1),$(function(){var e=$("body");const r={"Course Guide":{link:{url:"/about-us/publications",text:"The South West TAFE Course Guide is available to download here."},text:"If you would like to get in touch regarding the course guide, please continue and fill out the form below."},"Apprenticeships and Traineeships":{link:{url:"/apprenticeships-traineeships",text:"Information about Apprenticeships and Traineeships can be found here."},text:"If you would like to get in touch regarding Apprenticeships and Traineeships, please continue and fill out the form below."},Scholarships:{link:{url:"/study/scholarships",text:"Information about our scholarships can be found here."},text:"If you would like to get in touch regarding our scholarships, please continue and fill out the form below."},"Awards (Certificates & Statement of Attainment)":{link:{url:"/students/graduation-awards",text:"Information about our graduations and awards can be found here."},text:"If you would like to get in touch regarding graduations and awards, please continue and fill out the form below."},"Skills & Jobs Centre":{link:{url:"/pathfinders",text:"Information about Pathfinders Skills & Jobs Centre can be found here."},text:"If you would like to get in touch regarding the Pathfinders Skills & Jobs Centre, please continue and fill out the form below."},"Short Courses":{link:{url:"/courses/short-courses",text:"Information about short courses can be found here."},text:"If you would like to get in touch regarding short courses, please continue and fill out the form below."},"Secondary School Student (VETDSS)":{link:{url:"https://vetdss.swtafe.edu.au/",text:"Information about VETDSS can be found on our VETDSS Portal."},text:"If you would like to get in touch regarding VETDSS, please continue and fill out the form below."},"Feedback and Complaints":{link:{url:"/about-us/feedback",text:"Information about feedback and complaints can be found here."},text:"If you would like to get in touch regarding feedback and complaints, please continue and fill out the form below."}};if(e.hasClass("page-type--askaquestionform")){var t,e=$("#ask-a-question-form"),i=$("#WhatAreYouInterested-Another"),a=$("#WhatAreYouInterested-NotSure"),o=$("#UserCourseAreas"),n=$("#contact-email"),s=$("#contact-phone"),l=$("#Email"),c=$("#SubscribeToMailingList"),u=$("#PhoneNumber"),d=$("#ContactTime"),h=$("#what-level-are-you-interested"),p=$("#WhatAreYouInterested-Preselected"),g=$("#what-will-be-your-study-location"),m=$(".swtafe-form__loading-indicator"),f=$("#EnquiryType"),v=$("#OrgUnit"),y=$("#OrgUnitNotSure"),b=$("#StudyAreaOther"),w=!1,_=(i.change(function(){D()}),a.change(function(){D()}),p.change(function(){D()}),D(),p.length&&(p.is(":checked")&&(h.hide(),h.find("select").prop("disabled",!0)),i.change(function(){h.show(),h.find("select").prop("disabled",!1)}),a.change(function(){h.show(),h.find("select").prop("disabled",!1)}),p.change(function(){h.hide(),h.find("select").prop("disabled",!0)})),L(),f.change(function(){L()}),$.validator.addMethod("courseAreaNeeded",function(e,t,a){return!i.prop("checked")||"-1"!==e},"Course area must be selected."),$.validator.addMethod("phoneValidation",function(e,t,a){return!$("#contact-phone").is(":checked")||!0===(window.phoneNumberParser?window.phoneNumberParser():null)},"Please enter a valid phone number."),$.validator.addMethod("emailValidation",function(e,t,a){return!$("#contact-email").is(":checked")||/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)},"Please enter a valid email address."),e.validate({rules:{FirstName:{required:!0},LastName:{required:!0},DescribeYourself:{required:!0},UserCourseAreas:{courseAreaNeeded:!0},Enquiry:{required:!0},Email:{required:!0,emailValidation:!0},PhoneNumber:{required:"#contact-phone:checked",phoneValidation:!0}},messages:{UserCourseAreas:{courseAreaNeeded:"Required"}}})),k=(o.change(function(){i.prop("checked",!0)}),$("input[name=ContactMethods]").change(N),N(0,!0),e.change(M),!0);e.on("submit",function(e){var t=$(this);m.show(),t.valid()?(D(),p.prop("checked")&&($(t[0].OrgUnit).val(null),$("#Course").prop("disabled",!0)),$("input[name=Campus]:checked").length<1&&$("#campus-not-sure").prop("checked",!0),console.log("ask a question form sent."),k=!1,gtag&>ag("event","Successfully submit",{event_category:"Ask A Question Form",event_label:"Submit",transport_type:"beacon"})):(alert("We weren't able to send your enquiry, please check all fields and try again."),M(),e.preventDefault(),m.hide())}),$(window).on("unload",function(){k&>ag&>ag("event","Leave page without submitting",{event_category:"Ask A Question Form",transport_type:"beacon"})});const T=document.querySelector(".study-area-other__control select"),I=document.querySelector(".study-area-other__field");if(T&&I){window.otherKey="";for(var C=T.childNodes,S=0;S<C.length;S+=1){var A=C[S],q=A.innerText;A&&q&&q.toLowerCase().includes("other")&&(window.otherKey=A.value)}window.otherKey&&T.addEventListener("change",function(){w=T.value===window.otherKey?(I.classList.add("visible"),b.prop("required",!0),!0):(I.classList.remove("visible"),b.prop("required",!1),!1)})}e=document.querySelector(".pref-name-control");const O=document.querySelector(".pref-name-note");function D(){var e=f.find(":selected").text();""!==e&&"Course Enquiry"!==e||(p.prop("checked")?(v.prop("disabled",!0),y.prop("disabled",!0)):a.prop("checked")?(y.val(!0),y.prop("disabled",!1),v.prop("disabled",!0),b.prop("required",!1)):(y.val(!1),y.prop("disabled",!0),v.prop("disabled",!1),b.prop("required",w)))}function L(){var e=f.find(":selected").text(),t=$("#what-year-you-start"),a=$("#what-are-you-interested"),o=$(".swtafe-form__enquiry-content"),n=$(".swtafe-form__enquiry-content .swtafe-form__enquiry-link"),s=$(".swtafe-form__enquiry-content .swtafe-form__enquiry-text");e&&("Course Enquiry"===e?(t.show(),a.show(),h.show(),g.show(),a.find("input").prop("disabled",!1),g.find("input").prop("disabled",!1),h.find("select").prop("disabled",!1),i.parent().find("select").prop("disabled",!1),t.find("select").prop("disabled",!1)):(t.hide(),a.hide(),h.hide(),g.hide(),a.find("input").prop("disabled",!0),g.find("input").prop("disabled",!0),h.find("select").prop("disabled",!0),i.parent().find("select").prop("disabled",!0),t.find("select").prop("disabled",!0)),Object.prototype.hasOwnProperty.call(r,e)?(o.show(),s.text(r[e].text),n.attr("href",r[e].link.url),n.text(r[e].link.text)):o.hide())}function N(e,t){n.prop("checked"),s.prop("checked"),c.prop("disabled",!n.prop("checked")),d.prop("disabled",!s.prop("checked")),t||(n.prop("checked")||_.element("#Email"),s.prop("checked"))||_.element("#PhoneNumber")}function P(){o.parents(".swtf-control__radio").toggleClass("has-error",o.hasClass("error")),l.parents(".swtafe-form__contact").toggleClass("has-error",l.hasClass("error")),u.parents(".swtafe-form__contact").toggleClass("has-error",u.hasClass("error"))}function M(){t&&clearTimeout(t),t=setTimeout(P,250)}e&&O&&e.addEventListener("input",function(e){e.target.value?O.classList.add("show"):O.classList.remove("show")})}}),$(document).ready(function(){var a=$(".footer");$(".brick__link").on("click",function(e){var t;a.width()<768&&(e.preventDefault(),t=(e=$(this).parent()).find(".brick__more-info-container"),e.toggleClass("brick--open"),t.slideToggle(300))})}),$(document).ready(function(){function t(e){$('.active[data-campus-id!="'+e+'"]',$campusListElement).removeClass("active"),$('[data-campus-id="'+e+'"]',$campusListElement).addClass("active")}$bodyElement=$("body"),$campusListElement=$(".campus-list"),$footerElement=$(".footer"),$(".campus-list__names-link").on("click",function(e){768<=$footerElement.width()&&$footerElement.width()<1200&&(e.preventDefault(),t($(this).attr("data-campus-id")))}),$(".campus-list__names-link").on("mouseenter",function(e){1200<=$footerElement.width()&&t($(this).attr("data-campus-id"))}),$(".campus-list__view-map").on("click",function(e){e.preventDefault(),$bodyElement.addClass("campus-map--open")}),$(".campus-map__close, .campus-map-scrim").on("click",function(e){e.preventDefault(),$bodyElement.removeClass("campus-map--open")})}),jQuery(function(t){const a=t("#course-upcoming-intakes");a.length&&t(document).on("click",".intro-cta__button",function(e){e.preventDefault(),t("html, body").animate({scrollTop:a.offset().top},600,function(){a.find(".shorty-acc__toggle").attr("aria-expanded","true"),a.find(".shorty-acc__content").attr("aria-hidden","false")})})}),$(function(){var t,e;$("body").hasClass("page-type--coursearea")&&(t=new Vue({el:".courses-listing",data:courses,methods:{prev:function(){this.fetch(e.selectedCampus.value,e.selectedMode.value,Math.max(1,this.pageNumber-1))},next:function(){this.fetch(e.selectedCampus.value,e.selectedMode.value,Math.min(this.pageNumber+1,this.totalPages))},reset:function(){e.fetchOnUpdate=!1,e.selectedCampus=e.campuses[0],e.selectedMode=e.modes[0],e.fetchOnUpdate=!0,this.fetch(e.selectedCampus.value,e.selectedMode.value,1)},ga:function(){gtag&>ag("event","Select a course",{event_category:"Course Landing",transport_type:"beacon"})},fetch:function(e,t,a){var o=this;$.getJSON("/umbraco/api/searchapi/filtercourses/",{umbracopageId:currentPage,page:a||1,campus:e,studymode:t},function(e){o.pageSize=e.pageSize,o.pageNumber=e.pageNumber,o.totalItems=e.totalItems,o.totalPages=e.totalPages,o.items=e.items})},freeModal:function(e){e.preventDefault(),openFeeFreeModal()}}}),e=new Vue({el:".filters--courses-listing",data:function(){var e={campuses:LOCATIONS,modes:STUDY_MODES,fetchOnUpdate:!0};return e.selectedCampus=e.campuses[0],e.selectedMode=e.modes[0],e},created:function(){},computed:{selectedCampusLabel:function(){return null===this.selectedCampus?"Any Campus":this.selectedCampus.label},selectedModeLabel:function(){return null===this.selectedMode?"Any Mode":this.selectedMode}},watch:{selectedCampus:function(e){this.fetchOnUpdate&&t.fetch(e.value,this.selectedMode.value)},selectedMode:function(e){this.fetchOnUpdate&&t.fetch(this.selectedCampus.value,e.value)}},methods:{selectCampus:function(e,t){this.toggleDropdown(e,!1),this.selectedCampus=t},isCampusSelected:function(e){return this.selectedCampus===e},isModeSelected:function(e){return this.selectedMode===e},selectMode:function(e,t){this.toggleDropdown(e,!1),this.selectedMode=t},toggleDropdown:function(e,t){$(e.target).parents(".filter").toggleClass("open",t)}}}))}),$(function(){$("body");$(".fee-free").on("click",function(e){e.preventDefault(),$("#feeFree").modal()}),$(".job-trainer").on("click",function(e){e.preventDefault(),$("#jobTrainer").modal()})}),$(document).ready(function(){var t;$(window).on("resize",function(e){clearTimeout(t),t=setTimeout(function(){updateFullWidthElements()},200)}),updateFullWidthElements()}
1),$(document).ready(function(){var e=$("body"),t=$('a.sw-btn--primary[href^="/about-us/apply-now/"]'),a=$('a.sw-btn--primary[href^="/about-us/ask-a-question/"]'),o=$("form.ga-search-nav");e.hasClass("page-type--homepage")&&(o.each(function(){$(this).data("ga",!0)}).on("submit",function(){gtag&>ag("event","Search (nav)",{event_category:"Homepage",transport_type:"beacon"})}),$("form#course-search").on("submit",function(){gtag&>ag("event","Search (page)",{event_category:"Homepage",transport_type:"beacon"})}),$("a.news-preview__featured-item-link, a.news-preview__item-link").on("click",function(){gtag&>ag("event","View news article",{event_category:"Homepage",transport_type:"beacon"})}),$("a.story__link").on("click",function(){gtag&>ag("event","Read success story",{event_category:"Homepage",transport_type:"beacon"})}),$("a.quicklinks__link").on("click",function(){gtag&>ag("event","Quicklinks",{event_category:"Homepage",transport_type:"beacon"})}),$("a.campus-list__names-link").on("click",function(){gtag&>ag("event","Campuses",{event_category:"Homepage",transport_type:"beacon"})}),$("a.explore-areas__link").on("click",function(){gtag&>ag("event","Course Area links",{event_category:"Homepage",transport_type:"beacon"})}),$("a.featured-course__link").on("click",function(){gtag&>ag("event","Short course links",{event_category:"Homepage",transport_type:"beacon"})}
1)),e.hasClass("page-type--homepage-campaign")&&$("a.hero-campaign__cta").on("click",function(){gtag&>ag("event","Primary call to action",{event_category:"Homepage Campaign",transport_type:"beacon"})}),e.hasClass("page-type--campaignpage")&&($("a.hero-campaign__cta").on("click",function(){gtag&>ag("event","Call To Action button",{event_category:"Campaign Detail",transport_type:"beacon"})}),$("form").on("submit",function(){$(this).valid()&>ag&>ag("event","Successful form submit",{event_category:"Campaign Detail",transport_type:"beacon"})})),e.hasClass("page-type--courseslanding")&&($("form#course-search").on("submit",function(){gtag&>ag("event","Search",{event_category:"Course Areas",transport_type:"beacon"})}),$("a.brick__link").on("click",function(){gtag&>ag("event","Select a course area",{event_category:"Course Areas",transport_type:"beacon"})})),e.hasClass("page-type--coursearea")&&(t.each(function(){$(this).data("ga",!0)}).on("click",function(){gtag&>ag("event","Apply now",{event_category:"Course Landing",transport_type:"beacon"})}),a.each(function(){$(this).data("ga",!0)}).on("click",function(){gtag&>ag("event","Ask a question",{event_category:"Course Landing",transport_type:"beacon"})})),e.hasClass("page-type--course")&&(t.each(function(){$(this).data("ga",!0)}).on("click",function(){gtag&>ag("event","Apply now",{event_category:"Course Detail",transport_type:"beacon"})}),a.each(function(){$(this).data("ga",!0)}).on("click",function(){gtag&>ag("event","Ask a question",{event_category:"Course Detail",transport_type:"beacon"})}),$("a.course-pdf-button").on("click",function(){gtag&>ag("event","View Course PDF",{event_category:"Course Detail",transport_type:"beacon"})})),t.filter(function(){return!$(this).data("ga")}).on("click",function(){gtag&>ag("event","Apply now",{event_category:"Global",transport_type:"beacon"})}),a.filter(function(){return!$(this).data("ga")}).on("click",function(){gtag&>ag("event","Ask a question",{event_category:"Global",transport_type:"beacon"})}),o.filter(function(){return!$(this).data("ga")}).on("submit",function(){gtag&>ag("event","Search",{event_category:"Global",transport_type:"beacon"})})}),$(document).ready(function(){var t=$("body"),a=$(".header-desktop__menu-item"),o="header-desktop__menu-item--open";$(document).on("click",".header-desktop__menu-link",function(e){e.preventDefault();e=$(this).parent();e.hasClass(o)?e.removeClass(o):(a.filter("."+o).find(".header-desktop__menu-link").trigger("click"),e.addClass(o))}),$(document).on("click",".header-desktop__menu-item--courses .header-desktop__menu-link",function(e){e.preventDefault(),t.toggleClass("courses-menu-open")})}),$(document).ready(function(){var t=$("body"),a=$(".mobile-menu__category");$(document).on("click",".header-mobile__toggle--menu",function(e){e.preventDefault(),t.removeClass("search-open"),t.toggleClass("mobile-menu-open")}),$(document).on("click",".mobile-menu__category-toggle",function(e){e.preventDefault();e=$(this).parent();a.not(e).removeClass("mobile-menu__category--open"),e.toggleClass("mobile-menu__category--open")})}),$(document).ready(function(){var t=$("body"),a=$(".desktop-search__query"),o=$(".mobile-search__query"),n="desktop-search-toggle",s="header-mobile__toggle--search";$(document).on("click","."+s+", ."+n,function(e){e.preventDefault(),t.removeClass("mobile-menu-open"),t.toggleClass("search-open"),$(this).hasClass(n)?a.focus():$(this).hasClass(s)&&o.focus()})}),$(document).ready(function(){var t={arrows:!1,dots:!0,fade:!0,speed:600,touchThreshold:10,autoplay:!1,autoplaySpeed:6e3},e=$(".hero-carousel__slides").slick(t);$(".hero-carousel").on("full-width-resize",function(e){$(".hero-carousel__slides").slick("unslick").slick(t)}),$(".hero-carousel__pagination-previous").on("click",function(){e.slick("slickPrev")}),$(".hero-carousel__pagination-next").on("click",function(){e.slick("slickNext")})}),$(document).ready(function(){var t,e=!1;function a(){!e&&window.matchMedia("(min-width: 768px)").matches&&($("video source").each(function(){$(this).attr("src",$(this).attr("data-src"))}),$("video").each(function(){$(this)[0].load()}),e=!0)}$(window).on("resize",function(e){clearTimeout(t),t=setTimeout(function(){a()},200)}),a()});var BASE="/";function getParameterByName(e,t){t=t||window.location.href,e=e.replace(/[\[\]]/g,"\\$&");e=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);
1return e?e[2]?decodeURIComponent(e[2].replace(/\+/g," ")):"":null}$.get(BASE+"svg/icons.svg",function(e){var t=document.createElement("div");t.className="icons-svg",t.innerHTML=(new XMLSerializer).serializeToString(e.documentElement),document.body.insertBefore(t,document.body.childNodes[0])}),$(document).ready(function(){}),$(document).ready(function(){var t={arrows:!1,dots:!0,fade:!0,speed:600,touchThreshold:10,autoplay:!0,autoplaySpeed:6e3};$(".news-carousel__slides").slick(t),$(".news-carousel").on("full-width-resize",function(e){$(".news-carousel__slides").slick("unslick").slick(t)})}),$(function(){var t,n;$("body").hasClass("page-type--newslisting")&&(t=new Vue({el:".news-listing",data:newsItems,methods:{getNewsDetail:function(e){return e.Date+" / "+("successStory"===e.DocumentTypeAlias?"Success Story":e.Category[0]||"")},prev:function(){this.fetch(n.selectedCategory,n.selectedDate,Math.max(1,this.pageNumber-1))},next:function(){this.fetch(n.selectedCategory,n.selectedDate,Math.min(this.pageNumber+1,this.totalPages))},reset:function(){n.fetchOnUpdate=!1,n.selectedCategory="allzzzz",n.selectedDate="all",n.fetchOnUpdate=!0,this.fetch(n.selectedCategory,n.selectedDate,1)},fetch:function(e,t,a){var o=this;$.getJSON("/umbraco/api/searchapi/filternewsitems/",{umbracoPageId:umbracoPageId,page:a||1,category:e,date:t},function(e){o.pageSize=e.SearchResults.pageSize,o.pageNumber=e.SearchResults.pageNumber,o.totalItems=e.SearchResults.totalItems,o.totalPages=e.SearchResults.totalPages,o.items=e.SearchResults.items,n.dateCounters=e.DateCounts,n.$forceUpdate(),n.updateDateList()})}}}),n=new Vue({el:".filters--news-listing",data:{selectedCategory:"all",selectedDate:"all",expandedDateList:null,dateList:null,categoryList:null,fetchOnUpdate:!0,dateCounters:null},mounted:function(){var a=getParameterByName("category").toLowerCase(),e=$(this.$refs["category-filter"]).find(".filter__listing-item:not(.filter__listing-item--expandable)");this.categoryList=e.map(function(e,t){t=$(t);return null!=a&&""!=a&&a==t.data("value").toLowerCase()&&(this.selectedCategory=t.data("value")),{label:t.find(".filter__listing-item-label").text().trim(),value:t.data("value")}}.bind(this)).toArray(),this.updateDateList()},computed:{selectedCategoryLabel:function(){return"all"===this.selectedCategory?"All Category":"success stories"===this.selectedCategory?"Success Stories":this.selectedCategory},selectedDateLabel:function(){return"all"===this.selectedDate?"All Dates":this.selectedDate}},watch:{selectedCategory:function(e){this.fetchOnUpdate&&t.fetch(e,this.selectedDate)},selectedDate:function(e){this.fetchOnUpdate&&t.fetch(this.selectedCategory,e)}}
1,methods:{updateDateList:function(){var e=$(this.$refs["dates-filter"]).find(".filter__listing-item:not(.filter__listing-item--expandable)");this.dateList=e.map(function(e,t){t=$(t);return{label:t.find(".filter__listing-item-label").text().trim(),value:t.data("value")}}).toArray()},getFilterListingItem:function(e){return $(e.target).hasClass("filter__listing-item")?$(e.target):$(e.target).parents(".filter__listing-item")},selectDate:function(e){var t=this.getFilterListingItem(e);this.selectedDate=t.data("value"),this.toggleDropdown(e,!1)},selectCategory:function(e){var t=this.getFilterListingItem(e);this.selectedCategory=t.data("value"),this.toggleDropdown(e,!1)},toggleDropdown:function(e,t){$(e.target).parents(".filter").toggleClass("open",t)},expandDateList:function(e){this.expandedDateList===e?this.expandedDateList=null:this.expandedDateList=e},getCounter:function(e){if(this.dateCounters&&void 0!==this.dateCounters[e])return e+" ("+this.dateCounters[e]+")"}}}))}),$(function(){var t,a,o,n,e,s,r,i,l,c;function u(){for(var e=window.location.search.slice(1).split("&"),t=0;t<e.length;t++){var a=e[t].split("=");if("query"===a[0])return unescape(a[1]).replace(/\+/g," ")}return null}$("body").hasClass("page-type--searchresultspage")&&(t=$("#search-results-course-count"),a=$("#search-results-other-count"),o=$("#search-form"),n=$('a[href="#other-results"]'),e=!0,s=new Vue({el:"#study-areas",data:{areas:courseAreaResults}}),r=new Vue({el:".search-results-listing",data:otherPageResults&&otherPageResults.items?otherPageResults:{items:[],pageNumber:1,pageSize:10,totalPages:0,totalItems:0},methods:{parseDescription:function(e){return e},prev:function(){this.fetch(u(),Math.max(1,this.pageNumber-1))},next:function(){this.fetch(u(),Math.min(this.pageNumber+1,this.totalPages))},update:function(e){this.pageSize=e.pageSize,this.pageNumber=e.pageNumber,this.totalItems=e.totalItems,this.totalPages=e.totalPages,this.items=[...e.items],a.text("("+this.totalItems+")")},fetch:function(e,t){var a=this;$.getJSON("/umbraco/api/searchapi/filterallpages/",{page:t||1,query:e},function(e){a.update(e)})}}}),i=new Vue({el:".courses-listing",data:courseResults&&courseResults.items?courseResults:{items:[],pageNumber:1,pageSize:10,totalPages:0,totalItems:0},methods:{prev:function(){this.fetch(l.selectedCampus.value,l.selectedMode.value,Math.max(1,this.pageNumber-1))},next:function(){this.fetch(l.selectedCampus.value,l.selectedMode.value,Math.min(this.pageNumber+1,this.totalPages))},reset:function(){l.fetchOnUpdate=!1,l.selectedCampus=l.campuses[0],l.selectedMode=l.modes[0],l.fetchOnUpdate=!0,this.fetch(l.selectedCampus.value,l.selectedMode.value,1)},update:function(e){this.pageSize=e.pageSize,this.pageNumber=e.pageNumber,this.totalItems=e.totalItems,this.totalPages=e.totalPages,this.items=[...e.items],t.text("("+this.totalItems+")")},ga:function(){e=!1,gtag&>ag("event","Select a course",{event_category:"Search Results",transport_type:"beacon"})},fetch:function(e,t,a){var o=this,a={query:u(),page:a||1,campus:e,studymode:t};$.getJSON("/umbraco/api/searchapi/filtercourses/",a,function(e){o.update(e)})}}}),l=new Vue({el:".filters--courses-listing",data:function(){var e={campuses:LOCATIONS,modes:STUDY_MODES,fetchOnUpdate:!0};return e.selectedCampus=e.campuses[0],e.selectedMode=e.modes[0],e},computed:{selectedCampusLabel:function(){return null===this.selectedCampus?"Any Campus":this.selectedCampus.label},selectedModeLabel:function(){return null===this.selectedMode?"Any Mode":this.selectedMode}},watch:{selectedCampus:function(e){this.fetchOnUpdate&&i.fetch(e.value,this.selectedMode.value)},selectedMode:function(e){this.fetchOnUpdate&&i.fetch(this.selectedCampus.value,e.value)}},methods:{selectCampus:function(e,t){this.toggleDropdown(e,!1),this.selectedCampus=t},isCampusSelected:function(e){return this.selectedCampus===e},isModeSelected:function(e){return this.selectedMode===e},selectMode:function(e,t){this.toggleDropdown(e,!1),this.selectedMode=t},toggleDropdown:function(e,t){$(e.target).parents(".filter").toggleClass("open",t)}}}),o.on("submit",function(e){var t=this.query.value.trim();t?$.getJSON("/umbraco/api/searchapi/search/",{query:t},function(e){i.update(e.CourseResults),r.update(e.OtherPageResults),s.areas=e.CourseAreaResults,!e.CourseResults.totalItems&&e.OtherPageResults.totalItems&&n.tab("show"),gtag&>ag("event","Clarify Search",{event_category:"Search Results",transport_type:"beacon"}),window.history.pushState({keyword:t},"Search","?query="+t)}):this.query.focus(),e.preventDefault()}),window.addEventListener("popstate",function(e){var t=u();t&&(o.get(0).query.value=t)}),o.get(0).query.value=u(),i&&i.items||!otherPageResults.totalItems||(console.log(i),n.tab("show")),c=!1,n.on("click",function(){c||(c=!0,gtag&>ag("event","Rest of the site tab",{event_category:"Search Results",transport_type:"beacon"}))}),$("a.search-results-item__link").on("click",function(){e=!1}),$(window).on("unload",function(){e&>ag&>ag("event","Unsuccessful search",{event_category:"Search Results",transport_type:"beacon"})}))}),$(function(){var t,r,e;$("body").hasClass("page-type--shortcourseslanding")&&(e=$("#search-form"),console.log("$searchForm",e),t=new Vue({el:".courses-listing",data:courses,created:function(){this.keyword="",this.selMonth="",this.selArea="",this.selCampus="",this.months=["","January","February","March","April","May","June","July","August","September","October","November","December"],this.showing=this.getShowing(courses
1)},methods:{prev:function(){this.fetch(r.selectedCampus.value,r.selectedArea.value,this.keyword,this.selMonth,Math.max(1,this.pageNumber-1))},next:function(){this.fetch(r.selectedCampus.value,r.selectedArea.value,this.keyword,this.selMonth,Math.min(this.pageNumber+1,this.totalPages))},clear:function(e){"query"===e&&(this.keyword=""),"month"===e&&(this.selMonth=""),"area"===e&&(r.selectedArea=r.areas[0],this.selArea=""),"campus"===e&&(r.selectedCampus=r.campuses[0],this.selCampus=""),this.fetch(r.selectedCampus.value,r.selectedArea.value,this.keyword,this.selMonth,1)},reset:function(){r.fetchOnUpdate=!1,r.selectedCampus=r.campuses[0],r.selectedArea=r.areas[0],r.fetchOnUpdate=!0,this.keyword="",this.selMonth="",this.selArea="",this.selCampus="",this.fetch(r.selectedCampus.value,r.selectedArea.value,this.keyword,this.selMonth,1)},ga:function(){gtag&>ag("event","Select a course",{event_category:"Course Landing",transport_type:"beacon"})},getShowing:function(e){console.log("getShowing",e.totalPages);var t;return 0===e.totalItems?"":1===e.totalItems?"Showing 1 short course":1===e.totalPages?"Showing "+e.totalItems+" short courses":"Showing "+(e.pageNumber*e.pageSize-e.pageSize+1)+"-"+(t=(t=e.pageNumber*e.pageSize)>e.totalItems?e.totalItems:t)+" of "+e.totalItems+" short courses"},fetch:function(e,t,a,o,n){var s=this;r.selectedArea.value?s.selArea=r.selectedArea.label:s.selArea="",r.selectedCampus.value?s.selCampus=r.selectedCampus.label:s.selCampus="",$.getJSON("/umbraco/api/searchapi/filtercourses/",{umbracopageId:currentPage,page:n||1,query:a||"",month:o||"",campus:e,studyAreaId:t,courseType:"Short Course"},function(e){s.pageSize=e.pageSize,s.pageNumber=e.pageNumber,s.totalItems=e.totalItems,s.totalPages=e.totalPages,s.items=e.items,s.showing=s.getShowing(e)})},searchQuery:function(e){e.preventDefault(),this.keyword=$(e.target).find(".course-search__query").val().trim(),this.fetch(r.selectedCampus.value,r.selectedArea.value,this.keyword,this.selMonth,1)},searchMonth:function(e){this.selMonth=e,this.fetch(r.selectedCampus.value,r.selectedArea.value,this.keyword,this.selMonth,1)},freeModal:function(e){e.preventDefault(),openFeeFreeModal()}}}),r=new Vue({el:".filters--courses-listing",data:function(){var t=[{label:"All Study Areas",value:null}],e=(Object.keys(studyAreas).forEach(e=>{console.log("studyArea",studyAreas[e]),t.push({label:studyAreas[e],value:e})}),{campuses:LOCATIONS,areas:t,fetchOnUpdate:!0});return e.selectedCampus=e.campuses[0],e.selectedArea=e.areas[0],e},created:function(){},computed:{selectedCampusLabel:function(){return null===this.selectedCampus?"Any Campus":this.selectedCampus.label},selectedAreaLabel:function(){return null===this.selectedArea?"All Study Areas":this.selectedArea}},watch:{selectedCampus:function(e){this.fetchOnUpdate&&t.fetch(e.value,this.selectedArea.value,t.keyword,t.selMonth)},selectedArea:function(e){this.fetchOnUpdate&&t.fetch(this.selectedCampus.value,e.value,t.keyword,t.selMonth)}},methods:{selectCampus:function(e,t){this.toggleDropdown(e,!1),this.selectedCampus=t},isCampusSelected:function(e){return this.selectedCampus===e},isAreaSelected:function(e){return this.selectedArea===e},selectArea:function(e,t){this.toggleDropdown(e,!1),this.selectedArea=t},toggleDropdown:function(e,t){$(e.target).parents(".filter").toggleClass("open",t)}}}))}),$(document).ready(function(){$('a[href*="#"]').not('a[href="#"]').not('[role="tab"]').click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")||location.hostname==this.hostname){var e=$(this.hash);if((e=e.length?e:$("[name="+this.hash.slice(1)+"]")).length)return $("html,body").animate({scrollTop:e.offset().top},750),!1}})}),$(document).ready(function(){var t={arrows:!1,dots:!0,fade:!0,speed:600,touchThreshold:10,autoplay:!0,autoplaySpeed:6e3};$(".stories-carousel__slides").slick(t),$(".stories-carousel").on("full-width-resize",function(e){$(".stories-carousel__slides").slick("unslick").slick(t)})}); 2//# sourceMappingURL=app.min.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.