1!function(){function t(e,i,n){function s(r,a){if(!i[r]){if(!e[r]){var l="function"==typeof require&&require;if(!a&&l)return l(r,!0);if(o)return o(r,!0);var c=new Error("Cannot find module '"+r+"'");throw c.code="MODULE_NOT_FOUND",c}var u=i[r]={exports:{}};e[r][0].call(u.exports,function(t){var i=e[r][1][t];return s(i||t)},u,u.exports,t,e,i,n)}return i[r].exports}for(var o="function"==typeof require&&require,r=0;r<n.length;r++)s(n[r]);return s}return t}()({1:[function(t,e,i){function n(t,e,i){function n(){var c=Date.now()-a;e>c&&c>=0?s=setTimeout(n,e-c):(s=null,i||(l=t.apply(r,o),r=o=null))}var s,o,r,a,l;null==e&&(e=100);var c=function(){r=this,o=arguments,a=Date.now();var c=i&&!s;return s||(s=setTimeout(n,e)),c&&(l=t.apply(r,o),r=o=null),l};return c.clear=function(){s&&(clearTimeout(s),s=null)},c.flush=function(){s&&(l=t.apply(r,o),r=o=null,clearTimeout(s),s=null)},c}n.debounce=n,e.exports=n},{}],2:[function(t,e,i){!function(t,i){"function"==typeof define&&define.amd?define(i):"object"==typeof e&&e.exports?e.exports.Dragdealer=i():t.Dragdealer=i()}(this,function(){function t(t){var e="Webkit Moz ms O".split(" "),i=document.documentElement.style;if(void 0!==i[t])return t;t=t.charAt(0).toUpperCase()+t.substr(1);for(var n=0;n<e.length;n++)if(void 0!==i[e[n]+t])return e[n]+t}function e(t){u.backfaceVisibility&&u.perspective&&(t.style[u.perspective]="1000px",t.style[u.backfaceVisibility]="hidden")}var i=function(t,e){this.options=this.applyDefaults(e||{}),this.bindMethods(),this.wrapper=this.getWrapperElement(t),this.wrapper&&(this.handle=this.getHandleElement(this.wrapper,this.options.handleClass),this.handle&&(this.init(),this.bindEventListeners()))};i.prototype={defaults:{disabled:!1,horizontal:!0,vertical:!1,slide:!0,steps:0,snap:!1,loose:!1,speed:.1,xPrecision:0,yPrecision:0,handleClass:"handle",css3:!0,activeClass:"active",tapping:!0},init:function(){this.options.css3&&e(this.handle),this.value={prev:[-1,-1],current:[this.options.x||0,this.options.y||0],target:[this.options.x||0,this.options.y||0]},this.offset={wrapper:[0,0],mouse:[0,0],prev:[-999999,-999999],current:[0,0],target:[0,0]},this.dragStartPosition={x:0,y:0},this.change=[0,0],this.stepRatios=this.calculateStepRatios(),this.activity=!1,this.dragging=!1,this.tapping=!1,this.reflow(),this.options.disabled&&this.disable()},applyDefaults:function(t){for(var e in this.defaults)t.hasOwnProperty(e)||(t[e]=this.defaults[e]);return t},getWrapperElement:function(t){return"string"==typeof t?document.getElementById(t):t},getHandleElement:function(t,e){var i,n,s;if(t.getElementsByClassName){if(i=t.getElementsByClassName(e),i.length>0)return i[0]}else for(n=new RegExp("(^|\\s)"+e+"(\\s|$)"),i=t.getElementsByTagName("*"),s=0;s<i.length;s++)if(n.test(i[s].className))return i[s]},calculateStepRatios:function(){var t=[];if(this.options.steps>=1)for(var e=0;e<=this.options.steps-1;e++)this.options.steps>1?t[e]=e/(this.options.steps-1):t[e]=0;return t},setWrapperOffset:function(){this.offset.wrapper=c.get(this.wrapper)},calculateBounds:function(){var t={top:this.options.top||0,bottom:-(this.options.bottom||0)+this.wrapper.offsetHeight,left:this.options.left||0,right:-(this.options.right||0)+this.wrapper.offsetWidth};return t.availWidth=t.right-t.left-this.handle.offsetWidth,t.availHeight=t.bottom-t.top-this.handle.offsetHeight,t},calculateValuePrecision:function(){var t=this.options.xPrecision||Math.abs(this.bounds.availWidth),e=this.options.yPrecision||Math.abs(this.bounds.availHeight);return[t?1/t:0,e?1/e:0]},bindMethods:function(){"function"==typeof this.options.customRequestAnimationFrame?this.requestAnimationFrame=n(this.options.customRequestAnimationFrame,window):this.requestAnimationFrame=n(d,window),"function"==typeof this.options.customCancelAnimationFrame?this.cancelAnimationFrame=n(this.options.customCancelAnimationFrame,window):this.cancelAnimationFrame=n(f,window),this.animateWithRequestAnimationFrame=n(this.animateWithRequestAnimationFrame,this),this.animate=n(this.animate,this),this.onHandleMouseDown=n(this.onHandleMouseDown,this),this.onHandleTouchStart=n(this.onHandleTouchStart,this),this.onDocumentMouseMove=n(this.onDocumentMouseMove,this),this.onWrapperTouchMove=n(this.onWrapperTouchMove,this),this.onWrapperMouseDown=n(this.onWrapperMouseDown,this),this.onWrapperTouchStart=n(this.onWrapperTouchStart,this),this.onDocumentMouseUp=n(this.onDocumentMouseUp,this),this.onDocumentTouchEnd=n(this.onDocumentTouchEnd,this),this.onHandleClick=n(this.onHandleClick,this),this.onWindowResize=n(this.onWindowResize,this)},bindEventListeners:function(){s(this.handle,"mousedown",this.onHandleMouseDown),s(this.handle,"touchstart",this.onHandleTouchStart),s(document,"mousemove",this.onDocumentMouseMove),s(this.wrapper,"touchmove",this.onWrapperTouchMove),s(this.wrapper,"mousedown",this.onWrapperMouseDown),s(this.wrapper,"touchstart",this.onWrapperTouchStart),s(document,"mouseup",this.onDocumentMouseUp),s(document,"touchend",this.onDocumentTouchEnd),s(this.handle,"click",this.onHandleClick),s(window,"resize",this.onWindowResize),this.animate(!1,!0),this.interval=this.requestAnimationFrame(this.animateWithRequestAnimationFrame)},unbindEventListeners:function(){o(this.handle,"mousedown",this.onHandleMouseDown),o(this.handle,"touchstart",this.onHandleTouchStart),o(document,"mousemove",this.onDocumentMouseMove),o(this.wrapper,"touchmove",this.onWrapperTouchMove),o(this.wrapper,"mousedown",this.onWrapperMouseDown),o(this.wrapper,"touchstart",this.onWrapperTouchStart),o(document,"mouseup",this.onDocumentMouseUp),o(document,"touchend",this.onDocumentTouchEnd),o(this.handle,"click",this.onHandleClick),o(window,"resize",this.onWindowResize),this.cancelAnimationFrame(this.interval)},onHandleMouseDown:function(t){l.refresh(t),r(t),a(t),this.activity=!1,this.startDrag()},onHandleTouchStart:function(t){l.refresh(t),a(t),this.activity=!1,this.startDrag()},onDocumentMouseMove:function(t){(t.clientX-this.dragStartPosition.x!==0||t.clientY-this.dragStartPosition.y!==0)&&(l.refresh(t),this.dragging&&(this.activity=!0,r(t)))},onWrapperTouchMove:function(t){return l.refresh(t),!this.activity&&this.draggingOnDisabledAxis()?void(this.dragging&&this.stopDrag(
1)):(r(t),void(this.activity=!0))},onWrapperMouseDown:function(t){l.refresh(t),r(t),this.startTap()},onWrapperTouchStart:function(t){l.refresh(t),r(t),this.startTap()},onDocumentMouseUp:function(t){this.stopDrag(),this.stopTap()},onDocumentTouchEnd:function(t){this.stopDrag(),this.stopTap()},onHandleClick:function(t){this.activity&&(r(t),a(t))},onWindowResize:function(t){this.reflow()},enable:function(){this.disabled=!1,this.handle.className=this.handle.className.replace(/\s?disabled/g,"")},disable:function(){this.disabled=!0,this.handle.className+=" disabled"},reflow:function(){this.setWrapperOffset(),this.bounds=this.calculateBounds(),this.valuePrecision=this.calculateValuePrecision(),this.updateOffsetFromValue()},getStep:function(){return[this.getStepNumber(this.value.target[0]),this.getStepNumber(this.value.target[1])]},getStepWidth:function(){return Math.abs(this.bounds.availWidth/this.options.steps)},getValue:function(){return this.value.target},setStep:function(t,e,i){this.setValue(this.options.steps&&t>1?(t-1)/(this.options.steps-1):0,this.options.steps&&e>1?(e-1)/(this.options.steps-1):0,i)},setValue:function(t,e,i){this.setTargetValue([t,e||0]),i&&(this.groupCopy(this.value.current,this.value.target),this.updateOffsetFromValue(),this.callAnimationCallback())},startTap:function(){if(!this.disabled&&this.options.tapping)if(this.tapping=!0,this.setWrapperOffset(),this.options.snap&&this.options.steps){var t=(l.x-this.offset.wrapper[0])/this.bounds.availWidth,e=(l.y-this.offset.wrapper[1])/this.bounds.availHeight;this.setValue(this.getClosestStep(t),this.getClosestStep(e),!0)}else this.setTargetValueByOffset([l.x-this.offset.wrapper[0]-this.handle.offsetWidth/2,l.y-this.offset.wrapper[1]-this.handle.offsetHeight/2])},stopTap:function(){!this.disabled&&this.tapping&&(this.tapping=!1,this.setTargetValue(this.value.current))},startDrag:function(){this.disabled||(this.dragging=!0,this.setWrapperOffset(),this.dragStartPosition={x:l.x,y:l.y},this.offset.mouse=[l.x-c.get(this.handle)[0],l.y-c.get(this.handle)[1]],this.wrapper.className.match(this.options.activeClass)||(this.wrapper.className+=" "+this.options.activeClass),this.callDragStartCallback())},stopDrag:function(){if(!this.disabled&&this.dragging){this.dragging=!1;var t=0===this.bounds.availWidth?0:(l.x-this.dragStartPosition.x)/this.bounds.availWidth,e=0===this.bounds.availHeight?0:(l.y-this.dragStartPosition.y)/this.bounds.availHeight,i=[t,e],n=this.groupClone(this.value.current);if(this.options.slide){var s=this.change;n[0]+=4*s[0],n[1]+=4*s[1]}this.setTargetValue(n),this.wrapper.className=this.wrapper.className.replace(" "+this.options.activeClass,""),this.callDragStopCallback(i)}}
1,callAnimationCallback:function(){var t=this.value.current;this.options.snap&&this.options.steps>1&&(t=this.getClosestSteps(t)),this.groupCompare(t,this.value.prev)||("function"==typeof this.options.animationCallback&&this.options.animationCallback.call(this,t[0],t[1]),this.groupCopy(this.value.prev,t))},callTargetCallback:function(){"function"==typeof this.options.callback&&this.options.callback.call(this,this.value.target[0],this.value.target[1])},callDragStartCallback:function(){"function"==typeof this.options.dragStartCallback&&this.options.dragStartCallback.call(this,this.value.target[0],this.value.target[1])},callDragStopCallback:function(t){"function"==typeof this.options.dragStopCallback&&this.options.dragStopCallback.call(this,this.value.target[0],this.value.target[1],t)},animateWithRequestAnimationFrame:function(t){t?(this.timeOffset=this.timeStamp?t-this.timeStamp:0,this.timeStamp=t):this.timeOffset=25,this.animate(),this.interval=this.requestAnimationFrame(this.animateWithRequestAnimationFrame)},animate:function(t,e){if(!t||this.dragging){if(this.dragging){var i=this.groupClone(this.value.target),n=[l.x-this.offset.wrapper[0]-this.offset.mouse[0],l.y-this.offset.wrapper[1]-this.offset.mouse[1]];this.setTargetValueByOffset(n,this.options.loose),this.change=[this.value.target[0]-i[0],this.value.target[1]-i[1]]}(this.dragging||e)&&this.groupCopy(this.value.current,this.value.target),(this.dragging||this.glide()||e)&&(this.updateOffsetFromValue(),this.callAnimationCallback())}},glide:function(){var t=[this.value.target[0]-this.value.current[0],this.value.target[1]-this.value.current[1]];return t[0]||t[1]?(Math.abs(t[0])>this.valuePrecision[0]||Math.abs(t[1])>this.valuePrecision[1]?(this.value.current[0]+=t[0]*Math.min(this.options.speed*this.timeOffset/25,1),this.value.current[1]+=t[1]*Math.min(this.options.speed*this.timeOffset/25,1)):this.groupCopy(this.value.current,this.value.target),!0):!1},updateOffsetFromValue:function(){this.options.snap?this.offset.current=this.getOffsetsByRatios(this.getClosestSteps(this.value.current)):this.offset.current=this.getOffsetsByRatios(this.value.current),this.groupCompare(this.offset.current,this.offset.prev)||(this.renderHandlePosition(),this.groupCopy(this.offset.prev,this.offset.current))},renderHandlePosition:function(){var t="";return this.options.css3&&u.transform?(this.options.horizontal&&(t+="translateX("+this.offset.current[0]+"px)"),this.options.vertical&&(t+=" translateY("+this.offset.current[1]+"px)"),void(this.handle.style[u.transform]=t)):(this.options.horizontal&&(this.handle.style.left=this.offset.current[0]+"px"),void(this.options.vertical&&(this.handle.style.top=this.offset.current[1]+"px")))},setTargetValue:function(t,e){var i=e?this.getLooseValue(t):this.getProperValue(t);this.groupCopy(this.value.target,i),this.offset.target=this.getOffsetsByRatios(i),this.callTargetCallback()},setTargetValueByOffset:function(t,e){var i=this.getRatiosByOffsets(t),n=e?this.getLooseValue(i):this.getProperValue(i);this.groupCopy(this.value.target,n),this.offset.target=this.getOffsetsByRatios(n)},getLooseValue:function(t){var e=this.getProperValue(t);return[e[0]+(t[0]-e[0])/4,e[1]+(t[1]-e[1])/4]},getProperValue:function(t){var e=this.groupClone(t);return e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0),e[0]=Math.min(e[0],1),e[1]=Math.min(e[1],1),(!this.dragging&&!this.tapping||this.options.snap)&&this.options.steps>1&&(e=this.getClosestSteps(e)),e},getRatiosByOffsets:function(t){return[this.getRatioByOffset(t[0],this.bounds.availWidth,this.bounds.left),this.getRatioByOffset(t[1],this.bounds.availHeight,this.bounds.top)]},getRatioByOffset:function(t,e,i){return e?(t-i)/e:0},getOffsetsByRatios:function(t){return[this.getOffsetByRatio(t[0],this.bounds.availWidth,this.bounds.left),this.getOffsetByRatio(t[1],this.bounds.availHeight,this.bounds.top)]},getOffsetByRatio:function(t,e,i){return Math.round(t*e)+i},getStepNumber:function(t){return this.getClosestStep(t)*(this.options.steps-1)+1},getClosestSteps:function(t){return[this.getClosestStep(t[0]),this.getClosestStep(t[1])]},getClosestStep:function(t){for(var e=0,i=1,n=0;n<=this.options.steps-1;n++)Math.abs(this.stepRatios[n]-t)<i&&(i=Math.abs(this.stepRatios[n]-t),e=n);return this.stepRatios[e]},groupCompare:function(t,e){return t[0]==e[0]&&t[1]==e[1]},groupCopy:function(t,e){t[0]=e[0],t[1]=e[1]},groupClone:function(t){return[t[0],t[1]]},draggingOnDisabledAxis:function(){return!this.options.horizontal&&l.xDiff>l.yDiff||!this.options.vertical&&l.yDiff>l.xDiff}};for(var n=function(t,e){return function(){return t.apply(e,arguments)}}
1,s=function(t,e,i){t.addEventListener?t.addEventListener(e,i,!1):t.attachEvent&&t.attachEvent("on"+e,i)},o=function(t,e,i){t.removeEventListener?t.removeEventListener(e,i,!1):t.detachEvent&&t.detachEvent("on"+e,i)},r=function(t){t||(t=window.event),t.preventDefault&&t.preventDefault(),t.returnValue=!1},a=function(t){t||(t=window.event),t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0},l={x:0,y:0,xDiff:0,yDiff:0,refresh:function(t){t||(t=window.event),"mousemove"==t.type?this.set(t):t.touches&&this.set(t.touches[0])},set:function(t){var e=this.x,i=this.y;t.clientX||t.clientY?(this.x=t.clientX,this.y=t.clientY):(t.pageX||t.pageY)&&(this.x=t.pageX-document.body.scrollLeft-document.documentElement.scrollLeft,this.y=t.pageY-document.body.scrollTop-document.documentElement.scrollTop),this.xDiff=Math.abs(this.x-e),this.yDiff=Math.abs(this.y-i)}},c={get:function(t){var e={left:0,top:0};return void 0!==t.getBoundingClientRect&&(e=t.getBoundingClientRect()),[e.left,e.top]}},u={transform:t("transform"),perspective:t("perspective"),backfaceVisibility:t("backfaceVisibility")},h=["webkit","moz"],d=window.requestAnimationFrame,f=window.cancelAnimationFrame,p=0;p<h.length&&!d;++p)d=window[h[p]+"RequestAnimationFrame"],f=window[h[p]+"CancelAnimationFrame"]||window[h[p]+"CancelRequestAnimationFrame"];return d||(d=function(t){return setTimeout(t,25)},f=clearTimeout),i})},{}],3:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t,e,i){return e&&s(t.prototype,e),i&&s(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}var r=function(){function t(){n(this,t),this.main="",this.thumbnails=""}return o(t,[{key:"loadSplideScript",value:function(){var t=this,e=document.createElement("script");e.src="/content/plugins/etna-photo-gallery/vendor/splide-4.1.3/dist/js/splide.min.js",e.setAttribute("defer","defer"),e.addEventListener("load",function(){window.Splide=window.Splide||Splide,t.onScriptLoad()},!1),document.body.appendChild(e)}},{key:"onScriptLoad",value:function(){var t=this;this.genSliders(),this.resizer(),this.quasiLightBox(),document.addEventListener("keyup",function(e){t.keyPressEvents(e)})}},{key:"genSliders",value:function(){function t(){var t=document.querySelector("#case-views-thumbnails .case-view-thumbs"),e=document.querySelectorAll("#case-views-thumbnails .splide__slide .thumbnail-image");if(t&&e.length>1){var i=this.thumbnails.index,n=(i+1)%e.length,s=e[i].offsetHeight,o=e[n].offsetHeight,r="".concat(s+o+20,"px");t.style.maxHeight=r,this.thumbnails.go(i)}}var e,i,n=this,s={main:(null===(e=this.main)||void 0===e?void 0:e.index)||0,thumbnails:(null===(i=this.thumbnails)||void 0===i?void 0:i.index)||0};this.main&&this.main.destroy(),this.thumbnails&&this.thumbnails.destroy();var o=document.querySelectorAll("#case-views-focus .case-view .splide__slide"),r=o.length;this.main=new Splide("#case-views-focus .case-view",{start:s.main,type:"fade",height:"100%",width:"100%",pagination:!1,keyboard:!0,arrows:r>1,cover:!0,rewind:!0});var a={start:s.thumbnails,height:"100%",heightRatio:1,autoHeight:!0,arrows:r>2,direction:"ttb",isNavigation:!0,pagination:!1,keyboard:!0,perPage:2,perMove:2,focus:0,trimSpace:!1,updateOnMove:!0,speed:400,dragMinThreshold:{mouse:4,touch:10}};r>1&&(a.type="loop"),this.thumbnails=new Splide("#case-views-thumbnails .case-view-thumbs",a),this.main.sync(this.thumbnails),this.main.mount(),this.thumbnails.mount(),this.main.on("moved",function(){t.call(n),n.setFocusHeight()}),this.thumbnails.on("moved",function(){t.call(n),n.setFocusHeight()}),t.call(this),this.setFocusHeight()}},{key:"setFocusHeight",value:function(){var t=document.querySelector("#case-views-focus .case-view"),e=document.querySelector("#case-views-focus .case-view .splide__slide.is-active .case-view-image");if(t&&e){var i=e.offsetHeight;t.style.height="".concat(i,"px")}}},{key:"resizer",value:function(){var t=this,e=function(t,e){var i=null;return function(){for(var n=arguments.length,s=new Array(n),o=0;n>o;o++)s[o]=arguments[o];window.clearTimeout(i),i=window.setTimeout(function(){t.apply(null,s)},e)}},i=e(function(e){t.genSliders()},50);window.addEventListener("resize",i)}},{key:"quasiLightBox",value:function(){var t=this,e=document.querySelector(".custom-lightbox__btn");e&&e.addEventListener("click",function(e){var i=e.target.closest(".case-view");i&&(i.classList.contains("fullscreen")?(i.classList.remove("fullscreen"),t.setFocusHeight()):i.classList.add("fullscreen"))})}},{key:"keyPressEvents",value:function(t){var e=document.querySelector(".custom-lightbox__btn");if(e&&("Escape"==t.key||"f"==t.key))if(t.preventDefault(),"Escape"!==t.key)e.click();else{var i=t.target.closest(".case-view");i&&i.classList.contains("fullscreen")&&e.click()}}},{key:"init",value:function(){this.loadSplideScript()}}]),t}();e.exports=r},{}
1],4:[function(t,e,i){"use strict";function n(){if(null!==o("adult_nag_warning"))return!0;if(s()){var t=new Date;return t.setTime(t.getTime()+6048e5),document.cookie="adult_nag_warning=has_agreed;path=/;expires="+t.toGMTString(),!0}return!1}function s(){return confirm("This category contains nudity. Please click OK to confirm you are at least 18 years of age and are not offended by such material.")}function o(t){var e=document.cookie.match(new RegExp("(^| )"+t+"=([^;]+)"));return e?e[2]:null}window.vanilla_lazyLoad=t("./lib/vanilla-lazyload/dist/lazyload.js"),window.ShowcaseSlider=t("./lib/showcase-slider/ShowcaseSlider")["default"],Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){var e=this;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null});var r=document.querySelectorAll(".gallery-adult-link");if(r)for(var a=function(t){n()||t&&(t.preventDefault(),t.stopImmediatePropagation())},l=0;l<r.length;++l){var c=r[l];c.addEventListener("click",a),c.addEventListener("touch",a)}if(document.body.classList.contains("eii-gallery")){var u=document.querySelectorAll(".search-back-to-results");if(u)var a=function(t){return t&&t.preventDefault(),"function"!=typeof window.history.back?window.history.go(-1):window.history.back(),!0}}if(document.body.classList.contains("eii-gallery")){var h=document.querySelector("#gallery-account-menu > a.account");h&&(h.addEventListener("touchstart",function(t){t&&(t.preventDefault(),t.stopImmediatePropagation()),h.classList.contains("touched")?window.location=h.getAttribute("href"):h.classList.add("touched")}),document.addEventListener("touchstart",function(t){t&&document.getElementById("gallery-account-menu").contains(t.target)&&h.classList.remove("touched")}))}if(document.body.classList.contains("eii-gallery-category")||document.body.classList.contains("eii-gallery-case")||document.body.classList.contains("eii-gallery-account-favorites")){var d=function(){var t=document.querySelectorAll(".gallery-button-favorite-wrapper:not(.no-action)");if(t.length>0)for(var e=0;e<t.length;e++)if("function"!=typeof t[e].handleFavClick){var i=t[e];i.handleFavClick=function(t){t&&(t.preventDefault(),t.stopImmediatePropagation());var e=this,i=this,n=this.querySelector(".gallery-button-favorite");if(document.body.classList.contains("eii-gallery-account-favorites")){var s=document.querySelectorAll(".category-case-card");s.forEach(function(t){t.contains(e)&&(t.style.display="none")})}i.classList.toggle("is-fav");var o=i.querySelector(".case-desc-fav");o&&(i.classList.contains("is-fav")?o.innerHTML="Favorited":o.innerHTML="Favorite");var r=n.getAttribute("data-cid"),a=n;n.classList.add("ajax-wait");var l=new XMLHttpRequest,c=new FormData;c.append("cid",r);var u=window.EII_GALLERY_JS.gf_vars||window.gf_vars;c.append("action",u.action),c.append("s",u.security),c.append("currentPath",encodeURIComponent(window.location.pathname)),l.open("POST",u.url+"?action=favorite"),l.send(c),l.addEventListener("load",function(t){a.classList.remove("ajax-wait")})},i.addEventListener("click",i.handleFavClick),i.addEventListener("touchstart",i.handleFavClick)}},f=document.querySelector(".eii-gallery-category");f&&(f.updateFavHandlers=d),d()}var p=document.querySelectorAll(".show-password");if(document.body.classList.contains("eii-gallery")&&p.length>0&&p.forEach(function(t){t.addEventListener("click",function(e){e&&(e.preventDefault(),e.stopImmediatePropagation());var i=document.getElementById(t.dataset["for"]);switch(i.getAttribute("type")){case"password":i.setAttribute("type","text"),t.innerHTML="Hide";break;default:i.setAttribute("type","password"),t.innerHTML="Show"}})}),document.body.classList.contains("eii-gallery-v1")&&document.body.classList.contains("eii-gallery-case")){var v=function(t){if(void 0!=t.key&&"Enter"!=t.key)return!1;t&&(t.preventDefault(),t.stopImmediatePropagation()),g.forEach(function(t){t.classList.remove("selected")}),this.classList.add("selected");var e=this.querySelectorAll("img");e.forEach(function(t){var e='#case-views-focus img[itype="'+t.getAttribute("itype")+'"]',i=document.querySelector(e),n=document.querySelectorAll('#case-views-focus source[type="image/webp"]'),s=document.querySelectorAll('#case-views-focus source[type="image/jpeg"]');i.setAttribute("alt",t.getAttribute("alt")),window.innerWidth<1024?(i.setAttribute("src",t.getAttribute("data-thumbnail-image-jpg")),n.forEac
1h(function(e){return e.setAttribute("srcset",t.getAttribute("data-thumbnail-image-webp"))}),s.forEach(function(e){return e.setAttribute("srcset",t.getAttribute("data-thumbnail-image-jpg"))})):(i.setAttribute("src",t.getAttribute("data-detail-image-jpg")),n.forEach(function(e){return e.setAttribute("srcset",t.getAttribute("data-detail-image-webp"))}),s.forEach(function(e){return e.setAttribute("srcset",t.getAttribute("data-detail-image-jpg"))}));var o=document.querySelector("#case-views-focus .case-view-type");o.innerHTML=t.getAttribute("icaption")})},g=document.querySelectorAll("#case-views-thumbnails:not(.disable-default) .case-view:not(.video-view)");g.forEach(function(t){t.addEventListener("click",v.bind(t),!1),t.addEventListener("touch",v.bind(t),!1),t.addEventListener("keydown",v.bind(t),!1)})}if(document.body.classList.contains("eii-gallery-v2")){var m=function(t,e){var i;return function(){for(var n=arguments.length,s=new Array(n),o=0;n>o;o++)s[o]=arguments[o];var r=function(){clearTimeout(i),t.apply(void 0,s)};clearTimeout(i),i=setTimeout(r,e)}},y=t("./components/case-slider/case-slider.js"),b=document.querySelector("body.eii-gallery-case .case-views");if(b){var w=function(){if(window.innerWidth>768){var t=new y;t.init()}};w(),window.addEventListener("resize",m(w,250))}var _=document.querySelectorAll("body.eii-gallery-case .case-surgeon-title");_.forEach(function(t){t.innerHTML=t.innerHTML.replace(/\s*:\s*( |\s)?/,"")})}var S=document.querySelectorAll(".gallery-categories");if(S.length>0){var E=".gallery-categories",C="h3.category-name";C=E.querySelector(C),C.addEventListener("click",function(t){t&&(t.preventDefault(),t.stopImmediatePropagation());var e=C.parentNode.querySelector(".subcategory-list");C.toggleClass("open"),C.hasClass("open")?e.style.display="block":e.style.display="none"})}var I=(new window.vanilla_lazyLoad({elements_selector:"img[data-pgll-src]:not([src])",data_src:"pgll-src",data_srcset:"pgll-srcset"}),document.querySelectorAll(".baShowcase:not(.baShowcase-empty)"));if(I.length>0)for(var k=0;k<I.length;k++)if(I[k].dragSlider=new ShowcaseSlider(I[k].getAttribute("unique-id"),function(){},I[k].querySelectorAll(".baShowcase-case").length+1,!0,function(){}),I[k].dragSlider.valid){I[k].dragSlider.addSteps();for(var L=I[k].querySelectorAll("img"),A=0;A<L.length;A++)L[A].addEventListener("load",function(t){var e=t.target;e.closest(".baShowcase").dragSlider.setHeight()})}},{"./components/case-slider/case-slider.js":3,"./lib/showcase-slider/ShowcaseSlider":5,"./lib/vanilla-lazyload/dist/lazyload.js":6}],5:[function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function r(t,e,i){return e&&o(t.prototype,e),i&&o(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}Object.defineProperty(i,"__esModule",{value:!0}),i["default"]=void 0;var a=t("../../../../gulp/node_modules/dragdealer"),l=n(t("../../../../gulp/node_modules/debounce")),c=function(){function t(e,i,n,o,r){var c=this;s(this,t),this.rootElement=document.getElementById("baShowcase-"+e),this.leftControls=this.rootElement.querySelectorAll(".baShowcase-controlsLeft"),this.rightControls=this.rootElement.querySelectorAll(".baShowcase-controlsRight"),this.currentCount=this.rootElement.querySelectorAll(".baShowcase-counterCurrent"),this.totalCount=this.rootElement.querySelectorAll(".baShowcase-counterTotal"),this.handle=this.rootElement.querySelector(".baShowcase-sliderWrap"),this.rootId=e,this.sliderId="baShowcase-slider-"+e,this.childClass="baShowcase-case",this.adaptiveHeight=o,this.addMoreMethod=i,this.maxCases=n,this.valid=this.handle?!0:!1,this.handle&&(this.slider=new a.Dragdealer(this.sliderId,{steps:this.getSliderChildren().length,speed:.3,loose:!0,requestAnimationFrame:!0,handleClass:"baShowcase-sliderWrap",callback:function(){c.updateCurrentCount(),c.infiniteLoadCheck(),c.setWidth(),c.setHeight(),c.slider.reflow(),c.updateArrowActiveState(),"function"==typeof r&&r(c.slider.getStep()[0])}
1,dragStopCallback:function(){c.setWidth(),c.setHeight(),c.slider.reflow()}}),window.addEventListener("resize",l["default"](function(){this.setWidth(),this.setHeight(),this.slider.reflow()},16).bind(this)),window.mySlider=this.slider,this.leftControls.forEach(function(t){return t.addEventListener("click",c.onLeftControl.bind(c),!1)}),this.leftControls.forEach(function(t){return t.addEventListener("touch",c.onLeftControl.bind(c),!1)}),this.leftControls.forEach(function(t){return t.addEventListener("keydown",c.onLeftControl.bind(c),!1)}),this.rightControls.forEach(function(t){return t.addEventListener("click",c.onRightControl.bind(c),!1)}),this.rightControls.forEach(function(t){return t.addEventListener("touch",c.onRightControl.bind(c),!1)}),this.rightControls.forEach(function(t){return t.addEventListener("keydown",c.onRightControl.bind(c),!1)}),"function"==typeof r&&setTimeout(function(){r(this.slider.getStep()[0])}.bind(this),100),document.getElementById(this.sliderId).classList.add("initialized"))}return r(t,[{key:"onLeftControl",value:function(t){if(void 0!=t.key&&"Enter"!=t.key)return!1;t.preventDefault();var e=this.slider.getStep()[0];this.slider.setStep(e-1,1,!1),this.updateCurrentCount(),this.setWidth(),this.setHeight(),this.slider.reflow()}},{key:"onRightControl",value:function(t){if(void 0!=t.key&&"Enter"!=t.key)return!1;t.preventDefault();var e=this.slider.getStep()[0];this.slider.setStep(e+1,1,!1),this.updateCurrentCount(),this.infiniteLoadCheck(),this.setWidth(),this.setHeight(),this.slider.reflow()}},{key:"infiniteLoadCheck",value:function(){var t=this.slider.getStep()[0];t+2>=this.getSliderChildren().length&&"function"==typeof this.addMoreMethod&&this.addMoreMethod(this.addSteps.bind(this))}},{key:"updateArrowActiveState",value:function(){var t=this.slider.getStep()[0],e=this.maxCases,i=this.leftControls,n=this.rightControls;1===t?i.forEach(function(t){return t.className="baShowcase-controlsLeft baShowcase-controlInactive"}):i.forEach(function(t){return t.className="baShowcase-controlsLeft"}),t===e?n.forEach(function(t){return t.className="baShowcase-controlsRight baShowcase-controlInactive"}):n.forEach(function(t){return t.className="baShowcase-controlsRight"})}},{key:"getSliderChildren",value:function(){var t=this.handle.children;return t}},{key:"updateCurrentCount",value:function(){for(var t=this.slider.getStep()[0],e=this.currentCount,i=0;i<e.length;i++)e[i].innerHTML=Math.round(t)}},{key:"setHeight",value:function(){var t=this;if(this.adaptiveHeight)if(void 0!==this.slider){var e=Math.floor(this.slider.getStep()[0]),i=this.rootElement.querySelector('[slide-index="'+e+'"]');document.getElementById(t.sliderId).style.height=i.offsetHeight+"px"}else document.getElementById(t.sliderId).style.height=currentChild.offsetHeight+"px";else document.getElementById(t.sliderId).style.height=t.handle.offsetHeight+"px"}},{key:"setWidth",value:function(){for(var t=Array.prototype.slice.call(this.rootElement.querySelectorAll(".baShowcase-case")),e=this.handle.parentNode.offsetWidth,i=0,n=0;n<t.length;n++)t[n].nodeType&&i++;var s="".concat(e*i,"px"),o="".concat(100/i,"%");this.handle.style.width=s,t.map(function(t){t.style.width=o})}},{key:"addSteps",value:function(){var t=this.slider.getStep()[0];this.setWidth(),this.slider.bounds=this.slider.calculateBounds(),this.slider.options.steps=this.getSliderChildren().length,this.slider.stepRatios=this.slider.calculateStepRatios(),this.slider.setStep(t,1,!0)}}]),t}(),u=c;i["default"]=u},{"../../../../gulp/node_modules/debounce":1,"../../../../gulp/node_modules/dragdealer":2}],6:[function(t,e,i){"use strict";function n(t){"@babel/helpers - typeof";return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(){return s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},s.apply(this,arguments)}function o(t){return(o="function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?function(t){return n(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":n(t)})(t)}!function(t,n){"object"===("undefined"==typeof i?"undefined":o(i))&&"undefined"!=typeof e?e.exports=n():"function"==typeof define&&define.amd?define(n):t.LazyLoad=n()}(void 0,function(){function t(t,e){if(e)if(e.length)for(var i,n=0;i=e[n];n+=1)l(t,i);else l(t,e)}var e="undefined"!=typeof window,i=e&&!("onscroll"in window)||"undefined"!=typeof navigator&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),n=e&&"IntersectionObserver"in window,o=e&&"classList"in document.createElement("p"),r={ 2elements_selector:"img",container:i||e?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",class_loading:"loading",class_loaded:"loaded",class_error:"error",load_delay:0,auto_unobserve:!0,callback_enter:null,callback_exit:null,callback_reveal:null,callback_loaded:null,callback_error:null,callback_finish:null,use_native:!1},a=function(t){return s({},r,t)},l=function(t,e){var i,n="LazyLoad::Initialized",s=new t(e);try{i=new CustomEvent(n,{detail:{instance:s}})}catch(o){i=document.createEvent("CustomEvent"),i.initCustomEvent(n,!1,!1,{instance:s})}window.dispatchEvent(i)},c="data-",u="was-processed",h="ll-timeout",d="true",f=function(t,e){return t.getAttribute(c+e)}
2,p=function(t,e,i){var n=c+e;return null===i?void t.removeAttribute(n):void t.setAttribute(n,i)},v=function(t){return p(t,u,d)},g=function(t){return f(t,u)===d},m=function(t,e){return p(t,h,e)},y=function(t){return f(t,h)},b=function(t){return t.filter(function(t){return!g(t)})},w=function(t,e){return t.filter(function(t){return t!==e})},_=function(t,e){t&&t(e)},S=function(t,e){t._loadingCount+=e,0===t._elements.length&&0===t._loadingCount&&_(t._settings.callback_finish)},E=function(t){for(var e,i=[],n=0;e=t.children[n];n+=1)"SOURCE"===e.tagName&&i.push(e);return i},C=function(t,e,i){i&&t.setAttribute(e,i)},I=function(t,e){C(t,"sizes",f(t,e.data_sizes)),C(t,"srcset",f(t,e.data_srcset)),C(t,"src",f(t,e.data_src))},k=function(t,e){var i=t.parentNode;if(i&&"PICTURE"===i.tagName){var n=E(i);n.forEach(function(t){I(t,e)})}I(t,e)},L=function(t,e){C(t,"src",f(t,e.data_src))},A=function(t,e){var i=E(t);i.forEach(function(t){C(t,"src",f(t,e.data_src))}),C(t,"src",f(t,e.data_src)),t.load()},x=function(t,e){var i=f(t,e.data_src),n=f(t,e.data_bg);i&&(t.style.backgroundImage='url("'.concat(i,'")')),n&&(t.style.backgroundImage=n)},T={IMG:k,IFRAME:L,VIDEO:A},H=function(t,e){var i=e._settings,n=t.tagName,s=T[n];return s?(s(t,i),S(e,1),void(e._elements=w(e._elements,t))):void x(t,i)},q=function(t,e){return o?void t.classList.add(e):void(t.className+=(t.className?" ":"")+e)},M=function(t,e){return o?void t.classList.remove(e):void(t.className=t.className.replace(new RegExp("(^|\\s+)"+e+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,""))},D="load",O="loadeddata",R="error",W=function(t,e,i){t.addEventListener(e,i)},P=function(t,e,i){t.removeEventListener(e,i)},F=function(t,e,i){W(t,D,e),W(t,O,e),W(t,R,i)},B=function(t,e,i){P(t,D,e),P(t,O,e),P(t,R,i)},N=function(t,e,i){var n=i._settings,s=e?n.class_loaded:n.class_error,o=e?n.callback_loaded:n.callback_error,r=t.target;M(r,n.class_loading),q(r,s),_(o,r),S(i,-1)},z=function(t,e){var i=function s(i){N(i,!0,e),B(t,s,n)},n=function o(n){N(n,!1,e),B(t,i,o)};F(t,i,n)},V=["IMG","IFRAME","VIDEO"],j=function(t,e){var i=e._settings;return _(i.callback_enter,t),i.load_delay?void Y(t,e):void X(t,e)},X=function(t,e){var i=e._observer;$(t,e),i&&e._settings.auto_unobserve&&i.unobserve(t)},G=function(t,e){var i=e._settings;_(i.callback_exit,t),i.load_delay&&U(t)},U=function(t){var e=y(t);e&&(clearTimeout(e),m(t,null))},Y=function(t,e){var i=e._settings.load_delay,n=y(t);n||(n=setTimeout(function(){X(t,e),U(t)},i),m(t,n))},$=function(t,e,i){var n=e._settings;(i||!g(t))&&(V.indexOf(t.tagName)>-1&&(z(t,e),q(t,n.class_loading)),H(t,e),v(t),_(n.callback_reveal,t),_(n.callback_set,t))},J=function(t){return t.isIntersecting||t.intersectionRatio>0},K=function(t){return{root:t.container===document?null:t.container,rootMargin:t.thresholds||t.threshold+"px"}},Q=function(t){return n?(t._observer=new IntersectionObserver(function(e){e.forEach(function(e){return J(e)?j(e.target,t):G(e.target,t)})},K(t._settings)),!0):!1},Z=["IMG","IFRAME"],tt=function(t){return t.use_native&&"loading"in HTMLImageElement.prototype},et=function(t){t._elements.forEach(function(e){-1!==Z.indexOf(e.tagName)&&(e.setAttribute("loading","lazy"),$(e,t))})},it=function(t){return Array.prototype.slice.call(t)},nt=function(t){return t.container.querySelectorAll(t.elements_selector)},st=function(t,e){return b(it(t||nt(e)))},ot=function(t,e){this._settings=a(t),this._loadingCount=0,Q(this),this.update(e)};return ot.prototype={update:function(t){var e=this,n=this._settings;return this._elements=st(t,n),i||!this._observer?void this.loadAll():(tt(n)&&(et(this),this._elements=st(t,n)),void this._elements.forEach(function(t){e._observer.observe(t)}))},destroy:function(){var t=this;this._observer&&(this._elements.forEach(function(e){t._observer.unobserve(e)}),this._observer=null),this._elements=null,this._settings=null},load:function(t,e){$(t,this,e)},loadAll:function(){var t=this;this._elements.forEach(function(e){X(e,t)})}},e&&t(ot,window.lazyLoadOptions),ot})},{}]},{},[4]),function(){function t(e,i,n){function s(r,a){if(!i[r]){if(!e[r]){var l="function"==typeof require&&require;if(!a&&l)return l(r,!0);if(o)return o(r,!0);var c=new Error("Cannot find module '"+r+"'");throw c.code="MODULE_NOT_FOUND",c}var u=i[r]={exports:{}};e[r][0].call(u.exports,function(t){var i=e[r][1][t];return s(i||t)},u,u.exports,t,e,i,n)}return i[r].exports}for(var o="function"==typeof require&&require,r=0;r<n.length;r++)s(n[r]);return s}return t}
2()({1:[function(t,e,i){"use strict";function n(t){return a(t)||r(t)||o(t)||s()}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,e){if(t){if("string"==typeof t)return l(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?l(t,e):void 0}}function r(t){return"undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"]?Array.from(t):void 0}function a(t){return Array.isArray(t)?l(t):void 0}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);e>i;i++)n[i]=t[i];return n}t("../lib/feature-images-slider/fis"),window.EII=window.EII||{},window.EII.Gallery3=window.EII.Gallery3||{},window.EII.Gallery3.featureImages=window.EII.Gallery3.featureImages||{_hasInit:!1,_sliderConfig:{elements:null},init:function(){return this._hasInit?!1:("interactive"==document.readyState||"complete"==document.readyState?this.setupSliders():window.addEventListener("DOMContentLoaded",this.setupSliders.bind(this),!1),"interactive"==document.readyState||"complete"==document.readyState?this.setupOverlays():window.addEventListener("DOMContentLoaded",this.setupOverlays.bind(this),!1),void(this._hasInit=!0))},setupSliders:function(){this._sliderConfig.elements=document.querySelectorAll(".feature-images--sli
2der"),this._sliderConfig.intersectOptions={threshold:0,rootMargin:"0px"},"complete"==document.readyState?this.runSliders():window.addEventListener("load",this.runSliders.bind(this),!1)},runSliders:function(){if(null==this._sliderConfig.elements||0==this._sliderConfig.elements.length)return!1;if(window.EII.Intersect){var t=function(t){window.EII.Gallery3.FeatureImagesSlider.createSliders({container:".feature-images--slider",slides:".slideshow-container",slide:".slide",prev:".arrow.prev",next:".arrow.next",dotnav:".dot-container",dotClass:"dot",autoplay:0})};window.EII.Intersect.customObserver(this._sliderConfig.elements,this._sliderConfig.intersectOptions,t)}else window.EII.Gallery3.FeatureImagesSlider.createSliders({container:".feature-images--slider",slides:".slideshow-container",slide:".slide",prev:".arrow.prev",next:".arrow.next",dotnav:".dot-container",dotClass:"dot",autoplay:0})},setupOverlays:function(){this.hasCookie()?n(document.querySelectorAll(".feature-images .adultText")).forEach(function(t){return t.remove()}):n(document.querySelectorAll(".feature-images .adultText")).forEach(function(t){t.removeOverlay=function(){n(document.querySelectorAll(".feature-images .adultText")).forEach(function(t){return t.remove()}),window.EII.Gallery3.featureImages.setCookie()},t.querySelector(".adultRemoval").addEventListener("click",t.removeOverlay.bind(t),!1),t.querySelector(".adultRemoval").addEventListener("touch",t.removeOverlay.bind(t),!1)})},hasCookie:function(){return null!=this.getCookie("adult_nag_warning")},getCookie:function(t){var e=document.cookie.match(new RegExp("(^| )"+t+"=([^;]+)"));return e?e[2]:null},setCookie:function(){var t=new Date;return t.setTime(t.getTime()+6048e5),document.cookie="adult_nag_warning=has_agreed;path=/;expires="+t.toGMTString(),!0}},window.EII.Gallery3.featureImages.init()},{"../lib/feature-images-slider/fis":4}],2:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t,e,i){return e&&s(t.prototype,e),i&&s(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}var r=t("./class-fis-slider"),a=function(){function t(){n(this,t),this._sliderElements=[],window.addEventListener("load",function(){this.doAutoInits()}.bind(this))}return o(t,[{key:"createSliders",value:function(t){var e=this;if(null==t.container||void 0==t.container||0==t.length)return console.error("Etna\\Gallery\\FeaturedImageSlider: No container passed to Factory. Could not create slider(s)."),!1;var i=document.querySelectorAll(t.container);i.forEach(function(i){i.EII=i.EII||{},i.EII.featuredImagesSlider||(i.EII.featuredImagesSlider=new r(i,t),!1!==i.EII.featuredImagesSlider&&e._sliderElements.push(i))})}},{key:"doAutoInits",value:function(){var t=".slider-container";if(window.EII.Intersect){var e=document.querySelectorAll(t),i={threshold:0,rootMargin:"0px"},n=function(e){window.EII.Gallery3.FeatureImagesSlider.createSliders({container:t})};window.EII.Intersect.customObserver(e,i,n)}else window.EII.Gallery3.FeatureImagesSlider.createSliders({container:t})}}]),t}();e.exports=a},{"./class-fis-slider":3}],3:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t,e,i){return e&&s(t.prototype,e),i&&s(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}var r=function(){function t(e){var i=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,t),this._element=e,this._userConfig=s,this._defaultConfig={container:".slider-container",slides:".slides",slide:".slide",prev:".slider-prev",next:".slider-next",dotnav:".slider-dotnav",dotClass:"slider-dot",getDotHtml:this.getDotHtml,autoplay:5e3,infinite:!0,adaptiveHeight:!0,onInit:function(t){},onBeforePrevSlide:function(t,e){},onAfterPrevSlide:function(t,e){},onBeforeNextSlide:function(t,e){},onAfterNextSlide:function(t,e){},onBeforeDotNavSlide:function(t,e){},onAfterDotNavSlide:function(t,e){}
2,onBeforeSlide:function(t,e,i){},onAfterSlide:function(t,e,i){},runCondition:function(t){return!0}},this._config=Object.assign(this._defaultConfig,s),this._originalComputedConfig=this._config,this._slider=e.querySelector(this._config.slides),this._slider?(this._element.classList.add("initialized"),this._element.setAttribute("tabindex","0"),this._slides=this._element.querySelectorAll(this._config.slide),this._slides.length<1?(console.error("Etna\\Gallery\\featuredImagesSlider: A slider does not have any slides.\n Slide Selector: "+this._config.slide+"\n Slider Element:\n ",this._element),!1):(this._slideCount=this._slides.length,this._currentSlide=0,this._slideHeight=null,this._largestSlideHeight=this.getLargestSlideHeight(),1==this._slideCount&&(this._config.infinite=!1,this._config.dotnav=!1,this._config.autoplay=0),this._prevElements=this._element.querySelectorAll(this._config.prev),!1!==this._prevElements&&(this._prevElements.forEach(function(t){t.addEventListener("click",i.prevSlide.bind(i),!1)}),this._prevElements.forEach(function(t){t.addEventListener("touch",i.prevSlide.bind(i),!1)})),this._element.addEventListener("keydown",this.prevSlide.bind(this),!1),this._nextElements=this._element.querySelectorAll(this._config.next),!1!==this._nextElements&&(this._nextElements.forEach(function(t){t.addEventListener("click",i.nextSlide.bind(i),!1)}),this._nextElements.forEach(function(t){t.addEventListener("touch",i.nextSlide.bind(i),!1)})),this._element.addEventListener("keydown",this.nextSlide.bind(this),!1),this._config.dotnav!==!1&&(this._dotnav=this._element.querySelectorAll(this._config.dotnav),this._dotnav.length>=1&&this._slides.length>0?(this._dotnav.forEach(function(t){0==t.children.length&&i._slides.forEach(function(e,n){var s=document.createElement("div");s.innerHTML=i._config.getDotHtml(i,n),t.appendChild(s.firstChild)})}),this._dots=this._element.querySelectorAll("."+this._config.dotClass),this._dotnav.forEach(function(t){var e=t.querySelectorAll("."+i._config.dotClass);e.length>0&&e.forEach(function(t,e){t.EII=t.EII||{},t.EII.featuredImagesSlider=i,t.EII._ssval=e,t.addEventListener("click",i.handleDotClick.bind(t),!1),t.addEventListener("touch",i.handleDotClick.bind(t),!1)})})):this._dotnav=!1),this._initialTouchX=null,this._initialTouchY=null,this._slider.addEventListener("touchstart",this.startTouch.bind(this),{capture:!1,passive:!0}),this._slider.addEventListener("touchmove",this.moveTouch.bind(this),{capture:!1,passive:!0}),this._config.adaptiveHeight?this._slider.style.height=this._slides[0].clientHeight+"px":this._slider.style.height=this._largestSlideHeight+"px",window.addEventListener("resize",this.onWindowResize.bind(this),{capture:!1,passive:!0}),0==this._config.runCondition(window.innerWidth)?(this._asleep=!1,this.sleep(!0)):(this._asleep=!0,this.sleep(!1)),this._slides[0].classList.add("active"),this._dotnav&&this._dotnav.forEach(function(t){return t.querySelectorAll(".".concat(i._config.dotClass))[0].classList.add("active")}),this._config.autoplay>0&&this.resetInterval(),void this._config.onInit(this))):!1}return o(t,[{key:"startTouch",value:function(t){return this._asleep?!1:(this._initialTouchX=t.touches[0].clientX,void(this._initialTouchY=t.touches[0].clientY))}},{key:"moveTouch",value:function(t){if(this._asleep)return!1;if(null!==this._initialTouchX&&null!==this._initialTouchY){var e=t.touches[0].clientX,i=t.touches[0].clientY,n=this._initialTouchX-e,s=this._initialTouchY-i;Math.abs(n)>Math.abs(s)&&(n>0?this.moveToSlide(this._currentSlide+1):this.moveToSlide(this._currentSlide+-1)),this._initialTouchX=null,this._initialTouchY=null,t.preventDefault()}}},{key:"moveToSlide",value:function(t){return this._asleep?!1:(this._config.onBeforeSlide(this,this._currentSlide,t),this._slides[this._currentSlide].classList.remove("active"),this._config.infinite?this._currentSlide=(t+this._slideCount)%this._slideCount:t!=this._slideCount&&t>=0&&(this._currentSlide=t),this._slides[this._currentSlide].classList.add("active"),this._config.adaptiveHeight&&(this._slideHeight=this._slides[this._currentSlide].clientHeight,this._slider.style.height=this._slideHeight+"px"),this._dotnav&&this.makeDotActive(this._currentSlide),this._config.auto
2play>0&&this.resetInterval(),void this._config.onAfterSlide(this,this._currentSlide,t))}},{key:"nextSlide",value:function(t){return this._asleep?!1:(this._config.onBeforeNextSlide(this,this._currentSlide),this.moveToSlide(this._currentSlide+1),t&&t.keyCode&&39==t.keyCode&&this.moveToSlide(this._currentSlide+1),void this._config.onAfterNextSlide(this,this._currentSlide))}},{key:"prevSlide",value:function(t){return this._asleep?!1:(this._config.onBeforePrevSlide(this,this._currentSlide),this.moveToSlide(this._currentSlide+-1),t&&t.keyCode&&37==t.keyCode&&this.moveToSlide(this._currentSlide+-1),void this._config.onAfterPrevSlide(this,this._currentSlide))}},{key:"handleDotClick",value:function(t){if(t.preventDefault(),t.stopImmediatePropagation(),!this.EII||!this.EII.featuredImagesSlider)return!1;var e=this.EII.featuredImagesSlider;if(e._asleep)return!1;if(e._config.onBeforeDotNavSlide(e,e._currentSlide),void 0!=this.EII._ssval){var i=this.EII._ssval;e.moveToSlide(i)}return e._config.onAfterDotNavSlide(e,e._currentSlide),!1}},{key:"onWindowResize",value:function(t){if(0==this._config.runCondition(window.innerWidth))this.sleep(!0);else if(this.sleep(!1),this._config.adaptiveHeight){var e=this._slides[this._currentSlide].clientHeight;this._slider.style.height=e+"px"}else this._largestSlideHeight=this.getLargestSlideHeight(),this._slider.style.height=this._largestSlideHeight+"px"}},{key:"makeDotActive",value:function(t){var e=this;this._dots.forEach(function(t){t.classList.remove("active")}),this._dotnav.forEach(function(i){return i.querySelectorAll(".".concat(e._config.dotClass))[t].classList.add("active")})}},{key:"getDotHtml",value:function(t,e){return'<button class="'+this.dotClass+'" aria-label="Jump to Slide #'+(e+1)+'"></button>'}},{key:"resetInterval",value:function(){this._interval&&clearInterval(this._interval),this._interval=setInterval(function(){this.nextSlide()}.bind(this),this._config.autoplay)}},{key:"sleep",value:function(t){t&&0==this._asleep?(this._asleep=!0,this._element.classList.remove("awake"),this._config.adaptiveHeight&&(this._slider.style.height="auto"),this._interval&&clearInterval(this._interval)):t||1!=this._asleep||(this._asleep=!1,this._element.classList.add("awake"),this._config.autoplay>0&&this.resetInterval())}},{key:"getLargestSlideHeight",value:function(){var t=0;return this._slides.forEach(function(e){e.clientHeight&&e.clientHeight>(t||0)&&(t=e.clientHeight)}),t}}]),t}();e.exports=r},{}],4:[function(t,e,i){"use strict";var n=t("./class-fis-factory");window.EII=window.EII||{},window.EII.Gallery3=window.EII.Gallery3||{},window.EII.Gallery3.FeatureImagesSlider||(window.EII.Gallery3.FeatureImagesSlider=new n)},{"./class-fis-factory":2}]},{},[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.