diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 11:19:16 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 12:07:37 +0000 |
commit | b485aab7e71c1625cfc27e0f92c9509f42378458 (patch) | |
tree | ae9abe108601079d1679194de237c9a435ae5b55 /web/gui/v1/static/js/6.e1951239.chunk.js | |
parent | Adding upstream version 1.44.3. (diff) | |
download | netdata-b485aab7e71c1625cfc27e0f92c9509f42378458.tar.xz netdata-b485aab7e71c1625cfc27e0f92c9509f42378458.zip |
Adding upstream version 1.45.3+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'web/gui/v1/static/js/6.e1951239.chunk.js')
-rw-r--r-- | web/gui/v1/static/js/6.e1951239.chunk.js | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/web/gui/v1/static/js/6.e1951239.chunk.js b/web/gui/v1/static/js/6.e1951239.chunk.js deleted file mode 100644 index e84b27847..000000000 --- a/web/gui/v1/static/js/6.e1951239.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -(this["webpackJsonp@netdata/dashboard"]=this["webpackJsonp@netdata/dashboard"]||[]).push([[6],{582:function(t,i){!function(t){"use strict";var i=null,e=function(t){var i=arguments,e=!0,o=1;return t=t.replace(/%s/g,(function(){var t=i[o++];return"undefined"===typeof t?(e=!1,""):t})),e?t:""},o=function(i,e,o,s){var n="";return t.each(i,(function(t,i){return i[e]!==s||(n=i[o],!1)})),n},s=function(i,e){var o=-1;return t.each(i,(function(t,i){return i.field!==e||(o=t,!1)})),o},n=function(){if(null===i){var e,o,s=t("<p/>").addClass("fixed-table-scroll-inner"),n=t("<div/>").addClass("fixed-table-scroll-outer");n.append(s),t("body").append(n),e=s[0].offsetWidth,n.css("overflow","scroll"),e===(o=s[0].offsetWidth)&&(o=n[0].clientWidth),n.remove(),i=e-o}return i},a=function(i,o,s,n){var a=o;if("string"===typeof o){var r=o.split(".");r.length>1?(a=window,t.each(r,(function(t,i){a=a[i]}))):a=window[o]}return"object"===typeof a?a:"function"===typeof a?a.apply(i,s||[]):!a&&"string"===typeof o&&e.apply(this,[o].concat(s))?e.apply(this,[o].concat(s)):n},r=function(i,e,o){var s=Object.getOwnPropertyNames(i),n=Object.getOwnPropertyNames(e),a="";if(o&&s.length!==n.length)return!1;for(var r=0;r<s.length;r++)if(a=s[r],t.inArray(a,n)>-1&&i[a]!==e[a])return!1;return!0},h=function(t){return"string"===typeof t?t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`"):t},l=function(t){for(var i in t){var e=i.split(/(?=[A-Z])/).join("-").toLowerCase();e!==i&&(t[e]=t[i],delete t[i])}return t},p=function(t,i,e){var o=t;if("string"!==typeof i||t.hasOwnProperty(i))return e?h(t[i]):t[i];var s=i.split(".");for(var n in s)s.hasOwnProperty(n)&&(o=o&&o[s[n]]);return e?h(o):o},c=function(){return!!(navigator.userAgent.indexOf("MSIE ")>0||navigator.userAgent.match(/Trident.*rv\:11\./))},d=function(i,e){this.options=e,this.$el=t(i),this.$el_=this.$el.clone(),this.timeoutId_=0,this.timeoutFooter_=0,this.init()};d.DEFAULTS={classes:"table table-hover",sortClass:void 0,locale:void 0,height:void 0,undefinedText:"-",sortName:void 0,sortOrder:"asc",sortStable:!1,striped:!1,columns:[[]],data:[],totalField:"total",dataField:"rows",method:"get",url:void 0,ajax:void 0,cache:!0,contentType:"application/json",dataType:"json",ajaxOptions:{},queryParams:function(t){return t},queryParamsType:"limit",responseHandler:function(t){return t},pagination:!1,onlyInfoPagination:!1,paginationLoop:!0,sidePagination:"client",totalRows:0,pageNumber:1,pageSize:10,pageList:[10,25,50,100],paginationHAlign:"right",paginationVAlign:"bottom",paginationDetailHAlign:"left",paginationPreText:"‹",paginationNextText:"›",search:!1,searchOnEnterKey:!1,strictSearch:!1,searchAlign:"right",selectItemName:"btSelectItem",showHeader:!0,showFooter:!1,showColumns:!1,showPaginationSwitch:!1,showRefresh:!1,showToggle:!1,buttonsAlign:"right",smartDisplay:!0,escape:!1,minimumCountColumns:1,idField:void 0,uniqueId:void 0,cardView:!1,detailView:!1,detailFormatter:function(t,i){return""},trimOnSearch:!0,clickToSelect:!1,singleSelect:!1,toolbar:void 0,toolbarAlign:"left",checkboxHeader:!0,sortable:!0,silentSort:!0,maintainSelected:!1,searchTimeOut:500,searchText:"",iconSize:void 0,buttonsClass:"default",iconsPrefix:"glyphicon",icons:{paginationSwitchDown:"glyphicon-collapse-down icon-chevron-down",paginationSwitchUp:"glyphicon-collapse-up icon-chevron-up",refresh:"glyphicon-refresh icon-refresh",toggle:"glyphicon-list-alt icon-list-alt",columns:"glyphicon-th icon-th",detailOpen:"glyphicon-plus icon-plus",detailClose:"glyphicon-minus icon-minus"},customSearch:t.noop,customSort:t.noop,rowStyle:function(t,i){return{}},rowAttributes:function(t,i){return{}},footerStyle:function(t,i){return{}},onAll:function(t,i){return!1},onClickCell:function(t,i,e,o){return!1},onDblClickCell:function(t,i,e,o){return!1},onClickRow:function(t,i){return!1},onDblClickRow:function(t,i){return!1},onSort:function(t,i){return!1},onCheck:function(t){return!1},onUncheck:function(t){return!1},onCheckAll:function(t){return!1},onUncheckAll:function(t){return!1},onCheckSome:function(t){return!1},onUncheckSome:function(t){return!1},onLoadSuccess:function(t){return!1},onLoadError:function(t){return!1},onColumnSwitch:function(t,i){return!1},onPageChange:function(t,i){return!1},onSearch:function(t){return!1},onToggle:function(t){return!1},onPreBody:function(t){return!1},onPostBody:function(){return!1},onPostHeader:function(){return!1},onExpandRow:function(t,i,e){return!1},onCollapseRow:function(t,i){return!1},onRefreshOptions:function(t){return!1},onRefresh:function(t){return!1},onResetView:function(){return!1}},(d.LOCALES={})["en-US"]=d.LOCALES.en={formatLoadingMessage:function(){return"Loading, please wait..."},formatRecordsPerPage:function(t){return e("%s rows per page",t)},formatShowingRows:function(t,i,o){return e("Showing %s to %s of %s rows",t,i,o)},formatDetailPagination:function(t){return e("Showing %s rows",t)},formatSearch:function(){return"Search"},formatNoMatches:function(){return"No matching records found"},formatPaginationSwitch:function(){return"Hide/Show pagination"},formatRefresh:function(){return"Refresh"},formatToggle:function(){return"Toggle"},formatColumns:function(){return"Columns"},formatAllRows:function(){return"All"}},t.extend(d.DEFAULTS,d.LOCALES["en-US"]),d.COLUMN_DEFAULTS={radio:!1,checkbox:!1,checkboxEnabled:!0,field:void 0,title:void 0,titleTooltip:void 0,class:void 0,align:void 0,halign:void 0,falign:void 0,valign:void 0,width:void 0,sortable:!1,order:"asc",visible:!0,switchable:!0,clickToSelect:!0,formatter:void 0,footerFormatter:void 0,events:void 0,sorter:void 0,sortName:void 0,cellStyle:void 0,searchable:!0,searchFormatter:!0,cardVisible:!0,escape:!1},d.EVENTS={"all.bs.table":"onAll","click-cell.bs.table":"onClickCell","dbl-click-cell.bs.table":"onDblClickCell","click-row.bs.table":"onClickRow","dbl-click-row.bs.table":"onDblClickRow","sort.bs.table":"onSort","check.bs.table":"onCheck","uncheck.bs.table":"onUncheck","check-all.bs.table":"onCheckAll","uncheck-all.bs.table":"onUncheckAll","check-some.bs.table":"onCheckSome","uncheck-some.bs.table":"onUncheckSome","load-success.bs.table":"onLoadSuccess","load-error.bs.table":"onLoadError","column-switch.bs.table":"onColumnSwitch","page-change.bs.table":"onPageChange","search.bs.table":"onSearch","toggle.bs.table":"onToggle","pre-body.bs.table":"onPreBody","post-body.bs.table":"onPostBody","post-header.bs.table":"onPostHeader","expand-row.bs.table":"onExpandRow","collapse-row.bs.table":"onCollapseRow","refresh-options.bs.table":"onRefreshOptions","reset-view.bs.table":"onResetView","refresh.bs.table":"onRefresh"},d.prototype.init=function(){this.initLocale(),this.initContainer(),this.initTable(),this.initHeader(),this.initData(),this.initHiddenRows(),this.initFooter(),this.initToolbar(),this.initPagination(),this.initBody(),this.initSearchText(),this.initServer()},d.prototype.initLocale=function(){if(this.options.locale){var i=this.options.locale.split(/-|_/);i[0].toLowerCase(),i[1]&&i[1].toUpperCase(),t.fn.bootstrapTable.locales[this.options.locale]?t.extend(this.options,t.fn.bootstrapTable.locales[this.options.locale]):t.fn.bootstrapTable.locales[i.join("-")]?t.extend(this.options,t.fn.bootstrapTable.locales[i.join("-")]):t.fn.bootstrapTable.locales[i[0]]&&t.extend(this.options,t.fn.bootstrapTable.locales[i[0]])}},d.prototype.initContainer=function(){this.$container=t(['<div class="bootstrap-table">','<div class="fixed-table-toolbar"></div>',"top"===this.options.paginationVAlign||"both"===this.options.paginationVAlign?'<div class="fixed-table-pagination" style="clear: both;"></div>':"",'<div class="fixed-table-container">','<div class="fixed-table-header"><table></table></div>','<div class="fixed-table-body">','<div class="fixed-table-loading">',this.options.formatLoadingMessage(),"</div>","</div>",'<div class="fixed-table-footer"><table><tr></tr></table></div>',"bottom"===this.options.paginationVAlign||"both"===this.options.paginationVAlign?'<div class="fixed-table-pagination"></div>':"","</div>","</div>"].join("")),this.$container.insertAfter(this.$el),this.$tableContainer=this.$container.find(".fixed-table-container"),this.$tableHeader=this.$container.find(".fixed-table-header"),this.$tableBody=this.$container.find(".fixed-table-body"),this.$tableLoading=this.$container.find(".fixed-table-loading"),this.$tableFooter=this.$container.find(".fixed-table-footer"),this.$toolbar=this.$container.find(".fixed-table-toolbar"),this.$pagination=this.$container.find(".fixed-table-pagination"),this.$tableBody.append(this.$el),this.$container.after('<div class="clearfix"></div>'),this.$el.addClass(this.options.classes),this.options.striped&&this.$el.addClass("table-striped"),-1!==t.inArray("table-no-bordered",this.options.classes.split(" "))&&this.$tableContainer.addClass("table-no-bordered")},d.prototype.initTable=function(){var i=this,e=[],o=[];if(this.$header=this.$el.find(">thead"),this.$header.length||(this.$header=t("<thead></thead>").appendTo(this.$el)),this.$header.find("tr").each((function(){var i=[];t(this).find("th").each((function(){"undefined"!==typeof t(this).data("field")&&t(this).data("field",t(this).data("field")+""),i.push(t.extend({},{title:t(this).html(),class:t(this).attr("class"),titleTooltip:t(this).attr("title"),rowspan:t(this).attr("rowspan")?+t(this).attr("rowspan"):void 0,colspan:t(this).attr("colspan")?+t(this).attr("colspan"):void 0},t(this).data()))})),e.push(i)})),t.isArray(this.options.columns[0])||(this.options.columns=[this.options.columns]),this.options.columns=t.extend(!0,[],e,this.options.columns),this.columns=[],function(i){var e,o,s,n=0,a=[];for(e=0;e<i[0].length;e++)n+=i[0][e].colspan||1;for(e=0;e<i.length;e++)for(a[e]=[],o=0;o<n;o++)a[e][o]=!1;for(e=0;e<i.length;e++)for(o=0;o<i[e].length;o++){var r=i[e][o],h=r.rowspan||1,l=r.colspan||1,p=t.inArray(!1,a[e]);for(1===l&&(r.fieldIndex=p,"undefined"===typeof r.field&&(r.field=p)),s=0;s<h;s++)a[e+s][p]=!0;for(s=0;s<l;s++)a[e][p+s]=!0}}(this.options.columns),t.each(this.options.columns,(function(e,o){t.each(o,(function(o,s){"undefined"!==typeof(s=t.extend({},d.COLUMN_DEFAULTS,s)).fieldIndex&&(i.columns[s.fieldIndex]=s),i.options.columns[e][o]=s}))})),!this.options.data.length){var s=[];this.$el.find(">tbody>tr").each((function(e){var n={};n._id=t(this).attr("id"),n._class=t(this).attr("class"),n._data=l(t(this).data()),t(this).find(">td").each((function(o){for(var a,r,h=t(this),p=+h.attr("colspan")||1,c=+h.attr("rowspan")||1;s[e]&&s[e][o];o++);for(a=o;a<o+p;a++)for(r=e;r<e+c;r++)s[r]||(s[r]=[]),s[r][a]=!0;var d=i.columns[o].field;n[d]=t(this).html(),n["_"+d+"_id"]=t(this).attr("id"),n["_"+d+"_class"]=t(this).attr("class"),n["_"+d+"_rowspan"]=t(this).attr("rowspan"),n["_"+d+"_colspan"]=t(this).attr("colspan"),n["_"+d+"_title"]=t(this).attr("title"),n["_"+d+"_data"]=l(t(this).data())})),o.push(n)})),this.options.data=o,o.length&&(this.fromHtml=!0)}},d.prototype.initHeader=function(){var i=this,o={},s=[];this.header={fields:[],styles:[],classes:[],formatters:[],events:[],sorters:[],sortNames:[],cellStyles:[],searchables:[]},t.each(this.options.columns,(function(n,a){s.push("<tr>"),0===n&&!i.options.cardView&&i.options.detailView&&s.push(e('<th class="detail" rowspan="%s"><div class="fht-cell"></div></th>',i.options.columns.length)),t.each(a,(function(t,n){var a,r,l="",p="",c=e(' class="%s"',n.class),d=(i.options.sortOrder||n.order,"px"),u=n.width;if(void 0===n.width||i.options.cardView||"string"===typeof n.width&&-1!==n.width.indexOf("%")&&(d="%"),n.width&&"string"===typeof n.width&&(u=n.width.replace("%","").replace("px","")),a=e("text-align: %s; ",n.halign?n.halign:n.align),r=e("text-align: %s; ",n.align),p=e("vertical-align: %s; ",n.valign),p+=e("width: %s; ",!n.checkbox&&!n.radio||u?u?u+d:void 0:"36px"),"undefined"!==typeof n.fieldIndex){if(i.header.fields[n.fieldIndex]=n.field,i.header.styles[n.fieldIndex]=r+p,i.header.classes[n.fieldIndex]=c,i.header.formatters[n.fieldIndex]=n.formatter,i.header.events[n.fieldIndex]=n.events,i.header.sorters[n.fieldIndex]=n.sorter,i.header.sortNames[n.fieldIndex]=n.sortName,i.header.cellStyles[n.fieldIndex]=n.cellStyle,i.header.searchables[n.fieldIndex]=n.searchable,!n.visible)return;if(i.options.cardView&&!n.cardVisible)return;o[n.field]=n}s.push("<th"+e(' title="%s"',n.titleTooltip),n.checkbox||n.radio?e(' class="bs-checkbox %s"',n.class||""):c,e(' style="%s"',a+p),e(' rowspan="%s"',n.rowspan),e(' colspan="%s"',n.colspan),e(' data-field="%s"',n.field),">"),s.push(e('<div class="th-inner %s">',i.options.sortable&&n.sortable?"sortable both":"")),l=i.options.escape?h(n.title):n.title,n.checkbox&&(!i.options.singleSelect&&i.options.checkboxHeader&&(l='<input name="btSelectAll" type="checkbox" />'),i.header.stateField=n.field),n.radio&&(l="",i.header.stateField=n.field,i.options.singleSelect=!0),s.push(l),s.push("</div>"),s.push('<div class="fht-cell"></div>'),s.push("</div>"),s.push("</th>")})),s.push("</tr>")})),this.$header.html(s.join("")),this.$header.find("th[data-field]").each((function(i){t(this).data(o[t(this).data("field")])})),this.$container.off("click",".th-inner").on("click",".th-inner",(function(e){var o=t(this);if(i.options.detailView&&o.closest(".bootstrap-table")[0]!==i.$container[0])return!1;i.options.sortable&&o.parent().data().sortable&&i.onSort(e)})),this.$header.children().children().off("keypress").on("keypress",(function(e){i.options.sortable&&t(this).data().sortable&&(13==(e.keyCode||e.which)&&i.onSort(e))})),t(window).off("resize.bootstrap-table"),!this.options.showHeader||this.options.cardView?(this.$header.hide(),this.$tableHeader.hide(),this.$tableLoading.css("top",0)):(this.$header.show(),this.$tableHeader.show(),this.$tableLoading.css("top",this.$header.outerHeight()+1),this.getCaret(),t(window).on("resize.bootstrap-table",t.proxy(this.resetWidth,this))),this.$selectAll=this.$header.find('[name="btSelectAll"]'),this.$selectAll.off("click").on("click",(function(){var e=t(this).prop("checked");i[e?"checkAll":"uncheckAll"](),i.updateSelected()}))},d.prototype.initFooter=function(){!this.options.showFooter||this.options.cardView?this.$tableFooter.hide():this.$tableFooter.show()},d.prototype.initData=function(t,i){this.data="append"===i?this.data.concat(t):"prepend"===i?[].concat(t).concat(this.data):t||this.options.data,this.options.data="append"===i?this.options.data.concat(t):"prepend"===i?[].concat(t).concat(this.options.data):this.data,"server"!==this.options.sidePagination&&this.initSort()},d.prototype.initSort=function(){var i=this,o=this.options.sortName,s="desc"===this.options.sortOrder?-1:1,n=t.inArray(this.options.sortName,this.header.fields),r=0;this.options.customSort===t.noop?-1!==n&&(this.options.sortStable&&t.each(this.data,(function(t,i){i.hasOwnProperty("_position")||(i._position=t)})),this.data.sort((function(e,r){i.header.sortNames[n]&&(o=i.header.sortNames[n]);var h=p(e,o,i.options.escape),l=p(r,o,i.options.escape),c=a(i.header,i.header.sorters[n],[h,l]);return void 0!==c?s*c:(void 0!==h&&null!==h||(h=""),void 0!==l&&null!==l||(l=""),i.options.sortStable&&h===l&&(h=e._position,l=r._position),t.isNumeric(h)&&t.isNumeric(l)?(h=parseFloat(h))<(l=parseFloat(l))?-1*s:s:h===l?0:("string"!==typeof h&&(h=h.toString()),-1===h.localeCompare(l)?-1*s:s))})),void 0!==this.options.sortClass&&(clearTimeout(r),r=setTimeout((function(){i.$el.removeClass(i.options.sortClass);var t=i.$header.find(e('[data-field="%s"]',i.options.sortName).index()+1);i.$el.find(e("tr td:nth-child(%s)",t)).addClass(i.options.sortClass)}),250))):this.options.customSort.apply(this,[this.options.sortName,this.options.sortOrder])},d.prototype.onSort=function(i){var e="keypress"===i.type?t(i.currentTarget):t(i.currentTarget).parent(),o=this.$header.find("th").eq(e.index());this.$header.add(this.$header_).find("span.order").remove(),this.options.sortName===e.data("field")?this.options.sortOrder="asc"===this.options.sortOrder?"desc":"asc":(this.options.sortName=e.data("field"),this.options.sortOrder="asc"===e.data("order")?"desc":"asc"),this.trigger("sort",this.options.sortName,this.options.sortOrder),e.add(o).data("order",this.options.sortOrder),this.getCaret(),"server"!==this.options.sidePagination?(this.initSort(),this.initBody()):this.initServer(this.options.silentSort)},d.prototype.initToolbar=function(){var i,o,s=this,n=[],r=0,h=0;this.$toolbar.find(".bs-bars").children().length&&t("body").append(t(this.options.toolbar)),this.$toolbar.html(""),"string"!==typeof this.options.toolbar&&"object"!==typeof this.options.toolbar||t(e('<div class="bs-bars pull-%s"></div>',this.options.toolbarAlign)).appendTo(this.$toolbar).append(t(this.options.toolbar)),n=[e('<div class="columns columns-%s btn-group pull-%s">',this.options.buttonsAlign,this.options.buttonsAlign)],"string"===typeof this.options.icons&&(this.options.icons=a(null,this.options.icons)),this.options.showPaginationSwitch&&n.push(e('<button class="btn'+e(" btn-%s",this.options.buttonsClass)+e(" btn-%s",this.options.iconSize)+'" type="button" name="paginationSwitch" aria-label="pagination Switch" title="%s">',this.options.formatPaginationSwitch()),e('<i class="%s %s"></i>',this.options.iconsPrefix,this.options.icons.paginationSwitchDown),"</button>"),this.options.showRefresh&&n.push(e('<button class="btn'+e(" btn-%s",this.options.buttonsClass)+e(" btn-%s",this.options.iconSize)+'" type="button" name="refresh" aria-label="refresh" title="%s">',this.options.formatRefresh()),e('<i class="%s %s"></i>',this.options.iconsPrefix,this.options.icons.refresh),"</button>"),this.options.showToggle&&n.push(e('<button class="btn'+e(" btn-%s",this.options.buttonsClass)+e(" btn-%s",this.options.iconSize)+'" type="button" name="toggle" aria-label="toggle" title="%s">',this.options.formatToggle()),e('<i class="%s %s"></i>',this.options.iconsPrefix,this.options.icons.toggle),"</button>"),this.options.showColumns&&(n.push(e('<div class="keep-open btn-group" title="%s">',this.options.formatColumns()),'<button type="button" aria-label="columns" class="btn'+e(" btn-%s",this.options.buttonsClass)+e(" btn-%s",this.options.iconSize)+' dropdown-toggle" data-toggle="dropdown">',e('<i class="%s %s"></i>',this.options.iconsPrefix,this.options.icons.columns),' <span class="caret"></span>',"</button>",'<ul class="dropdown-menu" role="menu">'),t.each(this.columns,(function(t,i){if(!i.radio&&!i.checkbox&&(!s.options.cardView||i.cardVisible)){var o=i.visible?' checked="checked"':"";i.switchable&&(n.push(e('<li role="menuitem"><label><input type="checkbox" data-field="%s" value="%s"%s> %s</label></li>',i.field,t,o,i.title)),h++)}})),n.push("</ul>","</div>")),n.push("</div>"),(this.showToolbar||n.length>2)&&this.$toolbar.append(n.join("")),this.options.showPaginationSwitch&&this.$toolbar.find('button[name="paginationSwitch"]').off("click").on("click",t.proxy(this.togglePagination,this)),this.options.showRefresh&&this.$toolbar.find('button[name="refresh"]').off("click").on("click",t.proxy(this.refresh,this)),this.options.showToggle&&this.$toolbar.find('button[name="toggle"]').off("click").on("click",(function(){s.toggleView()})),this.options.showColumns&&(i=this.$toolbar.find(".keep-open"),h<=this.options.minimumCountColumns&&i.find("input").prop("disabled",!0),i.find("li").off("click").on("click",(function(t){t.stopImmediatePropagation()})),i.find("input").off("click").on("click",(function(){var i=t(this);s.toggleColumn(t(this).val(),i.prop("checked"),!1),s.trigger("column-switch",t(this).data("field"),i.prop("checked"))}))),this.options.search&&((n=[]).push('<div class="pull-'+this.options.searchAlign+' search">',e('<input class="form-control'+e(" input-%s",this.options.iconSize)+'" type="text" placeholder="%s">',this.options.formatSearch()),"</div>"),this.$toolbar.append(n.join("")),(o=this.$toolbar.find(".search input")).off("keyup drop blur").on("keyup drop blur",(function(i){s.options.searchOnEnterKey&&13!==i.keyCode||t.inArray(i.keyCode,[37,38,39,40])>-1||(clearTimeout(r),r=setTimeout((function(){s.onSearch(i)}),s.options.searchTimeOut))})),c()&&o.off("mouseup").on("mouseup",(function(t){clearTimeout(r),r=setTimeout((function(){s.onSearch(t)}),s.options.searchTimeOut)})))},d.prototype.onSearch=function(i){var e=t.trim(t(i.currentTarget).val());this.options.trimOnSearch&&t(i.currentTarget).val()!==e&&t(i.currentTarget).val(e),e!==this.searchText&&(this.searchText=e,this.options.searchText=e,this.options.pageNumber=1,this.initSearch(),this.updatePagination(),this.trigger("search",e))},d.prototype.initSearch=function(){var i=this;if("server"!==this.options.sidePagination){if(this.options.customSearch!==t.noop)return void this.options.customSearch.apply(this,[this.searchText]);var e=this.searchText&&(this.options.escape?h(this.searchText):this.searchText).toLowerCase(),o=t.isEmptyObject(this.filterColumns)?null:this.filterColumns;this.data=o?t.grep(this.options.data,(function(i,e){for(var s in o)if(t.isArray(o[s])&&-1===t.inArray(i[s],o[s])||!t.isArray(o[s])&&i[s]!==o[s])return!1;return!0})):this.options.data,this.data=e?t.grep(this.data,(function(o,n){for(var r=0;r<i.header.fields.length;r++)if(i.header.searchables[r]){var h,l=t.isNumeric(i.header.fields[r])?parseInt(i.header.fields[r],10):i.header.fields[r],p=i.columns[s(i.columns,l)];if("string"===typeof l){h=o;for(var c=l.split("."),d=0;d<c.length;d++)h=h[c[d]];p&&p.searchFormatter&&(h=a(p,i.header.formatters[r],[h,o,n],h))}else h=o[l];if("string"===typeof h||"number"===typeof h)if(i.options.strictSearch){if((h+"").toLowerCase()===e)return!0}else if(-1!==(h+"").toLowerCase().indexOf(e))return!0}return!1})):this.data}},d.prototype.initPagination=function(){if(this.options.pagination){this.$pagination.show();var i,o,s,n,a,r,h,l,p,c=this,d=[],u=!1,f=this.getData(),g=this.options.pageList;if("server"!==this.options.sidePagination&&(this.options.totalRows=f.length),this.totalPages=0,this.options.totalRows){if(this.options.pageSize===this.options.formatAllRows())this.options.pageSize=this.options.totalRows,u=!0;else if(this.options.pageSize===this.options.totalRows){var b="string"===typeof this.options.pageList?this.options.pageList.replace("[","").replace("]","").replace(/ /g,"").toLowerCase().split(","):this.options.pageList;t.inArray(this.options.formatAllRows().toLowerCase(),b)>-1&&(u=!0)}this.totalPages=1+~~((this.options.totalRows-1)/this.options.pageSize),this.options.totalPages=this.totalPages}if(this.totalPages>0&&this.options.pageNumber>this.totalPages&&(this.options.pageNumber=this.totalPages),this.pageFrom=(this.options.pageNumber-1)*this.options.pageSize+1,this.pageTo=this.options.pageNumber*this.options.pageSize,this.pageTo>this.options.totalRows&&(this.pageTo=this.options.totalRows),d.push('<div class="pull-'+this.options.paginationDetailHAlign+' pagination-detail">','<span class="pagination-info">',this.options.onlyInfoPagination?this.options.formatDetailPagination(this.options.totalRows):this.options.formatShowingRows(this.pageFrom,this.pageTo,this.options.totalRows),"</span>"),!this.options.onlyInfoPagination){d.push('<span class="page-list">');var m=[e('<span class="btn-group %s">',"top"===this.options.paginationVAlign||"both"===this.options.paginationVAlign?"dropdown":"dropup"),'<button type="button" class="btn'+e(" btn-%s",this.options.buttonsClass)+e(" btn-%s",this.options.iconSize)+' dropdown-toggle" data-toggle="dropdown">','<span class="page-size">',u?this.options.formatAllRows():this.options.pageSize,"</span>",' <span class="caret"></span>',"</button>",'<ul class="dropdown-menu" role="menu">'];if("string"===typeof this.options.pageList){var y=this.options.pageList.replace("[","").replace("]","").replace(/ /g,"").split(",");g=[],t.each(y,(function(t,i){g.push(i.toUpperCase()===c.options.formatAllRows().toUpperCase()?c.options.formatAllRows():+i)}))}for(t.each(g,(function(t,i){var o;(!c.options.smartDisplay||0===t||g[t-1]<c.options.totalRows)&&(o=u?i===c.options.formatAllRows()?' class="active"':"":i===c.options.pageSize?' class="active"':"",m.push(e('<li role="menuitem"%s><a href="#">%s</a></li>',o,i)))})),m.push("</ul></span>"),d.push(this.options.formatRecordsPerPage(m.join(""))),d.push("</span>"),d.push("</div>",'<div class="pull-'+this.options.paginationHAlign+' pagination">','<ul class="pagination'+e(" pagination-%s",this.options.iconSize)+'">','<li class="page-pre"><a href="#">'+this.options.paginationPreText+"</a></li>"),this.totalPages<5?(o=1,s=this.totalPages):(s=(o=this.options.pageNumber-2)+4,o<1&&(o=1,s=5),s>this.totalPages&&(o=(s=this.totalPages)-4)),this.totalPages>=6&&(this.options.pageNumber>=3&&(d.push('<li class="page-first'+(1===this.options.pageNumber?" active":"")+'">','<a href="#">',1,"</a>","</li>"),o++),this.options.pageNumber>=4&&(4==this.options.pageNumber||6==this.totalPages||7==this.totalPages?o--:d.push('<li class="page-first-separator disabled">','<a href="#">...</a>',"</li>"),s--)),this.totalPages>=7&&this.options.pageNumber>=this.totalPages-2&&o--,6==this.totalPages?this.options.pageNumber>=this.totalPages-2&&s++:this.totalPages>=7&&(7==this.totalPages||this.options.pageNumber>=this.totalPages-3)&&s++,i=o;i<=s;i++)d.push('<li class="page-number'+(i===this.options.pageNumber?" active":"")+'">','<a href="#">',i,"</a>","</li>");this.totalPages>=8&&this.options.pageNumber<=this.totalPages-4&&d.push('<li class="page-last-separator disabled">','<a href="#">...</a>',"</li>"),this.totalPages>=6&&this.options.pageNumber<=this.totalPages-3&&d.push('<li class="page-last'+(this.totalPages===this.options.pageNumber?" active":"")+'">','<a href="#">',this.totalPages,"</a>","</li>"),d.push('<li class="page-next"><a href="#">'+this.options.paginationNextText+"</a></li>","</ul>","</div>")}this.$pagination.html(d.join("")),this.options.onlyInfoPagination||(n=this.$pagination.find(".page-list a"),a=this.$pagination.find(".page-first"),r=this.$pagination.find(".page-pre"),h=this.$pagination.find(".page-next"),l=this.$pagination.find(".page-last"),p=this.$pagination.find(".page-number"),this.options.smartDisplay&&(this.totalPages<=1&&this.$pagination.find("div.pagination").hide(),(g.length<2||this.options.totalRows<=g[0])&&this.$pagination.find("span.page-list").hide(),this.$pagination[this.getData().length?"show":"hide"]()),this.options.paginationLoop||(1===this.options.pageNumber&&r.addClass("disabled"),this.options.pageNumber===this.totalPages&&h.addClass("disabled")),u&&(this.options.pageSize=this.options.formatAllRows()),n.off("click").on("click",t.proxy(this.onPageListChange,this)),a.off("click").on("click",t.proxy(this.onPageFirst,this)),r.off("click").on("click",t.proxy(this.onPagePre,this)),h.off("click").on("click",t.proxy(this.onPageNext,this)),l.off("click").on("click",t.proxy(this.onPageLast,this)),p.off("click").on("click",t.proxy(this.onPageNumber,this)))}else this.$pagination.hide()},d.prototype.updatePagination=function(i){i&&t(i.currentTarget).hasClass("disabled")||(this.options.maintainSelected||this.resetRows(),this.initPagination(),"server"===this.options.sidePagination?this.initServer():this.initBody(),this.trigger("page-change",this.options.pageNumber,this.options.pageSize))},d.prototype.onPageListChange=function(i){var e=t(i.currentTarget);return e.parent().addClass("active").siblings().removeClass("active"),this.options.pageSize=e.text().toUpperCase()===this.options.formatAllRows().toUpperCase()?this.options.formatAllRows():+e.text(),this.$toolbar.find(".page-size").text(this.options.pageSize),this.updatePagination(i),!1},d.prototype.onPageFirst=function(t){return this.options.pageNumber=1,this.updatePagination(t),!1},d.prototype.onPagePre=function(t){return this.options.pageNumber-1===0?this.options.pageNumber=this.options.totalPages:this.options.pageNumber--,this.updatePagination(t),!1},d.prototype.onPageNext=function(t){return this.options.pageNumber+1>this.options.totalPages?this.options.pageNumber=1:this.options.pageNumber++,this.updatePagination(t),!1},d.prototype.onPageLast=function(t){return this.options.pageNumber=this.totalPages,this.updatePagination(t),!1},d.prototype.onPageNumber=function(i){if(this.options.pageNumber!==+t(i.currentTarget).text())return this.options.pageNumber=+t(i.currentTarget).text(),this.updatePagination(i),!1},d.prototype.initRow=function(i,s,n,r){var l,c=this,d=[],u={},f=[],g="",b={},m=[];if(!(t.inArray(i,this.hiddenRows)>-1)){if((u=a(this.options,this.options.rowStyle,[i,s],u))&&u.css)for(l in u.css)f.push(l+": "+u.css[l]);if(b=a(this.options,this.options.rowAttributes,[i,s],b))for(l in b)m.push(e('%s="%s"',l,h(b[l])));return i._data&&!t.isEmptyObject(i._data)&&t.each(i._data,(function(t,i){"index"!==t&&(g+=e(' data-%s="%s"',t,i))})),d.push("<tr",e(" %s",m.join(" ")),e(' id="%s"',t.isArray(i)?void 0:i._id),e(' class="%s"',u.classes||(t.isArray(i)?void 0:i._class)),e(' data-index="%s"',s),e(' data-uniqueid="%s"',i[this.options.uniqueId]),e("%s",g),">"),this.options.cardView&&d.push(e('<td colspan="%s"><div class="card-views">',this.header.fields.length)),!this.options.cardView&&this.options.detailView&&d.push("<td>",'<a class="detail-icon" href="#">',e('<i class="%s %s"></i>',this.options.iconsPrefix,this.options.icons.detailOpen),"</a>","</td>"),t.each(this.header.fields,(function(n,r){var l="",g=p(i,r,c.options.escape),b="",m="",y={},w="",v=c.header.classes[n],x="",$="",S="",k="",P=c.columns[n];if((!c.fromHtml||"undefined"!==typeof g)&&P.visible&&(!c.options.cardView||P.cardVisible)){if(P.escape&&(g=h(g)),u=e('style="%s"',f.concat(c.header.styles[n]).join("; ")),i["_"+r+"_id"]&&(w=e(' id="%s"',i["_"+r+"_id"])),i["_"+r+"_class"]&&(v=e(' class="%s"',i["_"+r+"_class"])),i["_"+r+"_rowspan"]&&($=e(' rowspan="%s"',i["_"+r+"_rowspan"])),i["_"+r+"_colspan"]&&(S=e(' colspan="%s"',i["_"+r+"_colspan"])),i["_"+r+"_title"]&&(k=e(' title="%s"',i["_"+r+"_title"])),(y=a(c.header,c.header.cellStyles[n],[g,i,s,r],y)).classes&&(v=e(' class="%s"',y.classes)),y.css){var C=[];for(var T in y.css)C.push(T+": "+y.css[T]);u=e('style="%s"',C.concat(c.header.styles[n]).join("; "))}b=a(P,c.header.formatters[n],[g,i,s],g),i["_"+r+"_data"]&&!t.isEmptyObject(i["_"+r+"_data"])&&t.each(i["_"+r+"_data"],(function(t,i){"index"!==t&&(x+=e(' data-%s="%s"',t,i))})),P.checkbox||P.radio?(m=P.checkbox?"checkbox":m,m=P.radio?"radio":m,l=[e(c.options.cardView?'<div class="card-view %s">':'<td class="bs-checkbox %s">',P.class||""),"<input"+e(' data-index="%s"',s)+e(' name="%s"',c.options.selectItemName)+e(' type="%s"',m)+e(' value="%s"',i[c.options.idField])+e(' checked="%s"',!0===b||g||b&&b.checked?"checked":void 0)+e(' disabled="%s"',!P.checkboxEnabled||b&&b.disabled?"disabled":void 0)+" />",c.header.formatters[n]&&"string"===typeof b?b:"",c.options.cardView?"</div>":"</td>"].join(""),i[c.header.stateField]=!0===b||b&&b.checked):(b="undefined"===typeof b||null===b?c.options.undefinedText:b,l=c.options.cardView?['<div class="card-view">',c.options.showHeader?e('<span class="title" %s>%s</span>',u,o(c.columns,"field","title",r)):"",e('<span class="value">%s</span>',b),"</div>"].join(""):[e("<td%s %s %s %s %s %s %s>",w,v,u,x,$,S,k),b,"</td>"].join(""),c.options.cardView&&c.options.smartDisplay&&""===b&&(l='<div class="card-view"></div>')),d.push(l)}})),this.options.cardView&&d.push("</div></td>"),d.push("</tr>"),d.join(" ")}},d.prototype.initBody=function(i){var o=this,n=this.getData();this.trigger("pre-body",n),this.$body=this.$el.find(">tbody"),this.$body.length||(this.$body=t("<tbody></tbody>").appendTo(this.$el)),this.options.pagination&&"server"!==this.options.sidePagination||(this.pageFrom=1,this.pageTo=n.length);for(var r,h=t(document.createDocumentFragment()),l=this.pageFrom-1;l<this.pageTo;l++){var c=n[l],d=this.initRow(c,l,n,h);r=r||!!d,d&&!0!==d&&h.append(d)}r||h.append('<tr class="no-records-found">'+e('<td colspan="%s">%s</td>',this.$header.find("th").length,this.options.formatNoMatches())+"</tr>"),this.$body.html(h),i||this.scrollTo(0),this.$body.find("> tr[data-index] > td").off("click dblclick").on("click dblclick",(function(i){var n=t(this),a=n.parent(),r=o.data[a.data("index")],h=n[0].cellIndex,l=o.getVisibleFields()[o.options.detailView&&!o.options.cardView?h-1:h],c=o.columns[s(o.columns,l)],d=p(r,l,o.options.escape);if(!n.find(".detail-icon").length&&(o.trigger("click"===i.type?"click-cell":"dbl-click-cell",l,d,r,n),o.trigger("click"===i.type?"click-row":"dbl-click-row",r,a,l),"click"===i.type&&o.options.clickToSelect&&c.clickToSelect)){var u=a.find(e('[name="%s"]',o.options.selectItemName));u.length&&u[0].click()}})),this.$body.find("> tr[data-index] > td > .detail-icon").off("click").on("click",(function(){var i=t(this),s=i.parent().parent(),r=s.data("index"),h=n[r];if(s.next().is("tr.detail-view"))i.find("i").attr("class",e("%s %s",o.options.iconsPrefix,o.options.icons.detailOpen)),o.trigger("collapse-row",r,h),s.next().remove();else{i.find("i").attr("class",e("%s %s",o.options.iconsPrefix,o.options.icons.detailClose)),s.after(e('<tr class="detail-view"><td colspan="%s"></td></tr>',s.find("td").length));var l=s.next().find("td"),p=a(o.options,o.options.detailFormatter,[r,h,l],"");1===l.length&&l.append(p),o.trigger("expand-row",r,h,l)}return o.resetView(),!1})),this.$selectItem=this.$body.find(e('[name="%s"]',this.options.selectItemName)),this.$selectItem.off("click").on("click",(function(i){i.stopImmediatePropagation();var e=t(this),s=e.prop("checked"),n=o.data[e.data("index")];o.options.maintainSelected&&t(this).is(":radio")&&t.each(o.options.data,(function(t,i){i[o.header.stateField]=!1})),n[o.header.stateField]=s,o.options.singleSelect&&(o.$selectItem.not(this).each((function(){o.data[t(this).data("index")][o.header.stateField]=!1})),o.$selectItem.filter(":checked").not(this).prop("checked",!1)),o.updateSelected(),o.trigger(s?"check":"uncheck",n,e)})),t.each(this.header.events,(function(i,e){if(e){"string"===typeof e&&(e=a(null,e));var s=o.header.fields[i],n=t.inArray(s,o.getVisibleFields());for(var r in o.options.detailView&&!o.options.cardView&&(n+=1),e)o.$body.find(">tr:not(.no-records-found)").each((function(){var i=t(this),a=i.find(o.options.cardView?".card-view":"td").eq(n),h=r.indexOf(" "),l=r.substring(0,h),p=r.substring(h+1),c=e[r];a.find(p).off(l).on(l,(function(t){var e=i.data("index"),n=o.data[e],a=n[s];c.apply(this,[t,a,n,e])}))}))}})),this.updateSelected(),this.resetView(),this.trigger("post-body",n)},d.prototype.initServer=function(i,e,o){var s,n=this,r={},h={searchText:this.searchText,sortName:this.options.sortName,sortOrder:this.options.sortOrder};this.options.pagination&&(h.pageSize=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,h.pageNumber=this.options.pageNumber),(o||this.options.url||this.options.ajax)&&("limit"===this.options.queryParamsType&&(h={search:h.searchText,sort:h.sortName,order:h.sortOrder},this.options.pagination&&(h.offset=this.options.pageSize===this.options.formatAllRows()?0:this.options.pageSize*(this.options.pageNumber-1),h.limit=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize)),t.isEmptyObject(this.filterColumnsPartial)||(h.filter=JSON.stringify(this.filterColumnsPartial,null)),r=a(this.options,this.options.queryParams,[h],r),t.extend(r,e||{}),!1!==r&&(i||this.$tableLoading.show(),s=t.extend({},a(null,this.options.ajaxOptions),{type:this.options.method,url:o||this.options.url,data:"application/json"===this.options.contentType&&"post"===this.options.method?JSON.stringify(r):r,cache:this.options.cache,contentType:this.options.contentType,dataType:this.options.dataType,success:function(t){t=a(n.options,n.options.responseHandler,[t],t),n.load(t),n.trigger("load-success",t),i||n.$tableLoading.hide()},error:function(t){n.trigger("load-error",t.status,t),i||n.$tableLoading.hide()}}),this.options.ajax?a(this,this.options.ajax,[s],null):(this._xhr&&4!==this._xhr.readyState&&this._xhr.abort(),this._xhr=t.ajax(s))))},d.prototype.initSearchText=function(){if(this.options.search&&""!==this.options.searchText){var t=this.$toolbar.find(".search input");t.val(this.options.searchText),this.onSearch({currentTarget:t})}},d.prototype.getCaret=function(){var i=this;t.each(this.$header.find("th"),(function(e,o){t(o).find(".sortable").removeClass("desc asc").addClass(t(o).data("field")===i.options.sortName?i.options.sortOrder:"both")}))},d.prototype.updateSelected=function(){var i=this.$selectItem.filter(":enabled").length&&this.$selectItem.filter(":enabled").length===this.$selectItem.filter(":enabled").filter(":checked").length;this.$selectAll.add(this.$selectAll_).prop("checked",i),this.$selectItem.each((function(){t(this).closest("tr")[t(this).prop("checked")?"addClass":"removeClass"]("selected")}))},d.prototype.updateRows=function(){var i=this;this.$selectItem.each((function(){i.data[t(this).data("index")][i.header.stateField]=t(this).prop("checked")}))},d.prototype.resetRows=function(){var i=this;t.each(this.data,(function(t,e){i.$selectAll.prop("checked",!1),i.$selectItem.prop("checked",!1),i.header.stateField&&(e[i.header.stateField]=!1)})),this.initHiddenRows()},d.prototype.trigger=function(i){var e=Array.prototype.slice.call(arguments,1);i+=".bs.table",this.options[d.EVENTS[i]].apply(this.options,e),this.$el.trigger(t.Event(i),e),this.options.onAll(i,e),this.$el.trigger(t.Event("all.bs.table"),[i,e])},d.prototype.resetHeader=function(){clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(t.proxy(this.fitHeader,this),this.$el.is(":hidden")?100:0)},d.prototype.fitHeader=function(){var i,o,s,a,r=this;if(r.$el.is(":hidden"))r.timeoutId_=setTimeout(t.proxy(r.fitHeader,r),100);else{if(o=(i=this.$tableBody.get(0)).scrollWidth>i.clientWidth&&i.scrollHeight>i.clientHeight+this.$header.outerHeight()?n():0,this.$el.css("margin-top",-this.$header.outerHeight()),(s=t(":focus")).length>0){var h=s.parents("th");if(h.length>0){var l=h.attr("data-field");if(void 0!==l){var p=this.$header.find("[data-field='"+l+"']");p.length>0&&p.find(":input").addClass("focus-temp")}}}this.$header_=this.$header.clone(!0,!0),this.$selectAll_=this.$header_.find('[name="btSelectAll"]'),this.$tableHeader.css({"margin-right":o}).find("table").css("width",this.$el.outerWidth()).html("").attr("class",this.$el.attr("class")).append(this.$header_),(a=t(".focus-temp:visible:eq(0)")).length>0&&(a.focus(),this.$header.find(".focus-temp").removeClass("focus-temp")),this.$header.find("th[data-field]").each((function(i){r.$header_.find(e('th[data-field="%s"]',t(this).data("field"))).data(t(this).data())}));var c=this.getVisibleFields(),d=this.$header_.find("th");this.$body.find(">tr:first-child:not(.no-records-found) > *").each((function(i){var o=t(this),s=i;r.options.detailView&&!r.options.cardView&&(0===i&&r.$header_.find("th.detail").find(".fht-cell").width(o.innerWidth()),s=i-1);var n=r.$header_.find(e('th[data-field="%s"]',c[s]));n.length>1&&(n=t(d[o[0].cellIndex])),n.find(".fht-cell").width(o.innerWidth())})),this.$tableBody.off("scroll").on("scroll",(function(){r.$tableHeader.scrollLeft(t(this).scrollLeft()),r.options.showFooter&&!r.options.cardView&&r.$tableFooter.scrollLeft(t(this).scrollLeft())})),r.trigger("post-header")}},d.prototype.resetFooter=function(){var i=this,o=i.getData(),s=[];this.options.showFooter&&!this.options.cardView&&(!this.options.cardView&&this.options.detailView&&s.push('<td><div class="th-inner"> </div><div class="fht-cell"></div></td>'),t.each(this.columns,(function(t,n){var r,h,l,p,c=[],d=e(' class="%s"',n.class);if(n.visible&&(!i.options.cardView||n.cardVisible)){if(h=e("text-align: %s; ",n.falign?n.falign:n.align),l=e("vertical-align: %s; ",n.valign),(p=a(null,i.options.footerStyle))&&p.css)for(r in p.css)c.push(r+": "+p.css[r]);s.push("<td",d,e(' style="%s"',h+l+c.concat().join("; ")),">"),s.push('<div class="th-inner">'),s.push(a(n,n.footerFormatter,[o]," ")||" "),s.push("</div>"),s.push('<div class="fht-cell"></div>'),s.push("</div>"),s.push("</td>")}})),this.$tableFooter.find("tr").html(s.join("")),this.$tableFooter.show(),clearTimeout(this.timeoutFooter_),this.timeoutFooter_=setTimeout(t.proxy(this.fitFooter,this),this.$el.is(":hidden")?100:0))},d.prototype.fitFooter=function(){var i,e,o;clearTimeout(this.timeoutFooter_),this.$el.is(":hidden")?this.timeoutFooter_=setTimeout(t.proxy(this.fitFooter,this),100):(o=(e=this.$el.css("width"))>this.$tableBody.width()?n():0,this.$tableFooter.css({"margin-right":o}).find("table").css("width",e).attr("class",this.$el.attr("class")),i=this.$tableFooter.find("td"),this.$body.find(">tr:first-child:not(.no-records-found) > *").each((function(e){var o=t(this);i.eq(e).find(".fht-cell").width(o.innerWidth())})))},d.prototype.toggleColumn=function(t,i,o){if(-1!==t&&(this.columns[t].visible=i,this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns)){var s=this.$toolbar.find(".keep-open input").prop("disabled",!1);o&&s.filter(e('[value="%s"]',t)).prop("checked",i),s.filter(":checked").length<=this.options.minimumCountColumns&&s.filter(":checked").prop("disabled",!0)}},d.prototype.getVisibleFields=function(){var i=this,e=[];return t.each(this.header.fields,(function(t,o){i.columns[s(i.columns,o)].visible&&e.push(o)})),e},d.prototype.resetView=function(t){var i=0;if(t&&t.height&&(this.options.height=t.height),this.$selectAll.prop("checked",this.$selectItem.length>0&&this.$selectItem.length===this.$selectItem.filter(":checked").length),this.options.height){var e=this.$toolbar.outerHeight(!0),o=this.$pagination.outerHeight(!0),s=this.options.height-e-o;this.$tableContainer.css("height",s+"px")}if(this.options.cardView)return this.$el.css("margin-top","0"),this.$tableContainer.css("padding-bottom","0"),void this.$tableFooter.hide();this.options.showHeader&&this.options.height?(this.$tableHeader.show(),this.resetHeader(),i+=this.$header.outerHeight()):(this.$tableHeader.hide(),this.trigger("post-header")),this.options.showFooter&&(this.resetFooter(),this.options.height&&(i+=this.$tableFooter.outerHeight()+1)),this.getCaret(),this.$tableContainer.css("padding-bottom",i+"px"),this.trigger("reset-view")},d.prototype.getData=function(i){return!this.searchText&&t.isEmptyObject(this.filterColumns)&&t.isEmptyObject(this.filterColumnsPartial)?i?this.options.data.slice(this.pageFrom-1,this.pageTo):this.options.data:i?this.data.slice(this.pageFrom-1,this.pageTo):this.data},d.prototype.load=function(i){var e=!1;"server"===this.options.sidePagination?(this.options.totalRows=i[this.options.totalField],e=i.fixedScroll,i=i[this.options.dataField]):t.isArray(i)||(e=i.fixedScroll,i=i.data),this.initData(i),this.initSearch(),this.initPagination(),this.initBody(e)},d.prototype.append=function(t){this.initData(t,"append"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)},d.prototype.prepend=function(t){this.initData(t,"prepend"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)},d.prototype.remove=function(i){var e,o,s=this.options.data.length;if(i.hasOwnProperty("field")&&i.hasOwnProperty("values")){for(e=s-1;e>=0;e--)(o=this.options.data[e]).hasOwnProperty(i.field)&&-1!==t.inArray(o[i.field],i.values)&&(this.options.data.splice(e,1),"server"===this.options.sidePagination&&(this.options.totalRows-=1));s!==this.options.data.length&&(this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))}},d.prototype.removeAll=function(){this.options.data.length>0&&(this.options.data.splice(0,this.options.data.length),this.initSearch(),this.initPagination(),this.initBody(!0))},d.prototype.getRowByUniqueId=function(t){var i,e,o,s=this.options.uniqueId,n=null;for(i=this.options.data.length-1;i>=0;i--){if((e=this.options.data[i]).hasOwnProperty(s))o=e[s];else{if(!e._data.hasOwnProperty(s))continue;o=e._data[s]}if("string"===typeof o?t=t.toString():"number"===typeof o&&(Number(o)===o&&o%1===0?t=parseInt(t):o===Number(o)&&0!==o&&(t=parseFloat(t))),o===t){n=e;break}}return n},d.prototype.removeByUniqueId=function(t){var i=this.options.data.length,e=this.getRowByUniqueId(t);e&&this.options.data.splice(this.options.data.indexOf(e),1),i!==this.options.data.length&&(this.initSearch(),this.initPagination(),this.initBody(!0))},d.prototype.updateByUniqueId=function(i){var e=this,o=t.isArray(i)?i:[i];t.each(o,(function(i,o){var s;o.hasOwnProperty("id")&&o.hasOwnProperty("row")&&-1!==(s=t.inArray(e.getRowByUniqueId(o.id),e.options.data))&&t.extend(e.options.data[s],o.row)})),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)},d.prototype.insertRow=function(t){t.hasOwnProperty("index")&&t.hasOwnProperty("row")&&(this.data.splice(t.index,0,t.row),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))},d.prototype.updateRow=function(i){var e=this,o=t.isArray(i)?i:[i];t.each(o,(function(i,o){o.hasOwnProperty("index")&&o.hasOwnProperty("row")&&t.extend(e.options.data[o.index],o.row)})),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)},d.prototype.initHiddenRows=function(){this.hiddenRows=[]},d.prototype.showRow=function(t){this.toggleRow(t,!0)},d.prototype.hideRow=function(t){this.toggleRow(t,!1)},d.prototype.toggleRow=function(i,e){var o,s;i.hasOwnProperty("index")?o=this.getData()[i.index]:i.hasOwnProperty("uniqueId")&&(o=this.getRowByUniqueId(i.uniqueId)),o&&(s=t.inArray(o,this.hiddenRows),e||-1!==s?e&&s>-1&&this.hiddenRows.splice(s,1):this.hiddenRows.push(o),this.initBody(!0))},d.prototype.getHiddenRows=function(i){var e=this,o=this.getData(),s=[];return t.each(o,(function(i,o){t.inArray(o,e.hiddenRows)>-1&&s.push(o)})),this.hiddenRows=s,s},d.prototype.mergeCells=function(i){var e,o,s,n=i.index,a=t.inArray(i.field,this.getVisibleFields()),r=i.rowspan||1,h=i.colspan||1,l=this.$body.find(">tr");if(this.options.detailView&&!this.options.cardView&&(a+=1),s=l.eq(n).find(">td").eq(a),!(n<0||a<0||n>=this.data.length)){for(e=n;e<n+r;e++)for(o=a;o<a+h;o++)l.eq(e).find(">td").eq(o).hide();s.attr("rowspan",r).attr("colspan",h).show()}},d.prototype.updateCell=function(t){t.hasOwnProperty("index")&&t.hasOwnProperty("field")&&t.hasOwnProperty("value")&&(this.data[t.index][t.field]=t.value,!1!==t.reinit&&(this.initSort(),this.initBody(!0)))},d.prototype.getOptions=function(){return this.options},d.prototype.getSelections=function(){var i=this;return t.grep(this.options.data,(function(t){return!0===t[i.header.stateField]}))},d.prototype.getAllSelections=function(){var i=this;return t.grep(this.options.data,(function(t){return t[i.header.stateField]}))},d.prototype.checkAll=function(){this.checkAll_(!0)},d.prototype.uncheckAll=function(){this.checkAll_(!1)},d.prototype.checkInvert=function(){var i=this.$selectItem.filter(":enabled"),e=i.filter(":checked");i.each((function(){t(this).prop("checked",!t(this).prop("checked"))})),this.updateRows(),this.updateSelected(),this.trigger("uncheck-some",e),e=this.getSelections(),this.trigger("check-some",e)},d.prototype.checkAll_=function(t){var i;t||(i=this.getSelections()),this.$selectAll.add(this.$selectAll_).prop("checked",t),this.$selectItem.filter(":enabled").prop("checked",t),this.updateRows(),t&&(i=this.getSelections()),this.trigger(t?"check-all":"uncheck-all",i)},d.prototype.check=function(t){this.check_(!0,t)},d.prototype.uncheck=function(t){this.check_(!1,t)},d.prototype.check_=function(t,i){var o=this.$selectItem.filter(e('[data-index="%s"]',i)).prop("checked",t);this.data[i][this.header.stateField]=t,this.updateSelected(),this.trigger(t?"check":"uncheck",this.data[i],o)},d.prototype.checkBy=function(t){this.checkBy_(!0,t)},d.prototype.uncheckBy=function(t){this.checkBy_(!1,t)},d.prototype.checkBy_=function(i,o){if(o.hasOwnProperty("field")&&o.hasOwnProperty("values")){var s=this,n=[];t.each(this.options.data,(function(a,r){if(!r.hasOwnProperty(o.field))return!1;if(-1!==t.inArray(r[o.field],o.values)){var h=s.$selectItem.filter(":enabled").filter(e('[data-index="%s"]',a)).prop("checked",i);r[s.header.stateField]=i,n.push(r),s.trigger(i?"check":"uncheck",r,h)}})),this.updateSelected(),this.trigger(i?"check-some":"uncheck-some",n)}},d.prototype.destroy=function(){this.$el.insertBefore(this.$container),t(this.options.toolbar).insertBefore(this.$el),this.$container.next().remove(),this.$container.remove(),this.$el.html(this.$el_.html()).css("margin-top","0").attr("class",this.$el_.attr("class")||"")},d.prototype.showLoading=function(){this.$tableLoading.show()},d.prototype.hideLoading=function(){this.$tableLoading.hide()},d.prototype.togglePagination=function(){this.options.pagination=!this.options.pagination;var t=this.$toolbar.find('button[name="paginationSwitch"] i');this.options.pagination?t.attr("class",this.options.iconsPrefix+" "+this.options.icons.paginationSwitchDown):t.attr("class",this.options.iconsPrefix+" "+this.options.icons.paginationSwitchUp),this.updatePagination()},d.prototype.refresh=function(t){t&&t.url&&(this.options.url=t.url),t&&t.pageNumber&&(this.options.pageNumber=t.pageNumber),t&&t.pageSize&&(this.options.pageSize=t.pageSize),this.initServer(t&&t.silent,t&&t.query,t&&t.url),this.trigger("refresh",t)},d.prototype.resetWidth=function(){this.options.showHeader&&this.options.height&&this.fitHeader(),this.options.showFooter&&this.fitFooter()},d.prototype.showColumn=function(t){this.toggleColumn(s(this.columns,t),!0,!0)},d.prototype.hideColumn=function(t){this.toggleColumn(s(this.columns,t),!1,!0)},d.prototype.getHiddenColumns=function(){return t.grep(this.columns,(function(t){return!t.visible}))},d.prototype.getVisibleColumns=function(){return t.grep(this.columns,(function(t){return t.visible}))},d.prototype.toggleAllColumns=function(i){if(t.each(this.columns,(function(t,e){this.columns[t].visible=i})),this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns){var e=this.$toolbar.find(".keep-open input").prop("disabled",!1);e.filter(":checked").length<=this.options.minimumCountColumns&&e.filter(":checked").prop("disabled",!0)}},d.prototype.showAllColumns=function(){this.toggleAllColumns(!0)},d.prototype.hideAllColumns=function(){this.toggleAllColumns(!1)},d.prototype.filterBy=function(i){this.filterColumns=t.isEmptyObject(i)?{}:i,this.options.pageNumber=1,this.initSearch(),this.updatePagination()},d.prototype.scrollTo=function(t){if("string"===typeof t&&(t="bottom"===t?this.$tableBody[0].scrollHeight:0),"number"===typeof t&&this.$tableBody.scrollTop(t),"undefined"===typeof t)return this.$tableBody.scrollTop()},d.prototype.getScrollPosition=function(){return this.scrollTo()},d.prototype.selectPage=function(t){t>0&&t<=this.options.totalPages&&(this.options.pageNumber=t,this.updatePagination())},d.prototype.prevPage=function(){this.options.pageNumber>1&&(this.options.pageNumber--,this.updatePagination())},d.prototype.nextPage=function(){this.options.pageNumber<this.options.totalPages&&(this.options.pageNumber++,this.updatePagination())},d.prototype.toggleView=function(){this.options.cardView=!this.options.cardView,this.initHeader(),this.initBody(),this.trigger("toggle",this.options.cardView)},d.prototype.refreshOptions=function(i){r(this.options,i,!0)||(this.options=t.extend(this.options,i),this.trigger("refresh-options",this.options),this.destroy(),this.init())},d.prototype.resetSearch=function(t){var i=this.$toolbar.find(".search input");i.val(t||""),this.onSearch({currentTarget:i})},d.prototype.expandRow_=function(t,i){var o=this.$body.find(e('> tr[data-index="%s"]',i));o.next().is("tr.detail-view")===!t&&o.find("> td > .detail-icon").click()},d.prototype.expandRow=function(t){this.expandRow_(!0,t)},d.prototype.collapseRow=function(t){this.expandRow_(!1,t)},d.prototype.expandAllRows=function(i){if(i){var o=this.$body.find(e('> tr[data-index="%s"]',0)),s=this,n=null,a=!1,r=-1;if(o.next().is("tr.detail-view")?o.next().next().is("tr.detail-view")||(o.next().find(".detail-icon").click(),a=!0):(o.find("> td > .detail-icon").click(),a=!0),a)try{r=setInterval((function(){(n=s.$body.find("tr.detail-view").last().find(".detail-icon")).length>0?n.click():clearInterval(r)}),1)}catch(p){clearInterval(r)}}else for(var h=this.$body.children(),l=0;l<h.length;l++)this.expandRow_(!0,t(h[l]).data("index"))},d.prototype.collapseAllRows=function(i){if(i)this.expandRow_(!1,0);else for(var e=this.$body.children(),o=0;o<e.length;o++)this.expandRow_(!1,t(e[o]).data("index"))},d.prototype.updateFormatText=function(t,i){this.options[e("format%s",t)]&&("string"===typeof i?this.options[e("format%s",t)]=function(){return i}:"function"===typeof i&&(this.options[e("format%s",t)]=i)),this.initToolbar(),this.initPagination(),this.initBody()};var u=["getOptions","getSelections","getAllSelections","getData","load","append","prepend","remove","removeAll","insertRow","updateRow","updateCell","updateByUniqueId","removeByUniqueId","getRowByUniqueId","showRow","hideRow","getHiddenRows","mergeCells","checkAll","uncheckAll","checkInvert","check","uncheck","checkBy","uncheckBy","refresh","resetView","resetWidth","destroy","showLoading","hideLoading","showColumn","hideColumn","getHiddenColumns","getVisibleColumns","showAllColumns","hideAllColumns","filterBy","scrollTo","getScrollPosition","selectPage","prevPage","nextPage","togglePagination","toggleView","refreshOptions","resetSearch","expandRow","collapseRow","expandAllRows","collapseAllRows","updateFormatText"];t.fn.bootstrapTable=function(i){var e,o=Array.prototype.slice.call(arguments,1);return this.each((function(){var s=t(this),n=s.data("bootstrap.table"),a=t.extend({},d.DEFAULTS,s.data(),"object"===typeof i&&i);if("string"===typeof i){if(t.inArray(i,u)<0)throw new Error("Unknown method: "+i);if(!n)return;e=n[i].apply(n,o),"destroy"===i&&s.removeData("bootstrap.table")}n||s.data("bootstrap.table",n=new d(this,a))})),"undefined"===typeof e?this:e},t.fn.bootstrapTable.Constructor=d,t.fn.bootstrapTable.defaults=d.DEFAULTS,t.fn.bootstrapTable.columnDefaults=d.COLUMN_DEFAULTS,t.fn.bootstrapTable.locales=d.LOCALES,t.fn.bootstrapTable.methods=u,t.fn.bootstrapTable.utils={sprintf:e,getFieldIndex:s,compareObjects:r,calculateObjectValue:a,getItemField:p,objectKeys:function(){Object.keys||(Object.keys=function(){var t=Object.prototype.hasOwnProperty,i=!{toString:null}.propertyIsEnumerable("toString"),e=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],o=e.length;return function(s){if("object"!==typeof s&&("function"!==typeof s||null===s))throw new TypeError("Object.keys called on non-object");var n,a,r=[];for(n in s)t.call(s,n)&&r.push(n);if(i)for(a=0;a<o;a++)t.call(s,e[a])&&r.push(e[a]);return r}}())},isIEBrowser:c},t((function(){t('[data-toggle="table"]').bootstrapTable()}))}(jQuery)}}]); -//# sourceMappingURL=6.e1951239.chunk.js.map
\ No newline at end of file |