!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(-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))},w.prototype.handleEventFlow=function(e){var o=this;e&&this.bodyElem&&-1!==l.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?100:0)},w.prototype.widgetViewLoaded=function(){this.element=this.$el},w.prototype.created=function(){var e=this;setTimeout(function(){e.$el&&e.$el.style&&(e.$el.style.minHeight=null)},100)},w.prototype.toggleMenu=function(){var t=this;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),this.$nextTick(function(){var e;null===(e=t.element.querySelector(".mobile-menu"))||void 0===e||e.focus()})},w.prototype.handleSkipFocus=function(){var e=this.element.querySelector(".skip-main");e&&(e.style.height="40px")},w.prototype.handleSkipBlur=function(){var e=this.element.querySelector(".skip-main");e&&(e.style.height="auto")},w.prototype.destroyed=function(){document.removeEventListener("scroll",this.initiateScrollSticky)},w.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+("transparent"==this.bindModel.headerType?0:this.headerOffsetHeight)+"px"),o&&(o.style.top=this.bodyPaddingTop+"px")}},w.prototype.initiateEventListeners=function(){var t=this;n.EventBus.$on("PCS:SUPPORT-ENABLED",function(e){e.enable||(t.showSupport=!1)})},w=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