(()=>{var t={609:e=>{"use strict";e.exports=jQuery}},n={};function r(e){var a=n[e];if(void 0!==a)return a.exports;a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}var s,e;e=r(609),(s=e)(function(){s(".lionsher-partners").on("click",".lionsher-partners-install",function(e){e.preventDefault();var r=s(this),a=r.data("url"),e=r.data("basename"),l=s(this).parent().parent().find(".lionsher-partner-status"),a={url:envira_gallery_welcome.ajax,type:"post",async:!0,cache:!1,dataType:"json",data:{action:"envira_install_partner",nonce:envira_gallery_welcome.install_nonce,basename:e,download_url:a},success:function(e){r.text(envira_gallery_welcome.activate).removeClass("lionsher-partners-install").addClass("lionsher-partners-activate"),s(l).text(envira_gallery_welcome.inactive);var a=s(l),t=a.html().split(/\s+/),n=t.pop(),t=t.join(" ");a.html([t," <span>",n,"</span>"].join(""))},error:function(e,a,t){console.log(t)}};s.ajax(a)}),s(".lionsher-partners").on("click",".lionsher-partners-activate",function(e){e.preventDefault();var r=s(this),a=r.data("url"),e=r.data("basename"),l=s(this).parent().parent().find(".lionsher-partner-status"),a={url:envira_gallery_welcome.ajax,type:"post",async:!0,cache:!1,dataType:"json",data:{action:"envira_activate_partner",nonce:envira_gallery_welcome.activate_nonce,basename:e,download_url:a},success:function(e){r.text(envira_gallery_welcome.deactivate).removeClass("lionsher-partners-activate").addClass("lionsher-partners-deactivate"),s(l).text(envira_gallery_welcome.active);var a=s(l),t=a.html().split(/\s+/),n=t.pop(),t=t.join(" ");a.html([t," <span>",n,"</span>"].join("")),location.reload(!0)},error:function(e,a,t){console.log(t)}};s.ajax(a)}),s(".lionsher-partners").on("click",".lionsher-partners-deactivate",function(e){e.preventDefault();var r=s(this),a=r.data("url"),e=r.data("basename"),l=s(this).parent().parent().find(".lionsher-partner-status"),a={url:envira_gallery_welcome.ajax,type:"post",async:!0,cache:!1,dataType:"json",data:{action:"envira_deactivate_partner",nonce:envira_gallery_welcome.deactivate_nonce,basename:e,download_url:a},success:function(e){r.text(envira_gallery_welcome.activate).removeClass("lionsher-partners-deactivate").addClass("lionsher-partners-activate"),s(l).text(envira_gallery_welcome.inactive);var a=s(l),t=a.html().split(/\s+/),n=t.pop(),t=t.join(" ");a.html([t," <span>",n,"</span>"].join("")),location.reload(!0)},error:function(e,a,t){console.log(t)}};s.ajax(a)})})})();