diff --git a/Bootstrap.Admin/wwwroot/lib/bootstrap-table/bootstrap-table.css b/Bootstrap.Admin/wwwroot/lib/bootstrap-table/bootstrap-table.css index 71d1289b..c2e84a24 100755 --- a/Bootstrap.Admin/wwwroot/lib/bootstrap-table/bootstrap-table.css +++ b/Bootstrap.Admin/wwwroot/lib/bootstrap-table/bootstrap-table.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /** * @author zhixin wen - * version: 1.15.3 + * version: 1.15.4 * https://github.com/wenzhixin/bootstrap-table/ */ .bootstrap-table .fixed-table-toolbar::after { @@ -119,6 +119,9 @@ .bootstrap-table .fixed-table-container .table .bs-checkbox { text-align: center; } +.bootstrap-table .fixed-table-container .table .bs-checkbox label { + margin-bottom: 0; +} .bootstrap-table .fixed-table-container .table input[type=radio], .bootstrap-table .fixed-table-container .table input[type=checkbox] { margin: 0 auto !important; diff --git a/Bootstrap.Admin/wwwroot/lib/bootstrap-table/bootstrap-table.js b/Bootstrap.Admin/wwwroot/lib/bootstrap-table/bootstrap-table.js index 79459812..41e7c680 100755 --- a/Bootstrap.Admin/wwwroot/lib/bootstrap-table/bootstrap-table.js +++ b/Bootstrap.Admin/wwwroot/lib/bootstrap-table/bootstrap-table.js @@ -2634,7 +2634,7 @@ throw new TypeError("Invalid attempt to destructure non-iterable instance"); } - var VERSION = '1.15.3'; + var VERSION = '1.15.4'; var bootstrapVersion = 4; try { @@ -2689,8 +2689,8 @@ icon: '', inputGroup: '
%s%s
', searchInput: '', - searchButton: '', - searchClearButton: '' + searchButton: '', + searchClearButton: '' } }, 4: { @@ -2734,8 +2734,8 @@ icon: '', inputGroup: '
%s
%s
', searchInput: '', - searchButton: '', - searchClearButton: '' + searchButton: '', + searchClearButton: '' } } }[bootstrapVersion]; @@ -4005,10 +4005,6 @@ } columns.forEach(function (column, j) { - if (!column.visible) { - return; - } - var class_ = Utils.sprintf(' class="%s"', column['class']); var unitWidth = column.widthUnit; var width = parseFloat(column.width); @@ -4017,6 +4013,10 @@ var style = Utils.sprintf('vertical-align: %s; ', column.valign); style += Utils.sprintf('width: %s; ', (column.checkbox || column.radio) && !width ? !column.showSelectTitle ? '36px' : undefined : width ? width + unitWidth : undefined); + if (typeof column.fieldIndex === 'undefined' && !column.visible) { + return; + } + if (typeof column.fieldIndex !== 'undefined') { _this2.header.fields[column.fieldIndex] = column.field; _this2.header.styles[column.fieldIndex] = align + style; @@ -4029,6 +4029,10 @@ _this2.header.cellStyles[column.fieldIndex] = column.cellStyle; _this2.header.searchables[column.fieldIndex] = column.searchable; + if (!column.visible) { + return; + } + if (_this2.options.cardView && !column.cardVisible) { return; } @@ -4364,17 +4368,19 @@ _this4._toggleAllColumns($(currentTarget).prop('checked')); }); - } + } // Fix #4516: this.showSearchClearButton is for extensions - if (o.search) { + + if (o.search || this.showSearchClearButton) { html = []; - var showSearchButton = Utils.sprintf(this.constants.html.searchButton, o.formatSearch(), o.showButtonIcons ? Utils.sprintf(this.constants.html.icon, o.iconsPrefix, o.icons.search) : '', o.showButtonText ? o.formatSearch() : ''); - var showSearchClearButton = Utils.sprintf(this.constants.html.searchClearButton, o.formatClearSearch(), o.showButtonIcons ? Utils.sprintf(this.constants.html.icon, o.iconsPrefix, o.icons.clearSearch) : '', o.showButtonText ? o.formatClearSearch() : ''); + var showSearchButton = Utils.sprintf(this.constants.html.searchButton, this.constants.buttonsClass, o.formatSearch(), o.showButtonIcons ? Utils.sprintf(this.constants.html.icon, o.iconsPrefix, o.icons.search) : '', o.showButtonText ? o.formatSearch() : ''); + var showSearchClearButton = Utils.sprintf(this.constants.html.searchClearButton, this.constants.buttonsClass, o.formatClearSearch(), o.showButtonIcons ? Utils.sprintf(this.constants.html.icon, o.iconsPrefix, o.icons.clearSearch) : '', o.showButtonText ? o.formatClearSearch() : ''); var searchInputHtml = ""); var searchInputFinalHtml = searchInputHtml; if (o.showSearchButton || o.showSearchClearButton) { - searchInputFinalHtml = Utils.sprintf(this.constants.html.inputGroup, searchInputHtml, (o.showSearchButton ? showSearchButton : '') + (o.showSearchClearButton ? showSearchClearButton : '')); + var buttonsHtml = (o.showSearchButton ? showSearchButton : '') + (o.showSearchClearButton ? showSearchClearButton : ''); + searchInputFinalHtml = o.search ? Utils.sprintf(this.constants.html.inputGroup, searchInputHtml, buttonsHtml) : buttonsHtml; } html.push(Utils.sprintf("\n
\n %s\n
\n "), searchInputFinalHtml)); @@ -4403,10 +4409,6 @@ if (o.showSearchClearButton) { this.$toolbar.find('.search button[name=clearSearch]').click(function () { _this4.resetSearch(); - - _this4.onSearch({ - currentTarget: _this4.$toolbar.find('.search input') - }); }); } } @@ -4420,7 +4422,7 @@ var overwriteSearchText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - if (currentTarget !== undefined && overwriteSearchText) { + if (currentTarget !== undefined && $(currentTarget).length && overwriteSearchText) { var text = $(currentTarget).val().trim(); if (this.options.trimOnSearch && $(currentTarget).val() !== text) { @@ -4462,7 +4464,7 @@ if (this.options.sidePagination !== 'server') { if (this.options.customSearch) { - this.data = Utils.calculateObjectValue(this.options, this.options.customSearch, [this.options.data, this.searchText]); + this.data = Utils.calculateObjectValue(this.options, this.options.customSearch, [this.options.data, this.searchText, this.filterColumns]); return; } @@ -5270,7 +5272,7 @@ _this8.$body.find('>tr:not(.no-records-found)').each(function (i, tr) { var $tr = $(tr); - var $td = $tr.find(_this8.options.cardView ? '.card-view' : 'td').eq(fieldIndex); + var $td = $tr.find(_this8.options.cardView ? '.card-views>.card-view' : '>td').eq(fieldIndex); var index = key.indexOf(' '); var name = key.substring(0, index); var el = key.substring(index + 1); @@ -5346,8 +5348,8 @@ params.filter = JSON.stringify(this.filterColumnsPartial, null); } - data = Utils.calculateObjectValue(this.options, this.options.queryParams, [params], data); - $.extend(data, query || {}); // false to stop request + $.extend(params, query || {}); + data = Utils.calculateObjectValue(this.options, this.options.queryParams, [params], data); // false to stop request if (data === false) { return; @@ -5574,7 +5576,7 @@ if (i === 0) { var $thDetail = $ths.filter('.detail'); - var _zoomWidth = $thDetail.width() - $thDetail.find('.fht-cell').width(); + var _zoomWidth = $thDetail.innerWidth() - $thDetail.find('.fht-cell').width(); $thDetail.find('.fht-cell').width($this.innerWidth() - _zoomWidth); } @@ -5592,7 +5594,7 @@ $th = $($ths[$this[0].cellIndex]); } - var zoomWidth = $th.width() - $th.find('.fht-cell').width(); + var zoomWidth = $th.innerWidth() - $th.find('.fht-cell').width(); $th.find('.fht-cell').width($this.innerWidth() - zoomWidth); }); this.horizontalScroll(); @@ -5709,7 +5711,7 @@ if (i === 0) { var $thDetail = $ths.filter('.detail'); - var _zoomWidth2 = $thDetail.width() - $thDetail.find('.fht-cell').width(); + var _zoomWidth2 = $thDetail.innerWidth() - $thDetail.find('.fht-cell').width(); $thDetail.find('.fht-cell').width($this.innerWidth() - _zoomWidth2); } @@ -5722,7 +5724,7 @@ } var $th = $ths.eq(i); - var zoomWidth = $th.width() - $th.find('.fht-cell').width(); + var zoomWidth = $th.innerWidth() - $th.find('.fht-cell').width(); $th.find('.fht-cell').width($this.innerWidth() - zoomWidth); }); this.horizontalScroll(); @@ -6520,8 +6522,15 @@ } if (obj.values.includes(row[obj.field])) { - var $el = _this22.$selectItem.filter(':enabled').filter(Utils.sprintf('[data-index="%s"]', i)).prop('checked', checked); + var $el = _this22.$selectItem.filter(':enabled').filter(Utils.sprintf('[data-index="%s"]', i)); + $el = checked ? $el.not(':checked') : $el.filter(':checked'); + + if (!$el.length) { + return; + } + + $el.prop('checked', checked); row[_this22.header.stateField] = checked; rows.push(row); diff --git a/Bootstrap.Admin/wwwroot/lib/bootstrap-table/bootstrap-table.min.css b/Bootstrap.Admin/wwwroot/lib/bootstrap-table/bootstrap-table.min.css index d16edc8f..ed995708 100755 --- a/Bootstrap.Admin/wwwroot/lib/bootstrap-table/bootstrap-table.min.css +++ b/Bootstrap.Admin/wwwroot/lib/bootstrap-table/bootstrap-table.min.css @@ -1,10 +1,10 @@ /** * bootstrap-table - An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation) * - * @version v1.15.3 + * @version v1.15.4 * @homepage https://bootstrap-table.com * @author wenzhixin (http://wenzhixin.net.cn/) * @license MIT */ -@charset "UTF-8";.bootstrap-table .fixed-table-toolbar::after{content:"";display:block;clear:both}.bootstrap-table .fixed-table-toolbar .bs-bars,.bootstrap-table .fixed-table-toolbar .search,.bootstrap-table .fixed-table-toolbar .columns{position:relative;margin-top:10px;margin-bottom:10px}.bootstrap-table .fixed-table-toolbar .columns .btn-group>.btn-group{display:inline-block;margin-left:-1px!important}.bootstrap-table .fixed-table-toolbar .columns .btn-group>.btn-group>.btn{border-radius:0}.bootstrap-table .fixed-table-toolbar .columns .btn-group>.btn-group:first-child>.btn{border-top-left-radius:4px;border-bottom-left-radius:4px}.bootstrap-table .fixed-table-toolbar .columns .btn-group>.btn-group:last-child>.btn{border-top-right-radius:4px;border-bottom-right-radius:4px}.bootstrap-table .fixed-table-toolbar .columns .dropdown-menu{text-align:left;max-height:300px;overflow:auto;-ms-overflow-style:scrollbar;z-index:1001}.bootstrap-table .fixed-table-toolbar .columns label{display:block;padding:3px 20px;clear:both;font-weight:normal;line-height:1.428571429}.bootstrap-table .fixed-table-toolbar .columns-left{margin-right:5px}.bootstrap-table .fixed-table-toolbar .columns-right{margin-left:5px}.bootstrap-table .fixed-table-toolbar .pull-right .dropdown-menu{right:0;left:auto}.bootstrap-table .fixed-table-container{position:relative;clear:both}.bootstrap-table .fixed-table-container .table{width:100%;margin-bottom:0!important}.bootstrap-table .fixed-table-container .table th,.bootstrap-table .fixed-table-container .table td{vertical-align:middle;box-sizing:border-box}.bootstrap-table .fixed-table-container .table thead th{vertical-align:bottom;padding:0;margin:0}.bootstrap-table .fixed-table-container .table thead th:focus{outline:0 solid transparent}.bootstrap-table .fixed-table-container .table thead th.detail{width:30px}.bootstrap-table .fixed-table-container .table thead th .th-inner{padding:.75rem;vertical-align:bottom;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bootstrap-table .fixed-table-container .table thead th .sortable{cursor:pointer;background-position:right;background-repeat:no-repeat;padding-right:30px}.bootstrap-table .fixed-table-container .table thead th .both{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAAkElEQVQoz7X QMQ5AQBCF4dWQSJxC5wwax1Cq1e7BAdxD5SL+Tq/QCM1oNiJidwox0355mXnG/DrEtIQ6azioNZQxI0ykPhTQIwhCR+BmBYtlK7kLJYwWCcJA9M4qdrZrd8pPjZWPtOqdRQy320YSV17OatFC4euts6z39GYMKRPCTKY9UnPQ6P+GtMRfGtPnBCiqhAeJPmkqAAAAAElFTkSuQmCC")}.bootstrap-table .fixed-table-container .table thead th .asc{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZ0lEQVQ4y2NgGLKgquEuFxBPAGI2ahhWCsS/gDibUoO0gPgxEP8H4ttArEyuQYxAPBdqEAxPBImTY5gjEL9DM+wTENuQahAvEO9DMwiGdwAxOymGJQLxTyD+jgWDxCMZRsEoGAVoAADeemwtPcZI2wAAAABJRU5ErkJggg==")}.bootstrap-table .fixed-table-container .table thead th .desc{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZUlEQVQ4y2NgGAWjYBSggaqGu5FA/BOIv2PBIPFEUgxjB+IdQPwfC94HxLykus4GiD+hGfQOiB3J8SojEE9EM2wuSJzcsFMG4ttQgx4DsRalkZENxL+AuJQaMcsGxBOAmGvopk8AVz1sLZgg0bsAAAAASUVORK5CYII= ")}.bootstrap-table .fixed-table-container .table tbody tr.selected td{background-color:rgba(0,0,0,0.075)}.bootstrap-table .fixed-table-container .table tbody tr.no-records-found{text-align:center}.bootstrap-table .fixed-table-container .table tbody tr .card-view{display:flex}.bootstrap-table .fixed-table-container .table tbody tr .card-view .card-view-title{font-weight:bold;display:inline-block;min-width:30%;text-align:left!important}.bootstrap-table .fixed-table-container .table .bs-checkbox{text-align:center}.bootstrap-table .fixed-table-container .table input[type=radio],.bootstrap-table .fixed-table-container .table input[type=checkbox]{margin:0 auto!important}.bootstrap-table .fixed-table-container .table.table-sm .th-inner{padding:.3rem}.bootstrap-table .fixed-table-container.fixed-height:not(.has-footer){border-bottom:1px solid #dee2e6}.bootstrap-table .fixed-table-container.fixed-height.has-card-view{border-top:1px solid #dee2e6;border-bottom:1px solid #dee2e6}.bootstrap-table .fixed-table-container.fixed-height .fixed-table-border{border-left:1px solid #dee2e6;border-right:1px solid #dee2e6}.bootstrap-table .fixed-table-container.fixed-height .table thead th{border-bottom:1px solid #dee2e6}.bootstrap-table .fixed-table-container.fixed-height .table-dark thead th{border-bottom:1px solid #32383e}.bootstrap-table .fixed-table-container .fixed-table-header{overflow:hidden}.bootstrap-table .fixed-table-container .fixed-table-body{overflow-x:auto;overflow-y:auto;height:100%}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading{align-items:center;background:#fff;display:none;justify-content:center;position:absolute;bottom:0;width:100%;z-index:1000}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap{align-items:baseline;display:flex;justify-content:center}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .loading-text{font-size:2rem;margin-right:6px}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .animation-wrap{align-items:center;display:flex;justify-content:center}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .animation-dot,.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .animation-wrap::after,.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .animation-wrap::before{content:"";animation-duration:1.5s;animation-iteration-count:infinite;animation-name:LOADING;background:#212529;border-radius:50%;display:block;height:5px;margin:0 4px;opacity:0;width:5px}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .animation-dot{animation-delay:.3s}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .animation-wrap::after{animation-delay:.6s}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading.table-dark{background:#212529}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading.table-dark .animation-dot,.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading.table-dark .animation-wrap::after,.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading.table-dark .animation-wrap::before{background:#fff}.bootstrap-table .fixed-table-container .fixed-table-footer{overflow:hidden}.bootstrap-table .fixed-table-pagination::after{content:"";display:block;clear:both}.bootstrap-table .fixed-table-pagination>.pagination-detail,.bootstrap-table .fixed-table-pagination>.pagination{margin-top:10px;margin-bottom:10px}.bootstrap-table .fixed-table-pagination>.pagination-detail .pagination-info{line-height:34px;margin-right:5px}.bootstrap-table .fixed-table-pagination>.pagination-detail .page-list{display:inline-block}.bootstrap-table .fixed-table-pagination>.pagination-detail .page-list .btn-group{position:relative;display:inline-block;vertical-align:middle}.bootstrap-table .fixed-table-pagination>.pagination-detail .page-list .btn-group .dropdown-menu{margin-bottom:0}.bootstrap-table .fixed-table-pagination>.pagination ul.pagination{margin:0}.bootstrap-table .fixed-table-pagination>.pagination ul.pagination a{padding:6px 12px;line-height:1.428571429}.bootstrap-table .fixed-table-pagination>.pagination ul.pagination li.page-intermediate a{color:#c8c8c8}.bootstrap-table .fixed-table-pagination>.pagination ul.pagination li.page-intermediate a::before{content:"⬅"}.bootstrap-table .fixed-table-pagination>.pagination ul.pagination li.page-intermediate a::after{content:"➡"}.bootstrap-table .fixed-table-pagination>.pagination ul.pagination li.disabled a{pointer-events:none;cursor:default}.bootstrap-table.fullscreen{position:fixed;top:0;left:0;z-index:1050;width:100%!important;background:#fff;height:calc(100vh);overflow-y:scroll}div.fixed-table-scroll-inner{width:100%;height:200px}div.fixed-table-scroll-outer{top:0;left:0;visibility:hidden;width:200px;height:150px;overflow:hidden}@keyframes LOADING{0%{opacity:0}50%{opacity:1}to{opacity:0}} \ No newline at end of file +@charset "UTF-8";.bootstrap-table .fixed-table-toolbar::after{content:"";display:block;clear:both}.bootstrap-table .fixed-table-toolbar .bs-bars,.bootstrap-table .fixed-table-toolbar .search,.bootstrap-table .fixed-table-toolbar .columns{position:relative;margin-top:10px;margin-bottom:10px}.bootstrap-table .fixed-table-toolbar .columns .btn-group>.btn-group{display:inline-block;margin-left:-1px!important}.bootstrap-table .fixed-table-toolbar .columns .btn-group>.btn-group>.btn{border-radius:0}.bootstrap-table .fixed-table-toolbar .columns .btn-group>.btn-group:first-child>.btn{border-top-left-radius:4px;border-bottom-left-radius:4px}.bootstrap-table .fixed-table-toolbar .columns .btn-group>.btn-group:last-child>.btn{border-top-right-radius:4px;border-bottom-right-radius:4px}.bootstrap-table .fixed-table-toolbar .columns .dropdown-menu{text-align:left;max-height:300px;overflow:auto;-ms-overflow-style:scrollbar;z-index:1001}.bootstrap-table .fixed-table-toolbar .columns label{display:block;padding:3px 20px;clear:both;font-weight:normal;line-height:1.428571429}.bootstrap-table .fixed-table-toolbar .columns-left{margin-right:5px}.bootstrap-table .fixed-table-toolbar .columns-right{margin-left:5px}.bootstrap-table .fixed-table-toolbar .pull-right .dropdown-menu{right:0;left:auto}.bootstrap-table .fixed-table-container{position:relative;clear:both}.bootstrap-table .fixed-table-container .table{width:100%;margin-bottom:0!important}.bootstrap-table .fixed-table-container .table th,.bootstrap-table .fixed-table-container .table td{vertical-align:middle;box-sizing:border-box}.bootstrap-table .fixed-table-container .table thead th{vertical-align:bottom;padding:0;margin:0}.bootstrap-table .fixed-table-container .table thead th:focus{outline:0 solid transparent}.bootstrap-table .fixed-table-container .table thead th.detail{width:30px}.bootstrap-table .fixed-table-container .table thead th .th-inner{padding:.75rem;vertical-align:bottom;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bootstrap-table .fixed-table-container .table thead th .sortable{cursor:pointer;background-position:right;background-repeat:no-repeat;padding-right:30px}.bootstrap-table .fixed-table-container .table thead th .both{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAAkElEQVQoz7X QMQ5AQBCF4dWQSJxC5wwax1Cq1e7BAdxD5SL+Tq/QCM1oNiJidwox0355mXnG/DrEtIQ6azioNZQxI0ykPhTQIwhCR+BmBYtlK7kLJYwWCcJA9M4qdrZrd8pPjZWPtOqdRQy320YSV17OatFC4euts6z39GYMKRPCTKY9UnPQ6P+GtMRfGtPnBCiqhAeJPmkqAAAAAElFTkSuQmCC")}.bootstrap-table .fixed-table-container .table thead th .asc{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZ0lEQVQ4y2NgGLKgquEuFxBPAGI2ahhWCsS/gDibUoO0gPgxEP8H4ttArEyuQYxAPBdqEAxPBImTY5gjEL9DM+wTENuQahAvEO9DMwiGdwAxOymGJQLxTyD+jgWDxCMZRsEoGAVoAADeemwtPcZI2wAAAABJRU5ErkJggg==")}.bootstrap-table .fixed-table-container .table thead th .desc{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZUlEQVQ4y2NgGAWjYBSggaqGu5FA/BOIv2PBIPFEUgxjB+IdQPwfC94HxLykus4GiD+hGfQOiB3J8SojEE9EM2wuSJzcsFMG4ttQgx4DsRalkZENxL+AuJQaMcsGxBOAmGvopk8AVz1sLZgg0bsAAAAASUVORK5CYII= ")}.bootstrap-table .fixed-table-container .table tbody tr.selected td{background-color:rgba(0,0,0,0.075)}.bootstrap-table .fixed-table-container .table tbody tr.no-records-found{text-align:center}.bootstrap-table .fixed-table-container .table tbody tr .card-view{display:flex}.bootstrap-table .fixed-table-container .table tbody tr .card-view .card-view-title{font-weight:bold;display:inline-block;min-width:30%;text-align:left!important}.bootstrap-table .fixed-table-container .table .bs-checkbox{text-align:center}.bootstrap-table .fixed-table-container .table .bs-checkbox label{margin-bottom:0}.bootstrap-table .fixed-table-container .table input[type=radio],.bootstrap-table .fixed-table-container .table input[type=checkbox]{margin:0 auto!important}.bootstrap-table .fixed-table-container .table.table-sm .th-inner{padding:.3rem}.bootstrap-table .fixed-table-container.fixed-height:not(.has-footer){border-bottom:1px solid #dee2e6}.bootstrap-table .fixed-table-container.fixed-height.has-card-view{border-top:1px solid #dee2e6;border-bottom:1px solid #dee2e6}.bootstrap-table .fixed-table-container.fixed-height .fixed-table-border{border-left:1px solid #dee2e6;border-right:1px solid #dee2e6}.bootstrap-table .fixed-table-container.fixed-height .table thead th{border-bottom:1px solid #dee2e6}.bootstrap-table .fixed-table-container.fixed-height .table-dark thead th{border-bottom:1px solid #32383e}.bootstrap-table .fixed-table-container .fixed-table-header{overflow:hidden}.bootstrap-table .fixed-table-container .fixed-table-body{overflow-x:auto;overflow-y:auto;height:100%}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading{align-items:center;background:#fff;display:none;justify-content:center;position:absolute;bottom:0;width:100%;z-index:1000}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap{align-items:baseline;display:flex;justify-content:center}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .loading-text{font-size:2rem;margin-right:6px}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .animation-wrap{align-items:center;display:flex;justify-content:center}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .animation-dot,.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .animation-wrap::after,.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .animation-wrap::before{content:"";animation-duration:1.5s;animation-iteration-count:infinite;animation-name:LOADING;background:#212529;border-radius:50%;display:block;height:5px;margin:0 4px;opacity:0;width:5px}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .animation-dot{animation-delay:.3s}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .animation-wrap::after{animation-delay:.6s}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading.table-dark{background:#212529}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading.table-dark .animation-dot,.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading.table-dark .animation-wrap::after,.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading.table-dark .animation-wrap::before{background:#fff}.bootstrap-table .fixed-table-container .fixed-table-footer{overflow:hidden}.bootstrap-table .fixed-table-pagination::after{content:"";display:block;clear:both}.bootstrap-table .fixed-table-pagination>.pagination-detail,.bootstrap-table .fixed-table-pagination>.pagination{margin-top:10px;margin-bottom:10px}.bootstrap-table .fixed-table-pagination>.pagination-detail .pagination-info{line-height:34px;margin-right:5px}.bootstrap-table .fixed-table-pagination>.pagination-detail .page-list{display:inline-block}.bootstrap-table .fixed-table-pagination>.pagination-detail .page-list .btn-group{position:relative;display:inline-block;vertical-align:middle}.bootstrap-table .fixed-table-pagination>.pagination-detail .page-list .btn-group .dropdown-menu{margin-bottom:0}.bootstrap-table .fixed-table-pagination>.pagination ul.pagination{margin:0}.bootstrap-table .fixed-table-pagination>.pagination ul.pagination a{padding:6px 12px;line-height:1.428571429}.bootstrap-table .fixed-table-pagination>.pagination ul.pagination li.page-intermediate a{color:#c8c8c8}.bootstrap-table .fixed-table-pagination>.pagination ul.pagination li.page-intermediate a::before{content:"⬅"}.bootstrap-table .fixed-table-pagination>.pagination ul.pagination li.page-intermediate a::after{content:"➡"}.bootstrap-table .fixed-table-pagination>.pagination ul.pagination li.disabled a{pointer-events:none;cursor:default}.bootstrap-table.fullscreen{position:fixed;top:0;left:0;z-index:1050;width:100%!important;background:#fff;height:calc(100vh);overflow-y:scroll}div.fixed-table-scroll-inner{width:100%;height:200px}div.fixed-table-scroll-outer{top:0;left:0;visibility:hidden;width:200px;height:150px;overflow:hidden}@keyframes LOADING{0%{opacity:0}50%{opacity:1}to{opacity:0}} \ No newline at end of file diff --git a/Bootstrap.Admin/wwwroot/lib/bootstrap-table/bootstrap-table.min.js b/Bootstrap.Admin/wwwroot/lib/bootstrap-table/bootstrap-table.min.js index 4fb9a20f..f15f3bef 100755 --- a/Bootstrap.Admin/wwwroot/lib/bootstrap-table/bootstrap-table.min.js +++ b/Bootstrap.Admin/wwwroot/lib/bootstrap-table/bootstrap-table.min.js @@ -1,10 +1,10 @@ /** * bootstrap-table - An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation) * - * @version v1.15.3 + * @version v1.15.4 * @homepage https://bootstrap-table.com * @author wenzhixin (http://wenzhixin.net.cn/) * @license MIT */ -(function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):(e=e||self,e.BootstrapTable=t(e.jQuery))})(this,function(t){'use strict';var m=String.prototype,b=Math.max,y=Math.min,w=Math.floor,v=Math.ceil;function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var o,a=0;aarguments.length?Pe(Te[e])||Pe(C[e]):Te[e]&&Te[e][t]||C[e]&&C[e][t]},Ce=function(e){return isNaN(e=+e)?0:(0o?b(o+t,0):y(o,t)},Ae=function(e){return function(t,o,a){var n,i=M(t),s=Ie(i.length),l=$e(a,s);if(e&&o!=o){for(;s>l;)if(n=i[l++],n!=n)return!0;}else for(;s>l;l++)if((e||l in i)&&i[l]===o)return e||l||0;return!e&&-1}},Ee={includes:Ae(!0),indexOf:Ae(!1)},Re=Ee.indexOf,_e=function(e,t){var o,a=M(e),n=0,s=[];for(o in a)!G(ge,o)&&G(a,o)&&s.push(o);for(;t.length>n;)G(a,o=t[n++])&&(~Re(s,o)||s.push(o));return s},Ne=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Fe=Ne.concat("length","prototype"),De=Object.getOwnPropertyNames||function(e){return _e(e,Fe)},Le={f:De},Ve=Object.getOwnPropertySymbols,Be={f:Ve},He=Oe("Reflect","ownKeys")||function(e){var t=Le.f(ee(e)),o=Be.f;return o?t.concat(o(e)):t},je=function(e,t){for(var o,a=He(t),n=ae.f,s=Z.f,l=0;li;)ae.f(e,o=a[i++],t[o]);return e},ot=Oe("document","documentElement"),at=he("IE_PROTO"),nt="prototype",it=function(){},st=function(){var e,t=K("iframe"),o=Ne.length,a="<",n="script",i=">";for(t.style.display="none",ot.appendChild(t),t.src="java"+n+":"+"",e=t.contentWindow.document,e.open(),e.write(a+n+i+"document.F=Object"+a+"/"+n+i),e.close(),st=e.F;o--;)delete st[nt][Ne[o]];return st()},lt=Object.create||function(e,t){var o;return null===e?o=st():(it[nt]=ee(e),o=new it,it[nt]=null,o[at]=e),void 0===t?o:tt(o,t)};ge[at]=!0;var rt=Le.f,ct={}.toString,dt="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],pt=function(e){try{return rt(e)}catch(e){return dt.slice()}},ut={f:function(e){return dt&&"[object Window]"==ct.call(e)?pt(e):rt(M(e))}},ht=C.Symbol,gt=se("wks"),ft=function(e){return gt[e]||(gt[e]=Qe&&ht[e]||(Qe?ht:pe)("Symbol."+e))},mt={f:ft},bt=ae.f,yt=function(e){var t=Te.Symbol||(Te.Symbol={});G(t,e)||bt(t,e,{value:mt.f(e)})},wt=ae.f,vt=ft("toStringTag"),St=function(e,t,o){e&&!G(e=o?e:e.prototype,vt)&&wt(e,vt,{configurable:!0,value:t})},xt=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function");return e},kt=function(e,t,o){return(xt(e),void 0===t)?e:0===o?function(){return e.call(t)}:1===o?function(o){return e.call(t,o)}:2===o?function(o,a){return e.call(t,o,a)}:3===o?function(o,a,n){return e.call(t,o,a,n)}:function(){return e.apply(t,arguments)}},Tt=ft("species"),Pt=function(e,t){var o;return Je(e)&&(o=e.constructor,"function"==typeof o&&(o===Array||Je(o.prototype))?o=void 0:U(o)&&(o=o[Tt],null===o&&(o=void 0))),new(void 0===o?Array:o)(0===t?0:t)},Ot=[].push,Ct=function(e){var t=1==e,o=4==e,a=6==e;return function(n,i,s,l){for(var r,c,d=Ze(n),p=B(d),u=kt(i,s,3),h=Ie(p.length),g=0,f=l||Pt,m=t?f(n,h):2==e?f(n,0):void 0;h>g;g++)if((5==e||a||g in p)&&(r=p[g],c=u(r,g,d),e))if(t)m[g]=c;else if(c)switch(e){case 3:return!0;case 5:return r;case 6:return g;case 2:Ot.call(m,r);}else if(o)return!1;return a?-1:3==e||o?o:m}},It={forEach:Ct(0),map:Ct(1),filter:Ct(2),some:Ct(3),every:Ct(4),find:Ct(5),findIndex:Ct(6)},$t=It.forEach,At=he("hidden"),Et="Symbol",Rt="prototype",_t=ft("toPrimitive"),Nt=xe.set,Ft=xe.getterFor(Et),Dt=Object[Rt],Lt=C.Symbol,Vt=C.JSON,Bt=Vt&&Vt.stringify,Ht=Z.f,jt=ae.f,Mt=ut.f,Ut=f.f,qt=se("symbols"),zt=se("op-symbols"),Gt=se("string-to-symbol-registry"),Wt=se("symbol-to-string-registry"),Yt=se("wks"),Kt=C.QObject,Xt=!Kt||!Kt[Rt]||!Kt[Rt].findChild,Qt=A&&I(function(){return 7!=lt(jt({},"a",{get:function(){return jt(this,"a",{value:7}).a}})).a})?function(e,t,o){var a=Ht(Dt,t);a&&delete Dt[t],jt(e,t,o),a&&e!==Dt&&jt(Dt,t,a)}:jt,Jt=function(e,t){var o=qt[e]=lt(Lt[Rt]);return Nt(o,{type:Et,tag:e,description:t}),A||(o.description=t),o},Zt=Qe&&"symbol"==typeof Lt.iterator?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof Lt},eo=function(e,t,o){e===Dt&&eo(zt,t,o),ee(e);var a=q(t,!0);return ee(o),G(qt,a)?(o.enumerable?(G(e,At)&&e[At][a]&&(e[At][a]=!1),o=lt(o,{enumerable:F(0,!1)})):(!G(e,At)&&jt(e,At,F(1,{})),e[At][a]=!0),Qt(e,a,o)):jt(e,a,o)},to=function(e,t){ee(e);var o=M(t),a=et(o).concat(io(o));return $t(a,function(t){(!A||oo.call(o,t))&&eo(e,t,o[t])}),e},oo=function(e){var t=q(e,!0),o=Ut.call(this,t);return(this!==Dt||!G(qt,t)||G(zt,t))&&(!(o||!G(this,t)||!G(qt,t)||G(this,At)&&this[At][t])||o)},ao=function(e,t){var o=M(e),a=q(t,!0);if(o!==Dt||!G(qt,a)||G(zt,a)){var n=Ht(o,a);return n&&G(qt,a)&&!(G(o,At)&&o[At][a])&&(n.enumerable=!0),n}},no=function(e){var t=Mt(M(e)),o=[];return $t(t,function(e){G(qt,e)||G(ge,e)||o.push(e)}),o},io=function(e){var t=e===Dt,o=Mt(t?zt:M(e)),a=[];return $t(o,function(e){G(qt,e)&&(!t||G(Dt,e))&&a.push(qt[e])}),a};Qe||(Lt=function(){if(this instanceof Lt)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?arguments[0]+"":void 0,t=pe(e),o=function(e){this===Dt&&o.call(zt,e),G(this,At)&&G(this[At],t)&&(this[At][t]=!1),Qt(this,t,F(1,e))};return A&&Xt&&Qt(Dt,t,{configurable:!0,set:o}),Jt(t,e)},ke(Lt[Rt],"toString",function(){return Ft(this).tag}),f.f=oo,ae.f=eo,Z.f=ao,Le.f=ut.f=no,Be.f=io,A&&(jt(Lt[Rt],"description",{configurable:!0,get:function(){return Ft(this).description}}),ke(Dt,"propertyIsEnumerable",oo,{unsafe:!0})),mt.f=function(e){return Jt(ft(e),e)}),Xe({global:!0,wrap:!0,forced:!Qe,sham:!Qe},{Symbol:Lt}),$t(et(Yt),function(e){yt(e)}),Xe({target:Et,stat:!0,forced:!Qe},{for:function(e){var t=e+"";if(G(Gt,t))return Gt[t];var o=Lt(t);return Gt[t]=o,Wt[o]=t,o},keyFor:function(e){if(!Zt(e))throw TypeError(e+" is not a symbol");return G(Wt,e)?Wt[e]:void 0},useSetter:function(){Xt=!0},useSimple:function(){Xt=!1}}),Xe({target:"Object",stat:!0,forced:!Qe,sham:!A},{create:function(e,t){return void 0===t?lt(e):to(lt(e),t)},defineProperty:eo,defineProperties:to,getOwnPropertyDescriptor:ao}),Xe({target:"Object",stat:!0,forced:!Qe},{getOwnPropertyNames:no,getOwnPropertySymbols:io}),Xe({target:"Object",stat:!0,forced:I(function(){Be.f(1)})},{getOwnPropertySymbols:function(e){return Be.f(Ze(e))}}),Vt&&Xe({target:"JSON",stat:!0,forced:!Qe||I(function(){var e=Lt();return"[null]"!=Bt([e])||"{}"!=Bt({a:e})||"{}"!=Bt(Object(e))})},{stringify:function(e){for(var t,o,a=[e],n=1;arguments.length>n;)a.push(arguments[n++]);if(o=t=a[1],(U(t)||void 0!==e)&&!Zt(e))return Je(t)||(t=function(e,t){if("function"==typeof o&&(t=o.call(this,e,t)),!Zt(t))return t}),a[1]=t,Bt.apply(Vt,a)}}),Lt[Rt][_t]||ne(Lt[Rt],_t,Lt[Rt].valueOf),St(Lt,Et),ge[At]=!0;var so=ae.f,lo=C.Symbol;if(A&&"function"==typeof lo&&(!("description"in lo.prototype)||void 0!==lo().description)){var ro={},co=function(){var e=1>arguments.length||void 0===arguments[0]?void 0:arguments[0]+"",t=this instanceof co?new lo(e):void 0===e?lo():lo(e);return""===e&&(ro[t]=!0),t};je(co,lo);var po=co.prototype=lo.prototype;po.constructor=co;var uo=po.toString,ho="Symbol(test)"==lo("test")+"",go=/^Symbol\((.*)\)[^)]+$/;so(po,"description",{configurable:!0,get:function(){var e=U(this)?this.valueOf():this,t=uo.call(e);if(G(ro,e))return"";var o=ho?t.slice(7,-1):t.replace(go,"$1");return""===o?void 0:o}}),Xe({global:!0,forced:!0},{Symbol:co})}yt("iterator");var fo=function(e,t,o){var a=q(t);a in e?ae.f(e,a,F(0,o)):e[a]=o},mo=ft("species"),bo=function(e){return!I(function(){var t=[],o=t.constructor={};return o[mo]=function(){return{foo:1}},1!==t[e](Boolean).foo})},yo=ft("isConcatSpreadable"),wo=9007199254740991,vo="Maximum allowed index exceeded",So=!I(function(){var e=[];return e[yo]=!1,e.concat()[0]!==e}),xo=bo("concat"),ko=function(e){if(!U(e))return!1;var t=e[yo];return void 0===t?Je(e):!!t};Xe({target:"Array",proto:!0,forced:!So||!xo},{concat:function(){var e,t,o,a,s,l=Ze(this),r=Pt(l,0),c=0;for(e=-1,o=arguments.length;ewo)throw TypeError(vo);for(t=0;t=wo)throw TypeError(vo);fo(r,c++,s)}return r.length=c,r}});var To=It.filter;Xe({target:"Array",proto:!0,forced:!bo("filter")},{filter:function(e){return To(this,e,11/[1].indexOf(1,-0),Bo=Fo("indexOf");Xe({target:"Array",proto:!0,forced:Vo||Bo},{indexOf:function(e){return Vo?Lo.apply(this,arguments)||0:Do(this,e,1=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==o?{value:a,done:!1}:"values"==o?{value:t[a],done:!1}:{value:[a,t[a]],done:!1}},"values");Co("keys"),Co("values"),Co("entries");var ua=[].join,ha=B!=Object,ga=Fo("join",",");Xe({target:"Array",proto:!0,forced:ha||ga},{join:function(e){return ua.call(M(this),void 0===e?",":e)}});var fa=ft("species"),ma=[].slice;Xe({target:"Array",proto:!0,forced:!bo("slice")},{slice:function(e,t){var o,a,i,s=M(this),l=Ie(s.length),r=$e(e,l),c=$e(void 0===t?l:t,l);if(Je(s)&&(o=s.constructor,"function"==typeof o&&(o===Array||Je(o.prototype))?o=void 0:U(o)&&(o=o[fa],null===o&&(o=void 0)),o===Array||void 0===o))return ma.call(s,r,c);for(a=new(void 0===o?Array:o)(b(c-r,0)),i=0;r9007199254740991)throw TypeError("Maximum allowed length exceeded");for(n=Pt(r,a),i=0;ic-a+o;i--)delete r[i-1]}else if(o>a)for(i=c-a;i>d;i--)s=i+a-1,l=i+o-1,s in r?r[l]=r[s]:delete r[l];for(i=0;ir||r>n)return NaN;return parseInt(i,a)}return+c};if(Ye(_a,!Na(" 0o1")||!Na("0b1")||Na("+0x1"))){for(var Va,Ba=function(e){var t=1>arguments.length?0:e,o=this;return o instanceof Ba&&(Da?I(function(){Fa.valueOf.call(o)}):L(o)!=_a)?xa(new Na(La(t)),o,Ba):La(t)},Ha=A?$a(Na):["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY","EPSILON","isFinite","isInteger","isNaN","isSafeInteger","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","parseFloat","parseInt","isInteger"],ja=0;Ha.length>ja;ja++)G(Na,Va=Ha[ja])&&!G(Ba,Va)&&Ea(Ba,Va,Aa(Na,Va));Ba.prototype=Fa,Fa.constructor=Ba,ke(C,_a,Ba)}var Ma=Object.assign,Ua=!Ma||I(function(){var e={},t={},o=Symbol(),a="abcdefghijklmnopqrst";return e[o]=7,a.split("").forEach(function(e){t[e]=e}),7!=Ma({},e)[o]||et(Ma({},t)).join("")!=a})?function(e){for(var t=Ze(e),o=arguments.length,a=1,n=Be.f,i=f.f;o>a;)for(var s,l=B(arguments[a++]),r=n?et(l).concat(n(l)):et(l),c=r.length,d=0;c>d;)s=r[d++],(!A||i.call(l,s))&&(t[s]=l[s]);return t}:Ma;Xe({target:"Object",stat:!0,forced:Object.assign!==Ua},{assign:Ua});var qa=f.f,za=function(e){return function(t){for(var o,a=M(t),n=et(a),s=n.length,l=0,r=[];s>l;)o=n[l++],(!A||qa.call(a,o))&&r.push(e?[o,a[o]]:a[o]);return r}},Ga={entries:za(!0),values:za(!1)},Wa=Ga.entries;Xe({target:"Object",stat:!0},{entries:function(e){return Wa(e)}});var Ya=ft("toStringTag"),Ka="Arguments"==L(function(){return arguments}()),Xa=function(e,t){try{return e[t]}catch(e){}},Qa=function(e){var t,o,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(o=Xa(t=Object(e),Ya))?o:Ka?L(t):"Object"==(a=L(t))&&"function"==typeof t.callee?"Arguments":a},Ja=ft("toStringTag"),Za={};Za[Ja]="z";var en=function(){return"[object "+Qa(this)+"]"},tn=Object.prototype;en!==tn.toString&&ke(tn,"toString",en,{unsafe:!0});var on=Ia.trim,an=C.parseFloat,nn=1/an(ka+"-0")!=-Infinity,sn=nn?function(e){var t=on(e+""),o=an(t);return 0===o&&"-"==t.charAt(0)?-0:o}:an;Xe({global:!0,forced:parseFloat!=sn},{parseFloat:sn});var ln=Ia.trim,rn=C.parseInt,cn=/^[+-]?0[Xx]/,dn=8!==rn(ka+"08")||22!==rn(ka+"0x16"),pn=dn?function(e,t){var o=ln(e+"");return rn(o,t>>>0||(cn.test(o)?16:10))}:rn;Xe({global:!0,forced:parseInt!=pn},{parseInt:pn});var un=function(){var e=ee(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},hn="toString",gn=RegExp.prototype,fn=gn[hn],mn=I(function(){return"/a/b"!=fn.call({source:"a",flags:"b"})}),bn=fn.name!=hn;(mn||bn)&&ke(RegExp.prototype,hn,function(){var e=ee(this),t=e.source+"",o=e.flags,a=(void 0===o&&e instanceof RegExp&&!("flags"in gn)?un.call(e):o)+"";return"/"+t+"/"+a},{unsafe:!0});var yn=ft("match"),wn=function(e){var t;return U(e)&&(void 0===(t=e[yn])?"RegExp"==L(e):!!t)},vn=function(e){if(wn(e))throw TypeError("The method doesn't accept regular expressions");return e},Sn=ft("match");Xe({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(o){try{return t[Sn]=!1,"/./"[e](t)}catch(e){}}return!1}("includes")},{includes:function(e){return!!~(H(this)+"").indexOf(vn(e),1s||s>=l?e?"":void 0:(a=i.charCodeAt(s),55296>a||56319(n=i.charCodeAt(s+1))||57343=o.length?{value:void 0,done:!0}:(e=Tn(o,a),t.index+=e.length,{value:e,done:!1})});var In=RegExp.prototype.exec,$n=m.replace,An=In,En=function(){var e=/a/,t=/b*/g;return In.call(e,"a"),In.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Rn=void 0!==/()??/.exec("")[1];(En||Rn)&&(An=function(e){var t,o,a,n,s=this;return Rn&&(o=new RegExp("^"+s.source+"$(?!\\s)",un.call(s))),En&&(t=s.lastIndex),a=In.call(s,e),En&&a&&(s.lastIndex=s.global?a.index+a[0].length:t),Rn&&a&&1")}),Dn=!I(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var o="ab".split(e);return 2!==o.length||"a"!==o[0]||"b"!==o[1]}),Ln=function(e,t,o,a){var n=ft(e),i=!I(function(){var t={};return t[n]=function(){return 7},7!=""[e](t)}),s=i&&!I(function(){var t=!1,o=/a/;return o.exec=function(){return t=!0,null},"split"===e&&(o.constructor={},o.constructor[Nn]=function(){return o}),o[n](""),!t});if(!i||!s||"replace"===e&&!Fn||"split"===e&&!Dn){var l=/./[n],r=o(n,""[e],function(e,t,o,a,n){return t.exec===_n?i&&!n?{done:!0,value:l.call(t,o,a)}:{done:!0,value:e.call(o,t,a)}:{done:!1}}),c=r[0],d=r[1];ke(String.prototype,e,c),ke(RegExp.prototype,n,2==t?function(e,t){return d.call(e,this,t)}:function(e){return d.call(e,this)}),a&&ne(RegExp.prototype[n],"sham",!0)}},Vn=kn.charAt,Bn=function(e,t,o){return t+(o?Vn(e,t).length:1)},Hn=function(e,t){var o=e.exec;if("function"==typeof o){var a=o.call(e,t);if("object"!=typeof a)throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==L(e))throw TypeError("RegExp#exec called on incompatible receiver");return _n.call(e,t)},jn=/\$([$&'`]|\d\d?|<[^>]*>)/g,Mn=/\$([$&'`]|\d\d?)/g,Un=function(e){return void 0===e?e:e+""};Ln("replace",2,function(e,t,o){function a(e,o,a,i,s,l){var r=a+e.length,c=i.length,n=Mn;return void 0!==s&&(s=Ze(s),n=jn),t.call(l,n,function(t,l){var d;switch(l.charAt(0)){case"$":return"$";case"&":return e;case"`":return o.slice(0,a);case"'":return o.slice(r);case"<":d=s[l.slice(1,-1)];break;default:var p=+l;if(0==p)return t;if(p>c){var n=w(p/10);return 0===n?t:n<=c?void 0===i[n-1]?l.charAt(1):i[n-1]+l.charAt(1):t}d=i[p-1];}return void 0===d?"":d})}return[function(o,a){var n=H(this),i=null==o?void 0:o[e];return void 0===i?t.call(n+"",o,a):i.call(o,n,a)},function(e,n){var s=o(t,e,this,n);if(s.done)return s.value;var l=ee(e),r=this+"",c="function"==typeof n;c||(n+="");var d=l.global;if(d){var p=l.unicode;l.lastIndex=0}for(var u,h,g=[];(u=Hn(l,r),null!==u)&&(g.push(u),!!d);)h=u[0]+"",""==h&&(l.lastIndex=Bn(r,Ie(l.lastIndex),p));for(var f="",m=0,w=0;w=m&&(f+=r.slice(m,S)+O,m=S+v.length)}return f+r.slice(m)}]});var qn=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};Ln("search",1,function(e,t,o){return[function(t){var o=H(this),a=null==t?void 0:t[e];return void 0===a?new RegExp(t)[e](o+""):a.call(t,o)},function(e){var a=o(t,e,this);if(a.done)return a.value;var n=ee(e),i=this+"",s=n.lastIndex;qn(s,0)||(n.lastIndex=0);var l=Hn(n,i);return qn(n.lastIndex,s)||(n.lastIndex=s),null===l?-1:l.index}]});var zn=ft("species"),Gn=function(e,t){var o,a=ee(e).constructor;return void 0===a||null==(o=ee(a)[zn])?t:xt(o)},Wn=[].push,Yn=4294967295,Kn=!I(function(){return!RegExp(Yn,"y")});Ln("split",2,function(e,t,o){var a;return a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(e,o){var a=H(this)+"",n=void 0===o?Yn:o>>>0;if(0===n)return[];if(void 0===e)return[a];if(!wn(e))return t.call(a,e,n);for(var i,s,l,r=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,c+"g");(i=_n.call(p,a))&&(s=p.lastIndex,!(s>d&&(r.push(a.slice(d,i.index)),1=n)));)p.lastIndex===i.index&&p.lastIndex++;return d===a.length?(l||!p.test(""))&&r.push(""):r.push(a.slice(d)),r.length>n?r.slice(0,n):r}:function(e,o){return void 0===e&&0===o?[]:t.call(this,e,o)},[function(t,o){var n=H(this),i=null==t?void 0:t[e];return void 0===i?a.call(n+"",t,o):i.call(t,n,o)},function(n,s){var l=o(a,n,this,s,a!==t);if(l.done)return l.value;var r=ee(n),c=this+"",d=Gn(r,RegExp),u=r.unicode,h=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(Kn?"y":"g"),g=new d(Kn?r:"^(?:"+r.source+")",h),f=void 0===s?Yn:s>>>0;if(0===f)return[];if(0===c.length)return null===Hn(g,c)?[c]:[];for(var m=0,b=0,w=[];b",""],toolbarDropdownItem:"
  • ",toolbarDropdownSeperator:"
  • ",pageDropdown:["
      ","
    "],pageDropdownItem:"
  • %s
  • ",dropdownCaret:"",pagination:["
      ","
    "],paginationItem:"
  • %s
  • ",icon:"",inputGroup:"
    %s%s
    ",searchInput:"",searchButton:"",searchClearButton:""}},4:{iconsPrefix:"fa",icons:{paginationSwitchDown:"fa-caret-square-down",paginationSwitchUp:"fa-caret-square-up",refresh:"fa-sync",toggleOff:"fa-toggle-off",toggleOn:"fa-toggle-on",columns:"fa-th-list",detailOpen:"fa-plus",detailClose:"fa-minus",fullscreen:"fa-arrows-alt",search:"fa-search",clearSearch:"fa-trash"},classes:{buttonsPrefix:"btn",buttons:"secondary",buttonsGroup:"btn-group",buttonsDropdown:"btn-group",pull:"float",inputGroup:"btn-group",input:"form-control",paginationDropdown:"btn-group dropdown",dropup:"dropup",dropdownActive:"active",paginationActive:"active",buttonActive:"active"},html:{toolbarDropdown:["
    ","
    "],toolbarDropdownItem:"",pageDropdown:["
    ","
    "],pageDropdownItem:"%s",toolbarDropdownSeperator:"
    ",dropdownCaret:"",pagination:["
      ","
    "],paginationItem:"
  • %s
  • ",icon:"",inputGroup:"
    %s
    %s
    ",searchInput:"",searchButton:"",searchClearButton:""}}}[di],hi={height:void 0,classes:"table table-bordered table-hover",theadClasses:"",rowStyle:function(){return{}},rowAttributes:function(){return{}},undefinedText:"-",locale:void 0,virtualScroll:!1,virtualScrollItemHeight:void 0,sortable:!0,sortClass:void 0,silentSort:!0,sortName:void 0,sortOrder:"asc",sortStable:!1,rememberOrder:!1,customSort:void 0,columns:[[]],data:[],url:void 0,method:"get",cache:!0,contentType:"application/json",dataType:"json",ajax:void 0,ajaxOptions:{},queryParams:function(e){return e},queryParamsType:"limit",responseHandler:function(e){return e},totalField:"total",totalNotFilteredField:"totalNotFiltered",dataField:"rows",pagination:!1,onlyInfoPagination:!1,showExtendedPagination:!1,paginationLoop:!0,sidePagination:"client",totalRows:0,totalNotFiltered:0,pageNumber:1,pageSize:10,pageList:[10,25,50,100],paginationHAlign:"right",paginationVAlign:"bottom",paginationDetailHAlign:"left",paginationPreText:"‹",paginationNextText:"›",paginationSuccessivelySize:5,paginationPagesBySide:1,paginationUseIntermediate:!1,search:!1,searchOnEnterKey:!1,strictSearch:!1,visibleSearch:!1,showButtonIcons:!0,showButtonText:!1,showSearchButton:!1,showSearchClearButton:!1,trimOnSearch:!0,searchAlign:"right",searchTimeOut:500,searchText:"",customSearch:void 0,showHeader:!0,showFooter:!1,footerStyle:function(){return{}},showColumns:!1,showColumnsToggleAll:!1,minimumCountColumns:1,showPaginationSwitch:!1,showRefresh:!1,showToggle:!1,showFullscreen:!1,smartDisplay:!0,escape:!1,filterOptions:{filterAlgorithm:"and"},idField:void 0,selectItemName:"btSelectItem",clickToSelect:!1,ignoreClickToSelectOn:function(e){var t=e.tagName;return["A","BUTTON"].includes(t)},singleSelect:!1,checkboxHeader:!0,maintainMetaData:!1,multipleSelectRow:!1,uniqueId:void 0,cardView:!1,detailView:!1,detailViewIcon:!0,detailViewByClick:!1,detailFormatter:function(){return""},detailFilter:function(){return!0},toolbar:void 0,toolbarAlign:"left",buttonsToolbar:void 0,buttonsAlign:"right",buttonsPrefix:ui.classes.buttonsPrefix,buttonsClass:ui.classes.buttons,icons:ui.icons,html:ui.html,iconSize:void 0,iconsPrefix:ui.iconsPrefix,onAll:function(){return!1},onClickCell:function(){return!1},onDblClickCell:function(){return!1},onClickRow:function(){return!1},onDblClickRow:function(){return!1},onSort:function(){return!1},onCheck:function(){return!1},onUncheck:function(){return!1},onCheckAll:function(){return!1},onUncheckAll:function(){return!1},onCheckSome:function(){return!1},onUncheckSome:function(){return!1},onLoadSuccess:function(){return!1},onLoadError:function(){return!1},onColumnSwitch:function(){return!1},onPageChange:function(){return!1},onSearch:function(){return!1},onToggle:function(){return!1},onPreBody:function(){return!1},onPostBody:function(){return!1},onPostHeader:function(){return!1},onPostFooter:function(){return!1},onExpandRow:function(){return!1},onCollapseRow:function(){return!1},onRefreshOptions:function(){return!1},onRefresh:function(){return!1},onResetView:function(){return!1},onScrollBody:function(){return!1}},gi={formatLoadingMessage:function(){return"Loading, please wait"},formatRecordsPerPage:function(e){return"".concat(e," rows per page")},formatShowingRows:function(e,t,o,a){return void 0!==a&&0o?"Showing ".concat(e," to ").concat(t," of ").concat(o," rows (filtered from ").concat(a," total rows)"):"Showing ".concat(e," to ").concat(t," of ").concat(o," rows")},formatSRPaginationPreText:function(){return"previous page"},formatSRPaginationPageText:function(e){return"to page ".concat(e)},formatSRPaginationNextText:function(){return"next page"},formatDetailPagination:function(e){return"Showing ".concat(e," rows")},formatSearch:function(){return"Search"},formatClearSearch:function(){return"Clear Search"},formatNoMatches:function(){return"No matching records found"},formatPaginationSwitch:function(){return"Hide/Show pagination"},formatPaginationSwitchDown:function(){return"Show pagination"},formatPaginationSwitchUp:function(){return"Hide pagination"},formatRefresh:function(){return"Refresh"},formatToggle:function(){return"Toggle"},formatToggleOn:function(){return"Show card view"},formatToggleOff:function(){return"Hide card view"},formatColumns:function(){return"Columns"},formatColumnsToggleAll:function(){return"Toggle all"},formatFullscreen:function(){return"Fullscreen"},formatAllRows:function(){return"All"}};Object.assign(hi,gi);var fi={VERSION:"1.15.3",THEME:"bootstrap".concat(di),CONSTANTS:ui,DEFAULTS:hi,COLUMN_DEFAULTS:{field:void 0,title:void 0,titleTooltip:void 0,class:void 0,width:void 0,widthUnit:"px",rowspan:void 0,colspan:void 0,align:void 0,halign:void 0,falign:void 0,valign:void 0,cellStyle:void 0,radio:!1,checkbox:!1,checkboxEnabled:!0,clickToSelect:!0,showSelectTitle:!1,sortable:!1,sortName:void 0,order:"asc",sorter:void 0,visible:!0,switchable:!0,cardVisible:!0,searchable:!0,formatter:void 0,footerFormatter:void 0,detailFormatter:void 0,searchFormatter:!0,escape:!1,events:void 0},METHODS:["getOptions","refreshOptions","getData","getSelections","getAllSelections","load","append","prepend","remove","removeAll","insertRow","updateRow","getRowByUniqueId","updateByUniqueId","removeByUniqueId","updateCell","updateCellByUniqueId","showRow","hideRow","getHiddenRows","showColumn","hideColumn","getVisibleColumns","getHiddenColumns","showAllColumns","hideAllColumns","mergeCells","checkAll","uncheckAll","checkInvert","check","uncheck","checkBy","uncheckBy","refresh","destroy","resetView","resetWidth","showLoading","hideLoading","togglePagination","toggleFullscreen","toggleView","resetSearch","filterBy","scrollTo","getScrollPosition","selectPage","prevPage","nextPage","toggleDetailView","expandRow","collapseRow","expandAllRows","collapseAllRows","updateColumnTitle","updateFormatText"],EVENTS:{"all.bs.table":"onAll","click-row.bs.table":"onClickRow","dbl-click-row.bs.table":"onDblClickRow","click-cell.bs.table":"onClickCell","dbl-click-cell.bs.table":"onDblClickCell","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","post-footer.bs.table":"onPostFooter","expand-row.bs.table":"onExpandRow","collapse-row.bs.table":"onCollapseRow","refresh-options.bs.table":"onRefreshOptions","reset-view.bs.table":"onResetView","refresh.bs.table":"onRefresh","scroll-body.bs.table":"onScrollBody"},LOCALES:{en:gi,"en-US":gi}},mi=function(e,t,o,a,n,i,s,l){for(var r,c=n,d=0,p=!!s&&kt(s,l,3);d").addClass("fixed-table-scroll-inner"),o=t("
    ").addClass("fixed-table-scroll-outer");o.append(e),t("body").append(o);var a=e[0].offsetWidth;o.css("overflow","scroll");var n=e[0].offsetWidth;a===n&&(n=o[0].clientWidth),o.remove(),this.cachedWidth=a-n}return this.cachedWidth},calculateObjectValue:function(e,t,o,n){var i=t;if("string"==typeof t){var s=t.split(".");if(1/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`"):e},getRealDataAttr:function(e){for(var t=0,o=Object.entries(e);ttd,>th").each(function(n,s){for(var r=+t(s).attr("colspan")||1,c=+t(s).attr("rowspan")||1,d=n;i[o]&&i[o][d];d++);for(var p=d;pt?o:0):e===t?0:("string"!=typeof e&&(e=e.toString()),-1===e.localeCompare(t)?-1*o:o)}},wi=50,vi=4,Si=function(){function e(t){var o=this;n(this,e),this.rows=t.rows,this.scrollEl=t.scrollEl,this.contentEl=t.contentEl,this.callback=t.callback,this.itemHeight=t.itemHeight,this.cache={},this.scrollTop=this.scrollEl.scrollTop,this.initDOM(this.rows),this.scrollEl.scrollTop=this.scrollTop,this.lastCluster=0;var a=function(){o.lastCluster!==(o.lastCluster=o.getNum())&&(o.initDOM(o.rows),o.callback())};this.scrollEl.addEventListener("scroll",a,!1),this.destroy=function(){o.contentEl.innerHtml="",o.scrollEl.removeEventListener("scroll",a,!1)}}return s(e,[{key:"initDOM",value:function(e){"undefined"==typeof this.clusterHeight&&(this.cache.data=this.contentEl.innerHTML=e[0]+e[0]+e[0],this.getRowsHeight(e));var t=this.initData(e,this.getNum()),o=t.rows.join(""),a=this.checkChanges("data",o),n=this.checkChanges("top",t.topOffset),i=this.checkChanges("bottom",t.bottomOffset),s=[];a&&n?(t.topOffset&&s.push(this.getExtra("top",t.topOffset)),s.push(o),t.bottomOffset&&s.push(this.getExtra("bottom",t.bottomOffset)),this.contentEl.innerHTML=s.join("")):i&&(this.contentEl.lastChild.style.height="".concat(t.bottomOffset,"px"))}},{key:"getRowsHeight",value:function(){if("undefined"==typeof this.itemHeight){var e=this.contentEl.children,t=e[w(e.length/2)];this.itemHeight=t.offsetHeight}this.blockHeight=this.itemHeight*wi,this.clusterRows=wi*vi,this.clusterHeight=this.blockHeight*vi}},{key:"getNum",value:function(){return this.scrollTop=this.scrollEl.scrollTop,w(this.scrollTop/(this.clusterHeight-this.blockHeight))||0}},{key:"initData",value:function(e,t){if(e.lengthn&&r++;for(var c=o;c
    ":"",o=["bottom","both"].includes(this.options.paginationVAlign)?"
    ":"";this.$container=t("\n
    \n
    \n ").concat(e,"\n
    \n
    \n
    \n
    \n \n ").concat(this.options.formatLoadingMessage(),"\n \n \n
    \n
    \n
    \n
    \n ").concat(o,"\n
    \n ")),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.$el.find("tfoot"),this.$toolbar=this.options.buttonsToolbar?t("body").find(this.options.buttonsToolbar):this.$container.find(".fixed-table-toolbar"),this.$pagination=this.$container.find(".fixed-table-pagination"),this.$tableBody.append(this.$el),this.$container.after("
    "),this.$el.addClass(this.options.classes),this.$tableLoading.addClass(this.options.classes),this.options.height?(this.$tableContainer.addClass("fixed-height"),this.options.showFooter&&this.$tableContainer.addClass("has-footer"),this.options.classes.split(" ").includes("table-bordered")&&(this.$tableBody.append("
    "),this.$tableBorder=this.$tableBody.find(".fixed-table-border"),this.$tableLoading.addClass("fixed-table-border")),this.$tableFooter=this.$container.find(".fixed-table-footer")):!this.$tableFooter.length&&(this.$el.append(""),this.$tableFooter=this.$el.find("tfoot"))}},{key:"initTable",value:function(){var o=this,a=[];this.$header=this.$el.find(">thead"),this.$header.length?this.options.theadClasses&&this.$header.addClass(this.options.theadClasses):this.$header=t("")).appendTo(this.$el),this.$header.find("tr").each(function(e,o){var n=[];t(o).find("th").each(function(e,o){"undefined"!=typeof t(o).data("field")&&t(o).data("field","".concat(t(o).data("field"))),n.push(t.extend({},{title:t(o).html(),class:t(o).attr("class"),titleTooltip:t(o).attr("title"),rowspan:t(o).attr("rowspan")?+t(o).attr("rowspan"):void 0,colspan:t(o).attr("colspan")?+t(o).attr("colspan"):void 0},t(o).data()))}),a.push(n)}),Array.isArray(this.options.columns[0])||(this.options.columns=[this.options.columns]),this.options.columns=t.extend(!0,[],a,this.options.columns),this.columns=[],this.fieldsColumnsIndex=[],yi.setFieldIndex(this.options.columns),this.options.columns.forEach(function(a,n){a.forEach(function(a,i){var s=t.extend({},e.COLUMN_DEFAULTS,a);"undefined"!=typeof s.fieldIndex&&(o.columns[s.fieldIndex]=s,o.fieldsColumnsIndex[s.field]=s.fieldIndex),o.options.columns[n][i]=s})}),this.options.data.length||(this.options.data=yi.trToData(this.columns,this.$el.find(">tbody>tr")),[].length&&(this.fromHtml=!0)),this.footerData=yi.trToData(this.columns,this.$el.find(">tfoot>tr")),this.footerData&&this.$el.find("tfoot").html(""),!this.options.showFooter||this.options.cardView?this.$tableFooter.hide():this.$tableFooter.show()}},{key:"initHeader",value:function(){var o=this,a={},n=[];this.header={fields:[],styles:[],classes:[],formatters:[],detailFormatters:[],events:[],sorters:[],sortNames:[],cellStyles:[],searchables:[]},yi.updateFieldGroup(this.options.columns),this.options.columns.forEach(function(e,t){n.push(""),0===t&&!o.options.cardView&&o.options.detailView&&o.options.detailViewIcon&&n.push("\n
    \n \n ")),e.forEach(function(e,i){if(e.visible){var s=yi.sprintf(" class=\"%s\"",e["class"]),l=e.widthUnit,r=parseFloat(e.width),c=yi.sprintf("text-align: %s; ",e.halign?e.halign:e.align),d=yi.sprintf("text-align: %s; ",e.align),p=yi.sprintf("vertical-align: %s; ",e.valign);if(p+=yi.sprintf("width: %s; ",(e.checkbox||e.radio)&&!r?e.showSelectTitle?void 0:"36px":r?r+l:void 0),"undefined"!=typeof e.fieldIndex){if(o.header.fields[e.fieldIndex]=e.field,o.header.styles[e.fieldIndex]=d+p,o.header.classes[e.fieldIndex]=s,o.header.formatters[e.fieldIndex]=e.formatter,o.header.detailFormatters[e.fieldIndex]=e.detailFormatter,o.header.events[e.fieldIndex]=e.events,o.header.sorters[e.fieldIndex]=e.sorter,o.header.sortNames[e.fieldIndex]=e.sortName,o.header.cellStyles[e.fieldIndex]=e.cellStyle,o.header.searchables[e.fieldIndex]=e.searchable,o.options.cardView&&!e.cardVisible)return;a[e.field]=e}n.push(""),n.push(yi.sprintf("
    ",o.options.sortable&&e.sortable?"sortable both":""));var u=o.options.escape?yi.escapeHTML(e.title):e.title,h=u;e.checkbox&&(u="",!o.options.singleSelect&&o.options.checkboxHeader&&(u=""),o.header.stateField=e.field),e.radio&&(u="",o.header.stateField=e.field,o.options.singleSelect=!0),!u&&e.showSelectTitle&&(u+=h),n.push(u),n.push("
    "),n.push("
    "),n.push(""),n.push("")}}),n.push("")}),this.$header.html(n.join("")),this.$header.find("th[data-field]").each(function(e,o){t(o).data(a[t(o).data("field")])}),this.$container.off("click",".th-inner").on("click",".th-inner",function(a){var e=t(a.currentTarget);return(!o.options.detailView||e.parent().hasClass("bs-checkbox")||e.closest(".bootstrap-table")[0]===o.$container[0])&&void(o.options.sortable&&e.parent().data().sortable&&o.onSort(a))}),this.$header.children().children().off("keypress").on("keypress",function(a){if(o.options.sortable&&t(a.currentTarget).data().sortable){var e=a.keyCode||a.which;13===e&&o.onSort(a)}});var i="resize.bootstrap-table".concat(this.$el.attr("id")||"");t(window).off(i),!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(i,function(t){return o.resetWidth(t)})),this.$selectAll=this.$header.find("[name=\"btSelectAll\"]"),this.$selectAll.off("click").on("click",function(e){var a=e.currentTarget,n=t(a).prop("checked");o[n?"checkAll":"uncheckAll"](),o.updateSelected()})}},{key:"initData",value:function(e,t){this.options.data="append"===t?this.options.data.concat(e):"prepend"===t?[].concat(e).concat(this.options.data):e||this.options.data,this.data=this.options.data,"server"===this.options.sidePagination||this.initSort()}},{key:"initSort",value:function(){var e=this,t=this.options.sortName,o="desc"===this.options.sortOrder?-1:1,n=this.header.fields.indexOf(this.options.sortName),i=0;-1!==n&&(this.options.sortStable&&this.data.forEach(function(e,t){e.hasOwnProperty("_position")||(e._position=t)}),this.options.customSort?yi.calculateObjectValue(this.options,this.options.customSort,[this.options.sortName,this.options.sortOrder,this.data]):this.data.sort(function(i,a){e.header.sortNames[n]&&(t=e.header.sortNames[n]);var s=yi.getItemField(i,t,e.options.escape),l=yi.getItemField(a,t,e.options.escape),r=yi.calculateObjectValue(e.header,e.header.sorters[n],[s,l,i,a]);return void 0===r?yi.sort(s,l,o,e.options.sortStable):e.options.sortStable&&0===r?o*(i._position-a._position):o*r}),void 0!==this.options.sortClass&&(clearTimeout(i),i=setTimeout(function(){e.$el.removeClass(e.options.sortClass);var t=e.$header.find("[data-field=\"".concat(e.options.sortName,"\"]")).index();e.$el.find("tr td:nth-child(".concat(t+1,")")).addClass(e.options.sortClass)},250)))}},{key:"onSort",value:function(e){var o=e.type,a=e.currentTarget,n="keypress"===o?t(a):t(a).parent(),i=this.$header.find("th").eq(n.index());return this.$header.add(this.$header_).find("span.order").remove(),this.options.sortName===n.data("field")?this.options.sortOrder="asc"===this.options.sortOrder?"desc":"asc":(this.options.sortName=n.data("field"),this.options.sortOrder=this.options.rememberOrder?"asc"===n.data("order")?"desc":"asc":this.columns[this.fieldsColumnsIndex[n.data("field")]].sortOrder||this.columns[this.fieldsColumnsIndex[n.data("field")]].order),this.trigger("sort",this.options.sortName,this.options.sortOrder),n.add(i).data("order",this.options.sortOrder),this.getCaret(),"server"===this.options.sidePagination?(this.options.pageNumber=1,void this.initServer(this.options.silentSort)):void(this.initSort(),this.initBody())}},{key:"initToolbar",value:function(){var e,n,s=this,l=this.options,o=[],i=0,r=0;if(this.$toolbar.find(".bs-bars").children().length&&t("body").append(t(l.toolbar)),this.$toolbar.html(""),("string"==typeof l.toolbar||"object"===a(l.toolbar))&&t(yi.sprintf("
    ",this.constants.classes.pull,l.toolbarAlign)).appendTo(this.$toolbar).append(t(l.toolbar)),o=["
    ")],"string"==typeof l.icons&&(l.icons=yi.calculateObjectValue(null,l.icons)),l.showPaginationSwitch&&o.push("")),l.showRefresh&&o.push("")),l.showToggle&&o.push("")),l.showFullscreen&&o.push("")),l.showColumns){if(o.push("
    \n \n ").concat(this.constants.html.toolbarDropdown[0])),l.showColumnsToggleAll){var c=this.getVisibleColumns().length===this.columns.length;o.push(yi.sprintf(this.constants.html.toolbarDropdownItem,yi.sprintf(" %s",c?"checked=\"checked\"":"",l.formatColumnsToggleAll()))),o.push(this.constants.html.toolbarDropdownSeperator)}this.columns.forEach(function(e,t){if(!(e.radio||e.checkbox)&&(!l.cardView||e.cardVisible)){var a=e.visible?" checked=\"checked\"":"";e.switchable&&(o.push(yi.sprintf(s.constants.html.toolbarDropdownItem,yi.sprintf(" %s",e.field,t,a,e.title))),r++)}}),o.push(this.constants.html.toolbarDropdown[1],"
    ")}if(o.push("
    "),(this.showToolbar||2"),f=g;(l.showSearchButton||l.showSearchClearButton)&&(f=yi.sprintf(this.constants.html.inputGroup,g,(l.showSearchButton?u:"")+(l.showSearchClearButton?h:""))),o.push(yi.sprintf("\n
    \n %s\n
    \n "),f)),this.$toolbar.append(o.join(""));var m=this.$toolbar.find(".search input");n=l.showSearchButton?this.$toolbar.find(".search button[name=search]"):m;var b=l.showSearchButton?"click":yi.isIEBrowser()?"mouseup":"keyup drop blur";n.off(b).on(b,function(e){l.searchOnEnterKey&&13!==e.keyCode||[37,38,39,40].includes(e.keyCode)||(clearTimeout(i),i=setTimeout(function(){s.onSearch(l.showSearchButton?{currentTarget:m}:e)},l.searchTimeOut))}),l.showSearchClearButton&&this.$toolbar.find(".search button[name=clearSearch]").click(function(){s.resetSearch(),s.onSearch({currentTarget:s.$toolbar.find(".search input")})})}}},{key:"onSearch",value:function(){var e=0|=<|>=|>|<)(?:\s+)?(\d+)?|(\d+)?(\s+)?(<=|=>|=<|>=|>|<))/gm,u=p.exec(t),h=!1;if(u){var g=u[1]||"".concat(u[5],"l"),f=u[2]||u[3],m=parseInt(r,10),b=parseInt(f,10);switch(g){case">":case"b;break;case"<":case">l":h=m=l":case"=>l":h=m<=b;break;case">=":case"=>":case"<=l":case"==b;break;default:}}if(h||"".concat(r).toLowerCase().includes(t))return!0}else if("".concat(r).toLowerCase()===t)return!0}return!1}):this.data}}},{key:"initPagination",value:function(){var e=Math.round,t=this,a=this.options;if(!a.pagination)return void this.$pagination.hide();this.$pagination.show();var o,n,s,l,r,c,d,p=[],u=!1,h=this.getData({includeHiddenRows:!1}),g=a.pageList;if("server"!==a.sidePagination&&(a.totalRows=h.length),this.totalPages=0,a.totalRows){if(a.pageSize===a.formatAllRows())a.pageSize=a.totalRows,u=!0;else if(a.pageSize===a.totalRows){var f="string"==typeof a.pageList?a.pageList.replace("[","").replace("]","").replace(/ /g,"").toLowerCase().split(","):a.pageList;f.includes(a.formatAllRows().toLowerCase())&&(u=!0)}this.totalPages=~~((a.totalRows-1)/a.pageSize)+1,a.totalPages=this.totalPages}0this.totalPages&&(a.pageNumber=this.totalPages),this.pageFrom=(a.pageNumber-1)*a.pageSize+1,this.pageTo=a.pageNumber*a.pageSize,this.pageTo>a.totalRows&&(this.pageTo=a.totalRows),this.options.pagination&&"server"!==this.options.sidePagination&&(this.options.totalNotFiltered=this.options.data.length),this.options.showExtendedPagination||(this.options.totalNotFiltered=void 0);var m=a.onlyInfoPagination?a.formatDetailPagination(a.totalRows):a.formatShowingRows(this.pageFrom,this.pageTo,a.totalRows,a.totalNotFiltered);if(p.push("
    \n \n ").concat(m,"\n ")),!a.onlyInfoPagination){p.push("");var b=["\n \n ").concat(this.constants.html.pageDropdown[0])];if("string"==typeof a.pageList){var y=a.pageList.replace("[","").replace("]","").replace(/ /g,"").split(",");g=[];var w=!0,v=!1,S=void 0;try{for(var x,k,T=y[Symbol.iterator]();!(w=(x=T.next()).done);w=!0)k=x.value,g.push(k.toLowerCase()===a.formatAllRows().toLowerCase()||["all","unlimited"].includes(k.toLowerCase())?a.formatAllRows():+k)}catch(e){v=!0,S=e}finally{try{w||null==T.return||T.return()}finally{if(v)throw S}}}g.forEach(function(e,o){if(!a.smartDisplay||0===o||g[o-1]")),p.push(a.formatRecordsPerPage(b.join(""))),p.push("
    "),p.push("
    "),yi.sprintf(this.constants.html.pagination[0],yi.sprintf(" pagination-%s",a.iconSize)),yi.sprintf(this.constants.html.paginationItem," page-pre",a.formatSRPaginationPreText(),a.paginationPreText)),this.totalPagesthis.totalPages-n&&(n=n-(a.paginationSuccessivelySize-(this.totalPages-n))+1),1>n&&(n=1),s>this.totalPages&&(s=this.totalPages);var P=e(a.paginationPagesBySide/2),O=function(e){var o=1=n&&(C=n-1),o=1;o<=C;o++)p.push(O(o));n-1===C+1?(o=n-1,p.push(O(o))):n-1>C&&(n-2*a.paginationPagesBySide>a.paginationPagesBySide&&a.paginationUseIntermediate?(o=e((n-P)/2+P),p.push(O(o," page-intermediate"))):p.push(yi.sprintf(this.constants.html.paginationItem," page-first-separator disabled","","...")))}for(o=n;o<=s;o++)p.push(O(o));if(this.totalPages>s){var I=this.totalPages-(a.paginationPagesBySide-1);for(s>=I&&(I=s+1),s+1===I-1?(o=s+1,p.push(O(o))):I>s+1&&(this.totalPages-s>2*a.paginationPagesBySide&&a.paginationUseIntermediate?(o=e((this.totalPages-P-s)/2+s),p.push(O(o," page-intermediate"))):p.push(yi.sprintf(this.constants.html.paginationItem," page-last-separator disabled","","..."))),o=I;o<=this.totalPages;o++)p.push(O(o))}p.push(yi.sprintf(this.constants.html.paginationItem," page-next",a.formatSRPaginationNextText(),a.paginationNextText)),p.push(this.constants.html.pagination[1],"
    ")}this.$pagination.html(p.join(""));var $=["bottom","both"].includes(a.paginationVAlign)?" ".concat(this.constants.classes.dropup):"";this.$pagination.last().find(".page-list > span").addClass($),a.onlyInfoPagination||(l=this.$pagination.find(".page-list a"),r=this.$pagination.find(".page-pre"),c=this.$pagination.find(".page-next"),d=this.$pagination.find(".page-item").not(".page-next, .page-pre, .page-last-separator, .page-first-separator"),1>=this.totalPages&&this.$pagination.find("div.pagination").hide(),a.smartDisplay&&(2>g.length||a.totalRows<=g[0])&&this.$pagination.find("span.page-list").hide(),this.$pagination[this.getData().length?"show":"hide"](),!a.paginationLoop&&(1===a.pageNumber&&r.addClass("disabled"),a.pageNumber===this.totalPages&&c.addClass("disabled")),u&&(a.pageSize=a.formatAllRows()),l.off("click").on("click",function(o){return t.onPageListChange(o)}),r.off("click").on("click",function(o){return t.onPagePre(o)}),c.off("click").on("click",function(o){return t.onPageNext(o)}),d.off("click").on("click",function(o){return t.onPageNumber(o)}))}},{key:"updatePagination",value:function(e){e&&t(e.currentTarget).hasClass("disabled")||(!this.options.maintainMetaData&&this.resetRows(),this.initPagination(),"server"===this.options.sidePagination?this.initServer():this.initBody(),this.trigger("page-change",this.options.pageNumber,this.options.pageSize))}},{key:"onPageListChange",value:function(e){e.preventDefault();var o=t(e.currentTarget);return o.parent().addClass(this.constants.classes.dropdownActive).siblings().removeClass(this.constants.classes.dropdownActive),this.options.pageSize=o.text().toUpperCase()===this.options.formatAllRows().toUpperCase()?this.options.formatAllRows():+o.text(),this.$toolbar.find(".page-size").text(this.options.pageSize),this.updatePagination(e),!1}},{key:"onPagePre",value:function(e){return e.preventDefault(),0==this.options.pageNumber-1?this.options.pageNumber=this.options.totalPages:this.options.pageNumber--,this.updatePagination(e),!1}},{key:"onPageNext",value:function(e){return e.preventDefault(),this.options.pageNumber+1>this.options.totalPages?this.options.pageNumber=1:this.options.pageNumber++,this.updatePagination(e),!1}},{key:"onPageNumber",value:function(e){if(e.preventDefault(),this.options.pageNumber!==+t(e.currentTarget).text())return this.options.pageNumber=+t(e.currentTarget).text(),this.updatePagination(e),!1}},{key:"initRow",value:function(e,t){var o=this,n=[],i={},s=[],r="",c={},d=[];if(!(-1"),this.options.cardView&&n.push("
    ")),!this.options.cardView&&this.options.detailView&&this.options.detailViewIcon&&(n.push(""),yi.calculateObjectValue(null,this.options.detailFilter,[t,e])&&n.push("\n \n ".concat(yi.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailOpen),"\n \n ")),n.push("")),this.header.fields.forEach(function(a,i){var r="",d=yi.getItemField(e,a,o.options.escape),p="",u="",h={},g="",f=o.header.classes[i],m="",b="",y="",w="",S="",x=o.columns[i];if((!o.fromHtml||"undefined"!=typeof d||x.checkbox||x.radio)&&x.visible&&(!o.options.cardView||x.cardVisible)){if(x.escape&&(d=yi.escapeHTML(d)),s.concat([o.header.styles[i]]).length&&(m=" style=\"".concat(s.concat([o.header.styles[i]]).join("; "),"\"")),e["_".concat(a,"_id")]&&(g=yi.sprintf(" id=\"%s\"",e["_".concat(a,"_id")])),e["_".concat(a,"_class")]&&(f=yi.sprintf(" class=\"%s\"",e["_".concat(a,"_class")])),e["_".concat(a,"_rowspan")]&&(y=yi.sprintf(" rowspan=\"%s\"",e["_".concat(a,"_rowspan")])),e["_".concat(a,"_colspan")]&&(w=yi.sprintf(" colspan=\"%s\"",e["_".concat(a,"_colspan")])),e["_".concat(a,"_title")]&&(S=yi.sprintf(" title=\"%s\"",e["_".concat(a,"_title")])),h=yi.calculateObjectValue(o.header,o.header.cellStyles[i],[d,e,t,a],h),h.classes&&(f=" class=\"".concat(h.classes,"\"")),h.css){for(var T=[],P=0,O=Object.entries(h.css);P"):""),""),o.header.formatters[i]&&"string"==typeof p?p:"",o.options.cardView?"
    ":""].join(""),e[o.header.stateField]=!0===p||!!d||p&&p.checked}else if(p="undefined"==typeof p||null===p?o.options.undefinedText:p,o.options.cardView){var F=o.options.showHeader?"").concat(yi.getFieldTitle(o.columns,a),""):"";r="
    ".concat(F,"").concat(p,"
    "),o.options.smartDisplay&&""===p&&(r="
    ")}else r="").concat(p,"");n.push(r)}}),this.options.cardView&&n.push(""),n.push(""),n.join("")}}},{key:"initBody",value:function(e){var o=this,a=this.getData();this.trigger("pre-body",a),this.$body=this.$el.find(">tbody"),this.$body.length||(this.$body=t("").appendTo(this.$el)),this.options.pagination&&"server"!==this.options.sidePagination||(this.pageFrom=1,this.pageTo=a.length);for(var n=[],s=t(document.createDocumentFragment()),l=!1,r=this.pageFrom-1;r".concat(yi.sprintf("%s",this.$header.find("th").length,this.options.formatNoMatches()),"")),e||this.scrollTo(0),this.$body.find("> tr[data-index] > td").off("click dblclick").on("click dblclick",function(a){var e=t(a.currentTarget),n=e.parent(),i=t(a.target).parents(".card-views").children(),s=t(a.target).parents(".card-view"),l=n.data("index"),r=o.data[l],c=o.options.cardView?i.index(s):e[0].cellIndex,d=o.getVisibleFields(),p=d[o.options.detailView&&o.detailViewIcon&&!o.options.cardView?c-1:c],u=o.columns[o.fieldsColumnsIndex[p]],h=yi.getItemField(r,p,o.options.escape);if(!e.find(".detail-icon").length){if(o.trigger("click"===a.type?"click-cell":"dbl-click-cell",p,h,r,e),o.trigger("click"===a.type?"click-row":"dbl-click-row",r,n,p),"click"===a.type&&o.options.clickToSelect&&u.clickToSelect&&!yi.calculateObjectValue(o.options,o.options.ignoreClickToSelectOn,[a.target])){var g=n.find(yi.sprintf("[name=\"%s\"]",o.options.selectItemName));g.length&&g[0].click()}"click"===a.type&&o.options.detailViewByClick&&o.toggleDetailView(l,o.header.detailFormatters[o.fieldsColumnsIndex[p]])}}).off("mousedown").on("mousedown",function(t){o.multipleSelectRowCtrlKey=t.ctrlKey||t.metaKey,o.multipleSelectRowShiftKey=t.shiftKey}),this.$body.find("> tr[data-index] > td > .detail-icon").off("click").on("click",function(a){return a.preventDefault(),o.toggleDetailView(t(a.currentTarget).parent().parent().data("index")),!1}),this.$selectItem=this.$body.find(yi.sprintf("[name=\"%s\"]",this.options.selectItemName)),this.$selectItem.off("click").on("click",function(a){a.stopImmediatePropagation();var e=t(a.currentTarget);o._toggleCheck(e.prop("checked"),e.data("index"))}),this.header.events.forEach(function(e,a){var n=e;if(n){"string"==typeof n&&(n=yi.calculateObjectValue(null,n));var i=o.header.fields[a],s=o.getVisibleFields().indexOf(i);if(-1!==s){o.options.detailView&&!o.options.cardView&&(s+=1);var l=function(e){if(!n.hasOwnProperty(e))return"continue";var a=n[e];o.$body.find(">tr:not(.no-records-found)").each(function(n,l){var r=t(l),c=r.find(o.options.cardView?".card-view":"td").eq(s),d=e.indexOf(" "),p=e.substring(0,d),u=e.substring(d+1);c.find(u).off(p).on(p,function(t){var e=r.data("index"),n=o.data[e],s=n[i];a.apply(o,[t,s,n,e])})})};for(var r in n){var c=l(r)}}}}),this.updateSelected(),this.initFooter(),this.resetView(),"server"!==this.options.sidePagination&&(this.options.totalRows=a.length),this.trigger("post-body",a)}},{key:"initServer",value:function(e,o,a){var n=this,i={},s=this.header.fields.indexOf(this.options.sortName),l={searchText:this.searchText,sortName:this.options.sortName,sortOrder:this.options.sortOrder};if((this.header.sortNames[s]&&(l.sortName=this.header.sortNames[s]),this.options.pagination&&"server"===this.options.sidePagination&&(l.pageSize=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,l.pageNumber=this.options.pageNumber),a||this.options.url||this.options.ajax)&&("limit"===this.options.queryParamsType&&(l={search:l.searchText,sort:l.sortName,order:l.sortOrder},this.options.pagination&&"server"===this.options.sidePagination&&(l.offset=this.options.pageSize===this.options.formatAllRows()?0:this.options.pageSize*(this.options.pageNumber-1),l.limit=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,0===l.limit&&delete l.limit)),yi.isEmptyObject(this.filterColumnsPartial)||(l.filter=JSON.stringify(this.filterColumnsPartial,null)),i=yi.calculateObjectValue(this.options,this.options.queryParams,[l],i),t.extend(i,o||{}),!1!==i)){e||this.showLoading();var r=t.extend({},yi.calculateObjectValue(null,this.options.ajaxOptions),{type:this.options.method,url:a||this.options.url,data:"application/json"===this.options.contentType&&"post"===this.options.method?JSON.stringify(i):i,cache:this.options.cache,contentType:this.options.contentType,dataType:this.options.dataType,success:function(t){var o=yi.calculateObjectValue(n.options,n.options.responseHandler,[t],t);n.load(o),n.trigger("load-success",o),e||n.hideLoading()},error:function(t){var o=[];"server"===n.options.sidePagination&&(o={},o[n.options.totalField]=0,o[n.options.dataField]=[]),n.load(o),n.trigger("load-error",t.status,t),e||n.$tableLoading.hide()}});return this.options.ajax?yi.calculateObjectValue(this,this.options.ajax,[r],null):(this._xhr&&4!==this._xhr.readyState&&this._xhr.abort(),this._xhr=t.ajax(r)),i}}},{key:"initSearchText",value:function(){if(this.options.search&&(this.searchText="",""!==this.options.searchText)){var e=this.$toolbar.find(".search input");e.val(this.options.searchText),this.onSearch({currentTarget:e,firedByInitSearchText:!0})}}},{key:"getCaret",value:function(){var e=this;this.$header.find("th").each(function(o,a){t(a).find(".sortable").removeClass("desc asc").addClass(t(a).data("field")===e.options.sortName?e.options.sortOrder:"both")})}},{key:"updateSelected",value:function(){var e=this.$selectItem.filter(":enabled").length&&this.$selectItem.filter(":enabled").length===this.$selectItem.filter(":enabled").filter(":checked").length;this.$selectAll.add(this.$selectAll_).prop("checked",e),this.$selectItem.each(function(e,o){t(o).closest("tr")[t(o).prop("checked")?"addClass":"removeClass"]("selected")})}},{key:"updateRows",value:function(){var e=this;this.$selectItem.each(function(o,a){e.data[t(a).data("index")][e.header.stateField]=t(a).prop("checked")})}},{key:"resetRows",value:function(){var e=!0,t=!1,o=void 0;try{for(var a,n,i=this.data[Symbol.iterator]();!(e=(a=i.next()).done);e=!0)n=a.value,this.$selectAll.prop("checked",!1),this.$selectItem.prop("checked",!1),this.header.stateField&&(n[this.header.stateField]=!1)}catch(e){t=!0,o=e}finally{try{e||null==i.return||i.return()}finally{if(t)throw o}}this.initHiddenRows()}},{key:"trigger",value:function(o){for(var a,n="".concat(o,".bs.table"),i=arguments.length,s=Array(1o.clientWidth&&o.scrollHeight>o.clientHeight+this.$header.outerHeight()?yi.getScrollBarWidth():0;this.$el.css("margin-top",-this.$header.outerHeight());var n=t(":focus");if(0tr:not(.no-records-found,.virtual-scroll-top)").eq(0);p.length&&p.find(">td[colspan]:not([colspan=\"1\"])").length;)p=p.next();p.find("> *").each(function(o,a){var n=t(a),i=o;if(e.options.detailView&&e.options.detailViewIcon&&!e.options.cardView){if(0===o){var s=d.filter(".detail"),l=s.width()-s.find(".fht-cell").width();s.find(".fht-cell").width(n.innerWidth()-l)}i=o-1}if(-1!==i){var r=e.$header_.find(yi.sprintf("th[data-field=\"%s\"]",c[i]));1
    ");var o=!0,a=!1,n=void 0;try{for(var i,s=this.columns[Symbol.iterator]();!(o=(i=s.next()).done);o=!0){var r=i.value,c="",d="",p=[],u={},h=yi.sprintf(" class=\"%s\"",r["class"]);if(r.visible){if(this.options.cardView&&!r.cardVisible)return;if(c=yi.sprintf("text-align: %s; ",r.falign?r.falign:r.align),d=yi.sprintf("vertical-align: %s; ",r.valign),u=yi.calculateObjectValue(null,this.options.footerStyle,[r]),u&&u.css)for(var g=0,f=Object.entries(u.css);g"),t.push("
    "),t.push(yi.calculateObjectValue(r,r.footerFormatter,[e],this.footerData[0]&&this.footerData[0][r.field]||"")),t.push("
    "),t.push("
    "),t.push(""),t.push("")}}}catch(e){a=!0,n=e}finally{try{o||null==s.return||s.return()}finally{if(a)throw n}}this.$tableFooter.find("tr").html(t.join("")),this.trigger("post-footer",this.$tableFooter)}}},{key:"fitFooter",value:function(){var e=this;if(this.$el.is(":hidden"))return void setTimeout(function(){return e.fitFooter()},100);var o=this.$tableBody.get(0),a=o.scrollWidth>o.clientWidth&&o.scrollHeight>o.clientHeight+this.$header.outerHeight()?yi.getScrollBarWidth():0;this.$tableFooter.css("margin-right",a).find("table").css("width",this.$el.outerWidth()).attr("class",this.$el.attr("class"));for(var n=this.getVisibleFields(),s=this.$tableFooter.find("th"),l=this.$body.find(">tr:first-child:not(.no-records-found)");l.length&&l.find(">td[colspan]:not([colspan=\"1\"])").length;)l=l.next();l.find("> *").each(function(o,a){var n=t(a),i=o;if(e.options.detailView&&!e.options.cardView){if(0===o){var l=s.filter(".detail"),r=l.width()-l.find(".fht-cell").width();l.find(".fht-cell").width(n.innerWidth()-r)}i=o-1}if(-1!==i){var c=s.eq(o),d=c.width()-c.find(".fht-cell").width();c.find(".fht-cell").width(n.innerWidth()-d)}}),this.horizontalScroll()}},{key:"horizontalScroll",value:function(){var e=this;this.trigger("scroll-body"),this.$tableBody.off("scroll").on("scroll",function(o){var a=o.currentTarget;e.options.showHeader&&e.options.height&&e.$tableHeader.scrollLeft(t(a).scrollLeft()),e.options.showFooter&&!e.options.cardView&&e.$tableFooter.scrollLeft(t(a).scrollLeft())})}},{key:"getVisibleFields",value:function(){var e=[],t=!0,o=!1,a=void 0;try{for(var n,i=this.header.fields[Symbol.iterator]();!(t=(n=i.next()).done);t=!0){var s=n.value,l=this.columns[this.fieldsColumnsIndex[s]];l&&l.visible&&e.push(s)}}catch(e){o=!0,a=e}finally{try{t||null==i.return||i.return()}finally{if(o)throw a}}return e}},{key:"initHiddenRows",value:function(){this.hiddenRows=[]}},{key:"getOptions",value:function(){var e=t.extend({},this.options);return delete e.data,t.extend(!0,{},e)}},{key:"refreshOptions",value:function(e){yi.compareObjects(this.options,e,!0)||(this.options=t.extend(this.options,e),this.trigger("refresh-options",this.options),this.destroy(),this.init())}},{key:"getData",value:function(e){var t=this.options.data;if((this.searchText||this.options.sortName||!yi.isEmptyObject(this.filterColumns)||!yi.isEmptyObject(this.filterColumnsPartial))&&(t=this.data),e&&e.useCurrentPage&&(t=t.slice(this.pageFrom-1,this.pageTo)),e&&!e.includeHiddenRows){var o=this.getHiddenRows();t=t.filter(function(e){return-1===yi.findIndex(o,e)})}return t}},{key:"getSelections",value:function(){var e=this;return this.data.filter(function(t){return!0===t[e.header.stateField]})}},{key:"getAllSelections",value:function(){var e=this;return this.options.data.filter(function(t){return!0===t[e.header.stateField]})}},{key:"load",value:function(e){var t=!1,o=e;this.options.pagination&&"server"===this.options.sidePagination&&(this.options.totalRows=o[this.options.totalField]),this.options.pagination&&"server"===this.options.sidePagination&&(this.options.totalNotFiltered=o[this.options.totalNotFilteredField]),t=o.fixedScroll,o=Array.isArray(o)?o:o[this.options.dataField],this.initData(o),this.initSearch(),this.initPagination(),this.initBody(t)}},{key:"append",value:function(e){this.initData(e,"append"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"prepend",value:function(e){this.initData(e,"prepend"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"remove",value:function(e){var t,o,a=this.options.data.length;if(e.hasOwnProperty("field")&&e.hasOwnProperty("values")){for(t=a-1;0<=t;t--)(o=this.options.data[t],!!o.hasOwnProperty(e.field))&&e.values.includes(o[e.field])&&(this.options.data.splice(t,1),"server"===this.options.sidePagination&&(this.options.totalRows-=1));a===this.options.data.length||(this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))}}},{key:"removeAll",value:function(){0o.options.minimumCountColumns&&t(a).prop("checked",e)}),c.filter(":checked").length<=this.options.minimumCountColumns&&c.filter(":checked").prop("disabled",!0)}}},{key:"mergeCells",value:function(e){var t,o,a=e.index,n=this.getVisibleFields().indexOf(e.field),s=e.rowspan||1,l=e.colspan||1,r=this.$body.find(">tr");this.options.detailView&&!this.options.cardView&&(n+=1);var c=r.eq(a).find(">td").eq(n);if(!(0>a||0>n||a>=this.data.length)){for(t=a;ttd").eq(o).hide();c.attr("rowspan",s).attr("colspan",l).show()}}},{key:"checkAll",value:function(){this._toggleCheckAll(!0)}},{key:"uncheckAll",value:function(){this._toggleCheckAll(!1)}},{key:"_toggleCheckAll",value:function(e){var t=this.getSelections();this.$selectAll.add(this.$selectAll_).prop("checked",e),this.$selectItem.filter(":enabled").prop("checked",e),this.updateRows();var o=this.getSelections();return e?void this.trigger("check-all",o,t):void this.trigger("uncheck-all",o,t)}},{key:"checkInvert",value:function(){var e=this.$selectItem.filter(":enabled"),o=e.filter(":checked");e.each(function(e,o){t(o).prop("checked",!t(o).prop("checked"))}),this.updateRows(),this.updateSelected(),this.trigger("uncheck-some",o),o=this.getSelections(),this.trigger("check-some",o)}},{key:"check",value:function(e){this._toggleCheck(!0,e)}},{key:"uncheck",value:function(e){this._toggleCheck(!1,e)}},{key:"_toggleCheck",value:function(e,t){var o=this.$selectItem.filter("[data-index=\"".concat(t,"\"]")),a=this.data[t];if(o.is(":radio")||this.options.singleSelect||this.options.multipleSelectRow&&!this.multipleSelectRowCtrlKey&&!this.multipleSelectRowShiftKey){var n=!0,s=!1,l=void 0;try{for(var c,d,p=this.options.data[Symbol.iterator]();!(n=(c=p.next()).done);n=!0)d=c.value,d[this.header.stateField]=!1}catch(e){s=!0,l=e}finally{try{n||null==p.return||p.return()}finally{if(s)throw l}}this.$selectItem.filter(":checked").not(o).prop("checked",!1)}if(a[this.header.stateField]=e,this.options.multipleSelectRow){if(this.multipleSelectRowShiftKey&&0<=this.multipleSelectRowLastSelectedIndex)for(var u=[this.multipleSelectRowLastSelectedIndex,t].sort(),h=u[0]+1;h tr:lt(".concat(n.value,")")).each(function(o,a){e+=t(a).outerHeight(!0)})),this.$tableBody.scrollTop(e)}},{key:"getScrollPosition",value:function(){return this.scrollTo()}},{key:"selectPage",value:function(e){0 tr[data-index=\"%s\"]",e));o.next().is("tr.detail-view")?this.collapseRow(e):this.expandRow(e,t),this.resetView()}},{key:"expandRow",value:function(e,t){var o=this.data[e],a=this.$body.find(yi.sprintf("> tr[data-index=\"%s\"][data-has-detail-view]",e));if(!a.next().is("tr.detail-view")){this.options.detailViewIcon&&a.find("a.detail-icon").html(yi.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailClose)),a.after(yi.sprintf("",a.children("td").length));var n=a.next().find("td"),i=t||this.options.detailFormatter,s=yi.calculateObjectValue(this.options,i,[e,o,n],"");1===n.length&&n.append(s),this.trigger("expand-row",e,o,n)}}},{key:"collapseRow",value:function(e){var t=this.data[e],o=this.$body.find(yi.sprintf("> tr[data-index=\"%s\"][data-has-detail-view]",e));o.next().is("tr.detail-view")&&(this.options.detailViewIcon&&o.find("a.detail-icon").html(yi.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailOpen)),this.trigger("collapse-row",e,t,o.next()),o.next().remove())}},{key:"expandAllRows",value:function(){for(var e=this.$body.find("> tr[data-index][data-has-detail-view]"),o=0;o tr[data-index][data-has-detail-view]"),o=0;oarguments.length?Pe(Te[e])||Pe(C[e]):Te[e]&&Te[e][t]||C[e]&&C[e][t]},Ce=function(e){return isNaN(e=+e)?0:(0o?b(o+t,0):y(o,t)},Ae=function(e){return function(t,o,n){var a,i=M(t),s=Ie(i.length),l=$e(n,s);if(e&&o!=o){for(;s>l;)if(a=i[l++],a!=a)return!0;}else for(;s>l;l++)if((e||l in i)&&i[l]===o)return e||l||0;return!e&&-1}},Ee={includes:Ae(!0),indexOf:Ae(!1)},Re=Ee.indexOf,_e=function(e,t){var o,n=M(e),a=0,s=[];for(o in n)!G(ge,o)&&G(n,o)&&s.push(o);for(;t.length>a;)G(n,o=t[a++])&&(~Re(s,o)||s.push(o));return s},Ne=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Fe=Ne.concat("length","prototype"),De=Object.getOwnPropertyNames||function(e){return _e(e,Fe)},Le={f:De},Be=Object.getOwnPropertySymbols,Ve={f:Be},He=Oe("Reflect","ownKeys")||function(e){var t=Le.f(ee(e)),o=Ve.f;return o?t.concat(o(e)):t},je=function(e,t){for(var o,n=He(t),a=ne.f,s=Z.f,l=0;li;)ne.f(e,o=n[i++],t[o]);return e},ot=Oe("document","documentElement"),nt=he("IE_PROTO"),at="prototype",it=function(){},st=function(){var e,t=K("iframe"),o=Ne.length,n="<",a="script",i=">";for(t.style.display="none",ot.appendChild(t),t.src="java"+a+":"+"",e=t.contentWindow.document,e.open(),e.write(n+a+i+"document.F=Object"+n+"/"+a+i),e.close(),st=e.F;o--;)delete st[at][Ne[o]];return st()},lt=Object.create||function(e,t){var o;return null===e?o=st():(it[at]=ee(e),o=new it,it[at]=null,o[nt]=e),void 0===t?o:tt(o,t)};ge[nt]=!0;var rt=Le.f,ct={}.toString,dt="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],pt=function(e){try{return rt(e)}catch(e){return dt.slice()}},ut={f:function(e){return dt&&"[object Window]"==ct.call(e)?pt(e):rt(M(e))}},ht=C.Symbol,gt=se("wks"),ft=function(e){return gt[e]||(gt[e]=Qe&&ht[e]||(Qe?ht:pe)("Symbol."+e))},mt={f:ft},bt=ne.f,yt=function(e){var t=Te.Symbol||(Te.Symbol={});G(t,e)||bt(t,e,{value:mt.f(e)})},wt=ne.f,vt=ft("toStringTag"),St=function(e,t,o){e&&!G(e=o?e:e.prototype,vt)&&wt(e,vt,{configurable:!0,value:t})},xt=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function");return e},kt=function(e,t,o){return(xt(e),void 0===t)?e:0===o?function(){return e.call(t)}:1===o?function(o){return e.call(t,o)}:2===o?function(o,n){return e.call(t,o,n)}:3===o?function(o,n,a){return e.call(t,o,n,a)}:function(){return e.apply(t,arguments)}},Tt=ft("species"),Pt=function(e,t){var o;return Je(e)&&(o=e.constructor,"function"==typeof o&&(o===Array||Je(o.prototype))?o=void 0:U(o)&&(o=o[Tt],null===o&&(o=void 0))),new(void 0===o?Array:o)(0===t?0:t)},Ot=[].push,Ct=function(e){var t=1==e,o=4==e,n=6==e;return function(a,i,s,l){for(var r,c,d=Ze(a),p=V(d),u=kt(i,s,3),h=Ie(p.length),g=0,f=l||Pt,m=t?f(a,h):2==e?f(a,0):void 0;h>g;g++)if((5==e||n||g in p)&&(r=p[g],c=u(r,g,d),e))if(t)m[g]=c;else if(c)switch(e){case 3:return!0;case 5:return r;case 6:return g;case 2:Ot.call(m,r);}else if(o)return!1;return n?-1:3==e||o?o:m}},It={forEach:Ct(0),map:Ct(1),filter:Ct(2),some:Ct(3),every:Ct(4),find:Ct(5),findIndex:Ct(6)},$t=It.forEach,At=he("hidden"),Et="Symbol",Rt="prototype",_t=ft("toPrimitive"),Nt=xe.set,Ft=xe.getterFor(Et),Dt=Object[Rt],Lt=C.Symbol,Bt=C.JSON,Vt=Bt&&Bt.stringify,Ht=Z.f,jt=ne.f,Mt=ut.f,Ut=f.f,qt=se("symbols"),zt=se("op-symbols"),Gt=se("string-to-symbol-registry"),Wt=se("symbol-to-string-registry"),Yt=se("wks"),Kt=C.QObject,Xt=!Kt||!Kt[Rt]||!Kt[Rt].findChild,Qt=A&&I(function(){return 7!=lt(jt({},"a",{get:function(){return jt(this,"a",{value:7}).a}})).a})?function(e,t,o){var n=Ht(Dt,t);n&&delete Dt[t],jt(e,t,o),n&&e!==Dt&&jt(Dt,t,n)}:jt,Jt=function(e,t){var o=qt[e]=lt(Lt[Rt]);return Nt(o,{type:Et,tag:e,description:t}),A||(o.description=t),o},Zt=Qe&&"symbol"==typeof Lt.iterator?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof Lt},eo=function(e,t,o){e===Dt&&eo(zt,t,o),ee(e);var n=q(t,!0);return ee(o),G(qt,n)?(o.enumerable?(G(e,At)&&e[At][n]&&(e[At][n]=!1),o=lt(o,{enumerable:F(0,!1)})):(!G(e,At)&&jt(e,At,F(1,{})),e[At][n]=!0),Qt(e,n,o)):jt(e,n,o)},to=function(e,t){ee(e);var o=M(t),n=et(o).concat(io(o));return $t(n,function(t){(!A||oo.call(o,t))&&eo(e,t,o[t])}),e},oo=function(e){var t=q(e,!0),o=Ut.call(this,t);return(this!==Dt||!G(qt,t)||G(zt,t))&&(!(o||!G(this,t)||!G(qt,t)||G(this,At)&&this[At][t])||o)},no=function(e,t){var o=M(e),n=q(t,!0);if(o!==Dt||!G(qt,n)||G(zt,n)){var a=Ht(o,n);return a&&G(qt,n)&&!(G(o,At)&&o[At][n])&&(a.enumerable=!0),a}},ao=function(e){var t=Mt(M(e)),o=[];return $t(t,function(e){G(qt,e)||G(ge,e)||o.push(e)}),o},io=function(e){var t=e===Dt,o=Mt(t?zt:M(e)),n=[];return $t(o,function(e){G(qt,e)&&(!t||G(Dt,e))&&n.push(qt[e])}),n};Qe||(Lt=function(){if(this instanceof Lt)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?arguments[0]+"":void 0,t=pe(e),o=function(e){this===Dt&&o.call(zt,e),G(this,At)&&G(this[At],t)&&(this[At][t]=!1),Qt(this,t,F(1,e))};return A&&Xt&&Qt(Dt,t,{configurable:!0,set:o}),Jt(t,e)},ke(Lt[Rt],"toString",function(){return Ft(this).tag}),f.f=oo,ne.f=eo,Z.f=no,Le.f=ut.f=ao,Ve.f=io,A&&(jt(Lt[Rt],"description",{configurable:!0,get:function(){return Ft(this).description}}),ke(Dt,"propertyIsEnumerable",oo,{unsafe:!0})),mt.f=function(e){return Jt(ft(e),e)}),Xe({global:!0,wrap:!0,forced:!Qe,sham:!Qe},{Symbol:Lt}),$t(et(Yt),function(e){yt(e)}),Xe({target:Et,stat:!0,forced:!Qe},{for:function(e){var t=e+"";if(G(Gt,t))return Gt[t];var o=Lt(t);return Gt[t]=o,Wt[o]=t,o},keyFor:function(e){if(!Zt(e))throw TypeError(e+" is not a symbol");return G(Wt,e)?Wt[e]:void 0},useSetter:function(){Xt=!0},useSimple:function(){Xt=!1}}),Xe({target:"Object",stat:!0,forced:!Qe,sham:!A},{create:function(e,t){return void 0===t?lt(e):to(lt(e),t)},defineProperty:eo,defineProperties:to,getOwnPropertyDescriptor:no}),Xe({target:"Object",stat:!0,forced:!Qe},{getOwnPropertyNames:ao,getOwnPropertySymbols:io}),Xe({target:"Object",stat:!0,forced:I(function(){Ve.f(1)})},{getOwnPropertySymbols:function(e){return Ve.f(Ze(e))}}),Bt&&Xe({target:"JSON",stat:!0,forced:!Qe||I(function(){var e=Lt();return"[null]"!=Vt([e])||"{}"!=Vt({a:e})||"{}"!=Vt(Object(e))})},{stringify:function(e){for(var t,o,n=[e],a=1;arguments.length>a;)n.push(arguments[a++]);if(o=t=n[1],(U(t)||void 0!==e)&&!Zt(e))return Je(t)||(t=function(e,t){if("function"==typeof o&&(t=o.call(this,e,t)),!Zt(t))return t}),n[1]=t,Vt.apply(Bt,n)}}),Lt[Rt][_t]||ae(Lt[Rt],_t,Lt[Rt].valueOf),St(Lt,Et),ge[At]=!0;var so=ne.f,lo=C.Symbol;if(A&&"function"==typeof lo&&(!("description"in lo.prototype)||void 0!==lo().description)){var ro={},co=function(){var e=1>arguments.length||void 0===arguments[0]?void 0:arguments[0]+"",t=this instanceof co?new lo(e):void 0===e?lo():lo(e);return""===e&&(ro[t]=!0),t};je(co,lo);var po=co.prototype=lo.prototype;po.constructor=co;var uo=po.toString,ho="Symbol(test)"==lo("test")+"",go=/^Symbol\((.*)\)[^)]+$/;so(po,"description",{configurable:!0,get:function(){var e=U(this)?this.valueOf():this,t=uo.call(e);if(G(ro,e))return"";var o=ho?t.slice(7,-1):t.replace(go,"$1");return""===o?void 0:o}}),Xe({global:!0,forced:!0},{Symbol:co})}yt("iterator");var fo=function(e,t,o){var n=q(t);n in e?ne.f(e,n,F(0,o)):e[n]=o},mo=ft("species"),bo=function(e){return!I(function(){var t=[],o=t.constructor={};return o[mo]=function(){return{foo:1}},1!==t[e](Boolean).foo})},yo=ft("isConcatSpreadable"),wo=9007199254740991,vo="Maximum allowed index exceeded",So=!I(function(){var e=[];return e[yo]=!1,e.concat()[0]!==e}),xo=bo("concat"),ko=function(e){if(!U(e))return!1;var t=e[yo];return void 0===t?Je(e):!!t};Xe({target:"Array",proto:!0,forced:!So||!xo},{concat:function(){var e,t,o,a,s,l=Ze(this),r=Pt(l,0),c=0;for(e=-1,o=arguments.length;ewo)throw TypeError(vo);for(t=0;t=wo)throw TypeError(vo);fo(r,c++,s)}return r.length=c,r}});var To=It.filter;Xe({target:"Array",proto:!0,forced:!bo("filter")},{filter:function(e){return To(this,e,11/[1].indexOf(1,-0),Vo=Fo("indexOf");Xe({target:"Array",proto:!0,forced:Bo||Vo},{indexOf:function(e){return Bo?Lo.apply(this,arguments)||0:Do(this,e,1=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==o?{value:n,done:!1}:"values"==o?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values");Co("keys"),Co("values"),Co("entries");var hn=[].join,gn=V!=Object,fn=Fo("join",",");Xe({target:"Array",proto:!0,forced:gn||fn},{join:function(e){return hn.call(M(this),void 0===e?",":e)}});var mn=ft("species"),bn=[].slice;Xe({target:"Array",proto:!0,forced:!bo("slice")},{slice:function(e,t){var o,a,i,s=M(this),l=Ie(s.length),r=$e(e,l),c=$e(void 0===t?l:t,l);if(Je(s)&&(o=s.constructor,"function"==typeof o&&(o===Array||Je(o.prototype))?o=void 0:U(o)&&(o=o[mn],null===o&&(o=void 0)),o===Array||void 0===o))return bn.call(s,r,c);for(a=new(void 0===o?Array:o)(b(c-r,0)),i=0;r9007199254740991)throw TypeError("Maximum allowed length exceeded");for(a=Pt(r,n),i=0;ic-n+o;i--)delete r[i-1]}else if(o>n)for(i=c-n;i>d;i--)s=i+n-1,l=i+o-1,s in r?r[l]=r[s]:delete r[l];for(i=0;ir||r>a)return NaN;return parseInt(i,n)}return+c};if(Ye(Nn,!Fn(" 0o1")||!Fn("0b1")||Fn("+0x1"))){for(var Vn,Hn=function(e){var t=1>arguments.length?0:e,o=this;return o instanceof Hn&&(Ln?I(function(){Dn.valueOf.call(o)}):L(o)!=Nn)?kn(new Fn(Bn(t)),o,Hn):Bn(t)},jn=A?An(Fn):["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY","EPSILON","isFinite","isInteger","isNaN","isSafeInteger","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","parseFloat","parseInt","isInteger"],Mn=0;jn.length>Mn;Mn++)G(Fn,Vn=jn[Mn])&&!G(Hn,Vn)&&Rn(Hn,Vn,En(Fn,Vn));Hn.prototype=Dn,Dn.constructor=Hn,ke(C,Nn,Hn)}var Un=Object.assign,qn=!Un||I(function(){var e={},t={},o=Symbol(),n="abcdefghijklmnopqrst";return e[o]=7,n.split("").forEach(function(e){t[e]=e}),7!=Un({},e)[o]||et(Un({},t)).join("")!=n})?function(e){for(var t=Ze(e),o=arguments.length,n=1,a=Ve.f,i=f.f;o>n;)for(var s,l=V(arguments[n++]),r=a?et(l).concat(a(l)):et(l),c=r.length,d=0;c>d;)s=r[d++],(!A||i.call(l,s))&&(t[s]=l[s]);return t}:Un;Xe({target:"Object",stat:!0,forced:Object.assign!==qn},{assign:qn});var zn=f.f,Gn=function(e){return function(t){for(var o,n=M(t),a=et(n),s=a.length,l=0,r=[];s>l;)o=a[l++],(!A||zn.call(n,o))&&r.push(e?[o,n[o]]:n[o]);return r}},Wn={entries:Gn(!0),values:Gn(!1)},Yn=Wn.entries;Xe({target:"Object",stat:!0},{entries:function(e){return Yn(e)}});var Kn=ft("toStringTag"),Xn="Arguments"==L(function(){return arguments}()),Qn=function(e,t){try{return e[t]}catch(e){}},Jn=function(e){var t,o,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(o=Qn(t=Object(e),Kn))?o:Xn?L(t):"Object"==(n=L(t))&&"function"==typeof t.callee?"Arguments":n},Zn=ft("toStringTag"),ea={};ea[Zn]="z";var ta=function(){return"[object "+Jn(this)+"]"},oa=Object.prototype;ta!==oa.toString&&ke(oa,"toString",ta,{unsafe:!0});var na=$n.trim,aa=C.parseFloat,ia=1/aa(Tn+"-0")!=-Infinity,sa=ia?function(e){var t=na(e+""),o=aa(t);return 0===o&&"-"==t.charAt(0)?-0:o}:aa;Xe({global:!0,forced:parseFloat!=sa},{parseFloat:sa});var la=$n.trim,ra=C.parseInt,ca=/^[+-]?0[Xx]/,da=8!==ra(Tn+"08")||22!==ra(Tn+"0x16"),pa=da?function(e,t){var o=la(e+"");return ra(o,t>>>0||(ca.test(o)?16:10))}:ra;Xe({global:!0,forced:parseInt!=pa},{parseInt:pa});var ua=function(){var e=ee(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},ha="toString",ga=RegExp.prototype,fa=ga[ha],ma=I(function(){return"/a/b"!=fa.call({source:"a",flags:"b"})}),ba=fa.name!=ha;(ma||ba)&&ke(RegExp.prototype,ha,function(){var e=ee(this),t=e.source+"",o=e.flags,n=(void 0===o&&e instanceof RegExp&&!("flags"in ga)?ua.call(e):o)+"";return"/"+t+"/"+n},{unsafe:!0});var ya=ft("match"),wa=function(e){var t;return U(e)&&(void 0===(t=e[ya])?"RegExp"==L(e):!!t)},va=function(e){if(wa(e))throw TypeError("The method doesn't accept regular expressions");return e},Sa=ft("match");Xe({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(o){try{return t[Sa]=!1,"/./"[e](t)}catch(e){}}return!1}("includes")},{includes:function(e){return!!~(H(this)+"").indexOf(va(e),1s||s>=l?e?"":void 0:(n=i.charCodeAt(s),55296>n||56319(a=i.charCodeAt(s+1))||57343=o.length?{value:void 0,done:!0}:(e=Ta(o,n),t.index+=e.length,{value:e,done:!1})});var Ia=RegExp.prototype.exec,$a=m.replace,Aa=Ia,Ea=function(){var e=/a/,t=/b*/g;return Ia.call(e,"a"),Ia.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Ra=void 0!==/()??/.exec("")[1];(Ea||Ra)&&(Aa=function(e){var t,o,n,a,s=this;return Ra&&(o=new RegExp("^"+s.source+"$(?!\\s)",ua.call(s))),Ea&&(t=s.lastIndex),n=Ia.call(s,e),Ea&&n&&(s.lastIndex=s.global?n.index+n[0].length:t),Ra&&n&&1")}),Da=!I(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var o="ab".split(e);return 2!==o.length||"a"!==o[0]||"b"!==o[1]}),La=function(e,t,o,n){var a=ft(e),i=!I(function(){var t={};return t[a]=function(){return 7},7!=""[e](t)}),s=i&&!I(function(){var t=!1,o=/a/;return o.exec=function(){return t=!0,null},"split"===e&&(o.constructor={},o.constructor[Na]=function(){return o}),o[a](""),!t});if(!i||!s||"replace"===e&&!Fa||"split"===e&&!Da){var l=/./[a],r=o(a,""[e],function(e,t,o,n,a){return t.exec===_a?i&&!a?{done:!0,value:l.call(t,o,n)}:{done:!0,value:e.call(o,t,n)}:{done:!1}}),c=r[0],d=r[1];ke(String.prototype,e,c),ke(RegExp.prototype,a,2==t?function(e,t){return d.call(e,this,t)}:function(e){return d.call(e,this)}),n&&ae(RegExp.prototype[a],"sham",!0)}},Ba=ka.charAt,Va=function(e,t,o){return t+(o?Ba(e,t).length:1)},Ha=function(e,t){var o=e.exec;if("function"==typeof o){var n=o.call(e,t);if("object"!=typeof n)throw TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==L(e))throw TypeError("RegExp#exec called on incompatible receiver");return _a.call(e,t)},ja=/\$([$&'`]|\d\d?|<[^>]*>)/g,Ma=/\$([$&'`]|\d\d?)/g,Ua=function(e){return void 0===e?e:e+""};La("replace",2,function(e,t,o){function n(e,o,a,i,s,l){var r=a+e.length,c=i.length,n=Ma;return void 0!==s&&(s=Ze(s),n=ja),t.call(l,n,function(t,l){var d;switch(l.charAt(0)){case"$":return"$";case"&":return e;case"`":return o.slice(0,a);case"'":return o.slice(r);case"<":d=s[l.slice(1,-1)];break;default:var p=+l;if(0==p)return t;if(p>c){var n=w(p/10);return 0===n?t:n<=c?void 0===i[n-1]?l.charAt(1):i[n-1]+l.charAt(1):t}d=i[p-1];}return void 0===d?"":d})}return[function(o,n){var a=H(this),i=null==o?void 0:o[e];return void 0===i?t.call(a+"",o,n):i.call(o,a,n)},function(e,a){var s=o(t,e,this,a);if(s.done)return s.value;var l=ee(e),r=this+"",c="function"==typeof a;c||(a+="");var d=l.global;if(d){var p=l.unicode;l.lastIndex=0}for(var u,h,g=[];(u=Ha(l,r),null!==u)&&(g.push(u),!!d);)h=u[0]+"",""==h&&(l.lastIndex=Va(r,Ie(l.lastIndex),p));for(var f="",m=0,w=0;w=m&&(f+=r.slice(m,S)+O,m=S+v.length)}return f+r.slice(m)}]});var qa=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};La("search",1,function(e,t,o){return[function(t){var o=H(this),n=null==t?void 0:t[e];return void 0===n?new RegExp(t)[e](o+""):n.call(t,o)},function(e){var n=o(t,e,this);if(n.done)return n.value;var a=ee(e),i=this+"",s=a.lastIndex;qa(s,0)||(a.lastIndex=0);var l=Ha(a,i);return qa(a.lastIndex,s)||(a.lastIndex=s),null===l?-1:l.index}]});var za=ft("species"),Ga=function(e,t){var o,n=ee(e).constructor;return void 0===n||null==(o=ee(n)[za])?t:xt(o)},Wa=[].push,Ya=4294967295,Ka=!I(function(){return!RegExp(Ya,"y")});La("split",2,function(e,t,o){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(e,o){var n=H(this)+"",a=void 0===o?Ya:o>>>0;if(0===a)return[];if(void 0===e)return[n];if(!wa(e))return t.call(n,e,a);for(var i,s,l,r=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,c+"g");(i=_a.call(p,n))&&(s=p.lastIndex,!(s>d&&(r.push(n.slice(d,i.index)),1=a)));)p.lastIndex===i.index&&p.lastIndex++;return d===n.length?(l||!p.test(""))&&r.push(""):r.push(n.slice(d)),r.length>a?r.slice(0,a):r}:function(e,o){return void 0===e&&0===o?[]:t.call(this,e,o)},[function(t,o){var a=H(this),i=null==t?void 0:t[e];return void 0===i?n.call(a+"",t,o):i.call(t,a,o)},function(a,s){var l=o(n,a,this,s,n!==t);if(l.done)return l.value;var r=ee(a),c=this+"",d=Ga(r,RegExp),u=r.unicode,h=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(Ka?"y":"g"),g=new d(Ka?r:"^(?:"+r.source+")",h),f=void 0===s?Ya:s>>>0;if(0===f)return[];if(0===c.length)return null===Ha(g,c)?[c]:[];for(var m=0,b=0,w=[];b",""],toolbarDropdownItem:"
  • ",toolbarDropdownSeperator:"
  • ",pageDropdown:["
      ","
    "],pageDropdownItem:"
  • %s
  • ",dropdownCaret:"",pagination:["
      ","
    "],paginationItem:"
  • %s
  • ",icon:"",inputGroup:"
    %s%s
    ",searchInput:"",searchButton:"",searchClearButton:""}},4:{iconsPrefix:"fa",icons:{paginationSwitchDown:"fa-caret-square-down",paginationSwitchUp:"fa-caret-square-up",refresh:"fa-sync",toggleOff:"fa-toggle-off",toggleOn:"fa-toggle-on",columns:"fa-th-list",detailOpen:"fa-plus",detailClose:"fa-minus",fullscreen:"fa-arrows-alt",search:"fa-search",clearSearch:"fa-trash"},classes:{buttonsPrefix:"btn",buttons:"secondary",buttonsGroup:"btn-group",buttonsDropdown:"btn-group",pull:"float",inputGroup:"btn-group",input:"form-control",paginationDropdown:"btn-group dropdown",dropup:"dropup",dropdownActive:"active",paginationActive:"active",buttonActive:"active"},html:{toolbarDropdown:["
    ","
    "],toolbarDropdownItem:"",pageDropdown:["
    ","
    "],pageDropdownItem:"%s",toolbarDropdownSeperator:"
    ",dropdownCaret:"",pagination:["
      ","
    "],paginationItem:"
  • %s
  • ",icon:"",inputGroup:"
    %s
    %s
    ",searchInput:"",searchButton:"",searchClearButton:""}}}[di],hi={height:void 0,classes:"table table-bordered table-hover",theadClasses:"",rowStyle:function(){return{}},rowAttributes:function(){return{}},undefinedText:"-",locale:void 0,virtualScroll:!1,virtualScrollItemHeight:void 0,sortable:!0,sortClass:void 0,silentSort:!0,sortName:void 0,sortOrder:"asc",sortStable:!1,rememberOrder:!1,customSort:void 0,columns:[[]],data:[],url:void 0,method:"get",cache:!0,contentType:"application/json",dataType:"json",ajax:void 0,ajaxOptions:{},queryParams:function(e){return e},queryParamsType:"limit",responseHandler:function(e){return e},totalField:"total",totalNotFilteredField:"totalNotFiltered",dataField:"rows",pagination:!1,onlyInfoPagination:!1,showExtendedPagination:!1,paginationLoop:!0,sidePagination:"client",totalRows:0,totalNotFiltered:0,pageNumber:1,pageSize:10,pageList:[10,25,50,100],paginationHAlign:"right",paginationVAlign:"bottom",paginationDetailHAlign:"left",paginationPreText:"‹",paginationNextText:"›",paginationSuccessivelySize:5,paginationPagesBySide:1,paginationUseIntermediate:!1,search:!1,searchOnEnterKey:!1,strictSearch:!1,visibleSearch:!1,showButtonIcons:!0,showButtonText:!1,showSearchButton:!1,showSearchClearButton:!1,trimOnSearch:!0,searchAlign:"right",searchTimeOut:500,searchText:"",customSearch:void 0,showHeader:!0,showFooter:!1,footerStyle:function(){return{}},showColumns:!1,showColumnsToggleAll:!1,minimumCountColumns:1,showPaginationSwitch:!1,showRefresh:!1,showToggle:!1,showFullscreen:!1,smartDisplay:!0,escape:!1,filterOptions:{filterAlgorithm:"and"},idField:void 0,selectItemName:"btSelectItem",clickToSelect:!1,ignoreClickToSelectOn:function(e){var t=e.tagName;return["A","BUTTON"].includes(t)},singleSelect:!1,checkboxHeader:!0,maintainMetaData:!1,multipleSelectRow:!1,uniqueId:void 0,cardView:!1,detailView:!1,detailViewIcon:!0,detailViewByClick:!1,detailFormatter:function(){return""},detailFilter:function(){return!0},toolbar:void 0,toolbarAlign:"left",buttonsToolbar:void 0,buttonsAlign:"right",buttonsPrefix:ui.classes.buttonsPrefix,buttonsClass:ui.classes.buttons,icons:ui.icons,html:ui.html,iconSize:void 0,iconsPrefix:ui.iconsPrefix,onAll:function(){return!1},onClickCell:function(){return!1},onDblClickCell:function(){return!1},onClickRow:function(){return!1},onDblClickRow:function(){return!1},onSort:function(){return!1},onCheck:function(){return!1},onUncheck:function(){return!1},onCheckAll:function(){return!1},onUncheckAll:function(){return!1},onCheckSome:function(){return!1},onUncheckSome:function(){return!1},onLoadSuccess:function(){return!1},onLoadError:function(){return!1},onColumnSwitch:function(){return!1},onPageChange:function(){return!1},onSearch:function(){return!1},onToggle:function(){return!1},onPreBody:function(){return!1},onPostBody:function(){return!1},onPostHeader:function(){return!1},onPostFooter:function(){return!1},onExpandRow:function(){return!1},onCollapseRow:function(){return!1},onRefreshOptions:function(){return!1},onRefresh:function(){return!1},onResetView:function(){return!1},onScrollBody:function(){return!1}},gi={formatLoadingMessage:function(){return"Loading, please wait"},formatRecordsPerPage:function(e){return"".concat(e," rows per page")},formatShowingRows:function(e,t,o,n){return void 0!==n&&0o?"Showing ".concat(e," to ").concat(t," of ").concat(o," rows (filtered from ").concat(n," total rows)"):"Showing ".concat(e," to ").concat(t," of ").concat(o," rows")},formatSRPaginationPreText:function(){return"previous page"},formatSRPaginationPageText:function(e){return"to page ".concat(e)},formatSRPaginationNextText:function(){return"next page"},formatDetailPagination:function(e){return"Showing ".concat(e," rows")},formatSearch:function(){return"Search"},formatClearSearch:function(){return"Clear Search"},formatNoMatches:function(){return"No matching records found"},formatPaginationSwitch:function(){return"Hide/Show pagination"},formatPaginationSwitchDown:function(){return"Show pagination"},formatPaginationSwitchUp:function(){return"Hide pagination"},formatRefresh:function(){return"Refresh"},formatToggle:function(){return"Toggle"},formatToggleOn:function(){return"Show card view"},formatToggleOff:function(){return"Hide card view"},formatColumns:function(){return"Columns"},formatColumnsToggleAll:function(){return"Toggle all"},formatFullscreen:function(){return"Fullscreen"},formatAllRows:function(){return"All"}};Object.assign(hi,gi);var fi={VERSION:"1.15.4",THEME:"bootstrap".concat(di),CONSTANTS:ui,DEFAULTS:hi,COLUMN_DEFAULTS:{field:void 0,title:void 0,titleTooltip:void 0,class:void 0,width:void 0,widthUnit:"px",rowspan:void 0,colspan:void 0,align:void 0,halign:void 0,falign:void 0,valign:void 0,cellStyle:void 0,radio:!1,checkbox:!1,checkboxEnabled:!0,clickToSelect:!0,showSelectTitle:!1,sortable:!1,sortName:void 0,order:"asc",sorter:void 0,visible:!0,switchable:!0,cardVisible:!0,searchable:!0,formatter:void 0,footerFormatter:void 0,detailFormatter:void 0,searchFormatter:!0,escape:!1,events:void 0},METHODS:["getOptions","refreshOptions","getData","getSelections","getAllSelections","load","append","prepend","remove","removeAll","insertRow","updateRow","getRowByUniqueId","updateByUniqueId","removeByUniqueId","updateCell","updateCellByUniqueId","showRow","hideRow","getHiddenRows","showColumn","hideColumn","getVisibleColumns","getHiddenColumns","showAllColumns","hideAllColumns","mergeCells","checkAll","uncheckAll","checkInvert","check","uncheck","checkBy","uncheckBy","refresh","destroy","resetView","resetWidth","showLoading","hideLoading","togglePagination","toggleFullscreen","toggleView","resetSearch","filterBy","scrollTo","getScrollPosition","selectPage","prevPage","nextPage","toggleDetailView","expandRow","collapseRow","expandAllRows","collapseAllRows","updateColumnTitle","updateFormatText"],EVENTS:{"all.bs.table":"onAll","click-row.bs.table":"onClickRow","dbl-click-row.bs.table":"onDblClickRow","click-cell.bs.table":"onClickCell","dbl-click-cell.bs.table":"onDblClickCell","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","post-footer.bs.table":"onPostFooter","expand-row.bs.table":"onExpandRow","collapse-row.bs.table":"onCollapseRow","refresh-options.bs.table":"onRefreshOptions","reset-view.bs.table":"onResetView","refresh.bs.table":"onRefresh","scroll-body.bs.table":"onScrollBody"},LOCALES:{en:gi,"en-US":gi}},mi=function(e,t,o,n,a,i,s,l){for(var r,c=a,d=0,p=!!s&&kt(s,l,3);d").addClass("fixed-table-scroll-inner"),o=t("
    ").addClass("fixed-table-scroll-outer");o.append(e),t("body").append(o);var n=e[0].offsetWidth;o.css("overflow","scroll");var a=e[0].offsetWidth;n===a&&(a=o[0].clientWidth),o.remove(),this.cachedWidth=n-a}return this.cachedWidth},calculateObjectValue:function(e,t,o,a){var i=t;if("string"==typeof t){var s=t.split(".");if(1/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`"):e},getRealDataAttr:function(e){for(var t=0,o=Object.entries(e);ttd,>th").each(function(a,s){for(var r=+t(s).attr("colspan")||1,c=+t(s).attr("rowspan")||1,d=a;i[o]&&i[o][d];d++);for(var p=d;pt?o:0):e===t?0:("string"!=typeof e&&(e=e.toString()),-1===e.localeCompare(t)?-1*o:o)}},wi=50,vi=4,Si=function(){function e(t){var o=this;a(this,e),this.rows=t.rows,this.scrollEl=t.scrollEl,this.contentEl=t.contentEl,this.callback=t.callback,this.itemHeight=t.itemHeight,this.cache={},this.scrollTop=this.scrollEl.scrollTop,this.initDOM(this.rows),this.scrollEl.scrollTop=this.scrollTop,this.lastCluster=0;var n=function(){o.lastCluster!==(o.lastCluster=o.getNum())&&(o.initDOM(o.rows),o.callback())};this.scrollEl.addEventListener("scroll",n,!1),this.destroy=function(){o.contentEl.innerHtml="",o.scrollEl.removeEventListener("scroll",n,!1)}}return s(e,[{key:"initDOM",value:function(e){"undefined"==typeof this.clusterHeight&&(this.cache.data=this.contentEl.innerHTML=e[0]+e[0]+e[0],this.getRowsHeight(e));var t=this.initData(e,this.getNum()),o=t.rows.join(""),n=this.checkChanges("data",o),a=this.checkChanges("top",t.topOffset),i=this.checkChanges("bottom",t.bottomOffset),s=[];n&&a?(t.topOffset&&s.push(this.getExtra("top",t.topOffset)),s.push(o),t.bottomOffset&&s.push(this.getExtra("bottom",t.bottomOffset)),this.contentEl.innerHTML=s.join("")):i&&(this.contentEl.lastChild.style.height="".concat(t.bottomOffset,"px"))}},{key:"getRowsHeight",value:function(){if("undefined"==typeof this.itemHeight){var e=this.contentEl.children,t=e[w(e.length/2)];this.itemHeight=t.offsetHeight}this.blockHeight=this.itemHeight*wi,this.clusterRows=wi*vi,this.clusterHeight=this.blockHeight*vi}},{key:"getNum",value:function(){return this.scrollTop=this.scrollEl.scrollTop,w(this.scrollTop/(this.clusterHeight-this.blockHeight))||0}},{key:"initData",value:function(e,t){if(e.lengtha&&r++;for(var c=o;c
    ":"",o=["bottom","both"].includes(this.options.paginationVAlign)?"
    ":"";this.$container=t("\n
    \n
    \n ").concat(e,"\n
    \n
    \n
    \n
    \n \n ").concat(this.options.formatLoadingMessage(),"\n \n \n
    \n
    \n
    \n
    \n ").concat(o,"\n
    \n ")),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.$el.find("tfoot"),this.$toolbar=this.options.buttonsToolbar?t("body").find(this.options.buttonsToolbar):this.$container.find(".fixed-table-toolbar"),this.$pagination=this.$container.find(".fixed-table-pagination"),this.$tableBody.append(this.$el),this.$container.after("
    "),this.$el.addClass(this.options.classes),this.$tableLoading.addClass(this.options.classes),this.options.height?(this.$tableContainer.addClass("fixed-height"),this.options.showFooter&&this.$tableContainer.addClass("has-footer"),this.options.classes.split(" ").includes("table-bordered")&&(this.$tableBody.append("
    "),this.$tableBorder=this.$tableBody.find(".fixed-table-border"),this.$tableLoading.addClass("fixed-table-border")),this.$tableFooter=this.$container.find(".fixed-table-footer")):!this.$tableFooter.length&&(this.$el.append(""),this.$tableFooter=this.$el.find("tfoot"))}},{key:"initTable",value:function(){var o=this,n=[];this.$header=this.$el.find(">thead"),this.$header.length?this.options.theadClasses&&this.$header.addClass(this.options.theadClasses):this.$header=t("")).appendTo(this.$el),this.$header.find("tr").each(function(e,o){var a=[];t(o).find("th").each(function(e,o){"undefined"!=typeof t(o).data("field")&&t(o).data("field","".concat(t(o).data("field"))),a.push(t.extend({},{title:t(o).html(),class:t(o).attr("class"),titleTooltip:t(o).attr("title"),rowspan:t(o).attr("rowspan")?+t(o).attr("rowspan"):void 0,colspan:t(o).attr("colspan")?+t(o).attr("colspan"):void 0},t(o).data()))}),n.push(a)}),Array.isArray(this.options.columns[0])||(this.options.columns=[this.options.columns]),this.options.columns=t.extend(!0,[],n,this.options.columns),this.columns=[],this.fieldsColumnsIndex=[],yi.setFieldIndex(this.options.columns),this.options.columns.forEach(function(n,a){n.forEach(function(n,i){var s=t.extend({},e.COLUMN_DEFAULTS,n);"undefined"!=typeof s.fieldIndex&&(o.columns[s.fieldIndex]=s,o.fieldsColumnsIndex[s.field]=s.fieldIndex),o.options.columns[a][i]=s})}),this.options.data.length||(this.options.data=yi.trToData(this.columns,this.$el.find(">tbody>tr")),[].length&&(this.fromHtml=!0)),this.footerData=yi.trToData(this.columns,this.$el.find(">tfoot>tr")),this.footerData&&this.$el.find("tfoot").html(""),!this.options.showFooter||this.options.cardView?this.$tableFooter.hide():this.$tableFooter.show()}},{key:"initHeader",value:function(){var o=this,n={},a=[];this.header={fields:[],styles:[],classes:[],formatters:[],detailFormatters:[],events:[],sorters:[],sortNames:[],cellStyles:[],searchables:[]},yi.updateFieldGroup(this.options.columns),this.options.columns.forEach(function(e,t){a.push(""),0===t&&!o.options.cardView&&o.options.detailView&&o.options.detailViewIcon&&a.push("\n
    \n \n ")),e.forEach(function(e,i){var s=yi.sprintf(" class=\"%s\"",e["class"]),l=e.widthUnit,r=parseFloat(e.width),c=yi.sprintf("text-align: %s; ",e.halign?e.halign:e.align),d=yi.sprintf("text-align: %s; ",e.align),p=yi.sprintf("vertical-align: %s; ",e.valign);if(p+=yi.sprintf("width: %s; ",(e.checkbox||e.radio)&&!r?e.showSelectTitle?void 0:"36px":r?r+l:void 0),"undefined"!=typeof e.fieldIndex||e.visible){if("undefined"!=typeof e.fieldIndex){if(o.header.fields[e.fieldIndex]=e.field,o.header.styles[e.fieldIndex]=d+p,o.header.classes[e.fieldIndex]=s,o.header.formatters[e.fieldIndex]=e.formatter,o.header.detailFormatters[e.fieldIndex]=e.detailFormatter,o.header.events[e.fieldIndex]=e.events,o.header.sorters[e.fieldIndex]=e.sorter,o.header.sortNames[e.fieldIndex]=e.sortName,o.header.cellStyles[e.fieldIndex]=e.cellStyle,o.header.searchables[e.fieldIndex]=e.searchable,!e.visible)return;if(o.options.cardView&&!e.cardVisible)return;n[e.field]=e}a.push(""),a.push(yi.sprintf("
    ",o.options.sortable&&e.sortable?"sortable both":""));var u=o.options.escape?yi.escapeHTML(e.title):e.title,h=u;e.checkbox&&(u="",!o.options.singleSelect&&o.options.checkboxHeader&&(u=""),o.header.stateField=e.field),e.radio&&(u="",o.header.stateField=e.field,o.options.singleSelect=!0),!u&&e.showSelectTitle&&(u+=h),a.push(u),a.push("
    "),a.push("
    "),a.push(""),a.push("")}}),a.push("")}),this.$header.html(a.join("")),this.$header.find("th[data-field]").each(function(e,o){t(o).data(n[t(o).data("field")])}),this.$container.off("click",".th-inner").on("click",".th-inner",function(n){var e=t(n.currentTarget);return(!o.options.detailView||e.parent().hasClass("bs-checkbox")||e.closest(".bootstrap-table")[0]===o.$container[0])&&void(o.options.sortable&&e.parent().data().sortable&&o.onSort(n))}),this.$header.children().children().off("keypress").on("keypress",function(n){if(o.options.sortable&&t(n.currentTarget).data().sortable){var e=n.keyCode||n.which;13===e&&o.onSort(n)}});var i="resize.bootstrap-table".concat(this.$el.attr("id")||"");t(window).off(i),!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(i,function(t){return o.resetWidth(t)})),this.$selectAll=this.$header.find("[name=\"btSelectAll\"]"),this.$selectAll.off("click").on("click",function(e){var n=e.currentTarget,a=t(n).prop("checked");o[a?"checkAll":"uncheckAll"](),o.updateSelected()})}},{key:"initData",value:function(e,t){this.options.data="append"===t?this.options.data.concat(e):"prepend"===t?[].concat(e).concat(this.options.data):e||this.options.data,this.data=this.options.data,"server"===this.options.sidePagination||this.initSort()}},{key:"initSort",value:function(){var e=this,t=this.options.sortName,o="desc"===this.options.sortOrder?-1:1,n=this.header.fields.indexOf(this.options.sortName),a=0;-1!==n&&(this.options.sortStable&&this.data.forEach(function(e,t){e.hasOwnProperty("_position")||(e._position=t)}),this.options.customSort?yi.calculateObjectValue(this.options,this.options.customSort,[this.options.sortName,this.options.sortOrder,this.data]):this.data.sort(function(i,a){e.header.sortNames[n]&&(t=e.header.sortNames[n]);var s=yi.getItemField(i,t,e.options.escape),l=yi.getItemField(a,t,e.options.escape),r=yi.calculateObjectValue(e.header,e.header.sorters[n],[s,l,i,a]);return void 0===r?yi.sort(s,l,o,e.options.sortStable):e.options.sortStable&&0===r?o*(i._position-a._position):o*r}),void 0!==this.options.sortClass&&(clearTimeout(a),a=setTimeout(function(){e.$el.removeClass(e.options.sortClass);var t=e.$header.find("[data-field=\"".concat(e.options.sortName,"\"]")).index();e.$el.find("tr td:nth-child(".concat(t+1,")")).addClass(e.options.sortClass)},250)))}},{key:"onSort",value:function(e){var o=e.type,n=e.currentTarget,a="keypress"===o?t(n):t(n).parent(),i=this.$header.find("th").eq(a.index());return this.$header.add(this.$header_).find("span.order").remove(),this.options.sortName===a.data("field")?this.options.sortOrder="asc"===this.options.sortOrder?"desc":"asc":(this.options.sortName=a.data("field"),this.options.sortOrder=this.options.rememberOrder?"asc"===a.data("order")?"desc":"asc":this.columns[this.fieldsColumnsIndex[a.data("field")]].sortOrder||this.columns[this.fieldsColumnsIndex[a.data("field")]].order),this.trigger("sort",this.options.sortName,this.options.sortOrder),a.add(i).data("order",this.options.sortOrder),this.getCaret(),"server"===this.options.sidePagination?(this.options.pageNumber=1,void this.initServer(this.options.silentSort)):void(this.initSort(),this.initBody())}},{key:"initToolbar",value:function(){var e,a,s=this,l=this.options,o=[],i=0,r=0;if(this.$toolbar.find(".bs-bars").children().length&&t("body").append(t(l.toolbar)),this.$toolbar.html(""),("string"==typeof l.toolbar||"object"===n(l.toolbar))&&t(yi.sprintf("
    ",this.constants.classes.pull,l.toolbarAlign)).appendTo(this.$toolbar).append(t(l.toolbar)),o=["
    ")],"string"==typeof l.icons&&(l.icons=yi.calculateObjectValue(null,l.icons)),l.showPaginationSwitch&&o.push("")),l.showRefresh&&o.push("")),l.showToggle&&o.push("")),l.showFullscreen&&o.push("")),l.showColumns){if(o.push("
    \n \n ").concat(this.constants.html.toolbarDropdown[0])),l.showColumnsToggleAll){var c=this.getVisibleColumns().length===this.columns.length;o.push(yi.sprintf(this.constants.html.toolbarDropdownItem,yi.sprintf(" %s",c?"checked=\"checked\"":"",l.formatColumnsToggleAll()))),o.push(this.constants.html.toolbarDropdownSeperator)}this.columns.forEach(function(e,t){if(!(e.radio||e.checkbox)&&(!l.cardView||e.cardVisible)){var n=e.visible?" checked=\"checked\"":"";e.switchable&&(o.push(yi.sprintf(s.constants.html.toolbarDropdownItem,yi.sprintf(" %s",e.field,t,n,e.title))),r++)}}),o.push(this.constants.html.toolbarDropdown[1],"
    ")}if(o.push("
    "),(this.showToolbar||2"),f=g;if(l.showSearchButton||l.showSearchClearButton){var m=(l.showSearchButton?u:"")+(l.showSearchClearButton?h:"");f=l.search?yi.sprintf(this.constants.html.inputGroup,g,m):m}o.push(yi.sprintf("\n
    \n %s\n
    \n "),f)),this.$toolbar.append(o.join(""));var b=this.$toolbar.find(".search input");a=l.showSearchButton?this.$toolbar.find(".search button[name=search]"):b;var y=l.showSearchButton?"click":yi.isIEBrowser()?"mouseup":"keyup drop blur";a.off(y).on(y,function(e){l.searchOnEnterKey&&13!==e.keyCode||[37,38,39,40].includes(e.keyCode)||(clearTimeout(i),i=setTimeout(function(){s.onSearch(l.showSearchButton?{currentTarget:b}:e)},l.searchTimeOut))}),l.showSearchClearButton&&this.$toolbar.find(".search button[name=clearSearch]").click(function(){s.resetSearch()})}}},{key:"onSearch",value:function(){var e=0|=<|>=|>|<)(?:\s+)?(\d+)?|(\d+)?(\s+)?(<=|=>|=<|>=|>|<))/gm,u=p.exec(t),h=!1;if(u){var g=u[1]||"".concat(u[5],"l"),f=u[2]||u[3],m=parseInt(r,10),b=parseInt(f,10);switch(g){case">":case"b;break;case"<":case">l":h=m=l":case"=>l":h=m<=b;break;case">=":case"=>":case"<=l":case"==b;break;default:}}if(h||"".concat(r).toLowerCase().includes(t))return!0}else if("".concat(r).toLowerCase()===t)return!0}return!1}):this.data}}},{key:"initPagination",value:function(){var e=Math.round,t=this,n=this.options;if(!n.pagination)return void this.$pagination.hide();this.$pagination.show();var o,a,s,l,r,c,d,p=[],u=!1,h=this.getData({includeHiddenRows:!1}),g=n.pageList;if("server"!==n.sidePagination&&(n.totalRows=h.length),this.totalPages=0,n.totalRows){if(n.pageSize===n.formatAllRows())n.pageSize=n.totalRows,u=!0;else if(n.pageSize===n.totalRows){var f="string"==typeof n.pageList?n.pageList.replace("[","").replace("]","").replace(/ /g,"").toLowerCase().split(","):n.pageList;f.includes(n.formatAllRows().toLowerCase())&&(u=!0)}this.totalPages=~~((n.totalRows-1)/n.pageSize)+1,n.totalPages=this.totalPages}0this.totalPages&&(n.pageNumber=this.totalPages),this.pageFrom=(n.pageNumber-1)*n.pageSize+1,this.pageTo=n.pageNumber*n.pageSize,this.pageTo>n.totalRows&&(this.pageTo=n.totalRows),this.options.pagination&&"server"!==this.options.sidePagination&&(this.options.totalNotFiltered=this.options.data.length),this.options.showExtendedPagination||(this.options.totalNotFiltered=void 0);var m=n.onlyInfoPagination?n.formatDetailPagination(n.totalRows):n.formatShowingRows(this.pageFrom,this.pageTo,n.totalRows,n.totalNotFiltered);if(p.push("
    \n \n ").concat(m,"\n ")),!n.onlyInfoPagination){p.push("");var b=["\n \n ").concat(this.constants.html.pageDropdown[0])];if("string"==typeof n.pageList){var y=n.pageList.replace("[","").replace("]","").replace(/ /g,"").split(",");g=[];var w=!0,v=!1,S=void 0;try{for(var x,k,T=y[Symbol.iterator]();!(w=(x=T.next()).done);w=!0)k=x.value,g.push(k.toLowerCase()===n.formatAllRows().toLowerCase()||["all","unlimited"].includes(k.toLowerCase())?n.formatAllRows():+k)}catch(e){v=!0,S=e}finally{try{w||null==T.return||T.return()}finally{if(v)throw S}}}g.forEach(function(e,o){if(!n.smartDisplay||0===o||g[o-1]")),p.push(n.formatRecordsPerPage(b.join(""))),p.push("
    "),p.push("
    "),yi.sprintf(this.constants.html.pagination[0],yi.sprintf(" pagination-%s",n.iconSize)),yi.sprintf(this.constants.html.paginationItem," page-pre",n.formatSRPaginationPreText(),n.paginationPreText)),this.totalPagesthis.totalPages-a&&(a=a-(n.paginationSuccessivelySize-(this.totalPages-a))+1),1>a&&(a=1),s>this.totalPages&&(s=this.totalPages);var P=e(n.paginationPagesBySide/2),O=function(e){var o=1=a&&(C=a-1),o=1;o<=C;o++)p.push(O(o));a-1===C+1?(o=a-1,p.push(O(o))):a-1>C&&(a-2*n.paginationPagesBySide>n.paginationPagesBySide&&n.paginationUseIntermediate?(o=e((a-P)/2+P),p.push(O(o," page-intermediate"))):p.push(yi.sprintf(this.constants.html.paginationItem," page-first-separator disabled","","...")))}for(o=a;o<=s;o++)p.push(O(o));if(this.totalPages>s){var I=this.totalPages-(n.paginationPagesBySide-1);for(s>=I&&(I=s+1),s+1===I-1?(o=s+1,p.push(O(o))):I>s+1&&(this.totalPages-s>2*n.paginationPagesBySide&&n.paginationUseIntermediate?(o=e((this.totalPages-P-s)/2+s),p.push(O(o," page-intermediate"))):p.push(yi.sprintf(this.constants.html.paginationItem," page-last-separator disabled","","..."))),o=I;o<=this.totalPages;o++)p.push(O(o))}p.push(yi.sprintf(this.constants.html.paginationItem," page-next",n.formatSRPaginationNextText(),n.paginationNextText)),p.push(this.constants.html.pagination[1],"
    ")}this.$pagination.html(p.join(""));var $=["bottom","both"].includes(n.paginationVAlign)?" ".concat(this.constants.classes.dropup):"";this.$pagination.last().find(".page-list > span").addClass($),n.onlyInfoPagination||(l=this.$pagination.find(".page-list a"),r=this.$pagination.find(".page-pre"),c=this.$pagination.find(".page-next"),d=this.$pagination.find(".page-item").not(".page-next, .page-pre, .page-last-separator, .page-first-separator"),1>=this.totalPages&&this.$pagination.find("div.pagination").hide(),n.smartDisplay&&(2>g.length||n.totalRows<=g[0])&&this.$pagination.find("span.page-list").hide(),this.$pagination[this.getData().length?"show":"hide"](),!n.paginationLoop&&(1===n.pageNumber&&r.addClass("disabled"),n.pageNumber===this.totalPages&&c.addClass("disabled")),u&&(n.pageSize=n.formatAllRows()),l.off("click").on("click",function(o){return t.onPageListChange(o)}),r.off("click").on("click",function(o){return t.onPagePre(o)}),c.off("click").on("click",function(o){return t.onPageNext(o)}),d.off("click").on("click",function(o){return t.onPageNumber(o)}))}},{key:"updatePagination",value:function(e){e&&t(e.currentTarget).hasClass("disabled")||(!this.options.maintainMetaData&&this.resetRows(),this.initPagination(),"server"===this.options.sidePagination?this.initServer():this.initBody(),this.trigger("page-change",this.options.pageNumber,this.options.pageSize))}},{key:"onPageListChange",value:function(e){e.preventDefault();var o=t(e.currentTarget);return o.parent().addClass(this.constants.classes.dropdownActive).siblings().removeClass(this.constants.classes.dropdownActive),this.options.pageSize=o.text().toUpperCase()===this.options.formatAllRows().toUpperCase()?this.options.formatAllRows():+o.text(),this.$toolbar.find(".page-size").text(this.options.pageSize),this.updatePagination(e),!1}},{key:"onPagePre",value:function(e){return e.preventDefault(),0==this.options.pageNumber-1?this.options.pageNumber=this.options.totalPages:this.options.pageNumber--,this.updatePagination(e),!1}},{key:"onPageNext",value:function(e){return e.preventDefault(),this.options.pageNumber+1>this.options.totalPages?this.options.pageNumber=1:this.options.pageNumber++,this.updatePagination(e),!1}},{key:"onPageNumber",value:function(e){if(e.preventDefault(),this.options.pageNumber!==+t(e.currentTarget).text())return this.options.pageNumber=+t(e.currentTarget).text(),this.updatePagination(e),!1}},{key:"initRow",value:function(e,t){var o=this,a=[],i={},s=[],r="",c={},d=[];if(!(-1"),this.options.cardView&&a.push("
    ")),!this.options.cardView&&this.options.detailView&&this.options.detailViewIcon&&(a.push(""),yi.calculateObjectValue(null,this.options.detailFilter,[t,e])&&a.push("\n \n ".concat(yi.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailOpen),"\n \n ")),a.push("")),this.header.fields.forEach(function(n,i){var r="",d=yi.getItemField(e,n,o.options.escape),p="",u="",h={},g="",f=o.header.classes[i],m="",b="",y="",w="",S="",x=o.columns[i];if((!o.fromHtml||"undefined"!=typeof d||x.checkbox||x.radio)&&x.visible&&(!o.options.cardView||x.cardVisible)){if(x.escape&&(d=yi.escapeHTML(d)),s.concat([o.header.styles[i]]).length&&(m=" style=\"".concat(s.concat([o.header.styles[i]]).join("; "),"\"")),e["_".concat(n,"_id")]&&(g=yi.sprintf(" id=\"%s\"",e["_".concat(n,"_id")])),e["_".concat(n,"_class")]&&(f=yi.sprintf(" class=\"%s\"",e["_".concat(n,"_class")])),e["_".concat(n,"_rowspan")]&&(y=yi.sprintf(" rowspan=\"%s\"",e["_".concat(n,"_rowspan")])),e["_".concat(n,"_colspan")]&&(w=yi.sprintf(" colspan=\"%s\"",e["_".concat(n,"_colspan")])),e["_".concat(n,"_title")]&&(S=yi.sprintf(" title=\"%s\"",e["_".concat(n,"_title")])),h=yi.calculateObjectValue(o.header,o.header.cellStyles[i],[d,e,t,n],h),h.classes&&(f=" class=\"".concat(h.classes,"\"")),h.css){for(var T=[],P=0,O=Object.entries(h.css);P"):""),""),o.header.formatters[i]&&"string"==typeof p?p:"",o.options.cardView?"
    ":""].join(""),e[o.header.stateField]=!0===p||!!d||p&&p.checked}else if(p="undefined"==typeof p||null===p?o.options.undefinedText:p,o.options.cardView){var F=o.options.showHeader?"").concat(yi.getFieldTitle(o.columns,n),""):"";r="
    ".concat(F,"").concat(p,"
    "),o.options.smartDisplay&&""===p&&(r="
    ")}else r="").concat(p,"");a.push(r)}}),this.options.cardView&&a.push(""),a.push(""),a.join("")}}},{key:"initBody",value:function(e){var o=this,n=this.getData();this.trigger("pre-body",n),this.$body=this.$el.find(">tbody"),this.$body.length||(this.$body=t("").appendTo(this.$el)),this.options.pagination&&"server"!==this.options.sidePagination||(this.pageFrom=1,this.pageTo=n.length);for(var a=[],s=t(document.createDocumentFragment()),l=!1,r=this.pageFrom-1;r".concat(yi.sprintf("%s",this.$header.find("th").length,this.options.formatNoMatches()),"")),e||this.scrollTo(0),this.$body.find("> tr[data-index] > td").off("click dblclick").on("click dblclick",function(n){var e=t(n.currentTarget),a=e.parent(),i=t(n.target).parents(".card-views").children(),s=t(n.target).parents(".card-view"),l=a.data("index"),r=o.data[l],c=o.options.cardView?i.index(s):e[0].cellIndex,d=o.getVisibleFields(),p=d[o.options.detailView&&o.detailViewIcon&&!o.options.cardView?c-1:c],u=o.columns[o.fieldsColumnsIndex[p]],h=yi.getItemField(r,p,o.options.escape);if(!e.find(".detail-icon").length){if(o.trigger("click"===n.type?"click-cell":"dbl-click-cell",p,h,r,e),o.trigger("click"===n.type?"click-row":"dbl-click-row",r,a,p),"click"===n.type&&o.options.clickToSelect&&u.clickToSelect&&!yi.calculateObjectValue(o.options,o.options.ignoreClickToSelectOn,[n.target])){var g=a.find(yi.sprintf("[name=\"%s\"]",o.options.selectItemName));g.length&&g[0].click()}"click"===n.type&&o.options.detailViewByClick&&o.toggleDetailView(l,o.header.detailFormatters[o.fieldsColumnsIndex[p]])}}).off("mousedown").on("mousedown",function(t){o.multipleSelectRowCtrlKey=t.ctrlKey||t.metaKey,o.multipleSelectRowShiftKey=t.shiftKey}),this.$body.find("> tr[data-index] > td > .detail-icon").off("click").on("click",function(n){return n.preventDefault(),o.toggleDetailView(t(n.currentTarget).parent().parent().data("index")),!1}),this.$selectItem=this.$body.find(yi.sprintf("[name=\"%s\"]",this.options.selectItemName)),this.$selectItem.off("click").on("click",function(n){n.stopImmediatePropagation();var e=t(n.currentTarget);o._toggleCheck(e.prop("checked"),e.data("index"))}),this.header.events.forEach(function(e,n){var a=e;if(a){"string"==typeof a&&(a=yi.calculateObjectValue(null,a));var i=o.header.fields[n],s=o.getVisibleFields().indexOf(i);if(-1!==s){o.options.detailView&&!o.options.cardView&&(s+=1);var l=function(e){if(!a.hasOwnProperty(e))return"continue";var n=a[e];o.$body.find(">tr:not(.no-records-found)").each(function(a,l){var r=t(l),c=r.find(o.options.cardView?".card-views>.card-view":">td").eq(s),d=e.indexOf(" "),p=e.substring(0,d),u=e.substring(d+1);c.find(u).off(p).on(p,function(t){var e=r.data("index"),a=o.data[e],s=a[i];n.apply(o,[t,s,a,e])})})};for(var r in a){var c=l(r)}}}}),this.updateSelected(),this.initFooter(),this.resetView(),"server"!==this.options.sidePagination&&(this.options.totalRows=n.length),this.trigger("post-body",n)}},{key:"initServer",value:function(e,o,n){var a=this,i={},s=this.header.fields.indexOf(this.options.sortName),l={searchText:this.searchText,sortName:this.options.sortName,sortOrder:this.options.sortOrder};if((this.header.sortNames[s]&&(l.sortName=this.header.sortNames[s]),this.options.pagination&&"server"===this.options.sidePagination&&(l.pageSize=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,l.pageNumber=this.options.pageNumber),n||this.options.url||this.options.ajax)&&("limit"===this.options.queryParamsType&&(l={search:l.searchText,sort:l.sortName,order:l.sortOrder},this.options.pagination&&"server"===this.options.sidePagination&&(l.offset=this.options.pageSize===this.options.formatAllRows()?0:this.options.pageSize*(this.options.pageNumber-1),l.limit=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,0===l.limit&&delete l.limit)),yi.isEmptyObject(this.filterColumnsPartial)||(l.filter=JSON.stringify(this.filterColumnsPartial,null)),t.extend(l,o||{}),i=yi.calculateObjectValue(this.options,this.options.queryParams,[l],i),!1!==i)){e||this.showLoading();var r=t.extend({},yi.calculateObjectValue(null,this.options.ajaxOptions),{type:this.options.method,url:n||this.options.url,data:"application/json"===this.options.contentType&&"post"===this.options.method?JSON.stringify(i):i,cache:this.options.cache,contentType:this.options.contentType,dataType:this.options.dataType,success:function(t){var o=yi.calculateObjectValue(a.options,a.options.responseHandler,[t],t);a.load(o),a.trigger("load-success",o),e||a.hideLoading()},error:function(t){var o=[];"server"===a.options.sidePagination&&(o={},o[a.options.totalField]=0,o[a.options.dataField]=[]),a.load(o),a.trigger("load-error",t.status,t),e||a.$tableLoading.hide()}});return this.options.ajax?yi.calculateObjectValue(this,this.options.ajax,[r],null):(this._xhr&&4!==this._xhr.readyState&&this._xhr.abort(),this._xhr=t.ajax(r)),i}}},{key:"initSearchText",value:function(){if(this.options.search&&(this.searchText="",""!==this.options.searchText)){var e=this.$toolbar.find(".search input");e.val(this.options.searchText),this.onSearch({currentTarget:e,firedByInitSearchText:!0})}}},{key:"getCaret",value:function(){var e=this;this.$header.find("th").each(function(o,n){t(n).find(".sortable").removeClass("desc asc").addClass(t(n).data("field")===e.options.sortName?e.options.sortOrder:"both")})}},{key:"updateSelected",value:function(){var e=this.$selectItem.filter(":enabled").length&&this.$selectItem.filter(":enabled").length===this.$selectItem.filter(":enabled").filter(":checked").length;this.$selectAll.add(this.$selectAll_).prop("checked",e),this.$selectItem.each(function(e,o){t(o).closest("tr")[t(o).prop("checked")?"addClass":"removeClass"]("selected")})}},{key:"updateRows",value:function(){var e=this;this.$selectItem.each(function(o,n){e.data[t(n).data("index")][e.header.stateField]=t(n).prop("checked")})}},{key:"resetRows",value:function(){var e=!0,t=!1,o=void 0;try{for(var n,a,i=this.data[Symbol.iterator]();!(e=(n=i.next()).done);e=!0)a=n.value,this.$selectAll.prop("checked",!1),this.$selectItem.prop("checked",!1),this.header.stateField&&(a[this.header.stateField]=!1)}catch(e){t=!0,o=e}finally{try{e||null==i.return||i.return()}finally{if(t)throw o}}this.initHiddenRows()}},{key:"trigger",value:function(o){for(var n,a="".concat(o,".bs.table"),i=arguments.length,s=Array(1o.clientWidth&&o.scrollHeight>o.clientHeight+this.$header.outerHeight()?yi.getScrollBarWidth():0;this.$el.css("margin-top",-this.$header.outerHeight());var a=t(":focus");if(0tr:not(.no-records-found,.virtual-scroll-top)").eq(0);p.length&&p.find(">td[colspan]:not([colspan=\"1\"])").length;)p=p.next();p.find("> *").each(function(o,n){var a=t(n),i=o;if(e.options.detailView&&e.options.detailViewIcon&&!e.options.cardView){if(0===o){var s=d.filter(".detail"),l=s.innerWidth()-s.find(".fht-cell").width();s.find(".fht-cell").width(a.innerWidth()-l)}i=o-1}if(-1!==i){var r=e.$header_.find(yi.sprintf("th[data-field=\"%s\"]",c[i]));1
    ");var o=!0,n=!1,a=void 0;try{for(var i,s=this.columns[Symbol.iterator]();!(o=(i=s.next()).done);o=!0){var r=i.value,c="",d="",p=[],u={},h=yi.sprintf(" class=\"%s\"",r["class"]);if(r.visible){if(this.options.cardView&&!r.cardVisible)return;if(c=yi.sprintf("text-align: %s; ",r.falign?r.falign:r.align),d=yi.sprintf("vertical-align: %s; ",r.valign),u=yi.calculateObjectValue(null,this.options.footerStyle,[r]),u&&u.css)for(var g=0,f=Object.entries(u.css);g"),t.push("
    "),t.push(yi.calculateObjectValue(r,r.footerFormatter,[e],this.footerData[0]&&this.footerData[0][r.field]||"")),t.push("
    "),t.push("
    "),t.push(""),t.push("")}}}catch(e){n=!0,a=e}finally{try{o||null==s.return||s.return()}finally{if(n)throw a}}this.$tableFooter.find("tr").html(t.join("")),this.trigger("post-footer",this.$tableFooter)}}},{key:"fitFooter",value:function(){var e=this;if(this.$el.is(":hidden"))return void setTimeout(function(){return e.fitFooter()},100);var o=this.$tableBody.get(0),n=o.scrollWidth>o.clientWidth&&o.scrollHeight>o.clientHeight+this.$header.outerHeight()?yi.getScrollBarWidth():0;this.$tableFooter.css("margin-right",n).find("table").css("width",this.$el.outerWidth()).attr("class",this.$el.attr("class"));for(var a=this.getVisibleFields(),s=this.$tableFooter.find("th"),l=this.$body.find(">tr:first-child:not(.no-records-found)");l.length&&l.find(">td[colspan]:not([colspan=\"1\"])").length;)l=l.next();l.find("> *").each(function(o,n){var a=t(n),i=o;if(e.options.detailView&&!e.options.cardView){if(0===o){var l=s.filter(".detail"),r=l.innerWidth()-l.find(".fht-cell").width();l.find(".fht-cell").width(a.innerWidth()-r)}i=o-1}if(-1!==i){var c=s.eq(o),d=c.innerWidth()-c.find(".fht-cell").width();c.find(".fht-cell").width(a.innerWidth()-d)}}),this.horizontalScroll()}},{key:"horizontalScroll",value:function(){var e=this;this.trigger("scroll-body"),this.$tableBody.off("scroll").on("scroll",function(o){var n=o.currentTarget;e.options.showHeader&&e.options.height&&e.$tableHeader.scrollLeft(t(n).scrollLeft()),e.options.showFooter&&!e.options.cardView&&e.$tableFooter.scrollLeft(t(n).scrollLeft())})}},{key:"getVisibleFields",value:function(){var e=[],t=!0,o=!1,n=void 0;try{for(var a,i=this.header.fields[Symbol.iterator]();!(t=(a=i.next()).done);t=!0){var s=a.value,l=this.columns[this.fieldsColumnsIndex[s]];l&&l.visible&&e.push(s)}}catch(e){o=!0,n=e}finally{try{t||null==i.return||i.return()}finally{if(o)throw n}}return e}},{key:"initHiddenRows",value:function(){this.hiddenRows=[]}},{key:"getOptions",value:function(){var e=t.extend({},this.options);return delete e.data,t.extend(!0,{},e)}},{key:"refreshOptions",value:function(e){yi.compareObjects(this.options,e,!0)||(this.options=t.extend(this.options,e),this.trigger("refresh-options",this.options),this.destroy(),this.init())}},{key:"getData",value:function(e){var t=this.options.data;if((this.searchText||this.options.sortName||!yi.isEmptyObject(this.filterColumns)||!yi.isEmptyObject(this.filterColumnsPartial))&&(t=this.data),e&&e.useCurrentPage&&(t=t.slice(this.pageFrom-1,this.pageTo)),e&&!e.includeHiddenRows){var o=this.getHiddenRows();t=t.filter(function(e){return-1===yi.findIndex(o,e)})}return t}},{key:"getSelections",value:function(){var e=this;return this.data.filter(function(t){return!0===t[e.header.stateField]})}},{key:"getAllSelections",value:function(){var e=this;return this.options.data.filter(function(t){return!0===t[e.header.stateField]})}},{key:"load",value:function(e){var t=!1,o=e;this.options.pagination&&"server"===this.options.sidePagination&&(this.options.totalRows=o[this.options.totalField]),this.options.pagination&&"server"===this.options.sidePagination&&(this.options.totalNotFiltered=o[this.options.totalNotFilteredField]),t=o.fixedScroll,o=Array.isArray(o)?o:o[this.options.dataField],this.initData(o),this.initSearch(),this.initPagination(),this.initBody(t)}},{key:"append",value:function(e){this.initData(e,"append"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"prepend",value:function(e){this.initData(e,"prepend"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"remove",value:function(e){var t,o,n=this.options.data.length;if(e.hasOwnProperty("field")&&e.hasOwnProperty("values")){for(t=n-1;0<=t;t--)(o=this.options.data[t],!!o.hasOwnProperty(e.field))&&e.values.includes(o[e.field])&&(this.options.data.splice(t,1),"server"===this.options.sidePagination&&(this.options.totalRows-=1));n===this.options.data.length||(this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))}}},{key:"removeAll",value:function(){0o.options.minimumCountColumns&&t(n).prop("checked",e)}),c.filter(":checked").length<=this.options.minimumCountColumns&&c.filter(":checked").prop("disabled",!0)}}},{key:"mergeCells",value:function(e){var t,o,n=e.index,a=this.getVisibleFields().indexOf(e.field),s=e.rowspan||1,l=e.colspan||1,r=this.$body.find(">tr");this.options.detailView&&!this.options.cardView&&(a+=1);var c=r.eq(n).find(">td").eq(a);if(!(0>n||0>a||n>=this.data.length)){for(t=n;ttd").eq(o).hide();c.attr("rowspan",s).attr("colspan",l).show()}}},{key:"checkAll",value:function(){this._toggleCheckAll(!0)}},{key:"uncheckAll",value:function(){this._toggleCheckAll(!1)}},{key:"_toggleCheckAll",value:function(e){var t=this.getSelections();this.$selectAll.add(this.$selectAll_).prop("checked",e),this.$selectItem.filter(":enabled").prop("checked",e),this.updateRows();var o=this.getSelections();return e?void this.trigger("check-all",o,t):void this.trigger("uncheck-all",o,t)}},{key:"checkInvert",value:function(){var e=this.$selectItem.filter(":enabled"),o=e.filter(":checked");e.each(function(e,o){t(o).prop("checked",!t(o).prop("checked"))}),this.updateRows(),this.updateSelected(),this.trigger("uncheck-some",o),o=this.getSelections(),this.trigger("check-some",o)}},{key:"check",value:function(e){this._toggleCheck(!0,e)}},{key:"uncheck",value:function(e){this._toggleCheck(!1,e)}},{key:"_toggleCheck",value:function(e,t){var o=this.$selectItem.filter("[data-index=\"".concat(t,"\"]")),n=this.data[t];if(o.is(":radio")||this.options.singleSelect||this.options.multipleSelectRow&&!this.multipleSelectRowCtrlKey&&!this.multipleSelectRowShiftKey){var a=!0,s=!1,l=void 0;try{for(var c,d,p=this.options.data[Symbol.iterator]();!(a=(c=p.next()).done);a=!0)d=c.value,d[this.header.stateField]=!1}catch(e){s=!0,l=e}finally{try{a||null==p.return||p.return()}finally{if(s)throw l}}this.$selectItem.filter(":checked").not(o).prop("checked",!1)}if(n[this.header.stateField]=e,this.options.multipleSelectRow){if(this.multipleSelectRowShiftKey&&0<=this.multipleSelectRowLastSelectedIndex)for(var u=[this.multipleSelectRowLastSelectedIndex,t].sort(),h=u[0]+1;h tr:lt(".concat(a.value,")")).each(function(o,n){e+=t(n).outerHeight(!0)})),this.$tableBody.scrollTop(e)}},{key:"getScrollPosition",value:function(){return this.scrollTo()}},{key:"selectPage",value:function(e){0 tr[data-index=\"%s\"]",e));o.next().is("tr.detail-view")?this.collapseRow(e):this.expandRow(e,t),this.resetView()}},{key:"expandRow",value:function(e,t){var o=this.data[e],n=this.$body.find(yi.sprintf("> tr[data-index=\"%s\"][data-has-detail-view]",e));if(!n.next().is("tr.detail-view")){this.options.detailViewIcon&&n.find("a.detail-icon").html(yi.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailClose)),n.after(yi.sprintf("",n.children("td").length));var a=n.next().find("td"),i=t||this.options.detailFormatter,s=yi.calculateObjectValue(this.options,i,[e,o,a],"");1===a.length&&a.append(s),this.trigger("expand-row",e,o,a)}}},{key:"collapseRow",value:function(e){var t=this.data[e],o=this.$body.find(yi.sprintf("> tr[data-index=\"%s\"][data-has-detail-view]",e));o.next().is("tr.detail-view")&&(this.options.detailViewIcon&&o.find("a.detail-icon").html(yi.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailOpen)),this.trigger("collapse-row",e,t,o.next()),o.next().remove())}},{key:"expandAllRows",value:function(){for(var e=this.$body.find("> tr[data-index][data-has-detail-view]"),o=0;o tr[data-index][data-has-detail-view]"),o=0;o