/*! elementor-pro - v3.2.1 - 21-03-2021 */
(self.webpackChunkelementor_pro=self.webpackChunkelementor_pro||[]).push([[121],{5357:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0,n(4828),n(1954);var l=i(n(1959)),a=i(n(9041)),o=i(n(6700)),s=i(n(4263)),r=i(n(7371)),g=i(n(8537)),m=function(e){(0,r.default)(galleryHandler,e);var t=(0,g.default)(galleryHandler);function galleryHandler(){return(0,l.default)(this,galleryHandler),t.apply(this,arguments)}return(0,a.default)(galleryHandler,[{key:"getDefaultSettings",value:function getDefaultSettings(){return{selectors:{container:".elementor-gallery__container",galleryTitles:".elementor-gallery-title",galleryImages:".e-gallery-image",galleryItemOverlay:".elementor-gallery-item__overlay",galleryItemContent:".elementor-gallery-item__content"},classes:{activeTitle:"elementor-item-active"}}}},{key:"getDefaultElements",value:function getDefaultElements(){var e=this.getSettings().selectors,t={$container:this.$element.find(e.container),$titles:this.$element.find(e.galleryTitles)};return t.$items=t.$container.children(),t.$images=t.$items.children(e.galleryImages),t.$itemsOverlay=t.$items.children(e.galleryItemOverlay),t.$itemsContent=t.$items.children(e.galleryItemContent),t.$itemsContentElements=t.$itemsContent.children(),t}},{key:"getGallerySettings",value:function getGallerySettings(){var e=this.getElementSettings(),t=elementorFrontend.config.breakpoints,n={};n[t.lg-1]={horizontalGap:elementorFrontend.getDeviceSetting("tablet",e,"gap").size,verticalGap:elementorFrontend.getDeviceSetting("tablet",e,"gap").size,columns:elementorFrontend.getDeviceSetting("tablet",e,"columns")},n[t.md-1]={horizontalGap:elementorFrontend.getDeviceSetting("mobile",e,"gap").size,verticalGap:elementorFrontend.getDeviceSetting("mobile",e,"gap").size,columns:elementorFrontend.getDeviceSetting("mobile",e,"columns")};var i=elementorFrontend.getDeviceSetting("desktop",e,"ideal_row_height"),l=elementorFrontend.getDeviceSetting("tablet",e,"ideal_row_height"),a=elementorFrontend.getDeviceSetting("mobile",e,"ideal_row_height");return n[t.lg-1].idealRowHeight=l&&l.size?l.size:null,n[t.md-1].idealRowHeight=a&&a.size?a.size:null,{type:e.gallery_layout,idealRowHeight:i&&i.size?i.size:null,container:this.elements.$container,columns:e.columns,aspectRatio:e.aspect_ratio,lastRow:"normal",horizontalGap:elementorFrontend.getDeviceSetting("desktop",e,"gap").size,verticalGap:elementorFrontend.getDeviceSetting("desktop",e,"gap").size,animationDuration:e.content_animation_duration,breakpoints:n,rtl:elementorFrontend.config.is_rtl,lazyLoad:"yes"===e.lazyload}}},{key:"initGallery",value:function initGallery(){this.gallery=new EGallery(this.getGallerySettings()),this.toggleAllAnimationsClasses()}},{key:"removeAnimationClasses",value:function removeAnimationClasses(e){e.removeClass((function(e,t){return(t.match(/elementor-animated-item-\S+/g)||[]).join(" ")}))}},{key:"toggleOverlayHoverAnimation",value:function toggleOverlayHoverAnimation(){this.removeAnimationClasses(this.elements.$itemsOverlay);var e=this.getElementSettings("background_overlay_hover_animation");e&&this.elements.$itemsOverlay.addClass("elementor-animated-item--"+e)}},{key:"toggleOverlayContentAnimation",value:function toggleOverlayContentAnimation(){this.removeAnimationClasses(this.elements.$itemsContentElements);var e=this.getElementSettings("content_hover_animation");e&&this.elements.$itemsContentElements.addClass("elementor-animated-item--"+e)}},{key:"toggleOverlayContentSequencedAnimation",value:function toggleOverlayContentSequencedAnimation(){this.elements.$itemsContent.toggleClass("elementor-gallery--sequenced-animation","yes"===this.getElementSettings("content_sequenced_animation"))}},{key:"toggleImageHoverAnimation",value:function toggleImageHoverAnimation(){var e=this.getElementSettings("image_hover_animation");this.removeAnimationClasses(this.elements.$images),e&&this.elements.$images.addClass("elementor-animated-item--"+e)}},{key:"toggleAllAnimationsClasses",value:function toggleAllAnimationsClasses(){var e=this.getElementSettings(),t=e.background_overlay_hover_animation||e.content_hover_animation||e.image_hover_animation;this.elements.$items.toggleClass("elementor-animated-content",!!t),this.toggleImageHoverAnimation(),this.toggleOverlayHoverAnimation(),this.toggleOverlayContentAnimation(),this.toggleOverlayContentSequencedAnimation()}},{key:"toggleAnimationClasses",value:function toggleAnimationClasses(e){"content_sequenced_animation"===e&&this.toggleOverlayContentSequencedAnimation(),"background_overlay_hover_animation"===e&&this.toggleOverlayHoverAnimation(),"content_hover_animation"===e&&this.toggleOverlayContentAnimation(),"image_hover_animation"===e&&this.toggleImageHoverAnimation()}},{key:"setGalleryTags",value:function setGalleryTags(e){this.gallery.setSettings("tags","all"===e?[]:[""+e])}},{key:"bindEvents",value:function bindEvents(){this.elements.$titles.on("click",this.galleriesNavigationListener.bind(this))}},{key:"galleriesNavigationListener",value:function galleriesNavigationListener(e){var t=this,n=this.getSettings("classes"),i=jQuery(e.target);this.elements.$titles.removeClass(n.activeTitle),i.addClass(n.activeTitle),this.setGalleryTags(i.data("gallery-index"));setTimeout((function updateLightboxGroup(){return t.setLightboxGalleryIndex(i.data("gallery-index"))}),1e3)}},{key:"setLightboxGalleryIndex",value:function setLightboxGalleryIndex(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all";if("all"===e)return this.elements.$items.attr("data-elementor-lightbox-slideshow","all_"+this.getID());this.elements.$items.not(".e-gallery-item--hidden").attr("data-elementor-lightbox-slideshow",e+"_"+this.getID())}},{key:"onInit",value:function onInit(){for(var e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];(e=(0,o.default)((0,s.default)(galleryHandler.prototype),"onInit",this)).call.apply(e,[this].concat(n)),elementorFrontend.isEditMode()&&1<=this.$element.find(".elementor-widget-empty-icon").length&&this.$element.addClass("elementor-widget-empty"),this.elements.$container.length&&(this.initGallery(),this.elements.$titles.first().trigger("click"))}},{key:"onElementChange",value:function onElementChange(e){var t=this;if(-1===["background_overlay_hover_animation","content_hover_animation","image_hover_animation","content_sequenced_animation"].indexOf(e)){var n=elementorFrontend.config.breakpoints,i={columns:["columns"],columns_tablet:["breakpoints."+(n.lg-1)+".columns"],columns_mobile:["breakpoints."+(n.md-1)+".columns"],gap:["horizontalGap","verticalGap"],gap_tablet:["breakpoints."+(n.lg-1)+".horizontalGap","breakpoints."+(n.lg-1)+".verticalGap"],gap_mobile:["breakpoints."+(n.md-1)+".horizontalGap","breakpoints."+(n.md-1)+".verticalGap"],aspect_ratio:["aspectRatio"],ideal_row_height:["idealRowHeight"],ideal_row_height_tablet:["breakpoints."+(n.lg-1)+".idealRowHeight"],ideal_row_height_mobile:["breakpoints."+(n.md-1)+".idealRowHeight"]}[e];if(i){var l=this.getGallerySettings();i.forEach((function(e){t.gallery.setSettings(e,t.getItems(l,e))}))}}else this.toggleAnimationClasses(e)}},{key:"onDestroy",value:function onDestroy(){(0,o.default)((0,s.default)(galleryHandler.prototype),"onDestroy",this).call(this),this.gallery&&this.gallery.destroy()}}]),galleryHandler}(elementorModules.frontend.handlers.Base);t.default=m}}]);