!function o(i,r,l){function s(t,e){if(!r[t]){if(!i[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(a)return a(t,!0);throw(n=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",n}n=r[t]={exports:{}},i[t][0].call(n.exports,function(e){return s(i[t][1][e]||e)},n,n.exports,o,i,r,l)}return r[t].exports}for(var a="function"==typeof require&&require,e=0;e .hamburger"),header:document.querySelector("#site-header")}))}}),h.set(this,{writable:!0,value:function(){(0,l.default)(a,y,!1),(0,c.default)(a,g).call(a),document.querySelector(".sidr-class-dropdown-toggle")||document.querySelectorAll(".sidr-class-menu-item-has-children > a").forEach(function(e){e.insertAdjacentHTML("beforeend",'')}),(0,l.default)(a,v,"link"==u.options.sidrDropdownTarget?document.querySelectorAll("li.sidr-class-menu-item-has-children > a"):document.querySelectorAll(".sidr-class-dropdown-toggle"))}}),g.set(this,{writable:!0,value:function(){var n=a;sidr.new(".mobile-menu",{name:"sidr",source:u.options.sidrSource,side:u.options.sidrSide,displace:u.options.sidrDisplace,speed:300,renaming:!0,timing:"ease",bind:"click",onOpen:function(){null!==(e=document.querySelector("a.sidr-class-toggle-sidr-close"))&&void 0!==e&&e.focus(),null!==(e=(0,c.default)(n,f).hamburgerBtn)&&void 0!==e&&e.classList.add("is-active"),(0,c.default)(n,f).header.insertAdjacentHTML("afterend",'
');var e=document.querySelector(".oceanwp-sidr-overlay");(0,d.fadeIn)(e),e.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),sidr.close("sidr")})},onClose:function(){var e;null!==(e=(0,c.default)(n,f).hamburgerBtn)&&void 0!==e&&e.classList.remove("is-active"),document.querySelectorAll(".sidr-class-menu-item-has-children.active > ul").forEach(function(e){e.style.display="none"}),document.querySelectorAll(".sidr-class-menu-item-has-children.active").forEach(function(e){e.classList.remove("active")});var t=document.querySelector(".oceanwp-sidr-overlay");(0,d.fadeOut)(t),setTimeout(function(){t.remove()})}}),document.querySelectorAll('#sidr [class*="sidr-class-fa"]').forEach(function(e){e.className=e.className.replace(/\bsidr-class-fa.*?\b/g,"fa")}),document.querySelectorAll('#sidr [class*="sidr-class-icon"]').forEach(function(e){e.className=e.className.replace(/\bsidr-class-icon-.*?\b/g,"icon-")}),(0,l.default)(a,m,document.querySelector("a.sidr-class-toggle-sidr-close"))}}),w.set(this,{writable:!0,value:function(){var e;null!==(e=(0,c.default)(a,f).hamburgerBtn)&&void 0!==e&&e.addEventListener("click",(0,c.default)(a,x)),null!==(e=(0,c.default)(a,m))&&void 0!==e&&e.addEventListener("click",(0,c.default)(a,S)),null!==(e=(0,c.default)(a,v))&&void 0!==e&&e.forEach(function(e){e.addEventListener("click",(0,c.default)(a,k)),e.addEventListener("touchend",(0,c.default)(a,k))}),(0,s.default)(document.body,'.sidr-class-dropdown-menu a[href*="#"]:not([href="#"]), .sidr-class-menu-item > a[href*="#"]:not([href="#"])',"click",(0,c.default)(a,P)),(0,s.default)(document.body,'.sidr-class-dropdown-menu a[href*="#"]:not([href="#"]), .sidr-class-menu-item > a[href*="#"]:not([href="#"])',"touchend",(0,c.default)(a,P)),null!==(e=document.querySelectorAll("li.sidr-class-nav-no-click > a"))&&void 0!==e&&e.forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation()})}),document.addEventListener("keydown",(0,c.default)(a,M)),window.addEventListener("resize",(0,c.default)(a,E))}}),x.set(this,{writable:!0,value:function(e){(0,l.default)(a,y,!(0,c.default)(a,y)),e.currentTarget.setAttribute("aria-expanded",(0,c.default)(a,y))}}),S.set(this,{writable:!0,value:function(e){e.preventDefault(),e.stopPropagation(),(0,c.default)(a,P).call(a),(0,c.default)(a,m).classList.remove("opened")}}),k.set(this,{writable:!0,value:function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget,n=("link"==u.options.sidrDropdownTarget?t:t.parentNode).parentNode,e=n.lastElementChild;null!=n&&n.classList.contains("active")?(n.classList.remove("active"),(0,d.slideUp)(e,250),null!==(t=n.querySelectorAll(".sidr-class-menu-item-has-children.active"))&&void 0!==t&&t.forEach(function(e){e.classList.remove("active"),(0,d.slideUp)(e.querySelector("ul"))})):(n.classList.add("active"),(0,d.slideDown)(e,250))}}),E.set(this,{writable:!0,value:function(e){960<=window.innerWidth&&(0,c.default)(a,P).call(a)}}),M.set(this,{writable:!0,value:function(e){var t,n,o,i,r,l,s;(0,c.default)(a,f).body.classList.contains("sidr-open")&&(e.stopPropagation(),t=9===e.keyCode,n=e.shiftKey,o=27===e.keyCode,i=13===e.keyCode,r=(0,c.default)(a,m),l=(s=document.querySelector("#sidr").querySelectorAll("a, span.sidr-class-dropdown-toggle, input, button"))[0],s=s[s.length-1],r&&(r.style.outline="",!n&&t&&s===document.activeElement&&(e.preventDefault(),r.style.outline="1px dashed rgba(255, 255, 255, 0.6)",r.focus()),n&&t&&l===document.activeElement&&(e.preventDefault(),r.style.outline="1px dashed rgba(255, 255, 255, 0.6)",r.focus())),o&&(e.preventDefault(),(0,c.default)(a,P).call(a)),i&&document.activeElement.classList.contains("sidr-class-dropdown-toggle")&&(e.preventDefault(),document.activeElement.click()),t&&l===s&&e.preventDefault())}}),P.set(this,{writable:!0,value:function(){setTimeout(function(){var e;sidr.close("sidr"),null!==(e=(0,c.default)(a,f).hamburgerBtn)&&void 0!==e&&e.classList.remove("is-active")},50)}}),void 0!==u.options.sidrSource&&(0,c.default)(this,f).body.classList.contains("sidebar-mobile")&&((0,c.default)(this,b).call(this),(0,c.default)(this,h).call(this),(0,c.default)(this,w).call(this))};window.oceanwp=window.oceanwp||{},oceanwp.sidebarMobileMenu=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,delegate:14}],4:[function(e,t,n){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,n){t.exports=function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}},t.exports.default=t.exports,t.exports.__esModule=!0},{}],6:[function(e,t,n){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,n){t.exports=function(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)},t.exports.default=t.exports,t.exports.__esModule=!0},{}],8:[function(e,t,n){var o=e("./classApplyDescriptorGet.js"),i=e("./classExtractFieldDescriptor.js");t.exports=function(e,t){return t=i(e,t,"get"),o(e,t)},t.exports.default=t.exports,t.exports.__esModule=!0},{"./classApplyDescriptorGet.js":4,"./classExtractFieldDescriptor.js":7}],9:[function(e,t,n){var o=e("./classApplyDescriptorSet.js"),i=e("./classExtractFieldDescriptor.js");t.exports=function(e,t,n){return t=i(e,t,"set"),o(e,t,n),n},t.exports.default=t.exports,t.exports.__esModule=!0},{"./classApplyDescriptorSet.js":5,"./classExtractFieldDescriptor.js":7}],10:[function(e,t,n){t.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},t.exports.default=t.exports,t.exports.__esModule=!0},{}],11:[function(e,t,n){t.exports=function(e){return e&&e.__esModule?e:{default:e}},t.exports.default=t.exports,t.exports.__esModule=!0},{}],12:[function(e,t,n){function o(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=o=function(e){return typeof e}:t.exports=o=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,o(e)}t.exports=o,t.exports.default=t.exports,t.exports.__esModule=!0},{}],13:[function(e,t,n){var o;"undefined"==typeof Element||Element.prototype.matches||((o=Element.prototype).matches=o.matchesSelector||o.mozMatchesSelector||o.msMatchesSelector||o.oMatchesSelector||o.webkitMatchesSelector),t.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},{}],14:[function(e,t,n){var l=e("./closest");function r(e,t,n,o,i){var r=function(t,n,e,o){return function(e){e.delegateTarget=l(e.target,n),e.delegateTarget&&o.call(t,e)}}.apply(this,arguments);return e.addEventListener(n,r,i),{destroy:function(){e.removeEventListener(n,r,i)}}}t.exports=function(e,t,n,o,i){return"function"==typeof e.addEventListener?r.apply(null,arguments):"function"==typeof n?r.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return r(e,t,n,o,i)}))}},{"./closest":13}]},{},[3]);