(()=>{"use strict";var t={597:(t,e,n)=>{function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function r(t,e){for(var n=0;n{function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function r(t,e){for(var n=0;n0?c.UiEvent.trackUIEvent("header-sticky","anchor-hash-link",e.type,t.hash):c.UiEvent.trackUIEvent("header-sticky","anchor-link",e.type,new URL(t.href).pathname)}),{once:!0})})),document.querySelectorAll(".header.default a:not(.login)").forEach((function(t){t.addEventListener("click",(function(e){t.hash.length>0?c.UiEvent.trackUIEvent("header-default","anchor-hash-link",e.type,t.hash):c.UiEvent.trackUIEvent("header-default","anchor-link",e.type,new URL(t.href).pathname)}),{once:!0})})),null===(e=document.querySelector(".burger.mobile-navigation-toggle"))||void 0===e||e.addEventListener("click",(function(t){c.UiEvent.trackUIEvent("mobile-navigation","mobile-navigation-toggle",t.type)}),{once:!0}),null===(n=document.querySelector(".menu > .login"))||void 0===n||n.addEventListener("click",(function(t){c.UiEvent.trackUIEvent("login-form",document.body.classList.contains("login-form-is-visible")?"hide-login-form":"show-login-form",t.type)}),{once:!0}),null===(o=document.querySelector(".signInWithApple"))||void 0===o||o.addEventListener("click",(function(t){c.UiEvent.trackUIEvent("login-form","apple-button",t.type)}),{once:!0}),null===(r=document.querySelector("#loginFormSubmit"))||void 0===r||r.addEventListener("click",(function(t){c.UiEvent.trackUIEvent("login-form","submit-button",t.type)}),{once:!0}),document.querySelectorAll("footer.internal-links a").forEach((function(t){t.addEventListener("click",(function(e){c.UiEvent.trackUIEvent("footer","anchor-link",e.type,new URL(t.href).pathname)}),{once:!0})})),document.querySelectorAll("footer.external-links a").forEach((function(t){t.addEventListener("click",(function(e){c.UiEvent.trackUIEvent("footer","anchor-link",e.type,new URL(t.href).hostname)}),{once:!0})}))}));e.GlobalClickTrackingHomepage=l},540:(t,e,n)=>{function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function r(t,e){for(var n=0;n0?c.UiEvent.trackUIEvent("header-sticky","anchor-hash-link",e.type,t.hash):c.UiEvent.trackUIEvent("header-sticky","anchor-link",e.type,new URL(t.href).pathname)}),{once:!0})})),document.querySelectorAll("header#header a").forEach((function(t){t.addEventListener("click",(function(e){t.hash.length>0?c.UiEvent.trackUIEvent("header-default","anchor-hash-link",e.type,t.hash):c.UiEvent.trackUIEvent("header-default","anchor-link",e.type,new URL(t.href).pathname)}))}),{once:!0}),document.querySelectorAll("footer#footer a").forEach((function(t){t.addEventListener("click",(function(e){c.UiEvent.trackUIEvent("footer","anchor-link",e.type,new URL(t.href).pathname)}),{once:!0})}))}));e.GlobalClickTrackingLandingpage=l},108:(t,e,n)=>{function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function r(t,e){for(var n=0;n=11&&window.removeEventListener("scroll",t))}),{passive:!0})}));e.ScrollTracking=l},861:(t,e,n)=>{function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function r(t,e){for(var n=0;n50){var o=n>0?"right":"left";c.UiEvent.trackUIEvent("content","slider","swipe",o)}}))})),document.querySelectorAll(".menu .scroll-slider-wrapper").forEach((function(t){var e=0;t.addEventListener("touchstart",(function(t){e=t.touches[0].clientX})),t.addEventListener("touchend",(function(t){var n=t.changedTouches[0].clientX-e;if(Math.abs(n)>50){var o=n>0?"right":"left";c.UiEvent.trackUIEvent("content","sub-menu-slider","swipe",o)}}))}))}));e.SwipeTracking=l},182:(t,e)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){for(var n=0;n3&&void 0!==arguments[3]?arguments[3]:"",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",c={category:t.getCategory(),subcategory:e,targetId:n,action:o,cd1:r,cd2:i,cd3:a};"true"===localStorage.getItem("debug")&&console.table(c),document.dispatchEvent(new CustomEvent("pegLogger-logWpEvents",{detail:c}))}}],(n=null)&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.UiEvent=i}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,n),i.exports}var o,r,i,a,c,l,u;o=n(182),r=n(118),i=n(540),a=n(597),c=n(108),l=n(861),u=function(){switch(o.UiEvent.getCategory()){case"homepage":return void new r.GlobalClickTrackingHomepage;case"landing-page":return void new i.GlobalClickTrackingLandingpage;default:new a.GlobalClickTrackingEditorial,new c.ScrollTracking,new l.SwipeTracking}},/complete|interactive|loaded/.test(document.readyState)?u():document.addEventListener("DOMContentLoaded",(function(){return u()}))})(); //# sourceMappingURL=global-ui-tracking.js.map