!function(e){"use strict";e(function(){var t;function n(t,n,a){e(document).on(t,n,a)}t=e(".elementskit-menu-container"),e(t).each(function(){var t=e(this);"yes"!=t.attr("ekit-dom-added")&&(0===t.parents(".elementor-widget-ekit-nav-menu").length&&t.parents(".ekit-wid-con").addClass("ekit_menu_responsive_tablet"),t.attr("ekit-dom-added","yes"))}),n("click",".elementskit-dropdown-has > a",function(t){var n=e(this).parents(".elementskit-navbar-nav, .ekit-vertical-navbar-nav"),a=e(this).parents(".ekit-wid-con").data("responsive-breakpoint");if((!n.hasClass("submenu-click-on-icon")||e(t.target).hasClass("elementskit-submenu-indicator"))&&(!(e(document).width()>Number(a)&&n.hasClass("submenu-click-on-"))||e(t.target).hasClass("elementskit-submenu-indicator"))){t.preventDefault();var s=e(this).parent().find(">.elementskit-dropdown, >.elementskit-megamenu-panel");s.find(".elementskit-dropdown-open").removeClass("elementskit-dropdown-open"),s.hasClass("elementskit-dropdown-open")?s.removeClass("elementskit-dropdown-open"):s.addClass("elementskit-dropdown-open")}}),n("click",".elementskit-menu-toggler",function(t){t.preventDefault();var n=e(this).parents(".elementskit-menu-container").parent();n.length<1&&(n=e(this).parent());var a=n.find(".elementskit-menu-offcanvas-elements");a.hasClass("active")?a.removeClass("active"):a.addClass("active")}),e(".elementskit-navbar-nav li a").on("click",function(t){var n=e(this),a=n.get(0);if(a&&n.attr("href")){var s=a.href,i=s.includes("#"),o=n.closest(".elementskit-menu-container").hasClass("ekit-nav-menu-one-page-yes"),l=a.pathname===window.location.pathname;"elementskit-submenu-indicator"!==t.target.className&&i&&s.length>1&&o&&l&&n.closest(".ekit-wid-con").find(".elementskit-menu-close").trigger("click")}})})}(jQuery);