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