!function(i){woodmartThemeModule.loginDropdown=function(){woodmartThemeModule.windowWidth<=1024||i(".wd-dropdown-register").each(function(){var n=i(this),e=n.find(".login-dropdown-inner");e.find('input[id="username"]').on("click",function(){n.addClass("wd-active-login").removeClass("wd-active-link")}),e.find('input[id="username"]').on("input",function(){n.hasClass("wd-active-login")&&n.removeClass("wd-active-login").addClass("wd-active-link")}),e.find("input").not('[id="username"]').on("click",function(){n.removeClass("wd-active-login").removeClass("wd-active-link")}),woodmartThemeModule.$document.click(function(e){void 0!==e.target.className.length&&-1===e.target.className.indexOf("wd-dropdown-register")&&-1===e.target.className.indexOf("input-text")&&n.removeClass("wd-active-login").removeClass("wd-active-link")}),i(".wd-dropdown-register").on("mouseout",function(){n.hasClass("wd-active-link")&&n.removeClass("wd-active-link")}).on("mouseleave",function(){n.hasClass("wd-active-link")&&n.removeClass("wd-active-link")})})},i(document).ready(function(){woodmartThemeModule.loginDropdown()})}(jQuery);