var tableProps={getTitle:function(){return jQuery("[name='post_title']").val()},getColumns:function(t){return columns=[],t.find("thead tr th").each((function(){var t=jQuery(this),r=t.attr("data-column-id"),e={name:t.text()};r&&(e.id=r,e.format=t.attr("data-column-format")),columns.push(e)})),columns},getRows:function(t){var r=t.find("tbody tr"),e=r.length,n=[],d=[];return e<=0?{records_inserted:[],records_updated:[]}:(r.each((function(){var t={},r=jQuery(this).find("td"),e=0;void 0!==jQuery(this).attr("data-record-id")&&(e=jQuery(this).attr("data-record-id")),r.each((function(r,e){t[r]=jQuery(e).text()})),0==e?d.push({record_id:e,content:JSON.stringify(t)}):n.push({record_id:e,content:JSON.stringify(t)})})),{records_inserted:d,records_updated:n})}};module.exports=tableProps;