1"use strict";function _typeof(e){return(_typeof="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})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _createSuper(r){var o=_isNativeReflectConstruct();return function(){var e,t=_getPrototypeOf(r);return _possibleConstructorReturn(this,o?(e=_getPrototypeOf(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments))}}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _wrapNativeSuper(e){var r="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(e){if(null===e||!_isNativeFunction(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(t,e)})(e)}function _construct(e,t,r){return(_construct=_isNativeReflectConstruct()?Reflect.construct.bind():function(e,t,r){var o=[null];o.push.apply(o,t);t=new(Function.bind.apply(e,o));return r&&_setPrototypeOf(t,r.prototype),t}).apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"===_typeof(e)?e:String(e)}function _toPrimitive(e,t){if("object"!==_typeof(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}!function o(n,i,c){function s(t,e){if(!i[t]){if(!n[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(u)return u(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}r=i[t]={exports:{}},n[t][0].call(r.exports,function(e){return s(n[t][1][e]||e)},r,r.exports,o,n,i,c)}return i[t].exports}for(var u="function"==typeof require&&require,e=0;e<c.length;e++)s(c[e]);return s}({1:[function(e,t,r){customElements.get("c-gallery-zoom")||customElements.define("c-gallery-zoom",function(){_inherits(t,_wrapNativeSuper(HTMLElement));var e=_createSuper(t);function t(){var o;return _classCallCheck(this,t),_defineProperty(_assertThisInitialized(o=e.call(this)),"keydownListener",function(e){"ArrowLeft"===e.key&&o.sliderElement.swiper.slidePrev(),"ArrowRight"===e.key&&o.sliderElement.swiper.slideNext()}),_defineProperty(_assertThisInitialized(o),"sliderCloser",function(){document.removeEventListener("keydown",o.keydownListener),document.body.classList.remove("gallery-zoom-modal-active"),o.classList.remove("js-active")}),_defineProperty(_assertThisInitialized(o),"openAndScrollToSlide",function(e){+o.dataset.galleryIndex==+(1<arguments.length&&void 0!==arguments[1]?arguments[1]:1)&&o.classList.add("js-active"),document.body.classList.add("gallery-zoom-modal-active"),o.sliderElement.swiper.slideTo(e-1),document.addEventListener("keydown",o.keydownListener)}),_defineProperty(_assertThisInitialized(o),"setZoomLevel",function(e){var t=[1,1.32,1.64,2.28],r=(o.currentZoomIndex+1)%t.length;o.sliderElement.swiper.zoom.destroyed||(o.currentZoomIndex=r,o.sliderElement.swiper.zoom.out(),o.sliderElement.swiper.zoom.in(t[r]),e.setAttribute("data-zoom",o.currentZoomIndex))}),o}
1return _createClass(t,[{key:"connectedCallback",value:function(){var t=this;this.buttonCloser=this.querySelector(".js-gallery-zoom__closer"),this.sliderElement=this.querySelector(".js-gallery-zoom__slider"),this.zoomableImage=this.querySelectorAll(".swiper-zoom-container"),this.currentZoomIndex=0,this.openZoomUnsubscriber=window.PubSub.subscribe("open-zoom",function(e){setTimeout(function(){t.openAndScrollToSlide(e,1)},300)}),this.buttonCloser.addEventListener("click",this.sliderCloser),this.zoomableImage.forEach(function(e){e.addEventListener("click",function(){t.setZoomLevel(e)})})}},{key:"disconnectedCallback",value:function(){var t=this;this.buttonCloser.removeEventListener("click",this.sliderCloser),document.removeEventListener("keydown",this.keydownListener),this.zoomableImage.forEach(function(e){e.removeEventListener("click",function(){t.setZoomLevel(e)})}),this.openZoomUnsubscriber()}}]),t}())},{}]},{},[1]);
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.