!function n(i,r,l){function a(t,e){if(!r[t]){if(!i[t]){var o="function"==typeof require&&require;if(!e&&o)return o(t,!0);if(s)return s(t,!0);throw(o=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",o}o=r[t]={exports:{}},i[t][0].call(o.exports,function(e){return a(i[t][1][e]||e)},o,o.exports,n,i,r,l)}return r[t].exports}for(var s="function"==typeof require&&require,e=0;e a").forEach(function(e){e.insertAdjacentHTML("beforeend",'')}),(0,l.default)(a,f,"link"==c.options.verticalHeaderTarget?(0,s.default)(a,p).header.querySelectorAll("li.menu-item-has-children > a"):(0,s.default)(a,p).header.querySelectorAll(".dropdown-toggle")),new PerfectScrollbar((0,s.default)(a,p).header,{wheelSpeed:.5,suppressScrollX:!1,suppressScrollY:!1})}}),b.set(this,{writable:!0,value:function(){(0,s.default)(a,f).forEach(function(e){e.addEventListener("click",(0,s.default)(a,h)),e.addEventListener("tap",(0,s.default)(a,h))}),(0,s.default)(a,p).toggleMenuBtn.addEventListener("click",(0,s.default)(a,m)),document.addEventListener("keydown",(0,s.default)(a,g))}}),h.set(this,{writable:!0,value:function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget,o=("link"==c.options.verticalHeaderTarget?t:t.parentNode).parentNode,e=o.lastElementChild;null!=o&&o.classList.contains("active")?(o.classList.remove("active"),(0,u.slideUp)(e,250),null!==(t=o.querySelectorAll(".menu-item-has-children.active"))&&void 0!==t&&t.forEach(function(e){e.classList.remove("active"),(0,u.slideUp)(e.querySelector("ul"),250)})):(o.classList.add("active"),(0,u.slideDown)(e,250))}}),m.set(this,{writable:!0,value:function(e){e.preventDefault(),(0,s.default)(a,p).body.classList.contains("vh-opened")?((0,s.default)(a,p).body.classList.remove("vh-opened"),(0,s.default)(a,p).toggleMenuBtn.querySelector(".hamburger").classList.remove("is-active")):((0,s.default)(a,p).body.classList.add("vh-opened"),(0,s.default)(a,p).toggleMenuBtn.querySelector(".hamburger").classList.add("is-active")),(0,s.default)(a,p).toggleMenuBtn.focus()}}),g.set(this,{writable:!0,value:function(e){var t=9===e.keyCode,o=e.shiftKey,n=27===e.keyCode,i=13===e.keyCode,r=null===(l=(0,s.default)(a,p).header)||void 0===l?void 0:l.querySelectorAll("a, span.dropdown-toggle, input, button"),l=r?r[0]:"",r=r?r[r.length-1]:"";(r.style.outline="",s.default)(a,p).body.classList.contains("vertical-header-style")&&((0,s.default)(a,p).body.classList.contains("vh-closed")||i&&document.activeElement.classList.contains("dropdown-toggle")&&document.activeElement.click(),!(0,s.default)(a,p).body.classList.contains("vh-opened"))||(n&&(e.preventDefault(),(0,s.default)(a,m).call(a,e)),i&&document.activeElement.classList.contains("dropdown-toggle")&&(0,s.default)(a,p).body.classList.contains("vh-closed")&&document.activeElement.click(),!o&&t&&r===document.activeElement&&(e.preventDefault(),l.focus()),t&&l===r&&e.preventDefault())}}),(0,s.default)(this,p).header&&((0,s.default)(this,y).call(this),(0,s.default)(this,v).call(this),(0,s.default)(this,b).call(this))};window.oceanwp=window.oceanwp||{},oceanwp.verticalHeader=new e},{"../../constants":1,"../../lib/utils":2,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/classPrivateFieldGet":8,"@babel/runtime/helpers/classPrivateFieldSet":9,"@babel/runtime/helpers/defineProperty":10,"@babel/runtime/helpers/interopRequireDefault":11}],4:[function(e,t,o){t.exports=function(e,t){return t.get?t.get.call(e):t.value},t.exports.default=t.exports,t.exports.__esModule=!0},{}],5:[function(e,t,o){t.exports=function(e,t,o){if(t.set)t.set.call(e,o);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=o}},t.exports.default=t.exports,t.exports.__esModule=!0},{}],6:[function(e,t,o){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},t.exports.default=t.exports,t.exports.__esModule=!0},{}],7:[function(e,t,o){t.exports=function(e,t,o){if(!t.has(e))throw new TypeError("attempted to "+o+" private field on non-instance");return t.get(e)},t.exports.default=t.exports,t.exports.__esModule=!0},{}],8:[function(e,t,o){var n=e("./classApplyDescriptorGet.js"),i=e("./classExtractFieldDescriptor.js");t.exports=function(e,t){return t=i(e,t,"get"),n(e,t)},t.exports.default=t.exports,t.exports.__esModule=!0},{"./classApplyDescriptorGet.js":4,"./classExtractFieldDescriptor.js":7}],9:[function(e,t,o){var n=e("./classApplyDescriptorSet.js"),i=e("./classExtractFieldDescriptor.js");t.exports=function(e,t,o){return t=i(e,t,"set"),n(e,t,o),o},t.exports.default=t.exports,t.exports.__esModule=!0},{"./classApplyDescriptorSet.js":5,"./classExtractFieldDescriptor.js":7}],10:[function(e,t,o){t.exports=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},t.exports.default=t.exports,t.exports.__esModule=!0},{}],11:[function(e,t,o){t.exports=function(e){return e&&e.__esModule?e:{default:e}},t.exports.default=t.exports,t.exports.__esModule=!0},{}],12:[function(e,t,o){function n(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=n=function(e){return typeof e}:t.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t.exports.default=t.exports,t.exports.__esModule=!0,n(e)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},{}]},{},[3]);