jQuery(document).ready(function(o){o("#post-selection").length>0&&wpToSocialProInitSelectize("#post-selection"),o("body.wpzinc").on("change","input[name=toggle]",function(){o(this).is(":checked")?o("ul.categorychecklist input[type=checkbox]").prop("checked",!0):o("ul.categorychecklist input[type=checkbox]").prop("checked",!1)}),o("#progress-bar").length>0&&o("#progress-bar").synchronous_request({url:wp_to_social_pro_bulk_publish.ajax,number_requests:wp_to_social_pro_bulk_publish.number_of_requests,action:wp_to_social_pro_bulk_publish.action,nonce:wp_to_social_pro_bulk_publish.nonce,ids:wp_to_social_pro_bulk_publish.post_ids,stop_on_error:-1,onRequestSuccess(e){return o("tbody",o(this.log)).append(e.data),!0},onRequestError(e,t){return o("tbody",o(this.log)).append('<tr><td colspan="8">'+t+"</td></tr>"),!0},onFinished(){this.cancelled,o("tbody",o(this.log)).append('<tr><td colspan="8">'+wp_to_social_pro_bulk_publish.finished+"</td></tr>")}})});