"].join(""))}),e.find("li").click(function(){function t(){if("function"!=typeof require)throw new Error("RequireJS not found");require(["tableexport"],function(){s.$el.tableExport(p.extend({},s.options.exportOptions,{type:i,escape:!1}))})}var o,e,n,i=p(this).data("type");"all"===s.options.exportDataType&&s.options.pagination?(s.$el.one("server"===s.options.sidePagination?"post-body.bs.table":"page-change.bs.table",function(){t(),s.togglePagination()}),s.togglePagination()):"selected"===s.options.exportDataType?(o=s.getData(),n=s.getAllSelections(),"server"===s.options.sidePagination&&((o={total:s.options.totalRows})[s.options.dataField]=s.getData(),e="function"==typeof require?require("table"):null,(n={total:s.options.totalRows})[s.options.dataField]=e&&s.options.maintainSelected?e.api.selecteddata(s.$el):s.getAllSelections()),s.load(n),t(),s.load(o)):t()}))}}(jQuery);