jQuery(document).ready(function(t){t("a."+wp_to_social_pro.plugin_name+"-refresh-log").on("click",function(o){o.preventDefault();const a=t(this);t.post(wp_to_social_pro.ajax,{action:t(a).data("action"),post:wp_to_social_pro.post_id,nonce:wp_to_social_pro.get_log_nonce},function(o){t("table.widefat tbody",t(t(a).data("target"))).html(o.data)})}),t("a."+wp_to_social_pro.plugin_name+"-clear-log").on("click",function(o){const a=t(this);return confirm(t(a).data("message"))?void 0===t(a).data("action")||void 0===t(a).data("target")||(o.preventDefault(),void t.post(wp_to_social_pro.ajax,{action:t(a).data("action"),post:t("input[name=post_ID]").val(),nonce:wp_to_social_pro.clear_log_nonce},function(){t("table.widefat tbody",t(t(a).data("target"))).html('<tr><td colspan="8">'+wp_to_social_pro.clear_log_completed+"</td></tr>")})):(o.preventDefault(),!1)})});