function _typeof(n){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof(n)}function setDeviceLogCookie(n,t){document.cookie=n+"="+t+"; ; path=/; secure;"}var grecaptcha,Defiant,australianRT;(australianRT=window.australianRT||{}).AjaxService=function(n,t){"use strict";var i;return i=function(){return new function(){var r=this,i=[],u={url:"",data:{},dataType:"JSON",before:{},success:{},type:"GET",cache:!0,contentType:"application/json",crossDomain:!1,timeout:6e4,defaultErrorHandler:!0,error:{},mime:"application/json",preLoader:!1,preLoaderTarget:null,allowMultiple:!1,loadTarget:""},h=t.extend(!0,{},u,{type:"POST"}),c=t.extend(!0,{},u,{type:"DELETE"}),f=function(r,u){var c,a=u.url,h=(u.async,u.success),f=u.error;a&&""!==a?(i[r]&&!1===u.allowMultiple&&i[r].abort(),c={url:u.url,cache:u.cache,dataType:u.dataType,data:u.data,type:u.type,mimeType:u.mime,async:u.async,status:{404:function(){},302:function(){}},beforeSend:function(n,i){!0===u.preLoader&&t(u.preLoaderTarget)[0]&&t(u.preLoaderTarget).addClass("loading");"function"==typeof u.beforeSend&&u.beforeSend(n,i)},success:function(t,e,c){i[r]=!1;var a=c.getResponseHeader("asx-redirect-url");null===a||""===a?u.ignoreResponseData?"function"==typeof h&&h(t,u):"html"!==u.format||-1===t.indexOf("

Âé¶¹¹ÙÍø

<\/div>');t("#svg").load(t(".art-header").attr("data-sprite-path"))},{init:function(){return i()}}}(0,jQuery);jQuery(australianRT.Svg.init());jQuery.fn.preventDoubleSubmission=function(){return $(this).on("submit",function(n){var t=$(this);!0===t.data("submitted")?(n.preventDefault(),alert("Please wait while your message is sent.")):($(".btn--cta").prop("disabled",!0),t.data("submitted",!0))}),this};String.format||(String.format=function(n){var t=Array.prototype.slice.call(arguments,1);return n.replace(/{(\d+)}/g,function(n,i){return void 0!==t[i]?t[i]:n})});(australianRT=window.australianRT||{}).Utils=function(n,t){"use strict";var i,r,u;return r=function(){t("html").on("keydown","input[type=number]",function(n){-1!==t.inArray(n.keyCode,[46,8,9,27,13,110,190,90])||/65|67|86|88/.test(n.keyCode)&&(!0===n.ctrlKey||!0===n.metaKey)||35<=n.keyCode&&40>=n.keyCode||(n.shiftKey||48>n.keyCode||57n.keyCode||105]/g,function(n){return"&"===n?"&":'"'===n?""":"'"===n?"'":"<"===n?"<":">"})},sortDateByDate:function(n,t){return n.sort(function(n,i){var r=new Date(n.TLSDate),u=new Date(i.TLSDate);return"asc"===t?r-u:u-r})},inactiveUserPopUp:function(i,r){var u,f,e,o,s=1e3*i;e&&(u=setTimeout(e,s));f=function(){clearTimeout(u);u=setTimeout(e,s)};e=function(){clearTimeout(u);var n=setTimeout(o,1e3*r);t("#openModal").css({opacity:1,display:"block"});t(".close").on("click",function(){t("#openModal").css({opacity:0,display:"none"})});t("#extend-session").off().on("click",function(){clearTimeout(n);t("#openModal").css({opacity:0,display:"none"});t.ajax({url:t("#openModal").data("ajaxUrl"),type:"POST",data:{activeUser:!0},success:function(){}})})};o=function(){t(document).off("mousemove");t(document).off("mouseDown");t(document).off("keypress");n.location.reload()};t(document).on("mousemove",f);t(document).on("mouseDown",f);t(document).keypress(f)},getUrlParameter:function(){for(var t,f,i={},u=n.location.search.substring(1).split("&"),r=0;r4||n.target.value.includes(".")&&n.target.value.split(".")[1].length>=1||n.key.includes("+")||n.key.includes("-")||n.key.includes("e"))&&n.preventDefault()})})},valueByCommaSepratation:function(n){return n.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")},startsWithPolyfill:u=function(){String.prototype.startsWith||(String.prototype.startsWith=function(n,t){return t=t||0,this.indexOf(n,t)===t})},checkElementInViewport:function(i,r){var u=t(n).scrollTop(),e=u+t(n).height(),f=t(i).offset().top,o=f+t(i).height();return!0===r?uo:f<=e&&o>=u},getFileExtenstion:function(n){return(n=n.split("?"))[0].replace(/^.*\./,"")},dateFormat:function(){t(".birthdate input[type!=hidden]").on("input",function(n){var i=t(this).attr("data-charlength");this.value.length>Number(i)&&(n.preventDefault(),this.value=this.value.slice(0,Number(i)))})},daysInYear:365.25,isMobileBrowser:function(){var n={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},any:function(){return n.Android()||n.BlackBerry()||n.iOS()||n.Opera()||n.Windows()}};return!!n.any()},isValidDate:function(n,t,i){var r="",u=!0;return isNaN(n)||isNaN(t)||isNaN(i)?(r="wrong format",u=!1):(n>31||n<1?(r="wrong date",u=!1):4!==t&&6!==t&&9!==t&&11!==t||31!==n?2===t&&(n>29||29===n&&!(i%4==0&&(i%100!=0||i%400==0)))&&(r="wrong date",u=!1):(r="wrong date",u=!1),(t>12||t<1)&&(r="wrong month",u=!1),(i>(new Date).getFullYear()||i<1900)&&(r="wrong year",u=!1)),{errorMessage:r,isValidValue:u}},triggerGoal:function(n,i){var r=JSON.stringify(n),u=JSON.stringify(i);t.ajax({url:"/analytics/triggergoal",type:"POST",contentType:"application/json",data:JSON.stringify({goalId:r,validationCode:u}),success:function(n){console.log(n)},error:function(n){console.log(n)}})},validatePostcodeAgainstState:function(n,t){switch(n){case"ACT":if(t>=200&&t<=299||t>=2600&&t<=2618||t>=2900&&t<=2920)return!0;break;case"QLD":if(t>=4e3&&t<=4999||t>=9e3&&t<=9999)return!0;break;case"NSW":if(t>=1e3&&t<=1999||t>=2e3&&t<=2599||t>=2619&&t<=2899||t>=2921&&t<=2999)return!0;break;case"NT":if(t>=800&&t<=899||t>=900&&t<=999)return!0;break;case"SA":if(t>=5e3&&t<=5999)return!0;break;case"TAS":if(t>=7e3&&t<=7999)return!0;break;case"VIC":if(t>=3e3&&t<=3999||t>=8e3&&t<=8999)return!0;break;case"WA":if(t>=6e3&&t<=6999)return!0}return!1}}}(this,jQuery);jQuery(australianRT.Utils.init());(australianRT=window.australianRT||{}).Scrolling=function(n,t){"use strict";var a,v,s,h,y,p,w,i,e,b,k,f,d,u=0,r=0,c=0,g=0,l=0,o=!1,nt=t(".btn--chat").css("bottom");return a=function(){w=t(".art-wrap-sections section");i=t(".art-wrap-sections");void 0!==t&&(t.headroom&&t(".art-header, .art-menu").headroom({tolerance:10}),t.mCustomScrollbar&&t(".art-menu__content").mCustomScrollbar({theme:"light-thin"}));t("html").on("click",".art-sections-nav a",function(n){n.preventDefault()});t("html").on("click",".art-sections-nav a",function(n){if(n.preventDefault(),!t(this).is(".clicked")){var i=t(".art-sections-nav a").index(t(this));y(i)}});t(n).scroll(function(){f(n.pageYOffset,document.body.offsetHeight)});t(n).resize(function(){b();t("body.home.art-section--fixed").length?f(-i.get(0).mcs.top,i.get(0).mcs.content[0].offsetHeight):f(n.pageYOffset,document.body.offsetHeight);k()});t(n).resize()},b=function(){t("body.home").length&&(u=0,s())},k=function(){t.mCustomScrollbar&&t(".art-menu__content").mCustomScrollbar("update")},y=function(n){n=Math.round(n);c=r;n<0&&(n=0);n>u-1&&(n=u-1);e(n);o=n;c!==n&&(p=-n*h,i.addClass("art-section--scrolling"),t.mCustomScrollbar&&t("body.art-section--fixed .art-wrap-sections").mCustomScrollbar("scrollTo",p));setTimeout(function(){o=!1},800)},e=function(n){if(0===(n=Math.round(n))?t("body").addClass("art-section--first-active"):t("body").removeClass("art-section--first-active"),n>0){var i=t(".art-wrap-sections section:eq("+n+")");i.hasClass("art-section--action")||i.hasClass("art-section--audience-fallback")||i.hasClass("art-section--background-image")?t("body").removeClass("art-section--light-active"):t("body").addClass("art-section--light-active")}else t("body").removeClass("art-section--light-active");n>=u-1?(n=u-1,t("body").addClass("art-section--last-active")):t("body").removeClass("art-section--last-active");c!==n&&(w.removeClass("active"),t(".art-wrap-sections section:eq("+n+")").addClass("active"),t(".art-sections-nav li:eq("+n+")").hasClass("active")||(t(".art-sections-nav li").removeClass("active").find("a").css("background-color",""),t(".art-sections-nav a").removeClass("clicked"),t(".art-sections-nav li:eq("+n+") a").addClass("clicked"),clearTimeout(d),d=setTimeout(function(){t(".art-sections-nav li:eq("+n+")").addClass("active");var i=t(".art-wrap-sections section:eq("+n+")");i.hasClass("art-section--action")||i.hasClass("art-section--audience-fallback")||i.hasClass("art-section--background-image")||i.is(":nth-child(2)")||t(".art-sections-nav li:eq("+n+") a").css("background-color",t(".art-wrap-sections section:eq("+n+")").css("background-color"));t(".art-sections-nav a").removeClass("clicked");t(".art-wrap-sections section:eq("+n+") .art-gif-replay").click()},800)))},v=function(){t("body").addClass("art-section--fixed art-section--first-active");t(".art-wrap-sections > section:gt(0)").each(function(){if(t(this).find("h2").length){var n=t(this).find("h2").offset().top-t(this).offset().top;t(this).find("h2").css("top","calc(-"+n+"px + 4rem)")}});i.mCustomScrollbar({snapAmount:h,mouseWheel:{enable:!1},contentTouchScroll:!1,documentTouchScroll:!1,advanced:{autoScrollOnFocus:!1},callbacks:{onScrollStart:function(){this.mcsFlag=this.mcs.top+1},whileScrolling:function(){this.mcsFlag&&this.mcsFlag!==this.mcs.top+1&&(this.mcsFlag=null,(g=this.mcs.top)!==l&&(o?r=o:l>g?r++:r--,e(r)),i.addClass("art-section--scrolling"))},onScroll:function(){l=this.mcs.top;(r=-this.mcs.top/h)>=u-1?t("body").addClass("art-section--last-active"):t("body").removeClass("art-section--last-active");e(r);setTimeout(function(){i.removeClass("art-section--scrolling")},100);f(-this.mcs.top,this.mcs.content[0].offsetHeight)}}})},f=function(i,r){var u=parseFloat(t("body").css("font-size")),f=n.innerHeight;Math.max(r-(i+f),0)<8*u?(t("body").addClass("bottom art-section--last-active"),t("footer").length&&t(".art-corner-background:not(.menu--collapsed) .btn--chat").length&&t(".art-corner-background:not(.menu--collapsed) .btn--chat").offset().top+t(".art-corner-background:not(.menu--collapsed) .btn--chat").height()>=t("footer .art-footer__feedback").offset().top-50&&t(".art-corner-background:not(.menu--collapsed) .btn--chat").css("bottom",t("footer").height()+t(".art-footer__feedback").outerHeight()+22)):(t("footer").length&&t(".btn--chat").length&&t(".art-corner-background:not(.menu--collapsed) .btn--chat").css("bottom",nt),t("body").removeClass("bottom art-section--last-active"))},s=function(){t("body").removeClass("art-section--fixed");i.mCustomScrollbar("destroy")},{init:function(){t(document).ready(function(){return a()})}}}(this,jQuery);jQuery(australianRT.Scrolling.init());(australianRT=window.australianRT||{}).Global=function(n,t){"use strict";var i,r,u,f,e,o,s,h,c;return i=function(){return t("html body").on("focusin focusout",'input[type="checkbox"], input[type="radio"]',function(n){"focusin"===n.type?t(this).parent("label").addClass("radio-focus"):t(this).parent("label").removeClass("radio-focus")}),t("html").on("focus",".gotoFirstFocus",function(){t(this).parent().find(".startModalContent").focus()}),t("html").on("focus",".gotoLastFocus",function(){t(this).parent().find(".endModalContent").focus()}),null},o=function(){t("body").on("mousedown","*",function(n){(t(this).is(":focus")||t(this).is(n.target))&&"none"===t(this).css("outline-style")&&t(this).css("outline","none").on("blur",function(){t(this).off("blur").css("outline","")})})},s=function(){t(".art-form-birthdate").on("input[type!=hidden]",function(n){var i=t(this).attr("size");this.value.length>Number(i)&&(n.preventDefault(),this.value=this.value.slice(0,Number(i)))})},r=function(){t(".skipNav").click(function(){var n="#"+this.href.split("#")[1];t(n).attr("tabindex",-1).on("blur focusout",function(){t(this).removeAttr("tabindex")}).focus()})},u=function(){document.addEventListener("focus",function(n){t(".modalDialog").is(":visible")&&!t(n.target).closest(".modalDialog").length&&t(".modalDialog").find("input[type!=hidden],textarea,select,button").filter(":visible:first").focus();t(".art-search-overlay").is(":visible")&&!t(n.target).closest(".art-search-overlay").length&&t(".art-search-overlay").find("input[type!=hidden],textarea,select,button").filter(":visible:first").focus()},!0)},e=function(){document.addEventListener("focus",function(n){t(".art-profile-overlay").is(":visible")&&!t(n.target).closest(".art-profile-overlay").length&&t(".art-profile-overlay").find("input[type!=hidden],textarea,select,button").filter(":visible:first").focus()},!0)},f=function(){document.addEventListener("click",function(n){t(n.target).closest(".btn, a, span").length||t(n.target).closest(".modalDialog").length||t(".modalDialog").is(":visible")&&t(".close").trigger("click")},!0)},h=function(){document.cookie="resolution="+Math.max(screen.width,screen.height)+",1; path=/"},c=function(){t(".goal").click(function(){var n=t(this).data("goal");null!=n&&n.length>0&&t.ajax({url:"/goal/trigger/"+n.toLowerCase(),type:"GET",success:function(){console.log("triggered")},error:function(n){console.log(n)}})})},{init:function(){return t("html body").one("keyup",function(){t(".art-menu__inner").find("#mCSB_1").removeAttr("tabindex")}),r(),u(),f(),e(),o(),s(),h(),c(),i()}}}(0,jQuery);jQuery(australianRT.Global.init());(australianRT=window.australianRT||{}).BrowseFiles=function(n,t){"use strict";var u,r,f,i;return t("#art-contact--form"),t(".art-thankyou__success"),t(".art-thankyou__error"),r=function(){var n=t(".has-file-upload");if(!n.length)return!1;n.each(function(n,r){var f=t(r),u=f.find(".file-upload-component"),s=u.find(".file-info-msg"),a=u.find(".attachments"),o=[],e=0,h=f.data("filesize"),v=f.data("singlefileupload"),c=f.data("maxlimit"),y=f.data("filetype").toLowerCase()+"|vnd.openxmlformats-officedocument.spreadsheetml.sheet|msword|vnd.openxmlformats-officedocument.wordprocessingml.document|vnd.ms-excel|plain|tiff|csv",p=f.data("uploadmaxreached"),w=f.data("uploadnotdesired"),l=f.data("uploadlargefile");u.on("click",".file-drag-area a,.file-chooser",function(n){n.preventDefault();a.trigger("click")});f.fileupload({dataType:"json",dropZone:f.find(".filedrag"),autoUpload:!1,url:"/Contactus/UploadDocument",type:"POST",formData:function(n){return n.serializeArray()},change:function(n,i){t("#art-contact--form").length&&t.each(i.files,function(n,t){e+=t.size||1})},add:function(n,r){var f,b,k=r.files[0].name,d=/.*(?=\.)/.exec(k),g=/(?:\.([^.]+))?$/.exec(k)[1],a;if(b=""!==r.files[0].type?r.files[0].type.split("/")[1].toLowerCase():"not supported",r.files[0].size>h||e>h)return i(u,l),void(e-=r.files[0].size);if(b&&y.indexOf(b)<0)return i(u,w),void(e-=r.files[0].size);if(f=t('
  • '+d+"."+g+'<\/span>Cancel<\/title><\/svg><\/a>
  • '),!0===v)r.context=s.html(""+f.html()+"<\/span>"),u.find(".error").remove();else{if(a=s.find("span.btn--file-surrogate:visible").length,a>=c)return i(u,p),void(e-=r.files[0].size);a>0&&a"+f.html()+"<\/span>"),u.find(".error").remove()):(r.context=s.html(""+f.html()+"<\/span>"),u.find(".error").remove())}if(e>h&&t("#art-contact--form").length)return i(u,l),void(e-=r.files[0].size);s.removeClass("hidden").show();u.find("button.btn--file-surrogate").text("Add another file");s.off("click.cancel").on("click.cancel","a.cancel",function(n){var r,f=t(n.currentTarget).parents(".btn--file-surrogate").find(" span.small-copy").text(),i;for(n.preventDefault(),i=0;i0&&r>-1&&(e-=o[r].size);o.splice(r,1);t(n.currentTarget).parents(".btn--file-surrogate").remove();u.find(".error").remove();0===o.length&&u.find("button.btn--file-surrogate").text("Choose a file")});o.push(r.files[0]);console.log(o);australianRT.uploadDocList=o},done:function(){australianRT.contactFormValidation.hideContent();australianRT.contactFormValidation.showSuccessMsg()},progressall:function(){},fail:function(){australianRT.contactFormValidation.hideContent();australianRT.contactFormValidation.showErrorMsg()}})})},i=function(n,t){n.find(".error").remove();n.find("button.btn--file-surrogate").after(''+t+"<\/span>")},u=function(){return r(),t(".attachments.wffm").click(function(){t(this).parents(".form-group").find(".field-validation-error").html("")}),t(".attachments.wffm").on("change",function(){f(t(".has-file-upload-wffm"))}),null},{init:function(){return u()},uploadFile:r,uploadFileWffm:f=function(n){var o,a=n.data("filetype").toLowerCase()+"|vnd.openxmlformats-officedocument.spreadsheetml.sheet|msword|vnd.openxmlformats-officedocument.wordprocessingml.document|vnd.ms-excel|plain|tiff|csv",v=n.data("uploadnotdesired"),y=n.data("uploadlargefile"),c=n.data("filesize"),s,f,i,u,l,r,h,e;for(o=a.split("|"),s=n.find("input"),f=0;f0)){for(h=!1,e=0;e'+i.files[0].name+'<\/span>Cancel<\/title><\/svg><\/a>';t(i).parent().find(".file-info-msg").html("
    "+l+"<\/div>");t(i).parent().find(".file-info-msg").show();t(i).parent().find(".file-upload").hide();break}if(!h)return i.files[0].size>c?t(i).parents(".form-group").find(".help-block").html(""+y+"<\/span>").addClass("field-validation-error"):u.substr(u.length-r.length,r.length).toLowerCase()!==r.toLowerCase()&&t(i).parents(".form-group").find(".help-block").html(""+v+"<\/span>").addClass("field-validation-error"),t(i).val(""),!1}return t(".file-info-msg").off("click.cancel").on("click.cancel","a.cancel",function(){t(this).parents(".form-group").find(".file-upload").show();t(this).parents(".form-group").find(".attachments.wffm").val("");t(this).parents(".form-group").find(".btn--file-surrogate").remove();t(this).parents(".form-group").find(".help-block").removeClass("error");t(this).parents(".form-group").find(".help-block").html("")}),!0},uploadDocList:function(){}}}(0,jQuery);jQuery(australianRT.BrowseFiles.init());(australianRT=window.australianRT||{}).Captcha=function(n,t){"use strict";var r,u,f,i=t("body").data("captchaKey");return r=function(){var n,r=grecaptcha||{},u="invisible",e="inline",s,o;if(void 0!==r){if(t("#RecaptchaField1").length&&t(".mjo-page").length&&(n=r.render("RecaptchaField1",{sitekey:i,callback:australianRT.Mjo.correctCaptchaContact,size:u,badge:e}),t("#RecaptchaField1").data("recaptcha-id",n)),t(".wffm-invisible-recaptcha").length)for(s=t(".wffm-invisible-recaptcha"),o=0;oresponse",n)},captchaCallbackFunction:function(n){return n||grecaptcha.execute(recaptchaId),n}}}(0,jQuery);jQuery(australianRT.Captcha.init());australianRT.Header=function(n,t){"use strict";var r,i=0,u=t(n).width();return t("#mobile-bottom-panel").on("show.bs.collapse",function(){t("header").addClass("mobile-expanded");t(".art-header .mobile-menu-btn i.fa").removeClass("fa-bars");t(".art-header .mobile-menu-btn i.fa").addClass("fa-times")}),t("#mobile-bottom-panel").on("hide.bs.collapse",function(){t("header").removeClass("mobile-expanded");t(".art-header .mobile-menu-btn i.fa").removeClass("fa-times");t(".art-header .mobile-menu-btn i.fa").addClass("fa-bars")}),r=function(){!function(r){if(t("body").hasClass("home"))t(n).scrollTop(0);else{var u=-1*t("header").outerHeight();(i-=r)0&&(i=0);t("body > header").css("top",i+"px")}}()},t(n).resize(function(){t(n).width()!==u&&(u=t(n).width(),t(this).width()>786&&t(".art-header.mobile-expanded").length&&t("#mobile-bottom-panel").collapse("hide"),t(this).width()<768&&(t("header").removeClass("mobile-expanded"),t(".art-header .mobile-menu-btn i.fa").removeClass("fa-times"),t(".art-header .mobile-menu-btn i.fa").addClass("fa-bars")))}),{init:r}}(this,jQuery);jQuery(australianRT.Header.init());(australianRT=window.australianRT||{}).webChat=function(n,t){"use strict";var r,u,i,f,e;return u=['<\/use><\/svg><\/span>','
    ','

    "+(i=t(".art-chat")).data("heading-one")+"<\/h2><\/legend>",'','Checkboxes reload content<\/span>','