!function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){e.exports=n(1)},function(e,t){!function(){var e,t,n,o,i,d;function l(n){e.setPluginEnabled(!t),window.close()}function c(o){t&&(e.setMonitorVideoTags(!n),window.close())}function r(n){t&&(chrome.tabs.getSelected(null,function(t){if(d&&e.removeBlackListPage(t.url,t.id),i){var n=t.url,o=n.indexOf("://");if(o>=0){var l,c=n.indexOf("/",o+3);l=c>=0?n.substring(0,c):n,e.removeBlackListWebsite(l,t.url,t.id,!0)}}else d||e.addBlackListPage(t.url,t.id)}),window.close())}function a(n){t&&(chrome.tabs.getSelected(null,function(t){var n=t.url,o=n.indexOf("://");if(o>=0){var d,l=n.indexOf("/",o+3);d=l>=0?n.substring(0,l):n,i?e.removeBlackListWebsite(d,t.url,t.id):e.addBlackListWebsite(d,t.id)}}),window.close())}function u(t){e.onFeedback(),window.close()}function s(n){t&&chrome.tabs.query({active:!0,lastFocusedWindow:!0},function(t){if(t)for(var n=0;n<t.length;n++){var o=t[n];e.enterMultiDownload(o.id,o.url)}}),window.close()}function m(n){t&&(e.setMultiSelectShortcutEnable(!o),window.close()),window.close()}function b(t){chrome.tabs.create({url:"https://down.sandai.net/thunder11/XunLeiWebSetup_ext.exe"},function(){}),e.trackEvent(1022,927)}function g(){(e=chrome.extension.getBackgroundPage()).isException()?function(){var e=document.getElementById("ThunderChromeSupport");document.body.removeChild(e.parentNode);var t=document.getElementById("EnterMultiSelect");document.body.removeChild(t.parentNode);var n=document.getElementById("EnableMultiSelectShortcut");document.body.removeChild(n.parentNode);var o=document.getElementById("MonitorVideoTags");document.body.removeChild(o.parentNode);var i=document.getElementById("ThisPageDisableThunder");document.body.removeChild(i.parentNode);var d=document.getElementById("Feedback");document.body.removeChild(d.parentNode);var l=document.createElement("div");l.innerHTML='\n      <h2>迅雷下载支持异常</h2>\n      <p class="xly-dialog-abnormal__text">您还没安装迅雷，无法支持文件下载，请先安装最新版迅雷。</p>\n      <button class="td-button">立即安装</button>\n      <p class="xly-dialog-abnormal__tips">安装后，重启浏览器生效</p>',l.classList.add("xly-dialog-abnormal"),l.querySelector("button").addEventListener("click",b),document.body.appendChild(l)}():(t=e.isPluginEnabled())?(document.getElementById("ThunderChromeSupport").className="item item-select",(n=e.isVideoMonitor())&&(document.getElementById("MonitorVideoTags").className="item item-select"),(o=e.isMultiSelectShortcutEnable())&&(document.getElementById("EnableMultiSelectShortcut").className="item item-select"),chrome.tabs.getSelected(null,function(t){i=!e.isMonitorDomain(t.url),d=e.checkIsPageInUserBlackList(t.url),i?(document.getElementById("ThisPageDisableThunder").className="item item-select",document.getElementById("ThisWebsiteDisableThunder").className="item item-select"):d&&(document.getElementById("ThisPageDisableThunder").className="item item-select")})):(document.getElementById("ThunderChromeSupport").className="item",document.getElementById("MonitorVideoTags").className="item-disable",document.getElementById("ThisPageDisableThunder").className="item-disable",document.getElementById("ThisWebsiteDisableThunder").className="item-disable",document.getElementById("EnterMultiSelect").className="item-disable",document.getElementById("EnableMultiSelectShortcut").className="item-disable")}document.addEventListener("DOMContentLoaded",function(){document.getElementById("ThunderChromeSupport").addEventListener("click",l),document.getElementById("MonitorVideoTags").addEventListener("click",c),document.getElementById("ThisPageDisableThunder").addEventListener("click",r),document.getElementById("ThisWebsiteDisableThunder").addEventListener("click",a),document.getElementById("Feedback").addEventListener("click",u),document.getElementById("EnterMultiSelect").addEventListener("click",s),document.getElementById("EnableMultiSelectShortcut").addEventListener("click",m),g()})}()}]);
//# sourceMappingURL=popup.js.map