!function(e,t){"use strict";var n=function(){t.hooks.addAction("frontend/element_ready/global",function(e){new i({$element:e})})};e(window).on("elementor/frontend/init",n);var o=elementorModules.frontend.handlers.Base,i=o.extend({isTrue:function(e,t){return 0!=this.getElementSettings(e)&&this.getElementSettings(e)==t},shouldRun:function(e){return!!this.isTrue("ekit_we_effect_on",e)},active:function(){this.shouldRun("mousemove"),this.shouldRun("onscroll")},deactivate:function(e){},onElementChange:function(e){console.log(this.getElementSettings("ekit_we_scrolleffect_rotate_speed"))},onInit:function(){o.prototype.onInit.apply(this,arguments)},onDestroy:function(){o.prototype.onDestroy.apply(this,arguments)},mousemove:function(){var e=this.$element.find(".elementor-widget-container"),t=this.$element.parents(".elementor-section").first(),n=this.getElementSettings("ekit_we_mousemove_parallax_speed");t.on("mousemove.elementskitwidgethovereffect",function(o){var i=o.pageX-t.offset().left,s=o.pageY-t.offset().top;TweenMax.to(e,1,{x:(i-t.width()/2)/t.width()*n,y:(s-t.height()/2)/t.height()*n,ease:Power2.ease})})},onscroll:function(){this.$element.find(".elementor-widget-container").magician({type:"scroll",uniqueKey:this.getID(),offsetTop:parseInt(this.getElementSettings("ekit_we_scroll_offsettop")),offsetBottom:parseInt(this.getElementSettings("ekit_we_scroll_offsetbottom")),duration:parseInt(this.getElementSettings("ekit_we_scroll_smoothness")),animation:{[this.getElementSettings("ekit_we_scroll_animation")]:this.getElementSettings("ekit_we_scroll_animation_value")}})}})}(jQuery,window.elementorFrontend);