!function(){function closePopup(){window.top.close(),document.body.style.opacity=0,setTimeout((function(){history.go(0)}),300)}var closeButton=document.getElementById("js-close");closeButton.addEventListener("click",closePopup,!1);var manageButton=document.getElementById("js-manage-ext");manageButton.addEventListener("click",(function(){OmegaTargetPopup.openManage(closePopup)}),!1);var learnMoreButton=document.getElementById("js-nc-learn-more");learnMoreButton.addEventListener("click",(function(){OmegaTargetPopup.openOptions("#!/general",closePopup)}),!1),closeButton.textContent=OmegaTargetPopup.getMessage("dialog_cancel"),learnMoreButton.textContent="Learn More",manageButton.textContent=OmegaTargetPopup.getMessage("popup_proxyNotControllableManage"),OmegaTargetPopup.getState(["proxyNotControllable"],(function(err,state){var reason=state.proxyNotControllable,messageElement=document.getElementById("js-nc-text"),detailsElement=document.getElementById("js-nc-details");messageElement.textContent=OmegaTargetPopup.getMessage("popup_proxyNotControllable_"+reason);var detailsMessage=OmegaTargetPopup.getMessage("popup_proxyNotControllableDetails_"+reason);detailsMessage||(detailsMessage=OmegaTargetPopup.getMessage("popup_proxyNotControllableDetails")),detailsElement.textContent=detailsMessage}))}();