"use strict";var WPMLLanguageSwitcherDropdownClick=function(){function l(e){var t=this.querySelectorAll(i)[0];return"visible"===t.style.visibility?(t.style.visibility="hidden",document.removeEventListener("click",o)):(t.style.visibility="visible",document.addEventListener("click",o),n=!0),!1}function r(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}var c=".js-wpml-ls-legacy-dropdown-click",i=".js-wpml-ls-sub-menu",n=!1,o=function(){if(!n)for(var e=document.querySelectorAll(c),t=0;t