(()=>{"use strict";$(function(){$(".language-wrapper .dropdown .dropdown-toggle").off("click").on("click",function(e){e.preventDefault();var o=$(e.currentTarget);o.hasClass("active")?(o.closest(".language-wrapper").find(".dropdown .dropdown-menu").hide(),o.removeClass("active")):(o.closest(".language-wrapper").find(".dropdown .dropdown-menu").show(),o.addClass("active"))}),$(document).on("click",function(e){var o=$(e.currentTarget);0===o.closest(".language-wrapper").length&&(o.closest(".language-wrapper").find(".dropdown .dropdown-menu").hide(),o.closest(".language-wrapper").find(".dropdown .dropdown-toggle").removeClass("active"))})})})();