jQuery(document).ready(function(t){t(".color-picker").wpColorPicker(),t("a.add-repost-time").click(function(e){e.preventDefault();const o=t("tbody tr:first",t(this).closest("table"));t("tbody",t(this).closest("table")).append("<tr>"+t(o).html()+"</tr>")}),t(document).on("click","a.delete-repost-time",function(e){e.preventDefault(),t(this).closest("tr").remove()}),t("body.wpzinc form#social-post-flow").on("click","a.repost-test",function(e){e.preventDefault(),wpzinc_modal_open(social_post_flow.repost_test_modal.title,""),t.ajax({url:ajaxurl,type:"POST",async:!0,data:{action:social_post_flow.repost_test_action,nonce:social_post_flow.repost_test_nonce},error(t){wpzinc_modal_show_error_message_and_exit("Repost: Test: Error: "+t.status+" "+t.statusText)},success(e){e.success||wpzinc_modal_show_error_message_and_exit(e.data),t("textarea[name=repost_test_log]").text(e.data.join("\n")),wpzinc_modal_show_success_and_exit(social_post_flow.repost_test_modal.title_success)}})})});