1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[939],{49939(e,t,o){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function r(e,t,o){return(t=s(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function s(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var i=o.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}o.d(t,{default:()=>l});const l=function(){return e=function e(t){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r(this,"handleKeydown",function(e){"Escape"!==e.key&&27!==e.which||(o.closeModal(),o.$trigger.focus()),"Tab"===e.key&&document.activeElement===document.querySelector("#reset-button")&&(e.preventDefault(),console.log(o.$modalClose),o.$modalClose.focus())}),r(this,"handleKeyup",function(e){"Tab"===e.key&&e.shiftKey&&(document.activeElement===o.$modalClose&&(e.preventDefault(),document.querySelector("#reset-button").focus()),document.activeElement===document.querySelector("#reset-button")&&(e.preventDefault(),document.querySelector("#filter-button").focus()))}),this.$el=t,this.$trigger=this.$el.querySelector("#filters-open"),this.$modal=this.$el.querySelector(".map-content__filter-options-outer"),this.$modalClose=this.$el.querySelector(".map-content__filter-options-inner .close-icon"),this.setEventListeners()},t=[{key:"setEventListeners",value:function(){var e=this;this.$trigger&&this.$trigger.addEventListener("click",this.toggleModal.bind(this)),this.$modalClose&&this.$modalClose.addEventListener("click",this.closeModal.bind(this)),this.$modal&&this.$modal.addEventListener("click",function(t){t.target===e.$modal&&e.closeModal()})}},{key:"toggleModal",value:function(){this.$modal&&(this.$modal.classList.toggle("is-open"),this.$modal.classList.contains("is-open")?this.addEscEvent():this.removeEscEvent())}},{key:"openModal",value:function(){this.$modal&&(this.$modal.classList.add("is-open"),this.addEscEvent())}},{key:"closeModal",value:function(){this.$modal&&(this.$modal.classList.remove("is-open"),this.removeEscEvent())}},{key:"addEscEvent",value:function(){window.addEventListener("keydown",this.handleKeydown),window.addEventListener("keyup",this.handleKeyup)}},{key:"removeEscEvent",value:function(){window.removeEventListener("keydown",this.handleKeydown),window.removeEventListener("keyup",this.handleKeyup)}}],t&&i(e.prototype,t),o&&i(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,o}()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.