!function(t){var n={};function e(a){if(n[a])return n[a].exports;var l=n[a]={i:a,l:!1,exports:{}};return t[a].call(l.exports,l,l.exports,e),l.l=!0,l.exports}e.m=t,e.c=n,e.d=function(t,n,a){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:a})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(e.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var l in t)e.d(a,l,function(n){return t[n]}.bind(null,l));return a},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=69)}({69:function(t,n){var e=window.AFTHRAMPES_JS||{};jQuery(document).ready((function(t){"use strict";var n=!1;e.install_plugin=function(e,a){n=!0,e.addClass("installing"),t.ajax({type:"POST",url:aft_installer_localize.ajax_url,data:{action:"storecommerce_plugin_installer",plugin:a,nonce:aft_installer_localize.admin_nonce,dataType:"json"},success:function(t){t&&"success"===t.status?(e.attr("class","activate button button-primary"),e.html(aft_installer_localize.activate_btn)):e.removeClass("installing"),n=!1},error:function(t,a,l){console.log(a),e.removeClass("installing"),n=!1}})},e.activate_plugin=function(e,a){e.addClass("installing"),t.ajax({type:"POST",url:aft_installer_localize.ajax_url,data:{action:"storecommerce_plugin_activation",plugin:a,nonce:aft_installer_localize.admin_nonce,dataType:"json"},success:function(t){if(console.log(t),t&&"success"===t.status&&(e.attr("class","installed button disabled"),e.html(aft_installer_localize.installed_btn),e.removeClass("installing"),"af-companion"==t.plugin)){e.html();var a=e.attr("href"),l=a.replace(a,t.redirectUrl);e.attr("href",l),e.removeClass("disabled installed"),e.attr("class","button-primary aft-companion-link primary"),e.html("Get Starter Sites")}n=!1},error:function(t,a,l){e.removeClass("installing"),n=!1}})},t(document).on("click",".aft-plugin-installer a.button",(function(a){var l=t(this),i=l.data("slug");if(a.preventDefault(),!l.hasClass("disabled")){if(n)return!1;l.hasClass("install")&&e.install_plugin(l,i),l.hasClass("activate")&&e.activate_plugin(l,i)}})),t(".aft-dismiss-notice").on("click",(function(){t.ajax({type:"POST",url:aft_installer_localize.ajax_url,data:{action:"aft_notice_dismiss",nonce:aft_installer_localize.admin_nonce},success:function(n){"success"==n.status&&t(".aft-notice-content-wrapper").remove()}})}))}))}});