function o(){import.meta.url,import("_").catch(()=>1),async function*(){}().next()}jQuery(document).ready(function(t){const a=t("#saai-start-chat-setup");t(".storeagent-chat-setup-notice"),a.on("click",function(n){n.preventDefault(),a.prop("disabled",!0).addClass("loading"),t.ajax({url:saaiChatSetup.ajaxUrl,type:"POST",data:{action:"saai_start_chat_setup",nonce:saaiChatSetup.nonce},success:function(e){e.success?window.location.reload():alert(e.data.message)},error:function(){alert("There was an error while setting up StoreAgent Chat. Please try again.")},complete:function(){a.prop("disabled",!1).removeClass("loading")}})})});export{o as __vite_legacy_guard};
