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