!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue"),require("../../../../common/v1/src")):"function"==typeof def&&def.amd?def("pcs-header-v1",["vue","../../../../common/v1/src"],t):((e=e||self).phw=e.phw||{},e.phw.PcsHeaderV1=t(e.Vue,e.PcsCommon))}(this,function(h,n){"use strict";h=h&&h.hasOwnProperty("default")?h.default:h,n=n&&n.hasOwnProperty("default")?n.default:n;var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)};var f="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function u(o,n,i){(i?Reflect.getOwnMetadataKeys(n,i):Reflect.getOwnMetadataKeys(n)).forEach(function(e){var t=i?Reflect.getOwnMetadata(e,n,i):Reflect.getOwnMetadata(e,n);i?Reflect.defineMetadata(e,t,o,i):Reflect.defineMetadata(e,t,o)})}var y={__proto__:[]}instanceof Array;function m(e){"undefined"!=typeof console&&console.warn("[vue-class-component] "+e)}var g=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function i(e,n){void 0===n&&(n={}),n.name=n.name||e._componentTag||e.name;var i=e.prototype;Object.getOwnPropertyNames(i).forEach(function(t){if("constructor"!==t)if(-1 .container > .nav-main-bar"),t=document.querySelector("header");e&&t&&(e.style.top=this.bodyPaddingTop+(t.offsetHeight||0)+"px")},E.prototype.getBodyElemTop=function(){if(this.bodyElem){var e=parseInt((this.bodyElem.style.paddingTop||"").replace("px","")||"0");this.bodyPaddingTop=e,this.bodyElem.style.marginTop=null}},E.prototype.reorderAdditionalWidgets=function(){var t=this.element.querySelector('[data-ph-component-name="header-additional-widgets"]');if(t&&this.reorderSettings&&this.reorderSettings.custom&&this.reorderSettings.custom.reorder){var e=this.reorderSettings.custom.reorder,o=t.children||[];(e.map(function(e){return o[e-1]})||[]).forEach(function(e){e&&t.appendChild(e)})}},E.prototype.addStyle=function(e){var t=document.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(t)},E.prototype.addEventForHover=function(){var c=this;["header-additional-widgets","header-additional-widgets2"].forEach(function(e){var t=c.settings&&c.settings[e];if(t){var o=c.element.querySelector('[data-ph-component-name="header-additional-widgets"]'),n=o&&o.querySelectorAll("li"),i=t.attrs&&t.attrs.hover?t.attrs.hover:null,r=i&&i.class,s=void 0;i&&(i.class&&-1!=i.class.indexOf("-hover")&&(r=i.class.split("-hover")[0]),s=r&&i.value?i.value:i.style);var a="dynamic-css"+Date.now();if(s){var l="."+a+":hover button.language-block * { color : "+s+" !important; } ";if(l+="."+a+":hover a.create-account-link *{ color : "+s+" !important; } ",l+="."+a+":hover a.sign-in-link *{ color : "+s+" !important; } ",l+="."+a+":hover button.logged-in-btn .user-name{ color : "+s+" !important; } ",l+="."+a+":hover a.phs-job-cart-area * { color : "+s+" !important; } ",l+="."+a+":hover a#support-click { color : "+s+" !important; } ",c.addStyle(l),i&&n)for(var d=0;de?this.element.classList.contains("ph-sticky-block-fixed")||(this.currentStickyHeight=this.element.offsetHeight,this.element.classList.add("ph-sticky-block-fixed"),this.setBodyHeight(!0)):(this.element.classList.remove("ph-sticky-block-fixed"),this.bodyElem&&(this.bodyElem.style.paddingTop=this.prevbodyTop+"px"),this.element.style.top=null,this.nextElementSibling&&this.nextElementSibling.style&&this.nextElementSibling.style.paddingTop&&(this.nextElementSibling.style.paddingTop=null))},E.prototype.handleEventFlow=function(e){var o=this;e&&this.bodyElem&&-1!==d.indexOf(e)&&setTimeout(function(){var e=document.querySelector(c),t=document.querySelector(p);e||t&&(t.style.top="0px"),o.bodyElem.style.paddingTop=(e&&e.offsetHeight)+(t&&t.offsetHeight)+"px",o.getBodyElemTop(),o.setBodyHeight()},"close_cvd_popup"!=e?750:0)},E.prototype.widgetViewLoaded=function(){this.element=this.$el},E.prototype.created=function(){},E.prototype.toggleMenu=function(){var t=this;this.showList=!this.showList;var e=document.querySelector("body");if(this.showList){this.bodyOverflow=e&&e.style.overflow||"",e&&(e.style.overflow="hidden");var o=document.querySelector("header"),n=this.element.querySelector('[data-ph-component-name="header-menu-list"]');document.addEventListener("ph:gdpr:consent:closed",function(){setTimeout(function(){n&&(n.style.top=o.offsetHeight+o.offsetTop+"px")},10)}),n&&(n.style.top=o.offsetHeight+o.offsetTop+"px")}else e&&(e.style.overflow=this.bodyOverflow);this.$nextTick(function(){setTimeout(function(){var e=t.element.querySelector(".mobile-menu");null==e||e.blur(),null==e||e.focus()},30)}),this.handleNavigationTop()},E.prototype.handleSkipFocus=function(){var e=this.element.querySelector(".skip-main");e&&(e.style.height="40px")},E.prototype.handleSkipBlur=function(){var e=this.element.querySelector(".skip-main");e&&(e.style.height="auto")},E.prototype.destroyed=function(){document.removeEventListener("scroll",this.initiateScrollSticky)},E.prototype.setBodyHeight=function(e){if("scrollSticky"===this.bindModel.headerPosition&&(e=!0),this.element.classList.contains("ph-sticky-block-fixed")&&e&&"fixed"!==this.bindModel.headerPosition){if(this.getBodyElemTop(),this.element.style.top=this.bodyPaddingTop+"px",!this.nextElementSibling){var t=this.element;for(this.nextElementSibling=t.nextElementSibling;t&&"BODY"!=t.nodeName&&!this.nextElementSibling;)t=t.parentElement,this.nextElementSibling=t.nextElementSibling}this.nextElementSibling&&(this.nextElementSibling.style.paddingTop=this.element.offsetHeight+"px")}else if(!e){this.getHeaderOffSetHeight();var o=document.querySelector("header");this.bodyElem&&(this.bodyElem.style.paddingTop=this.bodyPaddingTop+("transparent"==this.bindModel.headerType?0:this.headerOffsetHeight)+"px"),o&&(o.style.top=this.bodyPaddingTop+"px")}},E.prototype.initiateEventListeners=function(){var t=this;n.EventBus.$on("PCS:SUPPORT-ENABLED",function(e){e.enable||(t.showSupport=!1)}),document.addEventListener("mouseup",this.blurHandlerMobile)},E.prototype.blurHandlerMobile=function(e){var t=this,o=e.target&&e.target.target&&e.target.closest(".nav-main-bar"),n=this.$el.querySelector(".mobile-menu"),i=e.target.href||"",r=window.location.pathname||"";setTimeout(function(){t.showList&&o&&n&&(!o&&!n.contains(e.target)||-1!==i.indexOf(r)&&-1===i.indexOf("javascript"))&&t.toggleMenu()},10)},E=function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;0<=a;a--)(i=e[a])&&(s=(r<3?i(s):3