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})(n)}function setDeviceLogCookie(n,t){document.cookie=n+"="+t+"; ; path=/; secure;"}var australianRT,Defiant;(australianRT=window.australianRT||{}).AjaxService=function(n,t){"use strict";return{init:function(){return new function(){function r(r,u){var h=u.url,c=(u.async,u.success),f=u.error;h&&""!==h?(i[r]&&!1===u.allowMultiple&&i[r].abort(),h={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,h){i[r]=!1;h=h.getResponseHeader("asx-redirect-url");null!==h&&""!==h?n.location.href=h:u.ignoreResponseData?"function"==typeof c&&c(t,u):"html"===u.format&&-1!==t.indexOf("

Âé¶¹¹ÙÍø

<\/div>');n("#svg").load(n(".art-header").attr("data-sprite-path"))}}}(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 u=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&&n.keyCode<=40||(n.shiftKey||n.keyCode<48||57]/g,function(n){return"&"===n?"&":'"'===n?""":"'"===n?"'":"<"===n?"<":">"})},sortDateByDate:function(n,t){return n.sort(function(n,i){return n=new Date(n.TLSDate),i=new Date(i.TLSDate),"asc"===t?n-i:i-n})},inactiveUserPopUp:function(i,r){var u,f,e,o=1e3*i;f&&(u=setTimeout(f,o));i=function(){clearTimeout(u);u=setTimeout(f,o)};f=function(){clearTimeout(u);var n=setTimeout(e,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(){}})})};e=function(){t(document).off("mousemove");t(document).off("mouseDown");t(document).off("keypress");n.location.reload()};t(document).on("mousemove",i);t(document).on("mouseDown",i);t(document).keypress(i)},getUrlParameter:function(){for(var f,t,i={},u=n.location.search.substring(1).split("&"),r=0;rNumber(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)?u=!(r="wrong format"):((31(new Date).getFullYear()||i<1900)&&(u=!(r="wrong year"))),{errorMessage:r,isValidValue:u}},triggerGoal:function(n,i){n=JSON.stringify(n);i=JSON.stringify(i);t.ajax({url:"/analytics/triggergoal",type:"POST",contentType:"application/json",data:JSON.stringify({goalId:n,validationCode:i}),success:function(n){console.log(n)},error:function(n){console.log(n)}})},validatePostcodeAgainstState:function(n,t){switch(n){case"ACT":if(200<=t&&t<=299||2600<=t&&t<=2618||2900<=t&&t<=2920)return!0;break;case"QLD":if(4e3<=t&&t<=4999||9e3<=t&&t<=9999)return!0;break;case"NSW":if(1e3<=t&&t<=1999||2e3<=t&&t<=2599||2619<=t&&t<=2899||2921<=t&&t<=2999)return!0;break;case"NT":if(800<=t&&t<=899||900<=t&&t<=999)return!0;break;case"SA":if(5e3<=t&&t<=5999)return!0;break;case"TAS":if(7e3<=t&&t<=7999)return!0;break;case"VIC":if(3e3<=t&&t<=3999||8e3<=t&&t<=8999)return!0;break;case"WA":if(6e3<=t&&t<=6999)return!0}return!1}}}(this,jQuery);jQuery(australianRT.Utils.init());(australianRT=window.australianRT||{}).Scrolling=function(n,t){"use strict";var h,e,o,i,s,r=0,c=0,u=0,l=t(".btn--chat").css("bottom"),a=function(){o=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){n.preventDefault();t(this).is(".clicked")||(n=t(".art-sections-nav a").index(t(this)),p(n))});t(n).scroll(function(){f(n.pageYOffset,document.body.offsetHeight)});t(n).resize(function(){v();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);y()});t(n).resize()},v=function(){t("body.home").length&&(r=0,b())},y=function(){t.mCustomScrollbar&&t(".art-menu__content").mCustomScrollbar("update")},p=function(n){n=Math.round(n);u=c;w(n=r-1<(n=n<0?0:n)?r-1:n);u!==n&&(e=-n*h,i.addClass("art-section--scrolling"),t.mCustomScrollbar)&&t("body.art-section--fixed .art-wrap-sections").mCustomScrollbar("scrollTo",e);setTimeout(function(){0},800)},w=function(n){var i;0===(n=Math.round(n))?t("body").addClass("art-section--first-active"):t("body").removeClass("art-section--first-active");!(0=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",l),t("body").removeClass("bottom art-section--last-active"))},b=function(){t("body").removeClass("art-section--fixed");i.mCustomScrollbar("destroy")};return{init:function(){t(document).ready(a)}}}(this,jQuery);jQuery(australianRT.Scrolling.init());(australianRT=window.australianRT||{}).Global=function(n){"use strict";var t=function(){return n("html body").on("focusin focusout",'input[type="checkbox"], input[type="radio"]',function(t){"focusin"===t.type?n(this).parent("label").addClass("radio-focus"):n(this).parent("label").removeClass("radio-focus")}),n("html").on("focus",".gotoFirstFocus",function(){n(this).parent().find(".startModalContent").focus()}),n("html").on("focus",".gotoLastFocus",function(){n(this).parent().find(".endModalContent").focus()}),null},i=function(){n("body").on("mousedown","*",function(t){(n(this).is(":focus")||n(this).is(t.target))&&"none"===n(this).css("outline-style")&&n(this).css("outline","none").on("blur",function(){n(this).off("blur").css("outline","")})})},r=function(){n(".art-form-birthdate").on("input[type!=hidden]",function(t){var i=n(this).attr("size");this.value.length>Number(i)&&(t.preventDefault(),this.value=this.value.slice(0,Number(i)))})},u=function(){n(".skipNav").click(function(){var t="#"+this.href.split("#")[1];n(t).attr("tabindex",-1).on("blur focusout",function(){n(this).removeAttr("tabindex")}).focus()})},f=function(){document.addEventListener("focus",function(t){n(".modalDialog").is(":visible")&&!n(t.target).closest(".modalDialog").length&&n(".modalDialog").find("input[type!=hidden],textarea,select,button").filter(":visible:first").focus();n(".art-search-overlay").is(":visible")&&!n(t.target).closest(".art-search-overlay").length&&n(".art-search-overlay").find("input[type!=hidden],textarea,select,button").filter(":visible:first").focus()},!0)},e=function(){document.addEventListener("focus",function(t){n(".art-profile-overlay").is(":visible")&&!n(t.target).closest(".art-profile-overlay").length&&n(".art-profile-overlay").find("input[type!=hidden],textarea,select,button").filter(":visible:first").focus()},!0)},o=function(){document.addEventListener("click",function(t){n(t.target).closest(".btn, a, span").length||n(t.target).closest(".modalDialog").length||n(".modalDialog").is(":visible")&&n(".close").trigger("click")},!0)},s=function(){document.cookie="resolution="+Math.max(screen.width,screen.height)+",1; path=/"},h=function(){n(".goal").click(function(){var t=n(this).data("goal");null!=t&&0s||s'+w+"."+b+'<\/span>Cancel<\/title><\/svg><\/a>
  • '),!0===a)r.context=o.html(""+l.html()+"<\/span>");else{if(w=o.find("span.btn--file-surrogate:visible").length,h<=w)return t(u,y),void(f-=r.files[0].size);r.context=0"+l.html()+"<\/span>"):o.html(""+l.html()+"<\/span>")}u.find(".error").remove();s'+i.files[0].name+'<\/span>Cancel<\/title><\/svg><\/a>';n(i).parent().find(".file-info-msg").html("
    "+l+"<\/div>");n(i).parent().find(".file-info-msg").show();n(i).parent().find(".file-upload").hide();break}if(!o)return i.files[0].size>s?n(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()&&n(i).parents(".form-group").find(".help-block").html(""+v+"<\/span>").addClass("field-validation-error"),n(i).val(""),!1}return n(".file-info-msg").off("click.cancel").on("click.cancel","a.cancel",function(){n(this).parents(".form-group").find(".file-upload").show();n(this).parents(".form-group").find(".attachments.wffm").val("");n(this).parents(".form-group").find(".btn--file-surrogate").remove();n(this).parents(".form-group").find(".help-block").removeClass("error");n(this).parents(".form-group").find(".help-block").html("")}),!0},t=function(n,t){n.find(".error").remove();n.find("button.btn--file-surrogate").after(''+t+"<\/span>")};return{init:function(){return i(),n(".attachments.wffm").click(function(){n(this).parents(".form-group").find(".field-validation-error").html("")}),n(".attachments.wffm").on("change",function(){r(n(".has-file-upload-wffm"))}),null},uploadFile:i,uploadFileWffm:r,uploadDocList:function(){}}}(jQuery);jQuery(australianRT.BrowseFiles.init());(australianRT=window.australianRT||{}).Captcha=function(n){"use strict";var t=n("body").data("captchaKey"),u=function(){var r,u=grecaptcha||{},f="invisible",e="inline",s,o;if(void 0!==u){if(n("#RecaptchaField1").length&&n(".mjo-page").length&&(r=u.render("RecaptchaField1",{sitekey:t,callback:australianRT.Mjo.correctCaptchaContact,size:f,badge:e}),n("#RecaptchaField1").data("recaptcha-id",r)),n(".wffm-invisible-recaptcha").length)for(s=n(".wffm-invisible-recaptcha"),o=0;oresponse",n)},r=function(){setTimeout(function(){u()},3500)};return{init:function(){!0===n("body").data("enablecaptcha")?r():n(".captcha").remove()},CaptchaCall:r,correctCaptchaContact:i,captchaCallbackFunction:function(n){return n||grecaptcha.execute(recaptchaId),n}}}(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(){var u,r;t("body").hasClass("home")?t(n).scrollTop(0):(r=-1*t("header").outerHeight(),(i-=u) header").css("top",i+"px"))},t(n).resize(function(){t(n).width()!==u&&(u=t(n).width(),786<\/use><\/svg><\/span>','
    ','

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