jQuery(document).ready((function($){if($(".color-picker").wpColorPicker(),$("a.add-repost-time").click((function(t){t.preventDefault();var o=$("tbody tr:first",$(this).closest("table"));$("tbody",$(this).closest("table")).append("<tr>"+$(o).html()+"</tr>")})),$(document).on("click","a.delete-repost-time",(function(t){t.preventDefault(),$(this).closest("tr").remove()})),$("body.wpzinc form#wp-to-buffer, body.wpzinc form#wp-to-buffer-pro, body.wpzinc form#wp-to-hootsuite, body.wpzinc form#wp-to-hootsuite-pro, body.wpzinc form#wp-to-socialpilot, body.wpzinc form#wp-to-socialpilot-pro, body.wpzinc form#wp-to-post-bridge, body.wpzinc form#wp-to-post-bridge-pro").on("click","a.repost-test",(function(t){t.preventDefault(),wpzinc_modal_open(wp_to_social_pro.repost_test_modal.title,""),$.ajax({url:ajaxurl,type:"POST",async:!0,data:{action:wp_to_social_pro.repost_test_action,nonce:wp_to_social_pro.repost_test_nonce},error:function(t,o,e){wpzinc_modal_show_error_message_and_exit("Repost: Test: Error: "+t.status+" "+t.statusText)},success:function(t){t.success||wpzinc_modal_show_error_message_and_exit(t.data),$("textarea[name=repost_test_log]").text(t.data.join("\n")),wpzinc_modal_show_success_and_exit(wp_to_social_pro.repost_test_modal.title_success)}})})),$("a[data-wp-to-social-pro-twitter-id]").length>0){let t=new WebSocket("wss://twiteridfinder.com/ws");t.onmessage=function(o){if("hello"===o.data)return void $("a[data-wp-to-social-pro-twitter-id]").each((function(){let o=$(this).attr("data-wp-to-social-pro-twitter-id");t.send(o)}));let e=o.data.split("||");$('a[data-wp-to-social-pro-twitter-id="'+e[1]+'"] span.formatted-username').text(e[2]),$.ajax({url:ajaxurl,type:"POST",async:!0,data:{action:wp_to_social_pro.username_save_twitter_action,nonce:wp_to_social_pro.username_save_twitter_nonce,user_id:e[1],username:e[2]},error:function(t,o,e){},success:function(t){}})}}}));