(()=>{"use strict";var t,e={};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),(()=>{var t;e.g.importScripts&&(t=e.g.location+"");var n=e.g.document;if(!t&&n&&(n.currentScript&&(t=n.currentScript.src),!t)){var o=n.getElementsByTagName("script");if(o.length)for(var c=o.length-1;c>-1&&(!t||!/^http(s?):/.test(t));)t=o[c--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e.p=t})(),e.p,jQuery(document).ready((function(t){t(".gtb-notice-action a").on("click",(function(e){e.preventDefault(),t(this).prop("disabled",!0),t(this).off("click"),t(this).text("Loading").addClass("process"),t.ajax({url:gtb_ajax_obj.ajax_url,type:"post",data:{action:"gtb_install_plugin",nonce:gtb_ajax_obj.nonce},success:function(e){e.success?(t(".gtb-notice-action a").text("Activated").removeClass("process").addClass("success"),location.reload()):(t(".gtb-notice-action a").text("Install Gutenverse").removeClass("process"),location.reload())}})}))})),(t=jQuery)(".gutenverse-upgrade-notice.page-content-upgrade.plugin-notice .close-notif").on("click",(function(){t.post(ajaxurl,{action:"gtb_plugin_notice_close"}),t(".gutenverse-upgrade-notice.page-content-upgrade.plugin-notice").fadeOut()}))})();