!function(e){var t={};function n(a){if(t[a])return t[a].exports;var s=t[a]={i:a,l:!1,exports:{}};return e[a].call(s.exports,s,s.exports,n),s.l=!0,s.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},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 a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)n.d(a,s,function(t){return e[t]}.bind(null,s));return a},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=338)}({1:function(e,t){e.exports=jQuery},338:function(e,t,n){(function(e){!function(e,t){"use strict";t(".edd-extension-manager__actions").on("click",".edd-extension-manager__action",(function(e){e.preventDefault();var n=t(this),a=n.attr("data-action"),s=n.attr("data-plugin"),i=n.attr("data-type"),d="",r="",o="",l=n.hasClass("edd-button__toggle");if(!n.attr("disabled")){switch(a){case"activate":d="edd_activate_extension",r="edd-plugin__inactive",o="edd-plugin__active",l||n.text(EDDExtensionManager.activating);break;case"install":d="edd_install_extension",o="edd-plugin__active",n.text(EDDExtensionManager.installing);break;case"deactivate":d="edd_deactivate_extension",r="edd-plugin__active",o="edd-plugin__inactive",l||n.text(EDDExtensionManager.deactivating);break;default:return}n.attr("disabled",!0).addClass("edd-updating"),n.hasClass("button-primary")&&n.removeClass("button-primary").addClass("updating-message");var c={action:d,nonce:EDDExtensionManager.extension_manager_nonce,plugin:s,type:i,pass:n.attr("data-pass"),id:n.attr("data-id"),product:n.attr("data-product")};t.post(ajaxurl,c).done((function(e){if(EDDExtensionManager.debug&&console.log(e),t("#edd-admin-about").length){var a=n.closest(".actions");e.success?a.addClass("has-response").empty().append('<div class="status"><span class="status-label active">'+e.data.message+"</span></div>"):((s=e.data.message)||(s=EDDExtensionManager.plugin_install_failed),a.addClass("has-response").empty().append('<div class="status"><span class="status-label">'+s+"</span></div>"))}else{var s,d=n.closest(".edd-extension-manager__step");if(e.success)if(d.length){var l=d.next();l.length&&(d.fadeOut(),l.prepend('<div class="notice inline-notice notice-success"><p>'+e.data.message+"</p></div>"),l.fadeIn())}else n.attr("disabled",!1).removeClass("edd-updating"),n.closest(".edd-extension-manager__card").removeClass(r).addClass(o),e.data.button.length&&n.closest(".edd-extension-manager__control").empty().append(e.data.button);else(s=e.data.message)||(s="plugin"!==i?EDDExtensionManager.extension_install_failed:EDDExtensionManager.plugin_install_failed),d.length?(d.fadeOut(),d.after('<div class="notice inline-notice notice-warning"><p>'+s+"</p></div>")):n.closest(".edd-extension-manager__actions").empty().append('<div class="notice inline-notice notice-warning"><p>'+s+"</p></div>")}}))}}));var n,a=t("#edd-extension-manager__bar-search");function s(){clearTimeout(n),n=setTimeout(i,342)}function i(){var e=a.val().toLowerCase(),n=0;if(e.length)t(".edd-extension-manager__card").each((function(){var a=t(this).text().toLowerCase().includes(e),s=t(this).data("filter")&&t(this).data("filter").toLowerCase().includes(e);a||s?(n++,t(this).removeClass("edd-hidden")):t(this).addClass("edd-hidden")}));else{var s=t(".edd-extension-manager__card");s.removeClass("edd-hidden"),n=s.length}t(".edd-extension-manager__card:not(.edd-hidden)").hide().show(0),t(".edd-extension-manager__results").remove(),t("#edd-extension-manager__bar-search").after('<div role="status" class="edd-extension-manager__results screen-reader-text">'+n+" "+EDDExtensionManager.results+"</div>")}a&&(EDDExtensionManager.filter&&(a.val(EDDExtensionManager.filter),s()),a.on("keyup",(function(e){s()})),a.on("search",(function(e){s()})))}(document,e)}).call(this,n(1))}});