(()=>{"use strict";function e(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var n=function(){function n(){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n)}var r,o,a;return r=n,(o=[{key:"init",value:function(){$(".language-wrapper .dropdown .dropdown-toggle").off("click").on("click",(function(e){e.preventDefault();var n=$(e.currentTarget);n.hasClass("active")?(n.closest(".language-wrapper").find(".dropdown .dropdown-menu").hide(),n.removeClass("active")):(n.closest(".language-wrapper").find(".dropdown .dropdown-menu").show(),n.addClass("active"))})),$(document).on("click",(function(e){var n=$(e.currentTarget);0===n.closest(".language-wrapper").length&&(n.closest(".language-wrapper").find(".dropdown .dropdown-menu").hide(),n.closest(".language-wrapper").find(".dropdown .dropdown-toggle").removeClass("active"))}))}}])&&e(r.prototype,o),a&&e(r,a),Object.defineProperty(r,"prototype",{writable:!1}),n}();$(document).ready((function(){(new n).init()}))})();