!function(e,t){"use strict";ElementsKit_Helper.registerWidget("ekit-vertical-menu.default",(function(t){if(t.find(".ekit-vertical-main-menu-on-click").length>0){let i=t.find(".ekit-vertical-main-menu-on-click"),n=t.find(".ekit-vertical-menu-tigger"),a=e("body").data("elementor-device-mode");"tablet"!==a&&"mobile"!==a||i.removeClass("vertical-menu-active"),n.on("click",(function(e){e.preventDefault(),i.toggleClass("vertical-menu-active")}))}if(t.find(".elementskit-megamenu-has").length>0){let i=t.find(".elementskit-megamenu-has"),n=t.parents(".elementor-container"),a=t.find(".ekit-vertical-main-menu-wraper");Math.floor(n.width()-a.width());i.on("mouseenter",(function(){let t=e(this).data("vertical-menu"),i=e(this).children(".elementskit-megamenu-panel");t&&t!==undefined?"string"==typeof t?/^[0-9]/.test(t)?i.css({width:t}):e(window).bind("resize",(function(){e(document).width()>1024?i.css({width:Math.floor(n.width()-a.width()-10)+"px"}):i.removeAttr("style")})).trigger("resize"):i.css({width:t+"px"}):e(window).bind("resize",(function(){e(document).width()>1024?i.css({width:Math.floor(n.width()-a.width()-10)+"px"}):i.removeAttr("style")})).trigger("resize")})),i.trigger("mouseenter")}t.find(".megamenu-ajax-load").length>0&&t.find(".ekit-vertical-main-menu-wraper").on("mouseenter",".elementskit-megamenu-has",(function(t){ElementsKit_Helper.megaMenuAjaxLoad(e(this))})),t.find(".megamenu-ajax-load").length>0&&t.find(".ekit-vertical-main-menu-wraper").on("mouseenter",".elementskit-megamenu-has",(function(t){ElementsKit_Helper.megaMenuAjaxLoad(e(this))}))}))}(jQuery,window.elementorFrontend);