jQuery(window).on("elementor/frontend/init",function(){if("undefined"!=typeof paElementsHandler&&paElementsHandler.isElementAlreadyExists("paUnfold"))return!1;var e=elementorModules.frontend.handlers.Base.extend({getDefaultSettings:function(){return{selectors:{unfoldContentWrap:".premium-unfold-content-wrap",unfoldButtonTxt:".premium-unfold-button-text",unfoldContent:".premium-unfold-content",unfoldIcon:".premium-unfold-icon",unfoldIconHolder:".premium-icon-holder-unfolded",unfoldGradient:".premium-unfold-gradient",foldIconHolder:".premium-icon-holder-fold",unfoldBtn:".premium-button"}}},getDefaultElements:function(){var e=this.getSettings("selectors");return{$unfoldElem:this.$element,$unfoldButtonTxt:this.$element.find(e.unfoldButtonTxt),$unfoldBtn:this.$element.find(e.unfoldBtn),$unfoldContentWrap:this.$element.find(e.unfoldContentWrap),$unfoldContent:this.$element.find(e.unfoldContent),$unfoldIcon:this.$element.find(e.unfoldIcon),$unfoldIconHolder:this.$element.find(e.unfoldIconHolder),$unfoldGradient:this.$element.find(e.unfoldGradient),$foldIconHolder:this.$element.find(e.foldIconHolder)}},bindEvents:function(){var e=this,n=this.elements.$unfoldContentWrap.find(".elementor-widget-gallery").length,t=this.elements.$unfoldElem.closest(".premium-tabs-content-section");t.length?t.hasClass("content-current")?e.run():t.on("showTabContent",function(){e.run()}):setTimeout(function(){e.run()},n?1300:0)},run:function(){var e=this.elements.$unfoldElem,n=this.elements.$unfoldButtonTxt,t=this.elements.$unfoldContent,o=this.elements.$unfoldIcon,l=this.elements.$unfoldIconHolder,d=this.elements.$unfoldGradient,u=this.elements.$foldIconHolder,i=this.getElementSettings(),r=this.elements.$unfoldContentWrap,s=parseInt(r.outerHeight()),f=this.getFoldHeight(),m=i.premium_unfold_fold_height_select,h=i.premium_unfold_button_fold_text,a=i.premium_unfold_button_unfold_text,_=i.premium_unfold_fold_easing,c=i.premium_unfold_unfold_easing,g="custom"===i.premium_unfold_fold_dur_select?1e3*i.premium_unfold_fold_dur:i.premium_unfold_fold_dur_select,p="custom"===i.premium_unfold_unfold_dur_select?1e3*i.premium_unfold_unfold_dur:i.premium_unfold_unfold_dur_select;"percent"===m&&(f=f/100*s),n.text(h),t.css("height",f),o.html(l.html()),this.elements.$unfoldBtn.on("click",function(i){if(i.preventDefault(),setTimeout(function(){e.removeClass("prevented")},g+50),!e.hasClass("prevented")){e.addClass("prevented");var m=t.hasClass("toggled")?a:h;n.text(m),t.hasClass("toggled")?(s=parseInt(r.outerHeight()),t.css("overflow","visible"),t.animate({height:s},p,c).removeClass("toggled")):(t.css("overflow","hidden"),t.animate({height:f},g,_).addClass("toggled")),d.toggleClass("toggled"),t.hasClass("toggled")?o.html(l.html()):o.html(u.html())}})},getFoldHeight:function(){var e=this.getElementSettings(),n="desktop"===elementorFrontend.getCurrentDeviceMode()?"":"_"+elementorFrontend.getCurrentDeviceMode(),t=60;return"pixel"===e.premium_unfold_fold_height_select&&(t=100,n="_pix"+n),null!=e["premium_unfold_fold_height"+n]?e["premium_unfold_fold_height"+n]:t}});elementorFrontend.elementsHandler.attachHandler("premium-unfold-addon",e)});