PageSourceSearch

https://mozo-web-assets.mozo.com.au/assets/20260121072938/mz6-comm…8ef508e9a99f05b31c4fe464bccb790d3f7f0ce3.js

js mozo.com.au collected 2026-09-24 17:13:44 UTC 50,731 bytes, 2 lines download raw bytes

1function closeMppDialogWindow(e){document.body.classList.remove("is-dialog-open"),e.classList.add("is-hidden"),e.querySelector("div.b-dialog.b-dialog--newsletter")&&setCookie("newsletter_popup_closed",!0),e.querySelector("div.b-broker-referral-dialog__cta-group")&&setCookie("broker_popup_closed",!0)}function openMppDialogWindow(e,t){e.stopPropagation(),MozoDataLayer.pushPanelDisplayed(t.id,e.type,"popup"),document.body.classList.add("is-dialog-open"),t.classList.remove("is-hidden")}function handleClickEvent(e,t,r){r&&("close"===e?closeMppDialogWindow(r):openMppDialogWindow(t,r))}function handleDisclosureClickEvent(e,t,r){if(r){const r=t.target.dataset.disclosureProductType,o=document.querySelectorAll('[data-disclosure-product-type-modal="'+r+'"]')[0];o&&("close"===e?closeMppDialogWindow(o):openMppDialogWindow(t,o))}}function registerMppDialogListeners(){const e=document.querySelectorAll("[data-disclosure-dialog-open]"),t=document.querySelectorAll("[data-mpp-dialog-open]"),r=document.querySelectorAll("[data-mpp-compliance-dialog-open]"),o=document.querySelectorAll("[data-whistleout-advertiser-disclosure-dialog-open]"),a=document.querySelectorAll("[data-insurance-disclaimer-dialog-open]"),n=document.querySelectorAll("[data-mpp-dialog-close]");if(e.length>0)for(var s=document.querySelector("[data-disclosure-dialog]"),i=0;i<e.length;i++)e[i].addEventListener("click",(function(e){handleDisclosureClickEvent("open",e,s)}));if(t.length>0){var c=document.querySelector("[data-mpp-dialog]");for(i=0;i<t.length;i++)t[i].addEventListener("click",(function(e){handleClickEvent("open",e,c)}))}if(r.length>0){var l=document.querySelector("[data-mpp-compliance-dialog]");for(i=0;i<r.length;i++)r[i].addEventListener("click",(function(e){handleClickEvent("open",e,l)}))}if(o.length>0){var d=document.querySelector("[data-whistleout-advertiser-disclosure-dialog]");for(i=0;i<o.length;i++)o[i].addEventListener("click",(function(e){handleClickEvent("open",e,d)}))}if(a.length>0){var u=document.querySelector("[data-insurance-disclaimer-dialog]");for(i=0;i<a.length;i++)a[i].addEventListener("click",(function(e){handleClickEvent("open",e,u)}))}if(n.length>0)for(i=0;i<n.length;i++)n[i].addEventListener("click",(function(e){if(e.target===this)if("button"===this.localName){handleClickEvent("close",e,this.parentNode.closest("[data-mpp-dialog-close]"))}else handleClickEvent("close",e,this)}))}function doOnOrientationChange(){MZ.screenWidth=screen.width}function showAppStore(e){const t=document.querySelectorAll("[data-store="+e+"]");for(var r=0;r<t.length;r++)removeClass(t[r],"hidden")}function toggleTooltipText(){var e=document.querySelector("[data-tooltip-text]");"visible"===e.style.visibility?e.style.visibility="hidden":e.style.visibility="visible"}function trackPageEvent(e,t,r){let o=MZ.activityHostname+"/record_activity?ts="+(new Date).getTime();const a={page_element:e,clicked_element:t,product_type:MZ.productType,product_id:r||null,screen_size:`${window.screen.width}x${window.screen.height}`};for(param in a)o+=string="&"+param+"="+a[param];ajax_get(o)}function triggerNewsletterPopup(e){e.preventDefault(),PB.showPopup=!1,PB.modal&&(MozoDataLayer.pushPanelDisplayed("newsletter",e.type,"popup"),PB.modal.classList.remove("is-hidden"))}function triggerBrokerPopup(e){e.preventDefault(),PB.showPopup=!1,PB.brokerModal&&(MozoDataLayer.pushPanelDisplayed("broker-referral",e.type,"popup"),PB.brokerModal.classList.remove("is-hidden"))}function triggerBrokerPopupExit(e){e.preventDefault(),PB.showPopup=!1,PB.brokerModalExit&&(MozoDataLayer.pushPanelDisplayed("broker-referral",e.type,"popup"),PB.brokerModalExit.classList.remove("is-hidden"))}function triggerBrokerPopupScroll(e){e.preventDefault(),PB.showPopup=!1,PB.brokerModalScroll&&(MozoDataLayer.pushPanelDisplayed("broker-referral",e.type,"popup"),PB.brokerModalScroll.classList.remove("is-hidden"))}function unScramble(e){return e.replace(/[a-zA-Z]/g,(function(e){return String.fromCharCode((e<="Z"?90:122)>=(e=e.charCodeAt(0)+13)?e:e-26)}))}function setupIntersectionObserver(e,t){if("IntersectionObserver"in window){var r=function(e,r){e.forEach((function(e){e.isIntersecting&&(t(e.target),r.unobserve(e.target))}))},o=new IntersectionObserver(r,{root:null,rootMargin:"0px",threshold:.5});e.forEach((function(e){o.observe(e)}))}}function checkInDocument(e){let t=e;for(;t;){if("none"===getComputedStyle(t).display)return!1;t=t.parentElement}return!0}function pushProductListForVisibleMPPs(){document.querySelectorAll("[data-travel-results-table], [data-comparison-list], [data-mpp-table], [data-atwood-product-list], [data-tab-panels], [data-life-insurance-mpp], [data-single-tab-mpp], [data-neobanks-product-list]").forEach((e=>{checkInDocument(e)&&MozoDataLayer.pushProductListDisplayed(e)}))}function showCTCButton(){const e=(e,t)=>
1parseInt(e.substr(t,2)),t=t=>{var r,o,a,n,s,i,c,l,d,u,p,h,m,f,y=JSON.parse(t.getAttribute("data-ctc-hours")),v=!1;return y.forEach((t=>{a=t.timezone,n=(new Date).toLocaleString("en-US",{timeZone:a}),m=new Date(n).getTime(),f=new Date(n).getDay(),r=t.openTime[f],o=t.closeTime[f],void 0!==r&&void 0!==o&&(s=new Date(n),i=new Date(n),c=e(r,0),l=e(r,2),d=e(o,0),u=e(o,2),s.setHours(c,l,0,0),i.setHours(d,u,0,0),p=s.getTime(),h=i.getTime(),m>p&&m<h&&(v=!0))})),v},r=document.querySelectorAll("[data-ctc-button]");for(var o=0;o<r.length;o++)MZ.isMobile&&t(r[o])&&removeClass(r[o],"hidden")}function setupReadMoreListeners(){document.querySelectorAll("[data-expand-toggle]").forEach((e=>{e.addEventListener("click",(function(){const e=this.closest("[data-review-item]");e.classList.toggle("is-truncated");const t=e.classList.contains("is-truncated");this.innerHTML=t?'Read more <span class="fal fa-circle-plus"></span>':'Show less <span class="fal fa-circle-minus"></span>'}))}))}function PristineForm(e){this.form=e,this.id=e.getAttribute("id"),this.submitButton=this.form.querySelector("button"),this.inputs=this.form.querySelectorAll("input, select, checkbox, textarea"),this.config={classTo:"b-form__group",errorTextParent:"b-form__group",errorTextClass:"b-form__error"},this.pristine=new Pristine(this.form,this.config),this.validateInput=e=>{e.preventDefault();this.pristine.validate(e.currentTarget);this.validateForm(!0)},this.validateCheckboxDisclaimer=e=>{this.pristine.validate(e.currentTarget)&&this.validateForm(!1)},this.validateForm=e=>{let t=!0;this.inputs.forEach((r=>{this.pristine.validate(r,e)||(t=!1)})),this.submitButton.disabled=!t},this.inputs.forEach((e=>{e.addEventListener("blur",(e=>{this.validateInput(e)})),e.addEventListener("input",(e=>{this.validateInput(e)})),e.addEventListener("change",(e=>{this.validateInput(e)}))}))}function LeadForm(){document.querySelectorAll("[data-lead-button-popup]");let e={};const t=e=>{const t=e.currentTarget.closest("[data-gts-clickable-container]"),r=t.querySelector("[data-lead-button-popup]"),o=s(t);i(o),showPopup=!1,show(r)},r=e=>{const t=e.currentTarget.closest("[data-gts-clickable-container]").querySelector("[data-lead-button-popup]");hide(t)},o=t=>{const r=t.closest("[data-lead-button-popup]");if(r){const t=r.querySelector("[data-pristine-form]"),o=r.querySelector("[data-form-landing]"),a=r.querySelector("[data-form-thank-you]"),n=new PristineForm(t);n.landing=o,n.thankYou=a,e[n.id]=n}},a=t=>{const r=t.closest("[data-pristine-form]").getAttribute("id");return e[r]},n=e=>{const t=e.currentTarget,r=a(t);let o={lead:{}},n=t.querySelector("[data-button-submit]");n.setAttribute("disabled",!0),addClass(n,"is-loading"),r.inputs.forEach((e=>{"checkbox"===e.type?o.lead[e.name]=e.checked:o.lead[e.name]=e.value})),o.lead.activity_id=MZ.gtsId,MZ.fieldValues={lead:o.lead},this.form=r,l(o)},s=e=>{const t=e.querySelector("[data-gts-clickable-data]"),r=queryParamsFromString(window.location.search),o={acquirely_click_id:window.getCookie("acquirely_click_id"),abt:AB&&AB.currentTest&&AB.currentTest.id,abtg:AB&&AB.currentTest&&Cookies.get(AB.currentTest.cookieName),c1:Date.now(),cookies:document.cookie,hab:MZ.hasAdBlocker,hidb:!!MZ.hasIndexedDB,originaldc:window.location.hostname,outbrain_click_id:window.getCookie("outbrain_click_id"),partial:t.dataset.partial,path:window.location.pathname,position:t.dataset.position,product_id:t.dataset.product_id,product_type:t.dataset.product_type,provider_id:t.dataset.provider_id,session_id:window.getWithExpiry("sessionId"),tab_name:e.dataset.tab_name,taboola_click_id:window.getCookie("taboola_click_id"),url:window.location.href};return Object.assign(r,o)},i=e=>{const t=`${window.MZ.activityHostname}/activity_leads`;ajax_post("post activity lead",t,e,c)},c=e=>{e.success?MZ.gtsId=e.activity_id:console.log("fail!")},l=e=>{const t=`${window.MZ.activityHostname}/leads`;ajax_post("post lead",t,e,d)},d=e=>{e.success?(hide(this.form.landing),show(this.form.thankYou)):console.log("fail!")};this.setupListeners=()=>{document.querySelectorAll("[data-lead-button]").forEach((e=>{e.addEventListener("click",(e=>{t(e)}))})),document.querySelectorAll("[data-lead-form-popup--close]").forEach((e=>{e.addEventListener("click",(e=>{r(e)}))})),document.querySelectorAll("[data-pristine-form]").forEach((e=>{e.addEventListener("submit",(e=>{n(e)})),o(e)}))},this.setupListeners()}function BrokerForm(){const e=e=>{const t=e.currentTarget.closest("[data-gts-clickable-container]").querySelector("[data-gts-clickable-data]"),a=t.dataset.listed_product_id,n=document.querySelector(`[data-broker-button-popup][data-broker-product-id="${a}"]`),s=r(t);o(s),showPopup=!1,MozoDataLayer.pushPanelDisplayed("broker-referral","click","popup"),show(n)},t=e=>{const t=e.currentTarget.closest("[data-broker-button-popup]");hide(t)},r=e=>{const t=queryParamsFromString(window.location.search),r={path:window.location.pathname,product_type:e.dataset.product_type,product_id:e.dataset.product_id,provider_id:e.dataset.provider_id,listed_product_type:e.dataset.listed_product_type,listed_product_id:e.dataset.listed_product_id,listed_product_provider_id:e.dataset.listed_product_provider_id,session_id:window.getWithExpiry("sessionId")};return Object.assign(t,r)},o=e=>{const t=`${window.MZ.activityHostname}/activity_brokers`;ajax_post("post broker activity",t,e,a)},a=e=>{e.success?console.log("success!"):console.log("fail!")}
1;return this.setupListeners=()=>{document.querySelectorAll("[data-broker-form-popup--close]").forEach((e=>{e.addEventListener("click",(e=>t(e)))})),document.querySelectorAll("[data-broker-button]").forEach((t=>{t.addEventListener("click",(t=>e(t)))}))},this.setupListeners(),this}function Filtering(e){function t(){let e;U.addEventListener("input",(function(){clearTimeout(e);const t=U.value.trim();t.length>0?e=setTimeout((()=>r(t)),300):i()})),U.addEventListener("keydown",(function(e){if("Enter"===e.key||13===e.keyCode){e.preventDefault();const t=o(U.value.trim());t.length>0&&s(t[0])}}))}function r(e){n(o(e))}function o(e){return G.filter((t=>t.name.toLowerCase().includes(e.toLowerCase())))}function a(){const e={query:"\n        query($productType: String!) {\n          providers(productType: $productType) {\n            id,\n            name\n          }\n        }\n      ",variables:{productType:q.dataset.productType}};fetch(`${MZ.apiHost}/graphql`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((e=>e.json())).then((e=>{G=e.data.providers;const t=U.dataset.providers;t&&JSON.parse(t).forEach((e=>{c(G.find((t=>parseInt(t.id)===parseInt(e))))}))})).catch((e=>{console.error("Error fetching providers:",e)}))}function n(e){i(),e.forEach((e=>{const t=document.createElement("div");t.classList.add("autocomplete-suggestion"),t.textContent=e.name,t.addEventListener("click",(function(){s(e)})),J.appendChild(t)}))}function s(e){c(e),U.value="",i()}function i(){J.innerHTML=""}function c(e){const t=document.createElement("div");t.classList.add("selected-provider"),t.textContent=e.name,t.dataset.providerId=e.id;const r=document.createElement("span");r.classList.add("remove-provider"),r.textContent="x",r.addEventListener("click",(function(){Y.removeChild(t)})),t.appendChild(r),Y.appendChild(t),U.focus()}let l=e,d=l.querySelector("[data-comparison-list]");const u=l.querySelector("[data-filter-form]"),p=l.querySelector("[data-filter-dialog-form]"),h=l.querySelector("[data-cassowary-filter-dialog-open]"),m=l.querySelector("[data-cassowary-filter-dialog]"),f=l.querySelector("[data-cassowary-filter-close]"),y=l.querySelector("[data-show-more]"),v=l.querySelector("[data-show-more-text]"),g=l.querySelector("[data-show-filter-link]"),L=l.querySelector("[data-show-more-count]"),w=(l.querySelector("[data-show-more-total]"),l.querySelector("[data-dialog-overlay]")),E=l.querySelector("[data-dialog-overlay-text]"),b=l.querySelector("[data-table-footer]"),S=l.querySelector("[data-filters-expanded-section]"),k=l.querySelector("[data-show-more-filters-button]"),P=l.querySelector("[data-show-fewer-filters-button]");l.querySelectorAll("[data-fixed-rate-toggle-on]"),l.querySelectorAll("[data-fixed-rate-toggle-off]"),l.querySelector("[data-fixed-rate-term]"),l.querySelector('input[name="loan_amount"]'),l.querySelector('input[name="property_value"]');let q,T,A,_;q=p||u;const D=e=>{const t=e.length?e[0]:e;return t.dataset&&t.dataset.type||""},M=(e,t)=>{if(e.elements[t]){const r=e.elements[t];let o;switch(D(r)){case"int":int=parseInt(r.value.replace(/[^0-9.-]+/g,"")),o=int>=0?int:null;break;case"array":const e=l.querySelectorAll(`input[name='${t}']:checked`);o=Array.from(e).map((e=>e.value));break;case"bool":o="checkbox"===r.type?r.checked?"true":"false":r.value;break;case"providers":const a=l.querySelectorAll(".selected-provider");o=Array.from(a).map((e=>parseInt(e.dataset.providerId)));break;default:o=r.value}return{value:o}}},C=e=>{m&&(e?m.classList.remove("is-hidden"):m.classList.add("is-hidden"))},x=e=>{A=e.dataset.productType},I=e=>{let t={};Array.from(e.elements).forEach((r=>{"submit"!==r.type&&"button"!==r.type&&(t[r.name]=M(e,r.name))}));return{cms_component_entity_id:e.dataset.cmsComponentEntityId,product_type:e.dataset.productType,shortlisting:!0,filters:t}},R=async e=>{const t=window.scrollY;q.page.value=e,E.innerHTML="Loading...",w.classList.remove("is-hidden"),z(),d.outerHTML=await fetchRequest("/api/mpp/filtered",I(q)),d=l.querySelector("[data-comparison-list]"),O(),1===e?window.scrollTo(0,d.offsetTop):window.scrollTo(0,t),w.classList.add("is-hidden")},B=()=>
1{if(y){const e=parseInt(d.dataset.productCount),t=parseInt(d.dataset.totalProducts);L.innerHTML=e,e>=t?y.classList.add("is-hidden"):y.classList.remove("is-hidden"),"2"===q.page.value?v.innerHTML="See all ":v.innerHTML="See more ",q.show_monetised_only.checked?g.classList.remove("is-hidden"):g.classList.add("is-hidden")}},z=()=>{_=[];[{time:5e3,text:"Still loading..."},{time:1e4,text:"Just a bit longer..."},{time:15e3,text:"Nearly there..."},{time:2e4,text:"Finishing..."}].forEach((e=>{const t=setTimeout((()=>{E.textContent=e.text}),e.time);_.push(t)}))},O=()=>{_.forEach((e=>clearTimeout(e))),E.textContent="Loading..."},Z=()=>{setupTippyMecaBadges(),setupTippyContent(),setupMoreInfoListeners(),setupGtsListeners(),MZ.LeadForm&&MZ.LeadForm.setupListeners(),MZ.Shortlist&&MZ.Shortlist.setupListeners(),MZ.BrokerForm&&MZ.BrokerForm.setupListeners(),MZ.BudgetUtilizationReduction&&MZ.BudgetUtilizationReduction.setupListeners()},V=async(e,t)=>{e.preventDefault(),H(e.target,!0),q=t,q.page.value=1,T=q.dataset.cmsComponentEntityId,A=q.dataset.productType,await R(1),B(),H(e.target,!1),Z(),C(!1),MZ.filterValuesChanged=!0,document.querySelectorAll("[data-comparison-list]").forEach((e=>{MozoDataLayer.pushProductListDisplayed(e)}))},F=async()=>{const e=parseInt(q.page.value)+1;await R(e),B(),Z()},H=(e,t)=>{const r=e.querySelector('button[type="submit"]');r.disabled=t,r.classList.toggle("is-loading")},N=()=>{window.addEventListener("scroll",(()=>{const e=(window.scrollY||document.documentElement.scrollTop)+window.innerHeight<document.documentElement.scrollHeight-5;d.getBoundingClientRect().top<=0&&e?b.classList.remove("is-hidden"):b.classList.add("is-hidden")}))},$=e=>{e.preventDefault(),S.classList.remove("is-hidden"),W(e)},j=e=>{e.preventDefault(),S.classList.add("is-hidden"),W(e)},W=()=>{k.classList.toggle("is-hidden"),P.classList.toggle("is-hidden")};let U,J,Y;h&&h.addEventListener("click",(e=>{e.stopPropagation,x(u,p),C(!0)})),h&&f.addEventListener("click",(e=>{e.stopPropagation,x(p,u),C(!1)})),y&&N(),u&&u.addEventListener("submit",(e=>{x(u,p),V(e,u)})),p&&p.addEventListener("submit",(e=>{x(p,u),V(e,p)})),y&&y.addEventListener("click",(function(){F()})),S&&(k.addEventListener("click",(function(e){$(e)})),P.addEventListener("click",(function(e){j(e)}))),U=q.querySelector("#providerInput"),J=q.querySelector("#autocompleteContainer"),Y=q.querySelector("#selectedProviders");let G=[];U&&(t(),a())}
1docReady((()=>{MZ.isMobile||document.querySelectorAll("[data-currency]").forEach((e=>{e.setAttribute("type","text");const t="$"+(parseInt(e.value)>=0?formatMoney(e.value):"");e.value=t,e.addEventListener("keyup",(e=>{keyupFormatMoney(e)}))}))})),docReady((()=>{const e=document.querySelector("[data-header-nav"),t=e.querySelectorAll("[data-header-link]");let r=!1;const o=()=>window.innerWidth>=1024,a=(t,a,n)=>{if(o()){const o=a.classList.contains("is-active");if(r)if(e.querySelectorAll("[data-header-subnav].is-shown").forEach((e=>{if(e!==n){e.classList.remove("is-shown");const t=e.parentElement.querySelector("[data-header-link]");t&&t.classList.remove("is-active")}})),o&&"click"===t.type)n.classList.remove("is-shown"),a.classList.remove("is-active");else{const e=n.classList.add("is-shown");a.classList.add("is-active",e)}}else n.classList.toggle("is-shown-mobile")};t.forEach((e=>{const t=e.parentElement.querySelector("[data-header-subnav]");t&&(e.addEventListener("click",(o=>{r=!0,a(o,e,t)})),o()&&e.addEventListener("mouseover",(r=>{a(r,e,t)})))})),document.addEventListener("click",(function(t){o()&&e.querySelectorAll("[data-header-subnav].is-shown").forEach((e=>{const o=e.parentElement.querySelector("[data-header-link]");e.contains(t.target)||o&&o.contains(t.target)||(r=!1,e.classList.remove("is-shown"),o&&o.classList.remove("is-active")),e.contains(t.target)}))}));e.querySelectorAll("[data-header-sub-nav-back], .b-header__sub-nav-back").forEach((e=>{e.addEventListener("click",(t=>{t.preventDefault();const r=e.closest("[data-header-subnav]");r&&r.classList.remove("is-shown-mobile")}))}));const n=e.querySelector("[data-header-toggle]"),s=document.body;n.addEventListener("click",(()=>{e.classList.toggle("is-nav-open"),n.classList.toggle("b-header__toggle--close"),s.classList.toggle("is-dialog-open")})),window.addEventListener("resize",(()=>{e.querySelectorAll("[data-header-subnav].is-shown").forEach((e=>e.classList.remove("is-shown"))),e.querySelectorAll("[data-header-link].is-active").forEach((e=>e.classList.remove("is-active"))),e.querySelectorAll("[data-header-subnav].is-shown-mobile").forEach((e=>e.classList.remove("is-shown-mobile")))}))})),docReady((()=>{document.querySelectorAll("[data-faq-item]").forEach((e=>{e.addEventListener("click",(function(){const t=e.querySelector("svg");t.classList.contains("fa-plus")?(t.classList.remove("fa-plus"),t.classList.add("fa-minus"),e.nextElementSibling.classList.remove("hidden")):(t.classList.remove("fa-minus"),t.classList.add("fa-plus"),e.nextElementSibling.classList.add("hidden"))}))})),document.querySelectorAll("[data-faq-answer]").forEach((e=>{e.classList.add("hidden")}))}));const reviewReadMore=e=>{const t=e.currentTarget.dataset.reviewId,r=document.querySelector(`#review_${t}`);r.classList.remove("is-truncated"),r.classList.add("is-expanded")},reviewReadLess=e=>{const t=e.currentTarget.dataset.reviewId,r=document.querySelector(`#review_${t}`);r.classList.add("is-truncated"),r.classList.remove("is-expanded")},assignReviewEventListeners=()=>{document.querySelectorAll("[data-review-open]").forEach((e=>{e.addEventListener("click",reviewReadMore)})),document.querySelectorAll("[data-review-close]").forEach((e=>{e.addEventListener("click",reviewReadLess)}))};docReady((()=>{assignReviewEventListeners()})),registerMppDialogListeners(),window.addEventListener("orientationchange",doOnOrientationChange),doOnOrientationChange(),docReady((()=>{MZ.isMobile||MZ.isTablet?MZ.isIOS?showAppStore("apple"):showAppStore("google"):(showAppStore("apple"),showAppStore("google"))})),docReady((()=>{window.innerWidth<=768&&document.querySelectorAll("[data-tooltip]").forEach((e=>{e.addEventListener("click",(function(){toggleTooltipText()}))}))}));let PB={showPopup:!0};PB.modalButton=document.querySelector("[data-broker-popup-open]"),PB.modal=document.querySelector("[data-newsletter-signup-popup]"),PB.brokerModal=document.querySelector("[data-mpp-broker-popup]"),PB.brokerModalExit=document.querySelector("[data-mpp-broker-popup-exit]"),PB.brokerModalScroll=document.querySelector("[data-mpp-broker-popup-scroll]"),PB.findButtons=document.querySelectorAll("[data-gts-clickable-element]"),PB.modalButton&&PB.modalButton.addEventListener("click",(e=>{triggerBrokerPopup(e)})),PB.findButtons&&PB.findButtons.forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),PB.showPopup=!1,setCookie("broker_popup_closed",!0)}),!1)}));const buttonClick=document.querySelector("[data-click]");buttonClick&&buttonClick.addEventListener("click",(e=>{e.preventDefault(),PB.showPopup=!1}),!1);const brokerPopupClosed=void 0!==getCookie("broker_popup_closed")&&JSON.parse(getCookie("broker_popup_closed").toLowerCase()),newsletterPopupClosed=void 0!==getCookie("newsletter_popup_closed")&&JSON.parse(getCookie("newsletter_popup_closed").toLowerCase());document.addEventListener("mouseout",(e=>
1{(e.clientY<=0||e.clientX<=0||e.clientX>=window.innerWidth||e.clientY>=window.innerHeight)&&PB.showPopup&&!MZ.isAtwood&&(MZ.isDesktop||MZ.isTablet)&&(brokerPopupClosed||MZ.hiddenBrokerPopup||triggerBrokerPopupExit(e))}),!1),document.addEventListener("scroll",(e=>{if(document.querySelector("[data-broker-referral-scroll-mobile]")){const t=document.querySelector("[data-broker-referral-scroll-mobile]").getBoundingClientRect(),r=t.top+t.height;t&&t.top<0&&r>0&&PB.showPopup&&!MZ.disablePopups&&!MZ.isAtwood&&MZ.isMobile&&!MZ.disableBrokerPopupForMobile&&(brokerPopupClosed||MZ.hiddenBrokerPopup||triggerBrokerPopupScroll(e))}}),!1),document.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelector(".b-fact-checked");e&&e.addEventListener("mouseenter",(function(){MozoDataLayer.pushPanelDisplayed("fact-checked","hover","popup")}));const t=document.querySelector("[data-mpp-product-tip]");t&&t.addEventListener("mouseenter",(function(){MozoDataLayer.pushPanelDisplayed("mpp-product-tip","hover","popup")}))}));const RBA_CASH_RATE=parseFloat(MZ.rbaCashRate),ONGOING_RATE_1=RBA_CASH_RATE+2.15,INTRO_RATE_1=RBA_CASH_RATE+1.35,ONGOING_RATE_2=RBA_CASH_RATE+1.65,INTRO_RATE_2=RBA_CASH_RATE+1.15,INTRO_TERM_1=1,INTRO_TERM_2=1,SAVINGS_RATE=RBA_CASH_RATE+.75,PL_RATE_1=RBA_CASH_RATE+6.25,PL_RATE_2=RBA_CASH_RATE+8.5,CC_INTEREST_RATE_1=19.99,CC_INTRO_TERM_1=1,CC_INTRO_RATE_1=4.99,HENDERSON_POVERTY_INDEX={couple:[506.97,630.19,753.4,876.62,998.47,121.85],single:[348.72,478.72,602.16,725.37,848.59,123.22]},FREQUENCIES={yearly:1,monthly:12,fortnightly:26.09,weekly:52.18},REPAYMENT_CALC_FREQUENCIES={yearly:1,monthly:12,fortnightly:26,weekly:52},TAX_TIERS=[0,18200,45e3,135e3,19e4],TAX_RATES=[0,.16,.3,.37,.45],TAX_SO_FAR=[0,0,4288,31288,51638],MEDICARE_LEVY_RATE=.02,MEDICARE_LOWER_THRESHOLD=26e3,MEDICARE_UPPER_THRESHOLD=32500,maxLITO=700,middleLITO=325,maxLITOthreshold=37500,LITOthreshold1=45e3,LITOthreshold2=66667,LITOreductionrate1=.05,LITOreductionrate2=.015,mobileShareButton=document.querySelector("[data-mobile-share-button]");mobileShareButton&&mobileShareButton.addEventListener("click",(e=>{e.preventDefault(),navigator.share&&navigator.share({title:document.title,text:document.title,url:window.location.href})}));const shareWindowParams="scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no,width=600,height=300,left=100,top=100;";document.querySelectorAll("[data-share-button]").forEach((e=>{e.addEventListener("click",(t=>{t.preventDefault(),window.open(e.href,"shareWindow",shareWindowParams)}))}));class DataLayer{constructor(){this.allValues={}}pushNewEvent(e){if(!(e instanceof DataLayerEvent))throw new Error("Incorrect data layer event type has been passed.");if(this.recordAsActivity(e)){let t=new FormData;t.append("session_id",getWithExpiry("sessionId")),t.append("path",window.location.pathname),t.append("hostname",window.location.hostname),t.append("event_name",e.event),t.append("event",JSON.stringify(e)),navigator.sendBeacon(MZ.activityHostname+"/datalayer_event?",t)}void 0!==window.dataLayer&&window.dataLayer.push(e.getJson())}recordAsActivity(e){let t=!1;return MZ.isAtwood||!MZ.isProduction||MZ.dataLayerRecordLocations.forEach((r=>{t||"path"!=r.locationType||r.path!==window.location.pathname||(t=!0),t||"container"!=r.locationType||r.eventName!==e.event||r.container!==e[r.eventPart].container||(t=!0)})),t}pushNewEventToAllValuesOnly(e){if(!(e instanceof DataLayerEvent))throw new Error("Incorrect data layer event type has been passed.");window.dataLayer.allValues=this.allValues,window.dataLayer.allValues=this.cloneObject(window.dataLayer.allValues,e)}cloneObject(e,t){for(var r in t)null!==t[r]&&"object"==typeof t[r]?(e[r]=e[r]||{},e[r]=this.cloneObject(e[r],t[r])):e[r]=t[r];return e}}class DataLayerEvent{setArticleView(e){this.event="articleView",this.article=e}setElementInteraction(e){this.event="elementInteraction",this.element=e}setErrorDisplayed(e){this.event="errorDisplayed",this.error=e}setFormInteraction(e){this.event="formInteraction",this.form=e}setPageView(e){this.event="pageView",this.page=e.page,this.user=e.user,this.article=e.article,this.marketing=e.marketing}setPanelDisplayed(e){this.event="panelDisplayed",this.panel=e}setProductClickOut(e){this.event="productClickOut",this.mozoProduct=e.product,this.mozoProductsList=e.mozoProductsList,this.preference=e.preference,this.mozoCl
1ickOut=e.mozoClickOut}setProductListDisplayed(e){this.event="productListDisplayed",this.mozoProducts=e.product,this.preference=e.preference,this.mozoProductsList=e.mozoProductsList}setSectionView(e){this.event="sectionView",this.section=e}setShortlistProduct(e){this.event="shortlistProduct",this.mozoProduct=e.product,this.mozoProductsList=e.mozoProductsList}setViewProductDetails(e){this.event="viewProductDetails",this.mozoProduct=e.product,this.mozoProductsList=e.mozoProductsList,this.preference=e.preference}setViewProductListing(e){this.event="viewProductListing",this.mozoProduct=e.product,this.mozoProductsList=e.mozoProductsList,this.preference=e.preference}setViewShortlist(e){this.event="viewShortlist",this.mozoProducts=e.product,this.mozoProductsList=e.mozoProductsList}getJson(){const e=Object.getOwnPropertyNames(this);let t={};return e.forEach((e=>{t[e]=this[e]})),t}}class AwardHoverEvent{constructor(e){this.el=e.currentTarget}data(){return{name:this.name(),container:this.container(),text:this.text()}}name(){return this.el.dataset.dlAwardHoverName}container(){return this.el.closest("[data-section]").dataset.section}text(){return this.el.dataset.dlAwardHoverText}event(){const e=new DataLayerEvent;return e.setElementInteraction(this.data()),e}}class ElementInteractionEvent{constructor(e){this.el=e.currentTarget,this.element=this.el.closest("[data-dl-element-interaction]"),this.elementContainer=this.el.closest("[data-dl-element-interaction-container]")}data(){return{name:this.name(),container:this.container(),text:this.text()}}name(){let e="";const t=this.element.querySelector("[data-dl-element-interaction-name]");return null!==t&&(e=t.dataset.dlElementInteractionName||""),e}container(){return this.elementContainer.dataset.dlElementInteractionContainer}text(){let e="";const t=this.element.querySelector("[data-dl-element-interaction-text]");return null!==t&&(e=t.dataset.dlElementInteractionText||t.innerText),e}event(){const e=new DataLayerEvent;return e.setElementInteraction(this.data()),e}}class ErrorDisplayedEvent{constructor(e){this.type=e.type,this.message=e.message,this.code=e.code}data(){return{type:this.type,message:this.message,code:this.code}}event(){const e=new DataLayerEvent;return e.setErrorDisplayed(this.data()),e}}class FormInteractionEvent{constructor(e){this.el=e.target,this.formElement=this.el.closest("[data-dl-form-interaction]")}data(){return{name:this.name(),question:this.question(),answer:this.answer(),action:"touched"}}name(){return this.formElement.querySelector("[data-dl-form-interaction-name]")?this.formElement.querySelector("[data-dl-form-interaction-name]").dataset.dlFormInteractionName:this.formElement.closest("[data-dl-form-interaction-name]").dataset.dlFormInteractionName}question(){let e=this.formElement.dataset.dlFormInteractionQuestion;if(!e){const t=this.formElement.querySelector("[data-dl-form-interaction-question]");e=t?t.dataset.dlFormInteractionQuestion||t.innerText:""}return e}answer(){if("email"==this.el.type||"email"==this.el.name)return"redacted";let e;if("choices"==this.el.dataset.type)e=MZ.choicesFormTripDestinations.getValue(!0).toString();else if(e=this.el.dataset.dlFormInteractionAnswer||this.formElement.querySelector("[data-dl-form-interaction-answer]")&&this.formElement.querySelector("[data-dl-form-interaction-answer]").dataset.dlFormInteractionAnswer,"checkbox"==this.el.type)return e?{[e]:this.el.checked}:this.el.checked;return e||this.el.value}event(){const e=new DataLayerEvent;return e.setFormInteraction(this.data()),e}}class LinkEvent{constructor(e){this.el=e.currentTarget}data(){return{name:this.name(),container:this.container(),text:this.text(),url:this.url()}}name(){return"link"}container(){const e=this.el.closest("[data-section]");return e&&e.dataset?e.dataset.section:null}text(){return this.el.dataset.dlLinkName||this.el.innerText}url(){return this.el.href}valid(){return void 0===this.el.dataset.gtsClickableElement}event(){if(this.valid()){const e=new DataLayerEvent;return e.setElementInteraction(this.data()),e}}}class PageViewEvent{data(){let e={page:MZ.page,marketing:MZ.marketing,user:{sessionID:MZ.sessionId?MZ.sessionId.replace(".","-"):"",ad
1Block:MZ.hasAdBlocker?"true":"false"}};return MZ.article&&(e.article={id:MZ.article.id,title:MZ.page?MZ.page.title:"",authors:MZ.article.authors,location:"",tags:MZ.article.tags,publishDate:this.parseDate(MZ.article.publishDate),updateDate:this.parseDate(MZ.article.updateDate)}),e}parseDate(e){const[t,r,o]=e.split(" "),[a,n,s]=t.split("-");return{year:a,month:n,day:s}}event(){const e=new DataLayerEvent;return e.setPageView(this.data()),e}}class PanelDisplayedEvent{constructor(e,t,r){this.type=e,this.trigger=t,this.style=r}data(){return{type:this.type,trigger:this.trigger,style:this.style}}event(){const e=new DataLayerEvent;return e.setPanelDisplayed(this.data()),e}}class ProductClickOutEvent{constructor(e,t,r){this.el=e,this.mzri=t,this.clickType=r}data(){return{preference:this.preference(),mozoClickOut:{mzri:this.mzri,clickType:this.clickType},mozoProductsList:this.mozoProductsList(),product:[this.product()]}}product(){return new Product(this.el).data()}preference(){return new Preference(this.el).data()}mozoProductsList(){const e=this.el.closest("[data-comparison-list]")||document.querySelector("[data-comparison-list]");return e?{id:e.dataset.comparisonList,name:e.dataset.comparisonListDescription}:{}}event(){const e=new DataLayerEvent;return e.setProductClickOut(this.data()),e}}class ProductListDisplayedEvent{constructor(e){this.el=e}data(){return{preference:this.preference(),mozoProductsList:this.mozoProductsList(),product:this.product()}}product(){const e=this.el.querySelectorAll("[data-gts-clickable-container]:not([data-dl-exclude-from-product-listing])");return Array.from(e).filter((e=>e.offsetWidth>0&&e.offsetHeight>0)).map(((e,t)=>new Product(e,t).data()))}preference(){return new Preference(this.el).data()}mozoProductsList(){return{id:this.el.dataset.comparisonList,name:this.el.dataset.comparisonListDescription}}event(){const e=new DataLayerEvent;return e.setProductListDisplayed(this.data()),e}}class SectionViewEvent{constructor(e){this.el=e}data(){return{name:this.name(),text:this.text(),scrollDepth:this.scrollDepth()}}name(){return this.el.dataset.section}text(){const e=this.el.querySelector("[data-section-text]")||this.el.querySelector("h1")||this.el.querySelector("h2")||this.el.querySelector("h3");return null!==e?e.innerText:""}scrollDepth(){return this.el.offsetTop.toString().split(".")[0]}event(){const e=new DataLayerEvent;return e.setSectionView(this.data()),e}}class ShortlistProductEvent{constructor(e){this.el=e}data(){return{mozoProductsList:this.mozoProductsList(),
2product:[this.product()]}}product(){return new Product(this.el).data()}mozoProductsList(){const e=this.el.closest("[data-comparison-list]");return e?{id:e.dataset.comparisonList,name:e.dataset.comparisonListDescription}:{}}event(){const e=new DataLayerEvent;return e.setShortlistProduct(this.data()),e}}class ViewFaqItemEvent{constructor(e){this.el=e.currentTarget,this.elementContainer=this.el.closest("[data-section]")}data(){return{name:"faq item",container:this.container(),text:this.text()}}container(){return this.elementContainer.dataset.section}text(){let e="";const t=this.el.querySelector("summary");return null!==t&&(e=t.dataset.dlFaqText||t.innerText),e}event(){const e=new DataLayerEvent;return e.setElementInteraction(this.data()),e}}class ViewProductDetailsEvent{constructor(e){this.el=e}data(){return{preference:this.preference(),mozoProductsList:this.mozoProductsList(),product:[this.product()]}}product(){return new Product(this.el).data()}preference(){return new Preference(this.el).data()}mozoProductsList(){const e=this.el.closest("[data-comparison-list]");return e?{id:e.dataset.comparisonList,name:e.dataset.comparisonListDescription}:{}}event(){const e=new DataLayerEvent;return e.setViewProductDetails(this.data()),e}}class ViewProductListingEvent{constructor(e){this.el=e}data(){return{preference:this.preference(),mozoProductsList:this.mozoProductsList(),product:[this.product()]}}product(){return new Product(this.el).data()}preference(){return new Preference(this.el).data()}mozoProductsList(){const e=this.el.closest("[data-comparison-list]");return e?{id:e.dataset.comparisonList,name:e.dataset.comparisonListDescription}:{}}event(){const e=new DataLayerEvent;return e.setViewProductListing(this.data()),e}}class ViewShortlistEvent{constructor(e){this.el=e}data(){return{mozoProductsList:this.mozoProductsList(),product:this.product()}}product(){const e=this.el.querySelectorAll("[data-gts-clickable-container]");return Array.from(e).map(((e,t)=>new Product(e,t).data()))}mozoProductsList(){const e=this.el.parentElement.querySelector("[data-comparison-list]");return e?{id:e.dataset.comparisonList,name:e.dataset.comparisonListDescription}:{}}event(){const e=new DataLayerEvent;return e.setViewShortlist(this.data()),e}}class Preference{constructor(e){this.el=e,this.mpp=e.closest("[data-mpp-container]")}data(){return{sortBy:this.sortBy(),filter:this.filter()}}sortBy(){const e=this.mpp&&this.mpp.querySelector("[data-sort-selection]");return e&&e.innerText||""}filter(){let e;if(e=this.mpp?this.mpp.querySelector("[data-filters]"):document.querySelector("[data-filters]"),e){const t=e.dataset,r=t.features;let o={},a={};return"TravelInsurance"===t.productType?a={tripCancellation:t.cancellation,luggageCover:t.luggage,maximumExcess:t.excess,rentalCarCover:t.car,maximumTripDuration:t.maximumTripDuration,motorbike:t.motorbike,preExistingCondition:t.medicalAssessment,specialEventC
2over:t.specialEvents}:(o={offset:(!!r&&r.includes("Offset")).toString(),redraw:(!!r&&r.includes("Redraw")).toString()},a={valuesChanged:(MZ.filterValuesChanged||!1).toString(),loanAmount:t.loanAmount,propertyValue:t.propertyValue,homeOrInvestment:t.propertyType||"both",buyOrRefinance:t.loanPurpose||"both",rateType:t.rateType||"both",features:o,repaymentType:t.repaymentType,repaymentTerm:t.loanTerm,showNonMonetised:t.showNonMonetised}),a}return"x"}}class Product{constructor(e,t){this.container=e,this.index=t,this.clickableData=this.container.querySelector("[data-gts-clickable-data]")}data(){return{id:this.clickableData.dataset.product_id,productType:this.clickableData.dataset.product_type,index:this.position(),brand:this.container.dataset.provider_name||this.clickableData.dataset.provider_name||"",provider_id:this.clickableData.dataset.provider_id,name:this.container.dataset.name,variants:this.variants(),promotionTags:this.promotionTags(),promotionText:this.promotionText(),awards:this.awards(),linkDestination:this.linkDestination(),headlineValues:this.headlineValues(),buttonTypes:this.buttonTypes(),curated:this.curated()}}position(){let e=0;return this.container.dataset.position?e=parseInt(this.container.dataset.position):this.index&&(e=parseInt(this.index)+1),e.toString()}variants(){const e=this.container.querySelectorAll("[data-product-description]");return Array.from(e).map((e=>e.innerText)).join(" | ")}promotionTags(){const e=this.container.querySelectorAll("[data-promoted-tag]");return Array.from(e).map((e=>e.innerText))}promotionText(){const e=this.container.querySelectorAll("[data-promoted-text]");return Array.from(e).map((e=>e.innerText)).join(" | ")}awards(){const e=this.container.querySelectorAll("[data-meca-award]");return Array.from(e).map((e=>e.innerText.trim()))}linkDestination(){return unScramble(this.clickableData.dataset.the_url)}headlineValues(){const e=this.container.querySelectorAll("[data-col_label]"),t=this.container.querySelectorAll("[data-col_value]");return Array.from(t).map(((t,r)=>e[r].dataset.col_label+": "+t.innerText.replace(/\n/g," ")))}buttonTypes(){if("product_page"==this.clickableData.dataset.type)return"product_page";if(this.clickableData.app_store_url)return"app_store";const e=this.container.querySelector("[data-ctc-clickable-data]");return e&&e.dataset.ctcClickableData?"ctc":"gts"}curated(){return null!==this.container.closest("[data-curated-list]")}}class MozoDataLayerClass{constructor(e){this.dataLayer=new DataLayer}pushAwardHover(e){e.stopPropagation();const t=new AwardHoverEvent(e).event();this.pushEvent(t)}pushFormInteraction(e){const t=new FormInteractionEvent(e).event();this.pushEvent(t)}pushElementInteraction(e){const t=new ElementInteractionEvent(e).event();this.pushEvent(t)}pushErrorDisplayed(e){const t=new ErrorDisplayedEvent(e).event();this.pushEvent(t)}pushLink(e){const t=new LinkEvent(e).event();this.pushEvent(t)}pushPageView(){const e=(new PageViewEvent).event();this.pushEvent(e)}pushPanelDisplayed(e,t,r){const o=new PanelDisplayedEvent(e,t,r).event();this.pushEvent(o)}pushProductClickOut(e,t,r){const o=new ProductClickOutEvent(e,t,r).event();this.pushEvent(o)}pushProductListDisplayed(e){const t=new ProductListDisplayedEvent(e).event();this.pushEvent(t)}pushSectionView(e){const t=new SectionViewEvent(e).event();this.pushEvent(t)}pushShortlistProduct(e){const t=new ShortlistProductEvent(e).event();this.pushEvent(t)}pushViewFaqItem(e){const t=new ViewFaqItemEvent(e).event();this.pushEvent(t)}pushViewProductDetails(e){const t=new ViewProductDetailsEvent(e).event();this.pushEvent(t)}pushViewProductListing(e){const t=new ViewProductListingEvent(e).event();this.pushEvent(t)}pushViewShortlist(e){const t=new ViewShortlistEvent(e).event();this.pushEvent(t)}pushEvent(e){if(void 0!==e){"production"!==MZ.env&&console.log(e);const t=this;setTimeout((function(){t.dataLayer.pushNewEvent(e)}),0)}}pushDelayedEvent(e){if(void 0!==e){const t=this;setTimeout((function(){t.pushEvent(e)}),500)}}resetDataLayer(){window.dataLayer.push((function(){this.reset()}))}checkSectionView(){setupIntersectionObserver(document.querySelectorAll("[data-section]"),(function(e){MozoDataLayer.pushSectionView(e)}))}checkProductView(){setupIntersectionObserver(document.querySelectorAll("[data-gts-clickable-container]:not([data-dl-exclude-from-product-listing])"),(function(e){MozoDataLayer.pushViewProductListing(e)}))}checkAwardHover(e){const t=e.currentTarget;void 0===t.dataset.hasHover&&(MozoDataLayer.pushAwardHover(e),t.dataset.hasHover="1")}}docReady((function(){MozoDataLayer=new MozoDataLayerClass,MozoDataLayer.pushPageView(),pushProductListForVisibleMPPs(),document.querySelectorAll("[data-tab-group-handle], [data-tab]").forEach((e=>{e.addEventListener("click",(()=>{setTimeout((()=>{pushProductListForVisibleMPPs()}),500)}))})),document.querySelectorAll("[data-section]").length>0&&MozoDataLayer.checkSectionView(),MozoDataLayer.checkProductView(),document.querySelectorAll('[data-section="faqs"] details').forEach((e=>{e.addEventListener("click",(e=>{MozoDataLayer.pushViewFaqItem(e)}))})),document.querySelectorAll("[data-dl-form-interaction] select, [data-dl-form-interaction] input").forEach((e=>{e.addEventListener("change",(e=>{MozoDataLayer.pushFormInteraction(e)}))})),document.querySelectorAll('[data-dl-form-interaction] [data-type="date-range"]').forEach((e=>{e.addEventListener("blur",(e=>{MozoDataLayer.pushFormInteraction(e)}))})),document.querySelectorAll("[data-dl-element-interaction]").forEach((e=>{e.addEventListener("click",(e=>{MozoDataLayer.pushElementInteraction(e)}))})),document.querySelectorAll("[data-dl-element-hover]").forEach((e=>{e.addEventListener("mouseover",(e=>{MozoDataLayer.pushElementInteraction(e)}))})),document.querySelectorAll("[data-dl-award-hover]").forEach((e=>{e.addEventListener("mouseover",(e=>{MozoDataLayer.checkAwardHover(e)}))})),document.querySelectorAll("a").forEach((e=>{e.addEventListener("click",(e=>{MozoDataLayer.pushLink(e)}))})),document.querySelectorAll("nav button").forEach((e=>{e.addEventListener("click",(e=>{MozoDataLayer.pushLink(e)}))})),document.querySelectorAll(".slick-active").forEach((e=>{e.addEventListener("init",(function(){setTimeout((()=>{document.querySelectorAll("[data-dl-element-interaction]").forEach((e=>{e.addEventListener("click",(e=>{MozoDataLayer.pushElementInteraction(e)}))}))}),1e3)}))}
2))})),docReady((()=>{document.querySelector("[data-ctc-button]")&&showCTCButton()})),docReady((()=>{setupReadMoreListeners()}));const createQueryString=(e,t="")=>Object.keys(e).map((r=>{const o=t?`${t}[${r}]`:r,a=e[r];return null===a?encodeURIComponent(o)+"=":"object"==typeof a?Array.isArray(a)?a.map((e=>`${encodeURIComponent(o)}[]=${encodeURIComponent(e)}`)).join("&"):createQueryString(a,o):`${encodeURIComponent(o)}=${encodeURIComponent(a)}`})).join("&"),fetchRequest=async(e,t)=>{const r=`${e}?${createQueryString(t)}`,o=await fetch(r,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/text"}});return await o.text()};!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Pristine=t()}(this,(function(){"use strict";function e(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e}function t(){var e=arguments;return this.replace(/\${([^{}]*)}/g,(function(t,r){return e[r]}))}function r(e){return e.pristine.self.form.querySelectorAll('input[name="'+e.getAttribute("name")+'"]:checked').length}function o(e,t){for(var r in t)r in e||(e[r]=t[r]);return e}function a(r,a,d){function u(e,t,r){e.setAttribute("novalidate","true"),E.form=e,E.config=o(t||{},s),E.live=!(!1===r),E.fields=Array.from(e.querySelectorAll(c)).map(function(e){var t=[],r={},o={};
2return[].forEach.call(e.attributes,(function(e){if(/^data-pristine-/.test(e.name)){var a=e.name.substr(14),n=a.match(p);if(null!==n){var s=void 0===n[1]?"en":n[1];return o.hasOwnProperty(s)||(o[s]={}),void(o[s][a.slice(0,a.length-n[0].length)]=e.value)}"type"===a&&(a=e.value),f(t,r,a,e.value)}else~l.indexOf(e.name)?f(t,r,e.name,e.value):"type"===e.name&&f(t,r,e.value)})),t.sort((function(e,t){return t.priority-e.priority})),E.live&&e.addEventListener(~["radio","checkbox"].indexOf(e.getAttribute("type"))?"change":"input",function(e){E.validate(e.target)}.bind(E)),e.pristine={input:e,validators:t,params:r,messages:o,self:E}}.bind(E))}function f(e,t,r,o){var a=m[r];if(a&&(e.push(a),o)){var n="pattern"===r?[o]:o.split(",");n.unshift(null),t[r]=n}}function y(e){for(var r=[],o=!0,a=0;e.validators[a];a++){var s=e.validators[a],i=e.params[s.name]?e.params[s.name]:[];if(i[0]=e.input.value,!s.fn.apply(e.input,i)&&(o=!1,"function"==typeof s.msg?r.push(s.msg(e.input.value,i)):"string"==typeof s.msg?r.push(t.apply(s.msg,i)):s.msg===Object(s.msg)&&s.msg[h]?r.push(t.apply(s.msg[h],i)):e.messages[h]&&e.messages[h][s.name]?r.push(t.apply(e.messages[h][s.name],i)):n[h]&&n[h][s.name]&&r.push(t.apply(n[h][s.name],i)),!0===s.halt))break}return e.errors=r,o}function v(t){if(t.errorElements)return t.errorElements;var r=e(t.input,E.config.classTo),o=null,a=null;return(o=E.config.classTo===E.config.errorTextParent?r:r.querySelector("."+E.config.errorTextParent))&&((a=o.querySelector("."+i))||((a=document.createElement(E.config.errorTextTag)).className=i+" "+E.config.errorTextClass,o.appendChild(a),a.pristineDisplay=a.style.display)),t.errorElements=[r,a]}function g(e){var t=v(e),r=t[0],o=t[1];r&&(r.classList.remove(E.config.successClass),r.classList.add(E.config.errorClass)),o&&(o.innerHTML=e.errors.join("<br/>"),o.style.display=o.pristineDisplay||"")}function L(e){var t=v(e),r=t[0],o=t[1];return r&&(r.classList.remove(E.config.errorClass),r.classList.remove(E.config.successClass)),o&&(o.innerHTML="",o.style.display="none"),t}function w(e){var t=L(e)[0];t&&t.classList.add(E.config.successClass)}var E=this;return u(r,a,d),E.validate=function(e,t){t=e&&!0===t||!0===e;var r=E.fields;!0!==e&&!1!==e&&(e instanceof HTMLElement?r=[e.pristine]:(e instanceof NodeList||e instanceof(window.$||Array)||e instanceof Array)&&(r=Array.from(e).map((function(e){return e.pristine}))));for(var o=!0,a=0;r[a];a++){var n=r[a];y(n)?!t&&w(n):(o=!1,!t&&g(n))}return o},E.getErrors=function(e){if(!e){for(var t=[],r=0;r<E.fields.length;r++){var o=E.fields[r];o.errors.length&&t.push({input:o.input,errors:o.errors})}return t}return e.tagName&&"select"===e.tagName.toLowerCase()?e.pristine.errors:e.length?e[0].pristine.errors:e.pristine.errors},E.addValidator=function(e,t,r,o,a){e instanceof HTMLElement?(e.pristine.validators.push({fn:t,msg:r,priority:o,halt:a}),e.pristine.validators.sort((function(e,t){return t.priority-e.priority}))):console.warn("The parameter elem must be a dom element")},E.addError=function(e,t){(e=e.length?e[0]:e).pristine.errors.push(t),g(e.pristine)},E.reset=function(){for(var e=0;E.fields[e];e++)E.fields[e].errorElements=null;Array.from(E.form.querySelectorAll("."+i)).map((function(e){e.parentNode.removeChild(e)})),Array.from(E.form.querySelectorAll("."+E.config.classTo)).map((function(e){e.classList.remove(E.config.successClass),e.classList.remove(E.config.errorClass)}))},E.destroy=function(){E.reset(),E.fields.forEach((function(e){delete e.input.pristine})),E.fields=[]},E.setGlobalConfig=function(e){s=e},E}var n={en:{required:"This field is required",email:"This field requires a valid e-mail address",number:"This field requires a number",integer:"This field requires an integer value",url:"This field requires a valid website URL",tel:"This field requires a valid telephone number",maxlength:"This fields length must be < ${1}",minlength:"This fields length must be > ${1}",min:"Minimum value for this field is ${1}",max:"Maximum value for this field is ${1}",pattern:"Please match the requested format",equals:"The two fields do not match"}},s={classTo:"form-group",errorClass:"has-danger",successClass:"has-success",errorTextParent:"form-group",errorTextTag:"div",errorTextClass:"text-help"}
2,i="pristine-error",c="input:not([type^=hidden]):not([type^=submit]), select, textarea",l=["required","min","max","minlength","maxlength","pattern"],d=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,u=/^(?:\+?(61))? ?(?:\((?=.*\)))?(0?[2-57-8])\)? ?(\d\d(?:[- ](?=\d{3})|(?!\d\d[- ]?\d[- ]))\d\d[- ]?\d[- ]?\d{3})$/,p=/-message(?:-([a-z]{2}(?:_[A-Z]{2})?))?/,h="en",m={},f=function(e,t){t.name=e,void 0===t.priority&&(t.priority=1),m[e]=t};return f("text",{fn:function(){return!0},priority:0}),f("required",{fn:function(e){return"radio"===this.type||"checkbox"===this.type?r(this):void 0!==e&&""!==e},priority:99,halt:!0}),f("email",{fn:function(e){return!e||d.test(e)}}),f("tel",{fn:function(e){return!e||u.test(e)}}),f("number",{fn:function(e){return!e||!isNaN(parseFloat(e))},priority:2}),f("integer",{fn:function(e){return!e||/^\d+$/.test(e)}}),f("minlength",{fn:function(e,t){return!e||e.length>=parseInt(t)}}),f("maxlength",{fn:function(e,t){return!e||e.length<=parseInt(t)}}),f("min",{fn:function(e,t){return!e||("checkbox"===this.type?r(this)>=parseInt(t):parseFloat(e)>=parseFloat(t))}}),f("max",{fn:function(e,t){return!e||("checkbox"===this.type?r(this)<=parseInt(t):parseFloat(e)<=parseFloat(t))}}),f("pattern",{fn:function(e,t){var r=t.match(new RegExp("^/(.*?)/([gimy]*)$"));return console.log(e,t,r),!e||new RegExp(r[1],r[2]).test(e)}}),f("equals",{fn:function(e,t){var r=document.querySelector(t);return r&&(!e&&!r.value||r.value===e)}}),a.addValidator=function(e,t,r,o,a){f(e,{fn:t,msg:r,priority:o,halt:a})},a.addMessages=function(e,t){var r=n.hasOwnProperty(e)?n[e]:n[e]={};Object.keys(t).forEach((function(e){r[e]=t[e]}))},a.setLocale=function(e){h=e},a})),docReady((()=>{null!==document.querySelector("[data-lead-button]")&&(MZ.LeadForm=new LeadForm)})),docReady((()=>{null!==document.querySelector("[data-broker-button]")&&(MZ.BrokerForm=new BrokerForm)})),docReady((()=>{document.querySelectorAll("[data-cassowary-list-container]").forEach((e=>{MZ.Filtering=new Filtering(e)}))})),docReady((function(){if(document.querySelector("[data-tabs]")){const e=document.querySelectorAll("[data-tab]"),t=document.querySelectorAll("[data-tab-panel]"),r=r=>{const o=r.target.dataset.position-1;e.forEach((e=>{e.classList.remove("selected")})),t.forEach((e=>{e.classList.remove("current")})),r.target.classList.add("selected");const a=document.querySelector(`[data-tab-position='${o}']`);a&&a.classList.add("current")};e.forEach((e=>{e.querySelector("a").style.pointerEvents="none",e.addEventListener("click",r)})),document.querySelector('[data-tab-position="0"]').classList.add("current")}document.querySelectorAll("[data-transcript-toggle]").forEach((e=>{e.addEventListener("click",(function(e){e.preventDefault();const t=document.querySelector("[data-transcript]");t.classList.toggle("hidden"),t.classList.contains("hidden")?e.target.innerHTML="See transcript":e.target.innerHTML="Hide transcript"}))}))}));

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.