PageSourceSearch

https://www.westernsydney.edu.au/etc.clientlibs/wsu-core-v2/client…-9c7b085bc7e61bba5ddc84936d9687bf-lc.min.js

js westernsydney.edu.au collected 2026-09-24 07:51:03 UTC 126,225 bytes, 1 lines download raw bytes

1!function(){var e={470:function(){const e=(e,t)=>e.getElementsByClassName(t)[0];document.addEventListener("DOMContentLoaded",(()=>{window.innerWidth>991&&document.querySelectorAll(".wsu-heading__block").forEach((t=>{const n=e(t,"component--heading--block-description"),o=e(t,"component--heading--block-title");e(t,"component--heading--block-buttons").style.display=o.offsetHeight<=64?"flex":"none",n.classList.toggle("hide__description",n.offsetHeight>68)}))}))},592:function(){!function(){"use strict";var e='[data-cmp-is="helloworld"]',t='[data-cmp-hook-helloworld="property"]',n='[data-cmp-hook-helloworld="model"]';function o(e){e&&e.element&&function(e){e.element.removeAttribute("data-cmp-is");var o=e.element.querySelectorAll(t);o=1==o.length?o[0].textContent:null;var r=e.element.querySelectorAll(n);r=1==r.length?r[0].textContent:null,console&&console.log}(e)}function r(){for(var t=document.querySelectorAll(e),n=0;n<t.length;n++)new o({element:t[n]});var r=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,i=document.querySelector("body");new r((function(t){t.forEach((function(t){var n=[].slice.call(t.addedNodes);n.length>0&&n.forEach((function(t){t.querySelectorAll&&[].slice.call(t.querySelectorAll(e)).forEac
1h((function(e){new o({element:e})}))}))}))})).observe(i,{subtree:!0,childList:!0,characterData:!0})}"loading"!==document.readyState?r():document.addEventListener("DOMContentLoaded",r)}()},479:function(){!function(){"use strict";var e={defaultFilters:[{value:"all",label:"All"}],minCharsToSearch:3,text:{noResults:"No Results Found.",viewAllResults:"View all results",allFilter:"All"},timing:{focusOutDelay:150,filterApplyDelay:600,periodicCheckInterval:500,initialLoadDelay:100,filterUpdateDebounce:300},queryParam:"query",selectors:{autocomplete:"algolia-autocomplete",aaAutocomplete:".aa-Autocomplete",aaPanel:".aa-Panel",aaInput:".aa-Input",aaForm:".aa-Form",searchPanel:".global-search-panel",suggestions:".global-search__suggestions",filters:".global-search__filters",tabContainer:".search-tab-container",viewAll:".global-search__view-all"},attributes:{redirectUrl:"redirect-url",panelId:"data-panel-id",enhanced:"data-enhanced",sourceId:"data-autocomplete-source-id",filter:"data-filter",minCharLimit:"min-character-limit"}};function t(t){var o=document.createElement("div");o.className=e.selectors.filters.substring(1);var r=function(t){var n=[{value:"all",label:e.text.allFilter}];if(t){var o=t.querySelectorAll(".search-tab"),r={};o.forEach((function(t){var n=t.querySelector(".aa-Source");if(n){var o=n.getAttribute(e.attributes.sourceId),i=n.querySelector(".aa-SourceHeaderTitle");if(o&&i){var a=o.split("-id-")[0];r[a]||(r[a]={value:a,label:i.textContent.trim()})}}})),Object.keys(r).forEach((function(e){n.push(r[e])}))}return 1===n.length?e.defaultFilters:n}(t);return r.forEach((function(t,r){var i=document.createElement("button");i.type="button",i.className="global-search__filter-btn",i.textContent=t.label,i.setAttribute(e.attributes.filter,t.value),0===r&&i.classList.add("is-active"),i.addEventListener("click",(function(r){r.preventDefault(),r.stopPropagation(),function(t,o,r){var i=r.querySelectorAll(".global-search__filter-btn");i.forEach((function(e){e.classList.remove("is-active")})),o.classList.add("is-active");var a=r.closest(e.selectors.aaPanel);n(t,a)}(t.value,i,o)})),o.appendChild(i)})),o}function n(t,n){var a=n||document.querySelector(e.selectors.aaPanel);if(a){var s=function(t){var n=r(t),o=n?n.querySelector(e.selectors.aaInput):null;return o?o.value.trim().length:0}(a),l=function(e){return i(r(e))}(a);if(s>0&&s<l)o(a);else{var c=a.querySelectorAll(".search-tab"),u=0;c.forEach((function(n){var o=n.querySelector(".aa-Source"),r=o?o.getAttribute(e.attributes.sourceId):"",i=!1;if("all"===t)i=function(e){var t=e.querySelector(".aa-List");if(t){return t.querySelectorAll(".aa-Item").length>0}var n=e.querySelector(".aa-Source");if(n){if(n.querySelector(".aa-SourceNoResults"))return!1}return!1}(n);else{var a=new RegExp("^"+t+"(-|$)");i=r&&a.test(r)}n.classList.toggle("is-hidden",!i),n.style.display=i?"":"none",i&&u++})),"all"===t&&0===u&&c.length>0?function(t){var n=t.querySelector(".global-search__no-results");if(n)n.style.display="";else{var o=t.querySelector(e.selectors.tabContainer);if(o){var r=document.createElement("div");r.className="global-search__no-results",r.innerHTML="<p>"+e.text.noResults+"</p>",o.appendChild(r)}}}(a):o(a)}}}function o(e){var t=e.querySelector(".global-search__no-results");t&&(t.style.display="none")}function r(t){var n=t.getAttribute(e.attributes.panelId);if(!n)return null;var o=e.selectors.aaAutocomplete+"["+e.attributes.panelId+'="'+n+'"]';return document.querySelector(o)}function i(t){if(!t)return e.minCharsToSearch;var n=t.getAttribute(e.attributes.minCharLimit),o=null!==n?parseInt(n,10):NaN;return!isNaN(o)&&o>0?o:e.minCharsToSearch}function a(t){var n=t?t.querySelector(e.selectors.searchPanel):null,o=n?n.querySelector(".global-search__min-chars"):null;o&&(o.style.display="none")}function s(t){var n=document.createElement("div");n.className=e.selectors.viewAll.substring(1);var o=document.createElement("a");return o.href="#",o.textContent=e.text.viewAllResults,o.addEventListener("click",(function(n){n.preventDefault();var o=function(){var t=document.querySelector(e.selectors.autocomplete);return t&&t.getAttribute(e.attributes.redirectUrl)||""}();if(o){var r=t.getAttribute(e.attributes.panelId),i=e.selectors.aaAutocomplete+"["+e.attributes.panelId+'="'+r+'"]',a=r?document.querySelector(i):null,s=a?a.querySelector(e.selectors.aaInput):null,l=s?s.value.trim():"",c=t.querySelector(e.selectors.searchPanel),u=c?c.querySelector(e.selectors.filters):null,d=u?u.querySelector(".global-search__filter-btn.is-active"):null,m=d?d?.innerHTML?.toLowerCase():"all";if(l){var f=-1!==o.indexOf("?")?"&":"?",p=o+f+e.queryParam+"="+encodeURIComponent(l);
1if(m&&"all"!==m)p+="&tab="+encodeURIComponent("all western sydney"===m?"western-sydney":m);window.location.href=p}else window.location.href=o}})),n.appendChild(o),n}function l(t){if(!t)return null;var n=t.getAttribute(e.attributes.panelId);if(n){var o=e.selectors.aaPanel+"["+e.attributes.panelId+'="'+n+'"]';return document.querySelector(o)}return null}function c(t){if(t&&!t.hasAttribute(e.attributes.enhanced)){var n=t.querySelector(e.selectors.searchPanel);if(n){var o=n.querySelector(e.selectors.tabContainer);if(o){t.setAttribute(e.attributes.enhanced,"true");var r=function(){for(var t=document.querySelectorAll(e.selectors.aaAutocomplete),n=[],o=0;o<t.length;o++)t[o].querySelector(e.selectors.aaInput)&&!t[o].hasAttribute(e.attributes.panelId)&&n.push(t[o]);if(0===n.length)return null;if(1===n.length)return n[0];for(var r=0;r<n.length;r++){var i=n[r].querySelector(e.selectors.aaInput);if(i&&document.activeElement===i)return n[r]}for(var a=0;a<n.length;a++){var s=n[a].querySelector(e.selectors.aaInput);if(s&&""!==s.value.trim())return n[a]}for(var l=0;l<n.length;l++){var c=n[l],u=window.getComputedStyle(c);if("none"!==u.display&&"hidden"!==u.visibility&&null!==c.offsetParent)return c}return n[0]}();if(r){var i="search-panel-"+Date.now()+"-"+Math.random().toString(36).substr(2,9);t.setAttribute(e.attributes.panelId,i),r.setAttribute(e.attributes.panelId,i)}var a=document.createElement("div");a.className=e.selectors.filters.substring(1),a.setAttribute("data-filters-placeholder","true"),a.style.display="none",o.parentNode.insertBefore(a,o);var l=s(t);n.appendChild(l),r&&p(r)}}}}function u(o){if(o){var r=o.querySelector(e.selectors.searchPanel);if(r){var i=r.querySelector(e.selectors.filters);if(i){var a=i.hasAttribute("data-filters-placeholder"),s=i.querySelector(".global-search__filter-btn.is-active"),l=s?s.getAttribute(e.attributes.filter):"all",c=t(o),u=c.querySelector("["+e.attributes.filter+'="'+l+'"]');if(u)c.querySelectorAll(".global-search__filter-btn").forEach((function(e){e.classList.remove("is-active")})),u.classList.add("is-active");if(c.style.display="",i.parentNode.replaceChild(c,i),a){n("all",o);var d=r.querySelector(e.selectors.suggestions),m=r.querySelector(e.selectors.tabContainer),f=r.querySelector(e.selectors.viewAll);d&&(d.style.display="none"),m&&(m.style.display=""),f&&(f.style.display="")}}}}}function d(t){t?t.classList.add("is-hidden"):document.querySelectorAll(e.selectors.aaPanel).forEach((function(e){e.classList.add("is-hidden")}))}function m(){document.addEventListener("focusin",(function(t){if(t.target.classList&&t.target.classList.contains("aa-Input")){var n=t.target.closest(e.selectors.aaForm),o=n?n.closest(e.selectors.aaAutocomplete):null,r=l(o);r&&((i=r)?i.classList.remove("is-hidden"):document.querySelectorAll(e.selectors.aaPanel).forEach((function(e){e.classList.remove("is-hidden")}))),p(o)}var i})),document.addEventListener("focusout",(function(t){if(t.target.classList&&t.target.classList.contains("aa-Input")){var n=t.target.closest(e.selectors.aaForm),o=l(n?n.closest(e.selectors.aaAutocomplete):null);setTimeout((function(){var e=document.activeElement;o&&o.contains(e)||e&&e.classList.contains("aa-Input")||o&&d(o)}),e.timing.focusOutDelay)}}))}function f(){document.querySelectorAll(e.selectors.aaAutocomplete).forEach((function(t){var n=t.querySelector(e.selectors.aaInput),o=t.querySelector(".aa-InputWrapperSuffix");n&&o&&(""===n.value.trim()?o.style.display="none":o.style.display="")}))}function p(t){if(t){var n=t.querySelector(e.selectors.aaInput);if(n){var r=n.value.trim(),s=i(t),c=l(t);if(c){var d=c.querySelector(e.selectors.searchPanel);if(d){var m=d.querySelector(e.selectors.suggestions),f=d.querySelector(e.selectors.filters),p=d.querySelector(e.selectors.tabContainer),h=d.querySelector(e.selectors.viewAll);if(r.length<s)m&&(m.style.display="none"),f&&(f.style.display="none"),p&&(p.style.display="none"),h&&(h.style.display="none"),o(c),a(c);else{a(c);var y=f&&!f.hasAttribute("data-filters-placeholder")&&f.querySelector(".global-search__filter-btn"),v=p&&p.querySelectorAll(".search-tab .aa-Source").length>0;y?(m&&(m.style.display="none"),f&&(f.style.display=""),p&&(p.style.display=""),h&&(h.style.display="")):v?u(c):m&&(m.style.display="")}}}}}}function h(){document.querySelectorAll(e.selectors.aaAutocomplete).forEach((function(e){p(e)}))}function y(){var t=0;!function n(){t++;var o=document.querySelector(".header--action--bar--mobile--view .btn-search"),r=document.querySelector(".header--action--bar--mobile--view .btn-close"),i=document.querySelector(".header--action--bar--mobile--view .global-search"),a=document.querySelector(".header--action--bar--mobile--view");if(!(o&&r&&i&&a))return t<10?void setTimeout(n,200):void 0;!function(t,n,o,r,i){function a(){return window.innerWidth<=i}function s(){return o.classList.contains("is-active")}function l(){a()&&(o.classList.add("is-active"),r.classList.add("search-active"),setTimeout((function(){var t=o.querySelector(e.selectors.aaInput);t&&t.focus()}),100))}function c(){if(a()){o.classList.remove("is-active"),r.classList.remove("search-active");var t=o.querySelector(e.selectors.aaInput);t&&(t.value="",t.blur()),d()}}t.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),a()&&l()})),n.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),a()&&c()})),document.addEventListener("keydown",(function(e){"Escape"===e.key&&a()&&s()&&c()})),window.addEventListener("resize",(function(){!a()&&s()&&c()}))}(o,r,i,a,1220)}()}function v(){!function(){new MutationObserver((function(t){t.forEach((function(t){t.addedNodes.forEac
1h((function(t){if(t.nodeType===Node.ELEMENT_NODE){t.classList&&t.classList.contains("aa-Panel")&&c(t);var n=t.querySelector?t.querySelector(e.selectors.aaPanel):null;if(n&&c(n),t.classList&&t.classList.contains("aa-Source")){var o=t.closest(e.selectors.aaPanel);o&&o.hasAttribute(e.attributes.enhanced)&&t.closest(".search-tab")&&(clearTimeout(o._filterUpdateTimeout),o._filterUpdateTimeout=setTimeout((function(){u(o)}),e.timing.filterUpdateDebounce))}t.classList&&t.classList.contains("aa-Input")&&f(),t.querySelector&&t.querySelector(e.selectors.aaInput)&&f()}}))}))})).observe(document.body,{childList:!0,subtree:!0});var t=document.querySelector(e.selectors.aaPanel);t&&c(t),f()}(),document.addEventListener("click",(function(t){document.querySelectorAll(e.selectors.aaPanel).forEach((function(n){var o=n.getAttribute(e.attributes.panelId),r=e.selectors.aaAutocomplete+"["+e.attributes.panelId+'="'+o+'"]',i=o?document.querySelector(r):null;if(i){var a=i.querySelector(e.selectors.aaInput),s=i.querySelector(e.selectors.aaForm);!(a&&a.contains(t.target)||s&&s.contains(t.target)||n&&n.contains(t.target))&&d(n)}}))})),m(),document.addEventListener("input",(function(t){if(t.target.classList&&t.target.classList.contains("aa-Input")){var n=t.target.closest(e.selectors.aaForm),o=n?n.closest(e.selectors.aaAutocomplete):null;if(o){var r=o.querySelector(e.selectors.aaInput),i=o.querySelector(".aa-InputWrapperSuffix");r&&i&&(""===r.value.trim()?i.style.display="none":i.style.display=""),p(o)}}})),f(),h(),y(),document.addEventListener("keydown",(function(t){"Escape"===t.key&&(d(),document.querySelectorAll(e.selectors.aaInput).forEach((function(e){e.blur()})))}))}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",v):v(),window.addEventListener("load",(function(){setTimeout((function(){f(),h()}),e.timing.initialLoadDelay)})),setInterval((function(){f(),h(),document.querySelectorAll(e.selectors.aaPanel).forEach((function(t){if(!t.classList.contains("is-hidden")){var o=t.querySelector(".global-search__filter-btn.is-active");o&&"all"===o.getAttribute(e.attributes.filter)&&n("all",t)}}))}),e.timing.periodicCheckInterval)}()},25:function(){!function(){"use strict";let e=!1,t=null,n=!1,o=!1;function r(e,t){const n=e.getAttribute("name")||e.textContent.trim(),o=n.replace(/\s*\(\d+\)\s*$/,"").trim();const r=t.toLowerCase().replace(/\+/g," ");return o.toLowerCase()===r}function i(){if(!t||n)return;const e=document.querySelectorAll("algolia-tab");if(0===e.length)return;const i=Array.from(e).find((e=>r(e,t)));if(i){i.hasAttribute("selected")||(o=!0,e.forEach((e=>e.removeAttribute("selected"))),i.setAttribute("selected",""),setTimeout((()=>{o=!1}),100))}}function a(){document.querySelectorAll("algolia-tab").forEach((e=>{e.addEventListener("click",(function(){o||(n=!0)}),!0)}))}function s(){if(!t)return;new MutationObserver((function(){if(n||o)return;const e=document.querySelectorAll("algolia-tab");if(e.length>0){const n=document.querySelector("algolia-tab[selected]");if(n){if(!r(n,t)){const n=Array.from(e).find((e=>r(e,t)));n&&(o=!0,e.forEach((e=>e.removeAttribute("selected"))),n.setAttribute("selected",""),setTimeout((()=>{o=!1}),100))}}else i()}a()})).observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["selected"],characterData:!0})}function l(){if(e)return;const t=document.querySelectorAll(".search-results-nav-wrapper");0!==t.length&&(e=!0,t.forEach((e=>{if(e.parentElement.classList.contains("search-results-nav-container"))return;const t=document.createElement("div");t.className="search-results-nav-container",e.parentNode.insertBefore(t,e),t.appendChild(e);const n=document.createElement("button");n.className="tab-scroll-btn tab-scroll-left",n.innerHTML='<svg viewBox="0 0 24 24"><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>',n.setAttribute("aria-label","Scroll tabs left");const o=document.createElement("button");function r(){const t=e.scrollLeft,r=e.scrollWidth-e.clientWidth;t>10?n.classList.add("visible"):n.classList.remove("visible"),t<r-10?o.classList.add("visible"):o.classList.remove("visible")}o.className="tab-scroll-btn tab-scroll-right",o.innerHTML='<svg viewBox="0 0 24 24">
1<path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg>',o.setAttribute("aria-label","Scroll tabs right"),t.insertBefore(n,e),t.appendChild(o);n.addEventListener("click",(function(){e.scrollBy({left:-200,behavior:"smooth"})})),o.addEventListener("click",(function(){e.scrollBy({left:200,behavior:"smooth"})})),e.addEventListener("scroll",r),window.addEventListener("resize",r),setTimeout(r,100)})),function(){const e=document.querySelectorAll('.instantsearch .aa-Input, .instantsearch input[type="search"]'),t=document.querySelectorAll('.global-search .aa-Input, .global-search input[type="search"]');function n(){const e=document.querySelector(".aa-Panel");e&&(e.style.display="none")}function o(){const e=document.querySelector(".aa-Panel");e&&e.style.removeProperty("display")}e.forEach((function(e){e.addEventListener("focus",n),e.addEventListener("input",n)})),t.forEach((function(e){e.addEventListener("focus",o)}));new MutationObserver((function(e){e.forEach((function(e){e.addedNodes.forEach((function(e){if(1===e.nodeType&&e.classList&&e.classList.contains("aa-Panel")){const t=document.activeElement;t&&t.closest(".instantsearch")&&(e.style.display="none")}}))}))})).observe(document.body,{childList:!0,subtree:!1})}(),setTimeout(i,100))}var c;window.initInstantSearchTabScroll=l,null===t&&(c="tab",t=new URLSearchParams(window.location.search).get(c)),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",(function(){l(),i(),a(),s()})):(l(),i(),a(),s()),setTimeout((function(){l(),i(),a()}),500),setTimeout((function(){l(),i(),a()}),1e3),setTimeout((function(){l(),i(),a()}),2e3),setInterval((function(){if(!t||n||o)return;const e=document.querySelectorAll("algolia-tab");if(0===e.length)return;a();const i=document.querySelector("algolia-tab[selected]"),s=Array.from(e).find((e=>r(e,t)));!s||i&&r(i,t)||(o=!0,e.forEach((e=>e.removeAttribute("selected"))),s.setAttribute("selected",""),setTimeout((()=>{o=!1}),100))}),500)}()},618:function(){!function(){function e(e){const t=e.querySelector(".js-card-carousel-track"),n=e.querySelector(".js-card-carousel-prev"),o=e.querySelector(".js-card-carousel-next");if(!t||!n||!o)return;const r=()=>{const r=Math.max(t.scrollWidth-t.clientWidth-2,0);n.disabled=t.scrollLeft<=2,o.disabled=t.scrollLeft>=r,e.classList.toggle("card-carousel__viewport--static",0===r)},i=()=>Math.max(.8*t.clientWidth,260);n.addEventListener("click",(()=>{t.scrollBy({left:-i(),behavior:"smooth"})})),o.addEventListener("click",(()=>{t.scrollBy({left:i(),behavior:"smooth"})})),t.addEventListener("scroll",r,{passive:!0}),window.addEventListener("resize",r),r()}document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".js-card-carousel").forEach(e)}))}()},390:function(){document.addEventListener("DOMContentLoaded",(function(){const e=document.querySelectorAll(".cmp-custom-careers-tab-container-job");e?.forEach((e=>{e?.addEventListener("click",(function(){const e=this?.querySelector(".plus-icon"),t=this?.nextElementSibling;t.classList.toggle("active"),"+"===e.textContent?e.textContent="-":e.textContent="+"}))}));document.querySelectorAll(".cmp-custom-careers-tab-container-content-link").forEach((e=>{const t=e?.querySelector(".cmp-custom-careers-tab-container-content-link div"),n=e?.getAttribute("data-jobdata"),o=e?.getAttribute("data-job-title"),r=e?.getAttribute("data-job-description"),i=n?JSON.parse(n):"",a=document.querySelector(".jobs-modal");i?.jobData.length>0?e.style.display="block":e.style.display="none",t?.addEventListener("click",(function(){var e,t;a&&i?.jobData.length>0&&(a.innerHTML=`\n     <div class="cmp-custom-careers-tab-job">\n                    <div class="cmp-custom-careers-tab-job-modal">\n                        <span class="close-tab">\n                        <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n                        <path \n              d="M18.667,1.88,16.787,0,9.333,7.453,1.88,0,0,1.88,7.453,9.333,0,16.787l1.88,1.88,7.453-7.453,7.453,7.453,1.88-1.88L11.213,9.333Z"\n                      transform="translate(6.667 6.667)" />\n                    </svg>\n                        </span>\n                    </div>\n                    <div class="cmp-custom-careers-tab-job-offers">\n     ${e=o,t=r,`\n        <div class="cmp-custom-careers-tab-job-offers-content">\n            <h2 class="cmp-custom-careers-tab-job-offers-content-heading">${e||""}</h2>\n            <p class="cmp-custom-careers-tab-job-offers-content-para">${t||""}</p>\n        </div>\n    `}\n     <div class="cmp-custom-careers-tab-job-offers-card">\n     ${function(e){const t=e?.jobData;let n="";return t?.forEach((e=>{n+=`\n              <div class="cmp-custom-careers-tab-job-offers-card-data">\n                  <div class="cmp-custom-careers-tab-job-offers-card-title">${e?.title}</div>\n                  <div class="cmp-custom-careers-tab-job-offers-card-location">${e?.location}</div>
1\n                  <span class="cmp-custom-careers-tab-job-offers-card-salary">Salary: from A$${e?.maxSalary} up to A$${e?.maxSalary}</span>\n                  <div class="cmp-custom-careers-tab-job-offers-card-more">\n                      <a href="${e?.url}" target="_blank">Read more</a>\n                  </div>\n              </div>`})),n}(i)}\n  </div>\n     </div>\n     </div>\n     `,a.style.display="block")})),a?.addEventListener("click",(function(e){e.target.closest(".cmp-custom-careers-tab-job-modal")&&(a.style.display="none")}))}))}))},244:function(){var e=".js-carousel__total-slides",t=".js-carousel__item",n=".carousel--component",o={prevArrow:'<button type="button"  class="slick-prev icon icon-arrow-left" aria-label="previous" ></button>',nextArrow:'<button type="button"  class="slick-next icon icon-arrow-right" aria-label="next" ></button>',cssEase:"ease-in-out",dots:!1,speed:200,touchThreshold:9};function r(r){var a=r.find(t).length,s=r.data("autoplay"),l=r.data("play-speed"),c={mobileFirst:!0,prevArrow:1!==a&&o.prevArrow,nextArrow:1!==a&&o.nextArrow,responsive:[{breakpoint:"s",settings:{autoplay:s,autoplaySpeed:l}}]},u=$.extend({},o,c);function d(e){!function(e){let t=e.querySelectorAll(".carousel__item__quote-text"),n=Array.from(t).map((e=>e.parentElement));n.forEach((function(e){e.style.height="auto"}));let o,r=[];setTimeout((()=>{n&&n.length>0&&n.forEach((function(e,t){let i=e.offsetHeight;r.push(i),t===n.length-1&&(o=Math.max(...r),n.forEach((function(e){e.style.height=o+"px"})))}))}),500)}()}r.on("init",(function(){1===a&&r.addClass("carousel--single-slide");let e=r.parent();e.find("button.slick-prev, button.slick-next").appendTo(e);let t=e.find(".carousel__item__image").length>0;e.find(".slick-list").toggleClass("slick-list__onlyimage",t),e.find(".carousel__item__para-text p").each((function(e){let t=$(this).html();t&&t.length>100&&(t=t.substring(0,200),$(this).html(t+"..."))})),window.onload=function(){!function(e){!function(e){let t=e.find(".wsu__button");t.css("margin-top","0"),setTimeout((()=>{if(t&&t.length>0){let e=t.map((function(){return $(this).offset().top})).get(),n=Math.max(...e);t.each((function(){let e=$(this).offset().top;if(e<n){let t=n-e;setTimeout((()=>{$(this).css("margin-top",t+"px")}))}}))}}),500)}(e)}(e)},window.matchMedia("screen and (max-width: 768px)").addListener(d);let n=(window.mobileCheck=function(){let e=!1;var t;return t=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
1sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0),e})(),o=e.closest(".rich-background-banner__content-wrapper");n?o.addClass("rbp"):o.removeClass("rbp")})),r.slick(u),r.closest(".js-accordion__item")?.on("accordionOpening",(function(){r.hasClass("carousel--initialized")||(r.addClass("carousel--initialized"),r.slick("unslick").slick(u))})),r.on("afterChange",(function(){i(r,a)})),i(r,a),function(t,o){t.closest(n).find(e).html(o)}(r,a)}function i(e,o){var r=e.find(t+".slick-active").data("slick-index")+1;e.closest(n).find(".js-carousel__current-slide").html(r),r===o?(e.closest(n).find(".icon-arrow-right").prop("disabled",!0),e.closest(n).find(".icon-arrow-right").addClass("carousel__icon-disabled")):(e.closest(n).find(".icon-arrow-right").prop("disabled",!1),e.closest(n).find(".icon-arrow-right").removeClass("carousel__icon-disabled")),1===r?(e.closest(n).find(".icon-arrow-left").prop("disabled",!0),e.closest(n).find(".icon-arrow-left").addClass("carousel__icon-disabled")):(e.closest(n).find(".icon-arrow-left").prop("disabled",!1),e.closest(n).find(".icon-arrow-left").removeClass("carousel__icon-disabled"))}$(".js-carousel").each((function(){r($(this))}))},630:function(){window.addEventListener("DOMContentLoaded",(()=>{!function r(){e();const i=document?.querySelector(".course_page_banner");if(i){const e=i?.querySelector(".cmp-course-compare___container"),n=i?.querySelector(".cmp-course-compare___img");e&&n&&t()}const a=document.querySelector(".course_expand");if(a){const e=document.querySelector(".course_details_container");a.addEventListener("click",(function(){a.classList.toggle("expand_summary"),e.style.maxHeight?(e.style.maxHeight=null,a.classList.add("border_bottom")):(e.style.maxHeight=e.scrollHeight+"px",a.classList.remove("border_bottom"))})),function(){const e=document.querySelector(".course_heading_wrapper");function t(){e.style.height="",e.style.height=e.clientHeight+"px"}t(),window.addEventListener("resize",t)}(),function(){const e=document.querySelector(".course_sticky_bar").clientHeight;window.innerWidth<1024&&window.addEventListener("scroll",(function(){document.documentElement.scrollHeight-(window.innerHeight+window.scrollY)<=e&&(document.body.style.marginBottom=e+"px")}))}(),document.querySelectorAll(".tooltip").forEach((e=>{e.addEventListener("click",(function(t){t.stopPropagation(),this.classList.toggle("active--click"),document.querySelectorAll(".tooltip").forEach((t=>{t!==e&&t.classList.remove("active--click")}))}))})),document.body.addEventListener("click",(()=>{document.querySelectorAll(".tooltip").forEach((e=>e.classList.remove("active--click")))})),function(){const e=document.querySelector(".course_sticky_bar"),t=document.querySelector(".course_page_banner")?.offsetHeight||0;window.addEventListener("scroll",(()=>{window.scrollY>=t&&window.innerWidth>1024?(e.classList.remove("remove-sticky"),e.classList.add("sticky_top_desktop")):window.scrollY<=t/2&&window.innerWidth>1024?(e.classList.add("remove-sticky"),e.classList.remove("sticky_top_desktop")):e.classList.add("remove-sticky")})),e.classList.add("sticky_bottom_mobile")}(),o(),function(){document?.querySelector(".cmp-button--icon-heart .cmp-button")?.removeAttribute("href");const e=document?.querySelectorAll(".cmp-button--icon-heart"),t=document.querySelector(".template--main")?.getAttribute("data-course-id");e.forEach((o=>{const r=localStorage.getItem("vanityId"),i=r?r.split(",").filter(Boolean):[];o.removeAttribute("href"),o.addEventListener("click",(()=>{o.classList.toggle("cmp-button--icon-heart_active");const r=o.classList.contains("cmp-button--icon-heart_active")?[...i,t]:i.filter((e=>e!==t));localStorage.setItem("vanityId",[...new Set(r)].join(",")),n(),function(){const e=localStorage.getItem("vanityId"),t=e?e.split(",").filter(Boolean):[],n=t.length,o=document.querySelector(".js-ab");if(!o||0===n)return;const r=document.querySelector(".course_banner_heading_container")?.getAttribute("data-mode"),i=r?.includes("author"),a="/future/course-compare",s="/future/study/courses",l=i?"/content/digital":"",c=document.querySelector(".course_banner_heading_container")?.getAttribute("data-course-compare-url")||`${l}${a}`,u=document.querySelector(".course_banner_heading_container")?.getAttribute("data-add-more-url")||`${l}${s}`,d=document.querySelector(".course_banner_heading_container")?.getAttribute("data-add-more-text")||"Add more courses",m=document.querySelector(".js-main-nav-course-compare-count")?.closest("a");m&&(c=m.getAttribute("href")||c);document.querySelector(".js-compare-bar")?.remove();const f=document.createElement("div");
1f.className="compare-bar js-compare-bar";const p=document.createElement("div");p.className="compare-bar__text";const h=document.createElement("div");h.className="compare-bar__link";const y=document.createElement("a");y.href=n>1?c:u,y.textContent=n>1?"Compare courses":d,p.textContent=n>1?`${n} courses shortlisted`:`${n} course shortlisted. Add another to compare`,h.appendChild(y),f.appendChild(p),f.appendChild(h),o.parentNode.insertBefore(f,o.nextSibling);const v=()=>{f.remove(),document.body.removeEventListener("click",v),window.removeEventListener("scroll",v)};setTimeout((()=>{document.body.addEventListener("click",v),window.addEventListener("scroll",v)}),100)}(),e.forEach((e=>{e!==o&&e.classList.toggle("cmp-button--icon-heart_active",o.classList.contains("cmp-button--icon-heart_active"))}))})),i.includes(t)&&o.classList.add("cmp-button--icon-heart_active")}))}();const t=localStorage.getItem("vanityId"),r=(t?t.split(",").filter(Boolean):[]).length,i=document.querySelectorAll("a.cmp-button"),s=Array.from(i).find((e=>"Course Compare"===e.textContent.trim()));s&&r>1?s.style.display="inline-block":s&&(s.style.display="none")}else setTimeout(r,300)}(),n(),document.body.addEventListener("click",(function(e){e.target.closest(".sticky_bottom_mobile .cmp-button--icon-heart")&&setTimeout(n,0)}))}));const e=()=>{const e=sessionStorage.getItem("QSI_HistorySession");if(e){if(e.includes("digital"))return"domestic";if(e.includes("international"))return"international"}};const t=()=>{const t=e(),n=document?.getElementById("dropdown_value");n&&(null!=t?(n.innerText=t,filterDropDown()):(n.innerText="domestic",function(){const e=document?.querySelector(".dropdown_options"),t=document?.getElementById("dropdown_value");if(t&&e){const n=t?.innerText.toLowerCase();n&&e.querySelectorAll("li")?.forEach((e=>{e.classList.toggle("selected_course_type",e.textContent===n)}))}}()))};function n(){if(window.innerWidth>767)return;const e=localStorage.getItem("vanityId"),t=(e?e.split(",").filter(Boolean):[]).length,n=document.querySelector(".sticky_bottom_mobile").querySelector(".cmp-button--icon-heart");if(!n)return;let o=n.querySelector(".course-shortlist-count");o&&o.remove(),t>0&&(o=document.createElement("span"),o.className="course-shortlist-count",o.textContent=t,n.prepend(o))}function o(){const e=document.querySelector(".genesys-mxg-launcher-frame");if(e&&window.innerWidth<=710){e.style.bottom="52px",e.style.transition="bottom 0.5s ease-in-out";const t=document.querySelector(".genesys-mxg-container-frame");if(t){new MutationObserver((()=>{t.classList.contains("genesys-mxg-conversation")||(e.style.bottom="52px")})).observe(t,{attributes:!0,attributeFilter:["class"]})}}else setTimeout(o,2e3)}},934:function(){document.addEventListener("DOMContentLoaded",(()=>{let e=[];const t=()=>{const t=document?.getElementById("dropdown_compare_value"),n=document?.querySelectorAll(".domestic"),o=document?.querySelectorAll(".international"),r=document?.querySelectorAll(".domesticInternational");if(t){const i=t.innerText.toLowerCase();document.querySelectorAll(".cmp-course-compare__tile-wrapper").forEach((t=>{const n=t.getAttribute("id"),o=e.find((e=>e.vanityId===n)),r=t.querySelector(".apply"),a=t.querySelector(".cmp-course-compare__tile-LSR-value");o&&r&&r.setAttribute("href","international"===i?o.internationalApplicationLink||"#":o.domesticApplicationLink||"#"),"international"===i&&a?a.parentElement.style.display="none":""!==a.innerText&&(a.parentElement.style.display="block")})),"domestic"===i?(n&&[...n].forEach((e=>{e.style.display="block"})),o&&[...o].forEach((e=>{e.style.display="none"}))):"international"===i&&(n&&[...n].forEach((e=>{e.style.display="none"})),o&&[...o].forEach((e=>{e.style.display="block"}))),r&&e&&r.forEach((t=>{const n=t?.querySelector(".cmp-course-compare__tile-fees__value"),o=t?.querySelector(".cmp-course-compare__tile-fees__title-label span");if("domestic"==i){const r=t.getAttribute("id"),i=e.find((e=>e.vanityId===r));i&&(n.innerHTML=i.domesticFees,o.innerText=" (Domestic Student)")}else if("international"==i){const r=t.getAttribute("id"),i=e.find((e=>e.vanityId===r));i&&(n.innerHTML=i.internationalFees,o.innerText=" (International Student)")}}))}},n=()=>{const e=r(),n=document?.getElementById("dropdown_compare_value");n&&(null!=e&&null!=e?(n.innerText=e,t()):(n.innerText="domestic",f(),t()))},o=()=>{const e=document?.getElementById("course-compare__modal");if(e){const n=r();if(null==n||null==n){const n=e?.querySelector("#domestic"),o=e?.querySelector("#international"),r=document?.getElementById("dropdown_compare_value");window.onload=()=>{e.style.display="block",document.body.style.overflow="hidden"},n&&(n.onclick=()=>{e.style.display="none",document.body.style.overflow="auto",r&&(r.innerText="domestic",t())}),o&&(o.onclick=()=>{e.style.display="none",document.body.style.overflow="auto",r&&(r.innerText="international",f(),t())}),window.onclick=function(t){t.target==e&&(e.style.display="none")}}}},r=()=>{const e=sessionStorage.getItem("QSI_HistorySession");if(e){if(e.includes("digital"))return"domestic";if(e.includes("international"))return"international"}};const i=e=>{const t=localStorage.getItem("vanityId");if(null!=t&&null!=t){const n=t.split(","),o=[];
1n.forEach((e=>{o.push(`${e}`)}));return`${e}?vanityIds=${o.join(",")}`}},a=(e,t)=>{const n=t?.querySelector(".cmp-course-compare__tile-title"),o=t,r=t?.querySelector(".cmp-course-compare__tile-type"),i=t?.querySelector(".cmp-course-compare__tile-duration"),a=t?.querySelector(".cmp-course-compare__tile-fees__title-label"),l=t?.querySelector(".cmp-course-compare__tile-fees__value"),d=t?.querySelector(".cmp-course-compare__tile-program-value"),m=t?.querySelector(".cmp-course-compare__tile-cricos-value"),f=t?.querySelector(".cmp-course-compare__tile-location-value"),p=t?.querySelector(".cmp-course-compare__tile-LSR-value"),h=t?.querySelector(".cmp-course-compare__tile-start-date-container"),y=t?.querySelector(".cmp-course-compare__tile-close-date-container"),v=t?.querySelector(".apply"),g=t?.querySelector(".view-program"),b=t?.querySelector(".LSR-tool-tip"),_=t?.querySelector(".fees-tool-tip"),S=t?.querySelector(".cmp-course-compare__tile-fav"),w=document?.getElementById("dropdown_compare_value");if(e.vanityId){const n=e?.vanityId;t.setAttribute("id",n),S&&(S.onclick=()=>{const e=document.getElementById(n);e.style.display="none",s(e)});const o=()=>{if(!v)return;const t=w?.innerText.toLowerCase();"international"===t?v.setAttribute("href",e?.internationalApplicationLink||"#"):v.setAttribute("href",e?.domesticApplicationLink||"#")};if(e.courseProgramTags){const n=e?.courseProgramTags.filter((e=>e.includes("available-for"))),r=n.map((e=>e.split(":")[1].split("-")[0])),i=r.includes("domestic")&&r.includes("international"),s=document.createElement("span");if(s&&s.classList.add("regular__weight"),i){if(t.classList.add("domesticInternational"),w){"domestic"===w.innerText.toLowerCase()?(l.innerHTML=e?.domesticFees,s.textContent=" (Domestic Student)"):(s.textContent=" (International Student)",l.innerHTML=e?.internationalFees),o()}}else r.includes("domestic")?(t.classList.add("domestic"),l.innerHTML=e?.domesticFees,s.textContent="(Domestic Student)",o()):(t.classList.add("international"),s.textContent="(International Student)",l.innerHTML=e?.internationalFees,o());a&&a.appendChild(s)}}const L=document.querySelector(".tooltip_wrapper");L.querySelector(".tooltip").getAttribute("data-tooltip")?L.style.display="block":L.style.display="none",e?.courseProgramName&&n&&(n.innerHTML=e?.courseProgramName),e?.courseLevel&&r&&(r.innerHTML=e?.courseLevel),e?.courseColour&&o&&(o.style.borderTop=`5px solid ${e?.courseColour}`),e.courseProgramDuration&&i&&(i.innerHTML=e?.courseProgramDuration),e.courseProgramCode&&d&&(d.innerHTML=e?.courseProgramCode),e.cricosCode&&m?m.innerHTML=e?.cricosCode:m?.parentElement&&(m.parentElement.style.display="none"),e.coursePageUrl&&g&&g.setAttribute("href",e?.coursePageUrl),e.locationTooltip&&b&&b.setAttribute("data-tooltip",e?.locationTooltip),e.feesTooltip&&_&&_.setAttribute("data-tooltip",e?.feesTooltip),u(e?.courseProgramCampuses,f),u(e?.campusLowestSelectionRanks,p),""==p.innerText&&(p.parentElement.style.display="none"),e?.intakeSessions&&c(e?.intakeSessions[0],h,y),function(e){const t=e?.querySelectorAll(".tooltip");t&&t.length>0&&(t.forEach((e=>{e.addEventListener("click",(function(n){window.innerWidth<=468&&(n.stopPropagation(),this.classList.toggle("active--click"),t.forEach((t=>{t!==e&&t.classList.contains("active--click")&&t.classList.remove("active--click")})))}))})),document?.body.addEventListener("click",(function(e){window.innerWidth<=468&&t.forEach((t=>{t.contains(e.target)||t.classList.remove("active--click")}))})))}(t)},s=e=>{if(e){const t=localStorage.getItem("vanityId"),n=JSON.stringify(t).split(","),o=n.indexOf(e);void 0===o&&null==o||(n.splice(o,1),e.style.display="none"),localStorage.setItem("vanityId",n)}l()};function l(){const e=document.querySelectorAll(".circle-red-count"),t=localStorage.getItem("vanityId");let n=0;t&&(n=t.split(",").length),e.forEach((function(e){e.textContent=n,e.style.display=0===n?"none":"block"}))}const c=(e,t,n)=>{if(Array.isArray(e))e.forEach((e=>{const o=document.createElement("li"),r=document.createElement("li");r.textContent=e?.startDates,o.textContent=e?.closingDate,e?.startDates||(r.textContent="View program for more information"),t.appendChild(r),e?.closingDate||(n.parentElement.style.display="none"),n.appendChild(o)}));else{const o=document.createElement("li");e?.startDates||(o.textContent="View program for more information"),t.appendChild(o),e?.closingDate||(n.parentElement.style.display="none")}},u=(e,t)=>
1{Array.isArray(e)&&e.forEach((e=>{if(e&&e.length>0){const n=document.createElement("li");n.textContent=e,t.appendChild(n)}else t&&t.parentElement&&(t.parentElement.style.display="none")}))};let d,m=0;function f(){const e=document?.querySelector(".dropdown_options"),t=document?.getElementById("dropdown_compare_value");if(t&&e){const n=t?.innerText.toLowerCase();if(n){const t=e.querySelectorAll("li");t?.forEach((e=>{e.textContent===n?e.classList.add("selected_course_type"):e.classList.remove("selected_course_type")}))}}}function p(e,t){const n=t?.querySelector(".btn-prev"),o=t?.querySelector(".btn-next");document.querySelectorAll(".tooltip_wrapper").forEach((function(e){e.querySelector(".tooltip").getAttribute("data-tooltip")?e.style.display="block":e.style.display="none"}));const r=t?.querySelector('.cmp-course-compare__tile-wrapper:not([style*="display: none"])'),i=t?.querySelectorAll('.cmp-course-compare__tile-wrapper:not([style*="display: none"])');r?.clientWidth>0&&(wrapperWidth=r.clientWidth+20,d=wrapperWidth);const a=i.length<=3?3:i.length;let s,l=0,c=a-3;function u(t){l+=t,l=l<0?0:l,l=l>c?c:l,window.innerWidth>450&&window.innerWidth<=1024&&c-l==1?(s=-l*d-Math.ceil(d/2),e.style.transform=`translateX(${s}px)`):(s=-l*d,e.style.transform=`translateX(${s}px)`),e.style.overflow="visible",o.disabled=l>=c,n.disabled=l<=0}window.innerWidth>450&&window.innerWidth<=1024&&(c=a-2),window.innerWidth<=450&&(c=a-1),o&&n&&(o.removeEventListener("click",(()=>u(1))),n.removeEventListener("click",(()=>u(-1))),o.addEventListener("click",(()=>u(1))),n.addEventListener("click",(()=>u(-1)))),n.disabled=l<=0}(()=>{l(),r();const s=localStorage.getItem("vanityId");if(null!=s&&null!=s){const r=document.querySelector(".data-unavailable");null!=r&&(r.style.display="none");const s=document?.querySelector(".cmp-course-compare");if(null!=s&&null!=s){const r=s?.querySelector(".cmp-course-compare__tile"),l=s?.querySelector(".cmp-course-compare__tile-wrapper");o(),r&&l&&async function(){try{const e=i("/content/wsu-international/jcr:content/courseCompare.json");if(e){const t=await fetch(e,{method:"GET",headers:{"Content-Type":"application/json"}});if(!t.ok)throw new Error(`HTTP error! Status: ${t.status}`);return await t.json()}}catch(e){throw e}}().then((o=>{e=o.results,e.length>0&&(e.forEach((e=>{if(Object.keys(e).length>0&&e.constructor===Object){const o=l.cloneNode(!0);a(e,o),r.appendChild(o),n(),function(){const e=document?.querySelector(".dropdown_compare_toggle"),n=document?.querySelector(".dropdown_options");
1if(e&&n){const o=document?.querySelector(".dropdown_value"),r=document?.querySelector(".cmp-course-compare__tile"),i=document?.querySelector(".cmp-course-compare__add-program");0==m&&(e.addEventListener("click",(()=>{e?.classList.toggle("active"),r&&window.innerWidth>=768&&(n?.style.maxHeight?(n.style.maxHeight=null,r.style.marginTop="0"):(n.style.display="block",n.style.maxHeight=n.scrollHeight+"px",r.style.marginTop=n.scrollHeight+"px")),i&&window.innerWidth<768&&(n?.style.maxHeight?(n.style.maxHeight=null,i.style.marginTop="0"):(n.style.display="block",n.style.maxHeight=n.scrollHeight+"px",i.style.marginTop=n.scrollHeight+"px"))})),n?.addEventListener("click",(a=>{if("LI"===a.target.tagName){const s=n.querySelector(".selected_course_type");s&&s.classList.remove("selected_course_type"),a.target.classList.add("selected_course_type"),o&&(o.innerText=a.target.innerText,t(),e?.classList.toggle("active")),n.style.maxHeight=null,r&&(r.style.marginTop="0"),window.innerWidth<768&&i&&(i.style.marginTop="0");const l=document?.querySelector(".cmp-course-compare"),c=l?.querySelector(".cmp-course-compare__tile");p(c,l)}})),f(),m=1)}}()}})),l.style.display="none",p(r,s))})).catch((e=>{}))}}else{const e=document.querySelector(".data-available");null!=e&&(e.style.display="none")}})()}))},186:function(){$(document).ready((function(){var e=".js-cc",t=[];function n(e){if("undefined"!=typeof Storage){var n=function(e){var t,n,o=decodeURIComponent(window.location.search.substring(1)).split("&");for(n=0;n<o.length;n++)if((t=o[n].split("="))[0]===e)return void 0===t[1]||t[1];return""}("courses"),o=(t=n.split(",")).length;if(n.length&&o||(o=void 0!==localStorage.favourites?(t=JSON.parse(localStorage.getItem("favourites"))).length:0),o){t.toString();window.history.pushState(null,null,"?courses="+t.toString())}}}$(e).length&&n($(e))}))},794:function(){(()=>{const e="vanityId",t="savedCoursesCache";let n={result:[]};const o=new Map;let r={availableFor:[],lsr:[],courseLevel:[],aos:[],sessionName:[],campuses:[],applicationPathway:[],alphabetRange:[],studyMode:[]};const i={};const a=".cmp-custom-course-filter",s=".cmp-custom-course-filter-primary-data",l=".cmp-custom-course-filter-primary__section-list",c=".cmp-custom-course-filter-primary__section",u=".icon-dropdown-section",d=".cmp-custom-course-filter-primary-clearfilter",m=".cmp-custom-course-filter__results-card",f=".cmp-custom-course-filter__saved",p=".cmp-custom-course-filter__saved-degrees-results",h=".cmp-custom-course-filter-cannot-find",y=".cmp-custom-course-filter-load-btn, .cmp-custom-course-filter-load",v=".cmp-custom-course-filter__all-mobile",g=".cmp-custom-course-filter__all",b=".cmp-custom-course-filter__all-ul",_=".cmp-custom-course-Advanced",S=".cmp-custom-course-filter-primary",w=".cmp-custom-course-Advanced-btn-filter-plus",L=".circle-red-count",q=()=>{const t=localStorage.getItem(e);return t?t.split(",").filter(Boolean):[]},C=t=>{localStorage.setItem(e,t.join(",")),P()};function E(){const e={};o.forEach(((t,n)=>{e[n]=t})),localStorage.setItem(t,JSON.stringify(e))}function x(e){const t={};for(const n in e){const o=e[n]||[];Array.isArray(o)&&o.length>0&&(t[n]=o)}return t}function $(e){let t="";const n=JSON.parse(JSON.stringify(e));if(n.alphabetRange?.length){n.alphabetRange.includes("all")&&n.alphabetRange.length>1&&(n.alphabetRange=n.alphabetRange.filter((e=>"all"!==e)))}Object.keys(n).forEach((e=>{const o=n[e];if(!o?.length)return;const r=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();t+=`${r}=${o.join(",")}&`}));const o=new URLSearchParams(window.location.search).get("search");return o&&(t+=`search-term=${encodeURIComponent(o)}`),t=t.replace(/&$/,""),t}async function k(e){try{const t="/content/wsu-international/jcr:content/courseFilter.json",r=e?`${t}?${e}`:t,i=await fetch(r),a=await i.json();return n=a||{result:[]},function(e){(e?.result||[]).forEach((e=>{if(!e?.vanityId)return;const t=String(e.vanityId),n=o.get(t)||{};o.set(t,{vanityId:t,courseProgramName:e.courseProgramName||n.courseProgramName||"",coursePageUrl:e.coursePageUrl||n.coursePageUrl||"#",courseColour:e.courseColour||n.courseColour||"#d8d8d8"})})),E()}(n),T(n),D(n),N(n),n}catch(e){throw e}}function A(){const t=document.querySelectorAll(l);t?.forEach((e=>{const t=e.parentElement?.id;if(!t)return;const n=document.createElement("span");
1n.className="cmp-custom-course-filter-primary__section-list-selector-count",i[t]=i[t]||0,n.textContent=`${i[t]} Selected`,n.style.display="none",e.appendChild(n);const o=e.nextElementSibling?.querySelectorAll('.cmp-custom-course-filter-primary__container-item input[type="checkbox"]');o?.forEach((e=>{e.addEventListener("change",(async()=>{const o=t.toLowerCase().replace(/\s+/g,"-").replace(/-([a-z])/g,((e,t)=>t.toUpperCase()));e.checked?(i[t]++,r[o].includes(e.id)||r[o].push(e.id)):(i[t]--,r[o]=(r[o]||[]).filter((t=>t!==e.id))),r.alphabetRange=[],I(),n.textContent=`${i[t]} Selected`,n.style.display=i[t]>0?"block":"none";const a=$(x(r));await k(a)}))})),e.addEventListener("click",(t=>{if(!(t.target instanceof HTMLElement))return;const n=e.parentElement;if(!n)return;n.classList.toggle("expanded");const o=e.querySelector(u);n.classList.contains("expanded")?o&&(o.src="/etc.clientlibs/wsu-core-v2/clientlibs/clientlib-site/resources/images/icons/Icon_Dropdown-Up.svg"):o&&(o.src="/etc.clientlibs/wsu-core-v2/clientlibs/clientlib-site/resources/images/icons/Icon_Dropdown-Down.svg")}))}));const n=document.querySelector(d);n?.addEventListener("click",(async()=>{document.querySelectorAll('.cmp-custom-course-filter-primary__container-item input[type="checkbox"]').forEach((e=>
1e.checked=!1)),Object.keys(i).forEach((e=>i[e]=0)),document.querySelectorAll(".cmp-custom-course-filter-primary__section-list-selector-count").forEach((e=>{e.textContent="0 Selected",e.setAttribute("style","display:none")})),document.querySelectorAll(c).forEach((e=>{e.classList.remove("expanded")})),document.querySelectorAll(u).forEach((e=>{e.src="/etc.clientlibs/wsu-core-v2/clientlibs/clientlib-site/resources/images/icons/Icon_Dropdown-Down.svg"})),r={availableFor:[],lsr:[],courseLevel:[],aos:[],sessionName:[],campuses:[],applicationPathway:[],alphabetRange:[],studyMode:[]},I();T(await k(),localStorage.getItem(e))}))}function I(){document.querySelectorAll(`${b} li`).forEach((e=>e.classList.remove("active")))}function j(){const e=document?.querySelectorAll(`${b} li`);let t=[];e?.forEach((o=>{o.addEventListener("click",(async()=>{o.classList.toggle("active");const i=o.id;if(o.classList.contains("active")?t.includes(i)||t.push(i):t=t.filter((e=>e!==i)),"all"===i){o.style.borderBottom="2px solid #ffff",e?.forEach((e=>{e!==o&&e.classList.contains("active")&&e.classList.remove("active")})),t=[];const i=$(x(r)).replace(/&?alphabet-range=[^&]*/,"");return await k(i),void T(n)}t=[...new Set(t)],r.alphabetRange=t;const a=$(x(r));await k(a),D(n)}))}))}function F(e,t){let n="";return e.forEach((e=>{const o=t.has(String(e.courseVanityId));n+=`\n        <div>\n          ${e.courseAlphabate?`<h3 class="cmp-custom-course-filter__results-card-entry-alpha">${e.courseAlphabate}</h3>`:""}\n          <div class="cmp-custom-course-filter__results-card-entry" style="border-left: 5px solid ${e.courseColour};">\n            <a href="${e.courseUrl}" id="${e.courseVanityId}">\n              <div class="cmp-custom-course-filter__results-card-entry-text">${e.courseName}</div>\n            </a>\n            <img class="cmp-custom-course-filter__results-card-entry-text-heart-icon ${o?"heart-icon-selected":""}"\n              src="${o?"/etc.clientlibs/wsu-core-v2/clientlibs/clientlib-site/resources/images/heart-icon-red.svg":"/etc.clientlibs/wsu-core-v2/clientlibs/clientlib-site/resources/images/heart-icon.svg"}"\n              height="23" width="23" alt="noun-heart">\n          </div>\n        </div>`})),n}function T(e,t){const n=document.querySelector(m);if(!n)return;const o=new Set((t?t.split(","):q()).map(String));let r=20;const i=()=>{const t=e?.result?.slice(0,r)||[],i=new Set,a=[];t.forEach((e=>{const t=e.alphabetCode;i.has(t)?a.push({courseName:e.courseProgramName,courseAlphabate:"",courseVanityId:e.vanityId,courseUrl:e.coursePageUrl,courseColour:e.courseColour}):(i.add(t),a.push({courseName:e.courseProgramName,courseUrl:e.coursePageUrl,courseAlphabate:t,courseVanityId:e.vanityId,courseColour:e.courseColour}))})),n.innerHTML=F(a,o);const s=document.querySelector(y);s&&(s.style.display=r>=(e?.result?.length||0)?"none":"block")};i();const a=document.querySelector(y);a?.addEventListener("click",(()=>{r+=20,i()}))}function D(t){const n=localStorage.getItem(e),o=n?.split(","),r=document.querySelector(m),i=document.querySelector(h),s=document.querySelector(a)?.getAttribute("data-contactusurl");if(!r)return;if(!t?.result?.length){const e=`\n        <div class="cmp-custom-course-filter-cannot-find-course">\n          <h2 class="cmp-custom-course-filter-cannot-find-course-text">Can't find your course?</h2>\n          <p class="cmp-custom-course-filter-cannot-find-course-para">Don't worry, we're here to assist you.\n          Click on the 'Contact Us' button, and one of our team will be happy\n          to help you find the information you need. We're committed to ensuring you have the\n          best experience while exploring our courses. Your academic journey is important to us, and\n          we're just a click away to guide you in the right direction.</p>\n          <div class="cmp-custom-course-filter-cannot-find-course-btn">\n            <a role="button" href="${s}" class="cmp-custom-course-filter-cannot-find-course-btn-text">\n              <span class="cmp-button__text">contact us</span>\n            </a>\n          </div>\n        </div>`;i&&(i.innerHTML=e);const t=document.querySelector(y);return void(t&&(t.style.display="none"))}const l=new Set,c=t.result.map((e=>{const t=e.alphabetCode;return l.has(t)?{courseName:e.courseProgramName,courseAlphabate:"",courseVanityId:e.vanityId,courseUrl:e.coursePageUrl,courseColour:e.courseColour}:(l.add(t),{courseName:e.courseProgramName,courseUrl:e.coursePageUrl,courseAlphabate:t,courseVanityId:e.vanityId,courseColour:e.courseColour})})),u=new Set((o||[]).map(String));r.innerHTML=F(c,u);const d=document.querySelector(".cmp-custom-course-filter-load");d&&(d.style.display=0===t?.result.length?"none":"block"),i&&(i.innerHTML="")}function N(e){const t=document.querySelector(p),n=document.querySelector(f);if(!t||!n)return;const r=q(),i=r.map((e=>
1o.get(String(e)))).filter(Boolean),a=new Map((e?.result||[]).map((e=>[String(e.vanityId),e])));r.forEach((e=>{const t=String(e);if(!i.find((e=>e.vanityId===t))&&a.has(t)){const e=a.get(t),n={vanityId:t,courseProgramName:e.courseProgramName,coursePageUrl:e.coursePageUrl,courseColour:e.courseColour};o.set(t,n),i.push(n)}})),E(),t.innerHTML="",r.length?(n.style.display="block",i.forEach((e=>{t.innerHTML+=`\n          <div class="cmp-custom-course-filter__results-card-entry" style="border-left: 5px solid ${e.courseColour};">\n            <a href="${e.coursePageUrl}" id="${e.vanityId}">\n              <div class="cmp-custom-course-filter__results-card-entry-text">${e.courseProgramName}</div>\n            </a>\n            <img class="cmp-custom-course-filter__results-card-entry-text-heart-icon"\n              src="/etc.clientlibs/wsu-core-v2/clientlibs/clientlib-site/resources/images/heart-icon-red.svg"\n              height="23" width="23" alt="noun-heart">\n          </div>`}))):n.style.display="none"}function P(){const e=document.querySelectorAll(L),t=q().length;e.forEach((e=>{e.textContent=String(t),e.style.display=0===t?"none":"block"}))}document.addEventListener("DOMContentLoaded",(async()=>{const e=document.querySelector(a);if(!e)return;!function(){try{const e=localStorage.getItem(t);if(!e)return;const n=JSON.parse(e);Object.values(n||{}).forEach((e=>{e&&e.vanityId&&o.set(String(e.vanityId),{vanityId:String(e.vanityId),courseProgramName:e.courseProgramName,coursePageUrl:e.coursePageUrl,courseColour:e.courseColour})}))}catch{}}();const l=e.getAttribute("data-filters")||"",u=l?JSON.parse(l):null,d=document.querySelector(s);function h(e){(e||"").split(",").map((e=>e.trim())).filter(Boolean).forEach((e=>{const t=document.getElementById(e);t?.setAttribute("checked","checked");const n=t?.closest(c);if(n){const e=n.id;i[e]=(i[e]||0)+1;let t=n.querySelector(".cmp-custom-course-filter-primary__section-list-selector-count");t||(t=document.createElement("span"),t.className="cmp-custom-course-filter-primary__section-list-selector-count",n.appendChild(t)),t.textContent=`${i[e]} Selected`,t.style.display="block"}}))}d&&u&&(d.innerHTML=function(e){return e?Object.entries(e).map((([e,t])=>"Alphabet Range"===e?"":`\n          <aside>\n            <div class="cmp-custom-course-filter-primary__section" id="${e.toLowerCase().replace(/\s+/g,"-")}">\n              <p class="cmp-custom-course-filter-primary__section-list">\n                <span class="cmp-custom-course-filter-primary__section-list-selector">\n                  ${e}\n                  <img class="icon-dropdown-section" \n                    src="/etc.clientlibs/wsu-core-v2/clientlibs/clientlib-site/resources/images/icons/Icon_Dropdown-Down.svg"\n                    height="12" width="12" alt="icon-arrow" />\n                </span>\n              </p>\n              <ul class="cmp-custom-course-filter-primary__container">\n                ${Object.entries(t).map((([e,t])=>`\n                      <li class="cmp-custom-course-filter-primary__container-item">\n                        <input type="checkbox" id="${t}">\n                        <span class="text">${e}</span>\n                      </li>`)).join("")}\n              </ul>\n            </div>\n          </aside>`.replace(/study-area/g,"aos").replace(/application-pathways/g,"application-pathway").replace(/intakes/g,"session-name"))).join(""):""}(u),A());for(const t of Array.from(e.attributes)){const e=t.name.toLowerCase(),n=t.value.split(",").map((e=>e.trim())).filter(Boolean);e.includes("availablefor")?(r.availableFor.push(...n),h(t.value)):e.includes("courselevel")?(r.courseLevel.push(...n),h(t.value)):e.includes("session-name")?(r.sessionName.push(...n),h(t.value)):e.includes("applicationpathways")?(r.applicationPathway.push(...n),h(t.value)):e.includes("studyarea")?(r.aos.push(...n),h(t.value)):e.includes("campuses")?(r.campuses.push(...n),h(t.value)):e.includes("studymode")&&(r.studyMode.push(...n),h(t.value))}const y=document.querySelector(v),b=document.querySelector(g);if(y&&b&&u){const e=function(e){return e?Object.entries(e).map((([e,t])=>"Alphabet Range"!==e?"":`\n          <ul class="cmp-custom-course-filter__all-ul">\n            <li class="alphabetic-range-item" id="all"><span>ALL</span></li>\n            ${Object.entries(t).map((([e,t])=>`\n                  <li class="alphabetic-range-item" id="${t}"><span>${e}</span></li>`)).join("")}\n          </ul>`)).join(""):""}(u);y.innerHTML=e,b.innerHTML=e}j();const L=new URLSearchParams(window.location.search).get("search");if(L)await k(`search-term=${encodeURIComponent(L)}`);else{const e=$(x(r));await k(e)}P(),function(){const e=document.querySelector(m);if(!e)return;e.addEventListener("click",(e=>{const t=e.target?.closest?.(".cmp-custom-course-filter__results-card-entry-text-heart-icon");if(!t)return;const r=t.closest(".cmp-custom-course-filter__results-card-entry"),i=r?.querySelector("a"),a=i?.id;if(!a)return;const s=new Set(q().map(String));if(s.has(a))s.delete(a),t.classList.remove("heart-icon-selected"),t.src="/etc.clientlibs/wsu-core-v2/clientlibs/clientlib-site/resources/images/heart-icon.svg",o.delete(a),E();else{s.add(a),t.classList.add("heart-icon-selected"),t.src="/etc.clientlibs/wsu-core-v2/clientlibs/clientlib-site/resources/images/heart-icon-red.svg";const e=(n?.result||[]).find((e=>String(e.vanityId)===a));let l="#d8d8d8";const c=(r?.getAttribute("style")||"").match(/border-left:\s*\d+px\s+solid\s+([^;]+)/i);c&&(l=c[1]);const u=e?{vanityId:a,courseProgramName:e.courseProgramName,coursePageUrl:e.coursePageUrl,courseColour:e.courseColour||l}:{vanityId:a,courseProgramName:r?.querySelector(".cmp-custom-course-filter__results-card-entry-text")?.textContent?.trim()||"",coursePageUrl:i?.getAttribute("href")||"#",courseColour:l};o.set(a,u),E()}C(Array.from(s)),N(n)}));const t=document.querySelector(p);t?.addEventListener("click",(e=>{const t=e.target?.closest?.(".cmp-custom-course-filter__results-card-entry-text-heart-icon");if(!t)return;const n=t.closest(".cmp-custom-course-filter__results-card-entry"),r=n?.querySelector("a"),i=r?.id;if(!i)return;const a=new Set(q().map(String));a.delete(i),C(Array.from(a)),o.delete(i),E(),n.remove(),q().length||document.querySelector(f)?.style.setProperty("display","none"),document.querySelectorAll(".cmp-custom-course-filter__results-card-entry a[id]").forEach((e=>{if(e.id===i){const t=e.parentElement?.querySelector(".cmp-custom-course-filter__results-card-entry-text-heart-icon");t&&(t.classList.remove("heart-icon-selected"),t.src="/etc.clientlibs/wsu-core-v2/clientlibs/clientlib-site/resources/images/heart-icon.svg")}}))}))}(),N(n),function(){const e=document.querySelector(_),t=document.querySelector(S),n=document.querySelector(w);e&&t&&e.addEventListener("click",(()=>{const e="none"===t.style.display||""===t.style.display;t.style.display=e?"block":"none",n&&(n.src=e?"/etc.clientlibs/wsu-core-v2/clientlibs/clientlib-site/resources/images/icons/icon_minus.svg":"/etc.clientlibs/wsu-core-v2/clientlibs/clientlib-site/resources/images/icons/icon_plus.svg")}))}()}))})()},900:function(){function e(e){let t="";return e?.sessionList?.forEach((e=>{e.sessionName&&(t+=`\n                <div class="accordion__inner--subject" style="display: none;">\n                <div class="component component--wysiwyg">\n                    <div class="course__subject__table"> \n                        <table>\n                <tr>\n                    <th colspan="2">${e.sessionName}</th>\n                </tr>`),e?.subjectList?.forEach((e=>{e.subjectCode&&e.subjectTitle&&(t+=`<tr>\n                    <td class="subject_code">\n                    <a href="https://hbook.westernsydney.edu.au/subject-details/${e.subjectCode.replace(/\s/g,"")}" target="_blank">${e.subjectCode}</a>\n                </td>\n                        <td>${e.subjectTitle}</td>\n                    </tr>`),e.selection&&(t+=`<tr>\n                        <td class="subject_selection" colspan="2">${e?.selection}</td>\n                    </tr>`),e.subjectList&&e?.subjectList?.forEach((e=>{t+=`<tr>\n                        <td class="subject_code">\n                        <a href="https://hbook.westernsydney.edu.au/subject-details/${e.subjectCode.replace(/\s/g,"")}" target="_blank">${e.subjectCode}</a>\n                            </td>\n                            <td>${e.subjectTitle}</td>\n                        </tr>`}))}))})),t}document.addEventListener("DOMContentLoaded",(async()=>{const t=document.querySelector(".cmp-course__subject"),n=t?.getAttribute("data-handbook-resp");!function(t){let n="";t?.sequenceblock?.forEach((t=>{if(t.sequenceblock){t?.years&&t.years.length?(n+=`<h2 class="accordion__block">${t.sequenceblock}</h2>`,t?.years?.forEach((t=>{n+=`<div class="accordion__item">\n                        <h3 class="year-heading">${t.year} <span class="plus-icon">+</span> </h3>\n                        <div class="accordion__inner--subject" style="display: none;">\n                            <div class="component component--wysiwyg">\n                                <div class="course__subject__table"> \n                                    <table>`,n+=e(t),n+="</table></div></div></div></div>"}))):(n+=`<div class="accordion__item">\n                        <h3 class="year-heading">${t.sequenceblock} <span class="plus-icon">+</span> </h3>\n                        <div class="accordion__inner--subject" style="display: none;">\n                            <div class="component component--wysiwyg">\n                                <div class="course__subject__table"> \n                                    <table>`,n+=e(t),n+="</table></div></div></div></div>")}})),document.querySelector(".subject-accordion__body")&&(document.querySelector(".subject-accordion__body").innerHTML=n);const o=document.querySelectorAll(".year-heading");o?.forEach((e=>{e.addEventListener("click",(function(){const e=this.nextElementSibling;e.style.display="block"===e.style.display?"none":"block";this.querySelector(".plus-icon").textContent="block"===e.style.display?"-":"+";const t=this.closest(".year-heading");if(t&&"block"===e.style.display){const e=t.offsetTop-62;window.scrollTo({top:e,behavior:"smooth"})}}))}))}(n?JSON.parse(n):"")}))},457:function(){document.addEventListener("DOMContentLoaded",(()=>{let e=0;const t=document?.querySelector("#course-api-json"),n=document?.querySelector(".cmp-fees-scholarship"),o=t&&t.getAttribute("data-json")?JSON.parse(t.getAttribute("data-json")):"",r=n&&n.getAttribute("data-scholarship-json")?JSON.parse(n.getAttribute("data-scholarship-json")):"";function i(e,t){const n=document?.querySelectorAll(".domestic-entry"),o=document?.querySelectorAll(".international-entry"),r=document?.querySelector(".cmp-fees-scholarship-section-form-para-domestic"),i=document?.querySelector(".cmp-fees-scholarship-section-form-para-international"),a=document?.querySelector(".cmp-fees-scholarship-section-form-para-link");n&&o&&(r&&(r.innerText=t?.domesticFees),i&&(i.innerText=t?.internationalFees),a&&(a.innerText=t?.fullDisclaimerLabel),"international"===e&&(o?.forEach((e=>e.style.display="block")),n?.forEach((e=>e.style.display="none"))),"domestic"===e&&(n?.forEach((e=>e.style.display="block")),o?.forEach((e=>e.style.display="none"))))}o&&function(t){const n=document?.querySelector(".course_page_banner");if(n){if(Array.isArray(t.intakeSessions)&&t.intakeSessions[0]&&t.intakeSessions[0].length>0&&!t.intakeSessions[0][0].closingDate){const a=n?.querySelector(".course_date"),s=n?.querySelector(".course_date_close");s&&(s.style.display="none"),a&&a.classList.add("space_right")}function o(t){!function(t,n){const o=document?.querySelector(".dropdown_course_toggle"),a=document?.querySelector(".dropdown_options");
1if(o&&a){const s=document?.querySelector(".dropdown_value"),l=document?.querySelector(".icon_arrow"),c=document?.querySelector(".course-info-content"),u=a?.getElementsByTagName("LI");let d="";const m=function(e){const t=e?.courseProgramTags,n=t?.filter((e=>e.includes("available-for")));var o=[];return n?.forEach((e=>{let t=e.split(":")[1];(t?.includes("international")||t?.includes("domestic"))&&t?.split("-").length>0&&(t=t.split("-")[0]),o?.push(t)})),o}(t);d=m[0],m?.length<2?(s&&(s.innerText=m[0]),o.style.pointerEvents="none",l&&(l.style.display="none")):(u&&[...u].forEach(((e,t)=>{e.innerText=m[t]})),s&&(s.innerText=m[0])),0==e&&(o.addEventListener("click",(()=>{l?.classList.toggle("active_arrow"),c&&(a?.style.maxHeight?(a.style.maxHeight=null,c.style.marginTop="0"):(a.style.display="block",a.style.maxHeight=a.scrollHeight+"px",c.style.marginTop=a.scrollHeight+"px"))})),a?.addEventListener("click",(e=>{"LI"===e.target.tagName&&(l&&l.classList.toggle("active_arrow"),s&&(s.innerText=e.target.innerText),d&&(d=s?.innerText),a.style.maxHeight=null,c&&(c.style.marginTop="0")),d&&(n(d.toLowerCase()),i(d.toLowerCase(),r));const o=document?.querySelector(".course_page_banner"),u=document.querySelector(".course_date_close");if("international"===e.target.innerText.toLowerCase()){u.style.display="none";const e=o?.querySelector(".course_date");e&&e.classList.add("space_right")}else if(t.intakeSessions[0][0].closingDate)u.style.display="block";else{u.style.display="none";const e=o?.querySelector(".course_date");e&&e.classList.add("space_right")}})),e=1),d&&(n(d.toLowerCase()),i(d.toLowerCase(),r))}}(t,(e=>{const o=n?.querySelector(".course_fees_info"),r=n?.querySelector(".course_fees_title");var i=n?.querySelector('input[name="domestic-label"]'),a=n?.querySelector('input[name="international-label"]');let s=n?.querySelector(".course_banner_heading_container .button .cmp-button"),l=n?.querySelectorAll(".course_sticky_bar .course_buttons_container .button .cmp-button");"international"===e&&(o&&(o.innerText=t?.internationalFees),r&&(r.innerText=a?.value),s?.setAttribute("href",t?.internationalApplicationLink),l[0]?.setAttribute("href",t?.InternationalLeadFormLink),l[1]?.setAttribute("href",t?.internationalApplicationLink)),"domestic"===e&&(o&&(o.innerText=t?.domesticFees),r&&(r.innerText=i?.value),s?.setAttribute("href",t?.domesticApplicationLink),l[0]?.setAttribute("href",t?.domesticLeadFormLink),l[1]?.setAttribute("href",t?.domesticApplicationLink))}))}o(t)}}(o)}))},918:function(){document.addEventListener("DOMContentLoaded",(function(){var e=document.querySelectorAll(".form-tabs-dropdown__content-wrapper-items");e.forEach((function(t){t.addEventListener("click",(function(){e.forEach((function(e){e.classList.remove("active");var t=e.querySelector("a");t&&t.classList.remove("newActive")})),t.classList.add("active");var n=t.querySelector("a");n&&n.classList.add("newActive")}))}))}))},656:function(){"serviceWorker"in navigator&&navigator.serviceWorker.register("/content/digital/firebase-messaging-sw.js").then((e=>{})).catch((e=>{}))},637:function(){const e=document.querySelector(".scroll-to-top");if(e){e.addEventListener("click",(()=>{window.scrollTo({top:0,behavior:"smooth"})}));document.body.scrollHeight<=1900&&(e.style.display="none")}},938:function(){var e,t=".js-fc",n="fc--focus",o="fc--active",r="fc--error";function i(e){return/^([a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+(\.[a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)*|"((([ \t]*\r\n)?[ \t]+)?([\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*(([ \t]*\r\n)?[ \t]+)?")@(([a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.)+([a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.?$/i.test(e)}
1(e=$(".js-fc__text, .js-fc__tel, .js-fc__number, .js-fc__email, .js-fc__select, .js-fc__radio, .js-fc__checkbox")).each((function(){!function(e){var a=e,s=a.closest(t),l=$(a[0]).attr("type");a.on("focus",(function(){s.addClass(n)})),"text"!=l&&"textarea"!=l&&"radio"!=l&&"checkbox"!=l&&"tel"!=l&&"number"!=l&&"email"!=l&&"select-one"!=l||(a.on("blur",(function(){if(0!==a.val().length){if("email"==l&&s.hasClass(r)&&!1===i(a.val()))return;s.addClass(o),s.removeClass(r),a.removeAttr("aria-invalid"),a.attr("aria-describedby",a.attr("data-tooltip-id"))}else s.removeClass(o);s.removeClass(n)})),""!==a.val()&&s.addClass(o)),a.is("select")&&(a.on("change blur",(function(e){""!==a.val()?s.addClass(o):s.removeClass(o),"blur"===e.type&&s.removeClass(n)})),""!==a.val()&&s.addClass(o))}($(this))})),$(".js-fc__submit").click((function(){var n=$(this).closest("form");if($fcInCurrentForm=n.find(e),validFlag=!0,$fcInCurrentForm.each((function(){var e=$(this),n=e.closest(t),o=e.val(),a=$(e[0]).attr("type");"radio"!=a&&"checkbox"!=a||(o=$("input[name="+e.attr("name")+"]:checked").length?$("input[name="+e.attr("name")+"]:checked").val():""),e.attr("required")&&(""===o||"email"==a&&!1===i(o))&&(e.attr("aria-invalid","true"),e.attr("aria-describedby",e.attr("data-error-id")),n.addClass(r),validFlag=!1)})),!validFlag)return $("html, body").animate({scrollTop:n.find("."+r).first().offset().top},500),!1}))},814:function(){document.addEventListener("DOMContentLoaded",(()=>{const e=document?.querySelector(".header__logo__v2");checkChildMenuExist=function(){var e=parseInt($('meta[name="navigation-menu"]').attr("content")?.split("-")[1]);for($($(".header--top--level--menu__v2")[e-1]).addClass("viewing--page"),i=0;i<$(".header--top--level--menu__v2").length;i++)if(""==$($(".header--top--level--menu__v2")[i]).find(".page--links--level--1").text().trim())$($(".header--top--level--menu__v2")[i]).find(".full--hover--menu").remove(),1==$($(".header--top--level--menu__v2")[i]).length&&$($(".header--top--level--menu__v2")[i]).find(".header--subnavbtn").addClass("only--parent");else{let e=$($(".header--top--level--menu__v2")[i]).find(".page--links--level--1 .sub--page--links");for(j=0;j<e.length;j++)""==$($(e)[j]).find(".header--subnav--content2").text().trim()&&($($(e)[j]).find(".sublinks--hover").addClass("sublinks--deactive"),$($(e)[j]).find(".header--subnavbtn__icon").remove())}},e&&function(){const e=document.querySelector(".header--logo--navigation--v2");if(e){checkChildMenuExist();let t=e.querySelectorAll(".header--top--level--menu__v2");t&&t.length>0&&t.forEach((function(e){e.addEventListener("click",(function(e){const t=this.querySelector(".header--nav--menu--name");function n(e){e?.classList.toggle("active");const t=Array.from(e.parentNode.children);t&&t.length>0&&t?.forEach((function(t){t!==e&&t.classList.remove("active")}))}if(t&&(this.classList.contains("external-link-v2")||e.target!==t||e.preventDefault()),n(this),document.querySelectorAll(".header--subnav--content")?.forEach((function(e){e.style.display="none"})),this.classList.contains("active")&&window.innerWidth>1220){const e=this?.querySelector(".header--subnav--content");if(e){e.style.display="block",e.style.marginTop="30px";const t=this?.querySelector(".full--hover--menu");if(t){const n=e.querySelector(".page--links--level--1"),o=this.parentNode.parentNode;let r=0;n?.offsetHeight<o?.offsetHeight&&window.innerWidth>1220?r=o.offsetHeight+50:n&&(r=n.offsetHeight+50),r=Math.max(r,t.offsetHeight),t.style.height=r+"px"}}}}))}))}}()}))},466:function(){document.addEventListener("DOMContentLoaded",(function(){let e,t;!function(){const e=document.querySelectorAll(".circle-red-count"),t=localStorage.getItem("vanityId");let n=0;t&&(n=t.split(",").length);e.forEach((function(e){e.textContent=n,e.style.display=0===n?"none":"block"}))}();let n=null,o=null,r=setInterval((function(){"null"!==localStorage.getItem("country")&&null!==localStorage.getItem("country")&&(clearInterval(r),localStorage.setItem("country-fe",localStorage.getItem("country")),s());localStorage.getItem("country-fe")||localStorage.setItem("country",localStorage.getItem("country-fe"))}),1e3),a=null===localStorage.getItem("menuJson")?{menus:{}}:JSON.parse(localStorage.getItem("menuJson"));function s(){fetch("/content/experience-fragments/wsu-international/au/en/site/international-global-header/master/jcr:content/root/internationalglobalh/actionbar/countryandjourney.model.json").then((function(e){return e.json()})).then((function(o){e=o,t=e.countryFlags,null!=document.getElementById("view-all-country").innerHTML&&(document.getElementById("view-all-country").innerHTML=e.viewAllCountries),function(){n=t.filter((function(e){return e.countryCode.toLowerCase().trim()===localStorage.getItem("country-fe").toLowerCase().trim()}));let e=n[0].countryName,o=n[0].flagPath;document.getElementById("country-located").innerHTML=e,document.querySelector(".country__display img").src=o,c(e,o);var r=n[0].countryCode.charAt(0);document.getElementById("search-country").value=r,"australia"===n[0].countryCode.toLowerCase().trim()&&null===localStorage.getItem("firstVisit")?(document.querySelector(".show--australia").style.display="block",localStorage.setItem("firstVisit",!0)):document.querySelector(".show--australia").style.display="none",l(r)}()}))}function l(e){o=t?.filter((function(t){return t.countryName.toLowerCase().startsWith(e.toLowerCase())}));const n=o.slice(0,5).map((function(e){return`<li key=${e.countryCode}> ${e.countryName} </li>`}));document.querySelector(".country--dropdown__list ul").innerHTML=n.join("");document.querySelectorAll(".country--dropdown__list li").forEach((function(e){e.addEventListener("click",(function(){document.getElementById("country-located").textContent=e.textContent.trim(),document.getElementById("search-country").value=e.textContent.trim().charAt(0),document.querySelector(".country--dropdown").classList.remove("dropdown__active"),document.querySelector(".student--dropdown").classList.remove("dropdown__active"),localStorage.getItem("country-fe").toLowerCase()!==e.textContent.toLowerCase()&&(localStorage.setItem("country-fe",e.textContent),localStorage.setItem("isCountryChanged",!0),s()),"australia"===document.getElementById("country-located").textContent.toLowerCase().trim()?document.querySelector(".show--australia").style.display="block":document.querySelector(".show--australia").style.display="none",event.stopPropagation(),window.location.reload()}))}))}function c(e,t){let n=document.querySelector(".wsu-country-selector .country--display");if(n){let o=n.querySelector(".country--located"),r=n.querySelector("img");o.textContent=e,r.setAttribute("src",t)}}function u(){if(null!==localStorage.getItem("menuJson")){const e=a.menus;Object.keys(e).forEach((t=>{var n=e[t].menuIndex;const o=document.querySelectorAll(".header--navbar .header--top--level--menu");n>=1&&n<=o.length&&o[n-1].classList.add("header--top--level--menu__highlighted")}))}else{const e=localStorage.getItem("selected_menu");e&&(document.querySelector(".student--dropdown p").textContent=e)}}null===localStorage.getItem("isStudentChanged")&&localStorage.setItem("isStudentChanged",!1),null===localStorage.getItem("isCountryChanged")&&localStorage.setItem("isCountryChanged",!1),!0===JSON.parse(localStorage.getItem("isCountryChanged"))&&localStorage.setItem("country",localStorage.getItem("country-fe")),closeDropdowns=function(e){const t=document.querySelector("body"),n=document.querySelector(".country--dropdown"),o=document.querySelector(".student--dropdown");t.contains(e.target)||0!==t.has(e.target).length||(n.contains(e.target)||0!==n.has(e.target).length||n.removeClass("dropdown__active"),o.contains(e.target)||0!==o.has(e.target).length||o.removeClass("dropdown__active"))},openCountryLightbox=function(n){document.body.classList.add("lightbox--open");const o=document.getElementById(n);o&&(o.style.display="block");const r=document.querySelector("[data-modal-backdrop='"+n+"']");r&&r.classList.add("show");const i=document.getElementById("country-located").textContent.trim(),a=document.querySelector("#countryLightbox .country--lightbox-ul");
1if(a){a.innerHTML="",t?.filter((e=>e.countryName)).forEach((e=>{const t=document.createElement("li");t.setAttribute("key",e.countryCode);const n=e.countryName.toLowerCase()===i.toLowerCase()?"active":"";t.innerHTML=`<img src="${e.flagPath}" alt=''/><span class="${n}">${e.countryName}</span>`,t.addEventListener("click",(function(){const e=t.textContent,n=t.querySelector("img").getAttribute("src");closeCountryLightbox("countryLightbox"),document.getElementById("country-located").textContent=e,document.querySelector(".country__display img").setAttribute("src",n),c(e,n),localStorage.setItem("country-fe",t.textContent),localStorage.getItem("country-fe").toLowerCase()!==t.textContent.toLowerCase()&&localStorage.setItem("isCountryChanged",!0),window.location.reload()})),a.appendChild(t)}));const n=document.createElement("div");n.classList.add("country--link","no__country__link"),n.textContent=e?.countryNotListed,n.addEventListener("click",(function(){closeCountryLightbox("countryLightbox"),document.body.classList.add("lightbox--open"),document.getElementById("countryNotFound").style.display="block";const e=document.querySelector("[data-modal-backdrop=countryNotFound]");e&&e.classList.add("show");const t=document.querySelector("#country--not--found .lightbox--content").getAttribute("class"),n=document.querySelector("#country--not--found .lightbox--backdrop").getAttribute("class");document.querySelectorAll("#country--not--found .lightbox__action").forEach((function(e){e.style.display="none"}));document.querySelectorAll("#country--not--found .lightbox--backdrop").forEach((function(e){e.style.display="none"}));document.querySelector("#countryNotFound .lightbox--body").innerHTML=document.querySelector("#country--not--found").innerHTML;const o=document.querySelector("#countryNotFound .lightbox--content");o.setAttribute("class",t);const r=`<div class="${n} show" data-modal-backdrop="countryNotFound"></div>`;o.insertAdjacentHTML("afterend",r)})),a.appendChild(n)}},window.onclick=function(e){e.target.classList.contains("countrynotfound__action")&&closeCountryNotFound("countryNotFound"),e.target.classList.contains("countrylightbox__action")&&closeCountryLightbox("countryLightbox")},closeCountryLightbox=function(e){document.body.classList.remove("lightbox--open");var t=document.getElementById(e);t&&(t.style.display="none");var n=document.querySelector("[data-modal-backdrop='"+e+"']");n&&n.classList.remove("show")},closeCountryNotFound=function(e){document.body.classList.remove("lightbox--open");var t=document.getElementById(e);t&&(t.style.display="none");var n=document.body.querySelector("[data-modal-backdrop='"+e+"']");n&&n.remove()},openCountryDropdownList=function(e){const t=document.querySelector(".country--dropdown");t.classList.contains("dropdown__active")||(t.classList.add("dropdown__active"),document.getElementById("search-country").value=document.getElementById("country-located").textContent.trim().charAt(0),localStorage.setItem("country-fe",document.getElementById("country-located").textContent),localStorage.setItem("isCountryChanged",!0),l(document.getElementById("country-located").textContent.trim().charAt(0))),e.stopImmediatePropagation()},openStudentDropdownList=function(){const e=document.querySelector(".student--dropdown");e&&e.classList.toggle("dropdown__active")},openCountryDialogBox=function(){const e=document.querySelector(".country--dropdown"),t=document.querySelector(".student--dropdown");e&&e.classList.remove("dropdown__active"),t&&t.classList.remove("dropdown__active"),event?.stopPropagation(),openCountryLightbox("countryLightbox")},checkChildMenuExist=function(){var e=parseInt($('meta[name="navigation-menu"]').attr("content")?.split("-")[1]);for($($(".header--top--level--menu")[e-1]).addClass("viewing--page"),i=0;i<$(".header--top--level--menu").length;i++)if(""==$($(".header--top--level--menu")[i]).find(".page--links--level--1").text().trim())$($(".header--top--level--menu")[i]).find(".full--hover--menu").remove(),1==$($(".header--top--level--menu")[i]).length&&$($(".header--top--level--menu")[i]).find(".header--subnavbtn").addClass("only--parent");else{let e=$($(".header--top--level--menu")[i]).find(".page--links--level--1 .sub--page--links");for(j=0;j<e.length;j++)""==$($(e)[j]).find(".header--subnav--content2").text().trim()&&($($(e)[j]).find(".sublinks--hover").addClass("sublinks--deactive"),$($(e)[j]).find(".header--subnavbtn__icon").remove())}},menuVisited=function(e){var t=function(e,t){var n=e.closest(t);if(n)for(var o=document.querySelectorAll(".header--top--level--menu"),r=0;r<o.length;r++)if(o[r]===n)return r;return-1}(e,".header--top--level--menu");if(-1!==t){var n="menu"+t;a.menus[n]={isChildViewed:!0,menuIndex:t},localStorage.setItem("menuJson",JSON.stringify(a)),"_blank"===e.getAttribute("target")?(window.open(e.getAttribute("href"),"_blank"),u()):location.pathname=e.getAttribute("href")}},function(){const e=localStorage.getItem("selected_menu"),t=JSON.parse(localStorage.getItem("isStudentChanged"));if(null!==e&&t){const t=document.querySelector(".student--dropdown p");t&&e&&(t.textContent=e)}else{const e=Number(document.querySelector('meta[name="navigation-menu"]')?.getAttribute("content")?.split("-")[1]);localStorage.setItem("selected_menu_count",e)}}(),u(),document.querySelectorAll(".country--dropdown li").forEach((function(e){e.addEventListener("click",(function(e){var t=this.parentElement.parentElement,n=t.querySelector("p");n.textContent=this.textContent,n.setAttribute("data-selection",this.getAttribute("data-menu")),t.classList.remove("dropdown__active"),e.stopPropagation()}))})),document.addEventListener("keyup",(function(e){e.target&&"search-country"===e.target.id&&l(e.target.value)})),document.addEventListener("click",(function(e){if(e.target&&"student-menu"===e.target.id){var t=e.target.querySelector("li");if(t){var n=t.parentElement.parentElement.querySelector("p"),o=t.querySelector("> a").textContent;n.textContent=o,n.setAttribute("data-selection",t.getAttribute("data-menu"));var r=document.querySelector(".student--dropdown");r&&r.classList.remove("dropdown__active"),document.querySelectorAll(".header--top--level--menu").forEach((function(e){e.classList.remove("header--top--level--menu__highlighted")})),localStorage.setItem("selected_menu_count",0),localStorage.setItem("selected_menu",o),localStorage.setItem("isStudentChanged",!0),localStorage.removeItem("menuJson"),e.stopPropagation()}}})),checkChildMenuExist(),document.addEventListener("click",(function(e){if(e.target&&e.target.classList.contains("arrow--icon")){e.preventDefault();var t=JSON.parse(localStorage.getItem("favourites"));if(t&&0!==t.length){var n=e.target.querySelector("a");n&&(n.href+="?courses="+t.toString())}n&&(window.location.href=n.href)}})),document.querySelectorAll(".header__action--hyperlink").forEach((function(e){e.setAttribute("aria-label","navigation"),document.querySelectorAll(".header__col--wrapper").forEach((function(e){var t=e.querySelector("a");t&&""===t.textContent.trim()&&(t.style.display="none")}))})),document.querySelectorAll(".header__action--lightbox").forEach((function(e){e.setAttribute("aria-label","lightbox")}))}
1)),window.addEventListener("load",(function(){checkChildMenuExist()})),document.addEventListener("mouseup",(function(e){closeDropdowns(e)})),window.onclick=function(e){e.classList.contains("countrylightbox__action")&&closeCountryLightbox("countryLightbox"),e.classList.contains("countrynotfound__action")&&closeCountryNotFound("countryNotFound")}},409:function(){document.addEventListener("DOMContentLoaded",(function(){document.addEventListener("click",(function(e){if(e.target.innerHTML?e.target.classList.contains("nav--icon--hamburger"):e.target.parentElement.classList.contains("nav--icon--hamburger")){document.querySelector(".nav--icon--hamburger").classList.toggle("open"),document.body.classList.toggle("hamburger--menu--open");var t=document.querySelector(".header--action--bar--mobile--view");t&&t.classList.toggle("active");var n=document.querySelector(".header--navbar");if(n)n.querySelectorAll(".header--subnavbtn--active, .header--subnavbtn--active1").forEach((function(e){e.classList.remove("header--subnavbtn--active","header--subnavbtn--active1")}))}})),$(window).width()>=1220&&($(document).on("mouseenter",".sublinks--hover",(function(){var e=0;e=$(this).next().height()<$(this).parent().parent().height()&&$(window).width()>1220?$(this).parent().parent().height()+20:void 0===$(this).next().height()?$(this).parents().closest(".page--links--level--1").height():$(this).next().height()+20,$(".full--hover--menu").height(e),$(this).parents().closest(".page--links--level--1").height()>$(this).next().height()&&$(this).next().height($(this).parents().closest(".page--links--level--1").height()),$(window).outerHeight()<e&&$(".header--navbar").hasClass("header--navbar__stick")?($(".full--hover--menu").height($(window).outerHeight()-40),$("body").css("overflow","hidden"),$(".full--hover--menu").css("overflow","auto")):($("body").css("overflow","auto"),$(".full--hover--menu").css("overflow","hidden"))})),$(document).on("mouseleave",".sublinks--hover",(function(){if("none"===$(this).next().css("display")&&$(window).width()>1220){var e=0;e=$(this).next().height()<$(this).parent().parent().height()?$(this).parent().parent().height()+20:$(this).next().height()+20,$(".full--hover--menu").height(e)}})),$(document).on("mouseleave",".header--subnav--content2",(function(){$("body").css("overflow","auto"),$(".full--hover--menu").css("overflow","hidden"),$(".full--hover--menu").height($(this).parents().closest(".page--links--level--1").height())})),$(document).on("mouseenter",".header--top--level--menu",(function(){$(window).width()>1220&&$(".full--hover--menu").height($(this).find(".page--links--level--1").height()+20)}))),setInterval((function(){var e=document.querySelector(".header--mobile--navigation"),t=document.querySelectorAll(".header--mobile--navigation div"),n=window.innerWidth,o=document.querySelector(".header--navigation"),r=document.querySelector(".header--action--bar"),i=(document.querySelector(".agents"),document.querySelector(".western--online"),document?.querySelector(".header__logo__v2")),a=document?.querySelector(".header--logo--navigation--v2");if(0===t.length&&i&&!o){const t=r.cloneNode(!0);n<=1220&&e&&(e.innerHTML=a.outerHTML,e.appendChild(t))}if(0===t.length&&o&&n<=1220&&e){if(o&&(e.innerHTML=o.outerHTML),i&&a){const t=a.cloneNode(!0);t&&e.appendChild(t);const n=e?.querySelector(".header--logo--navigation--v2");if(n){n.classList.add("bg_white");const e=n?.querySelectorAll(".header__icon__action");e&&e.length>0&&e?.forEach((e=>{e.classList.add("crimson_icon")}))}}const t=r.cloneNode(!0);e.appendChild(t)}}),1e3),window.innerWidth<=1220&&(document.addEventListener("click",(function(e){if(e.target.classList.contains("header__icon__action")){var t=e.target.parentElement;if(t.classList.contains("header--subnavbtn--active"))t.classList.remove("header--subnavbtn--active");else if(document.querySelectorAll(".header--mobile--navigation .header--top--level--menu .header--subnavbtn--active").length>=1)document.querySelectorAll(".header--navbar .header--subnavbtn--active").forEach((function(e){e.classList.remove("header--subnavbtn--active")})),t.classList.add("header--subnavbtn--active");else t.classList.add("header--subnavbtn--active");document.querySelectorAll(".header--subnavbtn--active1").forEach((function(e){e.classList.remove("header--subnavbtn--active1")}))}})),document.addEventListener("click",(function(e){if(e.target.classList.contains("header__icon__sublink__action")){var t=e.target.parentElement;if(t.classList.contains("header--subnavbtn--active1"))t.classList.remove("header--subnavbtn--active1");else if(document.querySelectorAll(".header--mobile--navigation .page--links--level--1 .header--subnavbtn--active1").length>=1)document.querySelectorAll(".header--navbar .header--subnavbtn--active1").forEach((function(e){e.classList.remove("header--subnavbtn--active1")})),t.classList.add("header--subnavbtn--active1");else t.classList.add("header--subnavbtn--active1")}})),document.addEventListener("click",(function(e){if(e.target.classList.contains("header--subnavbtn__link")){var t=document.querySelector(".nav--icon--hamburger");t&&t.click()}})),document.addEventListener("click",(function(e){if(e.target.classList.contains("sublinks--hover__link")){var t=document.querySelector(".nav--icon--hamburger");t&&t.click()}}))),window.addEventListener("scroll",(function(){var e,t,n;window.innerWidth>=1220&&(e=window.pageYOffset||document.documentElement.scrollTop,t=document?.querySelector(".header--navigation"),n=document.querySelector(".header--navbar"),e>t?.offsetTop?n.classList.add("header--navbar__stick"):n?.classList.remove("header--navbar__stick"))}))}))},802:function(){let e=!1,t=null;function n(e){if(e.hasAttribute("data-a11y-enhanced"))return;const t=e.querySelectorAll(":scope > p");if(t.length<=1)return;if(e.querySelector("a, button, [tabindex]"))return;const n=Array.from(t).map((e=>
1e.textContent.trim())).filter(Boolean).join(" ");e.setAttribute("role","group"),e.setAttribute("tabindex","0"),e.setAttribute("aria-label",n),t.forEach((e=>e.setAttribute("aria-hidden","true"))),e.setAttribute("data-a11y-enhanced","true")}function o(e){t=e.touches[0].clientX}function r(e){if(t){const n=e.touches[0].clientX,o=t-n;Math.abs(o)>50&&(a(o>0?s()+1:s()-1),t=null)}}function i(){t=null}function a(t){const n=Array.from(document.querySelectorAll(".slide_item")),o=document.querySelector(".slide_indicator");if(n.length<2)return void(o.style.display="none");if(e)return;e=!0;const r=document.querySelector(".slide_item__active"),i=n.indexOf(r);let a=null;t>i?(t>=n.length&&(t=0),a=n[t],a.classList.add("slide_item__pos_next"),setTimeout((()=>{a.classList.add("slide_item__next"),r.classList.add("slide_item__next")}),20)):(t<0&&(t=n.length-1),a=n[t],a.classList.add("slide_item__pos_prev"),setTimeout((()=>{a.classList.add("slide_item__prev"),r.classList.add("slide_item__prev")}),20)),a.addEventListener("transitionend",(()=>{r.className="slide_item",a.className="slide_item slide_item__active",e=!1}),{once:!0}),function(e){const t=document.querySelectorAll(".slide_dot"),n=document.querySelector(".slide_dot__active"),o=t[e];n.classList.remove("slide_dot__active"),o.classList.add("slide_dot__active")}(t)}function s(){const e=Array.from(document.querySelectorAll(".slide_item")),t=document.querySelector(".slide_item__active");return e.indexOf(t)}window.addEventListener("DOMContentLoaded",(()=>{!function e(){const t=Array.from(document.querySelectorAll(".slide_item"));if(t.length>=1&&document.querySelectorAll(".slide_brand-refresh-title").forEach(n),t.length>1){t.forEach(((e,t)=>{if(t>0){const t=e.querySelector(".slide_heading");if(t&&"H1"===t.tagName){const e=document.createElement("div");e.className=t.className,e.innerHTML=t.innerHTML,t.parentNode.replaceChild(e,t)}}}));const e=document.querySelector("#timeVar").value;if(l=parseInt(e),setInterval((()=>{a(s()+1)}),l),t.forEach(((e,t)=>{const n=document.createElement("button");n.classList.add("slide_dot"),0===t&&n.classList.add("slide_dot__active");document.querySelector(".slide_indicator").appendChild(n),n.addEventListener("click",(()=>{a(t)}))})),window.innerWidth<=768){const e=document.querySelector(".slide_inner");e.addEventListener("touchstart",o),e.addEventListener("touchmove",r),e.addEventListener("touchend",i)}}else setTimeout(e,300);var l}()}))},258:function(){document.addEventListener("DOMContentLoaded",(function(){var e=[];openLightBox=function(t,n,o,r,i){let a=t.target.parentElement?t.target.parentElement:t;if(a.classList?.contains("cmp-button")&&(a=t.target),(a.classList?.contains("btn__text")||a.classList?.contains("button"))&&(a=t.target.parentElement),a.classList?.contains("cmp-button__text")){let e=t.target;for(let t=0;t<2&&(e=e.parentElement,e);t++);a=e}if(a.classList?.contains("cmp-button")){let e=t.target;for(let t=0;t<1&&(e=e.parentElement,e);t++);a=e}document.querySelector("body").classList.add("lightbox--open");const s=document.createElement("div");s.id="common-lightbox-component",document.querySelector("body").appendChild(s);const l=a.nextElementSibling?a.firstElementChild.nextElementSibling?a.firstElementChild.nextElementSibling:a.nextElementSibling:a.firstElementChild.nextElementSibling;!i&&a.classList.contains("carousel-button__lightbox")?(e.includes(r)||e.push(r),l.querySelector(".lightbox--body").innerHTML=l.querySelector(".lightbox-container").innerHTML):i||e.includes(r)?i&&(e.push(r),l.querySelector(".lightbox--body").innerHTML=`<iframe id="form-qualtrics" src="${i}"></iframe>`):(e.push(r),l.querySelector(".lightbox--body").innerHTML=l.querySelector(".lightbox-container").innerHTML);const c=l?.querySelectorAll("[data-modal-backdrop='lightboxId']");c?.forEach((function(e){e.setAttribute("data-modal-backdrop",r)}));const u=l?.querySelector(".lightbox__action");u.id=n;const d=l?.querySelector(".lightbox--backdrop");u.style.display="block",d.classList.add("show");document.querySelector("#"+n+" button.close").setAttribute("onclick","closeLightBox('"+r+"')");document.querySelectorAll("[data-modal-backdrop='"+n+"']").forEach((function(e){e.onclick=function(){closeLightBox(r)}})),localStorage.setItem("lightBoxID",r);
1const m=document?.querySelector("#"+n+" .lightbox--dialog");m.classList.add(o);const f=l?.cloneNode(!0);var p=document.querySelector("#common-lightbox-component");p.innerHTML="",p.appendChild(f),f.style.display="block";document.querySelectorAll("#cta--lightbox--cta--GPT").forEach((e=>e.firstElementChild.classList.remove("lightbox--sm"))),window.onclick=function(e){e.target.classList.contains("lightbox__action")&&closeLightBox(localStorage.getItem("lightBoxID"))}},closeLightBox=function(){document.querySelector("body").classList.remove("lightbox--open"),document.querySelector("#common-lightbox-component").remove()}})),window.onclick=function(e){e.target.classList.contains("lightbox__action")&&closeLightBox(localStorage.getItem("lightBoxID"))}},756:function(){document.addEventListener("DOMContentLoaded",(function(){const e=document.getElementById("searchForm"),t=e?.getAttribute("data-coursefilterpage"),n=document?.querySelector(".cmp-search-bar__search-btn"),o=document.getElementById("suggestions"),r=document.getElementById("searchInput");function i(e){o.innerHTML="",e.length>=3?fetch(`/bin/getSuggestions?word=${encodeURIComponent(e)}`).then((e=>e.json())).then((e=>{e.length>0?(o.style.display="block",e.forEach((e=>{const t=document.createElement("div");t.classList.add("suggestion-item"),t.textContent=e,t.onclick=()=>function(e){r.value=e,o.style.display="none"}(e),o.appendChild(t)}))):o.style.display="none"})).catch((e=>{o.style.display="none"})):o.style.display="none"}n?.addEventListener("click",(function(e){e.preventDefault();var n=document?.getElementById("searchInput").value;n&&(window.location=t?`${t}.html?search=${n}`:`?search=${n}`)})),o?.addEventListener("click",(function(e){e.preventDefault();var n=document?.getElementById("searchInput").value;n&&(window.location=t?`${t}.html?search=${n}`:`?search=${n}`)})),e?.addEventListener("keydown",(function(e){if("Enter"===e.key){e.preventDefault();var n=document?.getElementById("searchInput").value;n&&(t?(window.location=`${t}.html?search=${n}`,o.style.display="none"):window.location=`?search=${n}`)}})),r?.addEventListener("input",(e=>{i(e.target.value)})),document.addEventListener("click",(e=>{e.target.closest(".searchInput")||o&&(o.style.display="none")}))}))},850:function(){$(document).ready((function(){let e=$(".js-tile-listing.single-column"),t=e.find(".js-tile-filters-wrapper"),n=e.find(".js-tile-filters-content"),o=e.find(".js-tile-filters-button-left"),r=e.find(".js-tile-filters-button-right"),a={filtersTravelling:!1,filtersTravelDirection:"",filtersTravelDistance:150},s=0,l=!1;
1var c=$(".courseselector__inner").attr("data-page-title"),u=$(".courseselector__inner").attr("data-course-title");function d(e,t){let n=t[0].getBoundingClientRect(),o=Math.floor(n.right),r=Math.floor(n.left),i=e[0].getBoundingClientRect(),a=Math.floor(i.right),s=Math.floor(i.left);return r>s&&o<a?"both":s<r?"left":a>o?"right":"none"}function m(e,t,n,o){let r=n.text();$(t).removeClass("visible").addClass("hidden");let a=$(".tile-list-dynamic[data-tab="+e+"]");if(""===r){let e=parseInt(n.parent().find(".active").text());n.hasClass("prev")?r=e-1:n.hasClass("next")&&(n.parent().find(".active").text(),r=e+1)}else r=parseInt(r);!function(e,t,n,o){e>1?t.find(".prev").removeClass("disabled").removeAttr("disabled"):t.find(".prev").addClass("disabled").attr("disabled",!0),e!=Math.ceil(n.length/o)?t.find(".next").removeClass("disabled").removeAttr("disabled"):t.find(".next").addClass("disabled").attr("disabled",!0)}(r,a,t,o);let s=1==r?0:(r-1)*o,l=0==s?o-1:s+o-1;for(i=0;i<t.length;i++)i>=s&&i<=l&&$(t[i]).removeClass("hidden").addClass("visible");$(".pagination .pagenav").removeClass("active"),0==s&&$(".prev").next().addClass("active"),$(".pagenav__dynamic").filter((function(){$(this).text()==r&&$(this).addClass("active")}))}function f(e,t,n){let o=e.attr("data-tab"),r=$(".tile-list-dynamic[data-tab="+o+"]").find(".js-tile-list-items").children();r.addClass("hidden").removeClass("visible"),r.each((function(e){e<n?$(this).removeClass("hidden").addClass("visible"):$(this).removeClass("visible").addClass("hidden")}));let a=$(".tile-list-dynamic[data-tab="+o+"]").find(".pagination");if(t<=n)a.hide();else{a.show(),$(".pagenav__dynamic").remove();let e=t/n,s="";for(i=0;i<=e;i++)s+='<div class="pagenav pagenav__dynamic">'+(i+1)+"</div>";a.find(".next").after(s),a.find(".pagenav__dynamic").first().addClass("active"),t==n?$(".prev, .next").addClass("disabled").attr("disabled",!0):($(".prev").addClass("disabled").attr("disabled",!0),$(".next").removeClass("disabled").attr("disabled",!1)),a.find(".pagenav").off().on("click",(function(){m(o,r,$(this),n)}))}}$(document).attr("title",c),$(".component--title").find("h1.title__text").html(u),function(){if($(".component--page-banner .tag-wrap .tag").length>
1=1){var e=$(".component--page-banner").find(".tag-wrap .tag").first().text().toLowerCase();"the college"===e&&(e="college"),$(".component--page-banner").find(".pb.default").addClass(e),$(".component--page-banner").find(".pb.default").removeClass("default")}}(),$(".component--tile").each((function(){let e=$(this).find("a"),t=window.location.href;if(e&&e.attr("href")&&t.includes("/international/")){let t=e.attr("href");if(t.includes("https:")||t.includes("http:")){let e=t.split("/").slice(3).join("/");e="/".concat(e),t=e}let n="/",o=3,r=4,i=6,a=t.split(n).slice(0,o),s=t.split(n).slice(0,r),l=t.split(n).slice(0,i),c=a.join(n),u=s.join(n),d=l.join(n);if("/content/digital"==c){let o=t.replace("/content/digital","/content/wsu-international/au/en"),r=4,i=o.split(n).slice(r),a=o.split(n).slice(0,r),s=i.join(n).replaceAll("/",".");finalResultFirstPart=a.join(n),finalURL=(finalResultFirstPart+"."+s).replaceAll("..","."),e.attr("href",finalURL)}if("/future/study/courses"==u){let o=t.replace("/future/study/courses","/international/course-page"),r=3,i=o.split(n).slice(r),a=o.split(n).slice(0,r),s=i.join(n).replaceAll("/",".");finalResultFirstPart=a.join(n),finalURL=(finalResultFirstPart+"."+s).replaceAll("..","."),e.attr("href",finalURL)}if("/content/digital/future/study/courses"==d){let o=t.replace("/content/digital/future/study/courses","/content/wsu-international/au/en/international/course-page"),r=7,i=o.split(n).slice(r),a=o.split(n).slice(0,r),s=i.join(n).replaceAll("/",".");finalResultFirstPart=a.join(n),finalURL=(finalResultFirstPart+"."+s).replaceAll("..","."),e.attr("href",finalURL)}if("/content/digital/future/study/courses"==d&&!window.location.href.includes("/content/wsu-international/")){let o=t.replace("/content/digital/future/study/courses","/international/course-page"),r=3,i=o.split(n).slice(r),a=o.split(n).slice(0,r),s=i.join(n).replaceAll("/",".");finalResultFirstPart=a.join(n),finalURL=(finalResultFirstPart+"."+s).replaceAll("..","."),e.attr("href",finalURL)}}})),$(".js-cc-body")&&$(".js-cc-body .js-cc-column").each((function(){let e=$(this).find(".cc__link a.btn--outline")[0];if(e&&e.attr("href")){let t=e.attr("href"),n="/",o=3,r=4,i=6,a=t.split(n).slice(0,o),s=t.split(n).slice(0,r),l=t.split(n).slice(0,i),c=a.join(n),u=s.join(n),d=l.join(n);if("/content/digital"==c){let o=t.replace("/content/digital","/content/wsu-international/au/en"),r=4,i=o.split(n).slice(r),a=o.split(n).slice(0,r),s=i.join(n).replaceAll("/",".");finalResultFirstPart=a.join(n),finalURL=(finalResultFirstPart+"."+s).replaceAll("..","."),e.attr("href",finalURL)}if("/future/study/courses"==u){let o=t.replace("/future/study/courses","/international/course-page"),r=2,i=o.split(n).slice(r),a=o.split(n).slice(0,r),s=i.join(n).replaceAll("/",".");finalResultFirstPart=a.join(n),finalURL=(finalResultFirstPart+"."+s).replaceAll("..","."),e.attr("href",finalURL)}if("/content/digital/future/study/courses"==d){let o=t.replace("/content/digital/future/study/courses","/content/wsu-international/au/en/international/course-page"),r=7,i=o.split(n).slice(r),a=o.split(n).slice(0,r),s=i.join(n).replaceAll("/",".");finalResultFirstPart=a.join(n),finalURL=(finalResultFirstPart+"."+s).replaceAll("..","."),e.attr("href",finalURL)}}})),t.length>0&&t.attr("data-overflowing",d(n,t)),t.scroll((function(){s=window.scrollY,l||window.requestAnimationFrame((function(){t.attr("data-overflowing",d(n,t)),l=!1})),l=!0})),o.click((function(){if(!0!==a.filtersTravelling){if("left"===d(n,t)||"both"===d(n,t)){let e=t.scrollLeft;e<2*a.filtersTravelDistance?n.css("transform","translateX("+e+"px)"):n.css("transform","translateX("+a.filtersTravelDistance+"px)"),n.removeClass("tile-filters__content-no-transition"),a.filtersTravelDirection="left",a.filtersTravelling=!0}t.attr("data-overflowing",d(n,t))}})),r.click((function(){if(!0!==a.filtersTravelling){if("right"===d(n,t)||"both"===d(n,t)){let e=n[0].getBoundingClientRect().right,o=t[0].getBoundingClientRect().right,r=Math.floor(e-o);r<a.filtersTravelDistance?n.css("transform","translateX(-"+r+"px)"):n.css("transform","translateX(-"+a.filtersTravelDistance+"px)"),n.removeClass("tile-filters__content-no-transition"),a.filtersTravelDirection="right",a.filtersTravelling=!0}t.attr("data-overflowing",d(n,t))}})),n.bind("transitionend",(function(){let e=n.css("-webkit-transform")||n.css("transform"),o=Math.abs(parseInt(e.split(",")[4])||0);n.addClass("tile-filters__content-no-transition").css("transform","none"),"left"===a.filtersTravelDirection?t.scrollLeft(t.scrollLeft()-o):t.scrollLeft(t.scrollLeft()+o),a.filtersTravelling=!1})),$(".js-tile-filter").off().on("click",(function(){return function(t){localStorage.removeItem("activeCurrentTab");let n=e.find(".js-tile-list");$(".js-tile-list").removeClass("active"),$(".js-tile-filter").removeClass("filter-active"),$(t).addClass("filter-active"),n.each((function(){$(this).attr("data-tab")===t.attr("data-tab")&&$(this).addClass("active")})),localStorage.setItem("activeCurrentTab",$(".tile-list-dynamic.js-tile-list.active").html()),f(t,parseInt(t.find("span").text()),8)}($(this)),!1})),$(".single-column .js-tile-list .js-tile-list-items .component--tile").each((function(){$(this).hasClass("js-tile-helper")&&$(this).remove()})),$(".filter-main--filter-item").each((function(){let e,t=$(this),n=t.text().toLowerCase().split(" ").join("-").split(",").join("");t.parent().hasClass("filter-main--filter-salary")&&1===n.length&&(e="s"),t.parent().hasClass("filter-main--filter-salary")&&2===n.length&&(e="ss"),t.parent().hasClass("filter-main--filter-salary")&&3===n.length&&(e="sss"),t.parent().hasClass("filter-main--filter-salary")&&4===n.length&&(e="ssss"),t.parent().hasClass("filter-main--filter-salary")&&5===n.length&&(e="sssss"),t.parent().hasClass("filter-main--filter-salary")&&n.length>5&&(e=n),t.parent().hasClass("filter-main--filter-interest")&&(t.attr("title","fl-interest"),t.attr("id","data-filter-interest-"+n)),t.parent().hasClass("filter-main--filter-salary")&&(t.attr("title","fl-salary"),t.attr("id","data-filter-salary-"+e)),t.parent().hasClass("filter-main--filter-campus")&&(t.attr("title","fl-campus"),t.attr("id","data-filter-campus-"+n))}));var p=$(".filter-main .filter-main--filter-item"),h={},y=()=>{p.filter(".js-tile-list.active .filter-main--filter-item-active").each((function(){h.hasOwnProperty(this.title)||(h[this.title]=[]),h[this.title].push(this.id)}));
1var e=$(".js-tile-list.active .js-tile-list-items .component--tile .tile");$.each(h,(function(t,n){e=e.filter((function(){var e=!1,t=$(this).data("category").split(",");return $.each(t,(function(t,o){if(-1!=$.inArray(o,n))return e=!0,!1})),e}))})),$(".js-tile-list.active .js-tile-list-items .component--tile .tile").hide().parent().removeClass("forPagi"),0===e.length?$(".js-tile-list.active .js-tile-list-items .component--tile .tile").hide().filter(e).show():$(".js-tile-list.active .js-tile-list-items .component--tile .tile").hide().filter(e).show().parent().addClass("forPagi");var t=$(".single-column .js-tile-list.active").find(".js-tile-list-items .component--tile.forPagi").length;!function(e,t,n){let o=e.attr("data-tab"),r=$(".tile-list-dynamic[data-tab="+o+"]").find(".js-tile-list-items .component--tile.forPagi");r.addClass("hidden").removeClass("visible"),r.each((function(e){e<n?$(this).removeClass("hidden").addClass("visible"):$(this).removeClass("visible").addClass("hidden")}));let a=$(".tile-list-dynamic[data-tab="+o+"]").find(".pagination");if(t<=n)a.hide();else{a.show(),$(".pagenav__dynamic").remove();let e=t/n,s="";for(i=0;i<=e;i++)s+='<div class="pagenav pagenav__dynamic">'+(i+1)+"</div>";a.find(".next").after(s),a.find(".pagenav__dynamic").first().addClass("active"),t==n?$(".prev, .next").addClass("disabled").attr("disabled",!0):($(".prev").addClass("disabled").attr("disabled",!0),$(".next").removeClass("disabled").attr("disabled",!1)),a.find(".pagenav").off().on("click",(function(){m(o,r,$(this),n)}))}}($(".js-tile-filter.filter-active"),t,8)};p.on("click",(function(){$(this).hasClass("filter-main--filter-item-active")?($(this).removeClass("filter-main--filter-item-active"),0===$(".js-tile-list .filter-main--filter-item.filter-main--filter-item-active").length&&(h={},$(".js-tile-list.active").find(".component.component--tile").removeClass("forPagi"),$(".js-tile-list.active").find(".component.component--tile .tile").show())):$(this).addClass("filter-main--filter-item-active"),h={},y(),function(){if($(".single-column .js-tile-list.active").find(".tile-lists__tools.noResultDiv").remove(),$(".single-column .js-tile-list.active").find(".js-tile-list-items .component--tile.forPagi").length<1){$(".js-tile-list.active").find(".pagination").hide(),$(".js-tile-list.active").find(".list-pagination").hide(),$(".js-tile-list.active").find(".pagenav__dynamic").remove();var e=$(".tile-lists__tools").clone();e.addClass("noResultDiv"),$(".js-tile-list.active").append(e)}else $(".single-column .js-tile-list.active").find(".tile-lists__tools.noResultDiv").remove(),$(".js-tile-list.active").find(".list-pagination").show()}()})),$(".filter-reset button").on("click",(function(){h={},$(".js-tile-list.active").find(".filter-main--filter-item").removeClass("filter-main--filter-item-active"),$(".js-tile-list.active").find(".component.component--tile").removeClass("forPagi"),$(".js-tile-list.active").find(".component.component--tile .tile").show(),$(".js-tile-list.active").find(".js-tile-list-items .component--tile.visible").show(),$(".js-tile-list.active").find(".list-pagination").show(),$(".single-column .js-tile-list.active").find(".tile-lists__tools.noResultDiv").remove();var e=$(".single-column .js-tile-list.active").find(".js-tile-list-items .component--tile").length;f($(".js-tile-filter.filter-active"),e,8)})),$(".single-column .js-tile-filter").on("click",(function(){$(".single-column .js-tile-list.active").find(".js-tile-list-items .component--tile").hasClass("forPagi")&&($(".single-column .js-tile-list.active").find(".js-tile-list-items .component--tile.forPagi").length<=8?($(".js-tile-list.active").find(".pagination").hide(),$(".single-column .js-tile-list.active").find(".tile-lists__tools.noResultDiv").remove()):$(".js-tile-list.active").find(".pagination").show())}));const v=$("body").find("#CourseSort");$(document).on("change",v,(function(){var e="data-filter-demand-"+v.find(":selected").text().toLowerCase().split(" ").join("-").split(",").join("");`.js-tile-list.active .js-tile-list-items .component--tile article[${e}]`&&$(`.js-tile-list.active .js-tile-list-items .component--tile article[${e}]`).parent().detach().prependTo(v.parents(".js-tile-list").find(".js-tile-list-items"))}));var g;function b(e,t){if(!e.hasClass("activated")){e.addClass("activated"),e.on("init",(function(){$(window).resize((function(){_(e)})),e.on("click",".slick-slide",(function(e){e.stopPropagation();$(this).data("slick-index")}))}));var n={prevArrow:'<button type="button" class="slick-prev icon icon-arrow-left">Previous</button>',nextArrow:'<button type="button" class="slick-next icon icon-arrow-right">Next</button>',cssEase:"ease-in-out",dots:!1,slidesToShow:1,infinite:!1,lazyLoad:"ondemand",touchThreshold:9,variableWidth:!0,initialSlide:0,mobileFirst:!0};setTimeout((function(){var o;e.not(".slick-initialized").slick(n),e.on("afterChange",(function(){S(e),setTimeout((function(){}),100)})),e.hasClass("active")||e.addClass("active"),S(e),o=t,e.parents(".component--tile-carou
1sel").find(".js-tile-carousel__total-slides").html(o)}),100)}}function _(e,t){void 0!==t&&(g=t),"mobile"==g?function(e){var t=0,n=e.width()-64,o=e.find(".js-tile-carousel-item"),r=e.find(".js-tile-carousel-content");e.parents(".component--tile-carousel").height("auto").css("min-height",0),e.parents(".component--tile-carousel-wrapper").css("right","auto"),o.width(n).height("auto"),r.css("min-height","0").removeClass("detached"),r.each((function(){var n=$(this),o=n.outerHeight();n.hasClass("tile-carousel__content-only")&&(o=o-e.width()+64),o>t&&(t=o)})),r.css("min-height",t).addClass("detached"),e.find(".tile-carousel__content-only").css("min-height",t+n)}(e):function(e){var t=0,n=e.find(".js-tile-carousel-item"),o=e.find(".js-tile-carousel-content");n.width(584).height(584),o.css("min-height","0").removeClass("detached"),o.each((function(){var e=$(this),n=e.outerHeight();e.hasClass("tile-carousel__content-only")||n>t&&(t=n)})),o.css("min-height",t).addClass("detached"),e.parents(".component--tile-carousel").height(648);var r=e.closest(".row").find(".tile-carousel-side").offset();e.parents(".component--tile-carousel-wrapper").css("right",8-r.left)}(e)}function S(e){var t=e.find(".js-tile-carousel-item.slick-current").data("slick-index")+1;e.parents(".component--tile-carousel").find(".js-tile-carousel__current-slide").html(t)}$(document).find(".js-tile-carousel").each((function(){!function(e){var t=e.find(".js-tile-carousel-item").length;if(t>1)$(window).width()<767?(_(e,"mobile"),b(e,t)):(_(e,"desktop"),b(e,t));else{var n=e.parents(".component--tile-carousel"),o=e.find(".js-tile-carousel-item");n.addClass("component--tile-carousel-single"),e.addClass("active"),o.addClass("slick-current"),o.find(">a").length||o.addClass("tile-carousel__item-static")}}($(this))}))}))},251:function(){$(document).ready((function(){var e=[];$mainNavCompare=$(".header__icons").find(".arrow--icon a");function t(t){r(),e.indexOf(t)<0&&(e.push(t),i()),function(){var t=e.length,n=$(".js-ab"),o=$(".header__icons").find(".arrow--icon a").attr("href");if(t&&n.length){$(".js-compare-bar").remove(),t>1?n.after('<div class="compare-bar js-compare-bar"><div class="compare-bar__text">'+t+' courses shortlisted</div><div class="compare-bar__link" course--compare><a href="'+o+'">Compare courses</a></div></div>'):n.after('<div class="compare-bar js-compare-bar"><div class="compare-bar__text">
1'+t+" course shortlisted. Add another to compare</div></div>");var r=$(".js-compare-bar"),i=()=>{r.remove(),$("body").unbind("click",i),$(window).unbind("scroll",i)};setTimeout((function(){$(window).bind("scroll",i),$("body").bind("click",i)}),100),$(document).on("click",".wsu-container .compare-bar__link a",(function(e){e.preventDefault(),JSON.parse(localStorage.favourites)&&0!==JSON.parse(localStorage.favourites).length&&$(this).attr("href",$(this).attr("href")+"?courses="+JSON.parse(localStorage.favourites).toString()),window.location.href=$(this).attr("href")}))}}()}function n(t){r();var n=e.indexOf(t);n>-1&&(e.splice(n,1),i())}function o(){if("undefined"!=typeof Storage){var t=e.length,n=$mainNavCompare.find(".js-main-nav-course-compare-count"),o=$(".template--product-page[data-course-id]"),r=$(".js-favourite-course");if(t?($(".tile[data-course-id]").each((function(){var t=$(this),n=t.attr("data-course-id");e.indexOf(n)<0?a(t,!1):a(t,!0)})),n.length?n.text(t):$mainNavCompare.append('<span class="main-nav__toolbar-item-compare js-main-nav-course-compare-count" aria-hidden="true" aria-role="presentation">'+t+"</span>")):($(".tile[data-course-id]").each((function(){a($(this),!1)})),n.length&&n.remove()),o.length&&r.length){var i=o.attr("data-course-id"),l=r.find("button");t&&e.indexOf(i)>-1?s(l,i,!0):s(l,i,!1),r.show()}}}function r(){void 0!==localStorage.favourites&&(e=JSON.parse(localStorage.getItem("favourites")))}function i(){e.length?localStorage.setItem("favourites",JSON.stringify(e)):localStorage.removeItem("favourites"),o()}function a(e,o){var r=e.find("button");r.length?r.attr("data-favourite")!=o&&function(e,o){var r=e.find("button");o?(r.attr("data-favourite","true").attr("aria-pressed","true").addClass("active"),r.find("span").text("Remove from favourites"),r.unbind("click").click((function(){n(e.attr("data-course-id"))}))):(r.attr("data-favourite","false").attr("aria-pressed","false").removeClass("active"),r.find("span").text("Add to favourites"),r.unbind("click").click((function(){t(e.attr("data-course-id"))})))}(e,o):function(e,o){e.addClass("tile__course"),o?(e.append('<button data-favourite="true" aria-pressed="true" class="active"><span class="sr-only">Remove from favourites</span></button>'),e.find("button").click((function(){n(e.attr("data-course-id"))}))):(e.append('<button data-favourite="false" aria-pressed="false"><span class="sr-only">Add to favourites</span></button>'),e.find("button").click((function(){t(e.attr("data-course-id"))})))}(e,o)}function s(e,o,r){r?(e.attr("aria-pressed","true").html('<i class="icon icon-heart-filled" aria-hidden="true"></i><span class="sr-only">Remove from Favourites</span>'),e.unbind("click").click((function(){n(o)}))):(e.attr("aria-pressed","false").html('<i class="icon icon-heart" aria-hidden="true"></i><span class="sr-only">Add to Favourites</span>'),e.unbind("click").click((function(){t(o)})))}document.querySelectorAll(".header__icons img").forEach((function(e){e.hasAttribute("src")&&""!==e.getAttribute("src").trim()||(e.parentElement.style.display="none")})),"undefined"!=typeof Storage&&r(),o()}))},698:function(){$(document).ready((function(){$("footer footer").find(".container").removeClass("container").addClass("wsu-container")})),$(document).ready((function(){$(".cmp-container .hero-banner").find(".container").removeClass("container").addClass("wsu-container")}))}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}!function(){"use strict";n(592),n(470),n(479),n(25),n(618),n(390),n(244),n(630),n(934),n(186),n(794),n(900),n(457),n(918),n(656),n(637),n(938);function e(e){if(e.hasAttribute("data-a11y-enhanced"))return;const t=e.querySelectorAll(":scope > p");if(t.length<=1)return;if(e.querySelector("a, button, [tabindex]"))return;const n=Array.from(t).map((e=>e.textContent.trim())).filter(Boolean).join(" ");e.setAttribute("role","group"),e.setAttribute("tabindex","0"),e.setAttribute("aria-label",n),t.forEach((e=>e.setAttribute("aria-hidden","true"))),e.setAttribute("data-a11y-enhanced","true")}const t={pageInit(){function t(){document.querySelectorAll(".vms_brand-refresh-title").forEach(e);const t=document.getElementById("landing-video");
1if(t){const o=document.querySelector(".video--details .play__btn");t.autoplay?o.classList.add("paused"):o.classList.remove("paused")}function n(){t.paused?t.play():t.pause(),document.querySelectorAll(".play__btn").forEach((e=>{t.paused?e.classList.remove("paused"):e.classList.add("paused")}))}if(document.querySelectorAll("#video-mainstage .play__btn").forEach((e=>{e.addEventListener("click",n),t.addEventListener("ended",(()=>{e.classList.remove("paused")}))})),document.querySelector(".banner__background__video__player")||document.querySelector(".banner__background__iframe__player")){const r=document.querySelector(".banner__background__video__player"),i=document.querySelector("#video-mainstage .volume--btn"),a=document.querySelector("#video-mainstage .volume--slider"),s=document.querySelector("#video-mainstage .volume-filled"),l=document.querySelector("#video-mainstage .time--current"),c=document.querySelector("#video-mainstage .time--total"),u=document.querySelector("#video-mainstage .progress__filled"),d=document.querySelector("#video-mainstage .progress");let m,f=1,p=!1;const h=t.src;function y(){const e=document.querySelector(".video-hero-banner__content-wrapper").getBoundingClientRect().height+250,t=document.querySelector(".video-hero-banner__background");t.querySelector(".banner__background__video__player")?t.querySelector(".banner__background__video__player").style.height=`${e}px`:t.querySelector(".banner__background__iframe__player")?t.querySelector(".banner__background__iframe__player").style.height=`${e}px`:t.querySelector("img").style.height=`${e}px`}function v(){const e=document.querySelector(".video-hero-banner__background");e.querySelector(".banner__background__video__player")&&(document.querySelector(".video-hero-banner").classList.add("bg--black"),e.classList.add("bg--black"))}y(),v();let g=!1;function b(){g?(document.querySelector(".video--details").style.display="flex",document.getElementById("fullscreen-landing-video").style.display="block",t.src=h,t.setAttribute("loop",!0),t.paused?document.querySelector(".play__btn").classList.add("paused"):document.querySelector(".play__btn").classList.remove("paused"),document.querySelector(".controls").style.display="none",document.body.classList.remove("lightbox--open"),r.classList.remove("fullscreen--mainstage"),document.querySelector(".logo--block").style.display="none",y()):(u.style.width="0",document.querySelector(".video--details").style.display="none",document.querySelector(".play__btn").classList.add("paused"),t.src=document.getElementById("fullscreen-landing-video").value,t.removeAttribute("loop"),document.querySelector(".controls").style.display="flex",document.body.classList.add("lightbox--open"),r.classList.add("fullscreen--mainstage"),r.style.height="100%",document.querySelector(".logo--block").style.display="block",_(),t.autoplay||document.querySelector(".play__btn").classList.remove("paused")),g=!g}function _(){t.muted=!1,f=t.volume,i.classList.remove("muted"),s.style.width=100*f+"%"}function S(){t.muted=!0,i.classList.add("muted"),s.style.width="0"}function w(){t.muted?_():S()}function L(e){i.classList.remove("muted");let n=e.offsetX/a.offsetWidth;n=n<.1?0:n,s.style.width=100*n+"%",t.volume=n,0===n?(i.classList.add("muted"),t.muted=!0):t.muted=!1,f=n}function q(e){const t=Math.floor(e%3600/60);let n=Math.floor(e%60);return n=n>9?n:`0${n}`,`${t}:${n}`}function C(){!isNaN(t.duration)&&r.classList.contains("fullscreen--mainstage")&&(u.style.width=t.currentTime/t.duration*100+"%",l.textContent=`${q(t.currentTime)} / `,c.textContent=q(t.duration))}function E(e){const n=e.offsetX/d.offsetWidth;u.style.width=100*n+"%",t.currentTime=n*t.duration}function x(){p=!0}function $(){clearTimeout(m),m=17,r.classList.add("player--controls--visible"),p=!1,setTimeout(x,15e3)}function k(){b(),S(),t.setAttribute("loop",!0),t.autoplay?document.querySelector(".video--details .play__btn").classList.add("paused"):document.querySelector(".video--details .play__btn").classList.remove("paused")}document.querySelector(".video-mainstage #skip-button").addEventListener("click",k),i.addEventListener("click",w),a.addEventListener("click",L),document.querySelector(".volume-set, .volume--slider").addEventListener("mouseover",(()=>document.querySelector(".volume-set").classList.add("volume-set__hover"))),document.querySelector(".volume-set, .volume--slider").addEventListener("mouseleave",(()=>document.querySelector(".volume-set").classList.remove("volume-set__hover"))),document.querySelector("#video--text").addEventListener("click",b),t.addEventListener("ended",k),t.addEventListener("timeupdate",C),t.addEventListener("canplay",C),d.addEventListener("click",E),a.addEventListener("click",L),window.onload=$,setInterval((()=>{--m,r.classList.remove("player--controls--visible")}),2e3),document.onmousemove=$,document.onclick=$}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):t()}};null===document.getElementById("fullscreen-video")&&t.pageInit();var o=t;$((function(){let e=document.querySelector("#wsu-full-screen-video"),t=document.querySelector('meta[name="url"]'),n=null===localStorage.getItem("site_lists")?[]:JSON.parse(localStorage.getItem("site_lists"));if(t&&n.includes(t.content))return e&&e.remove(),void o.pageInit();if(0!==$("#fullscreen-video").length){let i=document.getElementById("fullscreen-video");const a=document.getElementById("video-src"),s=i.hasAttribute("autoplay")||"true"===i.dataset.autoplay||a&&"true"===a.getAttribute("videoAutoplayValue");document.querySelector(".play--btn");
1let l=document.querySelector("#volume--btn"),c=document.querySelector("#volume--slider");var r=document.querySelector("#volume-filled");let u=document.querySelector("#progress"),d=document.querySelector("#progress__filled"),m=document.querySelector("#time--current"),f=document.querySelector("#time--total"),p=document.querySelector("#skip-button"),h=document.querySelector("#controls"),y=document.querySelector(".player"),v=document.querySelector("#play-svg"),g=1,b=!1,_=!1;function S(){var e=$("#fullscreen-video").get(0);e.paused?e.play():e.pause(),$(".play--btn").toggleClass("paused")}function w(e){$(l).removeClass("muted");let t=e.offsetX/c.offsetWidth;t<.1&&(t=0),r.style.width=100*t+"%",i.volume=t,0==t&&$(l).addClass("muted"),g=t}function L(e){let t=Math.floor(e%3600/60),n=Math.floor(e%60);return n=n>9?n:`0${n}`,`${t}:${n}`}function q(e){isNaN(i.duration)||(d.style.width=i.currentTime/i.duration*100+"%",m.innerHTML=`${L(i.currentTime)} / `,f.innerHTML=`${L(i.duration)}`)}function C(e){""===v.style.display&&i.paused&&i.pause();const t=e.offsetX/u.offsetWidth;d.style.width=100*t+"%",i.currentTime=t*i.duration}function E(){const e=window.location.search,t=new URLSearchParams(e);return null!=t.get("splash")||"off"==t.get("splash")}function x(){e.remove(),o.pageInit()}function k(){if(!s||_)return;if(e&&e.classList.contains("hide--video"))return;_=!0,i.autoplay=!0,i.defaultMuted=!0,i.muted=!0,i.setAttribute("autoplay",""),i.setAttribute("muted",""),i.setAttribute("playsinline","");const t=i.play();$(".play--btn").addClass("paused"),$(l).addClass("muted"),t&&"function"==typeof t.catch&&t.catch((()=>{_=!1,$(".play--btn").removeClass("paused")}))}function A(){e&&(e.classList.remove("hide--video"),!F()&&s&&window.requestAnimationFrame((()=>{window.requestAnimationFrame(k)})))}function I(){if(null!==t){let e=t.content;n.includes(e)?x():E()?(x(),n.push(e),localStorage.setItem("site_lists",JSON.stringify(n))):(A(),n.push(e),localStorage.setItem("site_lists",JSON.stringify(n)))}else A()}function j(e,t,n){var o=0;function r(){o=setTimeout(i,e),$(document).on("mousemove keypress",a)}function i(){o=0,t()}function a(){o?clearTimeout(o):n(),$(document).off("mousemove keypress",a),setTimeout(r,1e3)}$(r)}function F(){return!!/iPhone|iPad|iPod|IEMobile/i.test(navigator.userAgent)}I(),null!==p?h.classList.remove("disabled--skip--button"):h.classList.add("disabled--skip--button"),F()?($(".wsu-full__screen__video").addClass("ios--device--active"),$("#fullscreen-video").get(0).autoplay=!1,$(".play--btn").removeClass("paused"),$("#fullscreen-video").after("<div class='large--play--icon'><img src='/etc.clientlibs/wsu-core-v2/clientlibs/clientlib-site/resources/images/icons/Button-Icon-Play.svg' /></div>")):s?k():(i.autoplay=!1,i.removeAttribute("autoplay"),i.defaultMuted=!1,i.muted=!1,i.removeAttribute("muted"),$(".play--btn").removeClass("paused"),$(l).removeClass("muted")),$(document).on("click",".play--btn",(function(){S()})),$(document).on("click","#fullscreen-video",(function(){S()})),$(document).on("click",".volume--btn",(function(){i.muted?(i.muted=!1,g=i.volume,$(l).removeClass("muted"),r.style.width=100*g+"%"):(i.muted=!0,i.volume=g,$(l).addClass("muted"),r.style.width=0)})),$(document).on("click","#skip-button",(function(){x()})),$(document).on("click","#volume--slider",(function(e){w(e)})),$(document).on("click",".large--play--icon, .large--play--icon img",(function(e){$(".large--play--icon").remove(),$("#fullscreen-video").get(0).play(),$(".play--btn").addClass("paused")})),i.addEventListener("ended",x,!1),i.addEventListener("timeupdate",q),i.addEventListener("canplay",q),i.addEventListener("loadedmetadata",k),i.addEventListener("canplay",k),window.addEventListener("mousedown",(()=>b=!0)),window.addEventListener("mouseup",(()=>b=!1)),u.addEventListener("click",C),c.addEventListener("click",w),j(100,(function(){y.classList.remove("player--controls--visible")}),(function(){y.classList.add("player--controls--visible")}))}}));n(814),n(466),n(409),n(802),n(258),n(756),n(850),n(251),n(698)}()}();

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.