(()=>{var t={669:n=>{n.exports=jQuery}},s={};var o,c,n=function n(a){var e=s[a];return void 0===e&&(e=s[a]={exports:{}},t[a](e,e.exports,n)),e.exports}(669);o=n,c=nextgen_about,o(function(){o(".nextgen-am-plugins-wrap").on("click",".nextgen-am-plugins-install",function(n){n.preventDefault();var s=o(this),n=s.data("url"),a=s.data("basename"),a=(spinner=s.parent().find(".spinner"),message=o(this).parent().parent().find(".nextgen-am-plugins-status"),{url:c.ajax,type:"post",async:!0,cache:!1,dataType:"json",data:{action:"nextgen_install_am_plugin",nonce:c.install_nonce,basename:a,download_url:n},success:function(n){s.text(c.deactivate).removeClass("nextgen-am-plugins-install").addClass("nextgen-am-plugins-deactivate"),o(message).text(c.active);var a=o(message),e=a.html().split(/\s+/),t=e.pop(),e=e.join(" ");spinner.css("visibility","hidden"),a.html([e," <span>",t,"</span>"].join(""))},error:function(n,a,e){console.log(e)}});console.log(spinner),spinner.css("visibility","visible"),o.ajax(a)}),o(".nextgen-am-plugins-wrap").on("click",".nextgen-am-plugins-activate",function(n){n.preventDefault();var s=o(this),n=s.data("url"),a=s.data("basename"),i=s.parent().find(".spinner"),l=o(this).parent().parent().find(".nextgen-am-plugins-status"),a={url:c.ajax,type:"post",async:!0,cache:!1,dataType:"json",data:{action:"nextgen_activate_am_plugin",nonce:c.activate_nonce,basename:a,download_url:n},success:function(n){s.text(c.deactivate).removeClass("nextgen-am-plugins-activate").addClass("nextgen-am-plugins-deactivate"),o(l).text(c.active);var a=o(l),e=a.html().split(/\s+/),t=e.pop(),e=e.join(" ");i.css("visibility","hidden"),a.html([e," <span>",t,"</span>"].join("")),location.reload(!0)},error:function(n,a,e){console.log(e)}};console.log(i),i.css("visibility","visible"),o.ajax(a)}),o(".nextgen-am-plugins-wrap").on("click",".nextgen-am-plugins-deactivate",function(n){n.preventDefault();var s=o(this),n=s.data("url"),a=s.data("basename"),i=s.parent().find(".spinner"),l=o(this).parent().parent().find(".nextgen-am-plugins-status"),a={url:c.ajax,type:"post",async:!0,cache:!1,dataType:"json",data:{action:"nextgen_deactivate_am_plugin",nonce:c.deactivate_nonce,basename:a,download_url:n},success:function(n){s.text(c.activate).removeClass("nextgen-am-plugins-deactivate").addClass("nextgen-am-plugins-activate"),o(l).text(c.inactive);var a=o(l),e=a.html().split(/\s+/),t=e.pop(),e=e.join(" ");i.css("visibility","hidden"),a.html([e," <span>",t,"</span>"].join("")),location.reload(!0)},error:function(n,a,e){console.log(e)}};console.log(i),i.css("visibility","visible"),o.ajax(a)})})})();