(()=>{"use strict";document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll("#ac-table-actions .reset-sorting").forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault();var t=e.target;if(t.classList.contains("disabled"))return!1;t.classList.add("disabled"),jQuery.post(ajaxurl,{action:"acp_reset_sorting",list_screen:AC.list_screen,layout:AC.layout,_ajax_nonce:AC.ajax_nonce},(function(e){if(t.classList.remove("disabled"),e&&!0===e.data){var a=new URLSearchParams(window.location.search);a.delete("order"),a.delete("orderby"),window.location.search=a.toString()}}),"json")}))}))}))})();