!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(f,i){"use strict";f=f&&f.hasOwnProperty("default")?f.default:f,i=i&&i.hasOwnProperty("default")?i.default:i;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 h="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function u(o,i,n){(n?Reflect.getOwnMetadataKeys(i,n):Reflect.getOwnMetadataKeys(i)).forEach(function(e){var t=n?Reflect.getOwnMetadata(e,i,n):Reflect.getOwnMetadata(e,i);n?Reflect.defineMetadata(e,t,o,n):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 n(e,i){void 0===i&&(i={}),i.name=i.name||e._componentTag||e.name;var n=e.prototype;Object.getOwnPropertyNames(n).forEach(function(t){if("constructor"!==t)if(-1e?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))},O.prototype.handleEventFlow=function(e){var o=this;e&&this.bodyElem&&-1!==c.indexOf(e)&&setTimeout(function(){var e=document.querySelector(l),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?100:0)},O.prototype.widgetViewLoaded=function(){this.element=this.$el},O.prototype.toggleMenu=function(){this.showList=!this.showList;var e=document.querySelector("body");this.showList?(this.bodyOverflow=e&&e.style.overflow||"",e&&(e.style.overflow="hidden")):e&&(e.style.overflow=this.bodyOverflow)},O.prototype.handleSkipFocus=function(){var e=this.element.querySelector(".skip-main");e&&(e.style.height="40px")},O.prototype.handleSkipBlur=function(){var e=this.element.querySelector(".skip-main");e&&(e.style.height="auto")},O.prototype.destroyed=function(){document.removeEventListener("scroll",this.initiateScrollSticky)},O.prototype.setBodyHeight=function(e){if((this.element.classList.contains("ph-sticky-block-fixed")||e)&&"fixed"!==this.bindModel.headerPosition){if(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{this.getHeaderOffSetHeight();var o=document.querySelector("header");this.bodyElem&&(this.bodyElem.style.paddingTop=this.bodyPaddingTop+this.headerOffsetHeight+"px"),o&&(o.style.top=this.bodyPaddingTop+"px")}},O.prototype.initiateEventListeners=function(){var t=this;i.EventBus.$on("PCS:SUPPORT-ENABLED",function(e){e.enable||(t.showSupport=!1)})},O=function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var d=e.length-1;0<=d;d--)(n=e[d])&&(s=(r<3?n(s):3