function o(){import.meta.url,import("_").catch(()=>1),async function*(){}().next()}jQuery(document).ready(function(t){const e=t('.notice[data-notice-id="saai-no-agents"]'),i=t("#saai-enable-all-agents");e.on("click",".notice-dismiss",function(n){n.preventDefault(),t.ajax({url:saaiNoAgentsNotice.ajaxUrl,type:"POST",data:{action:"saai_dismiss_no_agents_notice",nonce:saaiNoAgentsNotice.dismissNonce},success:function(){e.fadeOut()}})}),i.on("click",function(n){n.preventDefault();const a=t(this);a.prop("disabled",!0).text("Enabling..."),t.ajax({url:saaiNoAgentsNotice.ajaxUrl,type:"POST",data:{action:"saai_enable_all_agents",nonce:saaiNoAgentsNotice.nonce},success:function(s){s.success?(e.removeClass("notice-info").addClass("notice-success"),e.find("p").text(s.data.message),a.remove(),setTimeout(()=>{e.fadeOut()},3e3)):(e.removeClass("notice-info").addClass("notice-error"),e.find("p").text(s.data.message),a.prop("disabled",!1).text("Turn On All Defaults"))},error:function(){e.removeClass("notice-info").addClass("notice-error"),e.find("p").text("An error occurred while enabling the agents. Please try again."),a.prop("disabled",!1).text("Turn On All Defaults")}})})});export{o as __vite_legacy_guard};
