var haCursorOptions=null,haCursor=null;function initiateHaCursorObject(){haCursorOptions={el:null,container:document.body,className:"mf-cursor ha-cursor ha-init-hide",innerClassName:"mf-cursor-inner ha-cursor-inner",textClassName:"mf-cursor-text ha-cursor-text",mediaClassName:"mf-cursor-media ha-cursor-media",mediaBoxClassName:"mf-cursor-media-box ha-cursor-media-box",iconSvgClassName:"mf-svgsprite ha-svgsprite",iconSvgNamePrefix:"-",iconSvgSrc:"",dataAttr:"cursor",hiddenState:"-hidden",textState:"-text ha-text",iconState:"-icon ha-icon",activeState:!1,mediaState:"-media ha-media",stateDetection:{"-hidden":"iframe"},visible:!0,visibleOnState:!1,speed:0{s(e).on("elementor/frontend/init",function(e){var t;"undefined"!=typeof elementorModules&&(t=elementorModules.frontend.handlers.Base.extend({options:haCursorOptions,onInit:function(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.run()},onElementChange:function(e){"ha_cmc_switcher"!==e&&"ha_cmc_enable_liquid_effect"!==e&&"ha_cmc_type"!==e&&"ha_cmc_text"!==e&&"ha_cmc_icon"!==e&&"ha_cmc_image"!==e&&"ha_cmc_video"!==e&&"ha_cmc_enable_icon"!==e||this.run()},getReadySettings:function(){var e={},t=this.getElementSettings("ha_cmc_switcher"),r=this.getElementSettings("ha_cmc_type"),a=this.getElementSettings("ha_cmc_icon"),i=this.getElementSettings("ha_cmc_text"),n=this.getElementSettings("ha_cmc_image"),o=this.getElementSettings("ha_cmc_video");return t&&(e.cmc_switcher=t),r&&(e.type=r),a&&(e.icon='')),i&&(e.text=i),n&&(e.image=n.url),o&&(e.video=o.url),s.extend({},this.getSettings(),e)},run:function(){var e,t,r,a,i,n=this.getReadySettings();"yes"==n.cmc_switcher||null!=n.cmc_switcher?(null==haCursor&&initiateHaCursorObject(),a=r=t=void 0,0<(e=this.$element.parents(".e-parent")).length&&(t=e.attr("data-cursor-text"),r=e.attr("data-cursor-img"),a=e.attr("data-cursor-video")),void 0===r&&void 0===a&&void 0===t&&("color"==n.type&&(this.$element.attr("data-cursor-text"," "),this.$element.removeAttr("data-cursor-img"),this.$element.removeAttr("data-cursor-video")),"text"==n.type&&(n.text&&null!=n.text?this.$element.attr("data-cursor-text",n.text):this.$element.attr("data-cursor-text"," "),this.$element.removeAttr("data-cursor-img"),this.$element.removeAttr("data-cursor-video")),"icon"==n.type&&(n.icon&&null!=n.icon?this.$element.attr("data-cursor-text",n.icon):this.$element.attr("data-cursor-text"," "),this.$element.removeAttr("data-cursor-img"),this.$element.removeAttr("data-cursor-video")),"image"==n.type&&(n.image?this.$element.attr("data-cursor-img",n.image):this.$element.attr("data-cursor-img"," "),this.$element.removeAttr("data-cursor-text"),this.$element.removeAttr("data-cursor-video")),"video"==n.type&&(n.video?this.$element.attr("data-cursor-video",n.video):this.$element.attr("data-cursor-video"," "),this.$element.removeAttr("data-cursor-text"),this.$element.removeAttr("data-cursor-img")),i="elementor-element-"+this.$element.data("id"),this.$element.on("mouseenter",function(e){haCursor.el.classList.add(i)}),this.$element.on("mouseleave",function(e){haCursor.el.classList.remove(i)}))):("text"!=n.type&&"icon"!=n.type&&null!=n.type||this.$element.removeAttr("data-cursor-text"),"image"!=n.type&&null!=n.type||this.$element.removeAttr("data-cursor-img"),"video"!=n.type&&null!=n.type||this.$element.removeAttr("data-cursor-video"))}}),elementorFrontend.hooks.addAction("frontend/element_ready/global",function(e){elementorFrontend.elementsHandler.addHandler(t,{$element:e})}))})})(jQuery,window);