1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["better-magnifier.plugin"],{923:(e,t,i)=>{i.r(t),i.d(t,{default:()=>w});var n=i(49),s=i(206);function o(e){return(o="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)}var h=("undefined"==typeof HTMLElement?"undefined":o(HTMLElement))==="object";function a(e){return h?e instanceof HTMLElement:e&&"object"===o(e)&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}function l(e,t){t.forEach(function(t){e.classList.add(t)})}function r(e,t){t.forEach(function(t){e.classList.remove(t)})}function c(){throw Error("Missing parameter")}function u(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var d=function(){var e,t;function i(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),this.isShowing=!1;var t=e.namespace,n=e.zoomFactor,s=void 0===n?c():n,o=e.containerEl,h=void 0===o?c():o;this.settings={namespace:void 0===t?null:t,zoomFactor:s,containerEl:h},this.openClasses=this._buildClasses("open"),this._buildElement()}return e=[{key:"_buildClasses",value:function(e){var t=["drift-".concat(e)],i=this.settings.namespace;return i&&t.push("".concat(i,"-").concat(e)),t}},{key:"_buildElement",value:function(){this.el=document.createElement("div"),l(this.el,this._buildClasses("bounding-box"))}},{key:"show",value:function(e,t){this.isShowing=!0,this.settings.containerEl.appendChild(this.el);var i=this.el.style;i.width="".concat(Math.round(e/this.settings.zoomFactor),"px"),i.height="".concat(Math.round(t/this.settings.zoomFactor),"px"),l(this.el,this.openClasses)}},{key:"hide",value:function(){this.isShowing&&this.settings.containerEl.removeChild(this.el),this.isShowing=!1,r(this.el,this.openClasses)}},{key:"setPosition",value:function(e,t,i){var n=window.pageXOffset,s=window.pageYOffset,o=i.left+e*i.width-this.el.clientWidth/2+n,h=i.top+t*i.height-this.el.clientHeight/2+s;o<i.left+n?o=i.left+n:o+this.el.clientWidth>i.left+i.width+n&&(o=i.left+i.width-this.el.clientWidth+n),h<i.top+s?h=i.top+s:h+this.el.clientHeight>i.top+i.height+s&&(h=i.top+i.height-this.el.clientHeight+s),this.el.style.left="".concat(o,"px"),this.el.style.top="".concat(h,"px")}}],u(i.prototype,e),t&&u(i,t),Object.defineProperty(i,"prototype",{writable:!1}),i}();function g(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var m=function(){var e,t;function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),this._show=this._show.bind(this),this._hide=this._hide.bind(this),this._handleEntry=this._handleEntry.bind(this),this._handleMovement=this._handleMovement.bind(this);var t=e.el,n=void 0===t?c():t,s=e.zoomPane,o=void 0===s?c():s,h=e.sourceAttribute,a=void 0===h?c():h,l=e.handleTouch,r=void 0===l?c():l,u=e.onShow,g=e.onHide,m=e.hoverDelay,v=e.touchDelay,f=e.hoverBoundingBox,p=void 0===f?c():f,y=e.touchBoundingBox,b=void 0===y?c():y,w=e.namespace,_=e.zoomFactor,E=void 0===_?c():_,C=e.boundingBoxContainer,B=void 0===C?c():C,z=e.passive;this.settings={el:n,zoomPane:o,sourceAttribute:a,handleTouch:r,onShow:void 0===u?null:u,onHide:void 0===g?null:g,hoverDelay:void 0===m?0:m,touchDelay:void 0===v?0:v,hoverBoundingBox:p,touchBoundingBox:b,namespace:void 0===w?null:w,zoomFactor:E,boundingBoxContainer:B,passive:void 0!==z&&z},(this.settings.hoverBoundingBox||this.settings.touchBoundingBox)&&(this.boundingBox=new d({namespace:this.settings.namespace,zoomFactor:this.settings.zoomFactor,containerEl:this.settings.boundingBoxContainer})),this.enabled=!0,this._bindEvents()}return e=[{key:"_preventDefault",value:function(e){e.preventDefault()}},{key:"_preventDefaultAllowTouchScroll",value:function(e){this.settings.touchDelay&&this._isTouchEvent(e)&&!this.isShowing||e.preventDefault()}},{key:"_isTouchEvent",value:function(e){return!!e.touches}},{key:"_bindEvents",value:function(){this.settings.el.addEventListener("mouseenter",this._handleEntry),this.settings.el.addEventListener("mouseleave",this._hide),this.settings.el.addEventListener("mousemove",this._handleMovement);var e={passive:this.settings.passive};this.settings.handleTouch?(this.settings.el.addEventListener("touchstart",this._handleEntry,e),this.settings.el.addEventListener("touchend",this._hide),this.settings.el.addEventListener("touchmove",this._handleMovement,e)):(this.settings.el.addEventListener("touchstart",this._preventDefault,e),this.settings.el.addEventListener("touchend",this._preventDefault),this.settings.el.addEventListener("touchmove",this._preventDefault,e))}},{key:"_unbindEvents",value:function(){this.settings.el.removeEventListener("mouseenter",this._handleEntry),this.settings.el.removeEventListener("mouseleave",this._hide),this.settings.el.removeEventListener("mousemove",this._handleMovement),this.settings.handleTouch?(this.settings.el.removeEventListener("touchstart",this._handleEntry),this.settings.el.removeEventListener("touchend",this._hide),this.settings.el.removeEventListener("touchmove",this._handleMovement)):(this.settings.el.removeEventListener("touchstart",this._preventDefault),this.settings.el.removeEventListener("touchend",this._preventDefault),this.settings.el.removeEventListener("touchmove",this._preventDefault))}},{key:"_handleEntry",value:function(e){this._preventDefaultAllowTouchScroll(e),this._lastMovement=e,"mouseenter"
1==e.type&&this.settings.hoverDelay?this.entryTimeout=setTimeout(this._show,this.settings.hoverDelay):this.settings.touchDelay?this.entryTimeout=setTimeout(this._show,this.settings.touchDelay):this._show()}},{key:"_show",value:function(){if(this.enabled){var e=this.settings.onShow;if(e&&"function"==typeof e&&e(),this.settings.zoomPane.show(this.settings.el.getAttribute(this.settings.sourceAttribute),this.settings.el.clientWidth,this.settings.el.clientHeight),this._lastMovement){var t=this._lastMovement.touches;(t&&this.settings.touchBoundingBox||!t&&this.settings.hoverBoundingBox)&&this.boundingBox.show(this.settings.zoomPane.el.clientWidth,this.settings.zoomPane.el.clientHeight)}this._handleMovement()}}},{key:"_hide",value:function(e){e&&this._preventDefaultAllowTouchScroll(e),this._lastMovement=null,this.entryTimeout&&clearTimeout(this.entryTimeout),this.boundingBox&&this.boundingBox.hide();var t=this.settings.onHide;t&&"function"==typeof t&&t(),this.settings.zoomPane.hide()}},{key:"_handleMovement",value:function(e){if(e)this._preventDefaultAllowTouchScroll(e),this._lastMovement=e;else{if(!this._lastMovement)return;e=this._lastMovement}if(e.touches){var t,i,n=e.touches[0];t=n.clientX,i=n.clientY}else t=e.clientX,i=e.clientY;var s=this.settings.el.getBoundingClientRect(),o=t-s.left,h=i-s.top,a=o/this.settings.el.clientWidth,l=h/this.settings.el.clientHeight;this.boundingBox&&this.boundingBox.setPosition(a,l,s),this.settings.zoomPane.setPosition(a,l,s)}},{key:"isShowing",get:function(){return this.settings.zoomPane.isShowing}}],g(i.prototype,e),t&&g(i,t),Object.defineProperty(i,"prototype",{writable:!1}),i}();function v(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var f=function(){var e,t;function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),this.HAS_ANIMATION=!1,"undefined"!=typeof document){var t=document.createElement("div").style;this.HAS_ANIMATION="animation"in t||"webkitAnimation"in t}this._completeShow=this._completeShow.bind(this),this._completeHide=this._completeHide.bind(this),this._handleLoad=this._handleLoad.bind(this),this.isShowing=!1;var n=e.container,s=e.zoomFactor,o=void 0===s?c():s,h=e.inline,a=void 0===h?c():h,l=e.namespace,r=e.showWhitespaceAtEdges,u=void 0===r?c():r,d=e.containInline,g=void 0===d?c():d,m=e.inlineOffsetX,v=e.inlineOffsetY,f=e.inlineContainer,p=void 0===f?document.body:f;this.settings={container:void 0===n?null:n,zoomFactor:o,inline:a,namespace:void 0===l?null:l,showWhitespaceAtEdges:u,containInline:g,inlineOffsetX:void 0===m?0:m,inlineOffsetY:void 0===v?0:v,inlineContainer:p},this.openClasses=this._buildClasses("open"),this.openingClasses=this._buildClasses("opening"),this.closingClasses=this._buildClasses("closing"),this.inlineClasses=this._buildClasses("inline"),this.loadingClasses=this._buildClasses("loading"),this._buildElement()}return e=[{key:"_buildClasses",value:function(e){var t=["drift-".concat(e)],i=this.settings.namespace;return i&&t.push("".concat(i,"-").concat(e)),t}},{key:"_buildElement",value:function(){this.el=document.createElement("div"),l(this.el,this._buildClasses("zoom-pane"));var e=document.createElement("div");l(e,this._buildClasses("zoom-pane-loader")),this.el.appendChild(e),this.imgEl=document.createElement("img"),this.el.appendChild(this.imgEl)}},{key:"_setImageURL",value:function(e){this.imgEl.setAttribute("src",e)}},{key:"_setImageSize",value:function(e,t){this.imgEl.style.width="".concat(e*this.settings.zoomFactor,"px"),this.imgEl.style.height="".concat(t*this.settings.zoomFactor,"px")}},{key:"setPosition",value:function(e,t,i){var n=this.imgEl.offsetWidth,s=this.imgEl.offsetHeight,o=this.el.offsetWidth,h=this.el.offsetHeight,a=o/2-n*e,l=h/2-s*t,r=o-n,c=h-s,u=r>0,d=c>0,g=u?r/2:0,m=d?c/2:0,v=u?r/2:r,f=d?c/2:c;if(this.el.parentElement===this.settings.inlineContainer){var p=window.pageXOffset,y=window.pageYOffset,b=i.left+e*i.width-o/2+this.settings.inlineOffsetX+p,w=i.top+t*i.height-h/2+this.settings.inlineOffsetY+y;
1this.settings.containInline&&(b<i.left+p?b=i.left+p:b+o>i.left+i.width+p&&(b=i.left+i.width-o+p),w<i.top+y?w=i.top+y:w+h>i.top+i.height+y&&(w=i.top+i.height-h+y)),this.el.style.left="".concat(b,"px"),this.el.style.top="".concat(w,"px")}!this.settings.showWhitespaceAtEdges&&(a>g?a=g:a<v&&(a=v),l>m?l=m:l<f&&(l=f)),this.imgEl.style.transform="translate(".concat(a,"px, ").concat(l,"px)"),this.imgEl.style.webkitTransform="translate(".concat(a,"px, ").concat(l,"px)")}},{key:"_removeListenersAndResetClasses",value:function(){this.el.removeEventListener("animationend",this._completeShow),this.el.removeEventListener("animationend",this._completeHide),this.el.removeEventListener("webkitAnimationEnd",this._completeShow),this.el.removeEventListener("webkitAnimationEnd",this._completeHide),r(this.el,this.openClasses),r(this.el,this.closingClasses)}},{key:"show",value:function(e,t,i){this._removeListenersAndResetClasses(),this.isShowing=!0,l(this.el,this.openClasses),this.imgEl.getAttribute("src")!=e&&(l(this.el,this.loadingClasses),this.imgEl.addEventListener("load",this._handleLoad),this._setImageURL(e)),this._setImageSize(t,i),this._isInline?this._showInline():this._showInContainer(),this.HAS_ANIMATION&&(this.el.addEventListener("animationend",this._completeShow),this.el.addEventListener("webkitAnimationEnd",this._completeShow),l(this.el,this.openingClasses))}},{key:"_showInline",value:function(){this.settings.inlineContainer.appendChild(this.el),l(this.el,this.inlineClasses)}},{key:"_showInContainer",value:function(){this.settings.container.appendChild(this.el)}},{key:"hide",value:function(){this._removeListenersAndResetClasses(),this.isShowing=!1,this.HAS_ANIMATION?(this.el.addEventListener("animationend",this._completeHide),this.el.addEventListener("webkitAnimationEnd",this._completeHide),l(this.el,this.closingClasses)):(r(this.el,this.openClasses),r(this.el,this.inlineClasses))}},{key:"_completeShow",value:function(){this.el.removeEventListener("animationend",this._completeShow),this.el.removeEventListener("webkitAnimationEnd",this._completeShow),r(this.el,this.openingClasses)}},{key:"_completeHide",value:function(){this.el.removeEventListener("animationend",this._completeHide),this.el.removeEventListener("webkitAnimationEnd",this._completeHide),r(this.el,this.openClasses),r(this.el,this.closingClasses),r(this.el,this.inlineClasses),this.el.style.left="",this.el.style.top="",this.el.parentElement===this.settings.container?this.settings.container.removeChild(this.el):this.el.parentElement===this.settings.inlineContainer&&this.settings.inlineContainer.removeChild(this.el)}},{key:"_handleLoad",value:function(){this.imgEl.removeEventListener("load",this._handleLoad),r(this.el,this.loadingClasses)}},{key:"_isInline",get:function(){var e=this.settings.inline;return!0===e||"number"==typeof e&&window.innerWidth<=e}}],v(i.prototype,e),t&&v(i,t),Object.defineProperty(i,"prototype",{writable:!1}),i}();function p(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var y=function(){var e;function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this.VERSION="1.5.1",this.triggerEl=e,this.destroy=this.destroy.bind(this),!a(this.triggerEl))throw TypeError("`new Drift` requires a DOM element as its first argument.");var n=i.namespace||null,s=i.showWhitespaceAtEdges||!1,o=i.containInl
1ine||!1,h=i.inlineOffsetX||0,l=i.inlineOffsetY||0,r=i.inlineContainer||document.body,c=i.sourceAttribute||"data-zoom",u=i.zoomFactor||3,d=void 0===i.paneContainer?document.body:i.paneContainer,g=i.inlinePane||375,m=!("handleTouch"in i)||!!i.handleTouch,v=i.onShow||null,f=i.onHide||null,p=!("injectBaseStyles"in i)||!!i.injectBaseStyles,y=i.hoverDelay||0,b=i.touchDelay||0,w=i.hoverBoundingBox||!1,_=i.touchBoundingBox||!1,E=i.boundingBoxContainer||document.body,C=i.passive||!1;if(!0!==g&&!a(d))throw TypeError("`paneContainer` must be a DOM element when `inlinePane !== true`");if(!a(r))throw TypeError("`inlineContainer` must be a DOM element");this.settings={namespace:n,showWhitespaceAtEdges:s,containInline:o,inlineOffsetX:h,inlineOffsetY:l,inlineContainer:r,sourceAttribute:c,zoomFactor:u,paneContainer:d,inlinePane:g,handleTouch:m,onShow:v,onHide:f,injectBaseStyles:p,hoverDelay:y,touchDelay:b,hoverBoundingBox:w,touchBoundingBox:_,boundingBoxContainer:E,passive:C},this.settings.injectBaseStyles&&function(){if(!document.querySelector(".drift-base-styles")){var e=document.createElement("style");e.type="text/css",e.classList.add("drift-base-styles"),e.appendChild(document.createTextNode(".drift-bounding-box,.drift-zoom-pane{position:absolute;pointer-events:none}@keyframes noop{0%{zoom:1}}@-webkit-keyframes noop{0%{zoom:1}}.drift-zoom-pane.drift-open{display:block}.drift-zoom-pane.drift-closing,.drift-zoom-pane.drift-opening{animation:noop 1ms;-webkit-animation:noop 1ms}.drift-zoom-pane{overflow:hidden;width:100%;height:100%;top:0;left:0}.drift-zoom-pane-loader{display:none}.drift-zoom-pane img{position:absolute;display:block;max-width:none;max-height:none}"));var t=document.head;t.insertBefore(e,t.firstChild)}}(),this._buildZoomPane(),this._buildTrigger()}return p(t.prototype,[{key:"_buildZoomPane",value:function(){this.zoomPane=new f({container:this.settings.paneContainer,zoomFactor:this.settings.zoomFactor,showWhitespaceAtEdges:this.settings.showWhitespaceAtEdges,containInline:this.settings.containInline,inline:this.settings.inlinePane,namespace:this.settings.namespace,inlineOffsetX:this.settings.inlineOffsetX,inlineOffsetY:this.settings.inlineOffsetY,inlineContainer:this.settings.inlineContainer})}},{key:"_buildTrigger",value:function(){this.trigger=new m({el:this.triggerEl,zoomPane:this.zoomPane,handleTouch:this.settings.handleTouch,onShow:this.settings.onShow,onHide:this.settings.onHide,sourceAttribute:this.settings.sourceAttribute,hoverDelay:this.settings.hoverDelay,touchDelay:this.settings.touchDelay,hoverBoundingBox:this.settings.hoverBoundingBox,touchBoundingBox:this.settings.touchBoundingBox,namespace:this.settings.namespace,zoomFactor:this.settings.zoomFactor,boundingBoxContainer:this.settings.boundingBoxContainer,passive:this.settings.passive})}},{key:"setZoomImageURL",value:function(e){this.zoomPane._setImageURL(e)}},{key:"disable",value:function(){this.trigger.enabled=!1}},{key:"enable",value:function(){this.trigger.enabled=!0}},{key:"destroy",value:function(){this.trigger._hide(),this.trigger._unbindEvents()}},{key:"isShowing",get:function(){return this.zoomPane.isShowing}},{key:"zoomFactor",get:function(){return this.settings.zoomFactor},set:function(e){this.settings.zoomFactor=e,this.zoomPane.settings.zoomFactor=e,this.trigger.settings.zoomFactor=e,this.boundingBox.settings.zoomFactor=e}}]),e&&p(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}();Object.defineProperty(y.prototype,"isShowing",{get:function(){return this.isShowing}}),Object.defineProperty(y.prototype,"zoomFactor",{get:function(){return this.zoomFactor},set:function(e){this.zoomFactor=e}}),y.prototype.setZoomImageURL=y.prototype.setZoomImageURL,y.prototype.disable=y.prototype.disable,y.prototype.enable=y.prototype.enable,y.prototype.destroy=y.prototype.destroy;let b=window.PluginBaseClass;class w extends b{init(){s.Z.isTouchDevice()||this.options.imageSelectors.forEach(e=>{this.handleImagesBySelector(e)})}_initializeDrift(e,t){new y(e,{paneContainer:t,zoomFactor:this.options.zoomFactor,touchDelay:this.options.touchDelay,sourceAttribute:this.options.sourceAttribute,inlineOffsetX:this.options.inlineOffsetX,inlineOffsetY:this.options.inlineOffsetY})}handleImagesBySelector(e){let t=n.Z.querySelectorAll(this.el,e,!1);
1t&&0!==t.length&&t.forEach(e=>{let t=n.Z.querySelector(e,"img");t.complete?this._initializeDrift(t,e):t.onload=()=>this._initializeDrift(t,e)})}}w.options={zoomFactor:2,touchDelay:0,hoverDelay:0,inlineOffsetX:0,inlineOffsetY:0,sourceAttribute:"data-full-image",imageSelectors:[".gallery-slider-single-image",".gallery-item"]}},206:(e,t,i)=>{i.d(t,{Z:()=>n});class n{static isTouchDevice(){return"ontouchstart"in document.documentElement}static isIOSDevice(){return n.isIPhoneDevice()||n.isIPadDevice()}static isNativeWindowsBrowser(){return n.isIEBrowser()||n.isEdgeBrowser()}static isIPhoneDevice(){return!!navigator.userAgent.match(/iPhone/i)}static isIPadDevice(){return!!navigator.userAgent.match(/iPad/i)}static isIEBrowser(){return -1!==navigator.userAgent.toLowerCase().indexOf("msie")||!!navigator.userAgent.match(/Trident.*rv:\d+\./)}static isEdgeBrowser(){return!!navigator.userAgent.match(/Edge\/\d+/i)}static getList(){return{"is-touch":n.isTouchDevice(),"is-ios":n.isIOSDevice(),"is-native-windows":n.isNativeWindowsBrowser(),"is-iphone":n.isIPhoneDevice(),"is-ipad":n.isIPadDevice(),"is-ie":n.isIEBrowser(),"is-edge":n.isEdgeBrowser()}}}}}]);
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.