diff --git a/.travis.yml b/.travis.yml
index fb0f44365..8e3bd06c2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,4 +1,4 @@
language: node_js
node_js:
- - "0.12"
+ - "6"
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3c41a12e1..1d14ec60b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,29 @@
+
+# [v3.2.1](https://github.com/AllenFang/react-bootstrap-table/compare/v3.2.0...v3.2.1) (2017-04-20)
+## Bug fixes
+* Fixed search and pagination not working together([5a533cf](https://github.com/AllenFang/react-bootstrap-table/commit/5a533cfb6512c1200d66a962323b00d5316f2e12))
+ * It's a very critical bug since from `v3.1.8`
+
+
+# [v3.2.0](https://github.com/AllenFang/react-bootstrap-table/compare/v3.1.8...v3.2.0) (2017-04-16)
+## Enhancement
+* Now, we are able to custom the field in insert modal([8b66a74](https://github.com/AllenFang/react-bootstrap-table/commit/8b66a74178ebffdb8bad43bcbbf1381887ac7835))
+ * Check [example](https://github.com/AllenFang/react-bootstrap-table/blob/master/examples/js/custom/insert-modal/custom-insert-modal-field.js)
+
+## Features
+* Support conjunction search([246a7fa](https://github.com/AllenFang/react-bootstrap-table/commit/246a7fa721e0dd3846d1c1dcb48db2c114d261cb))
+ * Please check [#1199](https://github.com/AllenFang/react-bootstrap-table/issues/1199)
+* Allow to expand only one row at a time([c4c1b7f](https://github.com/AllenFang/react-bootstrap-table/commit/c4c1b7f377bbe3956b867d0afadf98e0e8c46cb6))
+ * configure via `options.onlyOneExpanding` and assign `true`
+
+
+# [v3.1.8](https://github.com/AllenFang/react-bootstrap-table/compare/v3.1.7...v3.1.8) (2017-04-13)
+## Bug fixes
+* Fix wrong page jumping after search, filter etc.([b686d1a](https://github.com/AllenFang/react-bootstrap-table/commit/b686d1a44b95878cbd0bdc91a7a8b20ce7fb8671))
+
+## Enhancement
+* Add class name `react-bs-table-sizePerPage-dropdown` for sizePerPage dropdown([da82469](https://github.com/AllenFang/react-bootstrap-table/commit/da82469431fdec4efb466b8d08a106b1448d7b44))
+
# [v3.1.7](https://github.com/AllenFang/react-bootstrap-table/compare/v3.1.6...v3.1.7) (2017-04-07)
## Bug fixes
diff --git a/README.md b/README.md
index 22742dff0..41209ba8c 100644
--- a/README.md
+++ b/README.md
@@ -35,16 +35,14 @@ Check [this](http://allenfang.github.io/react-bootstrap-table/advance.html) for
Check the CHANGELOG for more detail release notes.
## Notes
+***`v4.0.0-beta.1` published, this release is for replacing `react-toastr` with `react-s-alert`, check [PR#1216](https://github.com/AllenFang/react-bootstrap-table/pull/1216) and after `v4.0.0`, `react-bootstrap-table` will use `react-s-alert` for notification***
+
***```v3.0.0``` released, check [examples](https://github.com/AllenFang/react-bootstrap-table/tree/v3.0.0-dev/examples/js/custom) to learn how to customize the component. following
is the major things we completed in this release***
- Remove the `bootstrap.js` and `jQuery` dependencies
- More easy and have ability to customize the components(search, pagination, insert modal etc.)
- Key board Navigation
-***```v2.10.0-beta.1``` is a revised version for fixing couples unalign column and incorrect height etc. If you have any unalign problems before `v2.9.2`, give this beta version a try and any feedback is welcome***
-
-***```v3.0.0``` is under planning, check [Milestone to v3.0.0](https://github.com/AllenFang/react-bootstrap-table/issues/497).
***
-
***After ```v2.4.4```, we move the css files to ```dist``` folder for allowing this repo can be hosted on [cdnjs](https://github.com/cdnjs/cdnjs)
***
## Development
@@ -91,7 +89,7 @@ In the `dist` folder you have a UMD bundle with source maps (`react-bootstrap-ta
```
The UMD build is also available on [npmcdn](https://npmcdn.com):
diff --git a/__tests__/BootstrapTable-test.js b/__tests__/BootstrapTable-test.js
index 401eddbb0..b2ecbef81 100644
--- a/__tests__/BootstrapTable-test.js
+++ b/__tests__/BootstrapTable-test.js
@@ -7,7 +7,7 @@ jest.dontMock('../src/TableRow.js');
jest.dontMock('../src/pagination/PaginationList.js');
jest.dontMock('../src/pagination/PageButton.js');
-describe('BootstrapTable', function() {
+xdescribe('BootstrapTable', function() {
var testData = [
{id: 1, name: "name1", price: 100},
{id: 2, name: "name2", price: 120},
diff --git a/__tests__/TableHeaderColumn-test.js b/__tests__/TableHeaderColumn-test.js
index 07f20011b..d712676fb 100644
--- a/__tests__/TableHeaderColumn-test.js
+++ b/__tests__/TableHeaderColumn-test.js
@@ -7,7 +7,7 @@ jest.dontMock('../src/TableRow.js');
jest.dontMock('../src/pagination/PaginationList.js');
jest.dontMock('../src/pagination/PageButton.js');
-describe('TableHeaderColumn Test', function() {
+xdescribe('TableHeaderColumn Test', function() {
var React;
var TestUtils;
diff --git a/__tests__/store/TableDataStore-test.js b/__tests__/store/TableDataStore-test.js
new file mode 100644
index 000000000..df7d1f837
--- /dev/null
+++ b/__tests__/store/TableDataStore-test.js
@@ -0,0 +1,137 @@
+var TableDataStore = require('../../src/store/TableDataStore.js').TableDataStore;
+
+describe('TableDataStore', function() {
+
+ var store;
+
+ describe('search() modes (strictSearch and multiColumnSearch flags)', function() {
+
+ var colInfos = {
+ col1: { searchable: true },
+ col2: { searchable: true },
+ col3: { searchable: true },
+ desc: { searchable: false }
+ };
+ var searchText = ' B C ';
+ var data = [
+ { col1: 'A B C D', col2: 'E', col3: 'F', desc: 'part of the content in col1' },
+ { col1: 'A', col2: ' B C ', col3: 'D E F', desc: 'whole content in col2' },
+ { col1: 'F E D', col2: ' C B ', col3: 'A', desc: 'whole content in wrong order in col2' },
+ { col1: 'A', col2: 'B C ', col3: 'D E F', desc: 'without leading whitespace in col2' },
+ { col1: 'A', col2: ' B C', col3: 'D E F', desc: 'without trailing whitespace in col2' },
+ { col1: 'A B', col2: 'C D', col3: 'E F', desc: 'one part in col1, other part in col2' },
+ { col1: 'A B', col2: 'X D', col3: 'E F', desc: 'one part in col1, other part absent' },
+ { col1: 'A X', col2: 'X D', col3: 'E F', desc: 'completely absent' }
+ ];
+
+ beforeEach(function(){
+ store = new TableDataStore(data);
+ });
+
+ [
+ { colInfos: colInfos },
+ { colInfos: colInfos, multiColumnSearch: false },
+ { colInfos: colInfos, strictSearch: true },
+ { colInfos: colInfos, multiColumnSearch: false, strictSearch: true }
+ ].forEach(function(props) {
+ it('default strict single column mode - multiColumnSearch: ' + props.multiColumnSearch
+ + ', strictSearch: ' + props.strictSearch, function() {
+ store.setProps(props);
+
+ store.search(searchText);
+ expect(store.filteredData).toEqual(data.slice(0, 2));
+ });
+ });
+
+ [
+ { colInfos: colInfos, strictSearch: false },
+ { colInfos: colInfos, multiColumnSearch: false, strictSearch: false }
+ ].forEach(function(props) {
+ it('non-strict single column mode - multiColumnSearch: ' + props.multiColumnSearch
+ + ', strictSearch: ' + props.strictSearch, function() {
+ store.setProps(props);
+
+ store.search(searchText);
+ expect(store.filteredData).toEqual(data.slice(0, 5));
+ });
+ });
+
+ [
+ { colInfos: colInfos, multiColumnSearch: true, strictSearch: true }
+ ].forEach(function(props) {
+ it('strict multi column mode - multiColumnSearch: ' + props.multiColumnSearch
+ + ', strictSearch: ' + props.strictSearch, function() {
+ store.setProps(props);
+
+ store.search(searchText);
+ expect(store.filteredData).toEqual(data.slice(0, 6));
+ });
+ });
+
+ [
+ { colInfos: colInfos, multiColumnSearch: true },
+ { colInfos: colInfos, multiColumnSearch: true, strictSearch: false }
+ ].forEach(function(props) {
+ it('non-strict multi column mode - multiColumnSearch: ' + props.multiColumnSearch
+ + ', strictSearch: ' + props.strictSearch, function() {
+ store.setProps(props);
+
+ store.search(searchText);
+ expect(store.filteredData).toEqual(data.slice(0, 7));
+ });
+ });
+ });
+
+ describe('search() respecting formated or filter values', function() {
+
+ var undefinedVar;
+ var data = [
+ { col: undefinedVar},
+ { col: null },
+ { col: 0 },
+ { col: 'A' }
+ ];
+
+ beforeEach(function(){
+ store = new TableDataStore(data);
+ });
+
+ [
+ {
+ searchable: true,
+ filterValue: function() { return 'X'; }
+ },
+ {
+ searchable: true,
+ filterFormatted: true,
+ format: function() { return 'X'; }
+ },
+ {
+ searchable: true,
+ filterValue: function() { return '-'; },
+ filterFormatted: true,
+ format: function() { return 'X'; }
+ },
+ {
+ searchable: true,
+ filterValue: function() { return 'X'; },
+ filterFormatted: false,
+ format: function() { return '-'; }
+ },
+ {
+ searchable: true,
+ filterValue: function() { return 'X'; },
+ format: function() { return '-'; }
+ }
+ ].forEach(function(def) {
+ it('include non-values with filterValue: ' + def.filterValue + ', format: ' + def.format
+ + ', filterFormatted: ' + def.filterFormatted, function() {
+ store.setProps({ colInfos: { col: def } });
+
+ store.search('X');
+ expect(store.filteredData.length).toBe(4);
+ expect(store.filteredData).toEqual(data);
+ });
+ });
+ });
+});
diff --git a/dist/react-bootstrap-table.js b/dist/react-bootstrap-table.js
index 37062386c..97b26d2fc 100644
--- a/dist/react-bootstrap-table.js
+++ b/dist/react-bootstrap-table.js
@@ -404,6 +404,7 @@ return /******/ (function(modules) { // webpackBootstrap
keyField: keyField,
colInfos: this.colInfos,
multiColumnSearch: props.multiColumnSearch,
+ strictSearch: props.strictSearch,
multiColumnSort: props.multiColumnSort,
remote: this.props.remote
});
@@ -492,10 +493,12 @@ return /******/ (function(modules) { // webpackBootstrap
}, {
key: 'reset',
value: function reset() {
+ var pageStartIndex = this.props.options.pageStartIndex;
+
this.store.clean();
this.setState({
data: this.getTableData(),
- currPage: 1,
+ currPage: _util2.default.getFirstPage(pageStartIndex),
expanding: [],
sizePerPage: _Const2.default.SIZE_PER_PAGE_LIST[0],
selectedRowKeys: this.store.getSelectedRowKeys(),
@@ -750,6 +753,7 @@ return /******/ (function(modules) { // webpackBootstrap
withoutNoDataText: this.props.options.withoutNoDataText,
expanding: this.state.expanding,
onExpand: this.handleExpandRow,
+ onlyOneExpanding: this.props.options.onlyOneExpanding,
beforeShowError: this.props.options.beforeShowError,
keyBoardNav: this.props.keyBoardNav,
onNavigateCell: this.handleNavigateCell,
@@ -844,18 +848,7 @@ return /******/ (function(modules) { // webpackBootstrap
return;
}
- // We calculate an offset here in order to properly fetch the indexed data,
- // despite the page start index not always being 1
- var normalizedPage = void 0;
- if (pageStartIndex !== undefined) {
- var offset = Math.abs(_Const2.default.PAGE_START_INDEX - pageStartIndex);
- normalizedPage = page + offset;
- } else {
- normalizedPage = page;
- }
-
- var result = this.store.page(normalizedPage, sizePerPage).get();
-
+ var result = this.store.page(_util2.default.getNormalizedPage(pageStartIndex, page), sizePerPage).get();
this.setState({ data: result, reset: false });
}
}, {
@@ -900,8 +893,6 @@ return /******/ (function(modules) { // webpackBootstrap
x += offSetX;
y += offSetY;
- // currPage += 1;
- // console.log(currPage);
var columns = this.store.getColInfos();
var visibleRowSize = this.state.data.length;
@@ -1040,16 +1031,18 @@ return /******/ (function(modules) { // webpackBootstrap
key: '__handleShowOnlySelected__REACT_HOT_LOADER__',
value: function __handleShowOnlySelected__REACT_HOT_LOADER__() {
this.store.ignoreNonSelected();
+ var pageStartIndex = this.props.options.pageStartIndex;
+
var result = void 0;
if (this.props.pagination) {
- result = this.store.page(1, this.state.sizePerPage).get();
+ result = this.store.page(_util2.default.getNormalizedPage(pageStartIndex), this.state.sizePerPage).get();
} else {
result = this.store.get();
}
this.setState({
data: result,
reset: false,
- currPage: this.props.options.pageStartIndex || _Const2.default.PAGE_START_INDEX
+ currPage: _util2.default.getFirstPage(pageStartIndex)
});
}
}, {
@@ -1258,7 +1251,9 @@ return /******/ (function(modules) { // webpackBootstrap
}, {
key: '__handleFilterData__REACT_HOT_LOADER__',
value: function __handleFilterData__REACT_HOT_LOADER__(filterObj) {
- var onFilterChange = this.props.options.onFilterChange;
+ var _props$options2 = this.props.options,
+ onFilterChange = _props$options2.onFilterChange,
+ pageStartIndex = _props$options2.pageStartIndex;
if (onFilterChange) {
var colInfos = this.store.getColInfos();
@@ -1266,7 +1261,7 @@ return /******/ (function(modules) { // webpackBootstrap
}
this.setState({
- currPage: this.props.options.pageStartIndex || _Const2.default.PAGE_START_INDEX,
+ currPage: _util2.default.getFirstPage(pageStartIndex),
reset: false
});
@@ -1290,7 +1285,7 @@ return /******/ (function(modules) { // webpackBootstrap
if (this.props.pagination) {
var sizePerPage = this.state.sizePerPage;
- result = this.store.page(1, sizePerPage).get();
+ result = this.store.page(_util2.default.getNormalizedPage(pageStartIndex), sizePerPage).get();
} else {
result = this.store.get();
}
@@ -1345,7 +1340,9 @@ return /******/ (function(modules) { // webpackBootstrap
if (this.refs.toolbar) {
this.refs.toolbar.setSearchInput(searchText);
}
- var onSearchChange = this.props.options.onSearchChange;
+ var _props$options3 = this.props.options,
+ onSearchChange = _props$options3.onSearchChange,
+ pageStartIndex = _props$options3.pageStartIndex;
if (onSearchChange) {
var colInfos = this.store.getColInfos();
@@ -1353,7 +1350,7 @@ return /******/ (function(modules) { // webpackBootstrap
}
this.setState({
- currPage: this.props.options.pageStartIndex || _Const2.default.PAGE_START_INDEX,
+ currPage: _util2.default.getFirstPage(pageStartIndex),
reset: false
});
@@ -1376,7 +1373,7 @@ return /******/ (function(modules) { // webpackBootstrap
if (this.props.pagination) {
var sizePerPage = this.state.sizePerPage;
- result = this.store.page(1, sizePerPage).get();
+ result = this.store.page(_util2.default.getNormalizedPage(pageStartIndex), sizePerPage).get();
} else {
result = this.store.get();
}
@@ -1462,6 +1459,7 @@ return /******/ (function(modules) { // webpackBootstrap
field: props.dataField,
hiddenOnInsert: props.hiddenOnInsert,
keyValidator: props.keyValidator,
+ customInsertEditor: props.customInsertEditor,
// when you want same auto generate value and not allow edit, example ID field
autoValue: props.autoValue || false,
// for create editor, no params for column.editable() indicate that editor for new row
@@ -1476,6 +1474,7 @@ return /******/ (function(modules) { // webpackBootstrap
name: children.props.headerText || children.props.children,
field: children.props.dataField,
editable: children.props.editable,
+ customInsertEditor: children.props.customInsertEditor,
hiddenOnInsert: children.props.hiddenOnInsert,
keyValidator: children.props.keyValidator
}];
@@ -1642,11 +1641,12 @@ return /******/ (function(modules) { // webpackBootstrap
if (atTheBeginning) {
- var firstPage = this.props.options.pageStartIndex || _Const2.default.PAGE_START_INDEX;
- result = this.store.page(firstPage, sizePerPage).get();
+ var pageStartIndex = this.props.options.pageStartIndex;
+
+ result = this.store.page(_util2.default.getNormalizedPage(pageStartIndex), sizePerPage).get();
this.setState({
data: result,
- currPage: firstPage,
+ currPage: _util2.default.getFirstPage(pageStartIndex),
reset: false
});
} else {
@@ -1715,6 +1715,8 @@ return /******/ (function(modules) { // webpackBootstrap
insertRow: _react.PropTypes.bool,
deleteRow: _react.PropTypes.bool,
search: _react.PropTypes.bool,
+ multiColumnSearch: _react.PropTypes.bool,
+ strictSearch: _react.PropTypes.bool,
columnFilter: _react.PropTypes.bool,
trClassName: _react.PropTypes.any,
tableStyle: _react.PropTypes.object,
@@ -1798,6 +1800,7 @@ return /******/ (function(modules) { // webpackBootstrap
expandRowBgColor: _react.PropTypes.string,
expandBy: _react.PropTypes.string,
expanding: _react.PropTypes.array,
+ onlyOneExpanding: _react.PropTypes.bool,
beforeShowError: _react.PropTypes.func,
printToolBar: _react.PropTypes.bool
}),
@@ -1860,6 +1863,7 @@ return /******/ (function(modules) { // webpackBootstrap
deleteRow: false,
search: false,
multiColumnSearch: false,
+ strictSearch: undefined,
multiColumnSort: 1,
columnFilter: false,
trClassName: '',
@@ -1913,7 +1917,7 @@ return /******/ (function(modules) { // webpackBootstrap
nextPageTitle: _Const2.default.NEXT_PAGE_TITLE,
firstPageTitle: _Const2.default.FIRST_PAGE_TITLE,
lastPageTitle: _Const2.default.LAST_PAGE_TITLE,
- pageStartIndex: undefined,
+ pageStartIndex: 1,
searchDelayTime: undefined,
exportCSVText: _Const2.default.EXPORT_CSV_TEXT,
insertText: _Const2.default.INSERT_BTN_TEXT,
@@ -1941,6 +1945,7 @@ return /******/ (function(modules) { // webpackBootstrap
expandRowBgColor: undefined,
expandBy: _Const2.default.EXPAND_BY_ROW,
expanding: [],
+ onlyOneExpanding: false,
beforeShowError: undefined,
printToolBar: true
},
@@ -2878,7 +2883,8 @@ return /******/ (function(modules) { // webpackBootstrap
keyField = _props4.keyField,
expandBy = _props4.expandBy,
expandableRow = _props4.expandableRow,
- clickToExpand = _props4.selectRow.clickToExpand;
+ clickToExpand = _props4.selectRow.clickToExpand,
+ onlyOneExpanding = _props4.onlyOneExpanding;
var selectRowAndExpand = this._isSelectRowDefined() && !clickToExpand ? false : true;
columnIndex = this._isSelectRowDefined() ? columnIndex - 1 : columnIndex;
@@ -2895,7 +2901,7 @@ return /******/ (function(modules) { // webpackBootstrap
return k !== rowKey;
});
} else {
- expanding.push(rowKey);
+ if (onlyOneExpanding) expanding = [rowKey];else expanding.push(rowKey);
}
_this2.props.onExpand(expanding);
})();
@@ -3091,6 +3097,7 @@ return /******/ (function(modules) { // webpackBootstrap
expandBy: _react.PropTypes.string,
expanding: _react.PropTypes.array,
onExpand: _react.PropTypes.func,
+ onlyOneExpanding: _react.PropTypes.bool,
beforeShowError: _react.PropTypes.func,
keyBoardNav: _react.PropTypes.oneOfType([_react.PropTypes.bool, _react.PropTypes.object]),
x: _react.PropTypes.number,
@@ -3179,6 +3186,19 @@ return /******/ (function(modules) { // webpackBootstrap
canUseDOM: function canUseDOM() {
return typeof window !== 'undefined' && typeof window.document !== 'undefined';
},
+
+
+ // We calculate an offset here in order to properly fetch the indexed data,
+ // despite the page start index not always being 1
+ getNormalizedPage: function getNormalizedPage(pageStartIndex, page) {
+ pageStartIndex = this.getFirstPage(pageStartIndex);
+ if (page === undefined) page = pageStartIndex;
+ var offset = Math.abs(_Const2.default.PAGE_START_INDEX - pageStartIndex);
+ return page + offset;
+ },
+ getFirstPage: function getFirstPage(pageStartIndex) {
+ return pageStartIndex !== undefined ? pageStartIndex : _Const2.default.PAGE_START_INDEX;
+ },
renderColGroup: function renderColGroup(columns, selectRow) {
var expandColumnOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
@@ -6607,10 +6627,10 @@ return /******/ (function(modules) { // webpackBootstrap
if (i >= this.props.pageStartIndex) pages.push(i);
}
- if (endPage <= this.lastPage) {
+ if (endPage <= this.lastPage && pages.length > 1) {
pages.push(this.props.nextPage);
}
- if (endPage !== this.totalPages && this.props.withFirstAndLast) {
+ if (endPage !== this.lastPage && this.props.withFirstAndLast) {
pages.push(this.props.lastPage);
}
@@ -6787,6 +6807,8 @@ return /******/ (function(modules) { // webpackBootstrap
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+ var sizePerPageDefaultClass = 'react-bs-table-sizePerPage-dropdown';
+
var SizePerPageDropDown = function (_Component) {
_inherits(SizePerPageDropDown, _Component);
@@ -6815,7 +6837,8 @@ return /******/ (function(modules) { // webpackBootstrap
return _react2.default.createElement(
'span',
- { className: variation + ' ' + openClass + ' ' + className, style: dropDownStyle },
+ { style: dropDownStyle,
+ className: variation + ' ' + openClass + ' ' + className + ' ' + sizePerPageDefaultClass },
_react2.default.createElement(
'button',
{ className: 'btn ' + btnContextual + ' dropdown-toggle',
@@ -6869,6 +6892,8 @@ return /******/ (function(modules) { // webpackBootstrap
return;
}
+ __REACT_HOT_LOADER__.register(sizePerPageDefaultClass, 'sizePerPageDefaultClass', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/pagination/SizePerPageDropDown.js');
+
__REACT_HOT_LOADER__.register(SizePerPageDropDown, 'SizePerPageDropDown', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/pagination/SizePerPageDropDown.js');
__REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/pagination/SizePerPageDropDown.js');
@@ -9376,6 +9401,8 @@ return /******/ (function(modules) { // webpackBootstrap
if (column.editable && column.editable.type === 'checkbox') {
var values = inputVal.split(':');
inputVal = dom.checked ? values[0] : values[1];
+ } else if (column.customInsertEditor) {
+ inputVal = inputVal || dom.getFieldValue();
}
}
newRow[column.field] = inputVal;
@@ -9399,12 +9426,22 @@ return /******/ (function(modules) { // webpackBootstrap
field = column.field,
name = column.name,
autoValue = column.autoValue,
- hiddenOnInsert = column.hiddenOnInsert;
+ hiddenOnInsert = column.hiddenOnInsert,
+ customInsertEditor = column.customInsertEditor;
var attr = {
ref: field + i,
placeholder: editable.placeholder ? editable.placeholder : name
};
+ var fieldElement = void 0;
+
+ if (customInsertEditor) {
+ var getElement = customInsertEditor.getElement;
+
+ fieldElement = getElement(column, attr, 'form-control', ignoreEditable);
+ } else {
+ fieldElement = (0, _Editor2.default)(editable, attr, format, '', undefined, ignoreEditable);
+ }
if (autoValue || hiddenOnInsert || !column.field) {
// when you want same auto generate value
@@ -9424,7 +9461,7 @@ return /******/ (function(modules) { // webpackBootstrap
null,
name
),
- (0, _Editor2.default)(editable, attr, format, '', undefined, ignoreEditable),
+ fieldElement,
error
);
})
@@ -10296,7 +10333,6 @@ return /******/ (function(modules) { // webpackBootstrap
};
this.data = data;
- this.colInfos = null;
this.filteredData = null;
this.isOnFilter = false;
this.filterObj = null;
@@ -10304,10 +10340,7 @@ return /******/ (function(modules) { // webpackBootstrap
this.sortList = [];
this.pageObj = {};
this.selected = [];
- this.multiColumnSearch = false;
- this.multiColumnSort = 1;
this.showOnlySelected = false;
- this.remote = false; // remote data
}
_createClass(TableDataStore, [{
@@ -10318,6 +10351,8 @@ return /******/ (function(modules) { // webpackBootstrap
this.colInfos = props.colInfos;
this.remote = props.remote;
this.multiColumnSearch = props.multiColumnSearch;
+ // default behaviour if strictSearch prop is not provided: !multiColumnSearch
+ this.strictSearch = typeof props.strictSearch === 'undefined' ? !props.multiColumnSearch : props.strictSearch;
this.multiColumnSort = props.multiColumnSort;
}
}, {
@@ -10882,57 +10917,82 @@ return /******/ (function(modules) { // webpackBootstrap
});
this.isOnFilter = true;
}
+
+ /*
+ * Four different sort modes, all case insensitive:
+ * (1) strictSearch && !multiColumnSearch
+ * search text must be contained as provided in a single column
+ * (2) strictSearch && multiColumnSearch
+ * conjunction (AND combination) of whitespace separated terms over multiple columns
+ * (3) !strictSearch && !multiColumnSearch
+ * conjunction (AND combination) of whitespace separated terms in a single column
+ * (4) !strictSearch && multiColumnSearch
+ * any of the whitespace separated terms must be contained in any column
+ */
+
}, {
key: '_search',
value: function _search(source) {
var _this7 = this;
- var searchTextArray = [];
-
- if (this.multiColumnSearch) {
- searchTextArray = this.searchText.split(' ');
+ var searchTextArray = void 0;
+ if (this.multiColumnSearch || !this.strictSearch) {
+ // ignore leading and trailing whitespaces
+ searchTextArray = this.searchText.trim().toLowerCase().split(/\s+/);
} else {
- searchTextArray.push(this.searchText);
+ searchTextArray = [this.searchText.toLowerCase()];
}
+ var searchTermCount = searchTextArray.length;
+ var multipleTerms = searchTermCount > 1;
+ var nonStrictMultiCol = multipleTerms && !this.strictSearch && this.multiColumnSearch;
+ var nonStrictSingleCol = multipleTerms && !this.strictSearch && !this.multiColumnSearch;
this.filteredData = source.filter(function (row, r) {
var keys = Object.keys(row);
- var valid = false;
+ // only clone array if necessary
+ var searchTerms = multipleTerms ? searchTextArray.slice() : searchTextArray;
// for loops are ugly, but performance matters here.
// And you cant break from a forEach.
// http://jsperf.com/for-vs-foreach/66
for (var i = 0, keysLength = keys.length; i < keysLength; i++) {
var key = keys[i];
- // fixed data filter when misunderstand 0 is false
- var filterSpecialNum = false;
- if (!isNaN(row[key]) && parseInt(row[key], 10) === 0) {
- filterSpecialNum = true;
- }
- if (_this7.colInfos[key] && (row[key] || filterSpecialNum)) {
- var _colInfos$key = _this7.colInfos[key],
- format = _colInfos$key.format,
- filterFormatted = _colInfos$key.filterFormatted,
- filterValue = _colInfos$key.filterValue,
- formatExtraData = _colInfos$key.formatExtraData,
- searchable = _colInfos$key.searchable;
-
- var targetVal = row[key];
- if (searchable) {
- if (filterFormatted && format) {
- targetVal = format(targetVal, row, formatExtraData, r);
- } else if (filterValue) {
- targetVal = filterValue(targetVal, row);
+ var colInfo = _this7.colInfos[key];
+ if (colInfo && colInfo.searchable) {
+ var format = colInfo.format,
+ filterFormatted = colInfo.filterFormatted,
+ filterValue = colInfo.filterValue,
+ formatExtraData = colInfo.formatExtraData;
+
+ var targetVal = void 0;
+ if (filterFormatted && format) {
+ targetVal = format(row[key], row, formatExtraData, r);
+ } else if (filterValue) {
+ targetVal = filterValue(row[key], row);
+ } else {
+ targetVal = row[key];
+ }
+ if (targetVal !== null && typeof targetVal !== 'undefined') {
+ targetVal = targetVal.toString().toLowerCase();
+ if (nonStrictSingleCol && searchTermCount > searchTerms.length) {
+ // reset search terms for single column search
+ searchTerms = searchTextArray.slice();
}
- for (var j = 0, textLength = searchTextArray.length; j < textLength; j++) {
- var filterVal = searchTextArray[j].toLowerCase();
- if (targetVal.toString().toLowerCase().indexOf(filterVal) !== -1) {
- valid = true;
+ for (var j = searchTerms.length - 1; j > -1; j--) {
+ if (targetVal.indexOf(searchTerms[j]) !== -1) {
+ if (nonStrictMultiCol || searchTerms.length === 1) {
+ // match found: the last or only one
+ return true;
+ }
+ // match found: but there are more search terms to check for
+ searchTerms.splice(j, 1);
+ } else if (!_this7.multiColumnSearch) {
+ // one of the search terms was not found in this column
break;
}
}
}
}
}
- return valid;
+ return false;
});
this.isOnFilter = true;
}
diff --git a/dist/react-bootstrap-table.js.map b/dist/react-bootstrap-table.js.map
index 159c1a0e0..5617a8c50 100644
--- a/dist/react-bootstrap-table.js.map
+++ b/dist/react-bootstrap-table.js.map
@@ -1 +1 @@
-{"version":3,"file":"react-bootstrap-table.js","sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap ac4494092f90d6c6a75c","webpack:///src/index.js","webpack:///src/BootstrapTable.js","webpack:///external {\"root\":\"React\",\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\"}","webpack:///./~/classnames/index.js","webpack:///src/Const.js","webpack:///src/TableHeader.js","webpack:///external {\"root\":\"ReactDOM\",\"commonjs2\":\"react-dom\",\"commonjs\":\"react-dom\",\"amd\":\"react-dom\"}","webpack:///src/SelectRowHeaderColumn.js","webpack:///src/TableBody.js","webpack:///src/util.js","webpack:///src/TableRow.js","webpack:///src/TableColumn.js","webpack:///src/TableEditColumn.js","webpack:///src/Editor.js","webpack:///src/Notification.js","webpack:///./~/react-s-alert/index.js","webpack:///./~/react-s-alert/dist/SAlert.js","webpack:///./~/react-s-alert/dist/SAlertContent.js","webpack:///./~/prop-types/index.js","webpack:///./~/prop-types/factory.js","webpack:///(webpack)/~/node-libs-browser/~/process/browser.js","webpack:///./~/prop-types/~/fbjs/lib/emptyFunction.js","webpack:///./~/prop-types/~/fbjs/lib/invariant.js","webpack:///./~/prop-types/~/fbjs/lib/warning.js","webpack:///./~/prop-types/lib/ReactPropTypesSecret.js","webpack:///./~/prop-types/checkPropTypes.js","webpack:///./~/react-s-alert/dist/s-alert-parts/s-alert-tools.js","webpack:///./~/react-s-alert/dist/s-alert-parts/s-alert-store.js","webpack:///./~/react-s-alert/dist/SAlertContentTmpl.js","webpack:///./~/react-s-alert/dist/s-alert-parts/s-alert-data-prep.js","webpack:///src/ExpandComponent.js","webpack:///src/pagination/PaginationList.js","webpack:///src/pagination/PageButton.js","webpack:///src/pagination/SizePerPageDropDown.js","webpack:///src/toolbar/ToolBar.js","webpack:///./~/react-modal/lib/index.js","webpack:///./~/react-modal/lib/components/Modal.js","webpack:///./~/react-modal/~/exenv/index.js","webpack:///./~/react-modal/lib/components/ModalPortal.js","webpack:///./~/react-modal/lib/helpers/focusManager.js","webpack:///./~/react-modal/lib/helpers/tabbable.js","webpack:///./~/react-modal/lib/helpers/scopeTab.js","webpack:///./~/react-modal/~/lodash.assign/index.js","webpack:///./~/react-modal/lib/helpers/ariaAppHider.js","webpack:///./~/react-modal/~/element-class/index.js","webpack:///src/toolbar/InsertModal.js","webpack:///src/toolbar/InsertModalHeader.js","webpack:///src/toolbar/InsertModalFooter.js","webpack:///src/toolbar/InsertModalBody.js","webpack:///src/toolbar/InsertButton.js","webpack:///src/toolbar/DeleteButton.js","webpack:///src/toolbar/ExportCSVButton.js","webpack:///src/toolbar/ShowSelectedOnlyButton.js","webpack:///src/toolbar/SearchField.js","webpack:///src/toolbar/ClearSearchButton.js","webpack:///src/TableFilter.js","webpack:///src/store/TableDataStore.js","webpack:///src/csv_export_util.js","webpack:///src/filesaver.js","webpack:///(webpack)/buildin/amd-define.js","webpack:///(webpack)/buildin/amd-options.js","webpack:///src/Filter.js","webpack:///(webpack)/~/node-libs-browser/~/events/events.js","webpack:///src/TableHeaderColumn.js","webpack:///src/filters/Date.js","webpack:///src/filters/Text.js","webpack:///src/filters/Regex.js","webpack:///src/filters/Select.js","webpack:///src/filters/Number.js","webpack:///src/toolbar/ButtonGroup.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"), require(\"react-dom\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\", \"react-dom\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ReactBootstrapTable\"] = factory(require(\"react\"), require(\"react-dom\"));\n\telse\n\t\troot[\"ReactBootstrapTable\"] = factory(root[\"React\"], root[\"ReactDOM\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_2__, __WEBPACK_EXTERNAL_MODULE_6__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap ac4494092f90d6c6a75c","import BootstrapTable from './BootstrapTable';\nimport TableHeaderColumn from './TableHeaderColumn';\nimport InsertModalHeader from './toolbar/InsertModalHeader';\nimport InsertModalBody from './toolbar/InsertModalBody';\nimport InsertModalFooter from './toolbar/InsertModalFooter';\nimport InsertButton from './toolbar/InsertButton';\nimport DeleteButton from './toolbar/DeleteButton';\nimport ExportCSVButton from './toolbar/ExportCSVButton';\nimport ShowSelectedOnlyButton from './toolbar/ShowSelectedOnlyButton';\nimport ClearSearchButton from './toolbar/ClearSearchButton';\nimport SearchField from './toolbar/SearchField';\nimport ButtonGroup from './toolbar/ButtonGroup';\nimport SizePerPageDropDown from './pagination/SizePerPageDropDown';\n\nif (typeof window !== 'undefined') {\n window.BootstrapTable = BootstrapTable;\n window.TableHeaderColumn = TableHeaderColumn;\n window.InsertModalHeader = InsertModalHeader;\n window.InsertModalBody = InsertModalBody;\n window.InsertModalFooter = InsertModalFooter;\n window.InsertButton = InsertButton;\n window.DeleteButton = DeleteButton;\n window.ShowSelectedOnlyButton = ShowSelectedOnlyButton;\n window.ExportCSVButton = ExportCSVButton;\n window.ClearSearchButton = ClearSearchButton;\n window.SearchField = SearchField;\n window.ButtonGroup = ButtonGroup;\n window.SizePerPageDropDown = SizePerPageDropDown;\n}\nexport {\n BootstrapTable,\n TableHeaderColumn,\n InsertModalHeader,\n InsertModalBody,\n InsertModalFooter,\n InsertButton,\n DeleteButton,\n ShowSelectedOnlyButton,\n ExportCSVButton,\n ClearSearchButton,\n SearchField,\n ButtonGroup,\n SizePerPageDropDown\n};\n\n\n\n// WEBPACK FOOTER //\n// src/index.js","/* eslint no-alert: 0 */\n/* eslint max-len: 0 */\nimport React, { Component, PropTypes } from 'react';\nimport classSet from 'classnames';\nimport Const from './Const';\nimport TableHeader from './TableHeader';\nimport TableBody from './TableBody';\nimport PaginationList from './pagination/PaginationList';\nimport ToolBar from './toolbar/ToolBar';\nimport TableFilter from './TableFilter';\nimport { TableDataStore } from './store/TableDataStore';\nimport Util from './util';\nimport exportCSVUtil from './csv_export_util';\nimport { Filter } from './Filter';\nimport Alert from 'react-s-alert';\n\nclass BootstrapTable extends Component {\n\n constructor(props) {\n super(props);\n this.isIE = false;\n this._attachCellEditFunc();\n if (Util.canUseDOM()) {\n this.isIE = document.documentMode;\n }\n this.store = new TableDataStore(this.props.data ? this.props.data.slice() : []);\n this.isVerticalScroll = false;\n this.initTable(this.props);\n\n if (this.props.selectRow && this.props.selectRow.selected) {\n const copy = this.props.selectRow.selected.slice();\n this.store.setSelectedRowKey(copy);\n }\n let currPage = Const.PAGE_START_INDEX;\n if (typeof this.props.options.page !== 'undefined') {\n currPage = this.props.options.page;\n } else if (typeof this.props.options.pageStartIndex !== 'undefined') {\n currPage = this.props.options.pageStartIndex;\n }\n\n this._adjustHeaderWidth = this._adjustHeaderWidth.bind(this);\n this._adjustHeight = this._adjustHeight.bind(this);\n this._adjustTable = this._adjustTable.bind(this);\n\n this.state = {\n data: this.getTableData(),\n currPage: currPage,\n expanding: this.props.options.expanding || [],\n sizePerPage: this.props.options.sizePerPage || Const.SIZE_PER_PAGE_LIST[0],\n selectedRowKeys: this.store.getSelectedRowKeys(),\n reset: false,\n x: this.props.keyBoardNav ? 0 : -1,\n y: this.props.keyBoardNav ? 0 : -1\n };\n }\n\n initTable(props) {\n let { keyField } = props;\n\n const isKeyFieldDefined = typeof keyField === 'string' && keyField.length;\n React.Children.forEach(props.children, column => {\n if (column.props.isKey) {\n if (keyField) {\n throw new Error('Error. Multiple key column be detected in TableHeaderColumn.');\n }\n keyField = column.props.dataField;\n }\n if (column.props.filter) {\n // a column contains a filter\n if (!this.filter) {\n // first time create the filter on the BootstrapTable\n this.filter = new Filter();\n }\n // pass the filter to column with filter\n column.props.filter.emitter = this.filter;\n }\n });\n\n if (this.filter) {\n this.filter.removeAllListeners('onFilterChange');\n this.filter.on('onFilterChange', (currentFilter) => {\n this.handleFilterData(currentFilter);\n });\n }\n\n this.colInfos = this.getColumnsDescription(props).reduce(( prev, curr ) => {\n prev[curr.name] = curr;\n return prev;\n }, {});\n\n if (!isKeyFieldDefined && !keyField) {\n throw new Error(`Error. No any key column defined in TableHeaderColumn.\n Use 'isKey={true}' to specify a unique column after version 0.5.4.`);\n }\n\n this.store.setProps({\n isPagination: props.pagination,\n keyField: keyField,\n colInfos: this.colInfos,\n multiColumnSearch: props.multiColumnSearch,\n multiColumnSort: props.multiColumnSort,\n remote: this.props.remote\n });\n }\n\n getTableData() {\n let result = [];\n const { options, pagination } = this.props;\n const sortName = options.defaultSortName || options.sortName;\n const sortOrder = options.defaultSortOrder || options.sortOrder;\n const searchText = options.defaultSearch;\n if (sortName && sortOrder) {\n this.store.setSortInfo(sortOrder, sortName);\n this.store.sort();\n }\n\n if (searchText) {\n this.store.search(searchText);\n }\n\n if (pagination) {\n let page;\n let sizePerPage;\n if (this.store.isChangedPage()) {\n sizePerPage = this.state.sizePerPage;\n page = this.state.currPage;\n } else {\n sizePerPage = options.sizePerPage || Const.SIZE_PER_PAGE_LIST[0];\n page = options.page || 1;\n }\n result = this.store.page(page, sizePerPage).get();\n } else {\n result = this.store.get();\n }\n return result;\n }\n\n getColumnsDescription({ children }) {\n let rowCount = 0;\n React.Children.forEach(children, (column) => {\n if (Number(column.props.row) > rowCount) {\n rowCount = Number(column.props.row);\n }\n });\n return React.Children.map(children, (column, i) => {\n const rowIndex = column.props.row ? Number(column.props.row) : 0;\n const rowSpan = column.props.rowSpan ? Number(column.props.rowSpan) : 1;\n if ((rowSpan + rowIndex) === (rowCount + 1)) {\n return {\n name: column.props.dataField,\n align: column.props.dataAlign,\n sort: column.props.dataSort,\n format: column.props.dataFormat,\n formatExtraData: column.props.formatExtraData,\n filterFormatted: column.props.filterFormatted,\n filterValue: column.props.filterValue,\n editable: column.props.editable,\n customEditor: column.props.customEditor,\n hidden: column.props.hidden,\n hiddenOnInsert: column.props.hiddenOnInsert,\n searchable: column.props.searchable,\n className: column.props.columnClassName,\n editClassName: column.props.editColumnClassName,\n invalidEditColumnClassName: column.props.invalidEditColumnClassName,\n columnTitle: column.props.columnTitle,\n width: column.props.width,\n text: column.props.headerText || column.props.children,\n sortFunc: column.props.sortFunc,\n sortFuncExtraData: column.props.sortFuncExtraData,\n export: column.props.export,\n expandable: column.props.expandable,\n index: i,\n attrs: column.props.tdAttr,\n style: column.props.tdStyle\n };\n }\n });\n }\n\n reset() {\n this.store.clean();\n this.setState({\n data: this.getTableData(),\n currPage: 1,\n expanding: [],\n sizePerPage: Const.SIZE_PER_PAGE_LIST[0],\n selectedRowKeys: this.store.getSelectedRowKeys(),\n reset: true\n });\n }\n\n componentWillReceiveProps(nextProps) {\n this.initTable(nextProps);\n const { options, selectRow } = nextProps;\n\n this.store.setData(nextProps.data.slice());\n\n // from #481\n let page = this.state.currPage;\n if (this.props.options.page !== options.page) {\n page = options.page;\n }\n // from #481\n let sizePerPage = this.state.sizePerPage;\n if (this.props.options.sizePerPage !== options.sizePerPage) {\n sizePerPage = options.sizePerPage;\n }\n\n if (this.isRemoteDataSource()) {\n let data = nextProps.data.slice();\n if (nextProps.pagination && !this.allowRemote(Const.REMOTE_PAGE)) {\n data = this.store.page(page, sizePerPage).get();\n }\n this.setState({\n data,\n currPage: page,\n sizePerPage,\n reset: false\n });\n } else {\n // #125\n // remove !options.page for #709\n if (page > Math.ceil(nextProps.data.length / sizePerPage)) {\n page = 1;\n }\n const sortList = this.store.getSortInfo();\n const sortField = options.sortName;\n const sortOrder = options.sortOrder;\n if (sortField && sortOrder) {\n this.store.setSortInfo(sortOrder, sortField);\n this.store.sort();\n } else if (sortList.length > 0) {\n this.store.sort();\n }\n const data = this.store.page(page, sizePerPage).get();\n this.setState({\n data,\n currPage: page,\n sizePerPage,\n reset: false\n });\n }\n\n // If setting the expanded rows is being handled externally\n // then overwrite the current expanded rows.\n if (this.props.options.expanding !== options.expanding) {\n this.setState({\n expanding: options.expanding || []\n });\n }\n\n if (selectRow && selectRow.selected) {\n // set default select rows to store.\n const copy = selectRow.selected.slice();\n this.store.setSelectedRowKey(copy);\n this.setState({\n selectedRowKeys: copy,\n reset: false\n });\n }\n }\n\n componentDidMount() {\n this._adjustTable();\n window.addEventListener('resize', this._adjustTable);\n this.refs.body.refs.container.addEventListener('scroll', this._scrollHeader);\n if (this.props.scrollTop) {\n this._scrollTop();\n }\n }\n\n componentWillUnmount() {\n window.removeEventListener('resize', this._adjustTable);\n this.refs.body.refs.container.removeEventListener('scroll', this._scrollHeader);\n if (this.filter) {\n this.filter.removeAllListeners('onFilterChange');\n }\n }\n\n componentDidUpdate() {\n this._adjustTable();\n this._attachCellEditFunc();\n if (this.props.options.afterTableComplete) {\n this.props.options.afterTableComplete();\n }\n }\n\n _attachCellEditFunc() {\n const { cellEdit } = this.props;\n if (cellEdit) {\n this.props.cellEdit.__onCompleteEdit__ = this.handleEditCell.bind(this);\n if (cellEdit.mode !== Const.CELL_EDIT_NONE) {\n this.props.selectRow.clickToSelect = false;\n }\n }\n }\n\n /**\n * Returns true if in the current configuration,\n * the datagrid should load its data remotely.\n *\n * @param {Object} [props] Optional. If not given, this.props will be used\n * @return {Boolean}\n */\n isRemoteDataSource(props) {\n const { remote } = (props || this.props);\n return remote === true || typeof remote === 'function';\n }\n\n /**\n * Returns true if this action can be handled remote store\n * From #990, Sometimes, we need some actions as remote, some actions are handled by default\n * so function will tell you the target action is can be handled as remote or not.\n * @param {String} [action] Required.\n * @param {Object} [props] Optional. If not given, this.props will be used\n * @return {Boolean}\n */\n allowRemote(action, props) {\n const { remote } = (props || this.props);\n if (typeof remote === 'function') {\n const remoteObj = remote(Const.REMOTE);\n return remoteObj[action];\n } else {\n return remote;\n }\n }\n\n render() {\n const style = {\n height: this.props.height,\n maxHeight: this.props.maxHeight\n };\n\n const columns = this.getColumnsDescription(this.props);\n const sortList = this.store.getSortInfo();\n const pagination = this.renderPagination();\n const toolBar = this.renderToolBar();\n const tableFilter = this.renderTableFilter(columns);\n const isSelectAll = this.isSelectAll();\n const expandColumnOptions = this.props.expandColumnOptions;\n if (typeof expandColumnOptions.expandColumnBeforeSelectColumn === 'undefined') {\n expandColumnOptions.expandColumnBeforeSelectColumn = true;\n }\n const colGroups = Util.renderColGroup(columns, this.props.selectRow, expandColumnOptions);\n let sortIndicator = this.props.options.sortIndicator;\n if (typeof this.props.options.sortIndicator === 'undefined') sortIndicator = true;\n const { paginationPosition = Const.PAGINATION_POS_BOTTOM } = this.props.options;\n const showPaginationOnTop = paginationPosition !== Const.PAGINATION_POS_BOTTOM;\n const showPaginationOnBottom = paginationPosition !== Const.PAGINATION_POS_TOP;\n\n return (\n
\n { toolBar }\n { showPaginationOnTop ? pagination : null }\n
\n
\n { this.props.children }\n \n
\n
\n { tableFilter }\n { showPaginationOnBottom ? pagination : null }\n
\n
\n );\n }\n\n isSelectAll() {\n if (this.store.isEmpty()) return false;\n const unselectable = this.props.selectRow.unselectable;\n const defaultSelectRowKeys = this.store.getSelectedRowKeys();\n const allRowKeys = this.store.getAllRowkey();\n\n if (defaultSelectRowKeys.length === 0) return false;\n let match = 0;\n let noFound = 0;\n let unSelectableCnt = 0;\n defaultSelectRowKeys.forEach(selected => {\n if (allRowKeys.indexOf(selected) !== -1) match++;\n else noFound++;\n if (unselectable &&\n unselectable.indexOf(selected) !== -1) unSelectableCnt++;\n });\n\n if (noFound === defaultSelectRowKeys.length) return false;\n if (match === allRowKeys.length) {\n return true;\n } else {\n if (unselectable && match <= unSelectableCnt &&\n unSelectableCnt === unselectable.length) return false;\n else return 'indeterminate';\n }\n // return (match === allRowKeys.length) ? true : 'indeterminate';\n }\n\n cleanSelected() {\n this.store.setSelectedRowKey([]);\n this.setState({\n selectedRowKeys: [],\n reset: false\n });\n }\n\n handleSort = (order, sortField) => {\n if (this.props.options.onSortChange) {\n this.props.options.onSortChange(sortField, order, this.props);\n }\n this.store.setSortInfo(order, sortField);\n if (this.allowRemote(Const.REMOTE_SORT)) {\n return;\n }\n\n const result = this.store.sort().get();\n this.setState({\n data: result,\n reset: false\n });\n }\n\n handleExpandRow = expanding => {\n this.setState({ expanding, reset: false }, () => {\n this._adjustHeaderWidth();\n });\n }\n\n handlePaginationData = (page, sizePerPage) => {\n const { onPageChange, pageStartIndex } = this.props.options;\n const emptyTable = this.store.isEmpty();\n if (onPageChange) {\n onPageChange(page, sizePerPage);\n }\n\n const state = {\n sizePerPage,\n reset: false\n };\n if (!emptyTable) state.currPage = page;\n this.setState(state);\n\n if (this.allowRemote(Const.REMOTE_PAGE) || emptyTable) {\n return;\n }\n\n // We calculate an offset here in order to properly fetch the indexed data,\n // despite the page start index not always being 1\n let normalizedPage;\n if (pageStartIndex !== undefined) {\n const offset = Math.abs(Const.PAGE_START_INDEX - pageStartIndex);\n normalizedPage = page + offset;\n } else {\n normalizedPage = page;\n }\n\n const result = this.store.page(normalizedPage, sizePerPage).get();\n\n this.setState({ data: result, reset: false });\n }\n\n handleMouseLeave = () => {\n if (this.props.options.onMouseLeave) {\n this.props.options.onMouseLeave();\n }\n }\n\n handleMouseEnter = () => {\n if (this.props.options.onMouseEnter) {\n this.props.options.onMouseEnter();\n }\n }\n\n handleRowMouseOut = (row, event) => {\n if (this.props.options.onRowMouseOut) {\n this.props.options.onRowMouseOut(row, event);\n }\n }\n\n handleRowMouseOver = (row, event) => {\n if (this.props.options.onRowMouseOver) {\n this.props.options.onRowMouseOver(row, event);\n }\n }\n\n handleNavigateCell = ({ x: offSetX, y: offSetY, lastEditCell }) => {\n const { pagination } = this.props;\n let { x, y, currPage } = this.state;\n x += offSetX;\n y += offSetY;\n // currPage += 1;\n // console.log(currPage);\n\n const columns = this.store.getColInfos();\n const visibleRowSize = this.state.data.length;\n const visibleColumnSize = Object.keys(columns).filter(k => !columns[k].hidden).length;\n\n if (y >= visibleRowSize) {\n currPage++;\n const lastPage = pagination ? this.refs.pagination.getLastPage() : -1;\n if (currPage <= lastPage) {\n this.handlePaginationData(currPage, this.state.sizePerPage);\n } else {\n return;\n }\n y = 0;\n } else if (y < 0) {\n currPage--;\n if (currPage > 0) {\n this.handlePaginationData(currPage, this.state.sizePerPage);\n } else {\n return;\n }\n y = visibleRowSize - 1;\n } else if (x >= visibleColumnSize) {\n if ((y + 1) === visibleRowSize) {\n currPage++;\n const lastPage = pagination ? this.refs.pagination.getLastPage() : -1;\n if (currPage <= lastPage) {\n this.handlePaginationData(currPage, this.state.sizePerPage);\n } else {\n return;\n }\n y = 0;\n } else {\n y++;\n }\n x = lastEditCell ? 1 : 0;\n } else if (x < 0) {\n x = visibleColumnSize - 1;\n if (y === 0) {\n currPage--;\n if (currPage > 0) {\n this.handlePaginationData(currPage, this.state.sizePerPage);\n } else {\n return;\n }\n y = this.state.sizePerPage - 1;\n } else {\n y--;\n }\n }\n this.setState({\n x, y, currPage, reset: false\n });\n }\n\n handleRowClick = (row, rowIndex, cellIndex) => {\n const { options, keyBoardNav } = this.props;\n if (options.onRowClick) {\n options.onRowClick(row);\n }\n if (keyBoardNav) {\n let { clickToNav } = typeof keyBoardNav === 'object' ? keyBoardNav : {};\n clickToNav = clickToNav === false ? clickToNav : true;\n if (clickToNav) {\n this.setState({\n x: cellIndex,\n y: rowIndex,\n reset: false\n });\n }\n }\n }\n\n handleRowDoubleClick = row => {\n if (this.props.options.onRowDoubleClick) {\n this.props.options.onRowDoubleClick(row);\n }\n }\n\n handleSelectAllRow = e => {\n const isSelected = e.currentTarget.checked;\n const keyField = this.store.getKeyField();\n const { selectRow: { onSelectAll, unselectable, selected } } = this.props;\n let selectedRowKeys = [];\n let result = true;\n let rows = isSelected ?\n this.store.get() :\n this.store.getRowByKey(this.state.selectedRowKeys);\n\n if (unselectable && unselectable.length > 0) {\n if (isSelected) {\n rows = rows.filter(r => {\n return unselectable.indexOf(r[keyField]) === -1 ||\n (selected && selected.indexOf(r[keyField]) !== -1);\n });\n } else {\n rows = rows.filter(r => unselectable.indexOf(r[keyField]) === -1);\n }\n }\n\n if (onSelectAll) {\n result = this.props.selectRow.onSelectAll(isSelected, rows);\n }\n\n if (typeof result == 'undefined' || result !== false) {\n if (isSelected) {\n selectedRowKeys = Array.isArray(result) ?\n result :\n rows.map(r => r[keyField]);\n } else {\n if (unselectable && selected) {\n selectedRowKeys = selected.filter(r => unselectable.indexOf(r) > -1 );\n }\n }\n\n this.store.setSelectedRowKey(selectedRowKeys);\n this.setState({ selectedRowKeys, reset: false });\n }\n }\n\n handleShowOnlySelected = () => {\n this.store.ignoreNonSelected();\n let result;\n if (this.props.pagination) {\n result = this.store.page(1, this.state.sizePerPage).get();\n } else {\n result = this.store.get();\n }\n this.setState({\n data: result,\n reset: false,\n currPage: this.props.options.pageStartIndex || Const.PAGE_START_INDEX\n });\n }\n\n handleSelectRow = (row, isSelected, e) => {\n let result = true;\n let currSelected = this.store.getSelectedRowKeys();\n const rowKey = row[ this.store.getKeyField() ];\n const { selectRow } = this.props;\n if (selectRow.onSelect) {\n result = selectRow.onSelect(row, isSelected, e);\n }\n\n if (typeof result === 'undefined' || result !== false) {\n if (selectRow.mode === Const.ROW_SELECT_SINGLE) {\n currSelected = isSelected ? [ rowKey ] : [];\n } else {\n if (isSelected) {\n currSelected.push(rowKey);\n } else {\n currSelected = currSelected.filter(key => rowKey !== key);\n }\n }\n\n this.store.setSelectedRowKey(currSelected);\n this.setState({\n selectedRowKeys: currSelected,\n reset: false\n });\n }\n }\n\n handleEditCell(newVal, rowIndex, colIndex) {\n const { onCellEdit } = this.props.options;\n const { beforeSaveCell, afterSaveCell } = this.props.cellEdit;\n const columns = this.getColumnsDescription(this.props);\n const fieldName = columns[colIndex].name;\n\n if (beforeSaveCell) {\n const isValid = beforeSaveCell(this.state.data[rowIndex], fieldName, newVal);\n if (!isValid && typeof isValid !== 'undefined') {\n this.setState({\n data: this.store.get(),\n reset: false\n });\n return;\n }\n }\n\n if (onCellEdit) {\n newVal = onCellEdit(this.state.data[rowIndex], fieldName, newVal);\n }\n\n if (this.allowRemote(Const.REMOTE_CELL_EDIT)) {\n if (afterSaveCell) {\n afterSaveCell(this.state.data[rowIndex], fieldName, newVal);\n }\n return;\n }\n\n const result = this.store.edit(newVal, rowIndex, fieldName).get();\n this.setState({\n data: result,\n reset: false\n });\n\n if (afterSaveCell) {\n afterSaveCell(this.state.data[rowIndex], fieldName, newVal);\n }\n }\n\n handleAddRowAtBegin(newObj) {\n try {\n this.store.addAtBegin(newObj);\n } catch (e) {\n return e;\n }\n this._handleAfterAddingRow(newObj, true);\n }\n\n handleAddRow = newObj => {\n const { onAddRow } = this.props.options;\n if (onAddRow) {\n const colInfos = this.store.getColInfos();\n onAddRow(newObj, colInfos);\n }\n\n if (this.allowRemote(Const.REMOTE_INSERT_ROW)) {\n if (this.props.options.afterInsertRow) {\n this.props.options.afterInsertRow(newObj);\n }\n return null;\n }\n\n try {\n this.store.add(newObj);\n } catch (e) {\n return e.message;\n }\n this._handleAfterAddingRow(newObj, false);\n }\n\n getSizePerPage() {\n return this.state.sizePerPage;\n }\n\n getCurrentPage() {\n return this.state.currPage;\n }\n\n getTableDataIgnorePaging() {\n return this.store.getCurrentDisplayData();\n }\n\n getPageByRowKey = rowKey => {\n const { sizePerPage } = this.state;\n const currentData = this.store.getCurrentDisplayData();\n const keyField = this.store.getKeyField();\n const result = currentData.findIndex((x) => x[ keyField ] === rowKey);\n if (result > -1) {\n return parseInt((result / sizePerPage), 10) + 1;\n } else {\n return result;\n }\n }\n\n handleDropRow = rowKeys => {\n const dropRowKeys = rowKeys ? rowKeys : this.store.getSelectedRowKeys();\n // add confirm before the delete action if that option is set.\n if (dropRowKeys && dropRowKeys.length > 0) {\n if (this.props.options.handleConfirmDeleteRow) {\n this.props.options.handleConfirmDeleteRow(() => {\n this.deleteRow(dropRowKeys);\n }, dropRowKeys);\n } else if (confirm('Are you sure you want to delete?')) {\n this.deleteRow(dropRowKeys);\n }\n }\n }\n\n deleteRow(dropRowKeys) {\n const { onDeleteRow } = this.props.options;\n if (onDeleteRow) {\n onDeleteRow(dropRowKeys);\n }\n\n this.store.setSelectedRowKey([]); // clear selected row key\n\n if (this.allowRemote(Const.REMOTE_DROP_ROW)) {\n if (this.props.options.afterDeleteRow) {\n this.props.options.afterDeleteRow(dropRowKeys);\n }\n return;\n }\n\n this.store.remove(dropRowKeys); // remove selected Row\n let result;\n if (this.props.pagination) {\n const { sizePerPage } = this.state;\n const currLastPage = Math.ceil(this.store.getDataNum() / sizePerPage);\n let { currPage } = this.state;\n if (currPage > currLastPage) currPage = currLastPage;\n result = this.store.page(currPage, sizePerPage).get();\n this.setState({\n data: result,\n selectedRowKeys: this.store.getSelectedRowKeys(),\n currPage,\n reset: false\n });\n } else {\n result = this.store.get();\n this.setState({\n data: result,\n reset: false,\n selectedRowKeys: this.store.getSelectedRowKeys()\n });\n }\n if (this.props.options.afterDeleteRow) {\n this.props.options.afterDeleteRow(dropRowKeys);\n }\n }\n\n handleFilterData = filterObj => {\n const { onFilterChange } = this.props.options;\n if (onFilterChange) {\n const colInfos = this.store.getColInfos();\n onFilterChange(filterObj, colInfos);\n }\n\n this.setState({\n currPage: this.props.options.pageStartIndex || Const.PAGE_START_INDEX,\n reset: false\n });\n\n if (this.allowRemote(Const.REMOTE_FILTER)) {\n if (this.props.options.afterColumnFilter) {\n this.props.options.afterColumnFilter(filterObj, this.store.getDataIgnoringPagination());\n }\n return;\n }\n\n this.store.filter(filterObj);\n\n const sortList = this.store.getSortInfo();\n\n if (sortList.length > 0) {\n this.store.sort();\n }\n\n let result;\n\n if (this.props.pagination) {\n const { sizePerPage } = this.state;\n result = this.store.page(1, sizePerPage).get();\n } else {\n result = this.store.get();\n }\n if (this.props.options.afterColumnFilter) {\n this.props.options.afterColumnFilter(filterObj,\n this.store.getDataIgnoringPagination());\n }\n this.setState({\n data: result,\n reset: false\n });\n }\n\n handleExportCSV = () => {\n let result = {};\n\n let { csvFileName } = this.props;\n const { onExportToCSV } = this.props.options;\n if (onExportToCSV) {\n result = onExportToCSV();\n } else {\n result = this.store.getDataIgnoringPagination();\n }\n\n const keys = [];\n this.props.children.map(function(column) {\n if (column.props.export === true ||\n (typeof column.props.export === 'undefined' &&\n column.props.hidden === false)) {\n keys.push({\n field: column.props.dataField,\n format: column.props.csvFormat,\n extraData: column.props.csvFormatExtraData,\n header: column.props.csvHeader || column.props.dataField,\n row: Number(column.props.row) || 0,\n rowSpan: Number(column.props.rowSpan) || 1,\n colSpan: Number(column.props.colSpan) || 1\n });\n }\n });\n\n if (typeof csvFileName === 'function') {\n csvFileName = csvFileName();\n }\n\n exportCSVUtil(result, keys, csvFileName);\n }\n\n handleSearch = searchText => {\n // Set search field if this function being called outside\n // but it's not necessary if calling fron inside.\n if (this.refs.toolbar) {\n this.refs.toolbar.setSearchInput(searchText);\n }\n const { onSearchChange } = this.props.options;\n if (onSearchChange) {\n const colInfos = this.store.getColInfos();\n onSearchChange(searchText, colInfos, this.props.multiColumnSearch);\n }\n\n this.setState({\n currPage: this.props.options.pageStartIndex || Const.PAGE_START_INDEX,\n reset: false\n });\n\n if (this.allowRemote(Const.REMOTE_SEARCH)) {\n if (this.props.options.afterSearch) {\n this.props.options.afterSearch(searchText, this.store.getDataIgnoringPagination());\n }\n return;\n }\n\n\n this.store.search(searchText);\n\n const sortList = this.store.getSortInfo();\n\n if (sortList.length > 0) {\n this.store.sort();\n }\n\n let result;\n if (this.props.pagination) {\n const { sizePerPage } = this.state;\n result = this.store.page(1, sizePerPage).get();\n } else {\n result = this.store.get();\n }\n if (this.props.options.afterSearch) {\n this.props.options.afterSearch(searchText,\n this.store.getDataIgnoringPagination());\n }\n this.setState({\n data: result,\n reset: false\n });\n }\n\n renderPagination() {\n if (this.props.pagination) {\n let dataSize;\n if (this.allowRemote(Const.REMOTE_PAGE)) {\n dataSize = this.props.fetchInfo.dataTotalSize;\n } else {\n dataSize = this.store.getDataNum();\n }\n const { options } = this.props;\n const withFirstAndLast = options.withFirstAndLast === undefined ? true : options.withFirstAndLast;\n if (Math.ceil(dataSize / this.state.sizePerPage) <= 1 &&\n this.props.ignoreSinglePage) return null;\n return (\n \n );\n }\n return null;\n }\n\n renderToolBar() {\n const { exportCSV, selectRow, insertRow, deleteRow, search, children, keyField } = this.props;\n const enableShowOnlySelected = selectRow && selectRow.showOnlySelected;\n const print = typeof this.props.options.printToolBar === 'undefined' ?\n true : this.props.options.printToolBar;\n if (enableShowOnlySelected\n || insertRow\n || deleteRow\n || search\n || exportCSV\n || this.props.options.searchPanel\n || this.props.options.btnGroup\n || this.props.options.toolBar) {\n let columns;\n if (Array.isArray(children)) {\n columns = children.map((column, r) => {\n const { props } = column;\n const isKey = props.isKey || keyField === props.dataField;\n return {\n isKey,\n name: props.headerText || props.children,\n field: props.dataField,\n hiddenOnInsert: props.hiddenOnInsert,\n keyValidator: props.keyValidator,\n // when you want same auto generate value and not allow edit, example ID field\n autoValue: props.autoValue || false,\n // for create editor, no params for column.editable() indicate that editor for new row\n editable: props.editable && (typeof props.editable === 'function') ? props.editable() : props.editable,\n format: props.dataFormat ? function(value) {\n return props.dataFormat(value, null, props.formatExtraData, r).replace(/<.*?>/g, '');\n } : false\n };\n });\n } else {\n columns = [ {\n name: children.props.headerText || children.props.children,\n field: children.props.dataField,\n editable: children.props.editable,\n hiddenOnInsert: children.props.hiddenOnInsert,\n keyValidator: children.props.keyValidator\n } ];\n }\n return (\n \n \n
\n );\n } else {\n return null;\n }\n }\n\n renderTableFilter(columns) {\n if (this.props.columnFilter) {\n return (\n \n );\n } else {\n return null;\n }\n }\n\n _scrollTop = () => {\n const { scrollTop } = this.props;\n if (scrollTop === Const.SCROLL_TOP) {\n this.refs.body.refs.container.scrollTop = 0;\n } else if (scrollTop === Const.SCROLL_BOTTOM) {\n this.refs.body.refs.container.scrollTop = this.refs.body.refs.container.scrollHeight;\n } else if (typeof scrollTop === 'number' && !isNaN(scrollTop)) {\n this.refs.body.refs.container.scrollTop = scrollTop;\n }\n }\n _scrollHeader = (e) => {\n this.refs.header.refs.container.scrollLeft = e.currentTarget.scrollLeft;\n }\n\n _adjustTable() {\n this._adjustHeight();\n if (!this.props.printable) {\n this._adjustHeaderWidth();\n }\n }\n\n _adjustHeaderWidth() {\n const header = this.refs.header.getHeaderColGrouop();\n const tbody = this.refs.body.refs.tbody;\n const bodyHeader = this.refs.body.getHeaderColGrouop();\n const firstRow = tbody.childNodes[0];\n const isScroll = tbody.parentNode.getBoundingClientRect().height >\n tbody.parentNode.parentNode.getBoundingClientRect().height;\n\n const scrollBarWidth = isScroll ? Util.getScrollBarWidth() : 0;\n if (firstRow && this.store.getDataNum()) {\n if (isScroll || this.isVerticalScroll !== isScroll) {\n const cells = firstRow.childNodes;\n for (let i = 0; i < cells.length; i++) {\n const cell = cells[i];\n const computedStyle = window.getComputedStyle(cell);\n let width = parseFloat(computedStyle.width.replace('px', ''));\n if (this.isIE) {\n const paddingLeftWidth = parseFloat(computedStyle.paddingLeft.replace('px', ''));\n const paddingRightWidth = parseFloat(computedStyle.paddingRight.replace('px', ''));\n const borderRightWidth = parseFloat(computedStyle.borderRightWidth.replace('px', ''));\n const borderLeftWidth = parseFloat(computedStyle.borderLeftWidth.replace('px', ''));\n width = width + paddingLeftWidth + paddingRightWidth + borderRightWidth + borderLeftWidth;\n }\n const lastPadding = (cells.length - 1 === i ? scrollBarWidth : 0);\n if (width <= 0) {\n width = 120;\n cell.width = width + lastPadding + 'px';\n }\n const result = width + lastPadding + 'px';\n header[i].style.width = result;\n header[i].style.minWidth = result;\n if (cells.length - 1 === i) {\n bodyHeader[i].style.width = width + 'px';\n bodyHeader[i].style.minWidth = width + 'px';\n } else {\n bodyHeader[i].style.width = result;\n bodyHeader[i].style.minWidth = result;\n }\n }\n }\n } else {\n React.Children.forEach(this.props.children, (child, i) => {\n if (child.props.width) {\n header[i].style.width = `${child.props.width}px`;\n header[i].style.minWidth = `${child.props.width}px`;\n }\n });\n }\n this.isVerticalScroll = isScroll;\n }\n\n _adjustHeight() {\n const { height } = this.props;\n let { maxHeight } = this.props;\n if ((typeof height === 'number' && !isNaN(height)) || height.indexOf('%') === -1) {\n this.refs.body.refs.container.style.height =\n parseFloat(height, 10) - this.refs.header.refs.container.offsetHeight + 'px';\n }\n if (maxHeight) {\n maxHeight = typeof maxHeight === 'number' ?\n maxHeight :\n parseInt(maxHeight.replace('px', ''), 10);\n\n this.refs.body.refs.container.style.maxHeight =\n maxHeight - this.refs.header.refs.container.offsetHeight + 'px';\n }\n }\n\n _handleAfterAddingRow(newObj, atTheBeginning) {\n let result;\n if (this.props.pagination) {\n // if pagination is enabled and inserting row at the end,\n // change page to the last page\n // otherwise, change it to the first page\n const { sizePerPage } = this.state;\n\n if (atTheBeginning) {\n const firstPage = this.props.options.pageStartIndex || Const.PAGE_START_INDEX;\n result = this.store.page(firstPage, sizePerPage).get();\n this.setState({\n data: result,\n currPage: firstPage,\n reset: false\n });\n } else {\n const currLastPage = Math.ceil(this.store.getDataNum() / sizePerPage);\n result = this.store.page(currLastPage, sizePerPage).get();\n this.setState({\n data: result,\n currPage: currLastPage,\n reset: false\n });\n }\n } else {\n result = this.store.get();\n this.setState({\n data: result,\n reset: false\n });\n }\n\n if (this.props.options.afterInsertRow) {\n this.props.options.afterInsertRow(newObj);\n }\n }\n}\n\nBootstrapTable.propTypes = {\n keyField: PropTypes.string,\n height: PropTypes.oneOfType([ PropTypes.string, PropTypes.number ]),\n maxHeight: PropTypes.oneOfType([ PropTypes.string, PropTypes.number ]),\n data: PropTypes.oneOfType([ PropTypes.array, PropTypes.object ]),\n remote: PropTypes.oneOfType([ PropTypes.bool, PropTypes.func ]), // remote data, default is false\n scrollTop: PropTypes.oneOfType([ PropTypes.string, PropTypes.number ]),\n striped: PropTypes.bool,\n bordered: PropTypes.bool,\n hover: PropTypes.bool,\n condensed: PropTypes.bool,\n pagination: PropTypes.bool,\n printable: PropTypes.bool,\n keyBoardNav: PropTypes.oneOfType([ PropTypes.bool, PropTypes.object ]),\n searchPlaceholder: PropTypes.string,\n selectRow: PropTypes.shape({\n mode: PropTypes.oneOf([\n Const.ROW_SELECT_NONE,\n Const.ROW_SELECT_SINGLE,\n Const.ROW_SELECT_MULTI\n ]),\n customComponent: PropTypes.func,\n bgColor: PropTypes.oneOfType([ PropTypes.string, PropTypes.func ]),\n selected: PropTypes.array,\n onSelect: PropTypes.func,\n onSelectAll: PropTypes.func,\n clickToSelect: PropTypes.bool,\n hideSelectColumn: PropTypes.bool,\n clickToSelectAndEditCell: PropTypes.bool,\n clickToExpand: PropTypes.bool,\n showOnlySelected: PropTypes.bool,\n unselectable: PropTypes.array,\n columnWidth: PropTypes.oneOfType([ PropTypes.number, PropTypes.string ])\n }),\n cellEdit: PropTypes.shape({\n mode: PropTypes.string,\n blurToSave: PropTypes.bool,\n beforeSaveCell: PropTypes.func,\n afterSaveCell: PropTypes.func,\n nonEditableRows: PropTypes.func\n }),\n insertRow: PropTypes.bool,\n deleteRow: PropTypes.bool,\n search: PropTypes.bool,\n columnFilter: PropTypes.bool,\n trClassName: PropTypes.any,\n tableStyle: PropTypes.object,\n containerStyle: PropTypes.object,\n headerStyle: PropTypes.object,\n bodyStyle: PropTypes.object,\n containerClass: PropTypes.string,\n tableContainerClass: PropTypes.string,\n headerContainerClass: PropTypes.string,\n bodyContainerClass: PropTypes.string,\n tableHeaderClass: PropTypes.string,\n tableBodyClass: PropTypes.string,\n options: PropTypes.shape({\n clearSearch: PropTypes.bool,\n sortName: PropTypes.oneOfType([ PropTypes.string, PropTypes.array ]),\n sortOrder: PropTypes.oneOfType([ PropTypes.string, PropTypes.array ]),\n defaultSortName: PropTypes.oneOfType([ PropTypes.string, PropTypes.array ]),\n defaultSortOrder: PropTypes.oneOfType([ PropTypes.string, PropTypes.array ]),\n sortIndicator: PropTypes.bool,\n afterTableComplete: PropTypes.func,\n afterDeleteRow: PropTypes.func,\n afterInsertRow: PropTypes.func,\n afterSearch: PropTypes.func,\n afterColumnFilter: PropTypes.func,\n onRowClick: PropTypes.func,\n onRowDoubleClick: PropTypes.func,\n page: PropTypes.number,\n pageStartIndex: PropTypes.number,\n paginationShowsTotal: PropTypes.oneOfType([ PropTypes.bool, PropTypes.func ]),\n sizePerPageList: PropTypes.array,\n sizePerPage: PropTypes.number,\n paginationSize: PropTypes.number,\n paginationPosition: PropTypes.oneOf([\n Const.PAGINATION_POS_TOP,\n Const.PAGINATION_POS_BOTTOM,\n Const.PAGINATION_POS_BOTH\n ]),\n hideSizePerPage: PropTypes.bool,\n hidePageListOnlyOnePage: PropTypes.bool,\n alwaysShowAllBtns: PropTypes.bool,\n withFirstAndLast: PropTypes.bool,\n onSortChange: PropTypes.func,\n onPageChange: PropTypes.func,\n onSizePerPageList: PropTypes.func,\n onFilterChange: React.PropTypes.func,\n onSearchChange: React.PropTypes.func,\n onAddRow: React.PropTypes.func,\n onExportToCSV: React.PropTypes.func,\n onCellEdit: React.PropTypes.func,\n noDataText: PropTypes.oneOfType([ PropTypes.string, PropTypes.object ]),\n withoutNoDataText: React.PropTypes.bool,\n handleConfirmDeleteRow: PropTypes.func,\n prePage: PropTypes.string,\n nextPage: PropTypes.string,\n firstPage: PropTypes.string,\n lastPage: PropTypes.string,\n prePageTitle: PropTypes.string,\n nextPageTitle: PropTypes.string,\n firstPageTitle: PropTypes.string,\n lastPageTitle: PropTypes.string,\n searchDelayTime: PropTypes.number,\n exportCSVText: PropTypes.string,\n insertText: PropTypes.string,\n deleteText: PropTypes.string,\n saveText: PropTypes.string,\n closeText: PropTypes.string,\n ignoreEditable: PropTypes.bool,\n defaultSearch: PropTypes.string,\n insertModalHeader: PropTypes.func,\n insertModalBody: PropTypes.func,\n insertModalFooter: PropTypes.func,\n insertModal: PropTypes.func,\n insertBtn: PropTypes.func,\n deleteBtn: PropTypes.func,\n showSelectedOnlyBtn: PropTypes.func,\n exportCSVBtn: PropTypes.func,\n clearSearchBtn: PropTypes.func,\n searchField: PropTypes.func,\n searchPanel: PropTypes.func,\n btnGroup: PropTypes.func,\n toolBar: PropTypes.func,\n sizePerPageDropDown: PropTypes.func,\n paginationPanel: PropTypes.func,\n searchPosition: PropTypes.string,\n expandRowBgColor: PropTypes.string,\n expandBy: PropTypes.string,\n expanding: PropTypes.array,\n beforeShowError: PropTypes.func,\n printToolBar: PropTypes.bool\n }),\n fetchInfo: PropTypes.shape({\n dataTotalSize: PropTypes.number\n }),\n exportCSV: PropTypes.bool,\n csvFileName: PropTypes.oneOfType([ PropTypes.string, PropTypes.func ]),\n ignoreSinglePage: PropTypes.bool,\n expandableRow: PropTypes.func,\n expandComponent: PropTypes.func,\n expandColumnOptions: PropTypes.shape({\n columnWidth: PropTypes.oneOfType([ PropTypes.number, PropTypes.string ]),\n expandColumnVisible: PropTypes.bool,\n expandColumnComponent: PropTypes.func,\n expandColumnBeforeSelectColumn: PropTypes.bool\n })\n};\nBootstrapTable.defaultProps = {\n scrollTop: undefined,\n expandComponent: undefined,\n expandableRow: undefined,\n expandColumnOptions: {\n expandColumnVisible: false,\n expandColumnComponent: undefined,\n expandColumnBeforeSelectColumn: true\n },\n height: '100%',\n maxHeight: undefined,\n striped: false,\n bordered: true,\n hover: false,\n condensed: false,\n pagination: false,\n printable: false,\n keyBoardNav: false,\n searchPlaceholder: undefined,\n selectRow: {\n mode: Const.ROW_SELECT_NONE,\n bgColor: Const.ROW_SELECT_BG_COLOR,\n selected: [],\n onSelect: undefined,\n onSelectAll: undefined,\n clickToSelect: false,\n hideSelectColumn: false,\n clickToSelectAndEditCell: false,\n clickToExpand: false,\n showOnlySelected: false,\n unselectable: [],\n customComponent: undefined\n },\n cellEdit: {\n mode: Const.CELL_EDIT_NONE,\n blurToSave: false,\n beforeSaveCell: undefined,\n afterSaveCell: undefined,\n nonEditableRows: undefined\n },\n insertRow: false,\n deleteRow: false,\n search: false,\n multiColumnSearch: false,\n multiColumnSort: 1,\n columnFilter: false,\n trClassName: '',\n tableStyle: undefined,\n containerStyle: undefined,\n headerStyle: undefined,\n bodyStyle: undefined,\n containerClass: null,\n tableContainerClass: null,\n headerContainerClass: null,\n bodyContainerClass: null,\n tableHeaderClass: null,\n tableBodyClass: null,\n options: {\n clearSearch: false,\n sortName: undefined,\n sortOrder: undefined,\n defaultSortName: undefined,\n defaultSortOrder: undefined,\n sortIndicator: true,\n afterTableComplete: undefined,\n afterDeleteRow: undefined,\n afterInsertRow: undefined,\n afterSearch: undefined,\n afterColumnFilter: undefined,\n onRowClick: undefined,\n onRowDoubleClick: undefined,\n onMouseLeave: undefined,\n onMouseEnter: undefined,\n onRowMouseOut: undefined,\n onRowMouseOver: undefined,\n page: undefined,\n paginationShowsTotal: false,\n sizePerPageList: Const.SIZE_PER_PAGE_LIST,\n sizePerPage: undefined,\n paginationSize: Const.PAGINATION_SIZE,\n paginationPosition: Const.PAGINATION_POS_BOTTOM,\n hideSizePerPage: false,\n hidePageListOnlyOnePage: false,\n alwaysShowAllBtns: false,\n withFirstAndLast: true,\n onSizePerPageList: undefined,\n noDataText: undefined,\n withoutNoDataText: false,\n handleConfirmDeleteRow: undefined,\n prePage: Const.PRE_PAGE,\n nextPage: Const.NEXT_PAGE,\n firstPage: Const.FIRST_PAGE,\n lastPage: Const.LAST_PAGE,\n prePageTitle: Const.PRE_PAGE_TITLE,\n nextPageTitle: Const.NEXT_PAGE_TITLE,\n firstPageTitle: Const.FIRST_PAGE_TITLE,\n lastPageTitle: Const.LAST_PAGE_TITLE,\n pageStartIndex: undefined,\n searchDelayTime: undefined,\n exportCSVText: Const.EXPORT_CSV_TEXT,\n insertText: Const.INSERT_BTN_TEXT,\n deleteText: Const.DELETE_BTN_TEXT,\n saveText: Const.SAVE_BTN_TEXT,\n closeText: Const.CLOSE_BTN_TEXT,\n ignoreEditable: false,\n defaultSearch: '',\n insertModalHeader: undefined,\n insertModalBody: undefined,\n insertModalFooter: undefined,\n insertModal: undefined,\n insertBtn: undefined,\n deleteBtn: undefined,\n showSelectedOnlyBtn: undefined,\n exportCSVBtn: undefined,\n clearSearchBtn: undefined,\n searchField: undefined,\n searchPanel: undefined,\n btnGroup: undefined,\n toolBar: undefined,\n sizePerPageDropDown: undefined,\n paginationPanel: undefined,\n searchPosition: 'right',\n expandRowBgColor: undefined,\n expandBy: Const.EXPAND_BY_ROW,\n expanding: [],\n beforeShowError: undefined,\n printToolBar: true\n },\n fetchInfo: {\n dataTotalSize: 0\n },\n exportCSV: false,\n csvFileName: 'spreadsheet.csv',\n ignoreSinglePage: false\n};\n\nexport default BootstrapTable;\n\n\n\n// WEBPACK FOOTER //\n// src/BootstrapTable.js","module.exports = __WEBPACK_EXTERNAL_MODULE_2__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external {\"root\":\"React\",\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\"}\n// module id = 2\n// module chunks = 0","/*!\n Copyright (c) 2016 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tclasses.push(classNames.apply(null, arg));\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/classnames/index.js\n// module id = 3\n// module chunks = 0","const CONST_VAR = {\n SORT_DESC: 'desc',\n SORT_ASC: 'asc',\n SIZE_PER_PAGE: 10,\n NEXT_PAGE: '>',\n NEXT_PAGE_TITLE: 'next page',\n LAST_PAGE: '>>',\n LAST_PAGE_TITLE: 'last page',\n PRE_PAGE: '<',\n PRE_PAGE_TITLE: 'previous page',\n FIRST_PAGE: '<<',\n FIRST_PAGE_TITLE: 'first page',\n PAGE_START_INDEX: 1,\n ROW_SELECT_BG_COLOR: '',\n ROW_SELECT_NONE: 'none',\n ROW_SELECT_SINGLE: 'radio',\n ROW_SELECT_MULTI: 'checkbox',\n CELL_EDIT_NONE: 'none',\n CELL_EDIT_CLICK: 'click',\n CELL_EDIT_DBCLICK: 'dbclick',\n SIZE_PER_PAGE_LIST: [ 10, 25, 30, 50 ],\n PAGINATION_SIZE: 5,\n PAGINATION_POS_TOP: 'top',\n PAGINATION_POS_BOTTOM: 'bottom',\n PAGINATION_POS_BOTH: 'both',\n NO_DATA_TEXT: 'There is no data to display',\n SHOW_ONLY_SELECT: 'Show Selected Only',\n SHOW_ALL: 'Show All',\n EXPORT_CSV_TEXT: 'Export to CSV',\n INSERT_BTN_TEXT: 'New',\n DELETE_BTN_TEXT: 'Delete',\n SAVE_BTN_TEXT: 'Save',\n CLOSE_BTN_TEXT: 'Close',\n FILTER_DELAY: 500,\n SCROLL_TOP: 'Top',\n SCROLL_BOTTOM: 'Bottom',\n FILTER_TYPE: {\n TEXT: 'TextFilter',\n REGEX: 'RegexFilter',\n SELECT: 'SelectFilter',\n NUMBER: 'NumberFilter',\n DATE: 'DateFilter',\n CUSTOM: 'CustomFilter'\n },\n FILTER_COND_EQ: 'eq',\n FILTER_COND_LIKE: 'like',\n EXPAND_BY_ROW: 'row',\n EXPAND_BY_COL: 'column',\n REMOTE_SORT: 'sort',\n REMOTE_PAGE: 'pagination',\n REMOTE_CELL_EDIT: 'cellEdit',\n REMOTE_INSERT_ROW: 'insertRow',\n REMOTE_DROP_ROW: 'dropRow',\n REMOTE_FILTER: 'filter',\n REMOTE_SEARCH: 'search',\n REMOTE_EXPORT_CSV: 'exportCSV'\n};\n\nCONST_VAR.REMOTE = {};\nCONST_VAR.REMOTE[CONST_VAR.REMOTE_SORT] = false;\nCONST_VAR.REMOTE[CONST_VAR.REMOTE_PAGE] = false;\nCONST_VAR.REMOTE[CONST_VAR.REMOTE_CELL_EDIT] = false;\nCONST_VAR.REMOTE[CONST_VAR.REMOTE_INSERT_ROW] = false;\nCONST_VAR.REMOTE[CONST_VAR.REMOTE_DROP_ROW] = false;\nCONST_VAR.REMOTE[CONST_VAR.REMOTE_FILTER] = false;\nCONST_VAR.REMOTE[CONST_VAR.REMOTE_SEARCH] = false;\nCONST_VAR.REMOTE[CONST_VAR.REMOTE_EXPORT_CSV] = false;\n\nexport default CONST_VAR;\n\n\n\n// WEBPACK FOOTER //\n// src/Const.js","import React, { Component, PropTypes } from 'react';\nimport ReactDOM from 'react-dom';\nimport Const from './Const';\nimport classSet from 'classnames';\nimport SelectRowHeaderColumn from './SelectRowHeaderColumn';\n\nclass Checkbox extends Component {\n componentDidMount() { this.update(this.props.checked); }\n componentWillReceiveProps(props) { this.update(props.checked); }\n update(checked) {\n ReactDOM.findDOMNode(this).indeterminate = checked === 'indeterminate';\n }\n render() {\n return (\n \n );\n }\n}\n\nfunction getSortOrder(sortList, field, enableSort) {\n if (!enableSort) return undefined;\n const result = sortList.filter(sortObj => {\n return sortObj.sortField === field;\n });\n if (result.length > 0) {\n return result[0].order;\n } else {\n return undefined;\n }\n}\n\nclass TableHeader extends Component {\n\n render() {\n const containerClasses = classSet(\n 'react-bs-container-header',\n 'table-header-wrapper',\n this.props.headerContainerClass);\n const tableClasses = classSet('table', 'table-hover', {\n 'table-bordered': this.props.bordered,\n 'table-condensed': this.props.condensed\n }, this.props.tableHeaderClass);\n\n const rowCount = Math.max(...React.Children.map(this.props.children, elm =>\n elm.props.row ? Number(elm.props.row) : 0\n ));\n\n const rows = [];\n let rowKey = 0;\n\n rows[0] = [];\n rows[0].push( [\n this.props.expandColumnVisible &&\n this.props.expandColumnBeforeSelectColumn &&\n | \n ], [\n this.renderSelectRowHeader(rowCount + 1, rowKey++)\n ], [\n this.props.expandColumnVisible &&\n !this.props.expandColumnBeforeSelectColumn &&\n | \n ]);\n const { sortIndicator, sortList, onSort, reset } = this.props;\n\n React.Children.forEach(this.props.children, (elm) => {\n const { dataField, dataSort } = elm.props;\n const sort = getSortOrder(sortList, dataField, dataSort);\n const rowIndex = elm.props.row ? Number(elm.props.row) : 0;\n const rowSpan = elm.props.rowSpan ? Number(elm.props.rowSpan) : 1;\n if (rows[rowIndex] === undefined) {\n rows[rowIndex] = [];\n }\n if ((rowSpan + rowIndex) === (rowCount + 1)) {\n rows[rowIndex].push(React.cloneElement(\n elm, { reset, key: rowKey++, onSort, sort, sortIndicator, isOnlyHead: false }\n ));\n } else {\n rows[rowIndex].push(React.cloneElement(\n elm, { key: rowKey++, isOnlyHead: true }\n ));\n }\n });\n\n const trs = rows.map((row, indexRow)=>{\n return (\n \n { row }\n
\n );\n });\n\n return (\n \n
\n { React.cloneElement(this.props.colGroups, { ref: 'headerGrp' }) }\n \n { trs }\n \n
\n
\n );\n }\n\n getHeaderColGrouop = () => {\n return this.refs.headerGrp.childNodes;\n }\n\n renderSelectRowHeader(rowCount, rowKey) {\n if (this.props.hideSelectColumn) {\n return null;\n } else if (this.props.customComponent) {\n const CustomComponent = this.props.customComponent;\n return (\n \n \n \n );\n } else if (this.props.rowSelectType === Const.ROW_SELECT_SINGLE) {\n return ();\n } else if (this.props.rowSelectType === Const.ROW_SELECT_MULTI) {\n return (\n \n \n \n );\n } else {\n return null;\n }\n }\n}\nTableHeader.propTypes = {\n headerContainerClass: PropTypes.string,\n tableHeaderClass: PropTypes.string,\n style: PropTypes.object,\n rowSelectType: PropTypes.string,\n onSort: PropTypes.func,\n onSelectAllRow: PropTypes.func,\n sortList: PropTypes.array,\n hideSelectColumn: PropTypes.bool,\n bordered: PropTypes.bool,\n condensed: PropTypes.bool,\n isFiltered: PropTypes.bool,\n isSelectAll: PropTypes.oneOf([ true, 'indeterminate', false ]),\n sortIndicator: PropTypes.bool,\n customComponent: PropTypes.func,\n colGroups: PropTypes.element,\n reset: PropTypes.bool,\n expandColumnVisible: PropTypes.bool,\n expandColumnComponent: PropTypes.func,\n expandColumnBeforeSelectColumn: PropTypes.bool\n};\n\nexport default TableHeader;\n\n\n\n// WEBPACK FOOTER //\n// src/TableHeader.js","module.exports = __WEBPACK_EXTERNAL_MODULE_6__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external {\"root\":\"ReactDOM\",\"commonjs2\":\"react-dom\",\"commonjs\":\"react-dom\",\"amd\":\"react-dom\"}\n// module id = 6\n// module chunks = 0","import React, { Component, PropTypes } from 'react';\n\nclass SelectRowHeaderColumn extends Component {\n\n render() {\n return (\n \n { this.props.children }\n | \n );\n }\n}\nSelectRowHeaderColumn.propTypes = {\n children: PropTypes.node,\n rowCount: PropTypes.number\n};\nexport default SelectRowHeaderColumn;\n\n\n\n// WEBPACK FOOTER //\n// src/SelectRowHeaderColumn.js","import React, { Component, PropTypes } from 'react';\nimport Utils from './util';\nimport Const from './Const';\nimport TableRow from './TableRow';\nimport TableColumn from './TableColumn';\nimport TableEditColumn from './TableEditColumn';\nimport classSet from 'classnames';\nimport ExpandComponent from './ExpandComponent';\n\nconst isFun = function(obj) {\n return obj && (typeof obj === 'function');\n};\n\nclass TableBody extends Component {\n constructor(props) {\n super(props);\n this.state = {\n currEditCell: null\n };\n }\n\n render() {\n const { cellEdit, beforeShowError, x, y, keyBoardNav } = this.props;\n const tableClasses = classSet('table', {\n 'table-striped': this.props.striped,\n 'table-bordered': this.props.bordered,\n 'table-hover': this.props.hover,\n 'table-condensed': this.props.condensed\n }, this.props.tableBodyClass);\n\n const noneditableRows = (cellEdit.nonEditableRows && cellEdit.nonEditableRows()) || [];\n const unselectable = this.props.selectRow.unselectable || [];\n const isSelectRowDefined = this._isSelectRowDefined();\n const tableHeader = Utils.renderColGroup(this.props.columns,\n this.props.selectRow, this.props.expandColumnOptions);\n const inputType = this.props.selectRow.mode === Const.ROW_SELECT_SINGLE ? 'radio' : 'checkbox';\n const CustomComponent = this.props.selectRow.customComponent;\n const enableKeyBoardNav = (keyBoardNav === true || typeof keyBoardNav === 'object');\n const customEditAndNavStyle = typeof keyBoardNav === 'object' ?\n keyBoardNav.customStyleOnEditCell :\n null;\n const customNavStyle = typeof keyBoardNav === 'object' ?\n keyBoardNav.customStyle :\n null;\n const ExpandColumnCustomComponent = this.props.expandColumnOptions.expandColumnComponent;\n let expandColSpan = this.props.columns.filter(col => !col.hidden).length;\n if (isSelectRowDefined && !this.props.selectRow.hideSelectColumn) {\n expandColSpan += 1;\n }\n let tabIndex = 1;\n if (this.props.expandColumnOptions.expandColumnVisible) {\n expandColSpan += 1;\n }\n\n let tableRows = this.props.data.map(function(data, r) {\n const tableColumns = this.props.columns.map(function(column, i) {\n const fieldValue = data[column.name];\n const isFocusCell = r === y && i === x;\n if (column.name !== this.props.keyField && // Key field can't be edit\n column.editable && // column is editable? default is true, user can set it false\n column.editable.readOnly !== true &&\n this.state.currEditCell !== null &&\n this.state.currEditCell.rid === r &&\n this.state.currEditCell.cid === i &&\n noneditableRows.indexOf(data[this.props.keyField]) === -1) {\n let editable = column.editable;\n const format = column.format ? function(value) {\n return column.format(value, data, column.formatExtraData, r).replace(/<.*?>/g, '');\n } : false;\n if (isFun(column.editable)) {\n editable = column.editable(fieldValue, data, r, i);\n }\n\n return (\n \n );\n } else {\n // add by bluespring for className customize\n let columnChild = fieldValue && fieldValue.toString();\n let columnTitle = null;\n let tdClassName = column.className;\n if (isFun(column.className)) {\n tdClassName = column.className(fieldValue, data, r, i);\n }\n\n if (typeof column.format !== 'undefined') {\n const formattedValue = column.format(fieldValue, data, column.formatExtraData, r);\n if (!React.isValidElement(formattedValue)) {\n columnChild = (\n \n );\n } else {\n columnChild = formattedValue;\n columnTitle = column.columnTitle && formattedValue ? formattedValue.toString() : null;\n }\n } else {\n columnTitle = column.columnTitle && fieldValue ? fieldValue.toString() : null;\n }\n return (\n \n { columnChild }\n \n );\n }\n }, this);\n const key = data[this.props.keyField];\n const disable = unselectable.indexOf(key) !== -1;\n const selected = this.props.selectedRowKeys.indexOf(key) !== -1;\n const selectRowColumn = isSelectRowDefined && !this.props.selectRow.hideSelectColumn ?\n this.renderSelectRowColumn(selected, inputType, disable, CustomComponent, r, data) : null;\n const expandedRowColumn = this.renderExpandRowColumn(\n this.props.expandableRow && this.props.expandableRow(data),\n this.props.expanding.indexOf(key) > -1,\n ExpandColumnCustomComponent, r, data\n );\n // add by bluespring for className customize\n let trClassName = this.props.trClassName;\n if (isFun(this.props.trClassName)) {\n trClassName = this.props.trClassName(data, r);\n }\n const result = [ \n { this.props.expandColumnOptions.expandColumnVisible &&\n this.props.expandColumnOptions.expandColumnBeforeSelectColumn &&\n expandedRowColumn }\n { selectRowColumn }\n { this.props.expandColumnOptions.expandColumnVisible &&\n !this.props.expandColumnOptions.expandColumnBeforeSelectColumn &&\n expandedRowColumn }\n { tableColumns }\n ];\n\n if (this.props.expandableRow && this.props.expandableRow(data)) {\n result.push(\n -1) }\n colSpan={ expandColSpan }\n width={ \"100%\" }>\n { this.props.expandComponent(data) }\n \n );\n }\n return (result);\n }, this);\n\n if (tableRows.length === 0 && !this.props.withoutNoDataText) {\n const colSpan = this.props.columns.filter(c => !c.hidden).length\n + (isSelectRowDefined ? 1 : 0);\n tableRows = [\n \n \n { this.props.noDataText || Const.NO_DATA_TEXT }\n | \n \n ];\n }\n\n return (\n \n
\n { React.cloneElement(tableHeader, { ref: 'header' }) }\n \n { tableRows }\n \n
\n
\n );\n }\n\n handleCellKeyDown = (e, lastEditCell) => {\n e.preventDefault();\n const { keyBoardNav, onNavigateCell, cellEdit } = this.props;\n let offset;\n if (e.keyCode === 37) {\n offset = { x: -1, y: 0 };\n } else if (e.keyCode === 38) {\n offset = { x: 0, y: -1 };\n } else if (e.keyCode === 39 || e.keyCode === 9) {\n offset = { x: 1, y: 0 };\n if (e.keyCode === 9 && lastEditCell) {\n offset = {\n ...offset,\n lastEditCell\n };\n }\n } else if (e.keyCode === 40) {\n offset = { x: 0, y: 1 };\n } else if (e.keyCode === 13) {\n const enterToEdit = typeof keyBoardNav === 'object' ?\n keyBoardNav.enterToEdit :\n false;\n if (cellEdit && enterToEdit) {\n this.handleEditCell(e.target.parentElement.rowIndex + 1,\n e.currentTarget.cellIndex, '', e);\n }\n }\n if (offset && keyBoardNav) {\n onNavigateCell(offset);\n }\n }\n\n handleRowMouseOut = (rowIndex, event) => {\n const targetRow = this.props.data[rowIndex];\n this.props.onRowMouseOut(targetRow, event);\n }\n\n handleRowMouseOver = (rowIndex, event) => {\n const targetRow = this.props.data[rowIndex];\n this.props.onRowMouseOver(targetRow, event);\n }\n\n handleRowClick = (rowIndex, cellIndex) => {\n const { onRowClick } = this.props;\n if (this._isSelectRowDefined()) cellIndex--;\n if (this._isExpandColumnVisible()) cellIndex--;\n onRowClick(this.props.data[rowIndex - 1], rowIndex - 1, cellIndex);\n }\n\n handleRowDoubleClick = rowIndex => {\n const { onRowDoubleClick } = this.props;\n const targetRow = this.props.data[rowIndex];\n onRowDoubleClick(targetRow);\n }\n\n handleSelectRow = (rowIndex, isSelected, e) => {\n let selectedRow;\n const { data, onSelectRow } = this.props;\n data.forEach((row, i) => {\n if (i === rowIndex - 1) {\n selectedRow = row;\n return false;\n }\n });\n onSelectRow(selectedRow, isSelected, e);\n }\n\n handleSelectRowColumChange = (e, rowIndex) => {\n if (!this.props.selectRow.clickToSelect ||\n !this.props.selectRow.clickToSelectAndEditCell) {\n this.handleSelectRow(\n rowIndex + 1,\n e.currentTarget.checked,\n e);\n }\n }\n\n handleClickCell = (rowIndex, columnIndex = -1) => {\n const {\n columns,\n keyField,\n expandBy,\n expandableRow,\n selectRow: {\n clickToExpand\n }\n } = this.props;\n const selectRowAndExpand = this._isSelectRowDefined() && !clickToExpand ? false : true;\n columnIndex = this._isSelectRowDefined() ? columnIndex - 1 : columnIndex;\n columnIndex = this._isExpandColumnVisible() ? columnIndex - 1 : columnIndex;\n if (expandableRow &&\n selectRowAndExpand &&\n (expandBy === Const.EXPAND_BY_ROW ||\n /* Below will allow expanding trigger by clicking on selection column\n if configure as expanding by column */\n (expandBy === Const.EXPAND_BY_COL && columnIndex < 0) ||\n (expandBy === Const.EXPAND_BY_COL && columns[columnIndex].expandable))) {\n const rowKey = this.props.data[rowIndex - 1][keyField];\n let expanding = this.props.expanding;\n if (expanding.indexOf(rowKey) > -1) {\n expanding = expanding.filter(k => k !== rowKey);\n } else {\n expanding.push(rowKey);\n }\n this.props.onExpand(expanding);\n }\n }\n\n handleEditCell = (rowIndex, columnIndex, action, e) => {\n const { selectRow } = this.props;\n const defineSelectRow = this._isSelectRowDefined();\n const expandColumnVisible = this._isExpandColumnVisible();\n if (defineSelectRow) {\n columnIndex--;\n if (selectRow.hideSelectColumn) columnIndex++;\n }\n if (expandColumnVisible) {\n columnIndex--;\n }\n rowIndex--;\n\n if (action === 'tab') {\n if (defineSelectRow && !selectRow.hideSelectColumn) columnIndex++;\n if (expandColumnVisible) columnIndex++;\n this.handleCompleteEditCell(e.target.value, rowIndex, columnIndex - 1);\n if (columnIndex >= this.props.columns.length) {\n this.handleCellKeyDown(e, true);\n } else {\n this.handleCellKeyDown(e);\n }\n const { nextRIndex, nextCIndex } = this.nextEditableCell(rowIndex, columnIndex);\n rowIndex = nextRIndex;\n columnIndex = nextCIndex;\n }\n\n const stateObj = {\n currEditCell: {\n rid: rowIndex,\n cid: columnIndex\n }\n };\n\n if (this.props.selectRow.clickToSelectAndEditCell &&\n this.props.cellEdit.mode !== Const.CELL_EDIT_DBCLICK) {\n const selected = this.props.selectedRowKeys.indexOf(\n this.props.data[rowIndex][this.props.keyField]) !== -1;\n this.handleSelectRow(rowIndex + 1, !selected, e);\n }\n this.setState(stateObj);\n }\n\n nextEditableCell = (rIndex, cIndex) => {\n const { keyField } = this.props;\n let nextRIndex = rIndex;\n let nextCIndex = cIndex;\n let row;\n let column;\n do {\n if (nextCIndex >= this.props.columns.length) {\n nextRIndex++;\n nextCIndex = 0;\n }\n row = this.props.data[nextRIndex];\n column = this.props.columns[nextCIndex];\n if (!row) break;\n let editable = column.editable;\n if (isFun(column.editable)) {\n editable = column.editable(column, row, nextRIndex, nextCIndex);\n }\n if (editable && editable.readOnly !== true &&\n !column.hidden && keyField !== column.name) {\n break;\n } else {\n nextCIndex++;\n }\n } while (row);\n return { nextRIndex, nextCIndex };\n }\n\n handleCompleteEditCell = (newVal, rowIndex, columnIndex) => {\n this.setState({ currEditCell: null });\n if (newVal !== null) {\n this.props.cellEdit.__onCompleteEdit__(newVal, rowIndex, columnIndex);\n }\n }\n\n handleClickonSelectColumn = (e, isSelect, rowIndex, row) => {\n e.stopPropagation();\n if (e.target.tagName === 'TD' &&\n (this.props.selectRow.clickToSelect || this.props.selectRow.clickToSelectAndEditCell)) {\n const unselectable = this.props.selectRow.unselectable || [];\n if (unselectable.indexOf(row[this.props.keyField]) === -1) {\n this.handleSelectRow(rowIndex + 1, isSelect, e);\n this.handleClickCell(rowIndex + 1);\n }\n }\n }\n\n renderSelectRowColumn(selected, inputType, disabled,\n CustomComponent = null, rowIndex = null, row) {\n return (\n {\n this.handleClickonSelectColumn(e, !selected, rowIndex, row);\n } } style={ { textAlign: 'center' } }>\n { CustomComponent ?\n this.handleSelectRowColumChange(e, rowIndex) }/> :\n this.handleSelectRowColumChange(e, rowIndex) }/>\n }\n | \n );\n }\n\n renderExpandRowColumn(isExpandableRow, isExpanded, CustomComponent, rowIndex = null) {\n let content = null;\n if (CustomComponent) {\n content = ();\n } else if (isExpandableRow) {\n content = (isExpanded ? () :\n () );\n } else {\n content = ' ';\n }\n\n return (\n this.handleClickCell(rowIndex + 1) }>\n { content }\n | \n );\n }\n\n _isSelectRowDefined() {\n return this.props.selectRow.mode === Const.ROW_SELECT_SINGLE ||\n this.props.selectRow.mode === Const.ROW_SELECT_MULTI;\n }\n\n _isExpandColumnVisible() {\n return this.props.expandColumnOptions.expandColumnVisible;\n }\n\n getHeaderColGrouop = () => {\n return this.refs.header.childNodes;\n }\n}\nTableBody.propTypes = {\n data: PropTypes.array,\n columns: PropTypes.array,\n striped: PropTypes.bool,\n bordered: PropTypes.bool,\n hover: PropTypes.bool,\n condensed: PropTypes.bool,\n keyField: PropTypes.string,\n selectedRowKeys: PropTypes.array,\n onRowClick: PropTypes.func,\n onRowDoubleClick: PropTypes.func,\n onSelectRow: PropTypes.func,\n noDataText: PropTypes.oneOfType([ PropTypes.string, PropTypes.object ]),\n withoutNoDataText: PropTypes.bool,\n style: PropTypes.object,\n tableBodyClass: PropTypes.string,\n bodyContainerClass: PropTypes.string,\n expandableRow: PropTypes.func,\n expandComponent: PropTypes.func,\n expandRowBgColor: PropTypes.string,\n expandBy: PropTypes.string,\n expanding: PropTypes.array,\n onExpand: PropTypes.func,\n beforeShowError: PropTypes.func,\n keyBoardNav: PropTypes.oneOfType([ PropTypes.bool, PropTypes.object ]),\n x: PropTypes.number,\n y: PropTypes.number,\n onNavigateCell: PropTypes.func\n};\nexport default TableBody;\n\n\n\n// WEBPACK FOOTER //\n// src/TableBody.js","/* eslint react/display-name: 0 */\nimport React from 'react';\nimport Const from './Const';\nimport classSet from 'classnames';\n\nexport default {\n renderReactSortCaret(order) {\n const orderClass = classSet('order', {\n 'dropup': order === Const.SORT_ASC\n });\n return (\n \n \n \n );\n },\n\n getScrollBarWidth() {\n const inner = document.createElement('p');\n inner.style.width = '100%';\n inner.style.height = '200px';\n\n const outer = document.createElement('div');\n outer.style.position = 'absolute';\n outer.style.top = '0px';\n outer.style.left = '0px';\n outer.style.visibility = 'hidden';\n outer.style.width = '200px';\n outer.style.height = '150px';\n outer.style.overflow = 'hidden';\n outer.appendChild(inner);\n\n document.body.appendChild(outer);\n const w1 = inner.getBoundingClientRect().width;\n outer.style.overflow = 'scroll';\n let w2 = inner.getBoundingClientRect().width;\n\n if (w1 === w2) w2 = outer.clientWidth;\n\n document.body.removeChild(outer);\n\n return (w1 - w2);\n },\n\n canUseDOM() {\n return typeof window !== 'undefined' && typeof window.document !== 'undefined';\n },\n\n renderColGroup(columns, selectRow, expandColumnOptions = {}) {\n let selectRowHeader = null;\n let expandRowHeader = null;\n const isSelectRowDefined = selectRow.mode === Const.ROW_SELECT_SINGLE ||\n selectRow.mode === Const.ROW_SELECT_MULTI;\n if (isSelectRowDefined) {\n const style = {\n width: selectRow.columnWidth || '30px',\n minWidth: selectRow.columnWidth || '30px'\n };\n if (!selectRow.hideSelectColumn) {\n selectRowHeader = ();\n }\n }\n if (expandColumnOptions.expandColumnVisible) {\n const style = {\n width: expandColumnOptions.columnWidth || 30,\n minWidth: expandColumnOptions.columnWidth || 30\n };\n expandRowHeader = ();\n }\n const theader = columns.map(function(column, i) {\n const style = {\n display: column.hidden ? 'none' : null\n };\n if (column.width) {\n const width = !isNaN(column.width) ? column.width + 'px' : column.width;\n style.width = width;\n /** add min-wdth to fix user assign column width\n not eq offsetWidth in large column table **/\n style.minWidth = width;\n }\n return ();\n });\n\n return (\n \n { expandColumnOptions.expandColumnVisible &&\n expandColumnOptions.expandColumnBeforeSelectColumn &&\n expandRowHeader }\n { selectRowHeader }\n { expandColumnOptions.expandColumnVisible &&\n !expandColumnOptions.expandColumnBeforeSelectColumn &&\n expandRowHeader }\n { theader }\n \n );\n }\n};\n\n\n\n// WEBPACK FOOTER //\n// src/util.js","/* eslint no-nested-ternary: 0 */\nimport classSet from 'classnames';\nimport React, { Component, PropTypes } from 'react';\n\nclass TableRow extends Component {\n\n constructor(props) {\n super(props);\n this.clickNum = 0;\n }\n\n rowClick = e => {\n const rowIndex = this.props.index + 1;\n const cellIndex = e.target.cellIndex;\n if (this.props.onRowClick) this.props.onRowClick(rowIndex, cellIndex);\n const { selectRow, unselectableRow, isSelected, onSelectRow, onExpandRow } = this.props;\n if (selectRow) {\n if (selectRow.clickToSelect && !unselectableRow) {\n onSelectRow(rowIndex, !isSelected, e);\n } else if (selectRow.clickToSelectAndEditCell && !unselectableRow) {\n this.clickNum++;\n /** if clickToSelectAndEditCell is enabled,\n * there should be a delay to prevent a selection changed when\n * user dblick to edit cell on same row but different cell\n **/\n setTimeout(() => {\n if (this.clickNum === 1) {\n onSelectRow(rowIndex, !isSelected, e);\n onExpandRow(rowIndex, cellIndex);\n }\n this.clickNum = 0;\n }, 200);\n } else {\n this.expandRow(rowIndex, cellIndex);\n }\n }\n }\n\n expandRow = (rowIndex, cellIndex) => {\n this.clickNum++;\n setTimeout(() => {\n if (this.clickNum === 1) {\n this.props.onExpandRow(rowIndex, cellIndex);\n }\n this.clickNum = 0;\n }, 200);\n }\n\n rowDoubleClick = e => {\n if (e.target.tagName !== 'INPUT' &&\n e.target.tagName !== 'SELECT' &&\n e.target.tagName !== 'TEXTAREA') {\n if (this.props.onRowDoubleClick) {\n this.props.onRowDoubleClick(this.props.index);\n }\n }\n }\n\n rowMouseOut = e => {\n const rowIndex = this.props.index;\n if (this.props.onRowMouseOut) {\n this.props.onRowMouseOut(rowIndex, e);\n }\n }\n\n rowMouseOver = e => {\n const rowIndex = this.props.index;\n if (this.props.onRowMouseOver) {\n this.props.onRowMouseOver(rowIndex, e);\n }\n }\n\n render() {\n this.clickNum = 0;\n const { selectRow, row, isSelected } = this.props;\n let backgroundColor = null;\n\n if (selectRow) {\n backgroundColor = typeof selectRow.bgColor === 'function' ?\n selectRow.bgColor(row, isSelected) : ( isSelected ? selectRow.bgColor : null);\n }\n\n const trCss = {\n style: { backgroundColor },\n className: classSet(\n isSelected ? selectRow.className : null,\n this.props.className\n )\n };\n\n return (\n { this.props.children }
\n );\n }\n}\nTableRow.propTypes = {\n index: PropTypes.number,\n row: PropTypes.any,\n isSelected: PropTypes.bool,\n enableCellEdit: PropTypes.bool,\n onRowClick: PropTypes.func,\n onRowDoubleClick: PropTypes.func,\n onSelectRow: PropTypes.func,\n onExpandRow: PropTypes.func,\n onRowMouseOut: PropTypes.func,\n onRowMouseOver: PropTypes.func,\n unselectableRow: PropTypes.bool\n};\nTableRow.defaultProps = {\n onRowClick: undefined,\n onRowDoubleClick: undefined\n};\nexport default TableRow;\n\n\n\n// WEBPACK FOOTER //\n// src/TableRow.js","import React, { Component, PropTypes } from 'react';\nimport ReactDOM from 'react-dom';\nimport Const from './Const';\n\nclass TableColumn extends Component {\n\n constructor(props) {\n super(props);\n }\n /* eslint no-unused-vars: [0, { \"args\": \"after-used\" }] */\n shouldComponentUpdate(nextProps, nextState) {\n const { children } = this.props;\n let shouldUpdated = this.props.width !== nextProps.width\n || this.props.className !== nextProps.className\n || this.props.hidden !== nextProps.hidden\n || this.props.dataAlign !== nextProps.dataAlign\n || this.props.isFocus !== nextProps.isFocus\n || typeof children !== typeof nextProps.children\n || ('' + this.props.onEdit).toString() !== ('' + nextProps.onEdit).toString();\n\n if (shouldUpdated) {\n return shouldUpdated;\n }\n\n if (typeof children === 'object' && children !== null && children.props !== null) {\n if (children.props.type === 'checkbox' || children.props.type === 'radio') {\n shouldUpdated = shouldUpdated ||\n children.props.type !== nextProps.children.props.type ||\n children.props.checked !== nextProps.children.props.checked ||\n children.props.disabled !== nextProps.children.props.disabled;\n } else {\n shouldUpdated = true;\n }\n } else {\n shouldUpdated = shouldUpdated || children !== nextProps.children;\n }\n\n if (shouldUpdated) {\n return shouldUpdated;\n }\n\n if (!(this.props.cellEdit && nextProps.cellEdit)) {\n return false;\n } else {\n return shouldUpdated\n || this.props.cellEdit.mode !== nextProps.cellEdit.mode;\n }\n }\n\n componentDidMount() {\n const dom = ReactDOM.findDOMNode(this);\n if (this.props.isFocus) {\n dom.focus();\n } else {\n dom.blur();\n }\n }\n\n componentDidUpdate() {\n const dom = ReactDOM.findDOMNode(this);\n if (this.props.isFocus) {\n dom.focus();\n } else {\n dom.blur();\n }\n }\n\n handleCellEdit = e => {\n if (this.props.cellEdit.mode === Const.CELL_EDIT_DBCLICK) {\n if (document.selection && document.selection.empty) {\n document.selection.empty();\n } else if (window.getSelection) {\n const sel = window.getSelection();\n sel.removeAllRanges();\n }\n }\n this.props.onEdit(\n this.props.rIndex + 1, e.currentTarget.cellIndex, e);\n if (this.props.cellEdit.mode !== Const.CELL_EDIT_DBCLICK) {\n this.props.onClick(this.props.rIndex + 1, e.currentTarget.cellIndex, e);\n }\n }\n\n handleCellClick = e => {\n const { onClick, rIndex } = this.props;\n if (onClick) {\n onClick(rIndex + 1, e.currentTarget.cellIndex, e);\n }\n }\n\n handleKeyDown = e => {\n if (this.props.keyBoardNav) {\n this.props.onKeyDown(e);\n }\n }\n\n render() {\n const {\n children,\n columnTitle,\n dataAlign,\n hidden,\n cellEdit,\n attrs,\n style,\n isFocus,\n keyBoardNav,\n tabIndex,\n customNavStyle,\n row\n } = this.props;\n\n let { className } = this.props;\n\n let tdStyle = {\n textAlign: dataAlign,\n display: hidden ? 'none' : null,\n ...style\n };\n\n const opts = {};\n\n if (cellEdit) {\n if (cellEdit.mode === Const.CELL_EDIT_CLICK) {\n opts.onClick = this.handleCellEdit;\n } else if (cellEdit.mode === Const.CELL_EDIT_DBCLICK) {\n opts.onDoubleClick = this.handleCellEdit;\n } else {\n opts.onClick = this.handleCellClick;\n }\n }\n\n if (keyBoardNav && isFocus) {\n opts.onKeyDown = this.handleKeyDown;\n }\n\n if (isFocus) {\n if (customNavStyle) {\n const cusmtStyle = typeof customNavStyle === 'function' ?\n customNavStyle(children, row) : customNavStyle;\n tdStyle = {\n ...tdStyle,\n ...cusmtStyle\n };\n } else {\n className = `${className} default-focus-cell`;\n }\n }\n return (\n \n { typeof children === 'boolean' ? children.toString() : children }\n | \n );\n }\n}\nTableColumn.propTypes = {\n rIndex: PropTypes.number,\n dataAlign: PropTypes.string,\n hidden: PropTypes.bool,\n className: PropTypes.string,\n columnTitle: PropTypes.string,\n children: PropTypes.node,\n onClick: PropTypes.func,\n attrs: PropTypes.object,\n style: PropTypes.object,\n isFocus: PropTypes.bool,\n onKeyDown: PropTypes.func,\n tabIndex: PropTypes.string,\n keyBoardNav: PropTypes.oneOfType([ PropTypes.bool, PropTypes.object ]),\n customNavStyle: PropTypes.oneOfType([ PropTypes.func, PropTypes.object ]),\n row: PropTypes.any /* only used on custom styling for navigation */\n};\n\nTableColumn.defaultProps = {\n dataAlign: 'left',\n hidden: false,\n className: '',\n isFocus: false,\n keyBoardNav: false\n};\nexport default TableColumn;\n\n\n\n// WEBPACK FOOTER //\n// src/TableColumn.js","import React, { Component, PropTypes } from 'react';\nimport ReactDOM from 'react-dom';\nimport editor from './Editor';\nimport { notice } from './Notification.js';\nimport classSet from 'classnames';\n\nclass TableEditColumn extends Component {\n constructor(props) {\n super(props);\n this.timeouteClear = 0;\n const { fieldValue, row, className } = this.props;\n this.state = {\n shakeEditor: false,\n className: typeof className === 'function' ? className(fieldValue, row) : className\n };\n }\n\n handleKeyPress = e => {\n if (e.keyCode === 13) {\n // Pressed ENTER\n const value = e.currentTarget.type === 'checkbox' ?\n this._getCheckBoxValue(e) : e.currentTarget.value;\n\n if (!this.validator(value)) {\n return;\n }\n this.props.completeEdit(value, this.props.rowIndex, this.props.colIndex);\n } else if (e.keyCode === 27) {\n this.props.completeEdit(\n null, this.props.rowIndex, this.props.colIndex);\n } else if (e.keyCode === 9) {\n this.props.onTab(this.props.rowIndex + 1, this.props.colIndex + 1, 'tab', e);\n e.preventDefault();\n } else if (e.type === 'click' && !this.props.blurToSave) { // textarea click save button\n const value = e.target.parentElement.firstChild.value;\n if (!this.validator(value)) {\n return;\n }\n this.props.completeEdit(\n value, this.props.rowIndex, this.props.colIndex);\n }\n }\n\n handleBlur = e => {\n e.stopPropagation();\n if (this.props.blurToSave) {\n const value = e.currentTarget.type === 'checkbox' ?\n this._getCheckBoxValue(e) : e.currentTarget.value;\n if (!this.validator(value)) {\n return;\n }\n this.props.completeEdit(\n value, this.props.rowIndex, this.props.colIndex);\n }\n }\n\n handleCustomUpdate = value => {\n if (!this.validator(value)) {\n return;\n }\n this.props.completeEdit(value, this.props.rowIndex, this.props.colIndex);\n }\n\n // modified by iuculanop\n // BEGIN\n validator(value) {\n const ts = this;\n let valid = true;\n if (ts.props.editable.validator) {\n const input = ts.refs.inputRef;\n const checkVal = ts.props.editable.validator(value, this.props.row);\n const responseType = typeof checkVal;\n if (responseType !== 'object' && checkVal !== true) {\n valid = false;\n this.notifyToastr('error', checkVal, '');\n } else if (responseType === 'object' && checkVal.isValid !== true) {\n valid = false;\n this.notifyToastr(checkVal.notification.type,\n checkVal.notification.msg,\n checkVal.notification.title);\n }\n if (!valid) {\n // animate input\n ts.clearTimeout();\n const { invalidColumnClassName, row } = this.props;\n const className = typeof invalidColumnClassName === 'function' ?\n invalidColumnClassName(value, row) :\n invalidColumnClassName;\n ts.setState({ shakeEditor: true, className });\n ts.timeouteClear = setTimeout(() => {\n ts.setState({ shakeEditor: false });\n }, 300);\n input.focus();\n return valid;\n }\n }\n return valid;\n }\n // END\n\n notifyToastr = (type, message, title) => {\n let toastr = true;\n const { beforeShowError } = this.props;\n if (beforeShowError) {\n toastr = beforeShowError(type, message, title);\n }\n if (toastr) {\n notice(type, message, title);\n }\n }\n\n clearTimeout() {\n if (this.timeouteClear !== 0) {\n clearTimeout(this.timeouteClear);\n this.timeouteClear = 0;\n }\n }\n\n componentDidMount() {\n this.refs.inputRef.focus();\n const dom = ReactDOM.findDOMNode(this);\n if (this.props.isFocus) {\n dom.focus();\n } else {\n dom.blur();\n }\n }\n\n componentDidUpdate() {\n const dom = ReactDOM.findDOMNode(this);\n if (this.props.isFocus) {\n dom.focus();\n } else {\n dom.blur();\n }\n }\n\n componentWillUnmount() {\n this.clearTimeout();\n }\n\n handleClick = e => {\n if (e.target.tagName !== 'TD') {\n e.stopPropagation();\n }\n }\n\n render() {\n const {\n editable,\n format,\n customEditor,\n isFocus,\n customStyleWithNav,\n row\n } = this.props;\n const { shakeEditor } = this.state;\n const attr = {\n ref: 'inputRef',\n onKeyDown: this.handleKeyPress,\n onBlur: this.handleBlur\n };\n let style = { position: 'relative' };\n let { fieldValue } = this.props;\n let { className } = this.state;\n // put placeholder if exist\n editable.placeholder && (attr.placeholder = editable.placeholder);\n\n const editorClass = classSet({ 'animated': shakeEditor, 'shake': shakeEditor });\n let cellEditor;\n if (customEditor) {\n const customEditorProps = {\n row,\n ...attr,\n defaultValue: fieldValue || '',\n ...customEditor.customEditorParameters\n };\n cellEditor = customEditor.getElement(this.handleCustomUpdate, customEditorProps);\n } else {\n fieldValue = fieldValue === 0 ? '0' : fieldValue;\n cellEditor = editor(editable, attr, format, editorClass, fieldValue || '');\n }\n\n if (isFocus) {\n if (customStyleWithNav) {\n const customStyle = typeof customStyleWithNav === 'function' ?\n customStyleWithNav(fieldValue, row) : customStyleWithNav;\n style = {\n ...style,\n ...customStyle\n };\n } else {\n className = `${className} default-focus-cell`;\n }\n }\n\n return (\n \n { cellEditor }\n | \n );\n }\n\n _getCheckBoxValue(e) {\n let value = '';\n const values = e.currentTarget.value.split(':');\n value = e.currentTarget.checked ? values[0] : values[1];\n return value;\n }\n}\n\nTableEditColumn.propTypes = {\n completeEdit: PropTypes.func,\n rowIndex: PropTypes.number,\n colIndex: PropTypes.number,\n blurToSave: PropTypes.bool,\n editable: PropTypes.oneOfType([ PropTypes.bool, PropTypes.object ]),\n format: PropTypes.oneOfType([ PropTypes.bool, PropTypes.func ]),\n row: PropTypes.any,\n fieldValue: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.bool,\n PropTypes.number,\n PropTypes.array,\n PropTypes.object\n ]),\n className: PropTypes.any,\n beforeShowError: PropTypes.func,\n isFocus: PropTypes.bool,\n customStyleWithNav: PropTypes.oneOfType([ PropTypes.func, PropTypes.object ])\n};\n\n\nexport default TableEditColumn;\n\n\n\n// WEBPACK FOOTER //\n// src/TableEditColumn.js","import React from 'react';\n\nconst editor = function(editable, attr, format, editorClass, defaultValue, ignoreEditable) {\n if (editable === true ||\n (editable === false && ignoreEditable) ||\n typeof editable === 'string') { // simple declare\n const type = editable ? 'text' : editable;\n return (\n \n );\n } else if (!editable) {\n const type = editable ? 'text' : editable;\n return (\n \n );\n } else if (editable && (editable.type === undefined ||\n editable.type === null ||\n editable.type.trim() === '')) {\n const type = editable ? 'text' : editable;\n return (\n \n );\n } else if (editable.type) {// standard declare\n // put style if exist\n editable.style && (attr.style = editable.style);\n // put class if exist\n attr.className = (editorClass || '') +\n ' form-control editor edit-' +\n editable.type +\n (editable.className ? (' ' + editable.className) : '');\n\n if (editable.type === 'select') {// process select input\n let options = [];\n const values = editable.options.values;\n if (Array.isArray(values)) {// only can use arrray data for options\n let rowValue;\n options = values.map((d, i) => {\n rowValue = format ? format(d) : d;\n return (\n \n );\n });\n }\n return (\n \n );\n } else if (editable.type === 'textarea') {// process textarea input\n // put other if exist\n editable.cols && (attr.cols = editable.cols);\n editable.rows && (attr.rows = editable.rows);\n let saveBtn;\n const keyUpHandler = attr.onKeyDown;\n if (keyUpHandler) {\n attr.onKeyDown = function(e) {\n if (e.keyCode !== 13) { // not Pressed ENTER\n keyUpHandler(e);\n }\n };\n saveBtn = (\n \n );\n }\n return (\n \n \n { saveBtn }\n
\n );\n } else if (editable.type === 'checkbox') {\n let values = 'true:false';\n if (editable.options && editable.options.values) {\n // values = editable.options.values.split(':');\n values = editable.options.values;\n }\n attr.className = attr.className.replace('form-control', '');\n attr.className += ' checkbox pull-right';\n\n const checked = defaultValue &&\n defaultValue.toString() === values.split(':')[0] ? true : false;\n\n return (\n \n );\n } else if (editable.type === 'datetime') {\n return (\n \n );\n } else {// process other input type. as password,url,email...\n return (\n \n );\n }\n }\n // default return for other case of editable\n return (\n \n );\n};\n\nexport default editor;\n\n\n\n// WEBPACK FOOTER //\n// src/Editor.js","import Alert from 'react-s-alert';\n\nconst notice = (type, msg, title) => {\n const titleHTML = title ? `${ title }
` : '';\n\n const bodyHTML = `\n ${ titleHTML }\n ${ msg }\n `;\n\n Alert.error(bodyHTML, {\n position: 'top-right',\n timeout: 3500,\n html: true\n });\n};\n\nexport { notice };\n\n\n\n// WEBPACK FOOTER //\n// src/Notification.js","module.exports = require('./dist/SAlert');\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-s-alert/index.js\n// module id = 15\n// module chunks = 0","(function (global, factory) {\n if (typeof define === \"function\" && define.amd) {\n define(['exports', 'react', './SAlertContent', 'prop-types', './s-alert-parts/s-alert-store', './s-alert-parts/s-alert-tools', './s-alert-parts/s-alert-data-prep'], factory);\n } else if (typeof exports !== \"undefined\") {\n factory(exports, require('react'), require('./SAlertContent'), require('prop-types'), require('./s-alert-parts/s-alert-store'), require('./s-alert-parts/s-alert-tools'), require('./s-alert-parts/s-alert-data-prep'));\n } else {\n var mod = {\n exports: {}\n };\n factory(mod.exports, global.react, global.SAlertContent, global.propTypes, global.sAlertStore, global.sAlertTools, global.sAlertDataPrep);\n global.SAlert = mod.exports;\n }\n})(this, function (exports, _react, _SAlertContent, _propTypes, _sAlertStore, _sAlertTools, _sAlertDataPrep) {\n 'use strict';\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n\n var _react2 = _interopRequireDefault(_react);\n\n var _SAlertContent2 = _interopRequireDefault(_SAlertContent);\n\n var _propTypes2 = _interopRequireDefault(_propTypes);\n\n var _sAlertStore2 = _interopRequireDefault(_sAlertStore);\n\n var _sAlertTools2 = _interopRequireDefault(_sAlertTools);\n\n var _sAlertDataPrep2 = _interopRequireDefault(_sAlertDataPrep);\n\n function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n }\n\n function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n }();\n\n function _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n }\n\n function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n }\n\n var insertFunc = function insertFunc(msg, data, condition) {\n var id = _sAlertTools2.default.randomId();\n _sAlertStore2.default.dispatch({\n type: 'INSERT',\n data: Object.assign({}, data, {\n id: id,\n condition: condition,\n message: msg\n })\n });\n return id;\n };\n\n var SAlert = function (_React$Component) {\n _inherits(SAlert, _React$Component);\n\n function SAlert(props) {\n _classCallCheck(this, SAlert);\n\n var _this = _possibleConstructorReturn(this, (SAlert.__proto__ || Object.getPrototypeOf(SAlert)).call(this, props));\n\n _this.state = {\n dataRight: [],\n dataLeft: [],\n dataTop: [],\n dataBottom: []\n };\n return _this;\n }\n\n _createClass(SAlert, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n var _this2 = this;\n\n var storeStateLeft = void 0;\n var storeStateRight = void 0;\n var storeStateTop = void 0;\n var storeStateBottom = void 0;\n\n var addToStoreRight = function addToStoreRight() {\n var length = void 0;\n storeStateRight = (0, _sAlertDataPrep2.default)('right') || [];\n length = storeStateRight.length;\n if (_this2.props.stack && _this2.props.stack.limit && length > _this2.props.stack.limit) {\n var id = storeStateRight[0].id;\n _sAlertStore2.default.dispatch({ type: 'REMOVE', data: { id: id } });\n storeStateRight = (0, _sAlertDataPrep2.default)('right') || [];\n }\n _this2.setState({ dataRight: storeStateRight });\n };\n this.unsubStoreRight = _sAlertStore2.default.subscribe(addToStoreRight);\n\n var addToStoreLeft = function addToStoreLeft() {\n var length = void 0;\n storeStateLeft = (0, _sAlertDataPrep2.default)('left') || [];\n length = storeStateLeft.length;\n if (_this2.props.stack && _this2.props.stack.limit && length > _this2.props.stack.limit) {\n var id = storeStateLeft[0].id;\n _sAlertStore2.default.dispatch({ type: 'REMOVE', data: { id: id } });\n storeStateLeft = (0, _sAlertDataPrep2.default)('left') || [];\n }\n _this2.setState({ dataLeft: storeStateLeft });\n };\n this.unsubStoreLeft = _sAlertStore2.default.subscribe(addToStoreLeft);\n\n var addToStoreTop = function addToStoreTop() {\n var length = void 0;\n storeStateTop = (0, _sAlertDataPrep2.default)('full-top') || [];\n length = storeStateTop.length;\n if (_this2.props.stack && _this2.props.stack.limit && length > _this2.props.stack.limit) {\n var id = storeStateTop[0].id;\n _sAlertStore2.default.dispatch({ type: 'REMOVE', data: { id: id } });\n storeStateTop = (0, _sAlertDataPrep2.default)('full-top') || [];\n }\n _this2.setState({ dataTop: storeStateTop });\n };\n this.unsubStoreTop = _sAlertStore2.default.subscribe(addToStoreTop);\n\n var addToStoreBottom = function addToStoreBottom() {\n var length = void 0;\n storeStateBottom = (0, _sAlertDataPrep2.default)('full-bottom') || [];\n length = storeStateBottom.length;\n if (_this2.props.stack && _this2.props.stack.limit && length > _this2.props.stack.limit) {\n var id = storeStateBottom[0].id;\n _sAlertStore2.default.dispatch({ type: 'REMOVE', data: { id: id } });\n storeStateBottom = (0, _sAlertDataPrep2.default)('full-bottom') || [];\n }\n _this2.setState({ dataBottom: storeStateBottom });\n };\n this.unsubStoreBottom = _sAlertStore2.default.subscribe(addToStoreBottom);\n\n // set up global config from global SAlert props\n // only stuff needed for getAlertData\n var globalConfig = {\n contentTemplate: this.props.contentTemplate,\n offset: this.props.offset,\n message: this.props.message,\n stack: this.props.stack,\n html: this.props.html,\n customFields: this.props.customFields,\n position: this.props.position || 'top-right'\n };\n _sAlertTools2.default.setGlobalConfig(globalConfig);\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.unsubStoreTop();\n this.unsubStoreBottom();\n this.unsubStoreLeft();\n this.unsubStoreRight();\n }\n }, {\n key: 'render',\n value: function render() {\n var _this3 = this;\n\n var mapFunc = function mapFunc(alert, index) {\n var customKey = 'alert-key-' + alert.id + '-' + alert.position;\n var id = alert.id;\n var condition = _sAlertTools2.default.returnFirstDefined(alert.condition, 'info');\n var message = _sAlertTools2.default.returnFirstDefined(alert.message, _this3.props.message, '');\n var position = _sAlertTools2.default.returnFirstDefined(alert.position, _this3.props.position, 'top-right');\n var offset = _sAlertTools2.default.returnFirstDefined(alert.offset, _this3.props.offset, 0);\n var effect = _sAlertTools2.default.returnFirstDefined(alert.effect, _this3.props.effect);\n var boxPosition = alert.boxPosition;\n var beep = _sAlertTools2.default.returnFirstDefined(alert.beep, _this3.props.beep, false);\n var timeout = _sAlertTools2.default.returnFirstDefined(alert.timeout, _this3.props.timeout, 5000);\n var html = _sAlertTools2.default.returnFirstDefined(alert.html, _this3.props.html);\n var onClose = _sAlertTools2.default.returnFirstDefined(alert.onClose, _this3.props.onClose);\n var onShow = _sAlertTools2.default.returnFirstDefined(alert.onShow, _this3.props.onShow);\n var customFields = _sAlertTools2.default.returnFirstDefined(alert.customFields, _this3.props.customFields);\n var contentTemplate = _this3.props.contentTemplate;\n return _react2.default.createElement(_SAlertContent2.default, {\n key: customKey,\n id: id,\n customFields: customFields,\n condition: condition,\n message: message,\n position: position,\n effect: effect,\n boxPosition: boxPosition,\n beep: beep,\n timeout: timeout,\n html: html,\n onClose: onClose,\n onShow: onShow,\n contentTemplate: contentTemplate });\n };\n var sAlertElemsRight = this.state.dataRight.map(mapFunc);\n var sAlertElemsLeft = this.state.dataLeft.map(mapFunc);\n var sAlertElemsTop = this.state.dataTop.map(mapFunc);\n var sAlertElemsBottom = this.state.dataBottom.map(mapFunc);\n return _react2.default.createElement(\n 'div',\n { className: 's-alert-wrapper' },\n sAlertElemsRight,\n sAlertElemsLeft,\n sAlertElemsTop,\n sAlertElemsBottom\n );\n }\n }], [{\n key: 'info',\n value: function info(msg, data) {\n return insertFunc(msg, data, 'info');\n }\n }, {\n key: 'error',\n value: function error(msg, data) {\n return insertFunc(msg, data, 'error');\n }\n }, {\n key: 'warning',\n value: function warning(msg, data) {\n return insertFunc(msg, data, 'warning');\n }\n }, {\n key: 'success',\n value: function success(msg, data) {\n return insertFunc(msg, data, 'success');\n }\n }, {\n key: 'close',\n value: function close(id) {\n _sAlertStore2.default.dispatch({ type: 'REMOVE', data: { id: id } });\n }\n }, {\n key: 'closeAll',\n value: function closeAll() {\n _sAlertStore2.default.dispatch({ type: 'REMOVEALL' });\n }\n }]);\n\n return SAlert;\n }(_react2.default.Component);\n\n SAlert.propTypes = {\n message: _propTypes2.default.string,\n position: _propTypes2.default.string,\n offset: _propTypes2.default.number,\n stack: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.object]),\n effect: _propTypes2.default.string,\n beep: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.object, _propTypes2.default.bool]),\n timeout: _propTypes2.default.oneOfType([_propTypes2.default.oneOf(['none']), _propTypes2.default.number]),\n html: _propTypes2.default.bool,\n onClose: _propTypes2.default.func,\n onShow: _propTypes2.default.func,\n customFields: _propTypes2.default.object,\n contentTemplate: _propTypes2.default.func\n };\n\n exports.default = SAlert;\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-s-alert/dist/SAlert.js\n// module id = 16\n// module chunks = 0","(function (global, factory) {\n if (typeof define === \"function\" && define.amd) {\n define(['exports', 'react', 'react-dom', 'prop-types', './s-alert-parts/s-alert-tools', './s-alert-parts/s-alert-store', './SAlertContentTmpl'], factory);\n } else if (typeof exports !== \"undefined\") {\n factory(exports, require('react'), require('react-dom'), require('prop-types'), require('./s-alert-parts/s-alert-tools'), require('./s-alert-parts/s-alert-store'), require('./SAlertContentTmpl'));\n } else {\n var mod = {\n exports: {}\n };\n factory(mod.exports, global.react, global.reactDom, global.propTypes, global.sAlertTools, global.sAlertStore, global.SAlertContentTmpl);\n global.SAlertContent = mod.exports;\n }\n})(this, function (exports, _react, _reactDom, _propTypes, _sAlertTools, _sAlertStore, _SAlertContentTmpl) {\n 'use strict';\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n\n var _react2 = _interopRequireDefault(_react);\n\n var _reactDom2 = _interopRequireDefault(_reactDom);\n\n var _propTypes2 = _interopRequireDefault(_propTypes);\n\n var _sAlertTools2 = _interopRequireDefault(_sAlertTools);\n\n var _sAlertStore2 = _interopRequireDefault(_sAlertStore);\n\n var _SAlertContentTmpl2 = _interopRequireDefault(_SAlertContentTmpl);\n\n function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n }\n\n var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n\n function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n }();\n\n function _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n }\n\n function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n }\n\n var SAlertContent = function (_React$Component) {\n _inherits(SAlertContent, _React$Component);\n\n function SAlertContent(props) {\n _classCallCheck(this, SAlertContent);\n\n return _possibleConstructorReturn(this, (SAlertContent.__proto__ || Object.getPrototypeOf(SAlertContent)).call(this, props));\n }\n\n _createClass(SAlertContent, [{\n key: 'handleCloseAlert',\n value: function handleCloseAlert() {\n var closingTimeout = void 0;\n var alertId = this.props.id;\n var currentAlertElem = _reactDom2.default.findDOMNode(this);\n var animationClose = function animationClose() {\n currentAlertElem.style.display = 'none';\n _sAlertStore2.default.dispatch({ type: 'REMOVE', data: { id: alertId } });\n clearTimeout(closingTimeout);\n };\n if (document.hidden || document.webkitHidden || !currentAlertElem.classList.contains('s-alert-is-effect')) {\n _sAlertStore2.default.dispatch({ type: 'REMOVE', data: { id: alertId } });\n } else {\n currentAlertElem.classList.remove('s-alert-show');\n closingTimeout = setTimeout(function () {\n currentAlertElem.classList.add('s-alert-hide');\n }, 100);\n currentAlertElem.removeEventListener('webkitAnimationEnd', animationClose, false);\n currentAlertElem.removeEventListener('animationend', animationClose, false);\n currentAlertElem.addEventListener('webkitAnimationEnd', animationClose, false);\n currentAlertElem.addEventListener('animationend', animationClose, false);\n }\n // stop audio when closing\n this.alertAudio && this.alertAudio.load();\n }\n }, {\n key: 'componentWillMount',\n value: function componentWillMount() {\n var beep = this.props.beep;\n var condition = this.props.condition;\n if (beep && typeof beep === 'string') {\n this.alertAudio = new Audio(beep);\n this.alertAudio.load();\n this.alertAudio.play();\n }\n if (beep && (typeof beep === 'undefined' ? 'undefined' : _typeof(beep)) === 'object' && condition === 'info') {\n this.alertAudio = new Audio(beep.info);\n this.alertAudio.load();\n this.alertAudio.play();\n }\n if (beep && (typeof beep === 'undefined' ? 'undefined' : _typeof(beep)) === 'object' && condition === 'error') {\n this.alertAudio = new Audio(beep.error);\n this.alertAudio.load();\n this.alertAudio.play();\n }\n if (beep && (typeof beep === 'undefined' ? 'undefined' : _typeof(beep)) === 'object' && condition === 'success') {\n this.alertAudio = new Audio(beep.success);\n this.alertAudio.load();\n this.alertAudio.play();\n }\n if (beep && (typeof beep === 'undefined' ? 'undefined' : _typeof(beep)) === 'object' && condition === 'warning') {\n this.alertAudio = new Audio(beep.warning);\n this.alertAudio.load();\n this.alertAudio.play();\n }\n }\n }, {\n key: 'componentDidMount',\n value: function componentDidMount() {\n var _this2 = this;\n\n if (typeof this.props.timeout === 'number') {\n this.closeTimer = setTimeout(function () {\n _this2.handleCloseAlert();\n }, this.props.timeout);\n }\n if (this.props.onShow) {\n this.props.onShow();\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.closeTimer) {\n clearTimeout(this.closeTimer);\n }\n if (this.props.onClose) {\n this.props.onClose();\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var classNames = 's-alert-box s-alert-' + this.props.condition + ' s-alert-' + this.props.position + ' ' + (this.props.effect ? 's-alert-is-effect s-alert-effect-' + this.props.effect : '') + ' s-alert-show';\n var message = this.props.html ? _react2.default.createElement('span', { dangerouslySetInnerHTML: { __html: this.props.message } }) : this.props.message;\n var styles = this.props.boxPosition ? _sAlertTools2.default.styleToObj(this.props.boxPosition) : {};\n var id = this.props.id;\n var handleClose = this.handleCloseAlert.bind(this);\n var contentTemplate = this.props.contentTemplate || _SAlertContentTmpl2.default;\n var customFields = this.props.customFields || {};\n\n return _react2.default.createElement(contentTemplate, { classNames: classNames, id: id, styles: styles, message: message, handleClose: handleClose, customFields: customFields });\n }\n }]);\n\n return SAlertContent;\n }(_react2.default.Component);\n\n SAlertContent.propTypes = {\n condition: _propTypes2.default.string.isRequired,\n message: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.node]),\n position: _propTypes2.default.string.isRequired,\n boxPosition: _propTypes2.default.string,\n id: _propTypes2.default.string.isRequired,\n effect: _propTypes2.default.string,\n beep: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.object, _propTypes2.default.bool]),\n timeout: _propTypes2.default.oneOfType([_propTypes2.default.oneOf(['none']), _propTypes2.default.number]),\n html: _propTypes2.default.bool,\n onClose: _propTypes2.default.func,\n onShow: _propTypes2.default.func,\n customFields: _propTypes2.default.object,\n contentTemplate: _propTypes2.default.func\n };\n\n exports.default = SAlertContent;\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-s-alert/dist/SAlertContent.js\n// module id = 17\n// module chunks = 0","/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\nvar factory = require('./factory');\n\nvar REACT_ELEMENT_TYPE = (typeof Symbol === 'function' &&\n Symbol.for &&\n Symbol.for('react.element')) ||\n 0xeac7;\n\nfunction isValidElement(object) {\n return typeof object === 'object' &&\n object !== null &&\n object.$$typeof === REACT_ELEMENT_TYPE;\n}\n\nmodule.exports = factory(isValidElement);\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/prop-types/index.js\n// module id = 18\n// module chunks = 0","/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n'use strict';\n\nvar emptyFunction = require('fbjs/lib/emptyFunction');\nvar invariant = require('fbjs/lib/invariant');\nvar warning = require('fbjs/lib/warning');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar checkPropTypes = require('./checkPropTypes');\n\nmodule.exports = function (isValidElement) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<>';\n\n var ReactPropTypes;\n\n if (process.env.NODE_ENV !== 'production') {\n // Keep in sync with production version below\n ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker\n };\n } else {\n var productionTypeChecker = function () {\n invariant(false, 'React.PropTypes type checking code is stripped in production.');\n };\n productionTypeChecker.isRequired = productionTypeChecker;\n var getProductionTypeChecker = function () {\n return productionTypeChecker;\n };\n // Keep in sync with development version above\n ReactPropTypes = {\n array: productionTypeChecker,\n bool: productionTypeChecker,\n func: productionTypeChecker,\n number: productionTypeChecker,\n object: productionTypeChecker,\n string: productionTypeChecker,\n symbol: productionTypeChecker,\n\n any: productionTypeChecker,\n arrayOf: getProductionTypeChecker,\n element: productionTypeChecker,\n instanceOf: getProductionTypeChecker,\n node: productionTypeChecker,\n objectOf: getProductionTypeChecker,\n oneOf: getProductionTypeChecker,\n oneOfType: getProductionTypeChecker,\n shape: getProductionTypeChecker\n };\n }\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message) {\n this.message = message;\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n if (process.env.NODE_ENV !== 'production') {\n if (secret !== ReactPropTypesSecret && typeof console !== 'undefined') {\n var cacheKey = componentName + ':' + propName;\n if (!manualPropTypeCallCache[cacheKey]) {\n process.env.NODE_ENV !== 'production' ? warning(false, 'You are manually calling a React.PropTypes validation ' + 'function for the `%s` prop on `%s`. This is deprecated ' + 'and will not work in production with the next major version. ' + 'You may be seeing this warning due to a third-party PropTypes ' + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.', propFullName, componentName) : void 0;\n manualPropTypeCallCache[cacheKey] = true;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunction.thatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0;\n return emptyFunction.thatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (propValue.hasOwnProperty(key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunction.thatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {\n return null;\n }\n }\n\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (!checker) {\n continue;\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/prop-types/factory.js\n// module id = 19\n// module chunks = 0","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// (webpack)/~/node-libs-browser/~/process/browser.js\n// module id = 20\n// module chunks = 0","\"use strict\";\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\nfunction makeEmptyFunction(arg) {\n return function () {\n return arg;\n };\n}\n\n/**\n * This function accepts and discards inputs; it has no side effects. This is\n * primarily useful idiomatically for overridable function endpoints which\n * always need to be callable, since JS lacks a null-call idiom ala Cocoa.\n */\nvar emptyFunction = function emptyFunction() {};\n\nemptyFunction.thatReturns = makeEmptyFunction;\nemptyFunction.thatReturnsFalse = makeEmptyFunction(false);\nemptyFunction.thatReturnsTrue = makeEmptyFunction(true);\nemptyFunction.thatReturnsNull = makeEmptyFunction(null);\nemptyFunction.thatReturnsThis = function () {\n return this;\n};\nemptyFunction.thatReturnsArgument = function (arg) {\n return arg;\n};\n\nmodule.exports = emptyFunction;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/prop-types/~/fbjs/lib/emptyFunction.js\n// module id = 21\n// module chunks = 0","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar validateFormat = function validateFormat(format) {};\n\nif (process.env.NODE_ENV !== 'production') {\n validateFormat = function validateFormat(format) {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n };\n}\n\nfunction invariant(condition, format, a, b, c, d, e, f) {\n validateFormat(format);\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(format.replace(/%s/g, function () {\n return args[argIndex++];\n }));\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n}\n\nmodule.exports = invariant;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/prop-types/~/fbjs/lib/invariant.js\n// module id = 22\n// module chunks = 0","/**\n * Copyright 2014-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar emptyFunction = require('./emptyFunction');\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar warning = emptyFunction;\n\nif (process.env.NODE_ENV !== 'production') {\n (function () {\n var printWarning = function printWarning(format) {\n for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n var argIndex = 0;\n var message = 'Warning: ' + format.replace(/%s/g, function () {\n return args[argIndex++];\n });\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n\n warning = function warning(condition, format) {\n if (format === undefined) {\n throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');\n }\n\n if (format.indexOf('Failed Composite propType: ') === 0) {\n return; // Ignore CompositeComponent proptype check.\n }\n\n if (!condition) {\n for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {\n args[_key2 - 2] = arguments[_key2];\n }\n\n printWarning.apply(undefined, [format].concat(args));\n }\n };\n })();\n}\n\nmodule.exports = warning;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/prop-types/~/fbjs/lib/warning.js\n// module id = 23\n// module chunks = 0","/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/prop-types/lib/ReactPropTypesSecret.js\n// module id = 24\n// module chunks = 0","/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n'use strict';\n\nvar invariant = require('fbjs/lib/invariant');\nvar warning = require('fbjs/lib/warning');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nvar loggedTypeFailures = {};\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (typeSpecs.hasOwnProperty(typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n invariant(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', componentName || 'React class', location, typeSpecName);\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n process.env.NODE_ENV !== 'production' ? warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error) : void 0;\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n process.env.NODE_ENV !== 'production' ? warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '') : void 0;\n }\n }\n }\n }\n}\n\nmodule.exports = checkPropTypes;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/prop-types/checkPropTypes.js\n// module id = 25\n// module chunks = 0","(function (global, factory) {\n if (typeof define === \"function\" && define.amd) {\n define(['exports'], factory);\n } else if (typeof exports !== \"undefined\") {\n factory(exports);\n } else {\n var mod = {\n exports: {}\n };\n factory(mod.exports);\n global.sAlertTools = mod.exports;\n }\n})(this, function (exports) {\n 'use strict';\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n\n var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n\n var actualGlobalConfig = void 0;\n\n var sAlertTools = {\n randomId: function randomId() {\n return Math.random().toString(36).split('.')[1];\n },\n returnFirstDefined: function returnFirstDefined() {\n var value = void 0;\n var i = void 0;\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n for (i = 0; i < args.length; i++) {\n if (typeof args[i] !== 'undefined') {\n value = args[i];\n break;\n }\n }\n return value;\n },\n styleToObj: function styleToObj(input) {\n var result = {},\n i = void 0,\n entry = void 0,\n attributes = input && input.split(';').filter(Boolean);\n\n for (i = 0; i < attributes.length; i++) {\n entry = attributes[i].split(':');\n result[entry.splice(0, 1)[0].trim()] = entry.join(':').trim();\n }\n return result;\n },\n setGlobalConfig: function setGlobalConfig(config) {\n if ((typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object') {\n actualGlobalConfig = config;\n }\n },\n getGlobalConfig: function getGlobalConfig() {\n return actualGlobalConfig;\n }\n };\n\n exports.default = sAlertTools;\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-s-alert/dist/s-alert-parts/s-alert-tools.js\n// module id = 26\n// module chunks = 0","(function (global, factory) {\n if (typeof define === \"function\" && define.amd) {\n define(['exports'], factory);\n } else if (typeof exports !== \"undefined\") {\n factory(exports);\n } else {\n var mod = {\n exports: {}\n };\n factory(mod.exports);\n global.sAlertStore = mod.exports;\n }\n})(this, function (exports) {\n 'use strict';\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n\n function _toConsumableArray(arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n } else {\n return Array.from(arr);\n }\n }\n\n // custom simple store based on a awesome Redux library https://github.com/rackt/redux\n\n var createSAlertStore = function createSAlertStore(reducer) {\n var state = void 0;\n var listeners = [];\n var getState = function getState() {\n return state;\n };\n var dispatch = function dispatch(action) {\n state = reducer(state, action);\n listeners.forEach(function (listener) {\n return listener();\n });\n };\n var subscribe = function subscribe(listener) {\n listeners.push(listener);\n return function () {\n listeners = listeners.filter(function (l) {\n return l !== listener;\n });\n };\n };\n dispatch({});\n return {\n getState: getState, dispatch: dispatch, subscribe: subscribe\n };\n };\n\n var insert = function insert(state, action) {\n return [].concat(_toConsumableArray(state), [action.data]);\n };\n\n var remove = function remove(state, action) {\n var elemToRemoveArray = state.slice().filter(function (item) {\n return item.id === action.data.id;\n });\n if (Array.isArray(elemToRemoveArray)) {\n var elemToRemoveIndex = state.indexOf(elemToRemoveArray[0]);\n return [].concat(_toConsumableArray(state.slice(0, elemToRemoveIndex)), _toConsumableArray(state.slice(elemToRemoveIndex + 1)));\n }\n return state;\n };\n\n var alertsReducer = function alertsReducer() {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var action = arguments[1];\n\n switch (action.type) {\n case 'INSERT':\n return insert(state, action);\n case 'REMOVE':\n return remove(state, action);\n case 'REMOVEALL':\n return [];\n default:\n return state;\n }\n };\n\n var sAlertStore = createSAlertStore(alertsReducer);\n\n exports.default = sAlertStore;\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-s-alert/dist/s-alert-parts/s-alert-store.js\n// module id = 27\n// module chunks = 0","(function (global, factory) {\n if (typeof define === \"function\" && define.amd) {\n define(['exports', 'react', 'prop-types'], factory);\n } else if (typeof exports !== \"undefined\") {\n factory(exports, require('react'), require('prop-types'));\n } else {\n var mod = {\n exports: {}\n };\n factory(mod.exports, global.react, global.propTypes);\n global.SAlertContentTmpl = mod.exports;\n }\n})(this, function (exports, _react, _propTypes) {\n 'use strict';\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n\n var _react2 = _interopRequireDefault(_react);\n\n var _propTypes2 = _interopRequireDefault(_propTypes);\n\n function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n }\n\n function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n }();\n\n function _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n }\n\n function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n }\n\n var SAlertContentTmpl = function (_React$Component) {\n _inherits(SAlertContentTmpl, _React$Component);\n\n function SAlertContentTmpl(props) {\n _classCallCheck(this, SAlertContentTmpl);\n\n return _possibleConstructorReturn(this, (SAlertContentTmpl.__proto__ || Object.getPrototypeOf(SAlertContentTmpl)).call(this, props));\n }\n\n _createClass(SAlertContentTmpl, [{\n key: 'render',\n value: function render() {\n return _react2.default.createElement(\n 'div',\n { className: this.props.classNames, id: this.props.id, style: this.props.styles },\n _react2.default.createElement(\n 'div',\n { className: 's-alert-box-inner' },\n this.props.message\n ),\n _react2.default.createElement('span', { className: 's-alert-close', onClick: this.props.handleClose })\n );\n }\n }]);\n\n return SAlertContentTmpl;\n }(_react2.default.Component);\n\n SAlertContentTmpl.propTypes = {\n id: _propTypes2.default.string.isRequired,\n classNames: _propTypes2.default.string.isRequired,\n styles: _propTypes2.default.object.isRequired,\n message: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.object]).isRequired,\n handleClose: _propTypes2.default.func.isRequired,\n customFields: _propTypes2.default.object\n };\n\n exports.default = SAlertContentTmpl;\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-s-alert/dist/SAlertContentTmpl.js\n// module id = 28\n// module chunks = 0","(function (global, factory) {\n if (typeof define === \"function\" && define.amd) {\n define(['exports', 'react', 'react-dom', '../SAlertContent', './s-alert-store', './s-alert-tools'], factory);\n } else if (typeof exports !== \"undefined\") {\n factory(exports, require('react'), require('react-dom'), require('../SAlertContent'), require('./s-alert-store'), require('./s-alert-tools'));\n } else {\n var mod = {\n exports: {}\n };\n factory(mod.exports, global.react, global.reactDom, global.SAlertContent, global.sAlertStore, global.sAlertTools);\n global.sAlertDataPrep = mod.exports;\n }\n})(this, function (exports, _react, _reactDom, _SAlertContent, _sAlertStore, _sAlertTools) {\n 'use strict';\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n\n var _react2 = _interopRequireDefault(_react);\n\n var _reactDom2 = _interopRequireDefault(_reactDom);\n\n var _SAlertContent2 = _interopRequireDefault(_SAlertContent);\n\n var _sAlertStore2 = _interopRequireDefault(_sAlertStore);\n\n var _sAlertTools2 = _interopRequireDefault(_sAlertTools);\n\n function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n }\n\n var getAlertData = function getAlertData(sAlertPosition) {\n var positionTop = 0;\n var positionBottom = 0;\n var padding = 0;\n var alerts = {};\n var style = void 0;\n var docElement = void 0;\n var sAlertBoxHeight = void 0;\n var positionTypeTop = void 0;\n var positionTypeBottom = void 0;\n var checkFirst = function checkFirst(type, objId) {\n var collectionOfType = sAlertCollection.filter(function (obj) {\n return obj.position === type || sAlertGlobalConfig.position === type;\n });\n return collectionOfType && collectionOfType[0].id === objId;\n };\n var positionFunc = function positionFunc(position, positionType, alert, docElement, sAlertBoxHeight, reactComponent) {\n padding = aStack.spacing || parseInt(getComputedStyle(_reactDom2.default.findDOMNode(reactComponent))[positionType]);\n if (checkFirst(aPosition, alert.id) && aOffset) {\n position = 0;\n position = position + parseInt(aOffset);\n }\n if (checkFirst(aPosition, alert.id) && aStack.spacing) {\n position = position;\n } else {\n position = position + parseInt(padding);\n }\n style = positionType + ': ' + position + 'px;';\n position = position + sAlertBoxHeight;\n return position;\n };\n\n var sAlertGlobalConfig = _sAlertTools2.default.getGlobalConfig();\n var aStack = void 0;\n var aContentTemplate = void 0;\n var aOffset = void 0;\n var aMessage = void 0;\n var aHtml = void 0;\n var aCustomFields = void 0;\n var aPosition = void 0;\n\n var query = {};\n if (sAlertPosition === 'left') {\n query = function query(item) {\n return item.position === 'top-left' || item.position === 'bottom-left' || !item.position && (sAlertGlobalConfig.position === 'top-left' || sAlertGlobalConfig.position === 'bottom-left');\n };\n }\n if (sAlertPosition === 'right') {\n query = function query(item) {\n return item.position === 'top-right' || item.position === 'bottom-right' || !item.position && (sAlertGlobalConfig.position === 'top-right' || sAlertGlobalConfig.position === 'bottom-right');\n };\n }\n if (sAlertPosition === 'full-top') {\n query = function query(item) {\n return item.position === 'top' || !item.position && sAlertGlobalConfig.position === 'top';\n };\n }\n if (sAlertPosition === 'full-bottom') {\n query = function query(item) {\n return item.position === 'bottom' || !item.position && sAlertGlobalConfig.position === 'bottom';\n };\n }\n\n var currentState = _sAlertStore2.default.getState();\n var sAlertCollection = currentState.slice().filter(query);\n\n return sAlertCollection.map(function (alert) {\n aStack = sAlertGlobalConfig.stack;\n aContentTemplate = sAlertGlobalConfig.contentTemplate;\n aOffset = _sAlertTools2.default.returnFirstDefined(alert.offset, sAlertGlobalConfig.offset);\n aMessage = _sAlertTools2.default.returnFirstDefined(alert.message, sAlertGlobalConfig.message);\n aHtml = _sAlertTools2.default.returnFirstDefined(alert.html, sAlertGlobalConfig.html);\n aCustomFields = _sAlertTools2.default.returnFirstDefined(alert.customFields, sAlertGlobalConfig.customFields);\n aPosition = _sAlertTools2.default.returnFirstDefined(alert.position, sAlertGlobalConfig.position);\n positionTypeTop = aPosition && /top/g.test(aPosition);\n positionTypeBottom = aPosition && /bottom/g.test(aPosition);\n if (aStack) {\n // checking alert box height - needed to calculate position\n docElement = document.createElement('div');\n docElement.classList.add('s-alert-box-height');\n\n // mock element, needed for positions calculations\n var reactElement = _react2.default.createElement(_SAlertContent2.default, {\n key: _sAlertTools2.default.randomId(),\n id: _sAlertTools2.default.randomId(),\n condition: alert.condition,\n message: aMessage,\n position: aPosition,\n effect: alert.effect,\n boxPosition: alert.boxPosition,\n beep: false,\n timeout: 'none',\n html: aHtml,\n contentTemplate: aContentTemplate,\n customFields: aCustomFields\n });\n var reactComponent = _reactDom2.default.render(reactElement, docElement);\n\n document.body.appendChild(docElement);\n sAlertBoxHeight = parseInt(getComputedStyle(_reactDom2.default.findDOMNode(reactComponent))['height']);\n if (positionTypeTop) {\n positionTop = positionFunc(positionTop, 'top', alert, docElement, sAlertBoxHeight, reactComponent);\n }\n if (positionTypeBottom) {\n positionBottom = positionFunc(positionBottom, 'bottom', alert, docElement, sAlertBoxHeight, reactComponent);\n }\n var sAlertComputedStyle = getComputedStyle(_reactDom2.default.findDOMNode(reactComponent));\n if (sAlertPosition === 'left') {\n style = style + 'left: ' + (aStack.spacing || parseInt(sAlertComputedStyle.left)) + 'px;';\n }\n if (sAlertPosition === 'right') {\n style = style + 'right: ' + (aStack.spacing || parseInt(sAlertComputedStyle.right)) + 'px;';\n }\n alerts = Object.assign({}, alert, { boxPosition: style });\n _reactDom2.default.unmountComponentAtNode(docElement);\n docElement.parentNode.removeChild(docElement);\n } else if (aOffset && positionTypeTop) {\n alerts = Object.assign({}, alert, { boxPosition: 'top: ' + parseInt(aOffset) + 'px;' });\n } else if (aOffset && positionTypeBottom) {\n alerts = Object.assign({}, alert, { boxPosition: 'bottom: ' + parseInt(aOffset) + 'px;' });\n } else {\n alerts = alert;\n }\n return alerts;\n });\n };\n\n exports.default = getAlertData;\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-s-alert/dist/s-alert-parts/s-alert-data-prep.js\n// module id = 29\n// module chunks = 0","/* eslint max-len: 0 */\nimport React, { Component } from 'react';\nimport classSet from 'classnames';\n\nclass ExpandComponent extends Component {\n\n render() {\n const trCss = {\n style: {\n backgroundColor: this.props.bgColor\n },\n className: classSet(\n this.props.isSelected ? this.props.selectRow.className : null,\n this.props.className\n )\n };\n return (\n \n \n { this.props.children }\n | \n
\n );\n }\n}\n\nexport default ExpandComponent;\n\n\n\n// WEBPACK FOOTER //\n// src/ExpandComponent.js","import React, { Component, PropTypes } from 'react';\nimport classSet from 'classnames';\nimport PageButton from './PageButton.js';\nimport SizePerPageDropDown from './SizePerPageDropDown';\nimport Const from '../Const';\n\nclass PaginationList extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n open: this.props.open\n };\n }\n\n componentWillReceiveProps() {\n this.setState({ open: false });\n }\n\n changePage = page => {\n const {\n pageStartIndex,\n prePage,\n currPage,\n nextPage,\n lastPage,\n firstPage,\n sizePerPage\n } = this.props;\n\n if (page === prePage) {\n page = (currPage - 1) < pageStartIndex ? pageStartIndex : currPage - 1;\n } else if (page === nextPage) {\n page = (currPage + 1) > this.lastPage ? this.lastPage : currPage + 1;\n } else if (page === lastPage) {\n page = this.lastPage;\n } else if (page === firstPage) {\n page = pageStartIndex;\n } else {\n page = parseInt(page, 10);\n }\n\n if (page !== currPage) {\n this.props.changePage(page, sizePerPage);\n }\n }\n\n changeSizePerPage = pageNum => {\n const selectSize = typeof pageNum === 'string' ? parseInt(pageNum, 10) : pageNum;\n let { currPage } = this.props;\n if (selectSize !== this.props.sizePerPage) {\n this.totalPages = Math.ceil(this.props.dataSize / selectSize);\n this.lastPage = this.props.pageStartIndex + this.totalPages - 1;\n if (currPage > this.lastPage) currPage = this.lastPage;\n this.props.changePage(currPage, selectSize);\n if (this.props.onSizePerPageList) {\n this.props.onSizePerPageList(selectSize);\n }\n } else {\n this.setState({ open: false });\n }\n }\n\n toggleDropDown = () => {\n this.setState({\n open: !this.state.open\n });\n }\n\n render() {\n const {\n currPage,\n dataSize,\n sizePerPage,\n sizePerPageList,\n paginationShowsTotal,\n pageStartIndex,\n paginationPanel,\n hidePageListOnlyOnePage\n } = this.props;\n this.totalPages = Math.ceil(dataSize / sizePerPage);\n this.lastPage = this.props.pageStartIndex + this.totalPages - 1;\n const pageBtns = this.makePage(typeof paginationPanel === 'function');\n const dropdown = this.makeDropDown();\n\n const offset = Math.abs(Const.PAGE_START_INDEX - pageStartIndex);\n let start = ((currPage - pageStartIndex) * sizePerPage);\n start = dataSize === 0 ? 0 : start + 1;\n let to = Math.min((sizePerPage * (currPage + offset) - 1), dataSize);\n if (to >= dataSize) to--;\n let total = paginationShowsTotal ? \n Showing rows { start } to { to + 1 } of { dataSize }\n : null;\n\n if (typeof paginationShowsTotal === 'function') {\n total = paginationShowsTotal(start, to + 1, dataSize);\n }\n\n const content = paginationPanel && paginationPanel({\n currPage,\n sizePerPage,\n sizePerPageList,\n pageStartIndex,\n changePage: this.changePage,\n toggleDropDown: this.toggleDropDown,\n changeSizePerPage: this.changeSizePerPage,\n components: {\n totalText: total,\n sizePerPageDropdown: dropdown,\n pageList: pageBtns\n }\n });\n\n const hidePageList = hidePageListOnlyOnePage && this.totalPages === 1 ? 'none' : 'block';\n return (\n \n {\n content ||\n
\n
\n { total }{ sizePerPageList.length > 1 ? dropdown : null }\n
\n
\n { pageBtns }\n
\n
\n }\n
\n );\n }\n\n makeDropDown() {\n let dropdown;\n let dropdownProps;\n let sizePerPageText = '';\n const {\n sizePerPageDropDown,\n hideSizePerPage,\n sizePerPage,\n sizePerPageList\n } = this.props;\n if (sizePerPageDropDown) {\n dropdown = sizePerPageDropDown({\n open: this.state.open,\n hideSizePerPage,\n currSizePerPage: sizePerPage,\n sizePerPageList,\n toggleDropDown: this.toggleDropDown,\n changeSizePerPage: this.changeSizePerPage\n });\n if (dropdown.type.name === SizePerPageDropDown.name) {\n dropdownProps = dropdown.props;\n } else {\n return dropdown;\n }\n }\n\n if (dropdownProps || !dropdown) {\n const sizePerPageOptions = sizePerPageList.map((_sizePerPage) => {\n const pageText = _sizePerPage.text || _sizePerPage;\n const pageNum = _sizePerPage.value || _sizePerPage;\n if (sizePerPage === pageNum) sizePerPageText = pageText;\n return (\n \n {\n e.preventDefault();\n this.changeSizePerPage(pageNum);\n } }>{ pageText }\n \n );\n });\n dropdown = (\n \n );\n }\n return dropdown;\n }\n\n makePage(isCustomPagingPanel = false) {\n const pages = this.getPages();\n const isStart = (page, { currPage, pageStartIndex, firstPage, prePage }) =>\n (currPage === pageStartIndex && (page === firstPage || page === prePage));\n const isEnd = (page, { currPage, nextPage, lastPage }) =>\n (currPage === this.lastPage && (page === nextPage || page === lastPage ));\n const pageBtns = pages\n .filter(function(page) {\n if (this.props.alwaysShowAllBtns) {\n return true;\n }\n return (isStart(page, this.props) || isEnd(page, this.props)) ?\n false :\n true;\n }, this)\n .map(function(page) {\n const isActive = page === this.props.currPage;\n const isDisabled = (isStart(page, this.props) || isEnd(page, this.props)) ?\n true :\n false;\n let title = page + '';\n\n if (page === this.props.nextPage) {\n title = this.props.nextPageTitle;\n } else if (page === this.props.prePage) {\n title = this.props.prePageTitle;\n } else if (page === this.props.firstPage) {\n title = this.props.firstPageTitle;\n } else if (page === this.props.lastPage) {\n title = this.props.lastPageTitle;\n }\n\n return (\n \n { page }\n \n );\n }, this);\n const classname = classSet(\n isCustomPagingPanel ? null : 'react-bootstrap-table-page-btns-ul',\n 'pagination'\n );\n return (\n \n );\n }\n\n getLastPage() {\n return this.lastPage;\n }\n\n getPages() {\n let pages;\n let endPage = this.totalPages;\n if (endPage <= 0) return [];\n let startPage = Math.max(\n this.props.currPage - Math.floor(this.props.paginationSize / 2),\n this.props.pageStartIndex\n );\n endPage = startPage + this.props.paginationSize - 1;\n\n if (endPage > this.lastPage) {\n endPage = this.lastPage;\n startPage = endPage - this.props.paginationSize + 1;\n }\n\n if (startPage !== this.props.pageStartIndex\n && this.totalPages > this.props.paginationSize\n && this.props.withFirstAndLast) {\n pages = [ this.props.firstPage, this.props.prePage ];\n } else if (this.totalPages > 1 || this.props.alwaysShowAllBtns) {\n pages = [ this.props.prePage ];\n } else {\n pages = [];\n }\n\n for (let i = startPage; i <= endPage; i++) {\n if (i >= this.props.pageStartIndex) pages.push(i);\n }\n\n if (endPage <= this.lastPage) {\n pages.push(this.props.nextPage);\n }\n if (endPage !== this.totalPages && this.props.withFirstAndLast) {\n pages.push(this.props.lastPage);\n }\n\n return pages;\n }\n}\nPaginationList.propTypes = {\n currPage: PropTypes.number,\n sizePerPage: PropTypes.number,\n dataSize: PropTypes.number,\n changePage: PropTypes.func,\n sizePerPageList: PropTypes.array,\n paginationShowsTotal: PropTypes.oneOfType([ PropTypes.bool, PropTypes.func ]),\n paginationSize: PropTypes.number,\n onSizePerPageList: PropTypes.func,\n prePage: PropTypes.string,\n pageStartIndex: PropTypes.number,\n hideSizePerPage: PropTypes.bool,\n alwaysShowAllBtns: PropTypes.bool,\n withFirstAndLast: PropTypes.bool,\n sizePerPageDropDown: PropTypes.func,\n paginationPanel: PropTypes.func,\n prePageTitle: PropTypes.string,\n nextPageTitle: PropTypes.string,\n firstPageTitle: PropTypes.string,\n lastPageTitle: PropTypes.string,\n hidePageListOnlyOnePage: PropTypes.bool\n};\n\nPaginationList.defaultProps = {\n sizePerPage: Const.SIZE_PER_PAGE,\n pageStartIndex: Const.PAGE_START_INDEX\n};\n\nexport default PaginationList;\n\n\n\n// WEBPACK FOOTER //\n// src/pagination/PaginationList.js","import React, { Component, PropTypes } from 'react';\nimport classSet from 'classnames';\n\nclass PageButton extends Component {\n\n constructor(props) {\n super(props);\n }\n\n pageBtnClick = e => {\n e.preventDefault();\n this.props.changePage(e.currentTarget.textContent);\n }\n\n render() {\n const classes = classSet({\n 'active': this.props.active,\n 'disabled': this.props.disable,\n 'hidden': this.props.hidden,\n 'page-item': true\n });\n return (\n \n { this.props.children }\n \n );\n }\n}\nPageButton.propTypes = {\n title: PropTypes.string,\n changePage: PropTypes.func,\n active: PropTypes.bool,\n disable: PropTypes.bool,\n hidden: PropTypes.bool,\n children: PropTypes.node\n};\n\nexport default PageButton;\n\n\n\n// WEBPACK FOOTER //\n// src/pagination/PageButton.js","import React, { Component, PropTypes } from 'react';\n\nclass SizePerPageDropDown extends Component {\n render() {\n const {\n open,\n hidden,\n onClick,\n options,\n className,\n variation,\n btnContextual,\n currSizePerPage\n } = this.props;\n\n const openClass = open ? 'open' : '';\n const dropDownStyle = { visibility: hidden ? 'hidden' : 'visible' };\n\n return (\n \n \n \n \n );\n }\n}\n\nSizePerPageDropDown.propTypes = {\n open: PropTypes.bool,\n hidden: PropTypes.bool,\n btnContextual: PropTypes.string,\n currSizePerPage: PropTypes.string,\n options: PropTypes.array,\n variation: PropTypes.oneOf([ 'dropdown', 'dropup' ]),\n className: PropTypes.string,\n onClick: PropTypes.func\n};\nSizePerPageDropDown.defaultProps = {\n open: false,\n hidden: false,\n btnContextual: 'btn-default',\n variation: 'dropdown',\n className: ''\n};\n\n\nexport default SizePerPageDropDown;\n\n\n\n// WEBPACK FOOTER //\n// src/pagination/SizePerPageDropDown.js","/* eslint no-console: 0 */\n\nimport React, { Component, PropTypes } from 'react';\nimport Modal from 'react-modal';\n// import classSet from 'classnames';\nimport Const from '../Const';\n// import editor from '../Editor';\nimport { notice } from '../Notification.js';\nimport InsertModal from './InsertModal';\nimport InsertButton from './InsertButton';\nimport DeleteButton from './DeleteButton';\nimport ExportCSVButton from './ExportCSVButton';\nimport ShowSelectedOnlyButton from './ShowSelectedOnlyButton';\nimport SearchField from './SearchField';\nimport ClearSearchButton from './ClearSearchButton';\n\nclass ToolBar extends Component {\n\n static modalSeq = 0;\n\n constructor(props) {\n super(props);\n this.timeouteClear = 0;\n this.modalClassName;\n this.state = {\n isInsertModalOpen: false,\n validateState: null,\n shakeEditor: false,\n showSelected: false\n };\n }\n\n componentWillMount() {\n const delay = this.props.searchDelayTime ? this.props.searchDelayTime : 0;\n this.debounceCallback = this.handleDebounce(() => {\n const { seachInput } = this.refs;\n seachInput && this.props.onSearch(seachInput.getValue());\n },\n delay\n );\n }\n\n componentWillReceiveProps(nextProps) {\n if (nextProps.reset) {\n this.setSearchInput('');\n }\n }\n\n componentWillUnmount() {\n this.clearTimeout();\n }\n\n setSearchInput(text) {\n const { seachInput } = this.refs;\n if (seachInput && seachInput.value !== text) {\n seachInput.value = text;\n }\n }\n\n clearTimeout() {\n if (this.timeouteClear) {\n clearTimeout(this.timeouteClear);\n this.timeouteClear = 0;\n }\n }\n\n displayCommonMessage = () => {\n notice(\n 'error',\n 'Form validate errors, please checking!',\n '');\n }\n\n validateNewRow(newRow) {\n const validateState = {};\n let isValid = true;\n let tempMsg;\n let responseType;\n\n this.props.columns.forEach(column => {\n if (column.isKey && column.keyValidator) { // key validator for checking exist key\n tempMsg = this.props.isValidKey(newRow[column.field]);\n if (tempMsg) {\n this.displayCommonMessage();\n isValid = false;\n validateState[column.field] = tempMsg;\n }\n } else if (column.editable && column.editable.validator) { // process validate\n tempMsg = column.editable.validator(newRow[column.field]);\n responseType = typeof tempMsg;\n if (responseType !== 'object' && tempMsg !== true) {\n this.displayCommonMessage();\n isValid = false;\n validateState[column.field] = tempMsg;\n } else if (responseType === 'object' && tempMsg.isValid !== true) {\n notice(\n tempMsg.notification.type,\n tempMsg.notification.msg,\n tempMsg.notification.title);\n isValid = false;\n validateState[column.field] = tempMsg.notification.msg;\n }\n }\n });\n\n if (isValid) {\n return true;\n } else {\n this.clearTimeout();\n // show error in form and shake it\n this.setState({ validateState, shakeEditor: true });\n this.timeouteClear = setTimeout(() => {\n this.setState({ shakeEditor: false });\n }, 300);\n return null;\n }\n }\n\n handleSaveBtnClick = (newRow) => {\n if (!this.validateNewRow(newRow)) { // validation fail\n return;\n }\n const msg = this.props.onAddRow(newRow);\n if (msg) {\n notice('error', msg, '');\n this.clearTimeout();\n // shake form and hack prevent modal hide\n this.setState({\n shakeEditor: true,\n validateState: 'this is hack for prevent bootstrap modal hide'\n });\n // clear animate class\n this.timeouteClear = setTimeout(() => {\n this.setState({ shakeEditor: false });\n }, 300);\n } else {\n // reset state and hide modal hide\n this.setState({\n validateState: null,\n shakeEditor: false,\n isInsertModalOpen: false\n });\n }\n }\n\n handleModalClose = () => {\n this.setState({ isInsertModalOpen: false });\n }\n\n handleModalOpen = () => {\n this.setState({ isInsertModalOpen: true });\n }\n\n handleShowOnlyToggle = () => {\n this.setState({\n showSelected: !this.state.showSelected\n });\n this.props.onShowOnlySelected();\n }\n\n handleDropRowBtnClick = () => {\n this.props.onDropRow();\n }\n\n handleCloseBtn() {\n this.refs.warning.style.display = 'none';\n }\n\n handleDebounce = (func, wait, immediate) => {\n let timeout;\n\n return () => {\n const later = () => {\n timeout = null;\n\n if (!immediate) {\n func.apply(this, arguments);\n }\n };\n\n const callNow = immediate && !timeout;\n\n clearTimeout(timeout);\n\n timeout = setTimeout(later, wait || 0);\n\n if (callNow) {\n func.appy(this, arguments);\n }\n };\n }\n\n handleKeyUp = (event) => {\n event.persist();\n this.debounceCallback(event);\n }\n\n handleExportCSV = () => {\n this.props.onExportCSV();\n }\n\n handleClearBtnClick = () => {\n const { seachInput } = this.refs;\n seachInput && seachInput.setValue('');\n this.props.onSearch('');\n }\n\n render() {\n this.modalClassName = 'bs-table-modal-sm' + ToolBar.modalSeq++;\n let toolbar = null;\n let btnGroup = null;\n let insertBtn = null;\n let deleteBtn = null;\n let exportCSVBtn = null;\n let showSelectedOnlyBtn = null;\n\n if (this.props.enableInsert) {\n if (this.props.insertBtn) {\n insertBtn = this.renderCustomBtn(this.props.insertBtn,\n [ this.handleModalOpen ], InsertButton.name, 'onClick', this.handleModalOpen);\n } else {\n insertBtn = (\n \n );\n }\n }\n\n if (this.props.enableDelete) {\n if (this.props.deleteBtn) {\n deleteBtn = this.renderCustomBtn(this.props.deleteBtn,\n [ this.handleDropRowBtnClick ], DeleteButton.name, 'onClick', this.handleDropRowBtnClick);\n } else {\n deleteBtn = (\n \n );\n }\n }\n\n if (this.props.enableShowOnlySelected) {\n if (this.props.showSelectedOnlyBtn) {\n showSelectedOnlyBtn = this.renderCustomBtn(this.props.showSelectedOnlyBtn,\n [ this.handleShowOnlyToggle, this.state.showSelected ], ShowSelectedOnlyButton.name,\n 'onClick', this.handleShowOnlyToggle);\n } else {\n showSelectedOnlyBtn = (\n \n );\n }\n }\n\n if (this.props.enableExportCSV) {\n if (this.props.exportCSVBtn) {\n exportCSVBtn = this.renderCustomBtn(this.props.exportCSVBtn,\n [ this.handleExportCSV ], ExportCSVButton.name, 'onClick', this.handleExportCSV);\n } else {\n exportCSVBtn = (\n \n );\n }\n }\n\n if (this.props.btnGroup) {\n btnGroup = this.props.btnGroup({\n exportCSVBtn,\n insertBtn,\n deleteBtn,\n showSelectedOnlyBtn\n });\n } else {\n btnGroup = (\n \n { exportCSVBtn }\n { insertBtn }\n { deleteBtn }\n { showSelectedOnlyBtn }\n
\n );\n }\n\n const [ searchPanel, searchField, clearBtn ] = this.renderSearchPanel();\n const modal = this.props.enableInsert ? this.renderInsertRowModal() : null;\n\n if (this.props.toolBar) {\n toolbar = this.props.toolBar({\n components: {\n exportCSVBtn,\n insertBtn,\n deleteBtn,\n showSelectedOnlyBtn,\n searchPanel,\n btnGroup,\n searchField,\n clearBtn\n },\n event: {\n openInsertModal: this.handleModalOpen,\n closeInsertModal: this.handleModalClose,\n dropRow: this.handleDropRowBtnClick,\n showOnlyToogle: this.handleShowOnlyToggle,\n exportCSV: this.handleExportCSV,\n search: this.props.onSearch\n }\n });\n } else {\n toolbar = (\n \n
\n { this.props.searchPosition === 'left' ? searchPanel : btnGroup }\n
\n
\n { this.props.searchPosition === 'left' ? btnGroup : searchPanel }\n
\n
\n );\n }\n\n return (\n \n { toolbar }\n { modal }\n
\n );\n }\n\n renderSearchPanel() {\n if (this.props.enableSearch) {\n let classNames = 'form-group form-group-sm react-bs-table-search-form';\n let clearBtn = null;\n let searchField = null;\n let searchPanel = null;\n if (this.props.clearSearch) {\n if (this.props.clearSearchBtn) {\n clearBtn = this.renderCustomBtn(this.props.clearSearchBtn,\n [ this.handleClearBtnClick ], ClearSearchButton.name, 'onClick', this.handleClearBtnClick); /* eslint max-len: 0*/\n } else {\n clearBtn = (\n \n );\n }\n classNames += ' input-group input-group-sm';\n }\n\n if (this.props.searchField) {\n searchField = this.props.searchField({\n search: this.handleKeyUp,\n defaultValue: this.props.defaultSearch,\n placeholder: this.props.searchPlaceholder\n });\n if (searchField.type.name === SearchField.name) {\n searchField = React.cloneElement(searchField, {\n ref: 'seachInput',\n onKeyUp: this.handleKeyUp\n });\n } else {\n searchField = React.cloneElement(searchField, {\n ref: 'seachInput'\n });\n }\n } else {\n searchField = (\n \n );\n }\n if (this.props.searchPanel) {\n searchPanel = this.props.searchPanel({\n searchField, clearBtn,\n search: this.props.onSearch,\n defaultValue: this.props.defaultSearch,\n placeholder: this.props.searchPlaceholder,\n clearBtnClick: this.handleClearBtnClick\n });\n } else {\n searchPanel = (\n \n { searchField }\n \n { clearBtn }\n \n
\n );\n }\n return [ searchPanel, searchField, clearBtn ];\n } else {\n return [];\n }\n }\n\n renderInsertRowModal() {\n const validateState = this.state.validateState || {};\n const {\n columns,\n ignoreEditable,\n insertModalHeader,\n insertModalBody,\n insertModalFooter,\n insertModal\n } = this.props;\n\n let modal;\n modal = insertModal && insertModal(\n this.handleModalClose,\n this.handleSaveBtnClick,\n columns,\n validateState,\n ignoreEditable\n );\n\n if (!modal) {\n modal = (\n \n );\n }\n\n return (\n \n { modal }\n \n );\n }\n\n renderCustomBtn(cb, params, componentName, eventName, event) {\n let element = cb.apply(null, params);\n if (element.type.name === componentName && !element.props[eventName]) {\n const props = {};\n props[eventName] = event;\n element = React.cloneElement(element, props);\n }\n return element;\n }\n}\n\nToolBar.propTypes = {\n onAddRow: PropTypes.func,\n onDropRow: PropTypes.func,\n onShowOnlySelected: PropTypes.func,\n enableInsert: PropTypes.bool,\n enableDelete: PropTypes.bool,\n enableSearch: PropTypes.bool,\n enableShowOnlySelected: PropTypes.bool,\n columns: PropTypes.array,\n searchPlaceholder: PropTypes.string,\n exportCSVText: PropTypes.string,\n insertText: PropTypes.string,\n deleteText: PropTypes.string,\n saveText: PropTypes.string,\n closeText: PropTypes.string,\n clearSearch: PropTypes.bool,\n ignoreEditable: PropTypes.bool,\n defaultSearch: PropTypes.string,\n insertModalHeader: PropTypes.func,\n insertModalBody: PropTypes.func,\n insertModalFooter: PropTypes.func,\n insertModal: PropTypes.func,\n insertBtn: PropTypes.func,\n deleteBtn: PropTypes.func,\n showSelectedOnlyBtn: PropTypes.func,\n exportCSVBtn: PropTypes.func,\n clearSearchBtn: PropTypes.func,\n searchField: PropTypes.func,\n searchPanel: PropTypes.func,\n btnGroup: PropTypes.func,\n toolBar: PropTypes.func,\n searchPosition: PropTypes.string,\n reset: PropTypes.bool,\n isValidKey: PropTypes.func\n};\n\nToolBar.defaultProps = {\n reset: false,\n enableInsert: false,\n enableDelete: false,\n enableSearch: false,\n enableShowOnlySelected: false,\n clearSearch: false,\n ignoreEditable: false,\n exportCSVText: Const.EXPORT_CSV_TEXT,\n insertText: Const.INSERT_BTN_TEXT,\n deleteText: Const.DELETE_BTN_TEXT,\n saveText: Const.SAVE_BTN_TEXT,\n closeText: Const.CLOSE_BTN_TEXT\n};\n\nexport default ToolBar;\n\n\n\n// WEBPACK FOOTER //\n// src/toolbar/ToolBar.js","module.exports = require('./components/Modal');\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-modal/lib/index.js\n// module id = 35\n// module chunks = 0","var React = require('react');\nvar ReactDOM = require('react-dom');\nvar ExecutionEnvironment = require('exenv');\nvar ModalPortal = React.createFactory(require('./ModalPortal'));\nvar ariaAppHider = require('../helpers/ariaAppHider');\nvar elementClass = require('element-class');\nvar renderSubtreeIntoContainer = require(\"react-dom\").unstable_renderSubtreeIntoContainer;\nvar Assign = require('lodash.assign');\n\nvar SafeHTMLElement = ExecutionEnvironment.canUseDOM ? window.HTMLElement : {};\nvar AppElement = ExecutionEnvironment.canUseDOM ? document.body : {appendChild: function() {}};\n\nfunction getParentElement(parentSelector) {\n return parentSelector();\n}\n\nvar Modal = React.createClass({\n\n displayName: 'Modal',\n statics: {\n setAppElement: function(element) {\n AppElement = ariaAppHider.setElement(element);\n },\n injectCSS: function() {\n \"production\" !== process.env.NODE_ENV\n && console.warn('React-Modal: injectCSS has been deprecated ' +\n 'and no longer has any effect. It will be removed in a later version');\n }\n },\n\n propTypes: {\n isOpen: React.PropTypes.bool.isRequired,\n style: React.PropTypes.shape({\n content: React.PropTypes.object,\n overlay: React.PropTypes.object\n }),\n portalClassName: React.PropTypes.string,\n appElement: React.PropTypes.instanceOf(SafeHTMLElement),\n onAfterOpen: React.PropTypes.func,\n onRequestClose: React.PropTypes.func,\n closeTimeoutMS: React.PropTypes.number,\n ariaHideApp: React.PropTypes.bool,\n shouldCloseOnOverlayClick: React.PropTypes.bool,\n parentSelector: React.PropTypes.func,\n role: React.PropTypes.string,\n contentLabel: React.PropTypes.string.isRequired\n },\n\n getDefaultProps: function () {\n return {\n isOpen: false,\n portalClassName: 'ReactModalPortal',\n ariaHideApp: true,\n closeTimeoutMS: 0,\n shouldCloseOnOverlayClick: true,\n parentSelector: function () { return document.body; }\n };\n },\n\n componentDidMount: function() {\n this.node = document.createElement('div');\n this.node.className = this.props.portalClassName;\n\n var parent = getParentElement(this.props.parentSelector);\n parent.appendChild(this.node);\n this.renderPortal(this.props);\n },\n\n componentWillReceiveProps: function(newProps) {\n var currentParent = getParentElement(this.props.parentSelector);\n var newParent = getParentElement(newProps.parentSelector);\n\n if(newParent !== currentParent) {\n currentParent.removeChild(this.node);\n newParent.appendChild(this.node);\n }\n\n this.renderPortal(newProps);\n },\n\n componentWillUnmount: function() {\n if (this.props.ariaHideApp) {\n ariaAppHider.show(this.props.appElement);\n }\n\n ReactDOM.unmountComponentAtNode(this.node);\n var parent = getParentElement(this.props.parentSelector);\n parent.removeChild(this.node);\n elementClass(document.body).remove('ReactModal__Body--open');\n },\n\n renderPortal: function(props) {\n if (props.isOpen) {\n elementClass(document.body).add('ReactModal__Body--open');\n } else {\n elementClass(document.body).remove('ReactModal__Body--open');\n }\n\n if (props.ariaHideApp) {\n ariaAppHider.toggle(props.isOpen, props.appElement);\n }\n\n this.portal = renderSubtreeIntoContainer(this, ModalPortal(Assign({}, props, {defaultStyles: Modal.defaultStyles})), this.node);\n },\n\n render: function () {\n return React.DOM.noscript();\n }\n});\n\nModal.defaultStyles = {\n overlay: {\n position : 'fixed',\n top : 0,\n left : 0,\n right : 0,\n bottom : 0,\n backgroundColor : 'rgba(255, 255, 255, 0.75)'\n },\n content: {\n position : 'absolute',\n top : '40px',\n left : '40px',\n right : '40px',\n bottom : '40px',\n border : '1px solid #ccc',\n background : '#fff',\n overflow : 'auto',\n WebkitOverflowScrolling : 'touch',\n borderRadius : '4px',\n outline : 'none',\n padding : '20px'\n }\n}\n\nmodule.exports = Modal\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-modal/lib/components/Modal.js\n// module id = 36\n// module chunks = 0","/*!\n Copyright (c) 2015 Jed Watson.\n Based on code that is Copyright 2013-2015, Facebook, Inc.\n All rights reserved.\n*/\n\n(function () {\n\t'use strict';\n\n\tvar canUseDOM = !!(\n\t\ttypeof window !== 'undefined' &&\n\t\twindow.document &&\n\t\twindow.document.createElement\n\t);\n\n\tvar ExecutionEnvironment = {\n\n\t\tcanUseDOM: canUseDOM,\n\n\t\tcanUseWorkers: typeof Worker !== 'undefined',\n\n\t\tcanUseEventListeners:\n\t\t\tcanUseDOM && !!(window.addEventListener || window.attachEvent),\n\n\t\tcanUseViewport: canUseDOM && !!window.screen\n\n\t};\n\n\tif (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\tdefine(function () {\n\t\t\treturn ExecutionEnvironment;\n\t\t});\n\t} else if (typeof module !== 'undefined' && module.exports) {\n\t\tmodule.exports = ExecutionEnvironment;\n\t} else {\n\t\twindow.ExecutionEnvironment = ExecutionEnvironment;\n\t}\n\n}());\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-modal/~/exenv/index.js\n// module id = 37\n// module chunks = 0","var React = require('react');\nvar div = React.DOM.div;\nvar focusManager = require('../helpers/focusManager');\nvar scopeTab = require('../helpers/scopeTab');\nvar Assign = require('lodash.assign');\n\n// so that our CSS is statically analyzable\nvar CLASS_NAMES = {\n overlay: {\n base: 'ReactModal__Overlay',\n afterOpen: 'ReactModal__Overlay--after-open',\n beforeClose: 'ReactModal__Overlay--before-close'\n },\n content: {\n base: 'ReactModal__Content',\n afterOpen: 'ReactModal__Content--after-open',\n beforeClose: 'ReactModal__Content--before-close'\n }\n};\n\nvar ModalPortal = module.exports = React.createClass({\n\n displayName: 'ModalPortal',\n shouldClose: null,\n\n getDefaultProps: function() {\n return {\n style: {\n overlay: {},\n content: {}\n }\n };\n },\n\n getInitialState: function() {\n return {\n afterOpen: false,\n beforeClose: false\n };\n },\n\n componentDidMount: function() {\n // Focus needs to be set when mounting and already open\n if (this.props.isOpen) {\n this.setFocusAfterRender(true);\n this.open();\n }\n },\n\n componentWillUnmount: function() {\n clearTimeout(this.closeTimer);\n },\n\n componentWillReceiveProps: function(newProps) {\n // Focus only needs to be set once when the modal is being opened\n if (!this.props.isOpen && newProps.isOpen) {\n this.setFocusAfterRender(true);\n this.open();\n } else if (this.props.isOpen && !newProps.isOpen) {\n this.close();\n }\n },\n\n componentDidUpdate: function () {\n if (this.focusAfterRender) {\n this.focusContent();\n this.setFocusAfterRender(false);\n }\n },\n\n setFocusAfterRender: function (focus) {\n this.focusAfterRender = focus;\n },\n\n open: function() {\n if (this.state.afterOpen && this.state.beforeClose) {\n clearTimeout(this.closeTimer);\n this.setState({ beforeClose: false });\n } else {\n focusManager.setupScopedFocus(this.node);\n focusManager.markForFocusLater();\n this.setState({isOpen: true}, function() {\n this.setState({afterOpen: true});\n\n if (this.props.isOpen && this.props.onAfterOpen) {\n this.props.onAfterOpen();\n }\n }.bind(this));\n }\n },\n\n close: function() {\n if (!this.ownerHandlesClose())\n return;\n if (this.props.closeTimeoutMS > 0)\n this.closeWithTimeout();\n else\n this.closeWithoutTimeout();\n },\n\n focusContent: function() {\n // Don't steal focus from inner elements\n if (!this.contentHasFocus()) {\n this.refs.content.focus();\n }\n },\n\n closeWithTimeout: function() {\n this.setState({beforeClose: true}, function() {\n this.closeTimer = setTimeout(this.closeWithoutTimeout, this.props.closeTimeoutMS);\n }.bind(this));\n },\n\n closeWithoutTimeout: function() {\n this.setState({\n beforeClose: false,\n isOpen: false,\n afterOpen: false,\n }, this.afterClose);\n },\n\n afterClose: function() {\n focusManager.returnFocus();\n focusManager.teardownScopedFocus();\n },\n\n handleKeyDown: function(event) {\n if (event.keyCode == 9 /*tab*/) scopeTab(this.refs.content, event);\n if (event.keyCode == 27 /*esc*/) {\n event.preventDefault();\n this.requestClose(event);\n }\n },\n\n handleOverlayMouseDown: function(event) {\n if (this.shouldClose === null) {\n this.shouldClose = true;\n }\n },\n\n handleOverlayMouseUp: function(event) {\n if (this.shouldClose && this.props.shouldCloseOnOverlayClick) {\n if (this.ownerHandlesClose())\n this.requestClose(event);\n else\n this.focusContent();\n }\n this.shouldClose = null;\n },\n\n handleContentMouseDown: function(event) {\n this.shouldClose = false;\n },\n\n handleContentMouseUp: function(event) {\n this.shouldClose = false;\n },\n\n requestClose: function(event) {\n if (this.ownerHandlesClose())\n this.props.onRequestClose(event);\n },\n\n ownerHandlesClose: function() {\n return this.props.onRequestClose;\n },\n\n shouldBeClosed: function() {\n return !this.props.isOpen && !this.state.beforeClose;\n },\n\n contentHasFocus: function() {\n return document.activeElement === this.refs.content || this.refs.content.contains(document.activeElement);\n },\n\n buildClassName: function(which, additional) {\n var className = CLASS_NAMES[which].base;\n if (this.state.afterOpen)\n className += ' '+CLASS_NAMES[which].afterOpen;\n if (this.state.beforeClose)\n className += ' '+CLASS_NAMES[which].beforeClose;\n return additional ? className + ' ' + additional : className;\n },\n\n render: function() {\n var contentStyles = (this.props.className) ? {} : this.props.defaultStyles.content;\n var overlayStyles = (this.props.overlayClassName) ? {} : this.props.defaultStyles.overlay;\n\n return this.shouldBeClosed() ? div() : (\n div({\n ref: \"overlay\",\n className: this.buildClassName('overlay', this.props.overlayClassName),\n style: Assign({}, overlayStyles, this.props.style.overlay || {}),\n onMouseDown: this.handleOverlayMouseDown,\n onMouseUp: this.handleOverlayMouseUp\n },\n div({\n ref: \"content\",\n style: Assign({}, contentStyles, this.props.style.content || {}),\n className: this.buildClassName('content', this.props.className),\n tabIndex: \"-1\",\n onKeyDown: this.handleKeyDown,\n onMouseDown: this.handleContentMouseDown,\n onMouseUp: this.handleContentMouseUp,\n role: this.props.role,\n \"aria-label\": this.props.contentLabel\n },\n this.props.children\n )\n )\n );\n }\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-modal/lib/components/ModalPortal.js\n// module id = 38\n// module chunks = 0","var findTabbable = require('../helpers/tabbable');\nvar modalElement = null;\nvar focusLaterElement = null;\nvar needToFocus = false;\n\nfunction handleBlur(event) {\n needToFocus = true;\n}\n\nfunction handleFocus(event) {\n if (needToFocus) {\n needToFocus = false;\n if (!modalElement) {\n return;\n }\n // need to see how jQuery shims document.on('focusin') so we don't need the\n // setTimeout, firefox doesn't support focusin, if it did, we could focus\n // the element outside of a setTimeout. Side-effect of this implementation \n // is that the document.body gets focus, and then we focus our element right \n // after, seems fine.\n setTimeout(function() {\n if (modalElement.contains(document.activeElement))\n return;\n var el = (findTabbable(modalElement)[0] || modalElement);\n el.focus();\n }, 0);\n }\n}\n\nexports.markForFocusLater = function() {\n focusLaterElement = document.activeElement;\n};\n\nexports.returnFocus = function() {\n try {\n focusLaterElement.focus();\n }\n catch (e) {\n console.warn('You tried to return focus to '+focusLaterElement+' but it is not in the DOM anymore');\n }\n focusLaterElement = null;\n};\n\nexports.setupScopedFocus = function(element) {\n modalElement = element;\n\n if (window.addEventListener) {\n window.addEventListener('blur', handleBlur, false);\n document.addEventListener('focus', handleFocus, true);\n } else {\n window.attachEvent('onBlur', handleBlur);\n document.attachEvent('onFocus', handleFocus);\n }\n};\n\nexports.teardownScopedFocus = function() {\n modalElement = null;\n\n if (window.addEventListener) {\n window.removeEventListener('blur', handleBlur);\n document.removeEventListener('focus', handleFocus);\n } else {\n window.detachEvent('onBlur', handleBlur);\n document.detachEvent('onFocus', handleFocus);\n }\n};\n\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-modal/lib/helpers/focusManager.js\n// module id = 39\n// module chunks = 0","/*!\n * Adapted from jQuery UI core\n *\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/category/ui-core/\n */\n\nfunction focusable(element, isTabIndexNotNaN) {\n var nodeName = element.nodeName.toLowerCase();\n return (/input|select|textarea|button|object/.test(nodeName) ?\n !element.disabled :\n \"a\" === nodeName ?\n element.href || isTabIndexNotNaN :\n isTabIndexNotNaN) && visible(element);\n}\n\nfunction hidden(el) {\n return (el.offsetWidth <= 0 && el.offsetHeight <= 0) ||\n el.style.display === 'none';\n}\n\nfunction visible(element) {\n while (element) {\n if (element === document.body) break;\n if (hidden(element)) return false;\n element = element.parentNode;\n }\n return true;\n}\n\nfunction tabbable(element) {\n var tabIndex = element.getAttribute('tabindex');\n if (tabIndex === null) tabIndex = undefined;\n var isTabIndexNaN = isNaN(tabIndex);\n return (isTabIndexNaN || tabIndex >= 0) && focusable(element, !isTabIndexNaN);\n}\n\nfunction findTabbableDescendants(element) {\n return [].slice.call(element.querySelectorAll('*'), 0).filter(function(el) {\n return tabbable(el);\n });\n}\n\nmodule.exports = findTabbableDescendants;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-modal/lib/helpers/tabbable.js\n// module id = 40\n// module chunks = 0","var findTabbable = require('../helpers/tabbable');\n\nmodule.exports = function(node, event) {\n var tabbable = findTabbable(node);\n if (!tabbable.length) {\n event.preventDefault();\n return;\n }\n var finalTabbable = tabbable[event.shiftKey ? 0 : tabbable.length - 1];\n var leavingFinalTabbable = (\n finalTabbable === document.activeElement ||\n // handle immediate shift+tab after opening with mouse\n node === document.activeElement\n );\n if (!leavingFinalTabbable) return;\n event.preventDefault();\n var target = tabbable[event.shiftKey ? tabbable.length - 1 : 0];\n target.focus();\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-modal/lib/helpers/scopeTab.js\n// module id = 41\n// module chunks = 0","/**\n * lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]';\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\n/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\n/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object),\n nativeMax = Math.max;\n\n/** Detect if properties shadowing those on `Object.prototype` are non-enumerable. */\nvar nonEnumShadows = !propertyIsEnumerable.call({ 'valueOf': 1 }, 'valueOf');\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n // Safari 8.1 makes `arguments.callee` enumerable in strict mode.\n // Safari 9 makes `arguments.length` enumerable in strict mode.\n var result = (isArray(value) || isArguments(value))\n ? baseTimes(value.length, String)\n : [];\n\n var length = result.length,\n skipIndexes = !!length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (key == 'length' || isIndex(key, length)))) {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n object[key] = value;\n }\n}\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = array;\n return apply(func, this, otherArgs);\n };\n}\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n assignValue(object, key, newValue === undefined ? source[key] : newValue);\n }\n return object;\n}\n\n/**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\nfunction createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n}\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n length = length == null ? MAX_SAFE_INTEGER : length;\n return !!length &&\n (typeof value == 'number' || reIsUint.test(value)) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\n/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nfunction isArguments(value) {\n // Safari 8.1 makes `arguments.callee` enumerable in strict mode.\n return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&\n (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);\n}\n\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 8-9 which returns 'object' for typed array and other constructors.\n var tag = isObject(value) ? objectToString.call(value) : '';\n return tag == funcTag || tag == genTag;\n}\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Assigns own enumerable string keyed properties of source objects to the\n * destination object. Source objects are applied from left to right.\n * Subsequent sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object` and is loosely based on\n * [`Object.assign`](https://mdn.io/Object/assign).\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assignIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assign({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'c': 3 }\n */\nvar assign = createAssigner(function(object, source) {\n if (nonEnumShadows || isPrototype(source) || isArrayLike(source)) {\n copyObject(source, keys(source), object);\n return;\n }\n for (var key in source) {\n if (hasOwnProperty.call(source, key)) {\n assignValue(object, key, source[key]);\n }\n }\n});\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nmodule.exports = assign;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-modal/~/lodash.assign/index.js\n// module id = 42\n// module chunks = 0","var _element = typeof document !== 'undefined' ? document.body : null;\n\nfunction setElement(element) {\n if (typeof element === 'string') {\n var el = document.querySelectorAll(element);\n element = 'length' in el ? el[0] : el;\n }\n _element = element || _element;\n return _element;\n}\n\nfunction hide(appElement) {\n validateElement(appElement);\n (appElement || _element).setAttribute('aria-hidden', 'true');\n}\n\nfunction show(appElement) {\n validateElement(appElement);\n (appElement || _element).removeAttribute('aria-hidden');\n}\n\nfunction toggle(shouldHide, appElement) {\n if (shouldHide)\n hide(appElement);\n else\n show(appElement);\n}\n\nfunction validateElement(appElement) {\n if (!appElement && !_element)\n throw new Error('react-modal: You must set an element with `Modal.setAppElement(el)` to make this accessible');\n}\n\nfunction resetForTesting() {\n _element = document.body;\n}\n\nexports.toggle = toggle;\nexports.setElement = setElement;\nexports.show = show;\nexports.hide = hide;\nexports.resetForTesting = resetForTesting;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-modal/lib/helpers/ariaAppHider.js\n// module id = 43\n// module chunks = 0","module.exports = function(opts) {\n return new ElementClass(opts)\n}\n\nfunction indexOf(arr, prop) {\n if (arr.indexOf) return arr.indexOf(prop)\n for (var i = 0, len = arr.length; i < len; i++)\n if (arr[i] === prop) return i\n return -1\n}\n\nfunction ElementClass(opts) {\n if (!(this instanceof ElementClass)) return new ElementClass(opts)\n var self = this\n if (!opts) opts = {}\n\n // similar doing instanceof HTMLElement but works in IE8\n if (opts.nodeType) opts = {el: opts}\n\n this.opts = opts\n this.el = opts.el || document.body\n if (typeof this.el !== 'object') this.el = document.querySelector(this.el)\n}\n\nElementClass.prototype.add = function(className) {\n var el = this.el\n if (!el) return\n if (el.className === \"\") return el.className = className\n var classes = el.className.split(' ')\n if (indexOf(classes, className) > -1) return classes\n classes.push(className)\n el.className = classes.join(' ')\n return classes\n}\n\nElementClass.prototype.remove = function(className) {\n var el = this.el\n if (!el) return\n if (el.className === \"\") return\n var classes = el.className.split(' ')\n var idx = indexOf(classes, className)\n if (idx > -1) classes.splice(idx, 1)\n el.className = classes.join(' ')\n return classes\n}\n\nElementClass.prototype.has = function(className) {\n var el = this.el\n if (!el) return\n var classes = el.className.split(' ')\n return indexOf(classes, className) > -1\n}\n\nElementClass.prototype.toggle = function(className) {\n var el = this.el\n if (!el) return\n if (this.has(className)) this.remove(className)\n else this.add(className)\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-modal/~/element-class/index.js\n// module id = 44\n// module chunks = 0","/* eslint no-console: 0 */\n\nimport React, { Component, PropTypes } from 'react';\n\nimport InsertModalHeader from './InsertModalHeader';\nimport InsertModalFooter from './InsertModalFooter';\nimport InsertModalBody from './InsertModalBody';\n\nconst defaultModalClassName = 'react-bs-table-insert-modal';\n\nexport default class InsertModal extends Component {\n\n handleSave = () => {\n const bodyRefs = this.refs.body;\n if (bodyRefs.getFieldValue) {\n this.props.onSave(bodyRefs.getFieldValue());\n } else {\n console.error(`Custom InsertModalBody should implement getFieldValue function\n and should return an object presented as the new row that user input.`);\n }\n }\n\n render() {\n let { headerComponent, footerComponent, bodyComponent } = this.props;\n const {\n columns,\n validateState,\n ignoreEditable,\n onModalClose\n } = this.props;\n const bodyAttr = { columns, validateState, ignoreEditable };\n\n bodyComponent = bodyComponent && bodyComponent(columns, validateState, ignoreEditable);\n\n headerComponent = headerComponent && headerComponent(onModalClose, this.handleSave);\n\n footerComponent = footerComponent && footerComponent(onModalClose, this.handleSave);\n\n if (bodyComponent) {\n bodyComponent = React.cloneElement(bodyComponent, { ref: 'body' });\n }\n\n if (headerComponent && headerComponent.type.name === InsertModalHeader.name) {\n const eventProps = {};\n if (!headerComponent.props.onModalClose) eventProps.onModalClose = onModalClose;\n if (!headerComponent.props.onSave) eventProps.onSave = this.handleSave;\n if (Object.keys(eventProps).length > 0) {\n headerComponent = React.cloneElement(headerComponent, eventProps);\n }\n } else if (headerComponent && headerComponent.type.name !== InsertModalHeader.name) {\n const { className } = headerComponent.props;\n if (typeof className === 'undefined' || className.indexOf('modal-header') === -1) {\n headerComponent = ({ headerComponent }
);\n }\n }\n\n if (footerComponent && footerComponent.type.name === InsertModalFooter.name) {\n const eventProps = {};\n if (!footerComponent.props.onModalClose) eventProps.onModalClose = onModalClose;\n if (!footerComponent.props.onSave) eventProps.onSave = this.handleSave;\n if (Object.keys(eventProps).length > 0) {\n footerComponent = React.cloneElement(footerComponent, eventProps);\n }\n } else if (footerComponent && footerComponent.type.name !== InsertModalFooter.name) {\n const { className } = footerComponent.props;\n if (typeof className === 'undefined' || className.indexOf('modal-footer') === -1) {\n footerComponent = ({ footerComponent }
);\n }\n }\n\n return (\n \n {\n headerComponent ||\n ()\n }\n {\n bodyComponent ||\n ()\n }\n {\n footerComponent ||\n ()\n }\n
\n );\n }\n}\nInsertModal.propTypes = {\n columns: PropTypes.array.isRequired,\n validateState: PropTypes.object.isRequired,\n ignoreEditable: PropTypes.bool,\n headerComponent: PropTypes.func,\n bodyComponent: PropTypes.func,\n footerComponent: PropTypes.func,\n onModalClose: PropTypes.func,\n onSave: PropTypes.func\n};\n\nInsertModal.defaultProps = {};\n\n\n\n// WEBPACK FOOTER //\n// src/toolbar/InsertModal.js","import React, { Component, PropTypes } from 'react';\n\nclass InsertModalHeader extends Component {\n\n handleCloseBtnClick = e => {\n const { onModalClose, beforeClose } = this.props;\n beforeClose && beforeClose(e);\n onModalClose();\n }\n\n render() {\n const {\n title,\n hideClose,\n className,\n children\n } = this.props;\n\n const closeBtn = hideClose ? null : (\n \n );\n\n const content = children || (\n \n { closeBtn }\n { title }
\n \n );\n\n return (\n \n { content }\n
\n );\n }\n}\n\nInsertModalHeader.propTypes = {\n className: PropTypes.string,\n title: PropTypes.string,\n onModalClose: PropTypes.func,\n hideClose: PropTypes.bool,\n beforeClose: PropTypes.func\n};\nInsertModalHeader.defaultProps = {\n className: '',\n title: 'Add Row',\n onModalClose: undefined,\n hideClose: false,\n beforeClose: undefined\n};\n\nexport default InsertModalHeader;\n\n\n\n// WEBPACK FOOTER //\n// src/toolbar/InsertModalHeader.js","import React, { Component, PropTypes } from 'react';\nimport Const from '../Const';\n\nclass InsertModalFooter extends Component {\n\n handleCloseBtnClick = e => {\n const { beforeClose, onModalClose } = this.props;\n beforeClose && beforeClose(e);\n onModalClose();\n }\n\n handleSaveBtnClick = e => {\n const { beforeSave, onSave } = this.props;\n beforeSave && beforeSave(e);\n onSave();\n }\n\n render() {\n const {\n className,\n saveBtnText,\n closeBtnText,\n closeBtnContextual,\n saveBtnContextual,\n closeBtnClass,\n saveBtnClass,\n children\n } = this.props;\n\n const content = children || (\n \n \n \n \n );\n\n return (\n \n { content }\n
\n );\n }\n}\nInsertModalFooter.propTypes = {\n className: PropTypes.string,\n saveBtnText: PropTypes.string,\n closeBtnText: PropTypes.string,\n closeBtnContextual: PropTypes.string,\n saveBtnContextual: PropTypes.string,\n closeBtnClass: PropTypes.string,\n saveBtnClass: PropTypes.string,\n beforeClose: PropTypes.func,\n beforeSave: PropTypes.func,\n onSave: PropTypes.func,\n onModalClose: PropTypes.func\n};\nInsertModalFooter.defaultProps = {\n className: '',\n saveBtnText: Const.SAVE_BTN_TEXT,\n closeBtnText: Const.CLOSE_BTN_TEXT,\n closeBtnContextual: 'btn-default',\n saveBtnContextual: 'btn-primary',\n closeBtnClass: '',\n saveBtnClass: '',\n beforeClose: undefined,\n beforeSave: undefined\n};\n\nexport default InsertModalFooter;\n\n\n\n// WEBPACK FOOTER //\n// src/toolbar/InsertModalFooter.js","/* eslint react/display-name: 0 */\nimport React, { Component, PropTypes } from 'react';\n\nimport editor from '../Editor';\n\nclass InsertModalBody extends Component {\n\n getFieldValue() {\n const newRow = {};\n this.props.columns.forEach((column, i) => {\n let inputVal;\n if (column.autoValue) {\n // when you want same auto generate value and not allow edit, example ID field\n const time = new Date().getTime();\n inputVal = typeof column.autoValue === 'function' ?\n column.autoValue() :\n (`autovalue-${time}`);\n } else if (column.hiddenOnInsert || !column.field) {\n inputVal = '';\n } else {\n const dom = this.refs[column.field + i];\n inputVal = dom.value;\n\n if (column.editable && column.editable.type === 'checkbox') {\n const values = inputVal.split(':');\n inputVal = dom.checked ? values[0] : values[1];\n }\n }\n newRow[column.field] = inputVal;\n }, this);\n return newRow;\n }\n\n render() {\n const { columns, validateState, ignoreEditable } = this.props;\n return (\n \n {\n columns.map((column, i) => {\n const {\n editable,\n format,\n field,\n name,\n autoValue,\n hiddenOnInsert\n } = column;\n const attr = {\n ref: field + i,\n placeholder: editable.placeholder ? editable.placeholder : name\n };\n\n if (autoValue || hiddenOnInsert || !column.field) {\n // when you want same auto generate value\n // and not allow edit, for example ID field\n return null;\n }\n const error = validateState[field] ?\n (
{ validateState[field] }) :\n null;\n return (\n
\n \n { editor(editable, attr, format, '', undefined, ignoreEditable) }\n { error }\n
\n );\n })\n }\n
\n );\n }\n}\nInsertModalBody.propTypes = {\n columns: PropTypes.array,\n validateState: PropTypes.object,\n ignoreEditable: PropTypes.bool\n};\n\nInsertModalBody.defaultProps = {\n validateState: {},\n ignoreEditable: false\n};\n\nexport default InsertModalBody;\n\n\n\n// WEBPACK FOOTER //\n// src/toolbar/InsertModalBody.js","import React, { Component, PropTypes } from 'react';\nimport Const from '../Const';\n\nconst insertBtnDefaultClass = 'react-bs-table-add-btn';\n\nclass InsertButton extends Component {\n render() {\n const {\n btnContextual,\n className,\n onClick,\n btnGlyphicon,\n btnText,\n children,\n ...rest\n } = this.props;\n const content = children ||\n ({ btnText });\n return (\n \n );\n }\n}\n\nInsertButton.propTypes = {\n btnText: PropTypes.string,\n btnContextual: PropTypes.string,\n className: PropTypes.string,\n onClick: PropTypes.func,\n btnGlyphicon: PropTypes.string\n};\nInsertButton.defaultProps = {\n btnText: Const.INSERT_BTN_TEXT,\n btnContextual: 'btn-info',\n className: '',\n onClick: undefined,\n btnGlyphicon: 'glyphicon-plus'\n};\n\nexport default InsertButton;\n\n\n\n// WEBPACK FOOTER //\n// src/toolbar/InsertButton.js","import React, { Component, PropTypes } from 'react';\nimport Const from '../Const';\n\nconst deleteBtnDefaultClass = 'react-bs-table-del-btn';\n\nclass DeleteButton extends Component {\n render() {\n const {\n btnContextual,\n className,\n onClick,\n btnGlyphicon,\n btnText,\n children,\n ...rest\n } = this.props;\n const content = children ||\n ( { btnText });\n return (\n \n );\n }\n}\n\nDeleteButton.propTypes = {\n btnText: PropTypes.string,\n btnContextual: PropTypes.string,\n className: PropTypes.string,\n onClick: PropTypes.func,\n btnGlyphicon: PropTypes.string\n};\nDeleteButton.defaultProps = {\n btnText: Const.DELETE_BTN_TEXT,\n btnContextual: 'btn-warning',\n className: '',\n onClick: undefined,\n btnGlyphicon: 'glyphicon-trash'\n};\n\nexport default DeleteButton;\n\n\n\n// WEBPACK FOOTER //\n// src/toolbar/DeleteButton.js","import React, { Component, PropTypes } from 'react';\nimport Const from '../Const';\n\nconst exportCsvBtnDefaultClass = 'react-bs-table-csv-btn';\n\nclass ExportCSVButton extends Component {\n render() {\n const {\n btnContextual,\n className,\n onClick,\n btnGlyphicon,\n btnText,\n children,\n ...rest\n } = this.props;\n const content = children ||\n ( { btnText });\n return (\n \n );\n }\n}\n\nExportCSVButton.propTypes = {\n btnText: PropTypes.string,\n btnContextual: PropTypes.string,\n className: PropTypes.string,\n onClick: PropTypes.func,\n btnGlyphicon: PropTypes.string\n};\nExportCSVButton.defaultProps = {\n btnText: Const.EXPORT_CSV_TEXT,\n btnContextual: 'btn-success',\n className: '',\n onClick: undefined,\n btnGlyphicon: 'glyphicon-export'\n};\n\nexport default ExportCSVButton;\n\n\n\n// WEBPACK FOOTER //\n// src/toolbar/ExportCSVButton.js","import React, { Component, PropTypes } from 'react';\nimport Const from '../Const';\n\nconst showSelectedOnlyBtnDefaultClass = 'react-bs-table-show-sel-only-btn';\n\nclass ShowSelectedOnlyButton extends Component {\n render() {\n const {\n btnContextual,\n className,\n onClick,\n toggle,\n showAllText,\n showOnlySelectText,\n children,\n ...rest\n } = this.props;\n const content = children ||\n ({ toggle ? showOnlySelectText : showAllText });\n return (\n \n );\n }\n}\n\nShowSelectedOnlyButton.propTypes = {\n showAllText: PropTypes.string,\n showOnlySelectText: PropTypes.string,\n toggle: PropTypes.bool,\n btnContextual: PropTypes.string,\n className: PropTypes.string,\n onClick: PropTypes.func\n};\nShowSelectedOnlyButton.defaultProps = {\n showAllText: Const.SHOW_ALL,\n showOnlySelectText: Const.SHOW_ONLY_SELECT,\n toggle: false,\n btnContextual: 'btn-primary',\n className: '',\n onClick: undefined\n};\n\nexport default ShowSelectedOnlyButton;\n\n\n\n// WEBPACK FOOTER //\n// src/toolbar/ShowSelectedOnlyButton.js","import React, { Component, PropTypes } from 'react';\nimport ReactDOM from 'react-dom';\n\nclass SearchField extends Component {\n\n getValue() {\n return ReactDOM.findDOMNode(this).value;\n }\n\n setValue(value) {\n ReactDOM.findDOMNode(this).value = value;\n }\n\n render() {\n const {\n className,\n defaultValue,\n placeholder,\n onKeyUp,\n ...rest\n } = this.props;\n return (\n \n );\n }\n}\n\nSearchField.propTypes = {\n className: PropTypes.string,\n defaultValue: PropTypes.string,\n placeholder: PropTypes.string,\n onKeyUp: PropTypes.func\n};\nSearchField.defaultProps = {\n className: '',\n defaultValue: '',\n placeholder: 'Search',\n onKeyUp: undefined\n};\n\nexport default SearchField;\n\n\n\n// WEBPACK FOOTER //\n// src/toolbar/SearchField.js","import React, { Component, PropTypes } from 'react';\n\nconst clearBtnDefaultClass = 'react-bs-table-search-clear-btn';\n\nclass ClearSearchButton extends Component {\n\n render() {\n const {\n btnContextual,\n className,\n onClick,\n btnText,\n children,\n ...rest\n } = this.props;\n const content = children ||\n ({ btnText });\n return (\n \n );\n }\n}\n\nClearSearchButton.propTypes = {\n btnContextual: PropTypes.string,\n className: PropTypes.string,\n btnText: PropTypes.string,\n onClick: PropTypes.func\n};\nClearSearchButton.defaultProps = {\n btnContextual: 'btn-default',\n className: '',\n btnText: 'Clear',\n onClick: undefined\n};\n\nexport default ClearSearchButton;\n\n\n\n// WEBPACK FOOTER //\n// src/toolbar/ClearSearchButton.js","import React, { Component, PropTypes } from 'react';\nimport Const from './Const';\nimport classSet from 'classnames';\n\nclass TableFilter extends Component {\n\n constructor(props) {\n super(props);\n this.filterObj = {};\n }\n\n handleKeyUp = e => {\n const { value, name } = e.currentTarget;\n if (value.trim() === '') {\n delete this.filterObj[name];\n } else {\n this.filterObj[name] = value;\n }\n this.props.onFilter(this.filterObj);\n }\n\n render() {\n const { striped, condensed, rowSelectType, columns } = this.props;\n const tableClasses = classSet('table', {\n 'table-striped': striped,\n 'table-condensed': condensed\n });\n let selectRowHeader = null;\n\n if (rowSelectType === Const.ROW_SELECT_SINGLE ||\n rowSelectType === Const.ROW_SELECT_MULTI) {\n const style = {\n width: 35,\n paddingLeft: 0,\n paddingRight: 0\n };\n selectRowHeader = (Filter | );\n }\n\n const filterField = columns.map(function(column) {\n const { hidden, width, name } = column;\n const thStyle = {\n display: hidden ? 'none' : null,\n width\n };\n return (\n \n \n \n \n | \n );\n }, this);\n\n return (\n \n \n \n { selectRowHeader }{ filterField }\n
\n \n
\n );\n }\n}\nTableFilter.propTypes = {\n columns: PropTypes.array,\n rowSelectType: PropTypes.string,\n onFilter: PropTypes.func\n};\nexport default TableFilter;\n\n\n\n// WEBPACK FOOTER //\n// src/TableFilter.js","/* eslint no-nested-ternary: 0 */\n/* eslint guard-for-in: 0 */\n/* eslint no-console: 0 */\n/* eslint eqeqeq: 0 */\n/* eslint one-var: 0 */\nimport Const from '../Const';\n\nexport class TableDataStore {\n\n constructor(data) {\n this.data = data;\n this.colInfos = null;\n this.filteredData = null;\n this.isOnFilter = false;\n this.filterObj = null;\n this.searchText = null;\n this.sortList = [];\n this.pageObj = {};\n this.selected = [];\n this.multiColumnSearch = false;\n this.multiColumnSort = 1;\n this.showOnlySelected = false;\n this.remote = false; // remote data\n }\n\n setProps(props) {\n this.keyField = props.keyField;\n this.enablePagination = props.isPagination;\n this.colInfos = props.colInfos;\n this.remote = props.remote;\n this.multiColumnSearch = props.multiColumnSearch;\n this.multiColumnSort = props.multiColumnSort;\n }\n\n clean() {\n this.filteredData = null;\n this.isOnFilter = false;\n this.filterObj = null;\n this.searchText = null;\n this.sortList = [];\n this.pageObj = {};\n this.selected = [];\n }\n\n setData(data) {\n this.data = data;\n if (this.remote) {\n return;\n }\n\n this._refresh(true);\n }\n\n getColInfos() {\n return this.colInfos;\n }\n\n getSortInfo() {\n return this.sortList;\n }\n\n setSortInfo(order, sortField) {\n if (typeof order !== typeof sortField) {\n throw new Error('The type of sort field and order should be both with String or Array');\n }\n if (Array.isArray(order) && Array.isArray(sortField)) {\n if (order.length !== sortField.length) {\n throw new Error('The length of sort fields and orders should be equivalent');\n }\n order = order.slice().reverse();\n this.sortList = sortField.slice().reverse().map((field, i) => {\n return {\n order: order[i],\n sortField: field\n };\n });\n this.sortList = this.sortList.slice(0, this.multiColumnSort);\n } else {\n const sortObj = {\n order: order,\n sortField: sortField\n };\n\n if (this.multiColumnSort > 1) {\n let i = this.sortList.length - 1;\n let sortFieldInHistory = false;\n\n for (; i >= 0; i--) {\n if (this.sortList[i].sortField === sortField) {\n sortFieldInHistory = true;\n break;\n }\n }\n\n if (sortFieldInHistory) {\n if (i > 0) {\n this.sortList = this.sortList.slice(0, i);\n } else {\n this.sortList = this.sortList.slice(1);\n }\n }\n\n this.sortList.unshift(sortObj);\n this.sortList = this.sortList.slice(0, this.multiColumnSort);\n } else {\n this.sortList = [ sortObj ];\n }\n }\n }\n\n setSelectedRowKey(selectedRowKeys) {\n this.selected = selectedRowKeys;\n }\n\n getRowByKey(keys) {\n // Bad Performance #1164\n // return keys.map(key => {\n // const result = this.data.filter(d => d[this.keyField] === key);\n // if (result.length !== 0) return result[0];\n // });\n const result = [];\n for (let i = 0; i < this.data.length; i++) {\n const d = this.data[i];\n if (!keys || keys.length === 0) break;\n if (keys.indexOf(d[this.keyField]) > -1) {\n keys = keys.filter(k => k !== d[this.keyField]);\n result.push(d);\n }\n }\n return result;\n }\n\n getSelectedRowKeys() {\n return this.selected;\n }\n\n getCurrentDisplayData() {\n if (this.isOnFilter) return this.filteredData;\n else return this.data;\n }\n\n _refresh(skipSorting) {\n if (this.isOnFilter) {\n if (this.filterObj !== null) this.filter(this.filterObj);\n if (this.searchText !== null) this.search(this.searchText);\n }\n if (!skipSorting && this.sortList.length > 0) {\n this.sort();\n }\n }\n\n ignoreNonSelected() {\n this.showOnlySelected = !this.showOnlySelected;\n if (this.showOnlySelected) {\n this.isOnFilter = true;\n this.filteredData = this.data.filter( row => {\n const result = this.selected.find(x => row[this.keyField] === x);\n return typeof result !== 'undefined' ? true : false;\n });\n } else {\n this.isOnFilter = false;\n }\n }\n\n sort() {\n let currentDisplayData = this.getCurrentDisplayData();\n\n currentDisplayData = this._sort(currentDisplayData);\n\n return this;\n }\n\n page(page, sizePerPage) {\n this.pageObj.end = page * sizePerPage - 1;\n this.pageObj.start = this.pageObj.end - (sizePerPage - 1);\n return this;\n }\n\n edit(newVal, rowIndex, fieldName) {\n const currentDisplayData = this.getCurrentDisplayData();\n let rowKeyCache;\n if (!this.enablePagination) {\n currentDisplayData[rowIndex][fieldName] = newVal;\n rowKeyCache = currentDisplayData[rowIndex][this.keyField];\n } else {\n currentDisplayData[this.pageObj.start + rowIndex][fieldName] = newVal;\n rowKeyCache = currentDisplayData[this.pageObj.start + rowIndex][this.keyField];\n }\n if (this.isOnFilter) {\n this.data.forEach(function(row) {\n if (row[this.keyField] === rowKeyCache) {\n row[fieldName] = newVal;\n }\n }, this);\n if (this.filterObj !== null) this.filter(this.filterObj);\n if (this.searchText !== null) this.search(this.searchText);\n }\n return this;\n }\n\n addAtBegin(newObj) {\n if (!newObj[this.keyField] || newObj[this.keyField].toString() === '') {\n throw new Error(`${this.keyField} can't be empty value.`);\n }\n const currentDisplayData = this.getCurrentDisplayData();\n currentDisplayData.forEach(function(row) {\n if (row[this.keyField].toString() === newObj[this.keyField].toString()) {\n throw new Error(`${this.keyField} ${newObj[this.keyField]} already exists`);\n }\n }, this);\n currentDisplayData.unshift(newObj);\n if (this.isOnFilter) {\n this.data.unshift(newObj);\n }\n this._refresh(false);\n }\n\n add(newObj) {\n const e = this.isValidKey(newObj[this.keyField]);\n if (e) throw new Error(e);\n\n const currentDisplayData = this.getCurrentDisplayData();\n currentDisplayData.push(newObj);\n if (this.isOnFilter) {\n this.data.push(newObj);\n }\n this._refresh(false);\n }\n\n isValidKey = key => {\n if (!key || key.toString() === '') {\n return `${this.keyField} can't be empty value.`;\n }\n const currentDisplayData = this.getCurrentDisplayData();\n const exist = currentDisplayData.find(row => row[this.keyField].toString() === key.toString());\n if (exist) return `${this.keyField} ${key} already exists`;\n }\n\n remove(rowKey) {\n const currentDisplayData = this.getCurrentDisplayData();\n const result = currentDisplayData.filter(row => {\n return rowKey.indexOf(row[this.keyField]) === -1;\n });\n\n if (this.isOnFilter) {\n this.data = this.data.filter(row => {\n return rowKey.indexOf(row[this.keyField]) === -1;\n });\n this.filteredData = result;\n } else {\n this.data = result;\n }\n }\n\n filter(filterObj) {\n if (Object.keys(filterObj).length === 0) {\n this.filteredData = null;\n this.isOnFilter = false;\n this.filterObj = null;\n if (this.searchText) this._search(this.data);\n } else {\n let source = this.data;\n this.filterObj = filterObj;\n if (this.searchText) {\n this._search(source);\n source = this.filteredData;\n }\n this._filter(source);\n }\n }\n\n filterNumber(targetVal, filterVal, comparator) {\n let valid = true;\n switch (comparator) {\n case '=': {\n if (targetVal != filterVal) {\n valid = false;\n }\n break;\n }\n case '>': {\n if (targetVal <= filterVal) {\n valid = false;\n }\n break;\n }\n case '>=': {\n if (targetVal < filterVal) {\n valid = false;\n }\n break;\n }\n case '<': {\n if (targetVal >= filterVal) {\n valid = false;\n }\n break;\n }\n case '<=': {\n if (targetVal > filterVal) {\n valid = false;\n }\n break;\n }\n case '!=': {\n if (targetVal == filterVal) {\n valid = false;\n }\n break;\n }\n default: {\n console.error('Number comparator provided is not supported');\n break;\n }\n }\n return valid;\n }\n\n filterDate(targetVal, filterVal, comparator) {\n if (!targetVal) return false;\n\n const filterDate = filterVal.getDate();\n const filterMonth = filterVal.getMonth();\n const filterYear = filterVal.getFullYear();\n\n const targetDate = targetVal.getDate();\n const targetMonth = targetVal.getMonth();\n const targetYear = targetVal.getFullYear();\n\n let valid = true;\n switch (comparator) {\n case '=': {\n if (filterDate !== targetDate ||\n filterMonth !== targetMonth ||\n filterYear !== targetYear) {\n valid = false;\n }\n break;\n }\n case '>': {\n if (targetVal <= filterVal) {\n valid = false;\n }\n break;\n }\n case '>=': {\n if (targetYear < filterYear) {\n valid = false;\n } else if (targetYear === filterYear &&\n targetMonth < filterMonth) {\n valid = false;\n } else if (targetYear === filterYear &&\n targetMonth === filterMonth &&\n targetDate < filterDate) {\n valid = false;\n }\n break;\n }\n case '<': {\n if (targetVal >= filterVal) {\n valid = false;\n }\n break;\n }\n case '<=': {\n if (targetYear > filterYear) {\n valid = false;\n } else if (targetYear === filterYear &&\n targetMonth > filterMonth) {\n valid = false;\n } else if (targetYear === filterYear &&\n targetMonth === filterMonth &&\n targetDate > filterDate) {\n valid = false;\n }\n break;\n }\n case '!=': {\n if (filterDate === targetDate &&\n filterMonth === targetMonth &&\n filterYear === targetYear) {\n valid = false;\n }\n break;\n }\n default: {\n console.error('Date comparator provided is not supported');\n break;\n }\n }\n return valid;\n }\n\n filterRegex(targetVal, filterVal) {\n try {\n return new RegExp(filterVal, 'i').test(targetVal);\n } catch (e) {\n return true;\n }\n }\n\n filterCustom(targetVal, filterVal, callbackInfo, cond) {\n if (callbackInfo !== null && typeof callbackInfo === 'object') {\n return callbackInfo.callback(targetVal, callbackInfo.callbackParameters);\n }\n\n return this.filterText(targetVal, filterVal, cond);\n }\n\n filterText(targetVal, filterVal, cond = Const.FILTER_COND_LIKE) {\n targetVal = targetVal.toString();\n filterVal = filterVal.toString();\n if (cond === Const.FILTER_COND_EQ) {\n return targetVal === filterVal;\n } else {\n targetVal = targetVal.toLowerCase();\n filterVal = filterVal.toLowerCase();\n return !(targetVal.indexOf(filterVal) === -1);\n }\n }\n\n /* General search function\n * It will search for the text if the input includes that text;\n */\n search(searchText) {\n if (searchText.trim() === '') {\n this.filteredData = null;\n this.isOnFilter = false;\n this.searchText = null;\n if (this.filterObj) this._filter(this.data);\n } else {\n let source = this.data;\n this.searchText = searchText;\n if (this.filterObj) {\n this._filter(source);\n source = this.filteredData;\n }\n this._search(source);\n }\n }\n\n _filter(source) {\n const filterObj = this.filterObj;\n this.filteredData = source.filter((row, r) => {\n let valid = true;\n let filterVal;\n for (const key in filterObj) {\n let targetVal = row[key];\n if (targetVal === null || targetVal === undefined) {\n targetVal = '';\n }\n\n switch (filterObj[key].type) {\n case Const.FILTER_TYPE.NUMBER: {\n filterVal = filterObj[key].value.number;\n break;\n }\n case Const.FILTER_TYPE.CUSTOM: {\n filterVal = (typeof filterObj[key].value === 'object') ?\n undefined :\n (typeof filterObj[key].value === 'string') ?\n filterObj[key].value.toLowerCase() :\n filterObj[key].value;\n break;\n }\n case Const.FILTER_TYPE.DATE: {\n filterVal = filterObj[key].value.date;\n break;\n }\n case Const.FILTER_TYPE.REGEX: {\n filterVal = filterObj[key].value;\n break;\n }\n default: {\n filterVal = filterObj[key].value;\n if (filterVal === undefined) {\n // Support old filter\n filterVal = filterObj[key];\n }\n break;\n }\n }\n let format, filterFormatted, formatExtraData, filterValue;\n if (this.colInfos[key]) {\n format = this.colInfos[key].format;\n filterFormatted = this.colInfos[key].filterFormatted;\n formatExtraData = this.colInfos[key].formatExtraData;\n filterValue = this.colInfos[key].filterValue;\n if (filterFormatted && format) {\n targetVal = format(row[key], row, formatExtraData, r);\n } else if (filterValue) {\n targetVal = filterValue(row[key], row);\n }\n }\n\n switch (filterObj[key].type) {\n case Const.FILTER_TYPE.NUMBER: {\n valid = this.filterNumber(targetVal, filterVal, filterObj[key].value.comparator);\n break;\n }\n case Const.FILTER_TYPE.DATE: {\n valid = this.filterDate(targetVal, filterVal, filterObj[key].value.comparator);\n break;\n }\n case Const.FILTER_TYPE.REGEX: {\n valid = this.filterRegex(targetVal, filterVal);\n break;\n }\n case Const.FILTER_TYPE.CUSTOM: {\n const cond = filterObj[key].props ? filterObj[key].props.cond : Const.FILTER_COND_LIKE;\n valid = this.filterCustom(targetVal, filterVal, filterObj[key].value, cond);\n break;\n }\n default: {\n if (filterObj[key].type === Const.FILTER_TYPE.SELECT &&\n filterFormatted && filterFormatted && format) {\n filterVal = format(filterVal, row, formatExtraData, r);\n }\n const cond = filterObj[key].props ? filterObj[key].props.cond : Const.FILTER_COND_LIKE;\n valid = this.filterText(targetVal, filterVal, cond);\n break;\n }\n }\n if (!valid) {\n break;\n }\n }\n return valid;\n });\n this.isOnFilter = true;\n }\n\n _search(source) {\n let searchTextArray = [];\n\n if (this.multiColumnSearch) {\n searchTextArray = this.searchText.split(' ');\n } else {\n searchTextArray.push(this.searchText);\n }\n this.filteredData = source.filter((row, r) => {\n const keys = Object.keys(row);\n let valid = false;\n // for loops are ugly, but performance matters here.\n // And you cant break from a forEach.\n // http://jsperf.com/for-vs-foreach/66\n for (let i = 0, keysLength = keys.length; i < keysLength; i++) {\n const key = keys[i];\n // fixed data filter when misunderstand 0 is false\n let filterSpecialNum = false;\n if (!isNaN(row[key]) &&\n parseInt(row[key], 10) === 0) { filterSpecialNum = true; }\n if (this.colInfos[key] && (row[key] || filterSpecialNum)) {\n const {\n format,\n filterFormatted,\n filterValue,\n formatExtraData,\n searchable\n } = this.colInfos[key];\n let targetVal = row[key];\n if (searchable) {\n if (filterFormatted && format) {\n targetVal = format(targetVal, row, formatExtraData, r);\n } else if (filterValue) {\n targetVal = filterValue(targetVal, row);\n }\n for (let j = 0, textLength = searchTextArray.length; j < textLength; j++) {\n const filterVal = searchTextArray[j].toLowerCase();\n if (targetVal.toString().toLowerCase().indexOf(filterVal) !== -1) {\n valid = true;\n break;\n }\n }\n }\n }\n }\n return valid;\n });\n this.isOnFilter = true;\n }\n\n _sort(arr) {\n if (this.sortList.length === 0 || typeof(this.sortList[0]) === 'undefined') {\n return arr;\n }\n\n arr.sort((a, b) => {\n let result = 0;\n\n for (let i = 0; i < this.sortList.length; i++) {\n const sortDetails = this.sortList[i];\n const isDesc = sortDetails.order.toLowerCase() === Const.SORT_DESC;\n\n const { sortFunc, sortFuncExtraData } = this.colInfos[sortDetails.sortField];\n\n if (sortFunc) {\n result = sortFunc(a, b, sortDetails.order, sortDetails.sortField, sortFuncExtraData);\n } else {\n const valueA = a[sortDetails.sortField] === null ? '' : a[sortDetails.sortField];\n const valueB = b[sortDetails.sortField] === null ? '' : b[sortDetails.sortField];\n if (isDesc) {\n if (typeof valueB === 'string') {\n result = valueB.localeCompare(valueA);\n } else {\n result = valueA > valueB ? -1 : ((valueA < valueB) ? 1 : 0);\n }\n } else {\n if (typeof valueA === 'string') {\n result = valueA.localeCompare(valueB);\n } else {\n result = valueA < valueB ? -1 : ((valueA > valueB) ? 1 : 0);\n }\n }\n }\n\n if (result !== 0) {\n return result;\n }\n }\n\n return result;\n });\n\n return arr;\n }\n\n getDataIgnoringPagination() {\n return this.getCurrentDisplayData();\n }\n\n get() {\n const _data = this.getCurrentDisplayData();\n\n if (_data.length === 0) return _data;\n\n const remote = typeof this.remote === 'function' ?\n (this.remote(Const.REMOTE))[Const.REMOTE_PAGE] : this.remote;\n\n if (remote || !this.enablePagination) {\n return _data;\n } else {\n const result = [];\n for (let i = this.pageObj.start; i <= this.pageObj.end; i++) {\n result.push(_data[i]);\n if (i + 1 === _data.length) break;\n }\n return result;\n }\n }\n\n getKeyField() {\n return this.keyField;\n }\n\n getDataNum() {\n return this.getCurrentDisplayData().length;\n }\n\n isChangedPage() {\n return this.pageObj.start && this.pageObj.end ? true : false;\n }\n\n isEmpty() {\n return (this.data.length === 0 ||\n this.data === null ||\n this.data === undefined);\n }\n\n getAllRowkey() {\n return this.data.map(row => {\n return row[this.keyField];\n });\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// src/store/TableDataStore.js","/* eslint block-scoped-var: 0 */\n/* eslint vars-on-top: 0 */\n/* eslint no-var: 0 */\n/* eslint no-unused-vars: 0 */\nimport Util from './util';\n\nif (Util.canUseDOM()) {\n const filesaver = require('./filesaver');\n var saveAs = filesaver.saveAs;\n}\n\nfunction toString(data, keys) {\n let dataString = '';\n if (data.length === 0) return dataString;\n\n const headCells = [];\n let rowCount = 0;\n keys.forEach(key => {\n if (key.row > rowCount) {\n rowCount = key.row;\n }\n // rowCount += (key.rowSpan + key.colSpan - 1);\n for (var index = 0; index < key.colSpan; index++) {\n headCells.push(key);\n }\n });\n\n for (let i = 0; i <= rowCount; i++) {\n dataString += headCells.map(x => {\n if ((x.row + (x.rowSpan - 1)) === i) {\n return x.header;\n }\n if (x.row === i && x.rowSpan > 1) {\n return '';\n }\n }).filter(key => {\n return typeof key !== 'undefined';\n }).join(',') + '\\n';\n }\n\n keys = keys.filter(key => {\n return key.field !== undefined;\n });\n\n data.map(function(row) {\n keys.map(function(col, i) {\n const { field, format, extraData } = col;\n const value = typeof format !== 'undefined' ? format(row[field], row, extraData) : row[field];\n const cell = typeof value !== 'undefined' ? ('\"' + value + '\"') : '';\n dataString += cell;\n if (i + 1 < keys.length) dataString += ',';\n });\n\n dataString += '\\n';\n });\n\n return dataString;\n}\n\nconst exportCSV = function(data, keys, filename) {\n const dataString = toString(data, keys);\n if (typeof window !== 'undefined') {\n saveAs(new Blob([ dataString ],\n { type: 'text/plain;charset=utf-8' }),\n filename, true);\n }\n};\n\nexport default exportCSV;\n\n\n\n// WEBPACK FOOTER //\n// src/csv_export_util.js","/* FileSaver.js\n * A saveAs() FileSaver implementation.\n * 1.3.2\n * 2016-06-16 18:25:19\n *\n * By Eli Grey, http://eligrey.com\n * License: MIT\n * See https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md\n */\n\n/*global self */\n/*jslint bitwise: true, indent: 4, laxbreak: true, laxcomma: true, smarttabs: true, plusplus: true */\n\n/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */\n\nvar saveAs = saveAs || (function(view) {\n\t\"use strict\";\n\t// IE <10 is explicitly unsupported\n\tif (typeof view === \"undefined\" || typeof navigator !== \"undefined\" && /MSIE [1-9]\\./.test(navigator.userAgent)) {\n\t\treturn;\n\t}\n\tvar\n\t\t doc = view.document\n\t\t // only get URL when necessary in case Blob.js hasn't overridden it yet\n\t\t, get_URL = function() {\n\t\t\treturn view.URL || view.webkitURL || view;\n\t\t}\n\t\t, save_link = doc.createElementNS(\"http://www.w3.org/1999/xhtml\", \"a\")\n\t\t, can_use_save_link = \"download\" in save_link\n\t\t, click = function(node) {\n\t\t\tvar event = new MouseEvent(\"click\");\n\t\t\tnode.dispatchEvent(event);\n\t\t}\n\t\t, is_safari = /constructor/i.test(view.HTMLElement) || view.safari\n\t\t, is_chrome_ios =/CriOS\\/[\\d]+/.test(navigator.userAgent)\n\t\t, throw_outside = function(ex) {\n\t\t\t(view.setImmediate || view.setTimeout)(function() {\n\t\t\t\tthrow ex;\n\t\t\t}, 0);\n\t\t}\n\t\t, force_saveable_type = \"application/octet-stream\"\n\t\t// the Blob API is fundamentally broken as there is no \"downloadfinished\" event to subscribe to\n\t\t, arbitrary_revoke_timeout = 1000 * 40 // in ms\n\t\t, revoke = function(file) {\n\t\t\tvar revoker = function() {\n\t\t\t\tif (typeof file === \"string\") { // file is an object URL\n\t\t\t\t\tget_URL().revokeObjectURL(file);\n\t\t\t\t} else { // file is a File\n\t\t\t\t\tfile.remove();\n\t\t\t\t}\n\t\t\t};\n\t\t\tsetTimeout(revoker, arbitrary_revoke_timeout);\n\t\t}\n\t\t, dispatch = function(filesaver, event_types, event) {\n\t\t\tevent_types = [].concat(event_types);\n\t\t\tvar i = event_types.length;\n\t\t\twhile (i--) {\n\t\t\t\tvar listener = filesaver[\"on\" + event_types[i]];\n\t\t\t\tif (typeof listener === \"function\") {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tlistener.call(filesaver, event || filesaver);\n\t\t\t\t\t} catch (ex) {\n\t\t\t\t\t\tthrow_outside(ex);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t, auto_bom = function(blob) {\n\t\t\t// prepend BOM for UTF-8 XML and text/* types (including HTML)\n\t\t\t// note: your browser will automatically convert UTF-16 U+FEFF to EF BB BF\n\t\t\tif (/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(blob.type)) {\n\t\t\t\treturn new Blob([String.fromCharCode(0xFEFF), blob], {type: blob.type});\n\t\t\t}\n\t\t\treturn blob;\n\t\t}\n\t\t, FileSaver = function(blob, name, no_auto_bom) {\n\t\t\tif (!no_auto_bom) {\n\t\t\t\tblob = auto_bom(blob);\n\t\t\t}\n\t\t\t// First try a.download, then web filesystem, then object URLs\n\t\t\tvar\n\t\t\t\t filesaver = this\n\t\t\t\t, type = blob.type\n\t\t\t\t, force = type === force_saveable_type\n\t\t\t\t, object_url\n\t\t\t\t, dispatch_all = function() {\n\t\t\t\t\tdispatch(filesaver, \"writestart progress write writeend\".split(\" \"));\n\t\t\t\t}\n\t\t\t\t// on any filesys errors revert to saving with object URLs\n\t\t\t\t, fs_error = function() {\n\t\t\t\t\tif ((is_chrome_ios || (force && is_safari)) && view.FileReader) {\n\t\t\t\t\t\t// Safari doesn't allow downloading of blob urls\n\t\t\t\t\t\tvar reader = new FileReader();\n\t\t\t\t\t\treader.onloadend = function() {\n\t\t\t\t\t\t\tvar url = is_chrome_ios ? reader.result : reader.result.replace(/^data:[^;]*;/, 'data:attachment/file;');\n\t\t\t\t\t\t\tvar popup = view.open(url, '_blank');\n\t\t\t\t\t\t\tif(!popup) view.location.href = url;\n\t\t\t\t\t\t\turl=undefined; // release reference before dispatching\n\t\t\t\t\t\t\tfilesaver.readyState = filesaver.DONE;\n\t\t\t\t\t\t\tdispatch_all();\n\t\t\t\t\t\t};\n\t\t\t\t\t\treader.readAsDataURL(blob);\n\t\t\t\t\t\tfilesaver.readyState = filesaver.INIT;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t// don't create more object URLs than needed\n\t\t\t\t\tif (!object_url) {\n\t\t\t\t\t\tobject_url = get_URL().createObjectURL(blob);\n\t\t\t\t\t}\n\t\t\t\t\tif (force) {\n\t\t\t\t\t\tview.location.href = object_url;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvar opened = view.open(object_url, \"_blank\");\n\t\t\t\t\t\tif (!opened) {\n\t\t\t\t\t\t\t// Apple does not allow window.open, see https://developer.apple.com/library/safari/documentation/Tools/Conceptual/SafariExtensionGuide/WorkingwithWindowsandTabs/WorkingwithWindowsandTabs.html\n\t\t\t\t\t\t\tview.location.href = object_url;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tfilesaver.readyState = filesaver.DONE;\n\t\t\t\t\tdispatch_all();\n\t\t\t\t\trevoke(object_url);\n\t\t\t\t}\n\t\t\t;\n\t\t\tfilesaver.readyState = filesaver.INIT;\n\n\t\t\tif (can_use_save_link) {\n\t\t\t\tobject_url = get_URL().createObjectURL(blob);\n\t\t\t\tsetTimeout(function() {\n\t\t\t\t\tsave_link.href = object_url;\n\t\t\t\t\tsave_link.download = name;\n\t\t\t\t\tclick(save_link);\n\t\t\t\t\tdispatch_all();\n\t\t\t\t\trevoke(object_url);\n\t\t\t\t\tfilesaver.readyState = filesaver.DONE;\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfs_error();\n\t\t}\n\t\t, FS_proto = FileSaver.prototype\n\t\t, saveAs = function(blob, name, no_auto_bom) {\n\t\t\treturn new FileSaver(blob, name || blob.name || \"download\", no_auto_bom);\n\t\t}\n\t;\n\t// IE 10+ (native saveAs)\n\tif (typeof navigator !== \"undefined\" && navigator.msSaveOrOpenBlob) {\n\t\treturn function(blob, name, no_auto_bom) {\n\t\t\tname = name || blob.name || \"download\";\n\n\t\t\tif (!no_auto_bom) {\n\t\t\t\tblob = auto_bom(blob);\n\t\t\t}\n\t\t\treturn navigator.msSaveOrOpenBlob(blob, name);\n\t\t};\n\t}\n\n\tFS_proto.abort = function(){};\n\tFS_proto.readyState = FS_proto.INIT = 0;\n\tFS_proto.WRITING = 1;\n\tFS_proto.DONE = 2;\n\n\tFS_proto.error =\n\tFS_proto.onwritestart =\n\tFS_proto.onprogress =\n\tFS_proto.onwrite =\n\tFS_proto.onabort =\n\tFS_proto.onerror =\n\tFS_proto.onwriteend =\n\t\tnull;\n\n\treturn saveAs;\n}(\n\t typeof self !== \"undefined\" && self\n\t|| typeof window !== \"undefined\" && window\n\t|| this.content\n));\n// `self` is undefined in Firefox for Android content script context\n// while `this` is nsIContentFrameMessageManager\n// with an attribute `content` that corresponds to the window\n\nif (typeof module !== \"undefined\" && module.exports) {\n module.exports.saveAs = saveAs;\n} else if ((typeof define !== \"undefined\" && define !== null) && (define.amd !== null)) {\n define(\"FileSaver.js\", function() {\n return saveAs;\n });\n}\n\n\n// WEBPACK FOOTER //\n// src/filesaver.js","module.exports = function() { throw new Error(\"define cannot be used indirect\"); };\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// (webpack)/buildin/amd-define.js\n// module id = 59\n// module chunks = 0","module.exports = __webpack_amd_options__;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// (webpack)/buildin/amd-options.js\n// module id = 60\n// module chunks = 0","import Const from './Const';\nimport { EventEmitter } from 'events';\n\nexport class Filter extends EventEmitter {\n constructor(data) {\n super(data);\n this.currentFilter = {};\n }\n\n handleFilter(dataField, value, type, filterObj) {\n const filterType = type || Const.FILTER_TYPE.CUSTOM;\n\n const props = {\n cond: filterObj.condition // Only for select and text filter\n };\n\n if (value !== null && typeof value === 'object') {\n // value of the filter is an object\n let hasValue = true;\n for (const prop in value) {\n if (!value[prop] || value[prop] === '') {\n hasValue = false;\n break;\n }\n }\n // if one of the object properties is undefined or empty, we remove the filter\n if (hasValue) {\n this.currentFilter[dataField] = { value: value, type: filterType, props };\n } else {\n delete this.currentFilter[dataField];\n }\n } else if (!value || value.trim() === '') {\n delete this.currentFilter[dataField];\n } else {\n this.currentFilter[dataField] = { value: value.trim(), type: filterType, props };\n }\n this.emit('onFilterChange', this.currentFilter);\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// src/Filter.js","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nfunction EventEmitter() {\n this._events = this._events || {};\n this._maxListeners = this._maxListeners || undefined;\n}\nmodule.exports = EventEmitter;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nEventEmitter.defaultMaxListeners = 10;\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function(n) {\n if (!isNumber(n) || n < 0 || isNaN(n))\n throw TypeError('n must be a positive number');\n this._maxListeners = n;\n return this;\n};\n\nEventEmitter.prototype.emit = function(type) {\n var er, handler, len, args, i, listeners;\n\n if (!this._events)\n this._events = {};\n\n // If there is no 'error' event listener then throw.\n if (type === 'error') {\n if (!this._events.error ||\n (isObject(this._events.error) && !this._events.error.length)) {\n er = arguments[1];\n if (er instanceof Error) {\n throw er; // Unhandled 'error' event\n } else {\n // At least give some kind of context to the user\n var err = new Error('Uncaught, unspecified \"error\" event. (' + er + ')');\n err.context = er;\n throw err;\n }\n }\n }\n\n handler = this._events[type];\n\n if (isUndefined(handler))\n return false;\n\n if (isFunction(handler)) {\n switch (arguments.length) {\n // fast cases\n case 1:\n handler.call(this);\n break;\n case 2:\n handler.call(this, arguments[1]);\n break;\n case 3:\n handler.call(this, arguments[1], arguments[2]);\n break;\n // slower\n default:\n args = Array.prototype.slice.call(arguments, 1);\n handler.apply(this, args);\n }\n } else if (isObject(handler)) {\n args = Array.prototype.slice.call(arguments, 1);\n listeners = handler.slice();\n len = listeners.length;\n for (i = 0; i < len; i++)\n listeners[i].apply(this, args);\n }\n\n return true;\n};\n\nEventEmitter.prototype.addListener = function(type, listener) {\n var m;\n\n if (!isFunction(listener))\n throw TypeError('listener must be a function');\n\n if (!this._events)\n this._events = {};\n\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (this._events.newListener)\n this.emit('newListener', type,\n isFunction(listener.listener) ?\n listener.listener : listener);\n\n if (!this._events[type])\n // Optimize the case of one listener. Don't need the extra array object.\n this._events[type] = listener;\n else if (isObject(this._events[type]))\n // If we've already got an array, just append.\n this._events[type].push(listener);\n else\n // Adding the second element, need to change to array.\n this._events[type] = [this._events[type], listener];\n\n // Check for listener leak\n if (isObject(this._events[type]) && !this._events[type].warned) {\n if (!isUndefined(this._maxListeners)) {\n m = this._maxListeners;\n } else {\n m = EventEmitter.defaultMaxListeners;\n }\n\n if (m && m > 0 && this._events[type].length > m) {\n this._events[type].warned = true;\n console.error('(node) warning: possible EventEmitter memory ' +\n 'leak detected. %d listeners added. ' +\n 'Use emitter.setMaxListeners() to increase limit.',\n this._events[type].length);\n if (typeof console.trace === 'function') {\n // not supported in IE 10\n console.trace();\n }\n }\n }\n\n return this;\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.once = function(type, listener) {\n if (!isFunction(listener))\n throw TypeError('listener must be a function');\n\n var fired = false;\n\n function g() {\n this.removeListener(type, g);\n\n if (!fired) {\n fired = true;\n listener.apply(this, arguments);\n }\n }\n\n g.listener = listener;\n this.on(type, g);\n\n return this;\n};\n\n// emits a 'removeListener' event iff the listener was removed\nEventEmitter.prototype.removeListener = function(type, listener) {\n var list, position, length, i;\n\n if (!isFunction(listener))\n throw TypeError('listener must be a function');\n\n if (!this._events || !this._events[type])\n return this;\n\n list = this._events[type];\n length = list.length;\n position = -1;\n\n if (list === listener ||\n (isFunction(list.listener) && list.listener === listener)) {\n delete this._events[type];\n if (this._events.removeListener)\n this.emit('removeListener', type, listener);\n\n } else if (isObject(list)) {\n for (i = length; i-- > 0;) {\n if (list[i] === listener ||\n (list[i].listener && list[i].listener === listener)) {\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (list.length === 1) {\n list.length = 0;\n delete this._events[type];\n } else {\n list.splice(position, 1);\n }\n\n if (this._events.removeListener)\n this.emit('removeListener', type, listener);\n }\n\n return this;\n};\n\nEventEmitter.prototype.removeAllListeners = function(type) {\n var key, listeners;\n\n if (!this._events)\n return this;\n\n // not listening for removeListener, no need to emit\n if (!this._events.removeListener) {\n if (arguments.length === 0)\n this._events = {};\n else if (this._events[type])\n delete this._events[type];\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n for (key in this._events) {\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = {};\n return this;\n }\n\n listeners = this._events[type];\n\n if (isFunction(listeners)) {\n this.removeListener(type, listeners);\n } else if (listeners) {\n // LIFO order\n while (listeners.length)\n this.removeListener(type, listeners[listeners.length - 1]);\n }\n delete this._events[type];\n\n return this;\n};\n\nEventEmitter.prototype.listeners = function(type) {\n var ret;\n if (!this._events || !this._events[type])\n ret = [];\n else if (isFunction(this._events[type]))\n ret = [this._events[type]];\n else\n ret = this._events[type].slice();\n return ret;\n};\n\nEventEmitter.prototype.listenerCount = function(type) {\n if (this._events) {\n var evlistener = this._events[type];\n\n if (isFunction(evlistener))\n return 1;\n else if (evlistener)\n return evlistener.length;\n }\n return 0;\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n return emitter.listenerCount(type);\n};\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// (webpack)/~/node-libs-browser/~/events/events.js\n// module id = 62\n// module chunks = 0","/* eslint default-case: 0 */\n/* eslint guard-for-in: 0 */\nimport React, { Component, PropTypes } from 'react';\nimport classSet from 'classnames';\nimport Const from './Const';\nimport Util from './util';\nimport DateFilter from './filters/Date';\nimport TextFilter from './filters/Text';\nimport RegexFilter from './filters/Regex';\nimport SelectFilter from './filters/Select';\nimport NumberFilter from './filters/Number';\n\nclass TableHeaderColumn extends Component {\n\n constructor(props) {\n super(props);\n this.handleFilter = this.handleFilter.bind(this);\n }\n\n componentWillReceiveProps(nextProps) {\n if (nextProps.reset) {\n this.cleanFiltered();\n }\n }\n\n handleColumnClick = () => {\n if (this.props.isOnlyHead || !this.props.dataSort) return;\n const order = this.props.sort === Const.SORT_DESC ? Const.SORT_ASC : Const.SORT_DESC;\n this.props.onSort(order, this.props.dataField);\n }\n\n handleFilter(value, type) {\n const { filter } = this.props;\n filter.emitter.handleFilter(this.props.dataField, value, type, filter);\n }\n\n getFilters() {\n const { headerText, children } = this.props;\n switch (this.props.filter.type) {\n case Const.FILTER_TYPE.TEXT: {\n return (\n \n );\n }\n case Const.FILTER_TYPE.REGEX: {\n return (\n \n );\n }\n case Const.FILTER_TYPE.SELECT: {\n return (\n \n );\n }\n case Const.FILTER_TYPE.NUMBER: {\n return (\n \n );\n }\n case Const.FILTER_TYPE.DATE: {\n return (\n \n );\n }\n case Const.FILTER_TYPE.CUSTOM: {\n const elm = this.props.filter.getElement(this.handleFilter,\n this.props.filter.customFilterParameters);\n\n return React.cloneElement(elm, { ref: 'customFilter' });\n }\n }\n }\n\n componentDidMount() {\n this.refs['header-col'].setAttribute('data-field', this.props.dataField);\n }\n\n render() {\n let defaultCaret;\n let sortCaret;\n const {\n headerText,\n dataAlign,\n dataField,\n headerAlign,\n headerTitle,\n hidden,\n sort,\n dataSort,\n sortIndicator,\n children,\n caretRender,\n className,\n isOnlyHead,\n thStyle: style\n } = this.props;\n const thStyle = {\n textAlign: headerAlign || dataAlign,\n display: hidden ? 'none' : null,\n ...style\n };\n if (!isOnlyHead) {\n if (sortIndicator) {\n defaultCaret = (!dataSort) ? null : (\n \n \n \n \n \n \n \n \n );\n }\n sortCaret = sort ? Util.renderReactSortCaret(sort) : defaultCaret;\n if (caretRender) {\n sortCaret = caretRender(sort, dataField);\n }\n }\n\n const classes = classSet(\n typeof className === 'function' ? className() : className,\n !isOnlyHead && dataSort ? 'sort-column' : '');\n\n const attr = {};\n if (headerTitle) {\n if (typeof children === 'string' && !headerText) {\n attr.title = children;\n } else {\n attr.title = headerText;\n }\n }\n return (\n \n { children }{ sortCaret }\n e.stopPropagation() }>\n { this.props.filter && !isOnlyHead ? this.getFilters() : null }\n \n | \n );\n }\n\n cleanFiltered() {\n if (this.props.filter === undefined) {\n return;\n }\n\n switch (this.props.filter.type) {\n case Const.FILTER_TYPE.TEXT: {\n this.refs.textFilter.cleanFiltered();\n break;\n }\n case Const.FILTER_TYPE.REGEX: {\n this.refs.regexFilter.cleanFiltered();\n break;\n }\n case Const.FILTER_TYPE.SELECT: {\n this.refs.selectFilter.cleanFiltered();\n break;\n }\n case Const.FILTER_TYPE.NUMBER: {\n this.refs.numberFilter.cleanFiltered();\n break;\n }\n case Const.FILTER_TYPE.DATE: {\n this.refs.dateFilter.cleanFiltered();\n break;\n }\n case Const.FILTER_TYPE.CUSTOM: {\n this.refs.customFilter.cleanFiltered();\n break;\n }\n }\n }\n\n applyFilter(val) {\n if (this.props.filter === undefined) return;\n switch (this.props.filter.type) {\n case Const.FILTER_TYPE.TEXT: {\n this.refs.textFilter.applyFilter(val);\n break;\n }\n case Const.FILTER_TYPE.REGEX: {\n this.refs.regexFilter.applyFilter(val);\n break;\n }\n case Const.FILTER_TYPE.SELECT: {\n this.refs.selectFilter.applyFilter(val);\n break;\n }\n case Const.FILTER_TYPE.NUMBER: {\n this.refs.numberFilter.applyFilter(val);\n break;\n }\n case Const.FILTER_TYPE.DATE: {\n this.refs.dateFilter.applyFilter(val);\n break;\n }\n }\n }\n}\n\nconst filterTypeArray = [];\nfor (const key in Const.FILTER_TYPE) {\n filterTypeArray.push(Const.FILTER_TYPE[key]);\n}\n\nTableHeaderColumn.propTypes = {\n dataField: PropTypes.string,\n dataAlign: PropTypes.string,\n headerAlign: PropTypes.string,\n headerTitle: PropTypes.bool,\n headerText: PropTypes.string,\n dataSort: PropTypes.bool,\n onSort: PropTypes.func,\n dataFormat: PropTypes.func,\n csvFormat: PropTypes.func,\n csvHeader: PropTypes.string,\n isKey: PropTypes.bool,\n editable: PropTypes.any,\n hidden: PropTypes.bool,\n hiddenOnInsert: PropTypes.bool,\n searchable: PropTypes.bool,\n className: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.func\n ]),\n width: PropTypes.string,\n sortFunc: PropTypes.func,\n sortFuncExtraData: PropTypes.any,\n columnClassName: PropTypes.any,\n editColumnClassName: PropTypes.any,\n invalidEditColumnClassName: PropTypes.any,\n columnTitle: PropTypes.bool,\n filterFormatted: PropTypes.bool,\n filterValue: PropTypes.func,\n sort: PropTypes.string,\n caretRender: PropTypes.func,\n formatExtraData: PropTypes.any,\n csvFormatExtraData: PropTypes.any,\n filter: PropTypes.shape({\n type: PropTypes.oneOf(filterTypeArray),\n delay: PropTypes.number,\n options: PropTypes.oneOfType([\n PropTypes.object, // for SelectFilter\n PropTypes.arrayOf(PropTypes.number) // for NumberFilter\n ]),\n numberComparators: PropTypes.arrayOf(PropTypes.string),\n emitter: PropTypes.object,\n placeholder: PropTypes.string,\n getElement: PropTypes.func,\n customFilterParameters: PropTypes.object,\n condition: PropTypes.oneOf([ Const.FILTER_COND_EQ, Const.FILTER_COND_LIKE ])\n }),\n sortIndicator: PropTypes.bool,\n export: PropTypes.bool,\n expandable: PropTypes.bool,\n tdAttr: PropTypes.object,\n tdStyle: PropTypes.object,\n thStyle: PropTypes.object,\n keyValidator: PropTypes.bool\n};\n\nTableHeaderColumn.defaultProps = {\n dataAlign: 'left',\n headerAlign: undefined,\n headerTitle: true,\n dataSort: false,\n dataFormat: undefined,\n csvFormat: undefined,\n csvHeader: undefined,\n isKey: false,\n editable: true,\n onSort: undefined,\n hidden: false,\n hiddenOnInsert: false,\n searchable: true,\n className: '',\n columnTitle: false,\n width: null,\n sortFunc: undefined,\n columnClassName: '',\n editColumnClassName: '',\n invalidEditColumnClassName: '',\n filterFormatted: false,\n filterValue: undefined,\n sort: undefined,\n formatExtraData: undefined,\n sortFuncExtraData: undefined,\n filter: undefined,\n sortIndicator: true,\n expandable: true,\n tdAttr: undefined,\n tdStyle: undefined,\n thStyle: undefined,\n keyValidator: false\n};\n\nexport default TableHeaderColumn;\n\n\n\n// WEBPACK FOOTER //\n// src/TableHeaderColumn.js","/* eslint quotes: 0 */\n/* eslint max-len: 0 */\nimport React, { Component, PropTypes } from 'react';\nimport Const from '../Const';\n\nconst legalComparators = [ '=', '>', '>=', '<', '<=', '!=' ];\n\nfunction dateParser(d) {\n return `${d.getFullYear()}-${(\"0\" + (d.getMonth() + 1)).slice(-2)}-${(\"0\" + d.getDate()).slice(-2)}`;\n}\n\nclass DateFilter extends Component {\n constructor(props) {\n super(props);\n this.dateComparators = this.props.dateComparators || legalComparators;\n this.filter = this.filter.bind(this);\n this.onChangeComparator = this.onChangeComparator.bind(this);\n }\n\n setDefaultDate() {\n let defaultDate = '';\n const { defaultValue } = this.props;\n if (defaultValue && defaultValue.date) {\n // Set the appropriate format for the input type=date, i.e. \"YYYY-MM-DD\"\n defaultDate = dateParser(new Date(defaultValue.date));\n }\n return defaultDate;\n }\n\n onChangeComparator(event) {\n let date = this.refs.inputDate.value;\n const comparator = event.target.value;\n if (date === '') {\n return;\n }\n date = new Date(date);\n this.props.filterHandler({ date, comparator }, Const.FILTER_TYPE.DATE);\n }\n\n getComparatorOptions() {\n const optionTags = [];\n optionTags.push();\n for (let i = 0; i < this.dateComparators.length; i++) {\n optionTags.push(\n \n );\n }\n return optionTags;\n }\n\n filter(event) {\n const comparator = this.refs.dateFilterComparator.value;\n const dateValue = event.target.value;\n if (dateValue) {\n this.props.filterHandler({ date: new Date(dateValue), comparator }, Const.FILTER_TYPE.DATE);\n } else {\n this.props.filterHandler(null, Const.FILTER_TYPE.DATE);\n }\n }\n\n cleanFiltered() {\n const value = this.setDefaultDate();\n const comparator = (this.props.defaultValue) ? this.props.defaultValue.comparator : '';\n this.setState({ isPlaceholderSelected: (value === '') });\n this.refs.dateFilterComparator.value = comparator;\n this.refs.inputDate.value = value;\n this.props.filterHandler({ date: new Date(value), comparator }, Const.FILTER_TYPE.DATE);\n }\n\n applyFilter(filterDateObj) {\n const { date, comparator } = filterDateObj;\n this.setState({ isPlaceholderSelected: (date === '') });\n this.refs.dateFilterComparator.value = comparator;\n this.refs.inputDate.value = dateParser(date);\n this.props.filterHandler({ date, comparator }, Const.FILTER_TYPE.DATE);\n }\n\n componentDidMount() {\n const comparator = this.refs.dateFilterComparator.value;\n const dateValue = this.refs.inputDate.value;\n if (comparator && dateValue) {\n this.props.filterHandler({ date: new Date(dateValue), comparator }, Const.FILTER_TYPE.DATE);\n }\n }\n\n render() {\n const { defaultValue } = this.props;\n return (\n \n \n \n
\n );\n }\n}\n\nDateFilter.propTypes = {\n filterHandler: PropTypes.func.isRequired,\n defaultValue: PropTypes.shape({\n date: PropTypes.object,\n comparator: PropTypes.oneOf(legalComparators)\n }),\n /* eslint consistent-return: 0 */\n dateComparators: function(props, propName) {\n if (!props[propName]) {\n return;\n }\n for (let i = 0; i < props[propName].length; i++) {\n let comparatorIsValid = false;\n for (let j = 0; j < legalComparators.length; j++) {\n if (legalComparators[j] === props[propName][i]) {\n comparatorIsValid = true;\n break;\n }\n }\n if (!comparatorIsValid) {\n return new Error(`Date comparator provided is not supported.\n Use only ${legalComparators}`);\n }\n }\n },\n columnName: PropTypes.string\n};\n\nexport default DateFilter;\n\n\n\n// WEBPACK FOOTER //\n// src/filters/Date.js","import React, { Component, PropTypes } from 'react';\nimport Const from '../Const';\n\nclass TextFilter extends Component {\n constructor(props) {\n super(props);\n this.filter = this.filter.bind(this);\n this.timeout = null;\n }\n\n filter(event) {\n if (this.timeout) {\n clearTimeout(this.timeout);\n }\n const filterValue = event.target.value;\n this.timeout = setTimeout(() => {\n this.props.filterHandler(filterValue, Const.FILTER_TYPE.TEXT);\n }, this.props.delay);\n }\n\n cleanFiltered() {\n const value = this.props.defaultValue ? this.props.defaultValue : '';\n this.refs.inputText.value = value;\n this.props.filterHandler(value, Const.FILTER_TYPE.TEXT);\n }\n\n applyFilter(filterText) {\n this.refs.inputText.value = filterText;\n this.props.filterHandler(filterText, Const.FILTER_TYPE.TEXT);\n }\n\n componentDidMount() {\n const defaultValue = this.refs.inputText.value;\n if (defaultValue) {\n this.props.filterHandler(defaultValue, Const.FILTER_TYPE.TEXT);\n }\n }\n\n componentWillUnmount() {\n clearTimeout(this.timeout);\n }\n\n render() {\n const { placeholder, columnName, defaultValue } = this.props;\n return (\n \n );\n }\n}\n\nTextFilter.propTypes = {\n filterHandler: PropTypes.func.isRequired,\n defaultValue: PropTypes.string,\n delay: PropTypes.number,\n placeholder: PropTypes.string,\n columnName: PropTypes.string\n};\n\nTextFilter.defaultProps = {\n delay: Const.FILTER_DELAY\n};\n\nexport default TextFilter;\n\n\n\n// WEBPACK FOOTER //\n// src/filters/Text.js","import React, { Component, PropTypes } from 'react';\nimport Const from '../Const';\n\nclass RegexFilter extends Component {\n constructor(props) {\n super(props);\n this.filter = this.filter.bind(this);\n this.timeout = null;\n }\n\n filter(event) {\n if (this.timeout) {\n clearTimeout(this.timeout);\n }\n const filterValue = event.target.value;\n this.timeout = setTimeout(() => {\n this.props.filterHandler(filterValue, Const.FILTER_TYPE.REGEX);\n }, this.props.delay);\n }\n\n cleanFiltered() {\n const value = this.props.defaultValue ? this.props.defaultValue : '';\n this.refs.inputText.value = value;\n this.props.filterHandler(value, Const.FILTER_TYPE.TEXT);\n }\n\n applyFilter(filterRegx) {\n this.refs.inputText.value = filterRegx;\n this.props.filterHandler(filterRegx, Const.FILTER_TYPE.REGEX);\n }\n\n componentDidMount() {\n const value = this.refs.inputText.value;\n if (value) {\n this.props.filterHandler(value, Const.FILTER_TYPE.REGEX);\n }\n }\n\n componentWillUnmount() {\n clearTimeout(this.timeout);\n }\n\n render() {\n const { defaultValue, placeholder, columnName } = this.props;\n return (\n \n );\n }\n}\n\nRegexFilter.propTypes = {\n filterHandler: PropTypes.func.isRequired,\n defaultValue: PropTypes.string,\n delay: PropTypes.number,\n placeholder: PropTypes.string,\n columnName: PropTypes.string\n};\n\nRegexFilter.defaultProps = {\n delay: Const.FILTER_DELAY\n};\n\nexport default RegexFilter;\n\n\n\n// WEBPACK FOOTER //\n// src/filters/Regex.js","import React, { Component, PropTypes } from 'react';\nimport classSet from 'classnames';\nimport Const from '../Const';\n\nclass SelectFilter extends Component {\n constructor(props) {\n super(props);\n this.filter = this.filter.bind(this);\n this.state = {\n isPlaceholderSelected: (this.props.defaultValue === undefined ||\n !this.props.options.hasOwnProperty(this.props.defaultValue))\n };\n }\n\n componentWillReceiveProps(nextProps) {\n const isPlaceholderSelected = (nextProps.defaultValue === undefined ||\n !nextProps.options.hasOwnProperty(nextProps.defaultValue));\n this.setState({\n isPlaceholderSelected\n });\n }\n\n componentDidUpdate(prevProps) {\n let needFilter = false;\n if (this.props.defaultValue !== prevProps.defaultValue) {\n needFilter = true;\n } else if (this.props.options !== prevProps.options) {\n needFilter = true;\n }\n if (needFilter) {\n const value = this.refs.selectInput.value;\n if (value) {\n this.props.filterHandler(value, Const.FILTER_TYPE.SELECT);\n }\n }\n }\n\n filter(event) {\n const { value } = event.target;\n this.setState({ isPlaceholderSelected: (value === '') });\n this.props.filterHandler(value, Const.FILTER_TYPE.SELECT);\n }\n\n cleanFiltered() {\n const value = (this.props.defaultValue !== undefined) ? this.props.defaultValue : '';\n this.setState({ isPlaceholderSelected: (value === '') });\n this.refs.selectInput.value = value;\n this.props.filterHandler(value, Const.FILTER_TYPE.SELECT);\n }\n\n applyFilter(filterOption) {\n filterOption = filterOption + '';\n this.setState({ isPlaceholderSelected: (filterOption === '') });\n this.refs.selectInput.value = filterOption;\n this.props.filterHandler(filterOption, Const.FILTER_TYPE.SELECT);\n }\n\n getOptions() {\n const optionTags = [];\n const { options, placeholder, columnName, selectText } = this.props;\n const selectTextValue = (selectText !== undefined) ? selectText : 'Select';\n optionTags.push((\n \n ));\n Object.keys(options).map(key => {\n optionTags.push();\n });\n return optionTags;\n }\n\n componentDidMount() {\n const value = this.refs.selectInput.value;\n if (value) {\n this.props.filterHandler(value, Const.FILTER_TYPE.SELECT);\n }\n }\n\n render() {\n const selectClass = classSet('filter', 'select-filter', 'form-control',\n { 'placeholder-selected': this.state.isPlaceholderSelected });\n\n return (\n \n );\n }\n}\n\nSelectFilter.propTypes = {\n filterHandler: PropTypes.func.isRequired,\n options: PropTypes.object.isRequired,\n placeholder: PropTypes.string,\n columnName: PropTypes.string\n};\n\nexport default SelectFilter;\n\n\n\n// WEBPACK FOOTER //\n// src/filters/Select.js","import React, { Component, PropTypes } from 'react';\nimport classSet from 'classnames';\nimport Const from '../Const';\n\nconst legalComparators = [ '=', '>', '>=', '<', '<=', '!=' ];\n\nclass NumberFilter extends Component {\n constructor(props) {\n super(props);\n this.numberComparators = this.props.numberComparators || legalComparators;\n this.timeout = null;\n this.state = {\n isPlaceholderSelected: (this.props.defaultValue === undefined ||\n this.props.defaultValue.number === undefined ||\n (this.props.options &&\n this.props.options.indexOf(this.props.defaultValue.number) === -1))\n };\n this.onChangeNumber = this.onChangeNumber.bind(this);\n this.onChangeNumberSet = this.onChangeNumberSet.bind(this);\n this.onChangeComparator = this.onChangeComparator.bind(this);\n }\n\n onChangeNumber(event) {\n const comparator = this.refs.numberFilterComparator.value;\n if (comparator === '') {\n return;\n }\n if (this.timeout) {\n clearTimeout(this.timeout);\n }\n const filterValue = event.target.value;\n this.timeout = setTimeout(() => {\n this.props.filterHandler({ number: filterValue, comparator }, Const.FILTER_TYPE.NUMBER);\n }, this.props.delay);\n }\n\n onChangeNumberSet(event) {\n const comparator = this.refs.numberFilterComparator.value;\n const { value } = event.target;\n this.setState({ isPlaceholderSelected: (value === '') });\n if (comparator === '') {\n return;\n }\n this.props.filterHandler({ number: value, comparator }, Const.FILTER_TYPE.NUMBER);\n }\n\n onChangeComparator(event) {\n const value = this.refs.numberFilter.value;\n const comparator = event.target.value;\n if (value === '') {\n return;\n }\n this.props.filterHandler({ number: value, comparator }, Const.FILTER_TYPE.NUMBER);\n }\n\n cleanFiltered() {\n const value = (this.props.defaultValue) ? this.props.defaultValue.number : '';\n const comparator = (this.props.defaultValue) ? this.props.defaultValue.comparator : '';\n this.setState({ isPlaceholderSelected: (value === '') });\n this.refs.numberFilterComparator.value = comparator;\n this.refs.numberFilter.value = value;\n this.props.filterHandler({ number: value, comparator }, Const.FILTER_TYPE.NUMBER);\n }\n\n applyFilter(filterObj) {\n const { number, comparator } = filterObj;\n this.setState({ isPlaceholderSelected: (number === '') });\n this.refs.numberFilterComparator.value = comparator;\n this.refs.numberFilter.value = number;\n this.props.filterHandler({ number, comparator }, Const.FILTER_TYPE.NUMBER);\n }\n\n getComparatorOptions() {\n const optionTags = [];\n optionTags.push();\n for (let i = 0; i < this.numberComparators.length; i++) {\n optionTags.push(\n \n );\n }\n return optionTags;\n }\n\n getNumberOptions() {\n const optionTags = [];\n const { options } = this.props;\n\n optionTags.push(\n \n );\n for (let i = 0; i < options.length; i++) {\n optionTags.push();\n }\n return optionTags;\n }\n\n componentDidMount() {\n const comparator = this.refs.numberFilterComparator.value;\n const number = this.refs.numberFilter.value;\n if (comparator && number) {\n this.props.filterHandler({ number, comparator }, Const.FILTER_TYPE.NUMBER);\n }\n }\n\n componentWillUnmount() {\n clearTimeout(this.timeout);\n }\n\n render() {\n const selectClass = classSet(\n 'select-filter', 'number-filter-input', 'form-control',\n { 'placeholder-selected': this.state.isPlaceholderSelected });\n\n return (\n \n \n {\n (this.props.options) ?\n :\n \n }\n
\n );\n }\n}\n\nNumberFilter.propTypes = {\n filterHandler: PropTypes.func.isRequired,\n options: PropTypes.arrayOf(PropTypes.number),\n defaultValue: PropTypes.shape({\n number: PropTypes.number,\n comparator: PropTypes.oneOf(legalComparators)\n }),\n delay: PropTypes.number,\n /* eslint consistent-return: 0 */\n numberComparators: function(props, propName) {\n if (!props[propName]) {\n return;\n }\n for (let i = 0; i < props[propName].length; i++) {\n let comparatorIsValid = false;\n for (let j = 0; j < legalComparators.length; j++) {\n if (legalComparators[j] === props[propName][i]) {\n comparatorIsValid = true;\n break;\n }\n }\n if (!comparatorIsValid) {\n return new Error(`Number comparator provided is not supported.\n Use only ${legalComparators}`);\n }\n }\n },\n placeholder: PropTypes.string,\n columnName: PropTypes.string\n};\n\nNumberFilter.defaultProps = {\n delay: Const.FILTER_DELAY\n};\n\nexport default NumberFilter;\n\n\n\n// WEBPACK FOOTER //\n// src/filters/Number.js","import React, { Component, PropTypes } from 'react';\n\nclass ButtonGroup extends Component {\n render() {\n const {\n className,\n sizeClass,\n children,\n ...rest\n } = this.props;\n return (\n \n { children }\n
\n );\n }\n}\n\nButtonGroup.propTypes = {\n sizeClass: PropTypes.string,\n className: PropTypes.string\n};\nButtonGroup.defaultProps = {\n sizeClass: 'btn-group-sm',\n className: ''\n};\n\nexport default ButtonGroup;\n\n\n\n// WEBPACK FOOTER //\n// src/toolbar/ButtonGroup.js"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACtCA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;ACxCA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;AAAA;AACA;;;;;;;;;AAfA;AACA;AACA;AACA;AAaA;;;AAEA;AAAA;AACA;AADA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AARA;AA1BA;AAoCA;AACA;;;AACA;AAAA;AACA;AADA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AANA;AAQA;;;AAEA;AACA;AADA;AAAA;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAzBA;AA2BA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AANA;AAQA;;;AAEA;AACA;AADA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAJA;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAJA;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AADA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAFA;AAIA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;AAOA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;AAQA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AAFA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAlBA;AAAA;AACA;AAmBA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AArBA;AAuBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA7DA;AA+DA;AACA;AACA;AArEA;AAwEA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AAFA;AAIA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAFA;AAIA;;;AAEA;AAAA;AACA;AAAA;AACA;AACA;AACA;;;AAEA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAFA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AADA;AAGA;;;AAEA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AAKA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AAFA;AAAA;AAAA;AAAA;AACA;AAGA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AAKA;;;AAEA;AACA;AACA;AACA;AAHA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAFA;AAIA;AACA;;;AAEA;AAAA;AAAA;AAAA;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAFA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAFA;AACA;AAIA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAFA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAJA;AAMA;AACA;AACA;AACA;AACA;AACA;AAHA;AAKA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAFA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAFA;AAIA;;;AAEA;AACA;AACA;AAFA;AAAA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAPA;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AALA;AACA;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAFA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAFA;AAIA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AANA;AACA;AAOA;AACA;AAEA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA1BA;AA6BA;AACA;AACA;;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAEA;AAQA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAZA;AAcA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AALA;AAOA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAvCA;AA0CA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AAAA;AACA;AAEA;AACA;AAEA;AACA;AACA;AACA;AAGA;AAEA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AAHA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AAKA;AACA;AACA;AACA;AACA;AACA;AAFA;AAIA;AACA;AACA;AACA;AACA;AACA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAjBA;AAmBA;AACA;AACA;AACA;AACA;AACA;AALA;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA5EA;AA8EA;AACA;AADA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAJA;AA9IA;AAqJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAZA;AAcA;AACA;AACA;AACA;AACA;AACA;AALA;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AArEA;AAuEA;AACA;AADA;AAGA;AACA;AACA;AArIA;AACA;AAuIA;;;;;;;;;AA//CA;AACA;;;;;;;;;;ACjBA;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AANA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAvDA;AACA;AAyDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AApEA;AACA;;;;;;;;;;;;;;;;;;ACDA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;;;;;;;;;;;AACA;;;;;;;;;;;AACA;AAAA;AAAA;;;AACA;AAAA;AAAA;;;AACA;AACA;AACA;;;AACA;AACA;AAEA;AACA;AACA;AAEA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AAwEA;;;;;;;;;AAtEA;AACA;AAIA;AACA;AACA;AAFA;AACA;AAIA;AAAA;AAAA;AACA;AAGA;AACA;AACA;AACA;AACA;AAGA;AAAA;AAAA;AAAA;AAMA;AAAA;AAAA;AAAA;AA3BA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AA6BA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AADA;AAIA;AACA;AACA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AACA;AADA;AAFA;AADA;AASA;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAHA;AAMA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAHA;AAMA;AACA;AACA;AACA;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAnBA;AACA;AAqBA;;;;;;;;;AAzJA;AACA;AAeA;AACA;AAWA;AACA;;;;;;;;;;ACnCA;;;;;;;;;;;;;;ACAA;AACA;;;;;;;;;;;AACA;;;;;;;;;;;AAEA;AACA;AACA;AAAA;AACA;AACA;AAFA;AAKA;;;;;;AAEA;AACA;AACA;AAFA;AAIA;;;;;;;;;AAfA;AACA;;;;;;;;;;;;;;;;;;;;;;ACHA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;;;;;;;;;AACA;AACA;AACA;AACA;AACA;;;AACA;AAAA;AACA;AADA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AACA;AACA;AADA;AAFA;AAKA;AACA;;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAJA;AACA;AAMA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAGA;AAGA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAFA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAlBA;AAqBA;AACA;AACA;AACA;AACA;AACA;AAEA;AAKA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AAGA;AAnBA;AACA;AAqBA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAPA;AAUA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAEA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAHA;AADA;AAQA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AACA;AADA;AAFA;AAHA;AAWA;;;AAEA;AACA;AADA;AAAA;AAAA;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAFA;AAIA;AACA;AACA;AACA;AACA;AAGA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AADA;AAAA;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AAEA;AAIA;AACA;;;AAEA;AAAA;AACA;AADA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AASA;AACA;AACA;AACA;AAGA;;AAEA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AARA;AASA;AACA;;;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AATA;AAAA;AAAA;AACA;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAFA;AADA;AACA;AAMA;AAEA;AAEA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AADA;AACA;AADA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AAEA;AAAA;AAAA;AARA;AAYA;;;AAEA;AAAA;AACA;AADA;AACA;AAAA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAAA;AAAA;AACA;AAHA;AAMA;;;AAEA;AACA;AAEA;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA3BA;AA6BA;;;;;;;;;AAxeA;AACA;AAGA;AACA;;;;;;;;;;;;;;;;ACbA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;;;AACA;AACA;AACA;AACA;AADA;AAGA;AACA;AAAA;AACA;AADA;AAIA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AAFA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAFA;AAIA;AACA;AACA;AACA;AACA;AADA;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAGA;AACA;AAGA;AARA;AAWA;AA1FA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACLA;AACA;;;AAAA;AACA;;;;;;;;;AAHA;AACA;AACA;AAEA;;;AAEA;AAAA;AACA;AADA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AACA;AAFA;AAGA;AACA;;;AACA;AAAA;AACA;AAAA;AACA;AACA;AAHA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;;;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AAGA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AADA;AAAA;AAAA;AAAA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAFA;AACA;AAOA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAJA;AAMA;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAXA;AAaA;AACA;AACA;AAFA;AAIA;;;;;;;;;AAhHA;AACA;;;;;;;;;;;;;;;;;;;;;;ACLA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;;;;;;;;;AACA;;;AAEA;AAAA;AACA;AADA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAEA;AACA;AACA;AACA;;;AADA;AAAA;AACA;AACA;AACA;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;;;AAEA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAgBA;AACA;AACA;AAFA;AACA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAIA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAFA;AAIA;AAJA;AAOA;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAfA;AACA;AAiBA;AACA;AACA;AACA;AACA;AACA;AALA;AAOA;;;;;;;;;AAnLA;AACA;;;;;;;;;;;;;;;;;;;;;;ACLA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;AAAA;AACA;;;;;;;;;;;AACA;;;AACA;AAAA;AACA;AADA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AACA;AAFA;AAAA;AAAA;AAAA;AACA;AAGA;AACA;AACA;AAFA;AAJA;AAQA;AACA;;;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;;;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;;;;;AASA;AACA;AARA;AACA;AACA;AACA;AACA;AACA;;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AAFA;AAAA;AAAA;AACA;AAGA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA;AACA;AADA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AASA;AACA;AACA;AACA;AAHA;AAKA;AAfA;AAAA;AAkBA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AADA;AAGA;AAHA;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAJA;AAOA;;;AAEA;AACA;AACA;AACA;AACA;AACA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAOA;AACA;AACA;AACA;AAlBA;AACA;AAqBA;;;;;;;;;AAtOA;AACA;;;;;;;;;;;;;;;;;;;;ACPA;AACA;;;;;AACA;AACA;AAEA;AACA;AACA;AAEA;AAEA;AACA;AACA;AAEA;AACA;AAEA;AAGA;AACA;AAEA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AAIA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAEA;AAPA;AAQA;AACA;AACA;AAAA;AACA;AADA;AAIA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAFA;AAAA;AAMA;AACA;AAAA;AACA;AAAA;AACA;AACA;AAFA;AADA;AApBA;AACA;AADA;AA0BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AAEA;AACA;AAGA;AAAA;AACA;AAGA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;;;;;;;;;AA7GA;AACA;;;;;;;;;;;;;;;;;ACHA;AACA;;;;;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AAHA;AAKA;AACA;AACA;;;;;;;;AAfA;;;;;;;;;ACFA;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC3SA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACxNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACreA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACvDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AClEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC9DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACtEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC7FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACnHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;AClKA;AACA;;;AAAA;AACA;;;;;;;;;AAHA;AACA;AACA;AAEA;;;;;;;;;;;AAEA;AACA;AACA;AACA;AADA;AAGA;AAJA;AASA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AADA;AADA;AAMA;;;;;;AAGA;;;;;;;;;AAtBA;AACA;;;;;;;;;;;;;;;;;;;;ACLA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;;;;;;;;;AACA;;;AAEA;AAAA;AACA;AADA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AACA;AACA;AADA;AAFA;AAKA;AACA;;;AACA;AACA;AACA;;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AADA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AADA;AAGA;;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AADA;AACA;AADA;AACA;AADA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AARA;AACA;AAcA;AACA;AACA;AAAA;AAEA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AADA;AAGA;AAAA;AAAA;AACA;AACA;AAFA;AAJA;AAHA;AAeA;;;AAEA;AAAA;AACA;AAAA;AACA;AACA;AAHA;AAAA;AAAA;AAAA;AAAA;AACA;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AANA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AANA;AADA;AAUA;AACA;AAEA;AACA;AACA;AACA;AACA;AALA;AAQA;AACA;AACA;;;AAEA;AAAA;AACA;AADA;AACA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA;AAEA;AACA;AACA;AACA;AAGA;AAEA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AALA;AAQA;AACA;AAIA;AACA;AAAA;AACA;AADA;AAIA;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AApBA;AACA;AAsBA;AACA;AACA;AAFA;AACA;AAIA;;;;;;;;;AAlTA;AACA;;;;;;;;;;;;;;;;;;ACPA;AACA;;;AAAA;AACA;;;;;;;;;;;AACA;;;AAEA;AAAA;AACA;AADA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAEA;AACA;;;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AAJA;AAMA;AACA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AADA;AAIA;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AANA;AACA;AAQA;;;;;;;;;AAlCA;AACA;;;;;;;;;;;;;;;;;;ACJA;AACA;;;;;;;;;;;AACA;;;;;;;;;;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAUA;AACA;AACA;AACA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAFA;AALA;AAUA;AAAA;AAAA;AACA;AADA;AAXA;AAgBA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AARA;AAUA;AACA;AACA;AACA;AACA;AACA;AALA;AACA;AAQA;;;;;;;;;AAvDA;AACA;;;;;;;;;;;;;;;;;;;;;;ACDA;AACA;;;AAAA;AACA;;;AACA;AACA;;;AACA;AACA;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;;;;;;;AAfA;AACA;AAGA;AACA;AACA;AACA;AACA;AAQA;;;AAIA;AAAA;AACA;AADA;AACA;AADA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAqJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA3KA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAJA;AAJA;AAUA;AACA;;;AACA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AACA;AACA;AAGA;;;AAEA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AAIA;;;AAEA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAFA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AAKA;AACA;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;AADA;AAGA;AACA;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;;;AA0BA;AACA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AAAA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAJA;AAMA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAJA;AAOA;AACA;AA3EA;AAAA;AAAA;AAAA;AAAA;AACA;AA4EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AARA;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;AANA;AAXA;AAoBA;AACA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AADA;AAGA;AAAA;AAAA;AACA;AADA;AAJA;AASA;AACA;AACA;AACA;AAAA;AACA;AACA;AAFA;AAKA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AAKA;AACA;AACA;AACA;AAFA;AAIA;AACA;AACA;AADA;AAGA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AALA;AAOA;AACA;AACA;AAAA;AACA;AACA;AAAA;AAAA;AACA;AADA;AAFA;AAOA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AADA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AASA;AACA;AACA;AAOA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAJA;AAOA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AA9aA;AACA;AACA;AA+aA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAjCA;AACA;AAmCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAZA;AACA;AAcA;;;;;;;;;AApeA;AACA;;;;;;;;;;ACjBA;AACA;;;;;;;ACDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACzIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACpNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACjDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC5nBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;ACxDA;AACA;;;AACA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;;;;;;;AAPA;AACA;AAOA;AACA;AACA;;;;;;;;;;;;;;AAEA;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAEA;AACA;AAGA;AAIA;AAEA;AACA;AACA;AAhBA;AAoBA;;;;;;AAjFA;;;AAmFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AARA;AACA;AAUA;;;;;;;;AAhGA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;ACXA;AACA;;;;;;;;;;;AACA;;;;;;;;;;;;;;AAEA;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAMA;AACA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AAHA;AACA;AAMA;AACA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAFA;AACA;AAKA;AACA;AAAA;AACA;AADA;AAIA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AALA;AAOA;AACA;AACA;AACA;AACA;AACA;AALA;AACA;AAOA;;;;;;;;;AAtDA;AACA;;;;;;;;;;;;;;;;;;ACHA;AACA;;;AAAA;AACA;;;;;;;;;;;AACA;;;;;;;;;;;;;;AAEA;;;;AAMA;;;;;;;;;AANA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAUA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAHA;AAIA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAHA;AALA;AACA;AAWA;AACA;AAAA;AACA;AADA;AAIA;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAXA;AAaA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AATA;AACA;AAWA;;;;;;;;;AAvEA;AACA;;;;;;;;;;;;;;;;;;ACHA;AACA;;;AACA;AACA;;;;;;;;;AAJA;AACA;AACA;AAGA;;;;;;;;;;;AAEA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAQA;AACA;AACA;AAFA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAHA;AAMA;AA/BA;AAmCA;;;;;;AAEA;AACA;AACA;AACA;AAHA;AACA;AAKA;AACA;AACA;AAFA;AACA;AAIA;;;;;;;;;AA/EA;AACA;;;;;;;;;;;;;;;;;;;;ACNA;AACA;;;AAAA;AACA;;;;;;;;;;;;;AACA;AACA;AACA;;;;;;;;;;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AASA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAAA;AACA;AACA;AAFA;AAIA;AAJA;AAOA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AALA;AAOA;AACA;AACA;AACA;AACA;AACA;AALA;AACA;AAOA;;;;;;;;;AAzCA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;ACNA;AACA;;;AAAA;AACA;;;;;;;;;;;;;AACA;AACA;AACA;;;;;;;;;;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AASA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAAA;AACA;AACA;AAFA;AAIA;AAJA;AAOA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AALA;AAOA;AACA;AACA;AACA;AACA;AACA;AALA;AACA;AAOA;;;;;;;;;AAzCA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;ACNA;AACA;;;AAAA;AACA;;;;;;;;;;;;;AACA;AACA;AACA;;;;;;;;;;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AASA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAAA;AACA;AACA;AAFA;AAIA;AAJA;AAOA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AALA;AAOA;AACA;AACA;AACA;AACA;AACA;AALA;AACA;AAOA;;;;;;;;;AAzCA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;ACNA;AACA;;;AAAA;AACA;;;;;;;;;;;;;AACA;AACA;AACA;;;;;;;;;;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAUA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAJA;AAMA;AANA;AASA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AANA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AANA;AACA;AAQA;;;;;;;;;AA9CA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;ACNA;AACA;;;AAAA;AACA;;;;;;;;;;;;;AACA;;;;;;;;;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAOA;AAEA;AACA;AACA;AACA;AACA;AACA;AANA;AASA;;;;;;AAGA;AACA;AACA;AACA;AACA;AAJA;AAMA;AACA;AACA;AACA;AACA;AAJA;AACA;AAMA;;;;;;;;;AA5CA;AACA;;;;;;;;;;;;;;;;;;;;ACJA;AACA;;;;;;;;;;;;;AACA;AACA;AACA;;;;;;;;;;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAQA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AAAA;AACA;AACA;AACA;AAHA;AAKA;AALA;AAQA;;;;;;AAGA;AACA;AACA;AACA;AACA;AAJA;AAMA;AACA;AACA;AACA;AACA;AAJA;AACA;AAMA;;;;;;;;;AAxCA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;ACLA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;;;;;;;;;AACA;;;AAEA;AAAA;AACA;AADA;AACA;AADA;AAAA;AAAA;AACA;AACA;AAFA;AAGA;AACA;;;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAEA;AACA;AACA;AACA;AAHA;AAKA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAFA;AAIA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AAFA;AADA;AAOA;AACA;AACA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AADA;AADA;AADA;AAQA;;;;;;AAEA;AACA;AACA;AACA;AAHA;AAKA;;;;;;;;;AAnEA;AACA;;;;;;;;;;;;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AADA;AACA;;;;;;;AACA;AAEA;AAAA;AACA;AADA;AACA;AADA;AAAA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAFA;AAIA;AACA;AACA;AACA;AACA;AACA;AAFA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAPA;AAQA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAbA;AACA;AAMA;AAAA;AACA;AADA;AAOA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AACA;AAEA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;;;AAEA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAxCA;AA0CA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAGA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAEA;AACA;AAGA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAEA;AACA;AAGA;AACA;AACA;AACA;AACA;AAAA;AACA;AAGA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AA1DA;AA4DA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AAKA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA5BA;AA8BA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AA1BA;AA4BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AAAA;AAAA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AACA;AAGA;;;AAEA;AAAA;AACA;AAAA;AACA;AACA;AACA;;;;;;;;;;;;;;AA1pBA;;;;;;;;;;;;;;;ACHA;AACA;;;;;AACA;AACA;AACA;AACA;AARA;AACA;AACA;AACA;AACA;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAfA;AAiBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA1BA;AACA;AAeA;AAAA;AAWA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;;;;;;;;;AA5DA;AACA;AAEA;AACA;AA+CA;AACA;;;;;;;;;;;;AC5DA;;;;;;;;;;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAEA;AAFA;AAAA;AAIA;AACA;AALA;AAAA;AAAA;AASA;AACA;AACA;AAXA;AAAA;AAAA;AAeA;AACA;AACA;AACA;AAlBA;AAoBA;AApBA;AAAA;AAAA;AAAA;AAuBA;AACA;AAAA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AA/BA;AAiCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA7CA;AA+CA;AACA;AACA;AACA;AACA;AACA;AACA;AArDA;AAuDA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAMA;AACA;AACA;AARA;AAAA;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAtHA;AAAA;AAyHA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAQA;AACA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AA5KA;;;;;;;;;ACfA;;;;;;;ACAA;AACA;AACA;;;;;;;;;;;;;;;;;ACFA;AACA;;;AAAA;AACA;;;;;;;;;AACA;;;AACA;AAAA;AACA;AADA;AACA;AACA;AAFA;AAGA;AACA;;;AACA;AACA;AACA;AACA;AACA;AADA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AAlCA;;;;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;AC3SA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;;;;;;;AAXA;AACA;AACA;AACA;AASA;;;AAEA;AAAA;AACA;AADA;AACA;AADA;AAAA;AAAA;AACA;AACA;AAFA;AAGA;AACA;;;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AACA;AACA;;;AAEA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AACA;AAEA;AAEA;AACA;AAAA;AACA;AAEA;AAEA;AACA;AAAA;AACA;AAEA;AAEA;AACA;AAAA;AACA;AAEA;AAEA;AACA;AAAA;AACA;AAEA;AAEA;AACA;AAAA;AACA;AACA;AAEA;AACA;AApCA;AAsCA;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;AAFA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAkBA;AACA;AACA;AAFA;AAKA;AACA;AACA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AADA;AAGA;AAAA;AAAA;AACA;AADA;AAJA;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AANA;AAQA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AADA;AATA;AAcA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAxBA;AA0BA;;;AAEA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AApBA;AAsBA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAFA;AAIA;AACA;AACA;AACA;AACA;AACA;AAZA;AAcA;AACA;AACA;AACA;AACA;AACA;AACA;AArDA;AACA;AAuDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAhCA;AACA;AAkCA;;;;;;;;;AA1SA;AACA;AAyMA;AACA;;;;;;;;;;;;;;;;;;ACrNA;AACA;;;AAAA;AACA;;;;;;;;;AAJA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA;AAAA;AACA;AADA;AACA;AACA;AACA;AACA;AAJA;AAKA;AACA;;;AACA;AACA;AADA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AADA;AAIA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AACA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAJA;AAMA;AACA;AACA;AACA;AACA;AAXA;AAcA;;;;;;AAGA;AACA;AACA;AACA;AACA;AAFA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAzBA;AACA;AA2BA;;;;;;;;;AAlIA;AACA;AACA;AACA;AAGA;AACA;;;;;;;;;;;;;;;;;;ACZA;AACA;;;AAAA;AACA;;;;;;;;;;;AACA;;;AACA;AAAA;AACA;AADA;AACA;AACA;AACA;AAHA;AAIA;AACA;;;AACA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AALA;AACA;AAOA;AACA;AADA;AACA;AAGA;;;;;;;;;AAhEA;AACA;;;;;;;;;;;;;;;;;;ACJA;AACA;;;AAAA;AACA;;;;;;;;;;;AACA;;;AACA;AAAA;AACA;AADA;AACA;AACA;AACA;AAHA;AAIA;AACA;;;AACA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AALA;AACA;AAOA;AACA;AADA;AACA;AAGA;;;;;;;;;AAhEA;AACA;;;;;;;;;;;;;;;;;;ACJA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;;;;;;;;;AACA;;;AACA;AAAA;AACA;AADA;AACA;AACA;AACA;AACA;AADA;AAHA;AAOA;AACA;;;AACA;AACA;AAEA;AACA;AADA;AAGA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AADA;AAAA;AAAA;AAAA;AAAA;AACA;AAEA;AACA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AAEA;AACA;AAAA;AACA;AACA;AACA;AACA;AAJA;AAOA;;;;;;AAGA;AACA;AACA;AACA;AACA;AAJA;AACA;AAMA;;;;;;;;;AA/FA;AACA;;;;;;;;;;;;;;;;;;ACLA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;;;;;;;;;AACA;AACA;AACA;;;AACA;AAAA;AACA;AADA;AACA;AACA;AACA;AACA;AACA;AADA;AAMA;AACA;AACA;AAZA;AAaA;AACA;;;AACA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AADA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AADA;AAIA;AACA;AACA;;;AAEA;AACA;AADA;AACA;AACA;AAEA;AACA;AAAA;AACA;AADA;AAIA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;AAGA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAGA;AANA;AASA;AACA;AAAA;AACA;AACA;AACA;AAGA;AANA;AASA;AACA;AACA;AACA;AACA;AAxBA;AA8BA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AAFA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AA5BA;AACA;AA8BA;AACA;AADA;AACA;AAGA;;;;;;;;;AAtLA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;ACPA;AACA;;;;;;;;;;;;;AACA;;;;;;;;;;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAMA;AACA;AAAA;AACA;AADA;AAIA;;;;;;AAGA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAFA;AACA;AAIA;;;;;;;;;AAzBA;AACA;;;;;;;;;","sourceRoot":""}
\ No newline at end of file
+{"version":3,"file":"react-bootstrap-table.js","sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap 44c51c4b80e1da3cd6af","webpack:///src/index.js","webpack:///src/BootstrapTable.js","webpack:///external {\"root\":\"React\",\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\"}","webpack:///./~/classnames/index.js","webpack:///src/Const.js","webpack:///src/TableHeader.js","webpack:///external {\"root\":\"ReactDOM\",\"commonjs2\":\"react-dom\",\"commonjs\":\"react-dom\",\"amd\":\"react-dom\"}","webpack:///src/SelectRowHeaderColumn.js","webpack:///src/TableBody.js","webpack:///src/util.js","webpack:///src/TableRow.js","webpack:///src/TableColumn.js","webpack:///src/TableEditColumn.js","webpack:///src/Editor.js","webpack:///src/Notification.js","webpack:///./~/react-s-alert/index.js","webpack:///./~/react-s-alert/dist/SAlert.js","webpack:///./~/react-s-alert/dist/SAlertContent.js","webpack:///./~/prop-types/index.js","webpack:///./~/prop-types/factory.js","webpack:///(webpack)/~/node-libs-browser/~/process/browser.js","webpack:///./~/prop-types/~/fbjs/lib/emptyFunction.js","webpack:///./~/prop-types/~/fbjs/lib/invariant.js","webpack:///./~/prop-types/~/fbjs/lib/warning.js","webpack:///./~/prop-types/lib/ReactPropTypesSecret.js","webpack:///./~/prop-types/checkPropTypes.js","webpack:///./~/react-s-alert/dist/s-alert-parts/s-alert-tools.js","webpack:///./~/react-s-alert/dist/s-alert-parts/s-alert-store.js","webpack:///./~/react-s-alert/dist/SAlertContentTmpl.js","webpack:///./~/react-s-alert/dist/s-alert-parts/s-alert-data-prep.js","webpack:///src/ExpandComponent.js","webpack:///src/pagination/PaginationList.js","webpack:///src/pagination/PageButton.js","webpack:///src/pagination/SizePerPageDropDown.js","webpack:///src/toolbar/ToolBar.js","webpack:///./~/react-modal/lib/index.js","webpack:///./~/react-modal/lib/components/Modal.js","webpack:///./~/react-modal/~/exenv/index.js","webpack:///./~/react-modal/lib/components/ModalPortal.js","webpack:///./~/react-modal/lib/helpers/focusManager.js","webpack:///./~/react-modal/lib/helpers/tabbable.js","webpack:///./~/react-modal/lib/helpers/scopeTab.js","webpack:///./~/react-modal/~/lodash.assign/index.js","webpack:///./~/react-modal/lib/helpers/ariaAppHider.js","webpack:///./~/react-modal/~/element-class/index.js","webpack:///src/toolbar/InsertModal.js","webpack:///src/toolbar/InsertModalHeader.js","webpack:///src/toolbar/InsertModalFooter.js","webpack:///src/toolbar/InsertModalBody.js","webpack:///src/toolbar/InsertButton.js","webpack:///src/toolbar/DeleteButton.js","webpack:///src/toolbar/ExportCSVButton.js","webpack:///src/toolbar/ShowSelectedOnlyButton.js","webpack:///src/toolbar/SearchField.js","webpack:///src/toolbar/ClearSearchButton.js","webpack:///src/TableFilter.js","webpack:///src/store/TableDataStore.js","webpack:///src/csv_export_util.js","webpack:///src/filesaver.js","webpack:///(webpack)/buildin/amd-define.js","webpack:///(webpack)/buildin/amd-options.js","webpack:///src/Filter.js","webpack:///(webpack)/~/node-libs-browser/~/events/events.js","webpack:///src/TableHeaderColumn.js","webpack:///src/filters/Date.js","webpack:///src/filters/Text.js","webpack:///src/filters/Regex.js","webpack:///src/filters/Select.js","webpack:///src/filters/Number.js","webpack:///src/toolbar/ButtonGroup.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"), require(\"react-dom\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\", \"react-dom\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ReactBootstrapTable\"] = factory(require(\"react\"), require(\"react-dom\"));\n\telse\n\t\troot[\"ReactBootstrapTable\"] = factory(root[\"React\"], root[\"ReactDOM\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_2__, __WEBPACK_EXTERNAL_MODULE_6__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 44c51c4b80e1da3cd6af","import BootstrapTable from './BootstrapTable';\nimport TableHeaderColumn from './TableHeaderColumn';\nimport InsertModalHeader from './toolbar/InsertModalHeader';\nimport InsertModalBody from './toolbar/InsertModalBody';\nimport InsertModalFooter from './toolbar/InsertModalFooter';\nimport InsertButton from './toolbar/InsertButton';\nimport DeleteButton from './toolbar/DeleteButton';\nimport ExportCSVButton from './toolbar/ExportCSVButton';\nimport ShowSelectedOnlyButton from './toolbar/ShowSelectedOnlyButton';\nimport ClearSearchButton from './toolbar/ClearSearchButton';\nimport SearchField from './toolbar/SearchField';\nimport ButtonGroup from './toolbar/ButtonGroup';\nimport SizePerPageDropDown from './pagination/SizePerPageDropDown';\n\nif (typeof window !== 'undefined') {\n window.BootstrapTable = BootstrapTable;\n window.TableHeaderColumn = TableHeaderColumn;\n window.InsertModalHeader = InsertModalHeader;\n window.InsertModalBody = InsertModalBody;\n window.InsertModalFooter = InsertModalFooter;\n window.InsertButton = InsertButton;\n window.DeleteButton = DeleteButton;\n window.ShowSelectedOnlyButton = ShowSelectedOnlyButton;\n window.ExportCSVButton = ExportCSVButton;\n window.ClearSearchButton = ClearSearchButton;\n window.SearchField = SearchField;\n window.ButtonGroup = ButtonGroup;\n window.SizePerPageDropDown = SizePerPageDropDown;\n}\nexport {\n BootstrapTable,\n TableHeaderColumn,\n InsertModalHeader,\n InsertModalBody,\n InsertModalFooter,\n InsertButton,\n DeleteButton,\n ShowSelectedOnlyButton,\n ExportCSVButton,\n ClearSearchButton,\n SearchField,\n ButtonGroup,\n SizePerPageDropDown\n};\n\n\n\n// WEBPACK FOOTER //\n// src/index.js","/* eslint no-alert: 0 */\n/* eslint max-len: 0 */\nimport React, { Component, PropTypes } from 'react';\nimport classSet from 'classnames';\nimport Const from './Const';\nimport TableHeader from './TableHeader';\nimport TableBody from './TableBody';\nimport PaginationList from './pagination/PaginationList';\nimport ToolBar from './toolbar/ToolBar';\nimport TableFilter from './TableFilter';\nimport { TableDataStore } from './store/TableDataStore';\nimport Util from './util';\nimport exportCSVUtil from './csv_export_util';\nimport { Filter } from './Filter';\nimport Alert from 'react-s-alert';\n\nclass BootstrapTable extends Component {\n\n constructor(props) {\n super(props);\n this.isIE = false;\n this._attachCellEditFunc();\n if (Util.canUseDOM()) {\n this.isIE = document.documentMode;\n }\n this.store = new TableDataStore(this.props.data ? this.props.data.slice() : []);\n this.isVerticalScroll = false;\n this.initTable(this.props);\n\n if (this.props.selectRow && this.props.selectRow.selected) {\n const copy = this.props.selectRow.selected.slice();\n this.store.setSelectedRowKey(copy);\n }\n let currPage = Const.PAGE_START_INDEX;\n if (typeof this.props.options.page !== 'undefined') {\n currPage = this.props.options.page;\n } else if (typeof this.props.options.pageStartIndex !== 'undefined') {\n currPage = this.props.options.pageStartIndex;\n }\n\n this._adjustHeaderWidth = this._adjustHeaderWidth.bind(this);\n this._adjustHeight = this._adjustHeight.bind(this);\n this._adjustTable = this._adjustTable.bind(this);\n\n this.state = {\n data: this.getTableData(),\n currPage: currPage,\n expanding: this.props.options.expanding || [],\n sizePerPage: this.props.options.sizePerPage || Const.SIZE_PER_PAGE_LIST[0],\n selectedRowKeys: this.store.getSelectedRowKeys(),\n reset: false,\n x: this.props.keyBoardNav ? 0 : -1,\n y: this.props.keyBoardNav ? 0 : -1\n };\n }\n\n initTable(props) {\n let { keyField } = props;\n\n const isKeyFieldDefined = typeof keyField === 'string' && keyField.length;\n React.Children.forEach(props.children, column => {\n if (column.props.isKey) {\n if (keyField) {\n throw new Error('Error. Multiple key column be detected in TableHeaderColumn.');\n }\n keyField = column.props.dataField;\n }\n if (column.props.filter) {\n // a column contains a filter\n if (!this.filter) {\n // first time create the filter on the BootstrapTable\n this.filter = new Filter();\n }\n // pass the filter to column with filter\n column.props.filter.emitter = this.filter;\n }\n });\n\n if (this.filter) {\n this.filter.removeAllListeners('onFilterChange');\n this.filter.on('onFilterChange', (currentFilter) => {\n this.handleFilterData(currentFilter);\n });\n }\n\n this.colInfos = this.getColumnsDescription(props).reduce(( prev, curr ) => {\n prev[curr.name] = curr;\n return prev;\n }, {});\n\n if (!isKeyFieldDefined && !keyField) {\n throw new Error(`Error. No any key column defined in TableHeaderColumn.\n Use 'isKey={true}' to specify a unique column after version 0.5.4.`);\n }\n\n this.store.setProps({\n isPagination: props.pagination,\n keyField: keyField,\n colInfos: this.colInfos,\n multiColumnSearch: props.multiColumnSearch,\n strictSearch: props.strictSearch,\n multiColumnSort: props.multiColumnSort,\n remote: this.props.remote\n });\n }\n\n getTableData() {\n let result = [];\n const { options, pagination } = this.props;\n const sortName = options.defaultSortName || options.sortName;\n const sortOrder = options.defaultSortOrder || options.sortOrder;\n const searchText = options.defaultSearch;\n if (sortName && sortOrder) {\n this.store.setSortInfo(sortOrder, sortName);\n this.store.sort();\n }\n\n if (searchText) {\n this.store.search(searchText);\n }\n\n if (pagination) {\n let page;\n let sizePerPage;\n if (this.store.isChangedPage()) {\n sizePerPage = this.state.sizePerPage;\n page = this.state.currPage;\n } else {\n sizePerPage = options.sizePerPage || Const.SIZE_PER_PAGE_LIST[0];\n page = options.page || 1;\n }\n result = this.store.page(page, sizePerPage).get();\n } else {\n result = this.store.get();\n }\n return result;\n }\n\n getColumnsDescription({ children }) {\n let rowCount = 0;\n React.Children.forEach(children, (column) => {\n if (Number(column.props.row) > rowCount) {\n rowCount = Number(column.props.row);\n }\n });\n return React.Children.map(children, (column, i) => {\n const rowIndex = column.props.row ? Number(column.props.row) : 0;\n const rowSpan = column.props.rowSpan ? Number(column.props.rowSpan) : 1;\n if ((rowSpan + rowIndex) === (rowCount + 1)) {\n return {\n name: column.props.dataField,\n align: column.props.dataAlign,\n sort: column.props.dataSort,\n format: column.props.dataFormat,\n formatExtraData: column.props.formatExtraData,\n filterFormatted: column.props.filterFormatted,\n filterValue: column.props.filterValue,\n editable: column.props.editable,\n customEditor: column.props.customEditor,\n hidden: column.props.hidden,\n hiddenOnInsert: column.props.hiddenOnInsert,\n searchable: column.props.searchable,\n className: column.props.columnClassName,\n editClassName: column.props.editColumnClassName,\n invalidEditColumnClassName: column.props.invalidEditColumnClassName,\n columnTitle: column.props.columnTitle,\n width: column.props.width,\n text: column.props.headerText || column.props.children,\n sortFunc: column.props.sortFunc,\n sortFuncExtraData: column.props.sortFuncExtraData,\n export: column.props.export,\n expandable: column.props.expandable,\n index: i,\n attrs: column.props.tdAttr,\n style: column.props.tdStyle\n };\n }\n });\n }\n\n reset() {\n const { pageStartIndex } = this.props.options;\n this.store.clean();\n this.setState({\n data: this.getTableData(),\n currPage: Util.getFirstPage(pageStartIndex),\n expanding: [],\n sizePerPage: Const.SIZE_PER_PAGE_LIST[0],\n selectedRowKeys: this.store.getSelectedRowKeys(),\n reset: true\n });\n }\n\n componentWillReceiveProps(nextProps) {\n this.initTable(nextProps);\n const { options, selectRow } = nextProps;\n\n this.store.setData(nextProps.data.slice());\n\n // from #481\n let page = this.state.currPage;\n if (this.props.options.page !== options.page) {\n page = options.page;\n }\n // from #481\n let sizePerPage = this.state.sizePerPage;\n if (this.props.options.sizePerPage !== options.sizePerPage) {\n sizePerPage = options.sizePerPage;\n }\n\n if (this.isRemoteDataSource()) {\n let data = nextProps.data.slice();\n if (nextProps.pagination && !this.allowRemote(Const.REMOTE_PAGE)) {\n data = this.store.page(page, sizePerPage).get();\n }\n this.setState({\n data,\n currPage: page,\n sizePerPage,\n reset: false\n });\n } else {\n // #125\n // remove !options.page for #709\n if (page > Math.ceil(nextProps.data.length / sizePerPage)) {\n page = 1;\n }\n const sortList = this.store.getSortInfo();\n const sortField = options.sortName;\n const sortOrder = options.sortOrder;\n if (sortField && sortOrder) {\n this.store.setSortInfo(sortOrder, sortField);\n this.store.sort();\n } else if (sortList.length > 0) {\n this.store.sort();\n }\n const data = this.store.page(page, sizePerPage).get();\n this.setState({\n data,\n currPage: page,\n sizePerPage,\n reset: false\n });\n }\n\n // If setting the expanded rows is being handled externally\n // then overwrite the current expanded rows.\n if (this.props.options.expanding !== options.expanding) {\n this.setState({\n expanding: options.expanding || []\n });\n }\n\n if (selectRow && selectRow.selected) {\n // set default select rows to store.\n const copy = selectRow.selected.slice();\n this.store.setSelectedRowKey(copy);\n this.setState({\n selectedRowKeys: copy,\n reset: false\n });\n }\n }\n\n componentDidMount() {\n this._adjustTable();\n window.addEventListener('resize', this._adjustTable);\n this.refs.body.refs.container.addEventListener('scroll', this._scrollHeader);\n if (this.props.scrollTop) {\n this._scrollTop();\n }\n }\n\n componentWillUnmount() {\n window.removeEventListener('resize', this._adjustTable);\n this.refs.body.refs.container.removeEventListener('scroll', this._scrollHeader);\n if (this.filter) {\n this.filter.removeAllListeners('onFilterChange');\n }\n }\n\n componentDidUpdate() {\n this._adjustTable();\n this._attachCellEditFunc();\n if (this.props.options.afterTableComplete) {\n this.props.options.afterTableComplete();\n }\n }\n\n _attachCellEditFunc() {\n const { cellEdit } = this.props;\n if (cellEdit) {\n this.props.cellEdit.__onCompleteEdit__ = this.handleEditCell.bind(this);\n if (cellEdit.mode !== Const.CELL_EDIT_NONE) {\n this.props.selectRow.clickToSelect = false;\n }\n }\n }\n\n /**\n * Returns true if in the current configuration,\n * the datagrid should load its data remotely.\n *\n * @param {Object} [props] Optional. If not given, this.props will be used\n * @return {Boolean}\n */\n isRemoteDataSource(props) {\n const { remote } = (props || this.props);\n return remote === true || typeof remote === 'function';\n }\n\n /**\n * Returns true if this action can be handled remote store\n * From #990, Sometimes, we need some actions as remote, some actions are handled by default\n * so function will tell you the target action is can be handled as remote or not.\n * @param {String} [action] Required.\n * @param {Object} [props] Optional. If not given, this.props will be used\n * @return {Boolean}\n */\n allowRemote(action, props) {\n const { remote } = (props || this.props);\n if (typeof remote === 'function') {\n const remoteObj = remote(Const.REMOTE);\n return remoteObj[action];\n } else {\n return remote;\n }\n }\n\n render() {\n const style = {\n height: this.props.height,\n maxHeight: this.props.maxHeight\n };\n\n const columns = this.getColumnsDescription(this.props);\n const sortList = this.store.getSortInfo();\n const pagination = this.renderPagination();\n const toolBar = this.renderToolBar();\n const tableFilter = this.renderTableFilter(columns);\n const isSelectAll = this.isSelectAll();\n const expandColumnOptions = this.props.expandColumnOptions;\n if (typeof expandColumnOptions.expandColumnBeforeSelectColumn === 'undefined') {\n expandColumnOptions.expandColumnBeforeSelectColumn = true;\n }\n const colGroups = Util.renderColGroup(columns, this.props.selectRow, expandColumnOptions);\n let sortIndicator = this.props.options.sortIndicator;\n if (typeof this.props.options.sortIndicator === 'undefined') sortIndicator = true;\n const { paginationPosition = Const.PAGINATION_POS_BOTTOM } = this.props.options;\n const showPaginationOnTop = paginationPosition !== Const.PAGINATION_POS_BOTTOM;\n const showPaginationOnBottom = paginationPosition !== Const.PAGINATION_POS_TOP;\n\n return (\n \n { toolBar }\n { showPaginationOnTop ? pagination : null }\n
\n
\n { this.props.children }\n \n
\n
\n { tableFilter }\n { showPaginationOnBottom ? pagination : null }\n
\n
\n );\n }\n\n isSelectAll() {\n if (this.store.isEmpty()) return false;\n const unselectable = this.props.selectRow.unselectable;\n const defaultSelectRowKeys = this.store.getSelectedRowKeys();\n const allRowKeys = this.store.getAllRowkey();\n\n if (defaultSelectRowKeys.length === 0) return false;\n let match = 0;\n let noFound = 0;\n let unSelectableCnt = 0;\n defaultSelectRowKeys.forEach(selected => {\n if (allRowKeys.indexOf(selected) !== -1) match++;\n else noFound++;\n if (unselectable &&\n unselectable.indexOf(selected) !== -1) unSelectableCnt++;\n });\n\n if (noFound === defaultSelectRowKeys.length) return false;\n if (match === allRowKeys.length) {\n return true;\n } else {\n if (unselectable && match <= unSelectableCnt &&\n unSelectableCnt === unselectable.length) return false;\n else return 'indeterminate';\n }\n // return (match === allRowKeys.length) ? true : 'indeterminate';\n }\n\n cleanSelected() {\n this.store.setSelectedRowKey([]);\n this.setState({\n selectedRowKeys: [],\n reset: false\n });\n }\n\n handleSort = (order, sortField) => {\n if (this.props.options.onSortChange) {\n this.props.options.onSortChange(sortField, order, this.props);\n }\n this.store.setSortInfo(order, sortField);\n if (this.allowRemote(Const.REMOTE_SORT)) {\n return;\n }\n\n const result = this.store.sort().get();\n this.setState({\n data: result,\n reset: false\n });\n }\n\n handleExpandRow = expanding => {\n this.setState({ expanding, reset: false }, () => {\n this._adjustHeaderWidth();\n });\n }\n\n handlePaginationData = (page, sizePerPage) => {\n const { onPageChange, pageStartIndex } = this.props.options;\n const emptyTable = this.store.isEmpty();\n if (onPageChange) {\n onPageChange(page, sizePerPage);\n }\n\n const state = {\n sizePerPage,\n reset: false\n };\n if (!emptyTable) state.currPage = page;\n this.setState(state);\n\n if (this.allowRemote(Const.REMOTE_PAGE) || emptyTable) {\n return;\n }\n\n const result = this.store.page(Util.getNormalizedPage(pageStartIndex, page), sizePerPage).get();\n this.setState({ data: result, reset: false });\n }\n\n handleMouseLeave = () => {\n if (this.props.options.onMouseLeave) {\n this.props.options.onMouseLeave();\n }\n }\n\n handleMouseEnter = () => {\n if (this.props.options.onMouseEnter) {\n this.props.options.onMouseEnter();\n }\n }\n\n handleRowMouseOut = (row, event) => {\n if (this.props.options.onRowMouseOut) {\n this.props.options.onRowMouseOut(row, event);\n }\n }\n\n handleRowMouseOver = (row, event) => {\n if (this.props.options.onRowMouseOver) {\n this.props.options.onRowMouseOver(row, event);\n }\n }\n\n handleNavigateCell = ({ x: offSetX, y: offSetY, lastEditCell }) => {\n const { pagination } = this.props;\n let { x, y, currPage } = this.state;\n x += offSetX;\n y += offSetY;\n\n const columns = this.store.getColInfos();\n const visibleRowSize = this.state.data.length;\n const visibleColumnSize = Object.keys(columns).filter(k => !columns[k].hidden).length;\n\n if (y >= visibleRowSize) {\n currPage++;\n const lastPage = pagination ? this.refs.pagination.getLastPage() : -1;\n if (currPage <= lastPage) {\n this.handlePaginationData(currPage, this.state.sizePerPage);\n } else {\n return;\n }\n y = 0;\n } else if (y < 0) {\n currPage--;\n if (currPage > 0) {\n this.handlePaginationData(currPage, this.state.sizePerPage);\n } else {\n return;\n }\n y = visibleRowSize - 1;\n } else if (x >= visibleColumnSize) {\n if ((y + 1) === visibleRowSize) {\n currPage++;\n const lastPage = pagination ? this.refs.pagination.getLastPage() : -1;\n if (currPage <= lastPage) {\n this.handlePaginationData(currPage, this.state.sizePerPage);\n } else {\n return;\n }\n y = 0;\n } else {\n y++;\n }\n x = lastEditCell ? 1 : 0;\n } else if (x < 0) {\n x = visibleColumnSize - 1;\n if (y === 0) {\n currPage--;\n if (currPage > 0) {\n this.handlePaginationData(currPage, this.state.sizePerPage);\n } else {\n return;\n }\n y = this.state.sizePerPage - 1;\n } else {\n y--;\n }\n }\n this.setState({\n x, y, currPage, reset: false\n });\n }\n\n handleRowClick = (row, rowIndex, cellIndex) => {\n const { options, keyBoardNav } = this.props;\n if (options.onRowClick) {\n options.onRowClick(row);\n }\n if (keyBoardNav) {\n let { clickToNav } = typeof keyBoardNav === 'object' ? keyBoardNav : {};\n clickToNav = clickToNav === false ? clickToNav : true;\n if (clickToNav) {\n this.setState({\n x: cellIndex,\n y: rowIndex,\n reset: false\n });\n }\n }\n }\n\n handleRowDoubleClick = row => {\n if (this.props.options.onRowDoubleClick) {\n this.props.options.onRowDoubleClick(row);\n }\n }\n\n handleSelectAllRow = e => {\n const isSelected = e.currentTarget.checked;\n const keyField = this.store.getKeyField();\n const { selectRow: { onSelectAll, unselectable, selected } } = this.props;\n let selectedRowKeys = [];\n let result = true;\n let rows = isSelected ?\n this.store.get() :\n this.store.getRowByKey(this.state.selectedRowKeys);\n\n if (unselectable && unselectable.length > 0) {\n if (isSelected) {\n rows = rows.filter(r => {\n return unselectable.indexOf(r[keyField]) === -1 ||\n (selected && selected.indexOf(r[keyField]) !== -1);\n });\n } else {\n rows = rows.filter(r => unselectable.indexOf(r[keyField]) === -1);\n }\n }\n\n if (onSelectAll) {\n result = this.props.selectRow.onSelectAll(isSelected, rows);\n }\n\n if (typeof result == 'undefined' || result !== false) {\n if (isSelected) {\n selectedRowKeys = Array.isArray(result) ?\n result :\n rows.map(r => r[keyField]);\n } else {\n if (unselectable && selected) {\n selectedRowKeys = selected.filter(r => unselectable.indexOf(r) > -1 );\n }\n }\n\n this.store.setSelectedRowKey(selectedRowKeys);\n this.setState({ selectedRowKeys, reset: false });\n }\n }\n\n handleShowOnlySelected = () => {\n this.store.ignoreNonSelected();\n const { pageStartIndex } = this.props.options;\n let result;\n if (this.props.pagination) {\n result = this.store.page(Util.getNormalizedPage(pageStartIndex), this.state.sizePerPage).get();\n } else {\n result = this.store.get();\n }\n this.setState({\n data: result,\n reset: false,\n currPage: Util.getFirstPage(pageStartIndex)\n });\n }\n\n handleSelectRow = (row, isSelected, e) => {\n let result = true;\n let currSelected = this.store.getSelectedRowKeys();\n const rowKey = row[ this.store.getKeyField() ];\n const { selectRow } = this.props;\n if (selectRow.onSelect) {\n result = selectRow.onSelect(row, isSelected, e);\n }\n\n if (typeof result === 'undefined' || result !== false) {\n if (selectRow.mode === Const.ROW_SELECT_SINGLE) {\n currSelected = isSelected ? [ rowKey ] : [];\n } else {\n if (isSelected) {\n currSelected.push(rowKey);\n } else {\n currSelected = currSelected.filter(key => rowKey !== key);\n }\n }\n\n this.store.setSelectedRowKey(currSelected);\n this.setState({\n selectedRowKeys: currSelected,\n reset: false\n });\n }\n }\n\n handleEditCell(newVal, rowIndex, colIndex) {\n const { onCellEdit } = this.props.options;\n const { beforeSaveCell, afterSaveCell } = this.props.cellEdit;\n const columns = this.getColumnsDescription(this.props);\n const fieldName = columns[colIndex].name;\n\n if (beforeSaveCell) {\n const isValid = beforeSaveCell(this.state.data[rowIndex], fieldName, newVal);\n if (!isValid && typeof isValid !== 'undefined') {\n this.setState({\n data: this.store.get(),\n reset: false\n });\n return;\n }\n }\n\n if (onCellEdit) {\n newVal = onCellEdit(this.state.data[rowIndex], fieldName, newVal);\n }\n\n if (this.allowRemote(Const.REMOTE_CELL_EDIT)) {\n if (afterSaveCell) {\n afterSaveCell(this.state.data[rowIndex], fieldName, newVal);\n }\n return;\n }\n\n const result = this.store.edit(newVal, rowIndex, fieldName).get();\n this.setState({\n data: result,\n reset: false\n });\n\n if (afterSaveCell) {\n afterSaveCell(this.state.data[rowIndex], fieldName, newVal);\n }\n }\n\n handleAddRowAtBegin(newObj) {\n try {\n this.store.addAtBegin(newObj);\n } catch (e) {\n return e;\n }\n this._handleAfterAddingRow(newObj, true);\n }\n\n handleAddRow = newObj => {\n const { onAddRow } = this.props.options;\n if (onAddRow) {\n const colInfos = this.store.getColInfos();\n onAddRow(newObj, colInfos);\n }\n\n if (this.allowRemote(Const.REMOTE_INSERT_ROW)) {\n if (this.props.options.afterInsertRow) {\n this.props.options.afterInsertRow(newObj);\n }\n return null;\n }\n\n try {\n this.store.add(newObj);\n } catch (e) {\n return e.message;\n }\n this._handleAfterAddingRow(newObj, false);\n }\n\n getSizePerPage() {\n return this.state.sizePerPage;\n }\n\n getCurrentPage() {\n return this.state.currPage;\n }\n\n getTableDataIgnorePaging() {\n return this.store.getCurrentDisplayData();\n }\n\n getPageByRowKey = rowKey => {\n const { sizePerPage } = this.state;\n const currentData = this.store.getCurrentDisplayData();\n const keyField = this.store.getKeyField();\n const result = currentData.findIndex((x) => x[ keyField ] === rowKey);\n if (result > -1) {\n return parseInt((result / sizePerPage), 10) + 1;\n } else {\n return result;\n }\n }\n\n handleDropRow = rowKeys => {\n const dropRowKeys = rowKeys ? rowKeys : this.store.getSelectedRowKeys();\n // add confirm before the delete action if that option is set.\n if (dropRowKeys && dropRowKeys.length > 0) {\n if (this.props.options.handleConfirmDeleteRow) {\n this.props.options.handleConfirmDeleteRow(() => {\n this.deleteRow(dropRowKeys);\n }, dropRowKeys);\n } else if (confirm('Are you sure you want to delete?')) {\n this.deleteRow(dropRowKeys);\n }\n }\n }\n\n deleteRow(dropRowKeys) {\n const { onDeleteRow } = this.props.options;\n if (onDeleteRow) {\n onDeleteRow(dropRowKeys);\n }\n\n this.store.setSelectedRowKey([]); // clear selected row key\n\n if (this.allowRemote(Const.REMOTE_DROP_ROW)) {\n if (this.props.options.afterDeleteRow) {\n this.props.options.afterDeleteRow(dropRowKeys);\n }\n return;\n }\n\n this.store.remove(dropRowKeys); // remove selected Row\n let result;\n if (this.props.pagination) {\n const { sizePerPage } = this.state;\n const currLastPage = Math.ceil(this.store.getDataNum() / sizePerPage);\n let { currPage } = this.state;\n if (currPage > currLastPage) currPage = currLastPage;\n result = this.store.page(currPage, sizePerPage).get();\n this.setState({\n data: result,\n selectedRowKeys: this.store.getSelectedRowKeys(),\n currPage,\n reset: false\n });\n } else {\n result = this.store.get();\n this.setState({\n data: result,\n reset: false,\n selectedRowKeys: this.store.getSelectedRowKeys()\n });\n }\n if (this.props.options.afterDeleteRow) {\n this.props.options.afterDeleteRow(dropRowKeys);\n }\n }\n\n handleFilterData = filterObj => {\n const { onFilterChange, pageStartIndex } = this.props.options;\n if (onFilterChange) {\n const colInfos = this.store.getColInfos();\n onFilterChange(filterObj, colInfos);\n }\n\n this.setState({\n currPage: Util.getFirstPage(pageStartIndex),\n reset: false\n });\n\n if (this.allowRemote(Const.REMOTE_FILTER)) {\n if (this.props.options.afterColumnFilter) {\n this.props.options.afterColumnFilter(filterObj, this.store.getDataIgnoringPagination());\n }\n return;\n }\n\n this.store.filter(filterObj);\n\n const sortList = this.store.getSortInfo();\n\n if (sortList.length > 0) {\n this.store.sort();\n }\n\n let result;\n\n if (this.props.pagination) {\n const { sizePerPage } = this.state;\n result = this.store.page(Util.getNormalizedPage(pageStartIndex), sizePerPage).get();\n } else {\n result = this.store.get();\n }\n if (this.props.options.afterColumnFilter) {\n this.props.options.afterColumnFilter(filterObj,\n this.store.getDataIgnoringPagination());\n }\n this.setState({\n data: result,\n reset: false\n });\n }\n\n handleExportCSV = () => {\n let result = {};\n\n let { csvFileName } = this.props;\n const { onExportToCSV } = this.props.options;\n if (onExportToCSV) {\n result = onExportToCSV();\n } else {\n result = this.store.getDataIgnoringPagination();\n }\n\n const keys = [];\n this.props.children.map(function(column) {\n if (column.props.export === true ||\n (typeof column.props.export === 'undefined' &&\n column.props.hidden === false)) {\n keys.push({\n field: column.props.dataField,\n format: column.props.csvFormat,\n extraData: column.props.csvFormatExtraData,\n header: column.props.csvHeader || column.props.dataField,\n row: Number(column.props.row) || 0,\n rowSpan: Number(column.props.rowSpan) || 1,\n colSpan: Number(column.props.colSpan) || 1\n });\n }\n });\n\n if (typeof csvFileName === 'function') {\n csvFileName = csvFileName();\n }\n\n exportCSVUtil(result, keys, csvFileName);\n }\n\n handleSearch = searchText => {\n // Set search field if this function being called outside\n // but it's not necessary if calling fron inside.\n if (this.refs.toolbar) {\n this.refs.toolbar.setSearchInput(searchText);\n }\n const { onSearchChange, pageStartIndex } = this.props.options;\n if (onSearchChange) {\n const colInfos = this.store.getColInfos();\n onSearchChange(searchText, colInfos, this.props.multiColumnSearch);\n }\n\n this.setState({\n currPage: Util.getFirstPage(pageStartIndex),\n reset: false\n });\n\n if (this.allowRemote(Const.REMOTE_SEARCH)) {\n if (this.props.options.afterSearch) {\n this.props.options.afterSearch(searchText, this.store.getDataIgnoringPagination());\n }\n return;\n }\n\n\n this.store.search(searchText);\n\n const sortList = this.store.getSortInfo();\n\n if (sortList.length > 0) {\n this.store.sort();\n }\n\n let result;\n if (this.props.pagination) {\n const { sizePerPage } = this.state;\n result = this.store.page(Util.getNormalizedPage(pageStartIndex), sizePerPage).get();\n } else {\n result = this.store.get();\n }\n if (this.props.options.afterSearch) {\n this.props.options.afterSearch(searchText,\n this.store.getDataIgnoringPagination());\n }\n this.setState({\n data: result,\n reset: false\n });\n }\n\n renderPagination() {\n if (this.props.pagination) {\n let dataSize;\n if (this.allowRemote(Const.REMOTE_PAGE)) {\n dataSize = this.props.fetchInfo.dataTotalSize;\n } else {\n dataSize = this.store.getDataNum();\n }\n const { options } = this.props;\n const withFirstAndLast = options.withFirstAndLast === undefined ? true : options.withFirstAndLast;\n if (Math.ceil(dataSize / this.state.sizePerPage) <= 1 &&\n this.props.ignoreSinglePage) return null;\n return (\n \n );\n }\n return null;\n }\n\n renderToolBar() {\n const { exportCSV, selectRow, insertRow, deleteRow, search, children, keyField } = this.props;\n const enableShowOnlySelected = selectRow && selectRow.showOnlySelected;\n const print = typeof this.props.options.printToolBar === 'undefined' ?\n true : this.props.options.printToolBar;\n if (enableShowOnlySelected\n || insertRow\n || deleteRow\n || search\n || exportCSV\n || this.props.options.searchPanel\n || this.props.options.btnGroup\n || this.props.options.toolBar) {\n let columns;\n if (Array.isArray(children)) {\n columns = children.map((column, r) => {\n const { props } = column;\n const isKey = props.isKey || keyField === props.dataField;\n return {\n isKey,\n name: props.headerText || props.children,\n field: props.dataField,\n hiddenOnInsert: props.hiddenOnInsert,\n keyValidator: props.keyValidator,\n customInsertEditor: props.customInsertEditor,\n // when you want same auto generate value and not allow edit, example ID field\n autoValue: props.autoValue || false,\n // for create editor, no params for column.editable() indicate that editor for new row\n editable: props.editable && (typeof props.editable === 'function') ? props.editable() : props.editable,\n format: props.dataFormat ? function(value) {\n return props.dataFormat(value, null, props.formatExtraData, r).replace(/<.*?>/g, '');\n } : false\n };\n });\n } else {\n columns = [ {\n name: children.props.headerText || children.props.children,\n field: children.props.dataField,\n editable: children.props.editable,\n customInsertEditor: children.props.customInsertEditor,\n hiddenOnInsert: children.props.hiddenOnInsert,\n keyValidator: children.props.keyValidator\n } ];\n }\n return (\n \n \n
\n );\n } else {\n return null;\n }\n }\n\n renderTableFilter(columns) {\n if (this.props.columnFilter) {\n return (\n \n );\n } else {\n return null;\n }\n }\n\n _scrollTop = () => {\n const { scrollTop } = this.props;\n if (scrollTop === Const.SCROLL_TOP) {\n this.refs.body.refs.container.scrollTop = 0;\n } else if (scrollTop === Const.SCROLL_BOTTOM) {\n this.refs.body.refs.container.scrollTop = this.refs.body.refs.container.scrollHeight;\n } else if (typeof scrollTop === 'number' && !isNaN(scrollTop)) {\n this.refs.body.refs.container.scrollTop = scrollTop;\n }\n }\n _scrollHeader = (e) => {\n this.refs.header.refs.container.scrollLeft = e.currentTarget.scrollLeft;\n }\n\n _adjustTable() {\n this._adjustHeight();\n if (!this.props.printable) {\n this._adjustHeaderWidth();\n }\n }\n\n _adjustHeaderWidth() {\n const header = this.refs.header.getHeaderColGrouop();\n const tbody = this.refs.body.refs.tbody;\n const bodyHeader = this.refs.body.getHeaderColGrouop();\n const firstRow = tbody.childNodes[0];\n const isScroll = tbody.parentNode.getBoundingClientRect().height >\n tbody.parentNode.parentNode.getBoundingClientRect().height;\n\n const scrollBarWidth = isScroll ? Util.getScrollBarWidth() : 0;\n if (firstRow && this.store.getDataNum()) {\n if (isScroll || this.isVerticalScroll !== isScroll) {\n const cells = firstRow.childNodes;\n for (let i = 0; i < cells.length; i++) {\n const cell = cells[i];\n const computedStyle = window.getComputedStyle(cell);\n let width = parseFloat(computedStyle.width.replace('px', ''));\n if (this.isIE) {\n const paddingLeftWidth = parseFloat(computedStyle.paddingLeft.replace('px', ''));\n const paddingRightWidth = parseFloat(computedStyle.paddingRight.replace('px', ''));\n const borderRightWidth = parseFloat(computedStyle.borderRightWidth.replace('px', ''));\n const borderLeftWidth = parseFloat(computedStyle.borderLeftWidth.replace('px', ''));\n width = width + paddingLeftWidth + paddingRightWidth + borderRightWidth + borderLeftWidth;\n }\n const lastPadding = (cells.length - 1 === i ? scrollBarWidth : 0);\n if (width <= 0) {\n width = 120;\n cell.width = width + lastPadding + 'px';\n }\n const result = width + lastPadding + 'px';\n header[i].style.width = result;\n header[i].style.minWidth = result;\n if (cells.length - 1 === i) {\n bodyHeader[i].style.width = width + 'px';\n bodyHeader[i].style.minWidth = width + 'px';\n } else {\n bodyHeader[i].style.width = result;\n bodyHeader[i].style.minWidth = result;\n }\n }\n }\n } else {\n React.Children.forEach(this.props.children, (child, i) => {\n if (child.props.width) {\n header[i].style.width = `${child.props.width}px`;\n header[i].style.minWidth = `${child.props.width}px`;\n }\n });\n }\n this.isVerticalScroll = isScroll;\n }\n\n _adjustHeight() {\n const { height } = this.props;\n let { maxHeight } = this.props;\n if ((typeof height === 'number' && !isNaN(height)) || height.indexOf('%') === -1) {\n this.refs.body.refs.container.style.height =\n parseFloat(height, 10) - this.refs.header.refs.container.offsetHeight + 'px';\n }\n if (maxHeight) {\n maxHeight = typeof maxHeight === 'number' ?\n maxHeight :\n parseInt(maxHeight.replace('px', ''), 10);\n\n this.refs.body.refs.container.style.maxHeight =\n maxHeight - this.refs.header.refs.container.offsetHeight + 'px';\n }\n }\n\n _handleAfterAddingRow(newObj, atTheBeginning) {\n let result;\n if (this.props.pagination) {\n // if pagination is enabled and inserting row at the end,\n // change page to the last page\n // otherwise, change it to the first page\n const { sizePerPage } = this.state;\n\n if (atTheBeginning) {\n const { pageStartIndex } = this.props.options;\n result = this.store.page(Util.getNormalizedPage(pageStartIndex), sizePerPage).get();\n this.setState({\n data: result,\n currPage: Util.getFirstPage(pageStartIndex),\n reset: false\n });\n } else {\n const currLastPage = Math.ceil(this.store.getDataNum() / sizePerPage);\n result = this.store.page(currLastPage, sizePerPage).get();\n this.setState({\n data: result,\n currPage: currLastPage,\n reset: false\n });\n }\n } else {\n result = this.store.get();\n this.setState({\n data: result,\n reset: false\n });\n }\n\n if (this.props.options.afterInsertRow) {\n this.props.options.afterInsertRow(newObj);\n }\n }\n}\n\nBootstrapTable.propTypes = {\n keyField: PropTypes.string,\n height: PropTypes.oneOfType([ PropTypes.string, PropTypes.number ]),\n maxHeight: PropTypes.oneOfType([ PropTypes.string, PropTypes.number ]),\n data: PropTypes.oneOfType([ PropTypes.array, PropTypes.object ]),\n remote: PropTypes.oneOfType([ PropTypes.bool, PropTypes.func ]), // remote data, default is false\n scrollTop: PropTypes.oneOfType([ PropTypes.string, PropTypes.number ]),\n striped: PropTypes.bool,\n bordered: PropTypes.bool,\n hover: PropTypes.bool,\n condensed: PropTypes.bool,\n pagination: PropTypes.bool,\n printable: PropTypes.bool,\n keyBoardNav: PropTypes.oneOfType([ PropTypes.bool, PropTypes.object ]),\n searchPlaceholder: PropTypes.string,\n selectRow: PropTypes.shape({\n mode: PropTypes.oneOf([\n Const.ROW_SELECT_NONE,\n Const.ROW_SELECT_SINGLE,\n Const.ROW_SELECT_MULTI\n ]),\n customComponent: PropTypes.func,\n bgColor: PropTypes.oneOfType([ PropTypes.string, PropTypes.func ]),\n selected: PropTypes.array,\n onSelect: PropTypes.func,\n onSelectAll: PropTypes.func,\n clickToSelect: PropTypes.bool,\n hideSelectColumn: PropTypes.bool,\n clickToSelectAndEditCell: PropTypes.bool,\n clickToExpand: PropTypes.bool,\n showOnlySelected: PropTypes.bool,\n unselectable: PropTypes.array,\n columnWidth: PropTypes.oneOfType([ PropTypes.number, PropTypes.string ])\n }),\n cellEdit: PropTypes.shape({\n mode: PropTypes.string,\n blurToSave: PropTypes.bool,\n beforeSaveCell: PropTypes.func,\n afterSaveCell: PropTypes.func,\n nonEditableRows: PropTypes.func\n }),\n insertRow: PropTypes.bool,\n deleteRow: PropTypes.bool,\n search: PropTypes.bool,\n multiColumnSearch: PropTypes.bool,\n strictSearch: PropTypes.bool,\n columnFilter: PropTypes.bool,\n trClassName: PropTypes.any,\n tableStyle: PropTypes.object,\n containerStyle: PropTypes.object,\n headerStyle: PropTypes.object,\n bodyStyle: PropTypes.object,\n containerClass: PropTypes.string,\n tableContainerClass: PropTypes.string,\n headerContainerClass: PropTypes.string,\n bodyContainerClass: PropTypes.string,\n tableHeaderClass: PropTypes.string,\n tableBodyClass: PropTypes.string,\n options: PropTypes.shape({\n clearSearch: PropTypes.bool,\n sortName: PropTypes.oneOfType([ PropTypes.string, PropTypes.array ]),\n sortOrder: PropTypes.oneOfType([ PropTypes.string, PropTypes.array ]),\n defaultSortName: PropTypes.oneOfType([ PropTypes.string, PropTypes.array ]),\n defaultSortOrder: PropTypes.oneOfType([ PropTypes.string, PropTypes.array ]),\n sortIndicator: PropTypes.bool,\n afterTableComplete: PropTypes.func,\n afterDeleteRow: PropTypes.func,\n afterInsertRow: PropTypes.func,\n afterSearch: PropTypes.func,\n afterColumnFilter: PropTypes.func,\n onRowClick: PropTypes.func,\n onRowDoubleClick: PropTypes.func,\n page: PropTypes.number,\n pageStartIndex: PropTypes.number,\n paginationShowsTotal: PropTypes.oneOfType([ PropTypes.bool, PropTypes.func ]),\n sizePerPageList: PropTypes.array,\n sizePerPage: PropTypes.number,\n paginationSize: PropTypes.number,\n paginationPosition: PropTypes.oneOf([\n Const.PAGINATION_POS_TOP,\n Const.PAGINATION_POS_BOTTOM,\n Const.PAGINATION_POS_BOTH\n ]),\n hideSizePerPage: PropTypes.bool,\n hidePageListOnlyOnePage: PropTypes.bool,\n alwaysShowAllBtns: PropTypes.bool,\n withFirstAndLast: PropTypes.bool,\n onSortChange: PropTypes.func,\n onPageChange: PropTypes.func,\n onSizePerPageList: PropTypes.func,\n onFilterChange: React.PropTypes.func,\n onSearchChange: React.PropTypes.func,\n onAddRow: React.PropTypes.func,\n onExportToCSV: React.PropTypes.func,\n onCellEdit: React.PropTypes.func,\n noDataText: PropTypes.oneOfType([ PropTypes.string, PropTypes.object ]),\n withoutNoDataText: React.PropTypes.bool,\n handleConfirmDeleteRow: PropTypes.func,\n prePage: PropTypes.string,\n nextPage: PropTypes.string,\n firstPage: PropTypes.string,\n lastPage: PropTypes.string,\n prePageTitle: PropTypes.string,\n nextPageTitle: PropTypes.string,\n firstPageTitle: PropTypes.string,\n lastPageTitle: PropTypes.string,\n searchDelayTime: PropTypes.number,\n exportCSVText: PropTypes.string,\n insertText: PropTypes.string,\n deleteText: PropTypes.string,\n saveText: PropTypes.string,\n closeText: PropTypes.string,\n ignoreEditable: PropTypes.bool,\n defaultSearch: PropTypes.string,\n insertModalHeader: PropTypes.func,\n insertModalBody: PropTypes.func,\n insertModalFooter: PropTypes.func,\n insertModal: PropTypes.func,\n insertBtn: PropTypes.func,\n deleteBtn: PropTypes.func,\n showSelectedOnlyBtn: PropTypes.func,\n exportCSVBtn: PropTypes.func,\n clearSearchBtn: PropTypes.func,\n searchField: PropTypes.func,\n searchPanel: PropTypes.func,\n btnGroup: PropTypes.func,\n toolBar: PropTypes.func,\n sizePerPageDropDown: PropTypes.func,\n paginationPanel: PropTypes.func,\n searchPosition: PropTypes.string,\n expandRowBgColor: PropTypes.string,\n expandBy: PropTypes.string,\n expanding: PropTypes.array,\n onlyOneExpanding: PropTypes.bool,\n beforeShowError: PropTypes.func,\n printToolBar: PropTypes.bool\n }),\n fetchInfo: PropTypes.shape({\n dataTotalSize: PropTypes.number\n }),\n exportCSV: PropTypes.bool,\n csvFileName: PropTypes.oneOfType([ PropTypes.string, PropTypes.func ]),\n ignoreSinglePage: PropTypes.bool,\n expandableRow: PropTypes.func,\n expandComponent: PropTypes.func,\n expandColumnOptions: PropTypes.shape({\n columnWidth: PropTypes.oneOfType([ PropTypes.number, PropTypes.string ]),\n expandColumnVisible: PropTypes.bool,\n expandColumnComponent: PropTypes.func,\n expandColumnBeforeSelectColumn: PropTypes.bool\n })\n};\nBootstrapTable.defaultProps = {\n scrollTop: undefined,\n expandComponent: undefined,\n expandableRow: undefined,\n expandColumnOptions: {\n expandColumnVisible: false,\n expandColumnComponent: undefined,\n expandColumnBeforeSelectColumn: true\n },\n height: '100%',\n maxHeight: undefined,\n striped: false,\n bordered: true,\n hover: false,\n condensed: false,\n pagination: false,\n printable: false,\n keyBoardNav: false,\n searchPlaceholder: undefined,\n selectRow: {\n mode: Const.ROW_SELECT_NONE,\n bgColor: Const.ROW_SELECT_BG_COLOR,\n selected: [],\n onSelect: undefined,\n onSelectAll: undefined,\n clickToSelect: false,\n hideSelectColumn: false,\n clickToSelectAndEditCell: false,\n clickToExpand: false,\n showOnlySelected: false,\n unselectable: [],\n customComponent: undefined\n },\n cellEdit: {\n mode: Const.CELL_EDIT_NONE,\n blurToSave: false,\n beforeSaveCell: undefined,\n afterSaveCell: undefined,\n nonEditableRows: undefined\n },\n insertRow: false,\n deleteRow: false,\n search: false,\n multiColumnSearch: false,\n strictSearch: undefined,\n multiColumnSort: 1,\n columnFilter: false,\n trClassName: '',\n tableStyle: undefined,\n containerStyle: undefined,\n headerStyle: undefined,\n bodyStyle: undefined,\n containerClass: null,\n tableContainerClass: null,\n headerContainerClass: null,\n bodyContainerClass: null,\n tableHeaderClass: null,\n tableBodyClass: null,\n options: {\n clearSearch: false,\n sortName: undefined,\n sortOrder: undefined,\n defaultSortName: undefined,\n defaultSortOrder: undefined,\n sortIndicator: true,\n afterTableComplete: undefined,\n afterDeleteRow: undefined,\n afterInsertRow: undefined,\n afterSearch: undefined,\n afterColumnFilter: undefined,\n onRowClick: undefined,\n onRowDoubleClick: undefined,\n onMouseLeave: undefined,\n onMouseEnter: undefined,\n onRowMouseOut: undefined,\n onRowMouseOver: undefined,\n page: undefined,\n paginationShowsTotal: false,\n sizePerPageList: Const.SIZE_PER_PAGE_LIST,\n sizePerPage: undefined,\n paginationSize: Const.PAGINATION_SIZE,\n paginationPosition: Const.PAGINATION_POS_BOTTOM,\n hideSizePerPage: false,\n hidePageListOnlyOnePage: false,\n alwaysShowAllBtns: false,\n withFirstAndLast: true,\n onSizePerPageList: undefined,\n noDataText: undefined,\n withoutNoDataText: false,\n handleConfirmDeleteRow: undefined,\n prePage: Const.PRE_PAGE,\n nextPage: Const.NEXT_PAGE,\n firstPage: Const.FIRST_PAGE,\n lastPage: Const.LAST_PAGE,\n prePageTitle: Const.PRE_PAGE_TITLE,\n nextPageTitle: Const.NEXT_PAGE_TITLE,\n firstPageTitle: Const.FIRST_PAGE_TITLE,\n lastPageTitle: Const.LAST_PAGE_TITLE,\n pageStartIndex: 1,\n searchDelayTime: undefined,\n exportCSVText: Const.EXPORT_CSV_TEXT,\n insertText: Const.INSERT_BTN_TEXT,\n deleteText: Const.DELETE_BTN_TEXT,\n saveText: Const.SAVE_BTN_TEXT,\n closeText: Const.CLOSE_BTN_TEXT,\n ignoreEditable: false,\n defaultSearch: '',\n insertModalHeader: undefined,\n insertModalBody: undefined,\n insertModalFooter: undefined,\n insertModal: undefined,\n insertBtn: undefined,\n deleteBtn: undefined,\n showSelectedOnlyBtn: undefined,\n exportCSVBtn: undefined,\n clearSearchBtn: undefined,\n searchField: undefined,\n searchPanel: undefined,\n btnGroup: undefined,\n toolBar: undefined,\n sizePerPageDropDown: undefined,\n paginationPanel: undefined,\n searchPosition: 'right',\n expandRowBgColor: undefined,\n expandBy: Const.EXPAND_BY_ROW,\n expanding: [],\n onlyOneExpanding: false,\n beforeShowError: undefined,\n printToolBar: true\n },\n fetchInfo: {\n dataTotalSize: 0\n },\n exportCSV: false,\n csvFileName: 'spreadsheet.csv',\n ignoreSinglePage: false\n};\n\nexport default BootstrapTable;\n\n\n\n// WEBPACK FOOTER //\n// src/BootstrapTable.js","module.exports = __WEBPACK_EXTERNAL_MODULE_2__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external {\"root\":\"React\",\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\"}\n// module id = 2\n// module chunks = 0","/*!\n Copyright (c) 2016 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tclasses.push(classNames.apply(null, arg));\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/classnames/index.js\n// module id = 3\n// module chunks = 0","const CONST_VAR = {\n SORT_DESC: 'desc',\n SORT_ASC: 'asc',\n SIZE_PER_PAGE: 10,\n NEXT_PAGE: '>',\n NEXT_PAGE_TITLE: 'next page',\n LAST_PAGE: '>>',\n LAST_PAGE_TITLE: 'last page',\n PRE_PAGE: '<',\n PRE_PAGE_TITLE: 'previous page',\n FIRST_PAGE: '<<',\n FIRST_PAGE_TITLE: 'first page',\n PAGE_START_INDEX: 1,\n ROW_SELECT_BG_COLOR: '',\n ROW_SELECT_NONE: 'none',\n ROW_SELECT_SINGLE: 'radio',\n ROW_SELECT_MULTI: 'checkbox',\n CELL_EDIT_NONE: 'none',\n CELL_EDIT_CLICK: 'click',\n CELL_EDIT_DBCLICK: 'dbclick',\n SIZE_PER_PAGE_LIST: [ 10, 25, 30, 50 ],\n PAGINATION_SIZE: 5,\n PAGINATION_POS_TOP: 'top',\n PAGINATION_POS_BOTTOM: 'bottom',\n PAGINATION_POS_BOTH: 'both',\n NO_DATA_TEXT: 'There is no data to display',\n SHOW_ONLY_SELECT: 'Show Selected Only',\n SHOW_ALL: 'Show All',\n EXPORT_CSV_TEXT: 'Export to CSV',\n INSERT_BTN_TEXT: 'New',\n DELETE_BTN_TEXT: 'Delete',\n SAVE_BTN_TEXT: 'Save',\n CLOSE_BTN_TEXT: 'Close',\n FILTER_DELAY: 500,\n SCROLL_TOP: 'Top',\n SCROLL_BOTTOM: 'Bottom',\n FILTER_TYPE: {\n TEXT: 'TextFilter',\n REGEX: 'RegexFilter',\n SELECT: 'SelectFilter',\n NUMBER: 'NumberFilter',\n DATE: 'DateFilter',\n CUSTOM: 'CustomFilter'\n },\n FILTER_COND_EQ: 'eq',\n FILTER_COND_LIKE: 'like',\n EXPAND_BY_ROW: 'row',\n EXPAND_BY_COL: 'column',\n REMOTE_SORT: 'sort',\n REMOTE_PAGE: 'pagination',\n REMOTE_CELL_EDIT: 'cellEdit',\n REMOTE_INSERT_ROW: 'insertRow',\n REMOTE_DROP_ROW: 'dropRow',\n REMOTE_FILTER: 'filter',\n REMOTE_SEARCH: 'search',\n REMOTE_EXPORT_CSV: 'exportCSV'\n};\n\nCONST_VAR.REMOTE = {};\nCONST_VAR.REMOTE[CONST_VAR.REMOTE_SORT] = false;\nCONST_VAR.REMOTE[CONST_VAR.REMOTE_PAGE] = false;\nCONST_VAR.REMOTE[CONST_VAR.REMOTE_CELL_EDIT] = false;\nCONST_VAR.REMOTE[CONST_VAR.REMOTE_INSERT_ROW] = false;\nCONST_VAR.REMOTE[CONST_VAR.REMOTE_DROP_ROW] = false;\nCONST_VAR.REMOTE[CONST_VAR.REMOTE_FILTER] = false;\nCONST_VAR.REMOTE[CONST_VAR.REMOTE_SEARCH] = false;\nCONST_VAR.REMOTE[CONST_VAR.REMOTE_EXPORT_CSV] = false;\n\nexport default CONST_VAR;\n\n\n\n// WEBPACK FOOTER //\n// src/Const.js","import React, { Component, PropTypes } from 'react';\nimport ReactDOM from 'react-dom';\nimport Const from './Const';\nimport classSet from 'classnames';\nimport SelectRowHeaderColumn from './SelectRowHeaderColumn';\n\nclass Checkbox extends Component {\n componentDidMount() { this.update(this.props.checked); }\n componentWillReceiveProps(props) { this.update(props.checked); }\n update(checked) {\n ReactDOM.findDOMNode(this).indeterminate = checked === 'indeterminate';\n }\n render() {\n return (\n \n );\n }\n}\n\nfunction getSortOrder(sortList, field, enableSort) {\n if (!enableSort) return undefined;\n const result = sortList.filter(sortObj => {\n return sortObj.sortField === field;\n });\n if (result.length > 0) {\n return result[0].order;\n } else {\n return undefined;\n }\n}\n\nclass TableHeader extends Component {\n\n render() {\n const containerClasses = classSet(\n 'react-bs-container-header',\n 'table-header-wrapper',\n this.props.headerContainerClass);\n const tableClasses = classSet('table', 'table-hover', {\n 'table-bordered': this.props.bordered,\n 'table-condensed': this.props.condensed\n }, this.props.tableHeaderClass);\n\n const rowCount = Math.max(...React.Children.map(this.props.children, elm =>\n elm.props.row ? Number(elm.props.row) : 0\n ));\n\n const rows = [];\n let rowKey = 0;\n\n rows[0] = [];\n rows[0].push( [\n this.props.expandColumnVisible &&\n this.props.expandColumnBeforeSelectColumn &&\n | \n ], [\n this.renderSelectRowHeader(rowCount + 1, rowKey++)\n ], [\n this.props.expandColumnVisible &&\n !this.props.expandColumnBeforeSelectColumn &&\n | \n ]);\n const { sortIndicator, sortList, onSort, reset } = this.props;\n\n React.Children.forEach(this.props.children, (elm) => {\n const { dataField, dataSort } = elm.props;\n const sort = getSortOrder(sortList, dataField, dataSort);\n const rowIndex = elm.props.row ? Number(elm.props.row) : 0;\n const rowSpan = elm.props.rowSpan ? Number(elm.props.rowSpan) : 1;\n if (rows[rowIndex] === undefined) {\n rows[rowIndex] = [];\n }\n if ((rowSpan + rowIndex) === (rowCount + 1)) {\n rows[rowIndex].push(React.cloneElement(\n elm, { reset, key: rowKey++, onSort, sort, sortIndicator, isOnlyHead: false }\n ));\n } else {\n rows[rowIndex].push(React.cloneElement(\n elm, { key: rowKey++, isOnlyHead: true }\n ));\n }\n });\n\n const trs = rows.map((row, indexRow)=>{\n return (\n \n { row }\n
\n );\n });\n\n return (\n \n
\n { React.cloneElement(this.props.colGroups, { ref: 'headerGrp' }) }\n \n { trs }\n \n
\n
\n );\n }\n\n getHeaderColGrouop = () => {\n return this.refs.headerGrp.childNodes;\n }\n\n renderSelectRowHeader(rowCount, rowKey) {\n if (this.props.hideSelectColumn) {\n return null;\n } else if (this.props.customComponent) {\n const CustomComponent = this.props.customComponent;\n return (\n \n \n \n );\n } else if (this.props.rowSelectType === Const.ROW_SELECT_SINGLE) {\n return ();\n } else if (this.props.rowSelectType === Const.ROW_SELECT_MULTI) {\n return (\n \n \n \n );\n } else {\n return null;\n }\n }\n}\nTableHeader.propTypes = {\n headerContainerClass: PropTypes.string,\n tableHeaderClass: PropTypes.string,\n style: PropTypes.object,\n rowSelectType: PropTypes.string,\n onSort: PropTypes.func,\n onSelectAllRow: PropTypes.func,\n sortList: PropTypes.array,\n hideSelectColumn: PropTypes.bool,\n bordered: PropTypes.bool,\n condensed: PropTypes.bool,\n isFiltered: PropTypes.bool,\n isSelectAll: PropTypes.oneOf([ true, 'indeterminate', false ]),\n sortIndicator: PropTypes.bool,\n customComponent: PropTypes.func,\n colGroups: PropTypes.element,\n reset: PropTypes.bool,\n expandColumnVisible: PropTypes.bool,\n expandColumnComponent: PropTypes.func,\n expandColumnBeforeSelectColumn: PropTypes.bool\n};\n\nexport default TableHeader;\n\n\n\n// WEBPACK FOOTER //\n// src/TableHeader.js","module.exports = __WEBPACK_EXTERNAL_MODULE_6__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external {\"root\":\"ReactDOM\",\"commonjs2\":\"react-dom\",\"commonjs\":\"react-dom\",\"amd\":\"react-dom\"}\n// module id = 6\n// module chunks = 0","import React, { Component, PropTypes } from 'react';\n\nclass SelectRowHeaderColumn extends Component {\n\n render() {\n return (\n \n { this.props.children }\n | \n );\n }\n}\nSelectRowHeaderColumn.propTypes = {\n children: PropTypes.node,\n rowCount: PropTypes.number\n};\nexport default SelectRowHeaderColumn;\n\n\n\n// WEBPACK FOOTER //\n// src/SelectRowHeaderColumn.js","import React, { Component, PropTypes } from 'react';\nimport Utils from './util';\nimport Const from './Const';\nimport TableRow from './TableRow';\nimport TableColumn from './TableColumn';\nimport TableEditColumn from './TableEditColumn';\nimport classSet from 'classnames';\nimport ExpandComponent from './ExpandComponent';\n\nconst isFun = function(obj) {\n return obj && (typeof obj === 'function');\n};\n\nclass TableBody extends Component {\n constructor(props) {\n super(props);\n this.state = {\n currEditCell: null\n };\n }\n\n render() {\n const { cellEdit, beforeShowError, x, y, keyBoardNav } = this.props;\n const tableClasses = classSet('table', {\n 'table-striped': this.props.striped,\n 'table-bordered': this.props.bordered,\n 'table-hover': this.props.hover,\n 'table-condensed': this.props.condensed\n }, this.props.tableBodyClass);\n\n const noneditableRows = (cellEdit.nonEditableRows && cellEdit.nonEditableRows()) || [];\n const unselectable = this.props.selectRow.unselectable || [];\n const isSelectRowDefined = this._isSelectRowDefined();\n const tableHeader = Utils.renderColGroup(this.props.columns,\n this.props.selectRow, this.props.expandColumnOptions);\n const inputType = this.props.selectRow.mode === Const.ROW_SELECT_SINGLE ? 'radio' : 'checkbox';\n const CustomComponent = this.props.selectRow.customComponent;\n const enableKeyBoardNav = (keyBoardNav === true || typeof keyBoardNav === 'object');\n const customEditAndNavStyle = typeof keyBoardNav === 'object' ?\n keyBoardNav.customStyleOnEditCell :\n null;\n const customNavStyle = typeof keyBoardNav === 'object' ?\n keyBoardNav.customStyle :\n null;\n const ExpandColumnCustomComponent = this.props.expandColumnOptions.expandColumnComponent;\n let expandColSpan = this.props.columns.filter(col => !col.hidden).length;\n if (isSelectRowDefined && !this.props.selectRow.hideSelectColumn) {\n expandColSpan += 1;\n }\n let tabIndex = 1;\n if (this.props.expandColumnOptions.expandColumnVisible) {\n expandColSpan += 1;\n }\n\n let tableRows = this.props.data.map(function(data, r) {\n const tableColumns = this.props.columns.map(function(column, i) {\n const fieldValue = data[column.name];\n const isFocusCell = r === y && i === x;\n if (column.name !== this.props.keyField && // Key field can't be edit\n column.editable && // column is editable? default is true, user can set it false\n column.editable.readOnly !== true &&\n this.state.currEditCell !== null &&\n this.state.currEditCell.rid === r &&\n this.state.currEditCell.cid === i &&\n noneditableRows.indexOf(data[this.props.keyField]) === -1) {\n let editable = column.editable;\n const format = column.format ? function(value) {\n return column.format(value, data, column.formatExtraData, r).replace(/<.*?>/g, '');\n } : false;\n if (isFun(column.editable)) {\n editable = column.editable(fieldValue, data, r, i);\n }\n\n return (\n \n );\n } else {\n // add by bluespring for className customize\n let columnChild = fieldValue && fieldValue.toString();\n let columnTitle = null;\n let tdClassName = column.className;\n if (isFun(column.className)) {\n tdClassName = column.className(fieldValue, data, r, i);\n }\n\n if (typeof column.format !== 'undefined') {\n const formattedValue = column.format(fieldValue, data, column.formatExtraData, r);\n if (!React.isValidElement(formattedValue)) {\n columnChild = (\n \n );\n } else {\n columnChild = formattedValue;\n columnTitle = column.columnTitle && formattedValue ? formattedValue.toString() : null;\n }\n } else {\n columnTitle = column.columnTitle && fieldValue ? fieldValue.toString() : null;\n }\n return (\n \n { columnChild }\n \n );\n }\n }, this);\n const key = data[this.props.keyField];\n const disable = unselectable.indexOf(key) !== -1;\n const selected = this.props.selectedRowKeys.indexOf(key) !== -1;\n const selectRowColumn = isSelectRowDefined && !this.props.selectRow.hideSelectColumn ?\n this.renderSelectRowColumn(selected, inputType, disable, CustomComponent, r, data) : null;\n const expandedRowColumn = this.renderExpandRowColumn(\n this.props.expandableRow && this.props.expandableRow(data),\n this.props.expanding.indexOf(key) > -1,\n ExpandColumnCustomComponent, r, data\n );\n // add by bluespring for className customize\n let trClassName = this.props.trClassName;\n if (isFun(this.props.trClassName)) {\n trClassName = this.props.trClassName(data, r);\n }\n const result = [ \n { this.props.expandColumnOptions.expandColumnVisible &&\n this.props.expandColumnOptions.expandColumnBeforeSelectColumn &&\n expandedRowColumn }\n { selectRowColumn }\n { this.props.expandColumnOptions.expandColumnVisible &&\n !this.props.expandColumnOptions.expandColumnBeforeSelectColumn &&\n expandedRowColumn }\n { tableColumns }\n ];\n\n if (this.props.expandableRow && this.props.expandableRow(data)) {\n result.push(\n -1) }\n colSpan={ expandColSpan }\n width={ \"100%\" }>\n { this.props.expandComponent(data) }\n \n );\n }\n return (result);\n }, this);\n\n if (tableRows.length === 0 && !this.props.withoutNoDataText) {\n const colSpan = this.props.columns.filter(c => !c.hidden).length\n + (isSelectRowDefined ? 1 : 0);\n tableRows = [\n \n \n { this.props.noDataText || Const.NO_DATA_TEXT }\n | \n \n ];\n }\n\n return (\n \n
\n { React.cloneElement(tableHeader, { ref: 'header' }) }\n \n { tableRows }\n \n
\n
\n );\n }\n\n handleCellKeyDown = (e, lastEditCell) => {\n e.preventDefault();\n const { keyBoardNav, onNavigateCell, cellEdit } = this.props;\n let offset;\n if (e.keyCode === 37) {\n offset = { x: -1, y: 0 };\n } else if (e.keyCode === 38) {\n offset = { x: 0, y: -1 };\n } else if (e.keyCode === 39 || e.keyCode === 9) {\n offset = { x: 1, y: 0 };\n if (e.keyCode === 9 && lastEditCell) {\n offset = {\n ...offset,\n lastEditCell\n };\n }\n } else if (e.keyCode === 40) {\n offset = { x: 0, y: 1 };\n } else if (e.keyCode === 13) {\n const enterToEdit = typeof keyBoardNav === 'object' ?\n keyBoardNav.enterToEdit :\n false;\n if (cellEdit && enterToEdit) {\n this.handleEditCell(e.target.parentElement.rowIndex + 1,\n e.currentTarget.cellIndex, '', e);\n }\n }\n if (offset && keyBoardNav) {\n onNavigateCell(offset);\n }\n }\n\n handleRowMouseOut = (rowIndex, event) => {\n const targetRow = this.props.data[rowIndex];\n this.props.onRowMouseOut(targetRow, event);\n }\n\n handleRowMouseOver = (rowIndex, event) => {\n const targetRow = this.props.data[rowIndex];\n this.props.onRowMouseOver(targetRow, event);\n }\n\n handleRowClick = (rowIndex, cellIndex) => {\n const { onRowClick } = this.props;\n if (this._isSelectRowDefined()) cellIndex--;\n if (this._isExpandColumnVisible()) cellIndex--;\n onRowClick(this.props.data[rowIndex - 1], rowIndex - 1, cellIndex);\n }\n\n handleRowDoubleClick = rowIndex => {\n const { onRowDoubleClick } = this.props;\n const targetRow = this.props.data[rowIndex];\n onRowDoubleClick(targetRow);\n }\n\n handleSelectRow = (rowIndex, isSelected, e) => {\n let selectedRow;\n const { data, onSelectRow } = this.props;\n data.forEach((row, i) => {\n if (i === rowIndex - 1) {\n selectedRow = row;\n return false;\n }\n });\n onSelectRow(selectedRow, isSelected, e);\n }\n\n handleSelectRowColumChange = (e, rowIndex) => {\n if (!this.props.selectRow.clickToSelect ||\n !this.props.selectRow.clickToSelectAndEditCell) {\n this.handleSelectRow(\n rowIndex + 1,\n e.currentTarget.checked,\n e);\n }\n }\n\n handleClickCell = (rowIndex, columnIndex = -1) => {\n const {\n columns,\n keyField,\n expandBy,\n expandableRow,\n selectRow: {\n clickToExpand\n },\n onlyOneExpanding\n } = this.props;\n const selectRowAndExpand = this._isSelectRowDefined() && !clickToExpand ? false : true;\n columnIndex = this._isSelectRowDefined() ? columnIndex - 1 : columnIndex;\n columnIndex = this._isExpandColumnVisible() ? columnIndex - 1 : columnIndex;\n if (expandableRow &&\n selectRowAndExpand &&\n (expandBy === Const.EXPAND_BY_ROW ||\n /* Below will allow expanding trigger by clicking on selection column\n if configure as expanding by column */\n (expandBy === Const.EXPAND_BY_COL && columnIndex < 0) ||\n (expandBy === Const.EXPAND_BY_COL && columns[columnIndex].expandable))) {\n const rowKey = this.props.data[rowIndex - 1][keyField];\n let expanding = this.props.expanding;\n if (expanding.indexOf(rowKey) > -1) {\n expanding = expanding.filter(k => k !== rowKey);\n } else {\n if (onlyOneExpanding) expanding = [ rowKey ];\n else expanding.push(rowKey);\n }\n this.props.onExpand(expanding);\n }\n }\n\n handleEditCell = (rowIndex, columnIndex, action, e) => {\n const { selectRow } = this.props;\n const defineSelectRow = this._isSelectRowDefined();\n const expandColumnVisible = this._isExpandColumnVisible();\n if (defineSelectRow) {\n columnIndex--;\n if (selectRow.hideSelectColumn) columnIndex++;\n }\n if (expandColumnVisible) {\n columnIndex--;\n }\n rowIndex--;\n\n if (action === 'tab') {\n if (defineSelectRow && !selectRow.hideSelectColumn) columnIndex++;\n if (expandColumnVisible) columnIndex++;\n this.handleCompleteEditCell(e.target.value, rowIndex, columnIndex - 1);\n if (columnIndex >= this.props.columns.length) {\n this.handleCellKeyDown(e, true);\n } else {\n this.handleCellKeyDown(e);\n }\n const { nextRIndex, nextCIndex } = this.nextEditableCell(rowIndex, columnIndex);\n rowIndex = nextRIndex;\n columnIndex = nextCIndex;\n }\n\n const stateObj = {\n currEditCell: {\n rid: rowIndex,\n cid: columnIndex\n }\n };\n\n if (this.props.selectRow.clickToSelectAndEditCell &&\n this.props.cellEdit.mode !== Const.CELL_EDIT_DBCLICK) {\n const selected = this.props.selectedRowKeys.indexOf(\n this.props.data[rowIndex][this.props.keyField]) !== -1;\n this.handleSelectRow(rowIndex + 1, !selected, e);\n }\n this.setState(stateObj);\n }\n\n nextEditableCell = (rIndex, cIndex) => {\n const { keyField } = this.props;\n let nextRIndex = rIndex;\n let nextCIndex = cIndex;\n let row;\n let column;\n do {\n if (nextCIndex >= this.props.columns.length) {\n nextRIndex++;\n nextCIndex = 0;\n }\n row = this.props.data[nextRIndex];\n column = this.props.columns[nextCIndex];\n if (!row) break;\n let editable = column.editable;\n if (isFun(column.editable)) {\n editable = column.editable(column, row, nextRIndex, nextCIndex);\n }\n if (editable && editable.readOnly !== true &&\n !column.hidden && keyField !== column.name) {\n break;\n } else {\n nextCIndex++;\n }\n } while (row);\n return { nextRIndex, nextCIndex };\n }\n\n handleCompleteEditCell = (newVal, rowIndex, columnIndex) => {\n this.setState({ currEditCell: null });\n if (newVal !== null) {\n this.props.cellEdit.__onCompleteEdit__(newVal, rowIndex, columnIndex);\n }\n }\n\n handleClickonSelectColumn = (e, isSelect, rowIndex, row) => {\n e.stopPropagation();\n if (e.target.tagName === 'TD' &&\n (this.props.selectRow.clickToSelect || this.props.selectRow.clickToSelectAndEditCell)) {\n const unselectable = this.props.selectRow.unselectable || [];\n if (unselectable.indexOf(row[this.props.keyField]) === -1) {\n this.handleSelectRow(rowIndex + 1, isSelect, e);\n this.handleClickCell(rowIndex + 1);\n }\n }\n }\n\n renderSelectRowColumn(selected, inputType, disabled,\n CustomComponent = null, rowIndex = null, row) {\n return (\n {\n this.handleClickonSelectColumn(e, !selected, rowIndex, row);\n } } style={ { textAlign: 'center' } }>\n { CustomComponent ?\n this.handleSelectRowColumChange(e, rowIndex) }/> :\n this.handleSelectRowColumChange(e, rowIndex) }/>\n }\n | \n );\n }\n\n renderExpandRowColumn(isExpandableRow, isExpanded, CustomComponent, rowIndex = null) {\n let content = null;\n if (CustomComponent) {\n content = ();\n } else if (isExpandableRow) {\n content = (isExpanded ? () :\n () );\n } else {\n content = ' ';\n }\n\n return (\n this.handleClickCell(rowIndex + 1) }>\n { content }\n | \n );\n }\n\n _isSelectRowDefined() {\n return this.props.selectRow.mode === Const.ROW_SELECT_SINGLE ||\n this.props.selectRow.mode === Const.ROW_SELECT_MULTI;\n }\n\n _isExpandColumnVisible() {\n return this.props.expandColumnOptions.expandColumnVisible;\n }\n\n getHeaderColGrouop = () => {\n return this.refs.header.childNodes;\n }\n}\nTableBody.propTypes = {\n data: PropTypes.array,\n columns: PropTypes.array,\n striped: PropTypes.bool,\n bordered: PropTypes.bool,\n hover: PropTypes.bool,\n condensed: PropTypes.bool,\n keyField: PropTypes.string,\n selectedRowKeys: PropTypes.array,\n onRowClick: PropTypes.func,\n onRowDoubleClick: PropTypes.func,\n onSelectRow: PropTypes.func,\n noDataText: PropTypes.oneOfType([ PropTypes.string, PropTypes.object ]),\n withoutNoDataText: PropTypes.bool,\n style: PropTypes.object,\n tableBodyClass: PropTypes.string,\n bodyContainerClass: PropTypes.string,\n expandableRow: PropTypes.func,\n expandComponent: PropTypes.func,\n expandRowBgColor: PropTypes.string,\n expandBy: PropTypes.string,\n expanding: PropTypes.array,\n onExpand: PropTypes.func,\n onlyOneExpanding: PropTypes.bool,\n beforeShowError: PropTypes.func,\n keyBoardNav: PropTypes.oneOfType([ PropTypes.bool, PropTypes.object ]),\n x: PropTypes.number,\n y: PropTypes.number,\n onNavigateCell: PropTypes.func\n};\nexport default TableBody;\n\n\n\n// WEBPACK FOOTER //\n// src/TableBody.js","/* eslint react/display-name: 0 */\nimport React from 'react';\nimport Const from './Const';\nimport classSet from 'classnames';\n\nexport default {\n renderReactSortCaret(order) {\n const orderClass = classSet('order', {\n 'dropup': order === Const.SORT_ASC\n });\n return (\n \n \n \n );\n },\n\n getScrollBarWidth() {\n const inner = document.createElement('p');\n inner.style.width = '100%';\n inner.style.height = '200px';\n\n const outer = document.createElement('div');\n outer.style.position = 'absolute';\n outer.style.top = '0px';\n outer.style.left = '0px';\n outer.style.visibility = 'hidden';\n outer.style.width = '200px';\n outer.style.height = '150px';\n outer.style.overflow = 'hidden';\n outer.appendChild(inner);\n\n document.body.appendChild(outer);\n const w1 = inner.getBoundingClientRect().width;\n outer.style.overflow = 'scroll';\n let w2 = inner.getBoundingClientRect().width;\n\n if (w1 === w2) w2 = outer.clientWidth;\n\n document.body.removeChild(outer);\n\n return (w1 - w2);\n },\n\n canUseDOM() {\n return typeof window !== 'undefined' && typeof window.document !== 'undefined';\n },\n\n // We calculate an offset here in order to properly fetch the indexed data,\n // despite the page start index not always being 1\n getNormalizedPage(pageStartIndex, page) {\n pageStartIndex = this.getFirstPage(pageStartIndex);\n if (page === undefined) page = pageStartIndex;\n const offset = Math.abs(Const.PAGE_START_INDEX - pageStartIndex);\n return page + offset;\n },\n\n getFirstPage(pageStartIndex) {\n return pageStartIndex !== undefined ? pageStartIndex : Const.PAGE_START_INDEX;\n },\n\n renderColGroup(columns, selectRow, expandColumnOptions = {}) {\n let selectRowHeader = null;\n let expandRowHeader = null;\n const isSelectRowDefined = selectRow.mode === Const.ROW_SELECT_SINGLE ||\n selectRow.mode === Const.ROW_SELECT_MULTI;\n if (isSelectRowDefined) {\n const style = {\n width: selectRow.columnWidth || '30px',\n minWidth: selectRow.columnWidth || '30px'\n };\n if (!selectRow.hideSelectColumn) {\n selectRowHeader = ();\n }\n }\n if (expandColumnOptions.expandColumnVisible) {\n const style = {\n width: expandColumnOptions.columnWidth || 30,\n minWidth: expandColumnOptions.columnWidth || 30\n };\n expandRowHeader = ();\n }\n const theader = columns.map(function(column, i) {\n const style = {\n display: column.hidden ? 'none' : null\n };\n if (column.width) {\n const width = !isNaN(column.width) ? column.width + 'px' : column.width;\n style.width = width;\n /** add min-wdth to fix user assign column width\n not eq offsetWidth in large column table **/\n style.minWidth = width;\n }\n return ();\n });\n\n return (\n \n { expandColumnOptions.expandColumnVisible &&\n expandColumnOptions.expandColumnBeforeSelectColumn &&\n expandRowHeader }\n { selectRowHeader }\n { expandColumnOptions.expandColumnVisible &&\n !expandColumnOptions.expandColumnBeforeSelectColumn &&\n expandRowHeader }\n { theader }\n \n );\n }\n};\n\n\n\n// WEBPACK FOOTER //\n// src/util.js","/* eslint no-nested-ternary: 0 */\nimport classSet from 'classnames';\nimport React, { Component, PropTypes } from 'react';\n\nclass TableRow extends Component {\n\n constructor(props) {\n super(props);\n this.clickNum = 0;\n }\n\n rowClick = e => {\n const rowIndex = this.props.index + 1;\n const cellIndex = e.target.cellIndex;\n if (this.props.onRowClick) this.props.onRowClick(rowIndex, cellIndex);\n const { selectRow, unselectableRow, isSelected, onSelectRow, onExpandRow } = this.props;\n if (selectRow) {\n if (selectRow.clickToSelect && !unselectableRow) {\n onSelectRow(rowIndex, !isSelected, e);\n } else if (selectRow.clickToSelectAndEditCell && !unselectableRow) {\n this.clickNum++;\n /** if clickToSelectAndEditCell is enabled,\n * there should be a delay to prevent a selection changed when\n * user dblick to edit cell on same row but different cell\n **/\n setTimeout(() => {\n if (this.clickNum === 1) {\n onSelectRow(rowIndex, !isSelected, e);\n onExpandRow(rowIndex, cellIndex);\n }\n this.clickNum = 0;\n }, 200);\n } else {\n this.expandRow(rowIndex, cellIndex);\n }\n }\n }\n\n expandRow = (rowIndex, cellIndex) => {\n this.clickNum++;\n setTimeout(() => {\n if (this.clickNum === 1) {\n this.props.onExpandRow(rowIndex, cellIndex);\n }\n this.clickNum = 0;\n }, 200);\n }\n\n rowDoubleClick = e => {\n if (e.target.tagName !== 'INPUT' &&\n e.target.tagName !== 'SELECT' &&\n e.target.tagName !== 'TEXTAREA') {\n if (this.props.onRowDoubleClick) {\n this.props.onRowDoubleClick(this.props.index);\n }\n }\n }\n\n rowMouseOut = e => {\n const rowIndex = this.props.index;\n if (this.props.onRowMouseOut) {\n this.props.onRowMouseOut(rowIndex, e);\n }\n }\n\n rowMouseOver = e => {\n const rowIndex = this.props.index;\n if (this.props.onRowMouseOver) {\n this.props.onRowMouseOver(rowIndex, e);\n }\n }\n\n render() {\n this.clickNum = 0;\n const { selectRow, row, isSelected } = this.props;\n let backgroundColor = null;\n\n if (selectRow) {\n backgroundColor = typeof selectRow.bgColor === 'function' ?\n selectRow.bgColor(row, isSelected) : ( isSelected ? selectRow.bgColor : null);\n }\n\n const trCss = {\n style: { backgroundColor },\n className: classSet(\n isSelected ? selectRow.className : null,\n this.props.className\n )\n };\n\n return (\n { this.props.children }
\n );\n }\n}\nTableRow.propTypes = {\n index: PropTypes.number,\n row: PropTypes.any,\n isSelected: PropTypes.bool,\n enableCellEdit: PropTypes.bool,\n onRowClick: PropTypes.func,\n onRowDoubleClick: PropTypes.func,\n onSelectRow: PropTypes.func,\n onExpandRow: PropTypes.func,\n onRowMouseOut: PropTypes.func,\n onRowMouseOver: PropTypes.func,\n unselectableRow: PropTypes.bool\n};\nTableRow.defaultProps = {\n onRowClick: undefined,\n onRowDoubleClick: undefined\n};\nexport default TableRow;\n\n\n\n// WEBPACK FOOTER //\n// src/TableRow.js","import React, { Component, PropTypes } from 'react';\nimport ReactDOM from 'react-dom';\nimport Const from './Const';\n\nclass TableColumn extends Component {\n\n constructor(props) {\n super(props);\n }\n /* eslint no-unused-vars: [0, { \"args\": \"after-used\" }] */\n shouldComponentUpdate(nextProps, nextState) {\n const { children } = this.props;\n let shouldUpdated = this.props.width !== nextProps.width\n || this.props.className !== nextProps.className\n || this.props.hidden !== nextProps.hidden\n || this.props.dataAlign !== nextProps.dataAlign\n || this.props.isFocus !== nextProps.isFocus\n || typeof children !== typeof nextProps.children\n || ('' + this.props.onEdit).toString() !== ('' + nextProps.onEdit).toString();\n\n if (shouldUpdated) {\n return shouldUpdated;\n }\n\n if (typeof children === 'object' && children !== null && children.props !== null) {\n if (children.props.type === 'checkbox' || children.props.type === 'radio') {\n shouldUpdated = shouldUpdated ||\n children.props.type !== nextProps.children.props.type ||\n children.props.checked !== nextProps.children.props.checked ||\n children.props.disabled !== nextProps.children.props.disabled;\n } else {\n shouldUpdated = true;\n }\n } else {\n shouldUpdated = shouldUpdated || children !== nextProps.children;\n }\n\n if (shouldUpdated) {\n return shouldUpdated;\n }\n\n if (!(this.props.cellEdit && nextProps.cellEdit)) {\n return false;\n } else {\n return shouldUpdated\n || this.props.cellEdit.mode !== nextProps.cellEdit.mode;\n }\n }\n\n componentDidMount() {\n const dom = ReactDOM.findDOMNode(this);\n if (this.props.isFocus) {\n dom.focus();\n } else {\n dom.blur();\n }\n }\n\n componentDidUpdate() {\n const dom = ReactDOM.findDOMNode(this);\n if (this.props.isFocus) {\n dom.focus();\n } else {\n dom.blur();\n }\n }\n\n handleCellEdit = e => {\n if (this.props.cellEdit.mode === Const.CELL_EDIT_DBCLICK) {\n if (document.selection && document.selection.empty) {\n document.selection.empty();\n } else if (window.getSelection) {\n const sel = window.getSelection();\n sel.removeAllRanges();\n }\n }\n this.props.onEdit(\n this.props.rIndex + 1, e.currentTarget.cellIndex, e);\n if (this.props.cellEdit.mode !== Const.CELL_EDIT_DBCLICK) {\n this.props.onClick(this.props.rIndex + 1, e.currentTarget.cellIndex, e);\n }\n }\n\n handleCellClick = e => {\n const { onClick, rIndex } = this.props;\n if (onClick) {\n onClick(rIndex + 1, e.currentTarget.cellIndex, e);\n }\n }\n\n handleKeyDown = e => {\n if (this.props.keyBoardNav) {\n this.props.onKeyDown(e);\n }\n }\n\n render() {\n const {\n children,\n columnTitle,\n dataAlign,\n hidden,\n cellEdit,\n attrs,\n style,\n isFocus,\n keyBoardNav,\n tabIndex,\n customNavStyle,\n row\n } = this.props;\n\n let { className } = this.props;\n\n let tdStyle = {\n textAlign: dataAlign,\n display: hidden ? 'none' : null,\n ...style\n };\n\n const opts = {};\n\n if (cellEdit) {\n if (cellEdit.mode === Const.CELL_EDIT_CLICK) {\n opts.onClick = this.handleCellEdit;\n } else if (cellEdit.mode === Const.CELL_EDIT_DBCLICK) {\n opts.onDoubleClick = this.handleCellEdit;\n } else {\n opts.onClick = this.handleCellClick;\n }\n }\n\n if (keyBoardNav && isFocus) {\n opts.onKeyDown = this.handleKeyDown;\n }\n\n if (isFocus) {\n if (customNavStyle) {\n const cusmtStyle = typeof customNavStyle === 'function' ?\n customNavStyle(children, row) : customNavStyle;\n tdStyle = {\n ...tdStyle,\n ...cusmtStyle\n };\n } else {\n className = `${className} default-focus-cell`;\n }\n }\n return (\n \n { typeof children === 'boolean' ? children.toString() : children }\n | \n );\n }\n}\nTableColumn.propTypes = {\n rIndex: PropTypes.number,\n dataAlign: PropTypes.string,\n hidden: PropTypes.bool,\n className: PropTypes.string,\n columnTitle: PropTypes.string,\n children: PropTypes.node,\n onClick: PropTypes.func,\n attrs: PropTypes.object,\n style: PropTypes.object,\n isFocus: PropTypes.bool,\n onKeyDown: PropTypes.func,\n tabIndex: PropTypes.string,\n keyBoardNav: PropTypes.oneOfType([ PropTypes.bool, PropTypes.object ]),\n customNavStyle: PropTypes.oneOfType([ PropTypes.func, PropTypes.object ]),\n row: PropTypes.any /* only used on custom styling for navigation */\n};\n\nTableColumn.defaultProps = {\n dataAlign: 'left',\n hidden: false,\n className: '',\n isFocus: false,\n keyBoardNav: false\n};\nexport default TableColumn;\n\n\n\n// WEBPACK FOOTER //\n// src/TableColumn.js","import React, { Component, PropTypes } from 'react';\nimport ReactDOM from 'react-dom';\nimport editor from './Editor';\nimport { notice } from './Notification.js';\nimport classSet from 'classnames';\n\nclass TableEditColumn extends Component {\n constructor(props) {\n super(props);\n this.timeouteClear = 0;\n const { fieldValue, row, className } = this.props;\n this.state = {\n shakeEditor: false,\n className: typeof className === 'function' ? className(fieldValue, row) : className\n };\n }\n\n handleKeyPress = e => {\n if (e.keyCode === 13) {\n // Pressed ENTER\n const value = e.currentTarget.type === 'checkbox' ?\n this._getCheckBoxValue(e) : e.currentTarget.value;\n\n if (!this.validator(value)) {\n return;\n }\n this.props.completeEdit(value, this.props.rowIndex, this.props.colIndex);\n } else if (e.keyCode === 27) {\n this.props.completeEdit(\n null, this.props.rowIndex, this.props.colIndex);\n } else if (e.keyCode === 9) {\n this.props.onTab(this.props.rowIndex + 1, this.props.colIndex + 1, 'tab', e);\n e.preventDefault();\n } else if (e.type === 'click' && !this.props.blurToSave) { // textarea click save button\n const value = e.target.parentElement.firstChild.value;\n if (!this.validator(value)) {\n return;\n }\n this.props.completeEdit(\n value, this.props.rowIndex, this.props.colIndex);\n }\n }\n\n handleBlur = e => {\n e.stopPropagation();\n if (this.props.blurToSave) {\n const value = e.currentTarget.type === 'checkbox' ?\n this._getCheckBoxValue(e) : e.currentTarget.value;\n if (!this.validator(value)) {\n return;\n }\n this.props.completeEdit(\n value, this.props.rowIndex, this.props.colIndex);\n }\n }\n\n handleCustomUpdate = value => {\n if (!this.validator(value)) {\n return;\n }\n this.props.completeEdit(value, this.props.rowIndex, this.props.colIndex);\n }\n\n // modified by iuculanop\n // BEGIN\n validator(value) {\n const ts = this;\n let valid = true;\n if (ts.props.editable.validator) {\n const input = ts.refs.inputRef;\n const checkVal = ts.props.editable.validator(value, this.props.row);\n const responseType = typeof checkVal;\n if (responseType !== 'object' && checkVal !== true) {\n valid = false;\n this.notifyToastr('error', checkVal, '');\n } else if (responseType === 'object' && checkVal.isValid !== true) {\n valid = false;\n this.notifyToastr(checkVal.notification.type,\n checkVal.notification.msg,\n checkVal.notification.title);\n }\n if (!valid) {\n // animate input\n ts.clearTimeout();\n const { invalidColumnClassName, row } = this.props;\n const className = typeof invalidColumnClassName === 'function' ?\n invalidColumnClassName(value, row) :\n invalidColumnClassName;\n ts.setState({ shakeEditor: true, className });\n ts.timeouteClear = setTimeout(() => {\n ts.setState({ shakeEditor: false });\n }, 300);\n input.focus();\n return valid;\n }\n }\n return valid;\n }\n // END\n\n notifyToastr = (type, message, title) => {\n let toastr = true;\n const { beforeShowError } = this.props;\n if (beforeShowError) {\n toastr = beforeShowError(type, message, title);\n }\n if (toastr) {\n notice(type, message, title);\n }\n }\n\n clearTimeout() {\n if (this.timeouteClear !== 0) {\n clearTimeout(this.timeouteClear);\n this.timeouteClear = 0;\n }\n }\n\n componentDidMount() {\n this.refs.inputRef.focus();\n const dom = ReactDOM.findDOMNode(this);\n if (this.props.isFocus) {\n dom.focus();\n } else {\n dom.blur();\n }\n }\n\n componentDidUpdate() {\n const dom = ReactDOM.findDOMNode(this);\n if (this.props.isFocus) {\n dom.focus();\n } else {\n dom.blur();\n }\n }\n\n componentWillUnmount() {\n this.clearTimeout();\n }\n\n handleClick = e => {\n if (e.target.tagName !== 'TD') {\n e.stopPropagation();\n }\n }\n\n render() {\n const {\n editable,\n format,\n customEditor,\n isFocus,\n customStyleWithNav,\n row\n } = this.props;\n const { shakeEditor } = this.state;\n const attr = {\n ref: 'inputRef',\n onKeyDown: this.handleKeyPress,\n onBlur: this.handleBlur\n };\n let style = { position: 'relative' };\n let { fieldValue } = this.props;\n let { className } = this.state;\n // put placeholder if exist\n editable.placeholder && (attr.placeholder = editable.placeholder);\n\n const editorClass = classSet({ 'animated': shakeEditor, 'shake': shakeEditor });\n let cellEditor;\n if (customEditor) {\n const customEditorProps = {\n row,\n ...attr,\n defaultValue: fieldValue || '',\n ...customEditor.customEditorParameters\n };\n cellEditor = customEditor.getElement(this.handleCustomUpdate, customEditorProps);\n } else {\n fieldValue = fieldValue === 0 ? '0' : fieldValue;\n cellEditor = editor(editable, attr, format, editorClass, fieldValue || '');\n }\n\n if (isFocus) {\n if (customStyleWithNav) {\n const customStyle = typeof customStyleWithNav === 'function' ?\n customStyleWithNav(fieldValue, row) : customStyleWithNav;\n style = {\n ...style,\n ...customStyle\n };\n } else {\n className = `${className} default-focus-cell`;\n }\n }\n\n return (\n \n { cellEditor }\n | \n );\n }\n\n _getCheckBoxValue(e) {\n let value = '';\n const values = e.currentTarget.value.split(':');\n value = e.currentTarget.checked ? values[0] : values[1];\n return value;\n }\n}\n\nTableEditColumn.propTypes = {\n completeEdit: PropTypes.func,\n rowIndex: PropTypes.number,\n colIndex: PropTypes.number,\n blurToSave: PropTypes.bool,\n editable: PropTypes.oneOfType([ PropTypes.bool, PropTypes.object ]),\n format: PropTypes.oneOfType([ PropTypes.bool, PropTypes.func ]),\n row: PropTypes.any,\n fieldValue: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.bool,\n PropTypes.number,\n PropTypes.array,\n PropTypes.object\n ]),\n className: PropTypes.any,\n beforeShowError: PropTypes.func,\n isFocus: PropTypes.bool,\n customStyleWithNav: PropTypes.oneOfType([ PropTypes.func, PropTypes.object ])\n};\n\n\nexport default TableEditColumn;\n\n\n\n// WEBPACK FOOTER //\n// src/TableEditColumn.js","import React from 'react';\n\nconst editor = function(editable, attr, format, editorClass, defaultValue, ignoreEditable) {\n if (editable === true ||\n (editable === false && ignoreEditable) ||\n typeof editable === 'string') { // simple declare\n const type = editable ? 'text' : editable;\n return (\n \n );\n } else if (!editable) {\n const type = editable ? 'text' : editable;\n return (\n \n );\n } else if (editable && (editable.type === undefined ||\n editable.type === null ||\n editable.type.trim() === '')) {\n const type = editable ? 'text' : editable;\n return (\n \n );\n } else if (editable.type) {// standard declare\n // put style if exist\n editable.style && (attr.style = editable.style);\n // put class if exist\n attr.className = (editorClass || '') +\n ' form-control editor edit-' +\n editable.type +\n (editable.className ? (' ' + editable.className) : '');\n\n if (editable.type === 'select') {// process select input\n let options = [];\n const values = editable.options.values;\n if (Array.isArray(values)) {// only can use arrray data for options\n let rowValue;\n options = values.map((d, i) => {\n rowValue = format ? format(d) : d;\n return (\n \n );\n });\n }\n return (\n \n );\n } else if (editable.type === 'textarea') {// process textarea input\n // put other if exist\n editable.cols && (attr.cols = editable.cols);\n editable.rows && (attr.rows = editable.rows);\n let saveBtn;\n const keyUpHandler = attr.onKeyDown;\n if (keyUpHandler) {\n attr.onKeyDown = function(e) {\n if (e.keyCode !== 13) { // not Pressed ENTER\n keyUpHandler(e);\n }\n };\n saveBtn = (\n \n );\n }\n return (\n \n \n { saveBtn }\n
\n );\n } else if (editable.type === 'checkbox') {\n let values = 'true:false';\n if (editable.options && editable.options.values) {\n // values = editable.options.values.split(':');\n values = editable.options.values;\n }\n attr.className = attr.className.replace('form-control', '');\n attr.className += ' checkbox pull-right';\n\n const checked = defaultValue &&\n defaultValue.toString() === values.split(':')[0] ? true : false;\n\n return (\n \n );\n } else if (editable.type === 'datetime') {\n return (\n \n );\n } else {// process other input type. as password,url,email...\n return (\n \n );\n }\n }\n // default return for other case of editable\n return (\n \n );\n};\n\nexport default editor;\n\n\n\n// WEBPACK FOOTER //\n// src/Editor.js","import Alert from 'react-s-alert';\n\nconst notice = (type, msg, title) => {\n const titleHTML = title ? `${ title }
` : '';\n\n const bodyHTML = `\n ${ titleHTML }\n ${ msg }\n `;\n\n Alert.error(bodyHTML, {\n position: 'top-right',\n timeout: 3500,\n html: true\n });\n};\n\nexport { notice };\n\n\n\n// WEBPACK FOOTER //\n// src/Notification.js","module.exports = require('./dist/SAlert');\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-s-alert/index.js\n// module id = 15\n// module chunks = 0","(function (global, factory) {\n if (typeof define === \"function\" && define.amd) {\n define(['exports', 'react', './SAlertContent', 'prop-types', './s-alert-parts/s-alert-store', './s-alert-parts/s-alert-tools', './s-alert-parts/s-alert-data-prep'], factory);\n } else if (typeof exports !== \"undefined\") {\n factory(exports, require('react'), require('./SAlertContent'), require('prop-types'), require('./s-alert-parts/s-alert-store'), require('./s-alert-parts/s-alert-tools'), require('./s-alert-parts/s-alert-data-prep'));\n } else {\n var mod = {\n exports: {}\n };\n factory(mod.exports, global.react, global.SAlertContent, global.propTypes, global.sAlertStore, global.sAlertTools, global.sAlertDataPrep);\n global.SAlert = mod.exports;\n }\n})(this, function (exports, _react, _SAlertContent, _propTypes, _sAlertStore, _sAlertTools, _sAlertDataPrep) {\n 'use strict';\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n\n var _react2 = _interopRequireDefault(_react);\n\n var _SAlertContent2 = _interopRequireDefault(_SAlertContent);\n\n var _propTypes2 = _interopRequireDefault(_propTypes);\n\n var _sAlertStore2 = _interopRequireDefault(_sAlertStore);\n\n var _sAlertTools2 = _interopRequireDefault(_sAlertTools);\n\n var _sAlertDataPrep2 = _interopRequireDefault(_sAlertDataPrep);\n\n function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n }\n\n function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n }();\n\n function _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n }\n\n function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n }\n\n var insertFunc = function insertFunc(msg, data, condition) {\n var id = _sAlertTools2.default.randomId();\n _sAlertStore2.default.dispatch({\n type: 'INSERT',\n data: Object.assign({}, data, {\n id: id,\n condition: condition,\n message: msg\n })\n });\n return id;\n };\n\n var SAlert = function (_React$Component) {\n _inherits(SAlert, _React$Component);\n\n function SAlert(props) {\n _classCallCheck(this, SAlert);\n\n var _this = _possibleConstructorReturn(this, (SAlert.__proto__ || Object.getPrototypeOf(SAlert)).call(this, props));\n\n _this.state = {\n dataRight: [],\n dataLeft: [],\n dataTop: [],\n dataBottom: []\n };\n return _this;\n }\n\n _createClass(SAlert, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n var _this2 = this;\n\n var storeStateLeft = void 0;\n var storeStateRight = void 0;\n var storeStateTop = void 0;\n var storeStateBottom = void 0;\n\n var addToStoreRight = function addToStoreRight() {\n var length = void 0;\n storeStateRight = (0, _sAlertDataPrep2.default)('right') || [];\n length = storeStateRight.length;\n if (_this2.props.stack && _this2.props.stack.limit && length > _this2.props.stack.limit) {\n var id = storeStateRight[0].id;\n _sAlertStore2.default.dispatch({ type: 'REMOVE', data: { id: id } });\n storeStateRight = (0, _sAlertDataPrep2.default)('right') || [];\n }\n _this2.setState({ dataRight: storeStateRight });\n };\n this.unsubStoreRight = _sAlertStore2.default.subscribe(addToStoreRight);\n\n var addToStoreLeft = function addToStoreLeft() {\n var length = void 0;\n storeStateLeft = (0, _sAlertDataPrep2.default)('left') || [];\n length = storeStateLeft.length;\n if (_this2.props.stack && _this2.props.stack.limit && length > _this2.props.stack.limit) {\n var id = storeStateLeft[0].id;\n _sAlertStore2.default.dispatch({ type: 'REMOVE', data: { id: id } });\n storeStateLeft = (0, _sAlertDataPrep2.default)('left') || [];\n }\n _this2.setState({ dataLeft: storeStateLeft });\n };\n this.unsubStoreLeft = _sAlertStore2.default.subscribe(addToStoreLeft);\n\n var addToStoreTop = function addToStoreTop() {\n var length = void 0;\n storeStateTop = (0, _sAlertDataPrep2.default)('full-top') || [];\n length = storeStateTop.length;\n if (_this2.props.stack && _this2.props.stack.limit && length > _this2.props.stack.limit) {\n var id = storeStateTop[0].id;\n _sAlertStore2.default.dispatch({ type: 'REMOVE', data: { id: id } });\n storeStateTop = (0, _sAlertDataPrep2.default)('full-top') || [];\n }\n _this2.setState({ dataTop: storeStateTop });\n };\n this.unsubStoreTop = _sAlertStore2.default.subscribe(addToStoreTop);\n\n var addToStoreBottom = function addToStoreBottom() {\n var length = void 0;\n storeStateBottom = (0, _sAlertDataPrep2.default)('full-bottom') || [];\n length = storeStateBottom.length;\n if (_this2.props.stack && _this2.props.stack.limit && length > _this2.props.stack.limit) {\n var id = storeStateBottom[0].id;\n _sAlertStore2.default.dispatch({ type: 'REMOVE', data: { id: id } });\n storeStateBottom = (0, _sAlertDataPrep2.default)('full-bottom') || [];\n }\n _this2.setState({ dataBottom: storeStateBottom });\n };\n this.unsubStoreBottom = _sAlertStore2.default.subscribe(addToStoreBottom);\n\n // set up global config from global SAlert props\n // only stuff needed for getAlertData\n var globalConfig = {\n contentTemplate: this.props.contentTemplate,\n offset: this.props.offset,\n message: this.props.message,\n stack: this.props.stack,\n html: this.props.html,\n customFields: this.props.customFields,\n position: this.props.position || 'top-right'\n };\n _sAlertTools2.default.setGlobalConfig(globalConfig);\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.unsubStoreTop();\n this.unsubStoreBottom();\n this.unsubStoreLeft();\n this.unsubStoreRight();\n }\n }, {\n key: 'render',\n value: function render() {\n var _this3 = this;\n\n var mapFunc = function mapFunc(alert, index) {\n var customKey = 'alert-key-' + alert.id + '-' + alert.position;\n var id = alert.id;\n var condition = _sAlertTools2.default.returnFirstDefined(alert.condition, 'info');\n var message = _sAlertTools2.default.returnFirstDefined(alert.message, _this3.props.message, '');\n var position = _sAlertTools2.default.returnFirstDefined(alert.position, _this3.props.position, 'top-right');\n var offset = _sAlertTools2.default.returnFirstDefined(alert.offset, _this3.props.offset, 0);\n var effect = _sAlertTools2.default.returnFirstDefined(alert.effect, _this3.props.effect);\n var boxPosition = alert.boxPosition;\n var beep = _sAlertTools2.default.returnFirstDefined(alert.beep, _this3.props.beep, false);\n var timeout = _sAlertTools2.default.returnFirstDefined(alert.timeout, _this3.props.timeout, 5000);\n var html = _sAlertTools2.default.returnFirstDefined(alert.html, _this3.props.html);\n var onClose = _sAlertTools2.default.returnFirstDefined(alert.onClose, _this3.props.onClose);\n var onShow = _sAlertTools2.default.returnFirstDefined(alert.onShow, _this3.props.onShow);\n var customFields = _sAlertTools2.default.returnFirstDefined(alert.customFields, _this3.props.customFields);\n var contentTemplate = _this3.props.contentTemplate;\n return _react2.default.createElement(_SAlertContent2.default, {\n key: customKey,\n id: id,\n customFields: customFields,\n condition: condition,\n message: message,\n position: position,\n effect: effect,\n boxPosition: boxPosition,\n beep: beep,\n timeout: timeout,\n html: html,\n onClose: onClose,\n onShow: onShow,\n contentTemplate: contentTemplate });\n };\n var sAlertElemsRight = this.state.dataRight.map(mapFunc);\n var sAlertElemsLeft = this.state.dataLeft.map(mapFunc);\n var sAlertElemsTop = this.state.dataTop.map(mapFunc);\n var sAlertElemsBottom = this.state.dataBottom.map(mapFunc);\n return _react2.default.createElement(\n 'div',\n { className: 's-alert-wrapper' },\n sAlertElemsRight,\n sAlertElemsLeft,\n sAlertElemsTop,\n sAlertElemsBottom\n );\n }\n }], [{\n key: 'info',\n value: function info(msg, data) {\n return insertFunc(msg, data, 'info');\n }\n }, {\n key: 'error',\n value: function error(msg, data) {\n return insertFunc(msg, data, 'error');\n }\n }, {\n key: 'warning',\n value: function warning(msg, data) {\n return insertFunc(msg, data, 'warning');\n }\n }, {\n key: 'success',\n value: function success(msg, data) {\n return insertFunc(msg, data, 'success');\n }\n }, {\n key: 'close',\n value: function close(id) {\n _sAlertStore2.default.dispatch({ type: 'REMOVE', data: { id: id } });\n }\n }, {\n key: 'closeAll',\n value: function closeAll() {\n _sAlertStore2.default.dispatch({ type: 'REMOVEALL' });\n }\n }]);\n\n return SAlert;\n }(_react2.default.Component);\n\n SAlert.propTypes = {\n message: _propTypes2.default.string,\n position: _propTypes2.default.string,\n offset: _propTypes2.default.number,\n stack: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.object]),\n effect: _propTypes2.default.string,\n beep: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.object, _propTypes2.default.bool]),\n timeout: _propTypes2.default.oneOfType([_propTypes2.default.oneOf(['none']), _propTypes2.default.number]),\n html: _propTypes2.default.bool,\n onClose: _propTypes2.default.func,\n onShow: _propTypes2.default.func,\n customFields: _propTypes2.default.object,\n contentTemplate: _propTypes2.default.func\n };\n\n exports.default = SAlert;\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-s-alert/dist/SAlert.js\n// module id = 16\n// module chunks = 0","(function (global, factory) {\n if (typeof define === \"function\" && define.amd) {\n define(['exports', 'react', 'react-dom', 'prop-types', './s-alert-parts/s-alert-tools', './s-alert-parts/s-alert-store', './SAlertContentTmpl'], factory);\n } else if (typeof exports !== \"undefined\") {\n factory(exports, require('react'), require('react-dom'), require('prop-types'), require('./s-alert-parts/s-alert-tools'), require('./s-alert-parts/s-alert-store'), require('./SAlertContentTmpl'));\n } else {\n var mod = {\n exports: {}\n };\n factory(mod.exports, global.react, global.reactDom, global.propTypes, global.sAlertTools, global.sAlertStore, global.SAlertContentTmpl);\n global.SAlertContent = mod.exports;\n }\n})(this, function (exports, _react, _reactDom, _propTypes, _sAlertTools, _sAlertStore, _SAlertContentTmpl) {\n 'use strict';\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n\n var _react2 = _interopRequireDefault(_react);\n\n var _reactDom2 = _interopRequireDefault(_reactDom);\n\n var _propTypes2 = _interopRequireDefault(_propTypes);\n\n var _sAlertTools2 = _interopRequireDefault(_sAlertTools);\n\n var _sAlertStore2 = _interopRequireDefault(_sAlertStore);\n\n var _SAlertContentTmpl2 = _interopRequireDefault(_SAlertContentTmpl);\n\n function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n }\n\n var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n\n function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n }();\n\n function _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n }\n\n function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n }\n\n var SAlertContent = function (_React$Component) {\n _inherits(SAlertContent, _React$Component);\n\n function SAlertContent(props) {\n _classCallCheck(this, SAlertContent);\n\n return _possibleConstructorReturn(this, (SAlertContent.__proto__ || Object.getPrototypeOf(SAlertContent)).call(this, props));\n }\n\n _createClass(SAlertContent, [{\n key: 'handleCloseAlert',\n value: function handleCloseAlert() {\n var closingTimeout = void 0;\n var alertId = this.props.id;\n var currentAlertElem = _reactDom2.default.findDOMNode(this);\n var animationClose = function animationClose() {\n currentAlertElem.style.display = 'none';\n _sAlertStore2.default.dispatch({ type: 'REMOVE', data: { id: alertId } });\n clearTimeout(closingTimeout);\n };\n if (document.hidden || document.webkitHidden || !currentAlertElem.classList.contains('s-alert-is-effect')) {\n _sAlertStore2.default.dispatch({ type: 'REMOVE', data: { id: alertId } });\n } else {\n currentAlertElem.classList.remove('s-alert-show');\n closingTimeout = setTimeout(function () {\n currentAlertElem.classList.add('s-alert-hide');\n }, 100);\n currentAlertElem.removeEventListener('webkitAnimationEnd', animationClose, false);\n currentAlertElem.removeEventListener('animationend', animationClose, false);\n currentAlertElem.addEventListener('webkitAnimationEnd', animationClose, false);\n currentAlertElem.addEventListener('animationend', animationClose, false);\n }\n // stop audio when closing\n this.alertAudio && this.alertAudio.load();\n }\n }, {\n key: 'componentWillMount',\n value: function componentWillMount() {\n var beep = this.props.beep;\n var condition = this.props.condition;\n if (beep && typeof beep === 'string') {\n this.alertAudio = new Audio(beep);\n this.alertAudio.load();\n this.alertAudio.play();\n }\n if (beep && (typeof beep === 'undefined' ? 'undefined' : _typeof(beep)) === 'object' && condition === 'info') {\n this.alertAudio = new Audio(beep.info);\n this.alertAudio.load();\n this.alertAudio.play();\n }\n if (beep && (typeof beep === 'undefined' ? 'undefined' : _typeof(beep)) === 'object' && condition === 'error') {\n this.alertAudio = new Audio(beep.error);\n this.alertAudio.load();\n this.alertAudio.play();\n }\n if (beep && (typeof beep === 'undefined' ? 'undefined' : _typeof(beep)) === 'object' && condition === 'success') {\n this.alertAudio = new Audio(beep.success);\n this.alertAudio.load();\n this.alertAudio.play();\n }\n if (beep && (typeof beep === 'undefined' ? 'undefined' : _typeof(beep)) === 'object' && condition === 'warning') {\n this.alertAudio = new Audio(beep.warning);\n this.alertAudio.load();\n this.alertAudio.play();\n }\n }\n }, {\n key: 'componentDidMount',\n value: function componentDidMount() {\n var _this2 = this;\n\n if (typeof this.props.timeout === 'number') {\n this.closeTimer = setTimeout(function () {\n _this2.handleCloseAlert();\n }, this.props.timeout);\n }\n if (this.props.onShow) {\n this.props.onShow();\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.closeTimer) {\n clearTimeout(this.closeTimer);\n }\n if (this.props.onClose) {\n this.props.onClose();\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var classNames = 's-alert-box s-alert-' + this.props.condition + ' s-alert-' + this.props.position + ' ' + (this.props.effect ? 's-alert-is-effect s-alert-effect-' + this.props.effect : '') + ' s-alert-show';\n var message = this.props.html ? _react2.default.createElement('span', { dangerouslySetInnerHTML: { __html: this.props.message } }) : this.props.message;\n var styles = this.props.boxPosition ? _sAlertTools2.default.styleToObj(this.props.boxPosition) : {};\n var id = this.props.id;\n var handleClose = this.handleCloseAlert.bind(this);\n var contentTemplate = this.props.contentTemplate || _SAlertContentTmpl2.default;\n var customFields = this.props.customFields || {};\n\n return _react2.default.createElement(contentTemplate, { classNames: classNames, id: id, styles: styles, message: message, handleClose: handleClose, customFields: customFields });\n }\n }]);\n\n return SAlertContent;\n }(_react2.default.Component);\n\n SAlertContent.propTypes = {\n condition: _propTypes2.default.string.isRequired,\n message: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.node]),\n position: _propTypes2.default.string.isRequired,\n boxPosition: _propTypes2.default.string,\n id: _propTypes2.default.string.isRequired,\n effect: _propTypes2.default.string,\n beep: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.object, _propTypes2.default.bool]),\n timeout: _propTypes2.default.oneOfType([_propTypes2.default.oneOf(['none']), _propTypes2.default.number]),\n html: _propTypes2.default.bool,\n onClose: _propTypes2.default.func,\n onShow: _propTypes2.default.func,\n customFields: _propTypes2.default.object,\n contentTemplate: _propTypes2.default.func\n };\n\n exports.default = SAlertContent;\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-s-alert/dist/SAlertContent.js\n// module id = 17\n// module chunks = 0","/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\nvar factory = require('./factory');\n\nvar REACT_ELEMENT_TYPE = (typeof Symbol === 'function' &&\n Symbol.for &&\n Symbol.for('react.element')) ||\n 0xeac7;\n\nfunction isValidElement(object) {\n return typeof object === 'object' &&\n object !== null &&\n object.$$typeof === REACT_ELEMENT_TYPE;\n}\n\nmodule.exports = factory(isValidElement);\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/prop-types/index.js\n// module id = 18\n// module chunks = 0","/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n'use strict';\n\nvar emptyFunction = require('fbjs/lib/emptyFunction');\nvar invariant = require('fbjs/lib/invariant');\nvar warning = require('fbjs/lib/warning');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar checkPropTypes = require('./checkPropTypes');\n\nmodule.exports = function (isValidElement) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<>';\n\n var ReactPropTypes;\n\n if (process.env.NODE_ENV !== 'production') {\n // Keep in sync with production version below\n ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker\n };\n } else {\n var productionTypeChecker = function () {\n invariant(false, 'React.PropTypes type checking code is stripped in production.');\n };\n productionTypeChecker.isRequired = productionTypeChecker;\n var getProductionTypeChecker = function () {\n return productionTypeChecker;\n };\n // Keep in sync with development version above\n ReactPropTypes = {\n array: productionTypeChecker,\n bool: productionTypeChecker,\n func: productionTypeChecker,\n number: productionTypeChecker,\n object: productionTypeChecker,\n string: productionTypeChecker,\n symbol: productionTypeChecker,\n\n any: productionTypeChecker,\n arrayOf: getProductionTypeChecker,\n element: productionTypeChecker,\n instanceOf: getProductionTypeChecker,\n node: productionTypeChecker,\n objectOf: getProductionTypeChecker,\n oneOf: getProductionTypeChecker,\n oneOfType: getProductionTypeChecker,\n shape: getProductionTypeChecker\n };\n }\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message) {\n this.message = message;\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n if (process.env.NODE_ENV !== 'production') {\n if (secret !== ReactPropTypesSecret && typeof console !== 'undefined') {\n var cacheKey = componentName + ':' + propName;\n if (!manualPropTypeCallCache[cacheKey]) {\n process.env.NODE_ENV !== 'production' ? warning(false, 'You are manually calling a React.PropTypes validation ' + 'function for the `%s` prop on `%s`. This is deprecated ' + 'and will not work in production with the next major version. ' + 'You may be seeing this warning due to a third-party PropTypes ' + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.', propFullName, componentName) : void 0;\n manualPropTypeCallCache[cacheKey] = true;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunction.thatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0;\n return emptyFunction.thatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (propValue.hasOwnProperty(key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunction.thatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {\n return null;\n }\n }\n\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (!checker) {\n continue;\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/prop-types/factory.js\n// module id = 19\n// module chunks = 0","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// (webpack)/~/node-libs-browser/~/process/browser.js\n// module id = 20\n// module chunks = 0","\"use strict\";\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\nfunction makeEmptyFunction(arg) {\n return function () {\n return arg;\n };\n}\n\n/**\n * This function accepts and discards inputs; it has no side effects. This is\n * primarily useful idiomatically for overridable function endpoints which\n * always need to be callable, since JS lacks a null-call idiom ala Cocoa.\n */\nvar emptyFunction = function emptyFunction() {};\n\nemptyFunction.thatReturns = makeEmptyFunction;\nemptyFunction.thatReturnsFalse = makeEmptyFunction(false);\nemptyFunction.thatReturnsTrue = makeEmptyFunction(true);\nemptyFunction.thatReturnsNull = makeEmptyFunction(null);\nemptyFunction.thatReturnsThis = function () {\n return this;\n};\nemptyFunction.thatReturnsArgument = function (arg) {\n return arg;\n};\n\nmodule.exports = emptyFunction;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/prop-types/~/fbjs/lib/emptyFunction.js\n// module id = 21\n// module chunks = 0","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar validateFormat = function validateFormat(format) {};\n\nif (process.env.NODE_ENV !== 'production') {\n validateFormat = function validateFormat(format) {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n };\n}\n\nfunction invariant(condition, format, a, b, c, d, e, f) {\n validateFormat(format);\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(format.replace(/%s/g, function () {\n return args[argIndex++];\n }));\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n}\n\nmodule.exports = invariant;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/prop-types/~/fbjs/lib/invariant.js\n// module id = 22\n// module chunks = 0","/**\n * Copyright 2014-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar emptyFunction = require('./emptyFunction');\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar warning = emptyFunction;\n\nif (process.env.NODE_ENV !== 'production') {\n (function () {\n var printWarning = function printWarning(format) {\n for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n var argIndex = 0;\n var message = 'Warning: ' + format.replace(/%s/g, function () {\n return args[argIndex++];\n });\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n\n warning = function warning(condition, format) {\n if (format === undefined) {\n throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');\n }\n\n if (format.indexOf('Failed Composite propType: ') === 0) {\n return; // Ignore CompositeComponent proptype check.\n }\n\n if (!condition) {\n for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {\n args[_key2 - 2] = arguments[_key2];\n }\n\n printWarning.apply(undefined, [format].concat(args));\n }\n };\n })();\n}\n\nmodule.exports = warning;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/prop-types/~/fbjs/lib/warning.js\n// module id = 23\n// module chunks = 0","/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/prop-types/lib/ReactPropTypesSecret.js\n// module id = 24\n// module chunks = 0","/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n'use strict';\n\nvar invariant = require('fbjs/lib/invariant');\nvar warning = require('fbjs/lib/warning');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nvar loggedTypeFailures = {};\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (typeSpecs.hasOwnProperty(typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n invariant(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', componentName || 'React class', location, typeSpecName);\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n process.env.NODE_ENV !== 'production' ? warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error) : void 0;\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n process.env.NODE_ENV !== 'production' ? warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '') : void 0;\n }\n }\n }\n }\n}\n\nmodule.exports = checkPropTypes;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/prop-types/checkPropTypes.js\n// module id = 25\n// module chunks = 0","(function (global, factory) {\n if (typeof define === \"function\" && define.amd) {\n define(['exports'], factory);\n } else if (typeof exports !== \"undefined\") {\n factory(exports);\n } else {\n var mod = {\n exports: {}\n };\n factory(mod.exports);\n global.sAlertTools = mod.exports;\n }\n})(this, function (exports) {\n 'use strict';\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n\n var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n\n var actualGlobalConfig = void 0;\n\n var sAlertTools = {\n randomId: function randomId() {\n return Math.random().toString(36).split('.')[1];\n },\n returnFirstDefined: function returnFirstDefined() {\n var value = void 0;\n var i = void 0;\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n for (i = 0; i < args.length; i++) {\n if (typeof args[i] !== 'undefined') {\n value = args[i];\n break;\n }\n }\n return value;\n },\n styleToObj: function styleToObj(input) {\n var result = {},\n i = void 0,\n entry = void 0,\n attributes = input && input.split(';').filter(Boolean);\n\n for (i = 0; i < attributes.length; i++) {\n entry = attributes[i].split(':');\n result[entry.splice(0, 1)[0].trim()] = entry.join(':').trim();\n }\n return result;\n },\n setGlobalConfig: function setGlobalConfig(config) {\n if ((typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object') {\n actualGlobalConfig = config;\n }\n },\n getGlobalConfig: function getGlobalConfig() {\n return actualGlobalConfig;\n }\n };\n\n exports.default = sAlertTools;\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-s-alert/dist/s-alert-parts/s-alert-tools.js\n// module id = 26\n// module chunks = 0","(function (global, factory) {\n if (typeof define === \"function\" && define.amd) {\n define(['exports'], factory);\n } else if (typeof exports !== \"undefined\") {\n factory(exports);\n } else {\n var mod = {\n exports: {}\n };\n factory(mod.exports);\n global.sAlertStore = mod.exports;\n }\n})(this, function (exports) {\n 'use strict';\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n\n function _toConsumableArray(arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n } else {\n return Array.from(arr);\n }\n }\n\n // custom simple store based on a awesome Redux library https://github.com/rackt/redux\n\n var createSAlertStore = function createSAlertStore(reducer) {\n var state = void 0;\n var listeners = [];\n var getState = function getState() {\n return state;\n };\n var dispatch = function dispatch(action) {\n state = reducer(state, action);\n listeners.forEach(function (listener) {\n return listener();\n });\n };\n var subscribe = function subscribe(listener) {\n listeners.push(listener);\n return function () {\n listeners = listeners.filter(function (l) {\n return l !== listener;\n });\n };\n };\n dispatch({});\n return {\n getState: getState, dispatch: dispatch, subscribe: subscribe\n };\n };\n\n var insert = function insert(state, action) {\n return [].concat(_toConsumableArray(state), [action.data]);\n };\n\n var remove = function remove(state, action) {\n var elemToRemoveArray = state.slice().filter(function (item) {\n return item.id === action.data.id;\n });\n if (Array.isArray(elemToRemoveArray)) {\n var elemToRemoveIndex = state.indexOf(elemToRemoveArray[0]);\n return [].concat(_toConsumableArray(state.slice(0, elemToRemoveIndex)), _toConsumableArray(state.slice(elemToRemoveIndex + 1)));\n }\n return state;\n };\n\n var alertsReducer = function alertsReducer() {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var action = arguments[1];\n\n switch (action.type) {\n case 'INSERT':\n return insert(state, action);\n case 'REMOVE':\n return remove(state, action);\n case 'REMOVEALL':\n return [];\n default:\n return state;\n }\n };\n\n var sAlertStore = createSAlertStore(alertsReducer);\n\n exports.default = sAlertStore;\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-s-alert/dist/s-alert-parts/s-alert-store.js\n// module id = 27\n// module chunks = 0","(function (global, factory) {\n if (typeof define === \"function\" && define.amd) {\n define(['exports', 'react', 'prop-types'], factory);\n } else if (typeof exports !== \"undefined\") {\n factory(exports, require('react'), require('prop-types'));\n } else {\n var mod = {\n exports: {}\n };\n factory(mod.exports, global.react, global.propTypes);\n global.SAlertContentTmpl = mod.exports;\n }\n})(this, function (exports, _react, _propTypes) {\n 'use strict';\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n\n var _react2 = _interopRequireDefault(_react);\n\n var _propTypes2 = _interopRequireDefault(_propTypes);\n\n function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n }\n\n function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n }();\n\n function _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n }\n\n function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n }\n\n var SAlertContentTmpl = function (_React$Component) {\n _inherits(SAlertContentTmpl, _React$Component);\n\n function SAlertContentTmpl(props) {\n _classCallCheck(this, SAlertContentTmpl);\n\n return _possibleConstructorReturn(this, (SAlertContentTmpl.__proto__ || Object.getPrototypeOf(SAlertContentTmpl)).call(this, props));\n }\n\n _createClass(SAlertContentTmpl, [{\n key: 'render',\n value: function render() {\n return _react2.default.createElement(\n 'div',\n { className: this.props.classNames, id: this.props.id, style: this.props.styles },\n _react2.default.createElement(\n 'div',\n { className: 's-alert-box-inner' },\n this.props.message\n ),\n _react2.default.createElement('span', { className: 's-alert-close', onClick: this.props.handleClose })\n );\n }\n }]);\n\n return SAlertContentTmpl;\n }(_react2.default.Component);\n\n SAlertContentTmpl.propTypes = {\n id: _propTypes2.default.string.isRequired,\n classNames: _propTypes2.default.string.isRequired,\n styles: _propTypes2.default.object.isRequired,\n message: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.object]).isRequired,\n handleClose: _propTypes2.default.func.isRequired,\n customFields: _propTypes2.default.object\n };\n\n exports.default = SAlertContentTmpl;\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-s-alert/dist/SAlertContentTmpl.js\n// module id = 28\n// module chunks = 0","(function (global, factory) {\n if (typeof define === \"function\" && define.amd) {\n define(['exports', 'react', 'react-dom', '../SAlertContent', './s-alert-store', './s-alert-tools'], factory);\n } else if (typeof exports !== \"undefined\") {\n factory(exports, require('react'), require('react-dom'), require('../SAlertContent'), require('./s-alert-store'), require('./s-alert-tools'));\n } else {\n var mod = {\n exports: {}\n };\n factory(mod.exports, global.react, global.reactDom, global.SAlertContent, global.sAlertStore, global.sAlertTools);\n global.sAlertDataPrep = mod.exports;\n }\n})(this, function (exports, _react, _reactDom, _SAlertContent, _sAlertStore, _sAlertTools) {\n 'use strict';\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n\n var _react2 = _interopRequireDefault(_react);\n\n var _reactDom2 = _interopRequireDefault(_reactDom);\n\n var _SAlertContent2 = _interopRequireDefault(_SAlertContent);\n\n var _sAlertStore2 = _interopRequireDefault(_sAlertStore);\n\n var _sAlertTools2 = _interopRequireDefault(_sAlertTools);\n\n function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n }\n\n var getAlertData = function getAlertData(sAlertPosition) {\n var positionTop = 0;\n var positionBottom = 0;\n var padding = 0;\n var alerts = {};\n var style = void 0;\n var docElement = void 0;\n var sAlertBoxHeight = void 0;\n var positionTypeTop = void 0;\n var positionTypeBottom = void 0;\n var checkFirst = function checkFirst(type, objId) {\n var collectionOfType = sAlertCollection.filter(function (obj) {\n return obj.position === type || sAlertGlobalConfig.position === type;\n });\n return collectionOfType && collectionOfType[0].id === objId;\n };\n var positionFunc = function positionFunc(position, positionType, alert, docElement, sAlertBoxHeight, reactComponent) {\n padding = aStack.spacing || parseInt(getComputedStyle(_reactDom2.default.findDOMNode(reactComponent))[positionType]);\n if (checkFirst(aPosition, alert.id) && aOffset) {\n position = 0;\n position = position + parseInt(aOffset);\n }\n if (checkFirst(aPosition, alert.id) && aStack.spacing) {\n position = position;\n } else {\n position = position + parseInt(padding);\n }\n style = positionType + ': ' + position + 'px;';\n position = position + sAlertBoxHeight;\n return position;\n };\n\n var sAlertGlobalConfig = _sAlertTools2.default.getGlobalConfig();\n var aStack = void 0;\n var aContentTemplate = void 0;\n var aOffset = void 0;\n var aMessage = void 0;\n var aHtml = void 0;\n var aCustomFields = void 0;\n var aPosition = void 0;\n\n var query = {};\n if (sAlertPosition === 'left') {\n query = function query(item) {\n return item.position === 'top-left' || item.position === 'bottom-left' || !item.position && (sAlertGlobalConfig.position === 'top-left' || sAlertGlobalConfig.position === 'bottom-left');\n };\n }\n if (sAlertPosition === 'right') {\n query = function query(item) {\n return item.position === 'top-right' || item.position === 'bottom-right' || !item.position && (sAlertGlobalConfig.position === 'top-right' || sAlertGlobalConfig.position === 'bottom-right');\n };\n }\n if (sAlertPosition === 'full-top') {\n query = function query(item) {\n return item.position === 'top' || !item.position && sAlertGlobalConfig.position === 'top';\n };\n }\n if (sAlertPosition === 'full-bottom') {\n query = function query(item) {\n return item.position === 'bottom' || !item.position && sAlertGlobalConfig.position === 'bottom';\n };\n }\n\n var currentState = _sAlertStore2.default.getState();\n var sAlertCollection = currentState.slice().filter(query);\n\n return sAlertCollection.map(function (alert) {\n aStack = sAlertGlobalConfig.stack;\n aContentTemplate = sAlertGlobalConfig.contentTemplate;\n aOffset = _sAlertTools2.default.returnFirstDefined(alert.offset, sAlertGlobalConfig.offset);\n aMessage = _sAlertTools2.default.returnFirstDefined(alert.message, sAlertGlobalConfig.message);\n aHtml = _sAlertTools2.default.returnFirstDefined(alert.html, sAlertGlobalConfig.html);\n aCustomFields = _sAlertTools2.default.returnFirstDefined(alert.customFields, sAlertGlobalConfig.customFields);\n aPosition = _sAlertTools2.default.returnFirstDefined(alert.position, sAlertGlobalConfig.position);\n positionTypeTop = aPosition && /top/g.test(aPosition);\n positionTypeBottom = aPosition && /bottom/g.test(aPosition);\n if (aStack) {\n // checking alert box height - needed to calculate position\n docElement = document.createElement('div');\n docElement.classList.add('s-alert-box-height');\n\n // mock element, needed for positions calculations\n var reactElement = _react2.default.createElement(_SAlertContent2.default, {\n key: _sAlertTools2.default.randomId(),\n id: _sAlertTools2.default.randomId(),\n condition: alert.condition,\n message: aMessage,\n position: aPosition,\n effect: alert.effect,\n boxPosition: alert.boxPosition,\n beep: false,\n timeout: 'none',\n html: aHtml,\n contentTemplate: aContentTemplate,\n customFields: aCustomFields\n });\n var reactComponent = _reactDom2.default.render(reactElement, docElement);\n\n document.body.appendChild(docElement);\n sAlertBoxHeight = parseInt(getComputedStyle(_reactDom2.default.findDOMNode(reactComponent))['height']);\n if (positionTypeTop) {\n positionTop = positionFunc(positionTop, 'top', alert, docElement, sAlertBoxHeight, reactComponent);\n }\n if (positionTypeBottom) {\n positionBottom = positionFunc(positionBottom, 'bottom', alert, docElement, sAlertBoxHeight, reactComponent);\n }\n var sAlertComputedStyle = getComputedStyle(_reactDom2.default.findDOMNode(reactComponent));\n if (sAlertPosition === 'left') {\n style = style + 'left: ' + (aStack.spacing || parseInt(sAlertComputedStyle.left)) + 'px;';\n }\n if (sAlertPosition === 'right') {\n style = style + 'right: ' + (aStack.spacing || parseInt(sAlertComputedStyle.right)) + 'px;';\n }\n alerts = Object.assign({}, alert, { boxPosition: style });\n _reactDom2.default.unmountComponentAtNode(docElement);\n docElement.parentNode.removeChild(docElement);\n } else if (aOffset && positionTypeTop) {\n alerts = Object.assign({}, alert, { boxPosition: 'top: ' + parseInt(aOffset) + 'px;' });\n } else if (aOffset && positionTypeBottom) {\n alerts = Object.assign({}, alert, { boxPosition: 'bottom: ' + parseInt(aOffset) + 'px;' });\n } else {\n alerts = alert;\n }\n return alerts;\n });\n };\n\n exports.default = getAlertData;\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-s-alert/dist/s-alert-parts/s-alert-data-prep.js\n// module id = 29\n// module chunks = 0","/* eslint max-len: 0 */\nimport React, { Component } from 'react';\nimport classSet from 'classnames';\n\nclass ExpandComponent extends Component {\n\n render() {\n const trCss = {\n style: {\n backgroundColor: this.props.bgColor\n },\n className: classSet(\n this.props.isSelected ? this.props.selectRow.className : null,\n this.props.className\n )\n };\n return (\n \n \n { this.props.children }\n | \n
\n );\n }\n}\n\nexport default ExpandComponent;\n\n\n\n// WEBPACK FOOTER //\n// src/ExpandComponent.js","import React, { Component, PropTypes } from 'react';\nimport classSet from 'classnames';\nimport PageButton from './PageButton.js';\nimport SizePerPageDropDown from './SizePerPageDropDown';\nimport Const from '../Const';\n\nclass PaginationList extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n open: this.props.open\n };\n }\n\n componentWillReceiveProps() {\n this.setState({ open: false });\n }\n\n changePage = page => {\n const {\n pageStartIndex,\n prePage,\n currPage,\n nextPage,\n lastPage,\n firstPage,\n sizePerPage\n } = this.props;\n\n if (page === prePage) {\n page = (currPage - 1) < pageStartIndex ? pageStartIndex : currPage - 1;\n } else if (page === nextPage) {\n page = (currPage + 1) > this.lastPage ? this.lastPage : currPage + 1;\n } else if (page === lastPage) {\n page = this.lastPage;\n } else if (page === firstPage) {\n page = pageStartIndex;\n } else {\n page = parseInt(page, 10);\n }\n\n if (page !== currPage) {\n this.props.changePage(page, sizePerPage);\n }\n }\n\n changeSizePerPage = pageNum => {\n const selectSize = typeof pageNum === 'string' ? parseInt(pageNum, 10) : pageNum;\n let { currPage } = this.props;\n if (selectSize !== this.props.sizePerPage) {\n this.totalPages = Math.ceil(this.props.dataSize / selectSize);\n this.lastPage = this.props.pageStartIndex + this.totalPages - 1;\n if (currPage > this.lastPage) currPage = this.lastPage;\n this.props.changePage(currPage, selectSize);\n if (this.props.onSizePerPageList) {\n this.props.onSizePerPageList(selectSize);\n }\n } else {\n this.setState({ open: false });\n }\n }\n\n toggleDropDown = () => {\n this.setState({\n open: !this.state.open\n });\n }\n\n render() {\n const {\n currPage,\n dataSize,\n sizePerPage,\n sizePerPageList,\n paginationShowsTotal,\n pageStartIndex,\n paginationPanel,\n hidePageListOnlyOnePage\n } = this.props;\n this.totalPages = Math.ceil(dataSize / sizePerPage);\n this.lastPage = this.props.pageStartIndex + this.totalPages - 1;\n const pageBtns = this.makePage(typeof paginationPanel === 'function');\n const dropdown = this.makeDropDown();\n\n const offset = Math.abs(Const.PAGE_START_INDEX - pageStartIndex);\n let start = ((currPage - pageStartIndex) * sizePerPage);\n start = dataSize === 0 ? 0 : start + 1;\n let to = Math.min((sizePerPage * (currPage + offset) - 1), dataSize);\n if (to >= dataSize) to--;\n let total = paginationShowsTotal ? \n Showing rows { start } to { to + 1 } of { dataSize }\n : null;\n\n if (typeof paginationShowsTotal === 'function') {\n total = paginationShowsTotal(start, to + 1, dataSize);\n }\n\n const content = paginationPanel && paginationPanel({\n currPage,\n sizePerPage,\n sizePerPageList,\n pageStartIndex,\n changePage: this.changePage,\n toggleDropDown: this.toggleDropDown,\n changeSizePerPage: this.changeSizePerPage,\n components: {\n totalText: total,\n sizePerPageDropdown: dropdown,\n pageList: pageBtns\n }\n });\n\n const hidePageList = hidePageListOnlyOnePage && this.totalPages === 1 ? 'none' : 'block';\n return (\n \n {\n content ||\n
\n
\n { total }{ sizePerPageList.length > 1 ? dropdown : null }\n
\n
\n { pageBtns }\n
\n
\n }\n
\n );\n }\n\n makeDropDown() {\n let dropdown;\n let dropdownProps;\n let sizePerPageText = '';\n const {\n sizePerPageDropDown,\n hideSizePerPage,\n sizePerPage,\n sizePerPageList\n } = this.props;\n if (sizePerPageDropDown) {\n dropdown = sizePerPageDropDown({\n open: this.state.open,\n hideSizePerPage,\n currSizePerPage: sizePerPage,\n sizePerPageList,\n toggleDropDown: this.toggleDropDown,\n changeSizePerPage: this.changeSizePerPage\n });\n if (dropdown.type.name === SizePerPageDropDown.name) {\n dropdownProps = dropdown.props;\n } else {\n return dropdown;\n }\n }\n\n if (dropdownProps || !dropdown) {\n const sizePerPageOptions = sizePerPageList.map((_sizePerPage) => {\n const pageText = _sizePerPage.text || _sizePerPage;\n const pageNum = _sizePerPage.value || _sizePerPage;\n if (sizePerPage === pageNum) sizePerPageText = pageText;\n return (\n \n {\n e.preventDefault();\n this.changeSizePerPage(pageNum);\n } }>{ pageText }\n \n );\n });\n dropdown = (\n \n );\n }\n return dropdown;\n }\n\n makePage(isCustomPagingPanel = false) {\n const pages = this.getPages();\n const isStart = (page, { currPage, pageStartIndex, firstPage, prePage }) =>\n (currPage === pageStartIndex && (page === firstPage || page === prePage));\n const isEnd = (page, { currPage, nextPage, lastPage }) =>\n (currPage === this.lastPage && (page === nextPage || page === lastPage ));\n const pageBtns = pages\n .filter(function(page) {\n if (this.props.alwaysShowAllBtns) {\n return true;\n }\n return (isStart(page, this.props) || isEnd(page, this.props)) ?\n false :\n true;\n }, this)\n .map(function(page) {\n const isActive = page === this.props.currPage;\n const isDisabled = (isStart(page, this.props) || isEnd(page, this.props)) ?\n true :\n false;\n let title = page + '';\n\n if (page === this.props.nextPage) {\n title = this.props.nextPageTitle;\n } else if (page === this.props.prePage) {\n title = this.props.prePageTitle;\n } else if (page === this.props.firstPage) {\n title = this.props.firstPageTitle;\n } else if (page === this.props.lastPage) {\n title = this.props.lastPageTitle;\n }\n\n return (\n \n { page }\n \n );\n }, this);\n const classname = classSet(\n isCustomPagingPanel ? null : 'react-bootstrap-table-page-btns-ul',\n 'pagination'\n );\n return (\n \n );\n }\n\n getLastPage() {\n return this.lastPage;\n }\n\n getPages() {\n let pages;\n let endPage = this.totalPages;\n if (endPage <= 0) return [];\n let startPage = Math.max(\n this.props.currPage - Math.floor(this.props.paginationSize / 2),\n this.props.pageStartIndex\n );\n endPage = startPage + this.props.paginationSize - 1;\n\n if (endPage > this.lastPage) {\n endPage = this.lastPage;\n startPage = endPage - this.props.paginationSize + 1;\n }\n\n if (startPage !== this.props.pageStartIndex\n && this.totalPages > this.props.paginationSize\n && this.props.withFirstAndLast) {\n pages = [ this.props.firstPage, this.props.prePage ];\n } else if (this.totalPages > 1 || this.props.alwaysShowAllBtns) {\n pages = [ this.props.prePage ];\n } else {\n pages = [];\n }\n\n for (let i = startPage; i <= endPage; i++) {\n if (i >= this.props.pageStartIndex) pages.push(i);\n }\n\n if (endPage <= this.lastPage && pages.length > 1) {\n pages.push(this.props.nextPage);\n }\n if (endPage !== this.lastPage && this.props.withFirstAndLast) {\n pages.push(this.props.lastPage);\n }\n\n return pages;\n }\n}\nPaginationList.propTypes = {\n currPage: PropTypes.number,\n sizePerPage: PropTypes.number,\n dataSize: PropTypes.number,\n changePage: PropTypes.func,\n sizePerPageList: PropTypes.array,\n paginationShowsTotal: PropTypes.oneOfType([ PropTypes.bool, PropTypes.func ]),\n paginationSize: PropTypes.number,\n onSizePerPageList: PropTypes.func,\n prePage: PropTypes.string,\n pageStartIndex: PropTypes.number,\n hideSizePerPage: PropTypes.bool,\n alwaysShowAllBtns: PropTypes.bool,\n withFirstAndLast: PropTypes.bool,\n sizePerPageDropDown: PropTypes.func,\n paginationPanel: PropTypes.func,\n prePageTitle: PropTypes.string,\n nextPageTitle: PropTypes.string,\n firstPageTitle: PropTypes.string,\n lastPageTitle: PropTypes.string,\n hidePageListOnlyOnePage: PropTypes.bool\n};\n\nPaginationList.defaultProps = {\n sizePerPage: Const.SIZE_PER_PAGE,\n pageStartIndex: Const.PAGE_START_INDEX\n};\n\nexport default PaginationList;\n\n\n\n// WEBPACK FOOTER //\n// src/pagination/PaginationList.js","import React, { Component, PropTypes } from 'react';\nimport classSet from 'classnames';\n\nclass PageButton extends Component {\n\n constructor(props) {\n super(props);\n }\n\n pageBtnClick = e => {\n e.preventDefault();\n this.props.changePage(e.currentTarget.textContent);\n }\n\n render() {\n const classes = classSet({\n 'active': this.props.active,\n 'disabled': this.props.disable,\n 'hidden': this.props.hidden,\n 'page-item': true\n });\n return (\n \n { this.props.children }\n \n );\n }\n}\nPageButton.propTypes = {\n title: PropTypes.string,\n changePage: PropTypes.func,\n active: PropTypes.bool,\n disable: PropTypes.bool,\n hidden: PropTypes.bool,\n children: PropTypes.node\n};\n\nexport default PageButton;\n\n\n\n// WEBPACK FOOTER //\n// src/pagination/PageButton.js","import React, { Component, PropTypes } from 'react';\n\nconst sizePerPageDefaultClass = 'react-bs-table-sizePerPage-dropdown';\n\nclass SizePerPageDropDown extends Component {\n render() {\n const {\n open,\n hidden,\n onClick,\n options,\n className,\n variation,\n btnContextual,\n currSizePerPage\n } = this.props;\n\n const openClass = open ? 'open' : '';\n const dropDownStyle = { visibility: hidden ? 'hidden' : 'visible' };\n\n return (\n \n \n \n \n );\n }\n}\n\nSizePerPageDropDown.propTypes = {\n open: PropTypes.bool,\n hidden: PropTypes.bool,\n btnContextual: PropTypes.string,\n currSizePerPage: PropTypes.string,\n options: PropTypes.array,\n variation: PropTypes.oneOf([ 'dropdown', 'dropup' ]),\n className: PropTypes.string,\n onClick: PropTypes.func\n};\nSizePerPageDropDown.defaultProps = {\n open: false,\n hidden: false,\n btnContextual: 'btn-default',\n variation: 'dropdown',\n className: ''\n};\n\n\nexport default SizePerPageDropDown;\n\n\n\n// WEBPACK FOOTER //\n// src/pagination/SizePerPageDropDown.js","/* eslint no-console: 0 */\n\nimport React, { Component, PropTypes } from 'react';\nimport Modal from 'react-modal';\n// import classSet from 'classnames';\nimport Const from '../Const';\n// import editor from '../Editor';\nimport { notice } from '../Notification.js';\nimport InsertModal from './InsertModal';\nimport InsertButton from './InsertButton';\nimport DeleteButton from './DeleteButton';\nimport ExportCSVButton from './ExportCSVButton';\nimport ShowSelectedOnlyButton from './ShowSelectedOnlyButton';\nimport SearchField from './SearchField';\nimport ClearSearchButton from './ClearSearchButton';\n\nclass ToolBar extends Component {\n\n static modalSeq = 0;\n\n constructor(props) {\n super(props);\n this.timeouteClear = 0;\n this.modalClassName;\n this.state = {\n isInsertModalOpen: false,\n validateState: null,\n shakeEditor: false,\n showSelected: false\n };\n }\n\n componentWillMount() {\n const delay = this.props.searchDelayTime ? this.props.searchDelayTime : 0;\n this.debounceCallback = this.handleDebounce(() => {\n const { seachInput } = this.refs;\n seachInput && this.props.onSearch(seachInput.getValue());\n },\n delay\n );\n }\n\n componentWillReceiveProps(nextProps) {\n if (nextProps.reset) {\n this.setSearchInput('');\n }\n }\n\n componentWillUnmount() {\n this.clearTimeout();\n }\n\n setSearchInput(text) {\n const { seachInput } = this.refs;\n if (seachInput && seachInput.value !== text) {\n seachInput.value = text;\n }\n }\n\n clearTimeout() {\n if (this.timeouteClear) {\n clearTimeout(this.timeouteClear);\n this.timeouteClear = 0;\n }\n }\n\n displayCommonMessage = () => {\n notice(\n 'error',\n 'Form validate errors, please checking!',\n '');\n }\n\n validateNewRow(newRow) {\n const validateState = {};\n let isValid = true;\n let tempMsg;\n let responseType;\n\n this.props.columns.forEach(column => {\n if (column.isKey && column.keyValidator) { // key validator for checking exist key\n tempMsg = this.props.isValidKey(newRow[column.field]);\n if (tempMsg) {\n this.displayCommonMessage();\n isValid = false;\n validateState[column.field] = tempMsg;\n }\n } else if (column.editable && column.editable.validator) { // process validate\n tempMsg = column.editable.validator(newRow[column.field]);\n responseType = typeof tempMsg;\n if (responseType !== 'object' && tempMsg !== true) {\n this.displayCommonMessage();\n isValid = false;\n validateState[column.field] = tempMsg;\n } else if (responseType === 'object' && tempMsg.isValid !== true) {\n notice(\n tempMsg.notification.type,\n tempMsg.notification.msg,\n tempMsg.notification.title);\n isValid = false;\n validateState[column.field] = tempMsg.notification.msg;\n }\n }\n });\n\n if (isValid) {\n return true;\n } else {\n this.clearTimeout();\n // show error in form and shake it\n this.setState({ validateState, shakeEditor: true });\n this.timeouteClear = setTimeout(() => {\n this.setState({ shakeEditor: false });\n }, 300);\n return null;\n }\n }\n\n handleSaveBtnClick = (newRow) => {\n if (!this.validateNewRow(newRow)) { // validation fail\n return;\n }\n const msg = this.props.onAddRow(newRow);\n if (msg) {\n notice('error', msg, '');\n this.clearTimeout();\n // shake form and hack prevent modal hide\n this.setState({\n shakeEditor: true,\n validateState: 'this is hack for prevent bootstrap modal hide'\n });\n // clear animate class\n this.timeouteClear = setTimeout(() => {\n this.setState({ shakeEditor: false });\n }, 300);\n } else {\n // reset state and hide modal hide\n this.setState({\n validateState: null,\n shakeEditor: false,\n isInsertModalOpen: false\n });\n }\n }\n\n handleModalClose = () => {\n this.setState({ isInsertModalOpen: false });\n }\n\n handleModalOpen = () => {\n this.setState({ isInsertModalOpen: true });\n }\n\n handleShowOnlyToggle = () => {\n this.setState({\n showSelected: !this.state.showSelected\n });\n this.props.onShowOnlySelected();\n }\n\n handleDropRowBtnClick = () => {\n this.props.onDropRow();\n }\n\n handleCloseBtn() {\n this.refs.warning.style.display = 'none';\n }\n\n handleDebounce = (func, wait, immediate) => {\n let timeout;\n\n return () => {\n const later = () => {\n timeout = null;\n\n if (!immediate) {\n func.apply(this, arguments);\n }\n };\n\n const callNow = immediate && !timeout;\n\n clearTimeout(timeout);\n\n timeout = setTimeout(later, wait || 0);\n\n if (callNow) {\n func.appy(this, arguments);\n }\n };\n }\n\n handleKeyUp = (event) => {\n event.persist();\n this.debounceCallback(event);\n }\n\n handleExportCSV = () => {\n this.props.onExportCSV();\n }\n\n handleClearBtnClick = () => {\n const { seachInput } = this.refs;\n seachInput && seachInput.setValue('');\n this.props.onSearch('');\n }\n\n render() {\n this.modalClassName = 'bs-table-modal-sm' + ToolBar.modalSeq++;\n let toolbar = null;\n let btnGroup = null;\n let insertBtn = null;\n let deleteBtn = null;\n let exportCSVBtn = null;\n let showSelectedOnlyBtn = null;\n\n if (this.props.enableInsert) {\n if (this.props.insertBtn) {\n insertBtn = this.renderCustomBtn(this.props.insertBtn,\n [ this.handleModalOpen ], InsertButton.name, 'onClick', this.handleModalOpen);\n } else {\n insertBtn = (\n \n );\n }\n }\n\n if (this.props.enableDelete) {\n if (this.props.deleteBtn) {\n deleteBtn = this.renderCustomBtn(this.props.deleteBtn,\n [ this.handleDropRowBtnClick ], DeleteButton.name, 'onClick', this.handleDropRowBtnClick);\n } else {\n deleteBtn = (\n \n );\n }\n }\n\n if (this.props.enableShowOnlySelected) {\n if (this.props.showSelectedOnlyBtn) {\n showSelectedOnlyBtn = this.renderCustomBtn(this.props.showSelectedOnlyBtn,\n [ this.handleShowOnlyToggle, this.state.showSelected ], ShowSelectedOnlyButton.name,\n 'onClick', this.handleShowOnlyToggle);\n } else {\n showSelectedOnlyBtn = (\n \n );\n }\n }\n\n if (this.props.enableExportCSV) {\n if (this.props.exportCSVBtn) {\n exportCSVBtn = this.renderCustomBtn(this.props.exportCSVBtn,\n [ this.handleExportCSV ], ExportCSVButton.name, 'onClick', this.handleExportCSV);\n } else {\n exportCSVBtn = (\n \n );\n }\n }\n\n if (this.props.btnGroup) {\n btnGroup = this.props.btnGroup({\n exportCSVBtn,\n insertBtn,\n deleteBtn,\n showSelectedOnlyBtn\n });\n } else {\n btnGroup = (\n \n { exportCSVBtn }\n { insertBtn }\n { deleteBtn }\n { showSelectedOnlyBtn }\n
\n );\n }\n\n const [ searchPanel, searchField, clearBtn ] = this.renderSearchPanel();\n const modal = this.props.enableInsert ? this.renderInsertRowModal() : null;\n\n if (this.props.toolBar) {\n toolbar = this.props.toolBar({\n components: {\n exportCSVBtn,\n insertBtn,\n deleteBtn,\n showSelectedOnlyBtn,\n searchPanel,\n btnGroup,\n searchField,\n clearBtn\n },\n event: {\n openInsertModal: this.handleModalOpen,\n closeInsertModal: this.handleModalClose,\n dropRow: this.handleDropRowBtnClick,\n showOnlyToogle: this.handleShowOnlyToggle,\n exportCSV: this.handleExportCSV,\n search: this.props.onSearch\n }\n });\n } else {\n toolbar = (\n \n
\n { this.props.searchPosition === 'left' ? searchPanel : btnGroup }\n
\n
\n { this.props.searchPosition === 'left' ? btnGroup : searchPanel }\n
\n
\n );\n }\n\n return (\n \n { toolbar }\n { modal }\n
\n );\n }\n\n renderSearchPanel() {\n if (this.props.enableSearch) {\n let classNames = 'form-group form-group-sm react-bs-table-search-form';\n let clearBtn = null;\n let searchField = null;\n let searchPanel = null;\n if (this.props.clearSearch) {\n if (this.props.clearSearchBtn) {\n clearBtn = this.renderCustomBtn(this.props.clearSearchBtn,\n [ this.handleClearBtnClick ], ClearSearchButton.name, 'onClick', this.handleClearBtnClick); /* eslint max-len: 0*/\n } else {\n clearBtn = (\n \n );\n }\n classNames += ' input-group input-group-sm';\n }\n\n if (this.props.searchField) {\n searchField = this.props.searchField({\n search: this.handleKeyUp,\n defaultValue: this.props.defaultSearch,\n placeholder: this.props.searchPlaceholder\n });\n if (searchField.type.name === SearchField.name) {\n searchField = React.cloneElement(searchField, {\n ref: 'seachInput',\n onKeyUp: this.handleKeyUp\n });\n } else {\n searchField = React.cloneElement(searchField, {\n ref: 'seachInput'\n });\n }\n } else {\n searchField = (\n \n );\n }\n if (this.props.searchPanel) {\n searchPanel = this.props.searchPanel({\n searchField, clearBtn,\n search: this.props.onSearch,\n defaultValue: this.props.defaultSearch,\n placeholder: this.props.searchPlaceholder,\n clearBtnClick: this.handleClearBtnClick\n });\n } else {\n searchPanel = (\n \n { searchField }\n \n { clearBtn }\n \n
\n );\n }\n return [ searchPanel, searchField, clearBtn ];\n } else {\n return [];\n }\n }\n\n renderInsertRowModal() {\n const validateState = this.state.validateState || {};\n const {\n columns,\n ignoreEditable,\n insertModalHeader,\n insertModalBody,\n insertModalFooter,\n insertModal\n } = this.props;\n\n let modal;\n modal = insertModal && insertModal(\n this.handleModalClose,\n this.handleSaveBtnClick,\n columns,\n validateState,\n ignoreEditable\n );\n\n if (!modal) {\n modal = (\n \n );\n }\n\n return (\n \n { modal }\n \n );\n }\n\n renderCustomBtn(cb, params, componentName, eventName, event) {\n let element = cb.apply(null, params);\n if (element.type.name === componentName && !element.props[eventName]) {\n const props = {};\n props[eventName] = event;\n element = React.cloneElement(element, props);\n }\n return element;\n }\n}\n\nToolBar.propTypes = {\n onAddRow: PropTypes.func,\n onDropRow: PropTypes.func,\n onShowOnlySelected: PropTypes.func,\n enableInsert: PropTypes.bool,\n enableDelete: PropTypes.bool,\n enableSearch: PropTypes.bool,\n enableShowOnlySelected: PropTypes.bool,\n columns: PropTypes.array,\n searchPlaceholder: PropTypes.string,\n exportCSVText: PropTypes.string,\n insertText: PropTypes.string,\n deleteText: PropTypes.string,\n saveText: PropTypes.string,\n closeText: PropTypes.string,\n clearSearch: PropTypes.bool,\n ignoreEditable: PropTypes.bool,\n defaultSearch: PropTypes.string,\n insertModalHeader: PropTypes.func,\n insertModalBody: PropTypes.func,\n insertModalFooter: PropTypes.func,\n insertModal: PropTypes.func,\n insertBtn: PropTypes.func,\n deleteBtn: PropTypes.func,\n showSelectedOnlyBtn: PropTypes.func,\n exportCSVBtn: PropTypes.func,\n clearSearchBtn: PropTypes.func,\n searchField: PropTypes.func,\n searchPanel: PropTypes.func,\n btnGroup: PropTypes.func,\n toolBar: PropTypes.func,\n searchPosition: PropTypes.string,\n reset: PropTypes.bool,\n isValidKey: PropTypes.func\n};\n\nToolBar.defaultProps = {\n reset: false,\n enableInsert: false,\n enableDelete: false,\n enableSearch: false,\n enableShowOnlySelected: false,\n clearSearch: false,\n ignoreEditable: false,\n exportCSVText: Const.EXPORT_CSV_TEXT,\n insertText: Const.INSERT_BTN_TEXT,\n deleteText: Const.DELETE_BTN_TEXT,\n saveText: Const.SAVE_BTN_TEXT,\n closeText: Const.CLOSE_BTN_TEXT\n};\n\nexport default ToolBar;\n\n\n\n// WEBPACK FOOTER //\n// src/toolbar/ToolBar.js","module.exports = require('./components/Modal');\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-modal/lib/index.js\n// module id = 35\n// module chunks = 0","var React = require('react');\nvar ReactDOM = require('react-dom');\nvar ExecutionEnvironment = require('exenv');\nvar ModalPortal = React.createFactory(require('./ModalPortal'));\nvar ariaAppHider = require('../helpers/ariaAppHider');\nvar elementClass = require('element-class');\nvar renderSubtreeIntoContainer = require(\"react-dom\").unstable_renderSubtreeIntoContainer;\nvar Assign = require('lodash.assign');\n\nvar SafeHTMLElement = ExecutionEnvironment.canUseDOM ? window.HTMLElement : {};\nvar AppElement = ExecutionEnvironment.canUseDOM ? document.body : {appendChild: function() {}};\n\nfunction getParentElement(parentSelector) {\n return parentSelector();\n}\n\nvar Modal = React.createClass({\n\n displayName: 'Modal',\n statics: {\n setAppElement: function(element) {\n AppElement = ariaAppHider.setElement(element);\n },\n injectCSS: function() {\n \"production\" !== process.env.NODE_ENV\n && console.warn('React-Modal: injectCSS has been deprecated ' +\n 'and no longer has any effect. It will be removed in a later version');\n }\n },\n\n propTypes: {\n isOpen: React.PropTypes.bool.isRequired,\n style: React.PropTypes.shape({\n content: React.PropTypes.object,\n overlay: React.PropTypes.object\n }),\n portalClassName: React.PropTypes.string,\n appElement: React.PropTypes.instanceOf(SafeHTMLElement),\n onAfterOpen: React.PropTypes.func,\n onRequestClose: React.PropTypes.func,\n closeTimeoutMS: React.PropTypes.number,\n ariaHideApp: React.PropTypes.bool,\n shouldCloseOnOverlayClick: React.PropTypes.bool,\n parentSelector: React.PropTypes.func,\n role: React.PropTypes.string,\n contentLabel: React.PropTypes.string.isRequired\n },\n\n getDefaultProps: function () {\n return {\n isOpen: false,\n portalClassName: 'ReactModalPortal',\n ariaHideApp: true,\n closeTimeoutMS: 0,\n shouldCloseOnOverlayClick: true,\n parentSelector: function () { return document.body; }\n };\n },\n\n componentDidMount: function() {\n this.node = document.createElement('div');\n this.node.className = this.props.portalClassName;\n\n var parent = getParentElement(this.props.parentSelector);\n parent.appendChild(this.node);\n this.renderPortal(this.props);\n },\n\n componentWillReceiveProps: function(newProps) {\n var currentParent = getParentElement(this.props.parentSelector);\n var newParent = getParentElement(newProps.parentSelector);\n\n if(newParent !== currentParent) {\n currentParent.removeChild(this.node);\n newParent.appendChild(this.node);\n }\n\n this.renderPortal(newProps);\n },\n\n componentWillUnmount: function() {\n if (this.props.ariaHideApp) {\n ariaAppHider.show(this.props.appElement);\n }\n\n ReactDOM.unmountComponentAtNode(this.node);\n var parent = getParentElement(this.props.parentSelector);\n parent.removeChild(this.node);\n elementClass(document.body).remove('ReactModal__Body--open');\n },\n\n renderPortal: function(props) {\n if (props.isOpen) {\n elementClass(document.body).add('ReactModal__Body--open');\n } else {\n elementClass(document.body).remove('ReactModal__Body--open');\n }\n\n if (props.ariaHideApp) {\n ariaAppHider.toggle(props.isOpen, props.appElement);\n }\n\n this.portal = renderSubtreeIntoContainer(this, ModalPortal(Assign({}, props, {defaultStyles: Modal.defaultStyles})), this.node);\n },\n\n render: function () {\n return React.DOM.noscript();\n }\n});\n\nModal.defaultStyles = {\n overlay: {\n position : 'fixed',\n top : 0,\n left : 0,\n right : 0,\n bottom : 0,\n backgroundColor : 'rgba(255, 255, 255, 0.75)'\n },\n content: {\n position : 'absolute',\n top : '40px',\n left : '40px',\n right : '40px',\n bottom : '40px',\n border : '1px solid #ccc',\n background : '#fff',\n overflow : 'auto',\n WebkitOverflowScrolling : 'touch',\n borderRadius : '4px',\n outline : 'none',\n padding : '20px'\n }\n}\n\nmodule.exports = Modal\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-modal/lib/components/Modal.js\n// module id = 36\n// module chunks = 0","/*!\n Copyright (c) 2015 Jed Watson.\n Based on code that is Copyright 2013-2015, Facebook, Inc.\n All rights reserved.\n*/\n\n(function () {\n\t'use strict';\n\n\tvar canUseDOM = !!(\n\t\ttypeof window !== 'undefined' &&\n\t\twindow.document &&\n\t\twindow.document.createElement\n\t);\n\n\tvar ExecutionEnvironment = {\n\n\t\tcanUseDOM: canUseDOM,\n\n\t\tcanUseWorkers: typeof Worker !== 'undefined',\n\n\t\tcanUseEventListeners:\n\t\t\tcanUseDOM && !!(window.addEventListener || window.attachEvent),\n\n\t\tcanUseViewport: canUseDOM && !!window.screen\n\n\t};\n\n\tif (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\tdefine(function () {\n\t\t\treturn ExecutionEnvironment;\n\t\t});\n\t} else if (typeof module !== 'undefined' && module.exports) {\n\t\tmodule.exports = ExecutionEnvironment;\n\t} else {\n\t\twindow.ExecutionEnvironment = ExecutionEnvironment;\n\t}\n\n}());\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-modal/~/exenv/index.js\n// module id = 37\n// module chunks = 0","var React = require('react');\nvar div = React.DOM.div;\nvar focusManager = require('../helpers/focusManager');\nvar scopeTab = require('../helpers/scopeTab');\nvar Assign = require('lodash.assign');\n\n// so that our CSS is statically analyzable\nvar CLASS_NAMES = {\n overlay: {\n base: 'ReactModal__Overlay',\n afterOpen: 'ReactModal__Overlay--after-open',\n beforeClose: 'ReactModal__Overlay--before-close'\n },\n content: {\n base: 'ReactModal__Content',\n afterOpen: 'ReactModal__Content--after-open',\n beforeClose: 'ReactModal__Content--before-close'\n }\n};\n\nvar ModalPortal = module.exports = React.createClass({\n\n displayName: 'ModalPortal',\n shouldClose: null,\n\n getDefaultProps: function() {\n return {\n style: {\n overlay: {},\n content: {}\n }\n };\n },\n\n getInitialState: function() {\n return {\n afterOpen: false,\n beforeClose: false\n };\n },\n\n componentDidMount: function() {\n // Focus needs to be set when mounting and already open\n if (this.props.isOpen) {\n this.setFocusAfterRender(true);\n this.open();\n }\n },\n\n componentWillUnmount: function() {\n clearTimeout(this.closeTimer);\n },\n\n componentWillReceiveProps: function(newProps) {\n // Focus only needs to be set once when the modal is being opened\n if (!this.props.isOpen && newProps.isOpen) {\n this.setFocusAfterRender(true);\n this.open();\n } else if (this.props.isOpen && !newProps.isOpen) {\n this.close();\n }\n },\n\n componentDidUpdate: function () {\n if (this.focusAfterRender) {\n this.focusContent();\n this.setFocusAfterRender(false);\n }\n },\n\n setFocusAfterRender: function (focus) {\n this.focusAfterRender = focus;\n },\n\n open: function() {\n if (this.state.afterOpen && this.state.beforeClose) {\n clearTimeout(this.closeTimer);\n this.setState({ beforeClose: false });\n } else {\n focusManager.setupScopedFocus(this.node);\n focusManager.markForFocusLater();\n this.setState({isOpen: true}, function() {\n this.setState({afterOpen: true});\n\n if (this.props.isOpen && this.props.onAfterOpen) {\n this.props.onAfterOpen();\n }\n }.bind(this));\n }\n },\n\n close: function() {\n if (!this.ownerHandlesClose())\n return;\n if (this.props.closeTimeoutMS > 0)\n this.closeWithTimeout();\n else\n this.closeWithoutTimeout();\n },\n\n focusContent: function() {\n // Don't steal focus from inner elements\n if (!this.contentHasFocus()) {\n this.refs.content.focus();\n }\n },\n\n closeWithTimeout: function() {\n this.setState({beforeClose: true}, function() {\n this.closeTimer = setTimeout(this.closeWithoutTimeout, this.props.closeTimeoutMS);\n }.bind(this));\n },\n\n closeWithoutTimeout: function() {\n this.setState({\n beforeClose: false,\n isOpen: false,\n afterOpen: false,\n }, this.afterClose);\n },\n\n afterClose: function() {\n focusManager.returnFocus();\n focusManager.teardownScopedFocus();\n },\n\n handleKeyDown: function(event) {\n if (event.keyCode == 9 /*tab*/) scopeTab(this.refs.content, event);\n if (event.keyCode == 27 /*esc*/) {\n event.preventDefault();\n this.requestClose(event);\n }\n },\n\n handleOverlayMouseDown: function(event) {\n if (this.shouldClose === null) {\n this.shouldClose = true;\n }\n },\n\n handleOverlayMouseUp: function(event) {\n if (this.shouldClose && this.props.shouldCloseOnOverlayClick) {\n if (this.ownerHandlesClose())\n this.requestClose(event);\n else\n this.focusContent();\n }\n this.shouldClose = null;\n },\n\n handleContentMouseDown: function(event) {\n this.shouldClose = false;\n },\n\n handleContentMouseUp: function(event) {\n this.shouldClose = false;\n },\n\n requestClose: function(event) {\n if (this.ownerHandlesClose())\n this.props.onRequestClose(event);\n },\n\n ownerHandlesClose: function() {\n return this.props.onRequestClose;\n },\n\n shouldBeClosed: function() {\n return !this.props.isOpen && !this.state.beforeClose;\n },\n\n contentHasFocus: function() {\n return document.activeElement === this.refs.content || this.refs.content.contains(document.activeElement);\n },\n\n buildClassName: function(which, additional) {\n var className = CLASS_NAMES[which].base;\n if (this.state.afterOpen)\n className += ' '+CLASS_NAMES[which].afterOpen;\n if (this.state.beforeClose)\n className += ' '+CLASS_NAMES[which].beforeClose;\n return additional ? className + ' ' + additional : className;\n },\n\n render: function() {\n var contentStyles = (this.props.className) ? {} : this.props.defaultStyles.content;\n var overlayStyles = (this.props.overlayClassName) ? {} : this.props.defaultStyles.overlay;\n\n return this.shouldBeClosed() ? div() : (\n div({\n ref: \"overlay\",\n className: this.buildClassName('overlay', this.props.overlayClassName),\n style: Assign({}, overlayStyles, this.props.style.overlay || {}),\n onMouseDown: this.handleOverlayMouseDown,\n onMouseUp: this.handleOverlayMouseUp\n },\n div({\n ref: \"content\",\n style: Assign({}, contentStyles, this.props.style.content || {}),\n className: this.buildClassName('content', this.props.className),\n tabIndex: \"-1\",\n onKeyDown: this.handleKeyDown,\n onMouseDown: this.handleContentMouseDown,\n onMouseUp: this.handleContentMouseUp,\n role: this.props.role,\n \"aria-label\": this.props.contentLabel\n },\n this.props.children\n )\n )\n );\n }\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-modal/lib/components/ModalPortal.js\n// module id = 38\n// module chunks = 0","var findTabbable = require('../helpers/tabbable');\nvar modalElement = null;\nvar focusLaterElement = null;\nvar needToFocus = false;\n\nfunction handleBlur(event) {\n needToFocus = true;\n}\n\nfunction handleFocus(event) {\n if (needToFocus) {\n needToFocus = false;\n if (!modalElement) {\n return;\n }\n // need to see how jQuery shims document.on('focusin') so we don't need the\n // setTimeout, firefox doesn't support focusin, if it did, we could focus\n // the element outside of a setTimeout. Side-effect of this implementation \n // is that the document.body gets focus, and then we focus our element right \n // after, seems fine.\n setTimeout(function() {\n if (modalElement.contains(document.activeElement))\n return;\n var el = (findTabbable(modalElement)[0] || modalElement);\n el.focus();\n }, 0);\n }\n}\n\nexports.markForFocusLater = function() {\n focusLaterElement = document.activeElement;\n};\n\nexports.returnFocus = function() {\n try {\n focusLaterElement.focus();\n }\n catch (e) {\n console.warn('You tried to return focus to '+focusLaterElement+' but it is not in the DOM anymore');\n }\n focusLaterElement = null;\n};\n\nexports.setupScopedFocus = function(element) {\n modalElement = element;\n\n if (window.addEventListener) {\n window.addEventListener('blur', handleBlur, false);\n document.addEventListener('focus', handleFocus, true);\n } else {\n window.attachEvent('onBlur', handleBlur);\n document.attachEvent('onFocus', handleFocus);\n }\n};\n\nexports.teardownScopedFocus = function() {\n modalElement = null;\n\n if (window.addEventListener) {\n window.removeEventListener('blur', handleBlur);\n document.removeEventListener('focus', handleFocus);\n } else {\n window.detachEvent('onBlur', handleBlur);\n document.detachEvent('onFocus', handleFocus);\n }\n};\n\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-modal/lib/helpers/focusManager.js\n// module id = 39\n// module chunks = 0","/*!\n * Adapted from jQuery UI core\n *\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/category/ui-core/\n */\n\nfunction focusable(element, isTabIndexNotNaN) {\n var nodeName = element.nodeName.toLowerCase();\n return (/input|select|textarea|button|object/.test(nodeName) ?\n !element.disabled :\n \"a\" === nodeName ?\n element.href || isTabIndexNotNaN :\n isTabIndexNotNaN) && visible(element);\n}\n\nfunction hidden(el) {\n return (el.offsetWidth <= 0 && el.offsetHeight <= 0) ||\n el.style.display === 'none';\n}\n\nfunction visible(element) {\n while (element) {\n if (element === document.body) break;\n if (hidden(element)) return false;\n element = element.parentNode;\n }\n return true;\n}\n\nfunction tabbable(element) {\n var tabIndex = element.getAttribute('tabindex');\n if (tabIndex === null) tabIndex = undefined;\n var isTabIndexNaN = isNaN(tabIndex);\n return (isTabIndexNaN || tabIndex >= 0) && focusable(element, !isTabIndexNaN);\n}\n\nfunction findTabbableDescendants(element) {\n return [].slice.call(element.querySelectorAll('*'), 0).filter(function(el) {\n return tabbable(el);\n });\n}\n\nmodule.exports = findTabbableDescendants;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-modal/lib/helpers/tabbable.js\n// module id = 40\n// module chunks = 0","var findTabbable = require('../helpers/tabbable');\n\nmodule.exports = function(node, event) {\n var tabbable = findTabbable(node);\n if (!tabbable.length) {\n event.preventDefault();\n return;\n }\n var finalTabbable = tabbable[event.shiftKey ? 0 : tabbable.length - 1];\n var leavingFinalTabbable = (\n finalTabbable === document.activeElement ||\n // handle immediate shift+tab after opening with mouse\n node === document.activeElement\n );\n if (!leavingFinalTabbable) return;\n event.preventDefault();\n var target = tabbable[event.shiftKey ? tabbable.length - 1 : 0];\n target.focus();\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-modal/lib/helpers/scopeTab.js\n// module id = 41\n// module chunks = 0","/**\n * lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]';\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\n/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\n/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object),\n nativeMax = Math.max;\n\n/** Detect if properties shadowing those on `Object.prototype` are non-enumerable. */\nvar nonEnumShadows = !propertyIsEnumerable.call({ 'valueOf': 1 }, 'valueOf');\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n // Safari 8.1 makes `arguments.callee` enumerable in strict mode.\n // Safari 9 makes `arguments.length` enumerable in strict mode.\n var result = (isArray(value) || isArguments(value))\n ? baseTimes(value.length, String)\n : [];\n\n var length = result.length,\n skipIndexes = !!length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (key == 'length' || isIndex(key, length)))) {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n object[key] = value;\n }\n}\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = array;\n return apply(func, this, otherArgs);\n };\n}\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n assignValue(object, key, newValue === undefined ? source[key] : newValue);\n }\n return object;\n}\n\n/**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\nfunction createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n}\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n length = length == null ? MAX_SAFE_INTEGER : length;\n return !!length &&\n (typeof value == 'number' || reIsUint.test(value)) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\n/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nfunction isArguments(value) {\n // Safari 8.1 makes `arguments.callee` enumerable in strict mode.\n return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&\n (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);\n}\n\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 8-9 which returns 'object' for typed array and other constructors.\n var tag = isObject(value) ? objectToString.call(value) : '';\n return tag == funcTag || tag == genTag;\n}\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Assigns own enumerable string keyed properties of source objects to the\n * destination object. Source objects are applied from left to right.\n * Subsequent sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object` and is loosely based on\n * [`Object.assign`](https://mdn.io/Object/assign).\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assignIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assign({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'c': 3 }\n */\nvar assign = createAssigner(function(object, source) {\n if (nonEnumShadows || isPrototype(source) || isArrayLike(source)) {\n copyObject(source, keys(source), object);\n return;\n }\n for (var key in source) {\n if (hasOwnProperty.call(source, key)) {\n assignValue(object, key, source[key]);\n }\n }\n});\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nmodule.exports = assign;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-modal/~/lodash.assign/index.js\n// module id = 42\n// module chunks = 0","var _element = typeof document !== 'undefined' ? document.body : null;\n\nfunction setElement(element) {\n if (typeof element === 'string') {\n var el = document.querySelectorAll(element);\n element = 'length' in el ? el[0] : el;\n }\n _element = element || _element;\n return _element;\n}\n\nfunction hide(appElement) {\n validateElement(appElement);\n (appElement || _element).setAttribute('aria-hidden', 'true');\n}\n\nfunction show(appElement) {\n validateElement(appElement);\n (appElement || _element).removeAttribute('aria-hidden');\n}\n\nfunction toggle(shouldHide, appElement) {\n if (shouldHide)\n hide(appElement);\n else\n show(appElement);\n}\n\nfunction validateElement(appElement) {\n if (!appElement && !_element)\n throw new Error('react-modal: You must set an element with `Modal.setAppElement(el)` to make this accessible');\n}\n\nfunction resetForTesting() {\n _element = document.body;\n}\n\nexports.toggle = toggle;\nexports.setElement = setElement;\nexports.show = show;\nexports.hide = hide;\nexports.resetForTesting = resetForTesting;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-modal/lib/helpers/ariaAppHider.js\n// module id = 43\n// module chunks = 0","module.exports = function(opts) {\n return new ElementClass(opts)\n}\n\nfunction indexOf(arr, prop) {\n if (arr.indexOf) return arr.indexOf(prop)\n for (var i = 0, len = arr.length; i < len; i++)\n if (arr[i] === prop) return i\n return -1\n}\n\nfunction ElementClass(opts) {\n if (!(this instanceof ElementClass)) return new ElementClass(opts)\n var self = this\n if (!opts) opts = {}\n\n // similar doing instanceof HTMLElement but works in IE8\n if (opts.nodeType) opts = {el: opts}\n\n this.opts = opts\n this.el = opts.el || document.body\n if (typeof this.el !== 'object') this.el = document.querySelector(this.el)\n}\n\nElementClass.prototype.add = function(className) {\n var el = this.el\n if (!el) return\n if (el.className === \"\") return el.className = className\n var classes = el.className.split(' ')\n if (indexOf(classes, className) > -1) return classes\n classes.push(className)\n el.className = classes.join(' ')\n return classes\n}\n\nElementClass.prototype.remove = function(className) {\n var el = this.el\n if (!el) return\n if (el.className === \"\") return\n var classes = el.className.split(' ')\n var idx = indexOf(classes, className)\n if (idx > -1) classes.splice(idx, 1)\n el.className = classes.join(' ')\n return classes\n}\n\nElementClass.prototype.has = function(className) {\n var el = this.el\n if (!el) return\n var classes = el.className.split(' ')\n return indexOf(classes, className) > -1\n}\n\nElementClass.prototype.toggle = function(className) {\n var el = this.el\n if (!el) return\n if (this.has(className)) this.remove(className)\n else this.add(className)\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react-modal/~/element-class/index.js\n// module id = 44\n// module chunks = 0","/* eslint no-console: 0 */\n\nimport React, { Component, PropTypes } from 'react';\n\nimport InsertModalHeader from './InsertModalHeader';\nimport InsertModalFooter from './InsertModalFooter';\nimport InsertModalBody from './InsertModalBody';\n\nconst defaultModalClassName = 'react-bs-table-insert-modal';\n\nexport default class InsertModal extends Component {\n\n handleSave = () => {\n const bodyRefs = this.refs.body;\n if (bodyRefs.getFieldValue) {\n this.props.onSave(bodyRefs.getFieldValue());\n } else {\n console.error(`Custom InsertModalBody should implement getFieldValue function\n and should return an object presented as the new row that user input.`);\n }\n }\n\n render() {\n let { headerComponent, footerComponent, bodyComponent } = this.props;\n const {\n columns,\n validateState,\n ignoreEditable,\n onModalClose\n } = this.props;\n const bodyAttr = { columns, validateState, ignoreEditable };\n\n bodyComponent = bodyComponent && bodyComponent(columns, validateState, ignoreEditable);\n\n headerComponent = headerComponent && headerComponent(onModalClose, this.handleSave);\n\n footerComponent = footerComponent && footerComponent(onModalClose, this.handleSave);\n\n if (bodyComponent) {\n bodyComponent = React.cloneElement(bodyComponent, { ref: 'body' });\n }\n\n if (headerComponent && headerComponent.type.name === InsertModalHeader.name) {\n const eventProps = {};\n if (!headerComponent.props.onModalClose) eventProps.onModalClose = onModalClose;\n if (!headerComponent.props.onSave) eventProps.onSave = this.handleSave;\n if (Object.keys(eventProps).length > 0) {\n headerComponent = React.cloneElement(headerComponent, eventProps);\n }\n } else if (headerComponent && headerComponent.type.name !== InsertModalHeader.name) {\n const { className } = headerComponent.props;\n if (typeof className === 'undefined' || className.indexOf('modal-header') === -1) {\n headerComponent = ({ headerComponent }
);\n }\n }\n\n if (footerComponent && footerComponent.type.name === InsertModalFooter.name) {\n const eventProps = {};\n if (!footerComponent.props.onModalClose) eventProps.onModalClose = onModalClose;\n if (!footerComponent.props.onSave) eventProps.onSave = this.handleSave;\n if (Object.keys(eventProps).length > 0) {\n footerComponent = React.cloneElement(footerComponent, eventProps);\n }\n } else if (footerComponent && footerComponent.type.name !== InsertModalFooter.name) {\n const { className } = footerComponent.props;\n if (typeof className === 'undefined' || className.indexOf('modal-footer') === -1) {\n footerComponent = ({ footerComponent }
);\n }\n }\n\n return (\n \n {\n headerComponent ||\n ()\n }\n {\n bodyComponent ||\n ()\n }\n {\n footerComponent ||\n ()\n }\n
\n );\n }\n}\nInsertModal.propTypes = {\n columns: PropTypes.array.isRequired,\n validateState: PropTypes.object.isRequired,\n ignoreEditable: PropTypes.bool,\n headerComponent: PropTypes.func,\n bodyComponent: PropTypes.func,\n footerComponent: PropTypes.func,\n onModalClose: PropTypes.func,\n onSave: PropTypes.func\n};\n\nInsertModal.defaultProps = {};\n\n\n\n// WEBPACK FOOTER //\n// src/toolbar/InsertModal.js","import React, { Component, PropTypes } from 'react';\n\nclass InsertModalHeader extends Component {\n\n handleCloseBtnClick = e => {\n const { onModalClose, beforeClose } = this.props;\n beforeClose && beforeClose(e);\n onModalClose();\n }\n\n render() {\n const {\n title,\n hideClose,\n className,\n children\n } = this.props;\n\n const closeBtn = hideClose ? null : (\n \n );\n\n const content = children || (\n \n { closeBtn }\n { title }
\n \n );\n\n return (\n \n { content }\n
\n );\n }\n}\n\nInsertModalHeader.propTypes = {\n className: PropTypes.string,\n title: PropTypes.string,\n onModalClose: PropTypes.func,\n hideClose: PropTypes.bool,\n beforeClose: PropTypes.func\n};\nInsertModalHeader.defaultProps = {\n className: '',\n title: 'Add Row',\n onModalClose: undefined,\n hideClose: false,\n beforeClose: undefined\n};\n\nexport default InsertModalHeader;\n\n\n\n// WEBPACK FOOTER //\n// src/toolbar/InsertModalHeader.js","import React, { Component, PropTypes } from 'react';\nimport Const from '../Const';\n\nclass InsertModalFooter extends Component {\n\n handleCloseBtnClick = e => {\n const { beforeClose, onModalClose } = this.props;\n beforeClose && beforeClose(e);\n onModalClose();\n }\n\n handleSaveBtnClick = e => {\n const { beforeSave, onSave } = this.props;\n beforeSave && beforeSave(e);\n onSave();\n }\n\n render() {\n const {\n className,\n saveBtnText,\n closeBtnText,\n closeBtnContextual,\n saveBtnContextual,\n closeBtnClass,\n saveBtnClass,\n children\n } = this.props;\n\n const content = children || (\n \n \n \n \n );\n\n return (\n \n { content }\n
\n );\n }\n}\nInsertModalFooter.propTypes = {\n className: PropTypes.string,\n saveBtnText: PropTypes.string,\n closeBtnText: PropTypes.string,\n closeBtnContextual: PropTypes.string,\n saveBtnContextual: PropTypes.string,\n closeBtnClass: PropTypes.string,\n saveBtnClass: PropTypes.string,\n beforeClose: PropTypes.func,\n beforeSave: PropTypes.func,\n onSave: PropTypes.func,\n onModalClose: PropTypes.func\n};\nInsertModalFooter.defaultProps = {\n className: '',\n saveBtnText: Const.SAVE_BTN_TEXT,\n closeBtnText: Const.CLOSE_BTN_TEXT,\n closeBtnContextual: 'btn-default',\n saveBtnContextual: 'btn-primary',\n closeBtnClass: '',\n saveBtnClass: '',\n beforeClose: undefined,\n beforeSave: undefined\n};\n\nexport default InsertModalFooter;\n\n\n\n// WEBPACK FOOTER //\n// src/toolbar/InsertModalFooter.js","/* eslint react/display-name: 0 */\nimport React, { Component, PropTypes } from 'react';\n\nimport editor from '../Editor';\n\nclass InsertModalBody extends Component {\n\n getFieldValue() {\n const newRow = {};\n this.props.columns.forEach((column, i) => {\n let inputVal;\n if (column.autoValue) {\n // when you want same auto generate value and not allow edit, example ID field\n const time = new Date().getTime();\n inputVal = typeof column.autoValue === 'function' ?\n column.autoValue() :\n (`autovalue-${time}`);\n } else if (column.hiddenOnInsert || !column.field) {\n inputVal = '';\n } else {\n const dom = this.refs[column.field + i];\n inputVal = dom.value;\n\n if (column.editable && column.editable.type === 'checkbox') {\n const values = inputVal.split(':');\n inputVal = dom.checked ? values[0] : values[1];\n } else if (column.customInsertEditor) {\n inputVal = inputVal || dom.getFieldValue();\n }\n }\n newRow[column.field] = inputVal;\n }, this);\n return newRow;\n }\n\n render() {\n const { columns, validateState, ignoreEditable } = this.props;\n return (\n \n {\n columns.map((column, i) => {\n const {\n editable,\n format,\n field,\n name,\n autoValue,\n hiddenOnInsert,\n customInsertEditor\n } = column;\n const attr = {\n ref: field + i,\n placeholder: editable.placeholder ? editable.placeholder : name\n };\n let fieldElement;\n\n if (customInsertEditor) {\n const { getElement } = customInsertEditor;\n fieldElement = getElement(column, attr, 'form-control', ignoreEditable);\n } else {\n fieldElement = editor(editable, attr, format, '', undefined, ignoreEditable);\n }\n\n if (autoValue || hiddenOnInsert || !column.field) {\n // when you want same auto generate value\n // and not allow edit, for example ID field\n return null;\n }\n const error = validateState[field] ?\n (
{ validateState[field] }) :\n null;\n return (\n
\n \n { fieldElement }\n { error }\n
\n );\n })\n }\n
\n );\n }\n}\nInsertModalBody.propTypes = {\n columns: PropTypes.array,\n validateState: PropTypes.object,\n ignoreEditable: PropTypes.bool\n};\n\nInsertModalBody.defaultProps = {\n validateState: {},\n ignoreEditable: false\n};\n\nexport default InsertModalBody;\n\n\n\n// WEBPACK FOOTER //\n// src/toolbar/InsertModalBody.js","import React, { Component, PropTypes } from 'react';\nimport Const from '../Const';\n\nconst insertBtnDefaultClass = 'react-bs-table-add-btn';\n\nclass InsertButton extends Component {\n render() {\n const {\n btnContextual,\n className,\n onClick,\n btnGlyphicon,\n btnText,\n children,\n ...rest\n } = this.props;\n const content = children ||\n ({ btnText });\n return (\n \n );\n }\n}\n\nInsertButton.propTypes = {\n btnText: PropTypes.string,\n btnContextual: PropTypes.string,\n className: PropTypes.string,\n onClick: PropTypes.func,\n btnGlyphicon: PropTypes.string\n};\nInsertButton.defaultProps = {\n btnText: Const.INSERT_BTN_TEXT,\n btnContextual: 'btn-info',\n className: '',\n onClick: undefined,\n btnGlyphicon: 'glyphicon-plus'\n};\n\nexport default InsertButton;\n\n\n\n// WEBPACK FOOTER //\n// src/toolbar/InsertButton.js","import React, { Component, PropTypes } from 'react';\nimport Const from '../Const';\n\nconst deleteBtnDefaultClass = 'react-bs-table-del-btn';\n\nclass DeleteButton extends Component {\n render() {\n const {\n btnContextual,\n className,\n onClick,\n btnGlyphicon,\n btnText,\n children,\n ...rest\n } = this.props;\n const content = children ||\n ( { btnText });\n return (\n \n );\n }\n}\n\nDeleteButton.propTypes = {\n btnText: PropTypes.string,\n btnContextual: PropTypes.string,\n className: PropTypes.string,\n onClick: PropTypes.func,\n btnGlyphicon: PropTypes.string\n};\nDeleteButton.defaultProps = {\n btnText: Const.DELETE_BTN_TEXT,\n btnContextual: 'btn-warning',\n className: '',\n onClick: undefined,\n btnGlyphicon: 'glyphicon-trash'\n};\n\nexport default DeleteButton;\n\n\n\n// WEBPACK FOOTER //\n// src/toolbar/DeleteButton.js","import React, { Component, PropTypes } from 'react';\nimport Const from '../Const';\n\nconst exportCsvBtnDefaultClass = 'react-bs-table-csv-btn';\n\nclass ExportCSVButton extends Component {\n render() {\n const {\n btnContextual,\n className,\n onClick,\n btnGlyphicon,\n btnText,\n children,\n ...rest\n } = this.props;\n const content = children ||\n ( { btnText });\n return (\n \n );\n }\n}\n\nExportCSVButton.propTypes = {\n btnText: PropTypes.string,\n btnContextual: PropTypes.string,\n className: PropTypes.string,\n onClick: PropTypes.func,\n btnGlyphicon: PropTypes.string\n};\nExportCSVButton.defaultProps = {\n btnText: Const.EXPORT_CSV_TEXT,\n btnContextual: 'btn-success',\n className: '',\n onClick: undefined,\n btnGlyphicon: 'glyphicon-export'\n};\n\nexport default ExportCSVButton;\n\n\n\n// WEBPACK FOOTER //\n// src/toolbar/ExportCSVButton.js","import React, { Component, PropTypes } from 'react';\nimport Const from '../Const';\n\nconst showSelectedOnlyBtnDefaultClass = 'react-bs-table-show-sel-only-btn';\n\nclass ShowSelectedOnlyButton extends Component {\n render() {\n const {\n btnContextual,\n className,\n onClick,\n toggle,\n showAllText,\n showOnlySelectText,\n children,\n ...rest\n } = this.props;\n const content = children ||\n ({ toggle ? showOnlySelectText : showAllText });\n return (\n \n );\n }\n}\n\nShowSelectedOnlyButton.propTypes = {\n showAllText: PropTypes.string,\n showOnlySelectText: PropTypes.string,\n toggle: PropTypes.bool,\n btnContextual: PropTypes.string,\n className: PropTypes.string,\n onClick: PropTypes.func\n};\nShowSelectedOnlyButton.defaultProps = {\n showAllText: Const.SHOW_ALL,\n showOnlySelectText: Const.SHOW_ONLY_SELECT,\n toggle: false,\n btnContextual: 'btn-primary',\n className: '',\n onClick: undefined\n};\n\nexport default ShowSelectedOnlyButton;\n\n\n\n// WEBPACK FOOTER //\n// src/toolbar/ShowSelectedOnlyButton.js","import React, { Component, PropTypes } from 'react';\nimport ReactDOM from 'react-dom';\n\nclass SearchField extends Component {\n\n getValue() {\n return ReactDOM.findDOMNode(this).value;\n }\n\n setValue(value) {\n ReactDOM.findDOMNode(this).value = value;\n }\n\n render() {\n const {\n className,\n defaultValue,\n placeholder,\n onKeyUp,\n ...rest\n } = this.props;\n return (\n \n );\n }\n}\n\nSearchField.propTypes = {\n className: PropTypes.string,\n defaultValue: PropTypes.string,\n placeholder: PropTypes.string,\n onKeyUp: PropTypes.func\n};\nSearchField.defaultProps = {\n className: '',\n defaultValue: '',\n placeholder: 'Search',\n onKeyUp: undefined\n};\n\nexport default SearchField;\n\n\n\n// WEBPACK FOOTER //\n// src/toolbar/SearchField.js","import React, { Component, PropTypes } from 'react';\n\nconst clearBtnDefaultClass = 'react-bs-table-search-clear-btn';\n\nclass ClearSearchButton extends Component {\n\n render() {\n const {\n btnContextual,\n className,\n onClick,\n btnText,\n children,\n ...rest\n } = this.props;\n const content = children ||\n ({ btnText });\n return (\n \n );\n }\n}\n\nClearSearchButton.propTypes = {\n btnContextual: PropTypes.string,\n className: PropTypes.string,\n btnText: PropTypes.string,\n onClick: PropTypes.func\n};\nClearSearchButton.defaultProps = {\n btnContextual: 'btn-default',\n className: '',\n btnText: 'Clear',\n onClick: undefined\n};\n\nexport default ClearSearchButton;\n\n\n\n// WEBPACK FOOTER //\n// src/toolbar/ClearSearchButton.js","import React, { Component, PropTypes } from 'react';\nimport Const from './Const';\nimport classSet from 'classnames';\n\nclass TableFilter extends Component {\n\n constructor(props) {\n super(props);\n this.filterObj = {};\n }\n\n handleKeyUp = e => {\n const { value, name } = e.currentTarget;\n if (value.trim() === '') {\n delete this.filterObj[name];\n } else {\n this.filterObj[name] = value;\n }\n this.props.onFilter(this.filterObj);\n }\n\n render() {\n const { striped, condensed, rowSelectType, columns } = this.props;\n const tableClasses = classSet('table', {\n 'table-striped': striped,\n 'table-condensed': condensed\n });\n let selectRowHeader = null;\n\n if (rowSelectType === Const.ROW_SELECT_SINGLE ||\n rowSelectType === Const.ROW_SELECT_MULTI) {\n const style = {\n width: 35,\n paddingLeft: 0,\n paddingRight: 0\n };\n selectRowHeader = (Filter | );\n }\n\n const filterField = columns.map(function(column) {\n const { hidden, width, name } = column;\n const thStyle = {\n display: hidden ? 'none' : null,\n width\n };\n return (\n \n \n \n \n | \n );\n }, this);\n\n return (\n \n \n \n { selectRowHeader }{ filterField }\n
\n \n
\n );\n }\n}\nTableFilter.propTypes = {\n columns: PropTypes.array,\n rowSelectType: PropTypes.string,\n onFilter: PropTypes.func\n};\nexport default TableFilter;\n\n\n\n// WEBPACK FOOTER //\n// src/TableFilter.js","/* eslint no-nested-ternary: 0 */\n/* eslint guard-for-in: 0 */\n/* eslint no-console: 0 */\n/* eslint eqeqeq: 0 */\n/* eslint one-var: 0 */\nimport Const from '../Const';\n\nexport class TableDataStore {\n\n constructor(data) {\n this.data = data;\n this.filteredData = null;\n this.isOnFilter = false;\n this.filterObj = null;\n this.searchText = null;\n this.sortList = [];\n this.pageObj = {};\n this.selected = [];\n this.showOnlySelected = false;\n }\n\n setProps(props) {\n this.keyField = props.keyField;\n this.enablePagination = props.isPagination;\n this.colInfos = props.colInfos;\n this.remote = props.remote;\n this.multiColumnSearch = props.multiColumnSearch;\n // default behaviour if strictSearch prop is not provided: !multiColumnSearch\n this.strictSearch = typeof props.strictSearch === 'undefined' ?\n !props.multiColumnSearch : props.strictSearch;\n this.multiColumnSort = props.multiColumnSort;\n }\n\n clean() {\n this.filteredData = null;\n this.isOnFilter = false;\n this.filterObj = null;\n this.searchText = null;\n this.sortList = [];\n this.pageObj = {};\n this.selected = [];\n }\n\n setData(data) {\n this.data = data;\n if (this.remote) {\n return;\n }\n\n this._refresh(true);\n }\n\n getColInfos() {\n return this.colInfos;\n }\n\n getSortInfo() {\n return this.sortList;\n }\n\n setSortInfo(order, sortField) {\n if (typeof order !== typeof sortField) {\n throw new Error('The type of sort field and order should be both with String or Array');\n }\n if (Array.isArray(order) && Array.isArray(sortField)) {\n if (order.length !== sortField.length) {\n throw new Error('The length of sort fields and orders should be equivalent');\n }\n order = order.slice().reverse();\n this.sortList = sortField.slice().reverse().map((field, i) => {\n return {\n order: order[i],\n sortField: field\n };\n });\n this.sortList = this.sortList.slice(0, this.multiColumnSort);\n } else {\n const sortObj = {\n order: order,\n sortField: sortField\n };\n\n if (this.multiColumnSort > 1) {\n let i = this.sortList.length - 1;\n let sortFieldInHistory = false;\n\n for (; i >= 0; i--) {\n if (this.sortList[i].sortField === sortField) {\n sortFieldInHistory = true;\n break;\n }\n }\n\n if (sortFieldInHistory) {\n if (i > 0) {\n this.sortList = this.sortList.slice(0, i);\n } else {\n this.sortList = this.sortList.slice(1);\n }\n }\n\n this.sortList.unshift(sortObj);\n this.sortList = this.sortList.slice(0, this.multiColumnSort);\n } else {\n this.sortList = [ sortObj ];\n }\n }\n }\n\n setSelectedRowKey(selectedRowKeys) {\n this.selected = selectedRowKeys;\n }\n\n getRowByKey(keys) {\n // Bad Performance #1164\n // return keys.map(key => {\n // const result = this.data.filter(d => d[this.keyField] === key);\n // if (result.length !== 0) return result[0];\n // });\n const result = [];\n for (let i = 0; i < this.data.length; i++) {\n const d = this.data[i];\n if (!keys || keys.length === 0) break;\n if (keys.indexOf(d[this.keyField]) > -1) {\n keys = keys.filter(k => k !== d[this.keyField]);\n result.push(d);\n }\n }\n return result;\n }\n\n getSelectedRowKeys() {\n return this.selected;\n }\n\n getCurrentDisplayData() {\n if (this.isOnFilter) return this.filteredData;\n else return this.data;\n }\n\n _refresh(skipSorting) {\n if (this.isOnFilter) {\n if (this.filterObj !== null) this.filter(this.filterObj);\n if (this.searchText !== null) this.search(this.searchText);\n }\n if (!skipSorting && this.sortList.length > 0) {\n this.sort();\n }\n }\n\n ignoreNonSelected() {\n this.showOnlySelected = !this.showOnlySelected;\n if (this.showOnlySelected) {\n this.isOnFilter = true;\n this.filteredData = this.data.filter( row => {\n const result = this.selected.find(x => row[this.keyField] === x);\n return typeof result !== 'undefined' ? true : false;\n });\n } else {\n this.isOnFilter = false;\n }\n }\n\n sort() {\n let currentDisplayData = this.getCurrentDisplayData();\n\n currentDisplayData = this._sort(currentDisplayData);\n\n return this;\n }\n\n page(page, sizePerPage) {\n this.pageObj.end = page * sizePerPage - 1;\n this.pageObj.start = this.pageObj.end - (sizePerPage - 1);\n return this;\n }\n\n edit(newVal, rowIndex, fieldName) {\n const currentDisplayData = this.getCurrentDisplayData();\n let rowKeyCache;\n if (!this.enablePagination) {\n currentDisplayData[rowIndex][fieldName] = newVal;\n rowKeyCache = currentDisplayData[rowIndex][this.keyField];\n } else {\n currentDisplayData[this.pageObj.start + rowIndex][fieldName] = newVal;\n rowKeyCache = currentDisplayData[this.pageObj.start + rowIndex][this.keyField];\n }\n if (this.isOnFilter) {\n this.data.forEach(function(row) {\n if (row[this.keyField] === rowKeyCache) {\n row[fieldName] = newVal;\n }\n }, this);\n if (this.filterObj !== null) this.filter(this.filterObj);\n if (this.searchText !== null) this.search(this.searchText);\n }\n return this;\n }\n\n addAtBegin(newObj) {\n if (!newObj[this.keyField] || newObj[this.keyField].toString() === '') {\n throw new Error(`${this.keyField} can't be empty value.`);\n }\n const currentDisplayData = this.getCurrentDisplayData();\n currentDisplayData.forEach(function(row) {\n if (row[this.keyField].toString() === newObj[this.keyField].toString()) {\n throw new Error(`${this.keyField} ${newObj[this.keyField]} already exists`);\n }\n }, this);\n currentDisplayData.unshift(newObj);\n if (this.isOnFilter) {\n this.data.unshift(newObj);\n }\n this._refresh(false);\n }\n\n add(newObj) {\n const e = this.isValidKey(newObj[this.keyField]);\n if (e) throw new Error(e);\n\n const currentDisplayData = this.getCurrentDisplayData();\n currentDisplayData.push(newObj);\n if (this.isOnFilter) {\n this.data.push(newObj);\n }\n this._refresh(false);\n }\n\n isValidKey = key => {\n if (!key || key.toString() === '') {\n return `${this.keyField} can't be empty value.`;\n }\n const currentDisplayData = this.getCurrentDisplayData();\n const exist = currentDisplayData.find(row => row[this.keyField].toString() === key.toString());\n if (exist) return `${this.keyField} ${key} already exists`;\n }\n\n remove(rowKey) {\n const currentDisplayData = this.getCurrentDisplayData();\n const result = currentDisplayData.filter(row => {\n return rowKey.indexOf(row[this.keyField]) === -1;\n });\n\n if (this.isOnFilter) {\n this.data = this.data.filter(row => {\n return rowKey.indexOf(row[this.keyField]) === -1;\n });\n this.filteredData = result;\n } else {\n this.data = result;\n }\n }\n\n filter(filterObj) {\n if (Object.keys(filterObj).length === 0) {\n this.filteredData = null;\n this.isOnFilter = false;\n this.filterObj = null;\n if (this.searchText) this._search(this.data);\n } else {\n let source = this.data;\n this.filterObj = filterObj;\n if (this.searchText) {\n this._search(source);\n source = this.filteredData;\n }\n this._filter(source);\n }\n }\n\n filterNumber(targetVal, filterVal, comparator) {\n let valid = true;\n switch (comparator) {\n case '=': {\n if (targetVal != filterVal) {\n valid = false;\n }\n break;\n }\n case '>': {\n if (targetVal <= filterVal) {\n valid = false;\n }\n break;\n }\n case '>=': {\n if (targetVal < filterVal) {\n valid = false;\n }\n break;\n }\n case '<': {\n if (targetVal >= filterVal) {\n valid = false;\n }\n break;\n }\n case '<=': {\n if (targetVal > filterVal) {\n valid = false;\n }\n break;\n }\n case '!=': {\n if (targetVal == filterVal) {\n valid = false;\n }\n break;\n }\n default: {\n console.error('Number comparator provided is not supported');\n break;\n }\n }\n return valid;\n }\n\n filterDate(targetVal, filterVal, comparator) {\n if (!targetVal) return false;\n\n const filterDate = filterVal.getDate();\n const filterMonth = filterVal.getMonth();\n const filterYear = filterVal.getFullYear();\n\n const targetDate = targetVal.getDate();\n const targetMonth = targetVal.getMonth();\n const targetYear = targetVal.getFullYear();\n\n let valid = true;\n switch (comparator) {\n case '=': {\n if (filterDate !== targetDate ||\n filterMonth !== targetMonth ||\n filterYear !== targetYear) {\n valid = false;\n }\n break;\n }\n case '>': {\n if (targetVal <= filterVal) {\n valid = false;\n }\n break;\n }\n case '>=': {\n if (targetYear < filterYear) {\n valid = false;\n } else if (targetYear === filterYear &&\n targetMonth < filterMonth) {\n valid = false;\n } else if (targetYear === filterYear &&\n targetMonth === filterMonth &&\n targetDate < filterDate) {\n valid = false;\n }\n break;\n }\n case '<': {\n if (targetVal >= filterVal) {\n valid = false;\n }\n break;\n }\n case '<=': {\n if (targetYear > filterYear) {\n valid = false;\n } else if (targetYear === filterYear &&\n targetMonth > filterMonth) {\n valid = false;\n } else if (targetYear === filterYear &&\n targetMonth === filterMonth &&\n targetDate > filterDate) {\n valid = false;\n }\n break;\n }\n case '!=': {\n if (filterDate === targetDate &&\n filterMonth === targetMonth &&\n filterYear === targetYear) {\n valid = false;\n }\n break;\n }\n default: {\n console.error('Date comparator provided is not supported');\n break;\n }\n }\n return valid;\n }\n\n filterRegex(targetVal, filterVal) {\n try {\n return new RegExp(filterVal, 'i').test(targetVal);\n } catch (e) {\n return true;\n }\n }\n\n filterCustom(targetVal, filterVal, callbackInfo, cond) {\n if (callbackInfo !== null && typeof callbackInfo === 'object') {\n return callbackInfo.callback(targetVal, callbackInfo.callbackParameters);\n }\n\n return this.filterText(targetVal, filterVal, cond);\n }\n\n filterText(targetVal, filterVal, cond = Const.FILTER_COND_LIKE) {\n targetVal = targetVal.toString();\n filterVal = filterVal.toString();\n if (cond === Const.FILTER_COND_EQ) {\n return targetVal === filterVal;\n } else {\n targetVal = targetVal.toLowerCase();\n filterVal = filterVal.toLowerCase();\n return !(targetVal.indexOf(filterVal) === -1);\n }\n }\n\n /* General search function\n * It will search for the text if the input includes that text;\n */\n search(searchText) {\n if (searchText.trim() === '') {\n this.filteredData = null;\n this.isOnFilter = false;\n this.searchText = null;\n if (this.filterObj) this._filter(this.data);\n } else {\n let source = this.data;\n this.searchText = searchText;\n if (this.filterObj) {\n this._filter(source);\n source = this.filteredData;\n }\n this._search(source);\n }\n }\n\n _filter(source) {\n const filterObj = this.filterObj;\n this.filteredData = source.filter((row, r) => {\n let valid = true;\n let filterVal;\n for (const key in filterObj) {\n let targetVal = row[key];\n if (targetVal === null || targetVal === undefined) {\n targetVal = '';\n }\n\n switch (filterObj[key].type) {\n case Const.FILTER_TYPE.NUMBER: {\n filterVal = filterObj[key].value.number;\n break;\n }\n case Const.FILTER_TYPE.CUSTOM: {\n filterVal = (typeof filterObj[key].value === 'object') ?\n undefined :\n (typeof filterObj[key].value === 'string') ?\n filterObj[key].value.toLowerCase() :\n filterObj[key].value;\n break;\n }\n case Const.FILTER_TYPE.DATE: {\n filterVal = filterObj[key].value.date;\n break;\n }\n case Const.FILTER_TYPE.REGEX: {\n filterVal = filterObj[key].value;\n break;\n }\n default: {\n filterVal = filterObj[key].value;\n if (filterVal === undefined) {\n // Support old filter\n filterVal = filterObj[key];\n }\n break;\n }\n }\n let format, filterFormatted, formatExtraData, filterValue;\n if (this.colInfos[key]) {\n format = this.colInfos[key].format;\n filterFormatted = this.colInfos[key].filterFormatted;\n formatExtraData = this.colInfos[key].formatExtraData;\n filterValue = this.colInfos[key].filterValue;\n if (filterFormatted && format) {\n targetVal = format(row[key], row, formatExtraData, r);\n } else if (filterValue) {\n targetVal = filterValue(row[key], row);\n }\n }\n\n switch (filterObj[key].type) {\n case Const.FILTER_TYPE.NUMBER: {\n valid = this.filterNumber(targetVal, filterVal, filterObj[key].value.comparator);\n break;\n }\n case Const.FILTER_TYPE.DATE: {\n valid = this.filterDate(targetVal, filterVal, filterObj[key].value.comparator);\n break;\n }\n case Const.FILTER_TYPE.REGEX: {\n valid = this.filterRegex(targetVal, filterVal);\n break;\n }\n case Const.FILTER_TYPE.CUSTOM: {\n const cond = filterObj[key].props ? filterObj[key].props.cond : Const.FILTER_COND_LIKE;\n valid = this.filterCustom(targetVal, filterVal, filterObj[key].value, cond);\n break;\n }\n default: {\n if (filterObj[key].type === Const.FILTER_TYPE.SELECT &&\n filterFormatted && filterFormatted && format) {\n filterVal = format(filterVal, row, formatExtraData, r);\n }\n const cond = filterObj[key].props ? filterObj[key].props.cond : Const.FILTER_COND_LIKE;\n valid = this.filterText(targetVal, filterVal, cond);\n break;\n }\n }\n if (!valid) {\n break;\n }\n }\n return valid;\n });\n this.isOnFilter = true;\n }\n\n /*\n * Four different sort modes, all case insensitive:\n * (1) strictSearch && !multiColumnSearch\n * search text must be contained as provided in a single column\n * (2) strictSearch && multiColumnSearch\n * conjunction (AND combination) of whitespace separated terms over multiple columns\n * (3) !strictSearch && !multiColumnSearch\n * conjunction (AND combination) of whitespace separated terms in a single column\n * (4) !strictSearch && multiColumnSearch\n * any of the whitespace separated terms must be contained in any column\n */\n _search(source) {\n let searchTextArray;\n if (this.multiColumnSearch || !this.strictSearch) {\n // ignore leading and trailing whitespaces\n searchTextArray = this.searchText.trim().toLowerCase().split(/\\s+/);\n } else {\n searchTextArray = [ this.searchText.toLowerCase() ];\n }\n const searchTermCount = searchTextArray.length;\n const multipleTerms = searchTermCount > 1;\n const nonStrictMultiCol = multipleTerms && !this.strictSearch && this.multiColumnSearch;\n const nonStrictSingleCol = multipleTerms && !this.strictSearch && !this.multiColumnSearch;\n this.filteredData = source.filter((row, r) => {\n const keys = Object.keys(row);\n // only clone array if necessary\n let searchTerms = multipleTerms ? searchTextArray.slice() : searchTextArray;\n // for loops are ugly, but performance matters here.\n // And you cant break from a forEach.\n // http://jsperf.com/for-vs-foreach/66\n for (let i = 0, keysLength = keys.length; i < keysLength; i++) {\n const key = keys[i];\n const colInfo = this.colInfos[key];\n if (colInfo && colInfo.searchable) {\n const {\n format,\n filterFormatted,\n filterValue,\n formatExtraData\n } = colInfo;\n let targetVal;\n if (filterFormatted && format) {\n targetVal = format(row[key], row, formatExtraData, r);\n } else if (filterValue) {\n targetVal = filterValue(row[key], row);\n } else {\n targetVal = row[key];\n }\n if (targetVal !== null && typeof targetVal !== 'undefined') {\n targetVal = targetVal.toString().toLowerCase();\n if (nonStrictSingleCol && searchTermCount > searchTerms.length) {\n // reset search terms for single column search\n searchTerms = searchTextArray.slice();\n }\n for (let j = searchTerms.length - 1; j > -1; j--) {\n if (targetVal.indexOf(searchTerms[j]) !== -1) {\n if (nonStrictMultiCol || searchTerms.length === 1) {\n // match found: the last or only one\n return true;\n }\n // match found: but there are more search terms to check for\n searchTerms.splice(j, 1);\n } else if (!this.multiColumnSearch) {\n // one of the search terms was not found in this column\n break;\n }\n }\n }\n }\n }\n return false;\n });\n this.isOnFilter = true;\n }\n\n _sort(arr) {\n if (this.sortList.length === 0 || typeof(this.sortList[0]) === 'undefined') {\n return arr;\n }\n\n arr.sort((a, b) => {\n let result = 0;\n\n for (let i = 0; i < this.sortList.length; i++) {\n const sortDetails = this.sortList[i];\n const isDesc = sortDetails.order.toLowerCase() === Const.SORT_DESC;\n\n const { sortFunc, sortFuncExtraData } = this.colInfos[sortDetails.sortField];\n\n if (sortFunc) {\n result = sortFunc(a, b, sortDetails.order, sortDetails.sortField, sortFuncExtraData);\n } else {\n const valueA = a[sortDetails.sortField] === null ? '' : a[sortDetails.sortField];\n const valueB = b[sortDetails.sortField] === null ? '' : b[sortDetails.sortField];\n if (isDesc) {\n if (typeof valueB === 'string') {\n result = valueB.localeCompare(valueA);\n } else {\n result = valueA > valueB ? -1 : ((valueA < valueB) ? 1 : 0);\n }\n } else {\n if (typeof valueA === 'string') {\n result = valueA.localeCompare(valueB);\n } else {\n result = valueA < valueB ? -1 : ((valueA > valueB) ? 1 : 0);\n }\n }\n }\n\n if (result !== 0) {\n return result;\n }\n }\n\n return result;\n });\n\n return arr;\n }\n\n getDataIgnoringPagination() {\n return this.getCurrentDisplayData();\n }\n\n get() {\n const _data = this.getCurrentDisplayData();\n\n if (_data.length === 0) return _data;\n\n const remote = typeof this.remote === 'function' ?\n (this.remote(Const.REMOTE))[Const.REMOTE_PAGE] : this.remote;\n\n if (remote || !this.enablePagination) {\n return _data;\n } else {\n const result = [];\n for (let i = this.pageObj.start; i <= this.pageObj.end; i++) {\n result.push(_data[i]);\n if (i + 1 === _data.length) break;\n }\n return result;\n }\n }\n\n getKeyField() {\n return this.keyField;\n }\n\n getDataNum() {\n return this.getCurrentDisplayData().length;\n }\n\n isChangedPage() {\n return this.pageObj.start && this.pageObj.end ? true : false;\n }\n\n isEmpty() {\n return (this.data.length === 0 ||\n this.data === null ||\n this.data === undefined);\n }\n\n getAllRowkey() {\n return this.data.map(row => {\n return row[this.keyField];\n });\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// src/store/TableDataStore.js","/* eslint block-scoped-var: 0 */\n/* eslint vars-on-top: 0 */\n/* eslint no-var: 0 */\n/* eslint no-unused-vars: 0 */\nimport Util from './util';\n\nif (Util.canUseDOM()) {\n const filesaver = require('./filesaver');\n var saveAs = filesaver.saveAs;\n}\n\nfunction toString(data, keys) {\n let dataString = '';\n if (data.length === 0) return dataString;\n\n const headCells = [];\n let rowCount = 0;\n keys.forEach(key => {\n if (key.row > rowCount) {\n rowCount = key.row;\n }\n // rowCount += (key.rowSpan + key.colSpan - 1);\n for (var index = 0; index < key.colSpan; index++) {\n headCells.push(key);\n }\n });\n\n for (let i = 0; i <= rowCount; i++) {\n dataString += headCells.map(x => {\n if ((x.row + (x.rowSpan - 1)) === i) {\n return x.header;\n }\n if (x.row === i && x.rowSpan > 1) {\n return '';\n }\n }).filter(key => {\n return typeof key !== 'undefined';\n }).join(',') + '\\n';\n }\n\n keys = keys.filter(key => {\n return key.field !== undefined;\n });\n\n data.map(function(row) {\n keys.map(function(col, i) {\n const { field, format, extraData } = col;\n const value = typeof format !== 'undefined' ? format(row[field], row, extraData) : row[field];\n const cell = typeof value !== 'undefined' ? ('\"' + value + '\"') : '';\n dataString += cell;\n if (i + 1 < keys.length) dataString += ',';\n });\n\n dataString += '\\n';\n });\n\n return dataString;\n}\n\nconst exportCSV = function(data, keys, filename) {\n const dataString = toString(data, keys);\n if (typeof window !== 'undefined') {\n saveAs(new Blob([ dataString ],\n { type: 'text/plain;charset=utf-8' }),\n filename, true);\n }\n};\n\nexport default exportCSV;\n\n\n\n// WEBPACK FOOTER //\n// src/csv_export_util.js","/* FileSaver.js\n * A saveAs() FileSaver implementation.\n * 1.3.2\n * 2016-06-16 18:25:19\n *\n * By Eli Grey, http://eligrey.com\n * License: MIT\n * See https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md\n */\n\n/*global self */\n/*jslint bitwise: true, indent: 4, laxbreak: true, laxcomma: true, smarttabs: true, plusplus: true */\n\n/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */\n\nvar saveAs = saveAs || (function(view) {\n\t\"use strict\";\n\t// IE <10 is explicitly unsupported\n\tif (typeof view === \"undefined\" || typeof navigator !== \"undefined\" && /MSIE [1-9]\\./.test(navigator.userAgent)) {\n\t\treturn;\n\t}\n\tvar\n\t\t doc = view.document\n\t\t // only get URL when necessary in case Blob.js hasn't overridden it yet\n\t\t, get_URL = function() {\n\t\t\treturn view.URL || view.webkitURL || view;\n\t\t}\n\t\t, save_link = doc.createElementNS(\"http://www.w3.org/1999/xhtml\", \"a\")\n\t\t, can_use_save_link = \"download\" in save_link\n\t\t, click = function(node) {\n\t\t\tvar event = new MouseEvent(\"click\");\n\t\t\tnode.dispatchEvent(event);\n\t\t}\n\t\t, is_safari = /constructor/i.test(view.HTMLElement) || view.safari\n\t\t, is_chrome_ios =/CriOS\\/[\\d]+/.test(navigator.userAgent)\n\t\t, throw_outside = function(ex) {\n\t\t\t(view.setImmediate || view.setTimeout)(function() {\n\t\t\t\tthrow ex;\n\t\t\t}, 0);\n\t\t}\n\t\t, force_saveable_type = \"application/octet-stream\"\n\t\t// the Blob API is fundamentally broken as there is no \"downloadfinished\" event to subscribe to\n\t\t, arbitrary_revoke_timeout = 1000 * 40 // in ms\n\t\t, revoke = function(file) {\n\t\t\tvar revoker = function() {\n\t\t\t\tif (typeof file === \"string\") { // file is an object URL\n\t\t\t\t\tget_URL().revokeObjectURL(file);\n\t\t\t\t} else { // file is a File\n\t\t\t\t\tfile.remove();\n\t\t\t\t}\n\t\t\t};\n\t\t\tsetTimeout(revoker, arbitrary_revoke_timeout);\n\t\t}\n\t\t, dispatch = function(filesaver, event_types, event) {\n\t\t\tevent_types = [].concat(event_types);\n\t\t\tvar i = event_types.length;\n\t\t\twhile (i--) {\n\t\t\t\tvar listener = filesaver[\"on\" + event_types[i]];\n\t\t\t\tif (typeof listener === \"function\") {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tlistener.call(filesaver, event || filesaver);\n\t\t\t\t\t} catch (ex) {\n\t\t\t\t\t\tthrow_outside(ex);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t, auto_bom = function(blob) {\n\t\t\t// prepend BOM for UTF-8 XML and text/* types (including HTML)\n\t\t\t// note: your browser will automatically convert UTF-16 U+FEFF to EF BB BF\n\t\t\tif (/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(blob.type)) {\n\t\t\t\treturn new Blob([String.fromCharCode(0xFEFF), blob], {type: blob.type});\n\t\t\t}\n\t\t\treturn blob;\n\t\t}\n\t\t, FileSaver = function(blob, name, no_auto_bom) {\n\t\t\tif (!no_auto_bom) {\n\t\t\t\tblob = auto_bom(blob);\n\t\t\t}\n\t\t\t// First try a.download, then web filesystem, then object URLs\n\t\t\tvar\n\t\t\t\t filesaver = this\n\t\t\t\t, type = blob.type\n\t\t\t\t, force = type === force_saveable_type\n\t\t\t\t, object_url\n\t\t\t\t, dispatch_all = function() {\n\t\t\t\t\tdispatch(filesaver, \"writestart progress write writeend\".split(\" \"));\n\t\t\t\t}\n\t\t\t\t// on any filesys errors revert to saving with object URLs\n\t\t\t\t, fs_error = function() {\n\t\t\t\t\tif ((is_chrome_ios || (force && is_safari)) && view.FileReader) {\n\t\t\t\t\t\t// Safari doesn't allow downloading of blob urls\n\t\t\t\t\t\tvar reader = new FileReader();\n\t\t\t\t\t\treader.onloadend = function() {\n\t\t\t\t\t\t\tvar url = is_chrome_ios ? reader.result : reader.result.replace(/^data:[^;]*;/, 'data:attachment/file;');\n\t\t\t\t\t\t\tvar popup = view.open(url, '_blank');\n\t\t\t\t\t\t\tif(!popup) view.location.href = url;\n\t\t\t\t\t\t\turl=undefined; // release reference before dispatching\n\t\t\t\t\t\t\tfilesaver.readyState = filesaver.DONE;\n\t\t\t\t\t\t\tdispatch_all();\n\t\t\t\t\t\t};\n\t\t\t\t\t\treader.readAsDataURL(blob);\n\t\t\t\t\t\tfilesaver.readyState = filesaver.INIT;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t// don't create more object URLs than needed\n\t\t\t\t\tif (!object_url) {\n\t\t\t\t\t\tobject_url = get_URL().createObjectURL(blob);\n\t\t\t\t\t}\n\t\t\t\t\tif (force) {\n\t\t\t\t\t\tview.location.href = object_url;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvar opened = view.open(object_url, \"_blank\");\n\t\t\t\t\t\tif (!opened) {\n\t\t\t\t\t\t\t// Apple does not allow window.open, see https://developer.apple.com/library/safari/documentation/Tools/Conceptual/SafariExtensionGuide/WorkingwithWindowsandTabs/WorkingwithWindowsandTabs.html\n\t\t\t\t\t\t\tview.location.href = object_url;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tfilesaver.readyState = filesaver.DONE;\n\t\t\t\t\tdispatch_all();\n\t\t\t\t\trevoke(object_url);\n\t\t\t\t}\n\t\t\t;\n\t\t\tfilesaver.readyState = filesaver.INIT;\n\n\t\t\tif (can_use_save_link) {\n\t\t\t\tobject_url = get_URL().createObjectURL(blob);\n\t\t\t\tsetTimeout(function() {\n\t\t\t\t\tsave_link.href = object_url;\n\t\t\t\t\tsave_link.download = name;\n\t\t\t\t\tclick(save_link);\n\t\t\t\t\tdispatch_all();\n\t\t\t\t\trevoke(object_url);\n\t\t\t\t\tfilesaver.readyState = filesaver.DONE;\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfs_error();\n\t\t}\n\t\t, FS_proto = FileSaver.prototype\n\t\t, saveAs = function(blob, name, no_auto_bom) {\n\t\t\treturn new FileSaver(blob, name || blob.name || \"download\", no_auto_bom);\n\t\t}\n\t;\n\t// IE 10+ (native saveAs)\n\tif (typeof navigator !== \"undefined\" && navigator.msSaveOrOpenBlob) {\n\t\treturn function(blob, name, no_auto_bom) {\n\t\t\tname = name || blob.name || \"download\";\n\n\t\t\tif (!no_auto_bom) {\n\t\t\t\tblob = auto_bom(blob);\n\t\t\t}\n\t\t\treturn navigator.msSaveOrOpenBlob(blob, name);\n\t\t};\n\t}\n\n\tFS_proto.abort = function(){};\n\tFS_proto.readyState = FS_proto.INIT = 0;\n\tFS_proto.WRITING = 1;\n\tFS_proto.DONE = 2;\n\n\tFS_proto.error =\n\tFS_proto.onwritestart =\n\tFS_proto.onprogress =\n\tFS_proto.onwrite =\n\tFS_proto.onabort =\n\tFS_proto.onerror =\n\tFS_proto.onwriteend =\n\t\tnull;\n\n\treturn saveAs;\n}(\n\t typeof self !== \"undefined\" && self\n\t|| typeof window !== \"undefined\" && window\n\t|| this.content\n));\n// `self` is undefined in Firefox for Android content script context\n// while `this` is nsIContentFrameMessageManager\n// with an attribute `content` that corresponds to the window\n\nif (typeof module !== \"undefined\" && module.exports) {\n module.exports.saveAs = saveAs;\n} else if ((typeof define !== \"undefined\" && define !== null) && (define.amd !== null)) {\n define(\"FileSaver.js\", function() {\n return saveAs;\n });\n}\n\n\n// WEBPACK FOOTER //\n// src/filesaver.js","module.exports = function() { throw new Error(\"define cannot be used indirect\"); };\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// (webpack)/buildin/amd-define.js\n// module id = 59\n// module chunks = 0","module.exports = __webpack_amd_options__;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// (webpack)/buildin/amd-options.js\n// module id = 60\n// module chunks = 0","import Const from './Const';\nimport { EventEmitter } from 'events';\n\nexport class Filter extends EventEmitter {\n constructor(data) {\n super(data);\n this.currentFilter = {};\n }\n\n handleFilter(dataField, value, type, filterObj) {\n const filterType = type || Const.FILTER_TYPE.CUSTOM;\n\n const props = {\n cond: filterObj.condition // Only for select and text filter\n };\n\n if (value !== null && typeof value === 'object') {\n // value of the filter is an object\n let hasValue = true;\n for (const prop in value) {\n if (!value[prop] || value[prop] === '') {\n hasValue = false;\n break;\n }\n }\n // if one of the object properties is undefined or empty, we remove the filter\n if (hasValue) {\n this.currentFilter[dataField] = { value: value, type: filterType, props };\n } else {\n delete this.currentFilter[dataField];\n }\n } else if (!value || value.trim() === '') {\n delete this.currentFilter[dataField];\n } else {\n this.currentFilter[dataField] = { value: value.trim(), type: filterType, props };\n }\n this.emit('onFilterChange', this.currentFilter);\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// src/Filter.js","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nfunction EventEmitter() {\n this._events = this._events || {};\n this._maxListeners = this._maxListeners || undefined;\n}\nmodule.exports = EventEmitter;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nEventEmitter.defaultMaxListeners = 10;\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function(n) {\n if (!isNumber(n) || n < 0 || isNaN(n))\n throw TypeError('n must be a positive number');\n this._maxListeners = n;\n return this;\n};\n\nEventEmitter.prototype.emit = function(type) {\n var er, handler, len, args, i, listeners;\n\n if (!this._events)\n this._events = {};\n\n // If there is no 'error' event listener then throw.\n if (type === 'error') {\n if (!this._events.error ||\n (isObject(this._events.error) && !this._events.error.length)) {\n er = arguments[1];\n if (er instanceof Error) {\n throw er; // Unhandled 'error' event\n } else {\n // At least give some kind of context to the user\n var err = new Error('Uncaught, unspecified \"error\" event. (' + er + ')');\n err.context = er;\n throw err;\n }\n }\n }\n\n handler = this._events[type];\n\n if (isUndefined(handler))\n return false;\n\n if (isFunction(handler)) {\n switch (arguments.length) {\n // fast cases\n case 1:\n handler.call(this);\n break;\n case 2:\n handler.call(this, arguments[1]);\n break;\n case 3:\n handler.call(this, arguments[1], arguments[2]);\n break;\n // slower\n default:\n args = Array.prototype.slice.call(arguments, 1);\n handler.apply(this, args);\n }\n } else if (isObject(handler)) {\n args = Array.prototype.slice.call(arguments, 1);\n listeners = handler.slice();\n len = listeners.length;\n for (i = 0; i < len; i++)\n listeners[i].apply(this, args);\n }\n\n return true;\n};\n\nEventEmitter.prototype.addListener = function(type, listener) {\n var m;\n\n if (!isFunction(listener))\n throw TypeError('listener must be a function');\n\n if (!this._events)\n this._events = {};\n\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (this._events.newListener)\n this.emit('newListener', type,\n isFunction(listener.listener) ?\n listener.listener : listener);\n\n if (!this._events[type])\n // Optimize the case of one listener. Don't need the extra array object.\n this._events[type] = listener;\n else if (isObject(this._events[type]))\n // If we've already got an array, just append.\n this._events[type].push(listener);\n else\n // Adding the second element, need to change to array.\n this._events[type] = [this._events[type], listener];\n\n // Check for listener leak\n if (isObject(this._events[type]) && !this._events[type].warned) {\n if (!isUndefined(this._maxListeners)) {\n m = this._maxListeners;\n } else {\n m = EventEmitter.defaultMaxListeners;\n }\n\n if (m && m > 0 && this._events[type].length > m) {\n this._events[type].warned = true;\n console.error('(node) warning: possible EventEmitter memory ' +\n 'leak detected. %d listeners added. ' +\n 'Use emitter.setMaxListeners() to increase limit.',\n this._events[type].length);\n if (typeof console.trace === 'function') {\n // not supported in IE 10\n console.trace();\n }\n }\n }\n\n return this;\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.once = function(type, listener) {\n if (!isFunction(listener))\n throw TypeError('listener must be a function');\n\n var fired = false;\n\n function g() {\n this.removeListener(type, g);\n\n if (!fired) {\n fired = true;\n listener.apply(this, arguments);\n }\n }\n\n g.listener = listener;\n this.on(type, g);\n\n return this;\n};\n\n// emits a 'removeListener' event iff the listener was removed\nEventEmitter.prototype.removeListener = function(type, listener) {\n var list, position, length, i;\n\n if (!isFunction(listener))\n throw TypeError('listener must be a function');\n\n if (!this._events || !this._events[type])\n return this;\n\n list = this._events[type];\n length = list.length;\n position = -1;\n\n if (list === listener ||\n (isFunction(list.listener) && list.listener === listener)) {\n delete this._events[type];\n if (this._events.removeListener)\n this.emit('removeListener', type, listener);\n\n } else if (isObject(list)) {\n for (i = length; i-- > 0;) {\n if (list[i] === listener ||\n (list[i].listener && list[i].listener === listener)) {\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (list.length === 1) {\n list.length = 0;\n delete this._events[type];\n } else {\n list.splice(position, 1);\n }\n\n if (this._events.removeListener)\n this.emit('removeListener', type, listener);\n }\n\n return this;\n};\n\nEventEmitter.prototype.removeAllListeners = function(type) {\n var key, listeners;\n\n if (!this._events)\n return this;\n\n // not listening for removeListener, no need to emit\n if (!this._events.removeListener) {\n if (arguments.length === 0)\n this._events = {};\n else if (this._events[type])\n delete this._events[type];\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n for (key in this._events) {\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = {};\n return this;\n }\n\n listeners = this._events[type];\n\n if (isFunction(listeners)) {\n this.removeListener(type, listeners);\n } else if (listeners) {\n // LIFO order\n while (listeners.length)\n this.removeListener(type, listeners[listeners.length - 1]);\n }\n delete this._events[type];\n\n return this;\n};\n\nEventEmitter.prototype.listeners = function(type) {\n var ret;\n if (!this._events || !this._events[type])\n ret = [];\n else if (isFunction(this._events[type]))\n ret = [this._events[type]];\n else\n ret = this._events[type].slice();\n return ret;\n};\n\nEventEmitter.prototype.listenerCount = function(type) {\n if (this._events) {\n var evlistener = this._events[type];\n\n if (isFunction(evlistener))\n return 1;\n else if (evlistener)\n return evlistener.length;\n }\n return 0;\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n return emitter.listenerCount(type);\n};\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// (webpack)/~/node-libs-browser/~/events/events.js\n// module id = 62\n// module chunks = 0","/* eslint default-case: 0 */\n/* eslint guard-for-in: 0 */\nimport React, { Component, PropTypes } from 'react';\nimport classSet from 'classnames';\nimport Const from './Const';\nimport Util from './util';\nimport DateFilter from './filters/Date';\nimport TextFilter from './filters/Text';\nimport RegexFilter from './filters/Regex';\nimport SelectFilter from './filters/Select';\nimport NumberFilter from './filters/Number';\n\nclass TableHeaderColumn extends Component {\n\n constructor(props) {\n super(props);\n this.handleFilter = this.handleFilter.bind(this);\n }\n\n componentWillReceiveProps(nextProps) {\n if (nextProps.reset) {\n this.cleanFiltered();\n }\n }\n\n handleColumnClick = () => {\n if (this.props.isOnlyHead || !this.props.dataSort) return;\n const order = this.props.sort === Const.SORT_DESC ? Const.SORT_ASC : Const.SORT_DESC;\n this.props.onSort(order, this.props.dataField);\n }\n\n handleFilter(value, type) {\n const { filter } = this.props;\n filter.emitter.handleFilter(this.props.dataField, value, type, filter);\n }\n\n getFilters() {\n const { headerText, children } = this.props;\n switch (this.props.filter.type) {\n case Const.FILTER_TYPE.TEXT: {\n return (\n \n );\n }\n case Const.FILTER_TYPE.REGEX: {\n return (\n \n );\n }\n case Const.FILTER_TYPE.SELECT: {\n return (\n \n );\n }\n case Const.FILTER_TYPE.NUMBER: {\n return (\n \n );\n }\n case Const.FILTER_TYPE.DATE: {\n return (\n \n );\n }\n case Const.FILTER_TYPE.CUSTOM: {\n const elm = this.props.filter.getElement(this.handleFilter,\n this.props.filter.customFilterParameters);\n\n return React.cloneElement(elm, { ref: 'customFilter' });\n }\n }\n }\n\n componentDidMount() {\n this.refs['header-col'].setAttribute('data-field', this.props.dataField);\n }\n\n render() {\n let defaultCaret;\n let sortCaret;\n const {\n headerText,\n dataAlign,\n dataField,\n headerAlign,\n headerTitle,\n hidden,\n sort,\n dataSort,\n sortIndicator,\n children,\n caretRender,\n className,\n isOnlyHead,\n thStyle: style\n } = this.props;\n const thStyle = {\n textAlign: headerAlign || dataAlign,\n display: hidden ? 'none' : null,\n ...style\n };\n if (!isOnlyHead) {\n if (sortIndicator) {\n defaultCaret = (!dataSort) ? null : (\n \n \n \n \n \n \n \n \n );\n }\n sortCaret = sort ? Util.renderReactSortCaret(sort) : defaultCaret;\n if (caretRender) {\n sortCaret = caretRender(sort, dataField);\n }\n }\n\n const classes = classSet(\n typeof className === 'function' ? className() : className,\n !isOnlyHead && dataSort ? 'sort-column' : '');\n\n const attr = {};\n if (headerTitle) {\n if (typeof children === 'string' && !headerText) {\n attr.title = children;\n } else {\n attr.title = headerText;\n }\n }\n return (\n \n { children }{ sortCaret }\n e.stopPropagation() }>\n { this.props.filter && !isOnlyHead ? this.getFilters() : null }\n \n | \n );\n }\n\n cleanFiltered() {\n if (this.props.filter === undefined) {\n return;\n }\n\n switch (this.props.filter.type) {\n case Const.FILTER_TYPE.TEXT: {\n this.refs.textFilter.cleanFiltered();\n break;\n }\n case Const.FILTER_TYPE.REGEX: {\n this.refs.regexFilter.cleanFiltered();\n break;\n }\n case Const.FILTER_TYPE.SELECT: {\n this.refs.selectFilter.cleanFiltered();\n break;\n }\n case Const.FILTER_TYPE.NUMBER: {\n this.refs.numberFilter.cleanFiltered();\n break;\n }\n case Const.FILTER_TYPE.DATE: {\n this.refs.dateFilter.cleanFiltered();\n break;\n }\n case Const.FILTER_TYPE.CUSTOM: {\n this.refs.customFilter.cleanFiltered();\n break;\n }\n }\n }\n\n applyFilter(val) {\n if (this.props.filter === undefined) return;\n switch (this.props.filter.type) {\n case Const.FILTER_TYPE.TEXT: {\n this.refs.textFilter.applyFilter(val);\n break;\n }\n case Const.FILTER_TYPE.REGEX: {\n this.refs.regexFilter.applyFilter(val);\n break;\n }\n case Const.FILTER_TYPE.SELECT: {\n this.refs.selectFilter.applyFilter(val);\n break;\n }\n case Const.FILTER_TYPE.NUMBER: {\n this.refs.numberFilter.applyFilter(val);\n break;\n }\n case Const.FILTER_TYPE.DATE: {\n this.refs.dateFilter.applyFilter(val);\n break;\n }\n }\n }\n}\n\nconst filterTypeArray = [];\nfor (const key in Const.FILTER_TYPE) {\n filterTypeArray.push(Const.FILTER_TYPE[key]);\n}\n\nTableHeaderColumn.propTypes = {\n dataField: PropTypes.string,\n dataAlign: PropTypes.string,\n headerAlign: PropTypes.string,\n headerTitle: PropTypes.bool,\n headerText: PropTypes.string,\n dataSort: PropTypes.bool,\n onSort: PropTypes.func,\n dataFormat: PropTypes.func,\n csvFormat: PropTypes.func,\n csvHeader: PropTypes.string,\n isKey: PropTypes.bool,\n editable: PropTypes.any,\n hidden: PropTypes.bool,\n hiddenOnInsert: PropTypes.bool,\n searchable: PropTypes.bool,\n className: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.func\n ]),\n width: PropTypes.string,\n sortFunc: PropTypes.func,\n sortFuncExtraData: PropTypes.any,\n columnClassName: PropTypes.any,\n editColumnClassName: PropTypes.any,\n invalidEditColumnClassName: PropTypes.any,\n columnTitle: PropTypes.bool,\n filterFormatted: PropTypes.bool,\n filterValue: PropTypes.func,\n sort: PropTypes.string,\n caretRender: PropTypes.func,\n formatExtraData: PropTypes.any,\n csvFormatExtraData: PropTypes.any,\n filter: PropTypes.shape({\n type: PropTypes.oneOf(filterTypeArray),\n delay: PropTypes.number,\n options: PropTypes.oneOfType([\n PropTypes.object, // for SelectFilter\n PropTypes.arrayOf(PropTypes.number) // for NumberFilter\n ]),\n numberComparators: PropTypes.arrayOf(PropTypes.string),\n emitter: PropTypes.object,\n placeholder: PropTypes.string,\n getElement: PropTypes.func,\n customFilterParameters: PropTypes.object,\n condition: PropTypes.oneOf([ Const.FILTER_COND_EQ, Const.FILTER_COND_LIKE ])\n }),\n sortIndicator: PropTypes.bool,\n export: PropTypes.bool,\n expandable: PropTypes.bool,\n tdAttr: PropTypes.object,\n tdStyle: PropTypes.object,\n thStyle: PropTypes.object,\n keyValidator: PropTypes.bool\n};\n\nTableHeaderColumn.defaultProps = {\n dataAlign: 'left',\n headerAlign: undefined,\n headerTitle: true,\n dataSort: false,\n dataFormat: undefined,\n csvFormat: undefined,\n csvHeader: undefined,\n isKey: false,\n editable: true,\n onSort: undefined,\n hidden: false,\n hiddenOnInsert: false,\n searchable: true,\n className: '',\n columnTitle: false,\n width: null,\n sortFunc: undefined,\n columnClassName: '',\n editColumnClassName: '',\n invalidEditColumnClassName: '',\n filterFormatted: false,\n filterValue: undefined,\n sort: undefined,\n formatExtraData: undefined,\n sortFuncExtraData: undefined,\n filter: undefined,\n sortIndicator: true,\n expandable: true,\n tdAttr: undefined,\n tdStyle: undefined,\n thStyle: undefined,\n keyValidator: false\n};\n\nexport default TableHeaderColumn;\n\n\n\n// WEBPACK FOOTER //\n// src/TableHeaderColumn.js","/* eslint quotes: 0 */\n/* eslint max-len: 0 */\nimport React, { Component, PropTypes } from 'react';\nimport Const from '../Const';\n\nconst legalComparators = [ '=', '>', '>=', '<', '<=', '!=' ];\n\nfunction dateParser(d) {\n return `${d.getFullYear()}-${(\"0\" + (d.getMonth() + 1)).slice(-2)}-${(\"0\" + d.getDate()).slice(-2)}`;\n}\n\nclass DateFilter extends Component {\n constructor(props) {\n super(props);\n this.dateComparators = this.props.dateComparators || legalComparators;\n this.filter = this.filter.bind(this);\n this.onChangeComparator = this.onChangeComparator.bind(this);\n }\n\n setDefaultDate() {\n let defaultDate = '';\n const { defaultValue } = this.props;\n if (defaultValue && defaultValue.date) {\n // Set the appropriate format for the input type=date, i.e. \"YYYY-MM-DD\"\n defaultDate = dateParser(new Date(defaultValue.date));\n }\n return defaultDate;\n }\n\n onChangeComparator(event) {\n let date = this.refs.inputDate.value;\n const comparator = event.target.value;\n if (date === '') {\n return;\n }\n date = new Date(date);\n this.props.filterHandler({ date, comparator }, Const.FILTER_TYPE.DATE);\n }\n\n getComparatorOptions() {\n const optionTags = [];\n optionTags.push();\n for (let i = 0; i < this.dateComparators.length; i++) {\n optionTags.push(\n \n );\n }\n return optionTags;\n }\n\n filter(event) {\n const comparator = this.refs.dateFilterComparator.value;\n const dateValue = event.target.value;\n if (dateValue) {\n this.props.filterHandler({ date: new Date(dateValue), comparator }, Const.FILTER_TYPE.DATE);\n } else {\n this.props.filterHandler(null, Const.FILTER_TYPE.DATE);\n }\n }\n\n cleanFiltered() {\n const value = this.setDefaultDate();\n const comparator = (this.props.defaultValue) ? this.props.defaultValue.comparator : '';\n this.setState({ isPlaceholderSelected: (value === '') });\n this.refs.dateFilterComparator.value = comparator;\n this.refs.inputDate.value = value;\n this.props.filterHandler({ date: new Date(value), comparator }, Const.FILTER_TYPE.DATE);\n }\n\n applyFilter(filterDateObj) {\n const { date, comparator } = filterDateObj;\n this.setState({ isPlaceholderSelected: (date === '') });\n this.refs.dateFilterComparator.value = comparator;\n this.refs.inputDate.value = dateParser(date);\n this.props.filterHandler({ date, comparator }, Const.FILTER_TYPE.DATE);\n }\n\n componentDidMount() {\n const comparator = this.refs.dateFilterComparator.value;\n const dateValue = this.refs.inputDate.value;\n if (comparator && dateValue) {\n this.props.filterHandler({ date: new Date(dateValue), comparator }, Const.FILTER_TYPE.DATE);\n }\n }\n\n render() {\n const { defaultValue } = this.props;\n return (\n \n \n \n
\n );\n }\n}\n\nDateFilter.propTypes = {\n filterHandler: PropTypes.func.isRequired,\n defaultValue: PropTypes.shape({\n date: PropTypes.object,\n comparator: PropTypes.oneOf(legalComparators)\n }),\n /* eslint consistent-return: 0 */\n dateComparators: function(props, propName) {\n if (!props[propName]) {\n return;\n }\n for (let i = 0; i < props[propName].length; i++) {\n let comparatorIsValid = false;\n for (let j = 0; j < legalComparators.length; j++) {\n if (legalComparators[j] === props[propName][i]) {\n comparatorIsValid = true;\n break;\n }\n }\n if (!comparatorIsValid) {\n return new Error(`Date comparator provided is not supported.\n Use only ${legalComparators}`);\n }\n }\n },\n columnName: PropTypes.string\n};\n\nexport default DateFilter;\n\n\n\n// WEBPACK FOOTER //\n// src/filters/Date.js","import React, { Component, PropTypes } from 'react';\nimport Const from '../Const';\n\nclass TextFilter extends Component {\n constructor(props) {\n super(props);\n this.filter = this.filter.bind(this);\n this.timeout = null;\n }\n\n filter(event) {\n if (this.timeout) {\n clearTimeout(this.timeout);\n }\n const filterValue = event.target.value;\n this.timeout = setTimeout(() => {\n this.props.filterHandler(filterValue, Const.FILTER_TYPE.TEXT);\n }, this.props.delay);\n }\n\n cleanFiltered() {\n const value = this.props.defaultValue ? this.props.defaultValue : '';\n this.refs.inputText.value = value;\n this.props.filterHandler(value, Const.FILTER_TYPE.TEXT);\n }\n\n applyFilter(filterText) {\n this.refs.inputText.value = filterText;\n this.props.filterHandler(filterText, Const.FILTER_TYPE.TEXT);\n }\n\n componentDidMount() {\n const defaultValue = this.refs.inputText.value;\n if (defaultValue) {\n this.props.filterHandler(defaultValue, Const.FILTER_TYPE.TEXT);\n }\n }\n\n componentWillUnmount() {\n clearTimeout(this.timeout);\n }\n\n render() {\n const { placeholder, columnName, defaultValue } = this.props;\n return (\n \n );\n }\n}\n\nTextFilter.propTypes = {\n filterHandler: PropTypes.func.isRequired,\n defaultValue: PropTypes.string,\n delay: PropTypes.number,\n placeholder: PropTypes.string,\n columnName: PropTypes.string\n};\n\nTextFilter.defaultProps = {\n delay: Const.FILTER_DELAY\n};\n\nexport default TextFilter;\n\n\n\n// WEBPACK FOOTER //\n// src/filters/Text.js","import React, { Component, PropTypes } from 'react';\nimport Const from '../Const';\n\nclass RegexFilter extends Component {\n constructor(props) {\n super(props);\n this.filter = this.filter.bind(this);\n this.timeout = null;\n }\n\n filter(event) {\n if (this.timeout) {\n clearTimeout(this.timeout);\n }\n const filterValue = event.target.value;\n this.timeout = setTimeout(() => {\n this.props.filterHandler(filterValue, Const.FILTER_TYPE.REGEX);\n }, this.props.delay);\n }\n\n cleanFiltered() {\n const value = this.props.defaultValue ? this.props.defaultValue : '';\n this.refs.inputText.value = value;\n this.props.filterHandler(value, Const.FILTER_TYPE.TEXT);\n }\n\n applyFilter(filterRegx) {\n this.refs.inputText.value = filterRegx;\n this.props.filterHandler(filterRegx, Const.FILTER_TYPE.REGEX);\n }\n\n componentDidMount() {\n const value = this.refs.inputText.value;\n if (value) {\n this.props.filterHandler(value, Const.FILTER_TYPE.REGEX);\n }\n }\n\n componentWillUnmount() {\n clearTimeout(this.timeout);\n }\n\n render() {\n const { defaultValue, placeholder, columnName } = this.props;\n return (\n \n );\n }\n}\n\nRegexFilter.propTypes = {\n filterHandler: PropTypes.func.isRequired,\n defaultValue: PropTypes.string,\n delay: PropTypes.number,\n placeholder: PropTypes.string,\n columnName: PropTypes.string\n};\n\nRegexFilter.defaultProps = {\n delay: Const.FILTER_DELAY\n};\n\nexport default RegexFilter;\n\n\n\n// WEBPACK FOOTER //\n// src/filters/Regex.js","import React, { Component, PropTypes } from 'react';\nimport classSet from 'classnames';\nimport Const from '../Const';\n\nclass SelectFilter extends Component {\n constructor(props) {\n super(props);\n this.filter = this.filter.bind(this);\n this.state = {\n isPlaceholderSelected: (this.props.defaultValue === undefined ||\n !this.props.options.hasOwnProperty(this.props.defaultValue))\n };\n }\n\n componentWillReceiveProps(nextProps) {\n const isPlaceholderSelected = (nextProps.defaultValue === undefined ||\n !nextProps.options.hasOwnProperty(nextProps.defaultValue));\n this.setState({\n isPlaceholderSelected\n });\n }\n\n componentDidUpdate(prevProps) {\n let needFilter = false;\n if (this.props.defaultValue !== prevProps.defaultValue) {\n needFilter = true;\n } else if (this.props.options !== prevProps.options) {\n needFilter = true;\n }\n if (needFilter) {\n const value = this.refs.selectInput.value;\n if (value) {\n this.props.filterHandler(value, Const.FILTER_TYPE.SELECT);\n }\n }\n }\n\n filter(event) {\n const { value } = event.target;\n this.setState({ isPlaceholderSelected: (value === '') });\n this.props.filterHandler(value, Const.FILTER_TYPE.SELECT);\n }\n\n cleanFiltered() {\n const value = (this.props.defaultValue !== undefined) ? this.props.defaultValue : '';\n this.setState({ isPlaceholderSelected: (value === '') });\n this.refs.selectInput.value = value;\n this.props.filterHandler(value, Const.FILTER_TYPE.SELECT);\n }\n\n applyFilter(filterOption) {\n filterOption = filterOption + '';\n this.setState({ isPlaceholderSelected: (filterOption === '') });\n this.refs.selectInput.value = filterOption;\n this.props.filterHandler(filterOption, Const.FILTER_TYPE.SELECT);\n }\n\n getOptions() {\n const optionTags = [];\n const { options, placeholder, columnName, selectText } = this.props;\n const selectTextValue = (selectText !== undefined) ? selectText : 'Select';\n optionTags.push((\n \n ));\n Object.keys(options).map(key => {\n optionTags.push();\n });\n return optionTags;\n }\n\n componentDidMount() {\n const value = this.refs.selectInput.value;\n if (value) {\n this.props.filterHandler(value, Const.FILTER_TYPE.SELECT);\n }\n }\n\n render() {\n const selectClass = classSet('filter', 'select-filter', 'form-control',\n { 'placeholder-selected': this.state.isPlaceholderSelected });\n\n return (\n \n );\n }\n}\n\nSelectFilter.propTypes = {\n filterHandler: PropTypes.func.isRequired,\n options: PropTypes.object.isRequired,\n placeholder: PropTypes.string,\n columnName: PropTypes.string\n};\n\nexport default SelectFilter;\n\n\n\n// WEBPACK FOOTER //\n// src/filters/Select.js","import React, { Component, PropTypes } from 'react';\nimport classSet from 'classnames';\nimport Const from '../Const';\n\nconst legalComparators = [ '=', '>', '>=', '<', '<=', '!=' ];\n\nclass NumberFilter extends Component {\n constructor(props) {\n super(props);\n this.numberComparators = this.props.numberComparators || legalComparators;\n this.timeout = null;\n this.state = {\n isPlaceholderSelected: (this.props.defaultValue === undefined ||\n this.props.defaultValue.number === undefined ||\n (this.props.options &&\n this.props.options.indexOf(this.props.defaultValue.number) === -1))\n };\n this.onChangeNumber = this.onChangeNumber.bind(this);\n this.onChangeNumberSet = this.onChangeNumberSet.bind(this);\n this.onChangeComparator = this.onChangeComparator.bind(this);\n }\n\n onChangeNumber(event) {\n const comparator = this.refs.numberFilterComparator.value;\n if (comparator === '') {\n return;\n }\n if (this.timeout) {\n clearTimeout(this.timeout);\n }\n const filterValue = event.target.value;\n this.timeout = setTimeout(() => {\n this.props.filterHandler({ number: filterValue, comparator }, Const.FILTER_TYPE.NUMBER);\n }, this.props.delay);\n }\n\n onChangeNumberSet(event) {\n const comparator = this.refs.numberFilterComparator.value;\n const { value } = event.target;\n this.setState({ isPlaceholderSelected: (value === '') });\n if (comparator === '') {\n return;\n }\n this.props.filterHandler({ number: value, comparator }, Const.FILTER_TYPE.NUMBER);\n }\n\n onChangeComparator(event) {\n const value = this.refs.numberFilter.value;\n const comparator = event.target.value;\n if (value === '') {\n return;\n }\n this.props.filterHandler({ number: value, comparator }, Const.FILTER_TYPE.NUMBER);\n }\n\n cleanFiltered() {\n const value = (this.props.defaultValue) ? this.props.defaultValue.number : '';\n const comparator = (this.props.defaultValue) ? this.props.defaultValue.comparator : '';\n this.setState({ isPlaceholderSelected: (value === '') });\n this.refs.numberFilterComparator.value = comparator;\n this.refs.numberFilter.value = value;\n this.props.filterHandler({ number: value, comparator }, Const.FILTER_TYPE.NUMBER);\n }\n\n applyFilter(filterObj) {\n const { number, comparator } = filterObj;\n this.setState({ isPlaceholderSelected: (number === '') });\n this.refs.numberFilterComparator.value = comparator;\n this.refs.numberFilter.value = number;\n this.props.filterHandler({ number, comparator }, Const.FILTER_TYPE.NUMBER);\n }\n\n getComparatorOptions() {\n const optionTags = [];\n optionTags.push();\n for (let i = 0; i < this.numberComparators.length; i++) {\n optionTags.push(\n \n );\n }\n return optionTags;\n }\n\n getNumberOptions() {\n const optionTags = [];\n const { options } = this.props;\n\n optionTags.push(\n \n );\n for (let i = 0; i < options.length; i++) {\n optionTags.push();\n }\n return optionTags;\n }\n\n componentDidMount() {\n const comparator = this.refs.numberFilterComparator.value;\n const number = this.refs.numberFilter.value;\n if (comparator && number) {\n this.props.filterHandler({ number, comparator }, Const.FILTER_TYPE.NUMBER);\n }\n }\n\n componentWillUnmount() {\n clearTimeout(this.timeout);\n }\n\n render() {\n const selectClass = classSet(\n 'select-filter', 'number-filter-input', 'form-control',\n { 'placeholder-selected': this.state.isPlaceholderSelected });\n\n return (\n \n \n {\n (this.props.options) ?\n :\n \n }\n
\n );\n }\n}\n\nNumberFilter.propTypes = {\n filterHandler: PropTypes.func.isRequired,\n options: PropTypes.arrayOf(PropTypes.number),\n defaultValue: PropTypes.shape({\n number: PropTypes.number,\n comparator: PropTypes.oneOf(legalComparators)\n }),\n delay: PropTypes.number,\n /* eslint consistent-return: 0 */\n numberComparators: function(props, propName) {\n if (!props[propName]) {\n return;\n }\n for (let i = 0; i < props[propName].length; i++) {\n let comparatorIsValid = false;\n for (let j = 0; j < legalComparators.length; j++) {\n if (legalComparators[j] === props[propName][i]) {\n comparatorIsValid = true;\n break;\n }\n }\n if (!comparatorIsValid) {\n return new Error(`Number comparator provided is not supported.\n Use only ${legalComparators}`);\n }\n }\n },\n placeholder: PropTypes.string,\n columnName: PropTypes.string\n};\n\nNumberFilter.defaultProps = {\n delay: Const.FILTER_DELAY\n};\n\nexport default NumberFilter;\n\n\n\n// WEBPACK FOOTER //\n// src/filters/Number.js","import React, { Component, PropTypes } from 'react';\n\nclass ButtonGroup extends Component {\n render() {\n const {\n className,\n sizeClass,\n children,\n ...rest\n } = this.props;\n return (\n \n { children }\n
\n );\n }\n}\n\nButtonGroup.propTypes = {\n sizeClass: PropTypes.string,\n className: PropTypes.string\n};\nButtonGroup.defaultProps = {\n sizeClass: 'btn-group-sm',\n className: ''\n};\n\nexport default ButtonGroup;\n\n\n\n// WEBPACK FOOTER //\n// src/toolbar/ButtonGroup.js"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACtCA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;ACxCA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;AAAA;AACA;;;;;;;;;AAfA;AACA;AACA;AACA;AAaA;;;AAEA;AAAA;AACA;AADA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AARA;AA1BA;AAoCA;AACA;;;AACA;AAAA;AACA;AADA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAPA;AASA;;;AAEA;AACA;AADA;AAAA;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAzBA;AA2BA;AACA;AACA;;;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AANA;AAQA;;;AAEA;AACA;AADA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAJA;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAJA;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AADA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAFA;AAIA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;AAOA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;AAQA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AAFA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAlBA;AAAA;AACA;AAmBA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AArBA;AAuBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA9DA;AAgEA;AACA;AACA;AAtEA;AAyEA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AAFA;AAIA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAFA;AAIA;;;AAEA;AAAA;AACA;AAAA;AACA;AACA;AACA;;;AAEA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAFA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AADA;AAGA;;;AAEA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AAKA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AAFA;AAAA;AAAA;AAAA;AACA;AAGA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AADA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AAKA;;;AAEA;AACA;AACA;AACA;AAHA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAFA;AAIA;AACA;;;AAEA;AAAA;AAAA;AAAA;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAFA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAFA;AACA;AAIA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAFA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAJA;AAMA;AACA;AACA;AACA;AACA;AACA;AAHA;AAKA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAFA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAFA;AAIA;;;AAEA;AACA;AACA;AAFA;AAAA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAPA;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AALA;AAAA;AAAA;AACA;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAFA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAFA;AAIA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AANA;AACA;AAOA;AACA;AAEA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA1BA;AA6BA;AACA;AACA;;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAEA;AAQA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAbA;AAeA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AANA;AAQA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAvCA;AA0CA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AAAA;AACA;AAEA;AACA;AAEA;AACA;AACA;AACA;AAGA;AAEA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AAHA;AACA;AACA;AAIA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AAKA;AACA;AACA;AACA;AACA;AACA;AAFA;AAIA;AACA;AACA;AACA;AACA;AACA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAjBA;AAmBA;AACA;AACA;AACA;AACA;AACA;AALA;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA7EA;AA+EA;AACA;AADA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAJA;AAjJA;AAwJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAZA;AAcA;AACA;AACA;AACA;AACA;AACA;AALA;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAtEA;AAwEA;AACA;AADA;AAGA;AACA;AACA;AAvIA;AACA;AAyIA;;;;;;;;;AA7/CA;AACA;;;;;;;;;;ACjBA;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AANA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAvDA;AACA;AAyDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AApEA;AACA;;;;;;;;;;;;;;;;;;ACDA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;;;;;;;;;;;AACA;;;;;;;;;;;AACA;AAAA;AAAA;;;AACA;AAAA;AAAA;;;AACA;AACA;AACA;;;AACA;AACA;AAEA;AACA;AACA;AAEA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AAwEA;;;;;;;;;AAtEA;AACA;AAIA;AACA;AACA;AAFA;AACA;AAIA;AAAA;AAAA;AACA;AAGA;AACA;AACA;AACA;AACA;AAGA;AAAA;AAAA;AAAA;AAMA;AAAA;AAAA;AAAA;AA3BA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AA6BA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AADA;AAIA;AACA;AACA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AACA;AADA;AAFA;AADA;AASA;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAHA;AAMA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAHA;AAMA;AACA;AACA;AACA;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAnBA;AACA;AAqBA;;;;;;;;;AAzJA;AACA;AAeA;AACA;AAWA;AACA;;;;;;;;;;ACnCA;;;;;;;;;;;;;;ACAA;AACA;;;;;;;;;;;AACA;;;;;;;;;;;AAEA;AACA;AACA;AAAA;AACA;AACA;AAFA;AAKA;;;;;;AAEA;AACA;AACA;AAFA;AAIA;;;;;;;;;AAfA;AACA;;;;;;;;;;;;;;;;;;;;;;ACHA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;;;;;;;;;AACA;AACA;AACA;AACA;AACA;;;AACA;AAAA;AACA;AADA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AACA;AACA;AADA;AAFA;AAKA;AACA;;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAJA;AACA;AAMA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAGA;AAGA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAFA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAlBA;AAqBA;AACA;AACA;AACA;AACA;AACA;AAEA;AAKA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AAGA;AAnBA;AACA;AAqBA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAPA;AAUA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAEA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAHA;AADA;AAQA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AACA;AADA;AAFA;AAHA;AAWA;;;AAEA;AACA;AADA;AAAA;AAAA;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAFA;AAIA;AACA;AACA;AACA;AACA;AAGA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AADA;AAAA;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AAEA;AAIA;AACA;;;AAEA;AAAA;AACA;AADA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAUA;AACA;AACA;AACA;AAGA;;AAEA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAEA;AACA;AATA;AAUA;AACA;;;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AATA;AAAA;AAAA;AACA;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAFA;AADA;AACA;AAMA;AAEA;AAEA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AADA;AACA;AADA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AAEA;AAAA;AAAA;AARA;AAYA;;;AAEA;AAAA;AACA;AADA;AACA;AAAA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAAA;AAAA;AACA;AAHA;AAMA;;;AAEA;AACA;AAEA;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA5BA;AA8BA;;;;;;;;;AA3eA;AACA;AAGA;AACA;;;;;;;;;;;;;;;;ACbA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;;;AACA;AACA;AACA;AACA;AADA;AAGA;AACA;AAAA;AACA;AADA;AAIA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AAFA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAFA;AAIA;AACA;AACA;AACA;AACA;AADA;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAGA;AACA;AAGA;AARA;AAWA;AAvGA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACLA;AACA;;;AAAA;AACA;;;;;;;;;AAHA;AACA;AACA;AAEA;;;AAEA;AAAA;AACA;AADA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AACA;AAFA;AAGA;AACA;;;AACA;AAAA;AACA;AAAA;AACA;AACA;AAHA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;;;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AAGA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AADA;AAAA;AAAA;AAAA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAFA;AACA;AAOA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAJA;AAMA;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAXA;AAaA;AACA;AACA;AAFA;AAIA;;;;;;;;;AAhHA;AACA;;;;;;;;;;;;;;;;;;;;;;ACLA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;;;;;;;;;AACA;;;AAEA;AAAA;AACA;AADA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAEA;AACA;AACA;AACA;;;AADA;AAAA;AACA;AACA;AACA;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;;;AAEA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAgBA;AACA;AACA;AAFA;AACA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAIA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAFA;AAIA;AAJA;AAOA;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAfA;AACA;AAiBA;AACA;AACA;AACA;AACA;AACA;AALA;AAOA;;;;;;;;;AAnLA;AACA;;;;;;;;;;;;;;;;;;;;;;ACLA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;AAAA;AACA;;;;;;;;;;;AACA;;;AACA;AAAA;AACA;AADA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AACA;AAFA;AAAA;AAAA;AAAA;AACA;AAGA;AACA;AACA;AAFA;AAJA;AAQA;AACA;;;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;;;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;;;;;AASA;AACA;AARA;AACA;AACA;AACA;AACA;AACA;;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AAFA;AAAA;AAAA;AACA;AAGA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA;AACA;AADA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AASA;AACA;AACA;AACA;AAHA;AAKA;AAfA;AAAA;AAkBA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AADA;AAGA;AAHA;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAJA;AAOA;;;AAEA;AACA;AACA;AACA;AACA;AACA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAOA;AACA;AACA;AACA;AAlBA;AACA;AAqBA;;;;;;;;;AAtOA;AACA;;;;;;;;;;;;;;;;;;;;ACPA;AACA;;;;;AACA;AACA;AAEA;AACA;AACA;AAEA;AAEA;AACA;AACA;AAEA;AACA;AAEA;AAGA;AACA;AAEA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AAIA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAEA;AAPA;AAQA;AACA;AACA;AAAA;AACA;AADA;AAIA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAFA;AAAA;AAMA;AACA;AAAA;AACA;AAAA;AACA;AACA;AAFA;AADA;AApBA;AACA;AADA;AA0BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AAEA;AACA;AAGA;AAAA;AACA;AAGA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;;;;;;;;;AA7GA;AACA;;;;;;;;;;;;;;;;;ACHA;AACA;;;;;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AAHA;AAKA;AACA;AACA;;;;;;;;AAfA;;;;;;;;;ACFA;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC3SA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACxNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACreA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACvDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AClEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC9DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACtEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC7FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACnHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;AClKA;AACA;;;AAAA;AACA;;;;;;;;;AAHA;AACA;AACA;AAEA;;;;;;;;;;;AAEA;AACA;AACA;AACA;AADA;AAGA;AAJA;AASA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AADA;AADA;AAMA;;;;;;AAGA;;;;;;;;;AAtBA;AACA;;;;;;;;;;;;;;;;;;;;ACLA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;;;;;;;;;AACA;;;AAEA;AAAA;AACA;AADA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AACA;AACA;AADA;AAFA;AAKA;AACA;;;AACA;AACA;AACA;;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AADA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AADA;AAGA;;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AADA;AACA;AADA;AACA;AADA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AARA;AACA;AAcA;AACA;AACA;AAAA;AAEA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AADA;AAGA;AAAA;AAAA;AACA;AACA;AAFA;AAJA;AAHA;AAeA;;;AAEA;AAAA;AACA;AAAA;AACA;AACA;AAHA;AAAA;AAAA;AAAA;AAAA;AACA;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AANA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AANA;AADA;AAUA;AACA;AAEA;AACA;AACA;AACA;AACA;AALA;AAQA;AACA;AACA;;;AAEA;AAAA;AACA;AADA;AACA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA;AAEA;AACA;AACA;AACA;AAGA;AAEA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AALA;AAQA;AACA;AAIA;AACA;AAAA;AACA;AADA;AAIA;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AApBA;AACA;AAsBA;AACA;AACA;AAFA;AACA;AAIA;;;;;;;;;AAlTA;AACA;;;;;;;;;;;;;;;;;;ACPA;AACA;;;AAAA;AACA;;;;;;;;;;;AACA;;;AAEA;AAAA;AACA;AADA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAEA;AACA;;;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AAJA;AAMA;AACA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AADA;AAIA;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AANA;AACA;AAQA;;;;;;;;;AAlCA;AACA;;;;;;;;;;;;;;;;;;ACJA;AACA;;;;;;;;;;;AACA;AACA;AACA;;;;;;;;;;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAUA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAFA;AALA;AAUA;AAAA;AAAA;AACA;AADA;AAZA;AAiBA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AARA;AAUA;AACA;AACA;AACA;AACA;AACA;AALA;AACA;AAQA;;;;;;;;;AA1DA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;ACHA;AACA;;;AAAA;AACA;;;AACA;AACA;;;AACA;AACA;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;;;;;;;AAfA;AACA;AAGA;AACA;AACA;AACA;AACA;AAQA;;;AAIA;AAAA;AACA;AADA;AACA;AADA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAqJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA3KA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAJA;AAJA;AAUA;AACA;;;AACA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AACA;AACA;AAGA;;;AAEA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AAIA;;;AAEA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAFA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AAKA;AACA;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;AADA;AAGA;AACA;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;;;AA0BA;AACA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AAAA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAJA;AAMA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAJA;AAOA;AACA;AA3EA;AAAA;AAAA;AAAA;AAAA;AACA;AA4EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AARA;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;AANA;AAXA;AAoBA;AACA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AADA;AAGA;AAAA;AAAA;AACA;AADA;AAJA;AASA;AACA;AACA;AACA;AAAA;AACA;AACA;AAFA;AAKA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AAKA;AACA;AACA;AACA;AAFA;AAIA;AACA;AACA;AADA;AAGA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AALA;AAOA;AACA;AACA;AAAA;AACA;AACA;AAAA;AAAA;AACA;AADA;AAFA;AAOA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AADA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AASA;AACA;AACA;AAOA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAJA;AAOA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AA9aA;AACA;AACA;AA+aA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAjCA;AACA;AAmCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAZA;AACA;AAcA;;;;;;;;;AApeA;AACA;;;;;;;;;;ACjBA;AACA;;;;;;;ACDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACzIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACpNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACjDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC5nBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;ACxDA;AACA;;;AACA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;;;;;;;AAPA;AACA;AAOA;AACA;AACA;;;;;;;;;;;;;;AAEA;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAEA;AACA;AAGA;AAIA;AAEA;AACA;AACA;AAhBA;AAoBA;;;;;;AAjFA;;;AAmFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AARA;AACA;AAUA;;;;;;;;AAhGA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;ACXA;AACA;;;;;;;;;;;AACA;;;;;;;;;;;;;;AAEA;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAMA;AACA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AAHA;AACA;AAMA;AACA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAFA;AACA;AAKA;AACA;AAAA;AACA;AADA;AAIA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AALA;AAOA;AACA;AACA;AACA;AACA;AACA;AALA;AACA;AAOA;;;;;;;;;AAtDA;AACA;;;;;;;;;;;;;;;;;;ACHA;AACA;;;AAAA;AACA;;;;;;;;;;;AACA;;;;;;;;;;;;;;AAEA;;;;AAMA;;;;;;;;;AANA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAUA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAHA;AAIA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAHA;AALA;AACA;AAWA;AACA;AAAA;AACA;AADA;AAIA;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAXA;AAaA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AATA;AACA;AAWA;;;;;;;;;AAvEA;AACA;;;;;;;;;;;;;;;;;;ACHA;AACA;;;AACA;AACA;;;;;;;;;AAJA;AACA;AACA;AAGA;;;;;;;;;;;AAEA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AASA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAHA;AAMA;AAxCA;AA4CA;;;;;;AAEA;AACA;AACA;AACA;AAHA;AACA;AAKA;AACA;AACA;AAFA;AACA;AAIA;;;;;;;;;AA1FA;AACA;;;;;;;;;;;;;;;;;;;;ACNA;AACA;;;AAAA;AACA;;;;;;;;;;;;;AACA;AACA;AACA;;;;;;;;;;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AASA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAAA;AACA;AACA;AAFA;AAIA;AAJA;AAOA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AALA;AAOA;AACA;AACA;AACA;AACA;AACA;AALA;AACA;AAOA;;;;;;;;;AAzCA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;ACNA;AACA;;;AAAA;AACA;;;;;;;;;;;;;AACA;AACA;AACA;;;;;;;;;;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AASA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAAA;AACA;AACA;AAFA;AAIA;AAJA;AAOA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AALA;AAOA;AACA;AACA;AACA;AACA;AACA;AALA;AACA;AAOA;;;;;;;;;AAzCA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;ACNA;AACA;;;AAAA;AACA;;;;;;;;;;;;;AACA;AACA;AACA;;;;;;;;;;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AASA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAAA;AACA;AACA;AAFA;AAIA;AAJA;AAOA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AALA;AAOA;AACA;AACA;AACA;AACA;AACA;AALA;AACA;AAOA;;;;;;;;;AAzCA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;ACNA;AACA;;;AAAA;AACA;;;;;;;;;;;;;AACA;AACA;AACA;;;;;;;;;;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAUA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAJA;AAMA;AANA;AASA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AANA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AANA;AACA;AAQA;;;;;;;;;AA9CA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;ACNA;AACA;;;AAAA;AACA;;;;;;;;;;;;;AACA;;;;;;;;;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAOA;AAEA;AACA;AACA;AACA;AACA;AACA;AANA;AASA;;;;;;AAGA;AACA;AACA;AACA;AACA;AAJA;AAMA;AACA;AACA;AACA;AACA;AAJA;AACA;AAMA;;;;;;;;;AA5CA;AACA;;;;;;;;;;;;;;;;;;;;ACJA;AACA;;;;;;;;;;;;;AACA;AACA;AACA;;;;;;;;;;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAQA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AAAA;AACA;AACA;AACA;AAHA;AAKA;AALA;AAQA;;;;;;AAGA;AACA;AACA;AACA;AACA;AAJA;AAMA;AACA;AACA;AACA;AACA;AAJA;AACA;AAMA;;;;;;;;;AAxCA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;ACLA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;;;;;;;;;AACA;;;AAEA;AAAA;AACA;AADA;AACA;AADA;AAAA;AAAA;AACA;AACA;AAFA;AAGA;AACA;;;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAEA;AACA;AACA;AACA;AAHA;AAKA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAFA;AAIA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AAFA;AADA;AAOA;AACA;AACA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AADA;AADA;AADA;AAQA;;;;;;AAEA;AACA;AACA;AACA;AAHA;AAKA;;;;;;;;;AAnEA;AACA;;;;;;;;;;;;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AADA;AACA;;;;;;;AACA;AAEA;AAAA;AACA;AADA;AACA;AADA;AAAA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAFA;AAIA;AACA;AACA;AACA;AACA;AACA;AAFA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAPA;AAQA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAbA;AACA;AAMA;AAAA;AACA;AADA;AAOA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AACA;AAEA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;;;AAEA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAxCA;AA0CA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAGA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAEA;AACA;AAGA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAEA;AACA;AAGA;AACA;AACA;AACA;AACA;AAAA;AACA;AAGA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AA1DA;AA4DA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AAKA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA5BA;AA8BA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AA1BA;AA4BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AAWA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AAAA;AAAA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AACA;AAGA;;;AAEA;AAAA;AACA;AAAA;AACA;AACA;AACA;;;;;;;;;;;;;;AAlrBA;;;;;;;;;;;;;;;ACHA;AACA;;;;;AACA;AACA;AACA;AACA;AARA;AACA;AACA;AACA;AACA;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAfA;AAiBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA1BA;AACA;AAeA;AAAA;AAWA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;;;;;;;;;AA5DA;AACA;AAEA;AACA;AA+CA;AACA;;;;;;;;;;;;AC5DA;;;;;;;;;;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAEA;AAFA;AAAA;AAIA;AACA;AALA;AAAA;AAAA;AASA;AACA;AACA;AAXA;AAAA;AAAA;AAeA;AACA;AACA;AACA;AAlBA;AAoBA;AApBA;AAAA;AAAA;AAAA;AAuBA;AACA;AAAA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AA/BA;AAiCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA7CA;AA+CA;AACA;AACA;AACA;AACA;AACA;AACA;AArDA;AAuDA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAMA;AACA;AACA;AARA;AAAA;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAtHA;AAAA;AAyHA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAQA;AACA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AA5KA;;;;;;;;;ACfA;;;;;;;ACAA;AACA;AACA;;;;;;;;;;;;;;;;;ACFA;AACA;;;AAAA;AACA;;;;;;;;;AACA;;;AACA;AAAA;AACA;AADA;AACA;AACA;AAFA;AAGA;AACA;;;AACA;AACA;AACA;AACA;AACA;AADA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AAlCA;;;;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;AC3SA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;;;;;;;AAXA;AACA;AACA;AACA;AASA;;;AAEA;AAAA;AACA;AADA;AACA;AADA;AAAA;AAAA;AACA;AACA;AAFA;AAGA;AACA;;;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AACA;AACA;;;AAEA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AACA;AAEA;AAEA;AACA;AAAA;AACA;AAEA;AAEA;AACA;AAAA;AACA;AAEA;AAEA;AACA;AAAA;AACA;AAEA;AAEA;AACA;AAAA;AACA;AAEA;AAEA;AACA;AAAA;AACA;AACA;AAEA;AACA;AApCA;AAsCA;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;AAFA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAkBA;AACA;AACA;AAFA;AAKA;AACA;AACA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AADA;AAGA;AAAA;AAAA;AACA;AADA;AAJA;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AANA;AAQA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AADA;AATA;AAcA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAxBA;AA0BA;;;AAEA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AApBA;AAsBA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAFA;AAIA;AACA;AACA;AACA;AACA;AACA;AAZA;AAcA;AACA;AACA;AACA;AACA;AACA;AACA;AArDA;AACA;AAuDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAhCA;AACA;AAkCA;;;;;;;;;AA1SA;AACA;AAyMA;AACA;;;;;;;;;;;;;;;;;;ACrNA;AACA;;;AAAA;AACA;;;;;;;;;AAJA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA;AAAA;AACA;AADA;AACA;AACA;AACA;AACA;AAJA;AAKA;AACA;;;AACA;AACA;AADA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AADA;AAIA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AACA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAJA;AAMA;AACA;AACA;AACA;AACA;AAXA;AAcA;;;;;;AAGA;AACA;AACA;AACA;AACA;AAFA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAzBA;AACA;AA2BA;;;;;;;;;AAlIA;AACA;AACA;AACA;AAGA;AACA;;;;;;;;;;;;;;;;;;ACZA;AACA;;;AAAA;AACA;;;;;;;;;;;AACA;;;AACA;AAAA;AACA;AADA;AACA;AACA;AACA;AAHA;AAIA;AACA;;;AACA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AALA;AACA;AAOA;AACA;AADA;AACA;AAGA;;;;;;;;;AAhEA;AACA;;;;;;;;;;;;;;;;;;ACJA;AACA;;;AAAA;AACA;;;;;;;;;;;AACA;;;AACA;AAAA;AACA;AADA;AACA;AACA;AACA;AAHA;AAIA;AACA;;;AACA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AALA;AACA;AAOA;AACA;AADA;AACA;AAGA;;;;;;;;;AAhEA;AACA;;;;;;;;;;;;;;;;;;ACJA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;;;;;;;;;AACA;;;AACA;AAAA;AACA;AADA;AACA;AACA;AACA;AACA;AADA;AAHA;AAOA;AACA;;;AACA;AACA;AAEA;AACA;AADA;AAGA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AADA;AAAA;AAAA;AAAA;AAAA;AACA;AAEA;AACA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AAEA;AACA;AAAA;AACA;AACA;AACA;AACA;AAJA;AAOA;;;;;;AAGA;AACA;AACA;AACA;AACA;AAJA;AACA;AAMA;;;;;;;;;AA/FA;AACA;;;;;;;;;;;;;;;;;;ACLA;AACA;;;AAAA;AACA;;;AAAA;AACA;;;;;;;;;;;AACA;AACA;AACA;;;AACA;AAAA;AACA;AADA;AACA;AACA;AACA;AACA;AACA;AADA;AAMA;AACA;AACA;AAZA;AAaA;AACA;;;AACA;AAAA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AADA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AADA;AAIA;AACA;AACA;;;AAEA;AACA;AADA;AACA;AACA;AAEA;AACA;AAAA;AACA;AADA;AAIA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA;AACA;AACA;;;AAEA;AACA;AACA;AAGA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAGA;AANA;AASA;AACA;AAAA;AACA;AACA;AACA;AAGA;AANA;AASA;AACA;AACA;AACA;AACA;AAxBA;AA8BA;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AAFA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AA5BA;AACA;AA8BA;AACA;AADA;AACA;AAGA;;;;;;;;;AAtLA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;ACPA;AACA;;;;;;;;;;;;;AACA;;;;;;;;;;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAMA;AACA;AAAA;AACA;AADA;AAIA;;;;;;AAGA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAFA;AACA;AAIA;;;;;;;;;AAzBA;AACA;;;;;;;;;","sourceRoot":""}
\ No newline at end of file
diff --git a/dist/react-bootstrap-table.min.js b/dist/react-bootstrap-table.min.js
index 216f5484a..54f092b3f 100644
--- a/dist/react-bootstrap-table.min.js
+++ b/dist/react-bootstrap-table.min.js
@@ -3,8 +3,8 @@
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
-!function(){"use strict";function o(){for(var e=[],t=0;t1)for(var o=1;o2&&void 0!==arguments[2]?arguments[2]:{},r=null,n=null,s=t.mode===i.default.ROW_SELECT_SINGLE||t.mode===i.default.ROW_SELECT_MULTI;if(s){var l={width:t.columnWidth||"30px",minWidth:t.columnWidth||"30px"};t.hideSelectColumn||(r=a.default.createElement("col",{key:"select-col",style:l}))}if(o.expandColumnVisible){var p={width:o.columnWidth||30,minWidth:o.columnWidth||30};n=a.default.createElement("col",{key:"expand-col",style:p})}var u=e.map(function(e,t){var o={display:e.hidden?"none":null};if(e.width){var r=isNaN(e.width)?e.width:e.width+"px";o.width=r,o.minWidth=r}return a.default.createElement("col",{style:o,key:t,className:e.className})});return a.default.createElement("colgroup",null,o.expandColumnVisible&&o.expandColumnBeforeSelectColumn&&n,r,o.expandColumnVisible&&!o.expandColumnBeforeSelectColumn&&n,u)}};t.default=u;(function(){"undefined"!=typeof __REACT_HOT_LOADER__&&__REACT_HOT_LOADER__.register(u,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/util.js")})()},function(e,t,o){function r(e){return"object"==typeof e&&null!==e&&e.$$typeof===a}var n=o(55),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(r)},function(e,t,o){var r,n,a;!function(o,s){n=[t],r=s,a="function"==typeof r?r.apply(t,n):r,!(void 0!==a&&(e.exports=a))}(this,function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"INSERT":return r(e,t);case"REMOVE":return n(e,t);case"REMOVEALL":return[];default:return e}},s=o(a);e.default=s})},function(e,t,o){var r,n,a;!function(o,s){n=[t],r=s,a="function"==typeof r?r.apply(t,n):r,!(void 0!==a&&(e.exports=a))}(this,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t="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},o=void 0,r={randomId:function(){return Math.random().toString(36).split(".")[1]},returnFirstDefined:function(){for(var e=void 0,t=void 0,o=arguments.length,r=Array(o),n=0;n"+o+"":"",n="\n "+r+"\n "+t+"\n ";a.default.error(n,{position:"top-right",timeout:3500,html:!0})};t.notice=s;(function(){"undefined"!=typeof __REACT_HOT_LOADER__&&__REACT_HOT_LOADER__.register(s,"notice","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/Notification.js")})()},function(e,t,o){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var o=0;o=0||Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,
-configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t1?t-1:0),r=1;r2?r-2:0),a=2;a1)for(var o=1;o2&&void 0!==arguments[2]?arguments[2]:{},r=null,n=null,s=t.mode===i.default.ROW_SELECT_SINGLE||t.mode===i.default.ROW_SELECT_MULTI;if(s){var l={width:t.columnWidth||"30px",minWidth:t.columnWidth||"30px"};t.hideSelectColumn||(r=a.default.createElement("col",{key:"select-col",style:l}))}if(o.expandColumnVisible){var p={width:o.columnWidth||30,minWidth:o.columnWidth||30};n=a.default.createElement("col",{key:"expand-col",style:p})}var u=e.map(function(e,t){var o={display:e.hidden?"none":null};if(e.width){var r=isNaN(e.width)?e.width:e.width+"px";o.width=r,o.minWidth=r}return a.default.createElement("col",{style:o,key:t,className:e.className})});return a.default.createElement("colgroup",null,o.expandColumnVisible&&o.expandColumnBeforeSelectColumn&&n,r,o.expandColumnVisible&&!o.expandColumnBeforeSelectColumn&&n,u)}};t.default=u;(function(){"undefined"!=typeof __REACT_HOT_LOADER__&&__REACT_HOT_LOADER__.register(u,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/util.js")})()},function(e,t,o){function r(e){return"object"==typeof e&&null!==e&&e.$$typeof===a}var n=o(55),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(r)},function(e,t,o){var r,n,a;!function(o,s){n=[t],r=s,a="function"==typeof r?r.apply(t,n):r,!(void 0!==a&&(e.exports=a))}(this,function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"INSERT":return r(e,t);case"REMOVE":return n(e,t);case"REMOVEALL":return[];default:return e}},s=o(a);e.default=s})},function(e,t,o){var r,n,a;!function(o,s){n=[t],r=s,a="function"==typeof r?r.apply(t,n):r,!(void 0!==a&&(e.exports=a))}(this,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t="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},o=void 0,r={randomId:function(){return Math.random().toString(36).split(".")[1]},returnFirstDefined:function(){for(var e=void 0,t=void 0,o=arguments.length,r=Array(o),n=0;n"+o+"":"",n="\n "+r+"\n "+t+"\n ";a.default.error(n,{position:"top-right",timeout:3500,html:!0})};t.notice=s;(function(){"undefined"!=typeof __REACT_HOT_LOADER__&&__REACT_HOT_LOADER__.register(s,"notice","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/Notification.js")})()},function(e,t,o){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var o=0;o=0||Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);
+return o}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t1?t-1:0),r=1;r2?r-2:0),a=2;a=0)&&o(e,!r)}function s(e){return[].slice.call(e.querySelectorAll("*"),0).filter(function(e){return a(e)})}e.exports=s},function(e,t){function o(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}function r(e,t){for(var o=-1,r=Array(e);++o1?o[n-1]:void 0,s=n>2?o[2]:void 0;for(a=e.length>3&&"function"==typeof a?(n--,a):void 0,s&&f(o[0],o[1],s)&&(a=n<3?void 0:a,n=1),t=Object(t);++r-1&&e%1==0&&e-1&&e%1==0&&e<=O}function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function E(e){return!!e&&"object"==typeof e}function g(e){return y(e)?a(e):i(e)}var O=9007199254740991,C="[object Arguments]",P="[object Function]",w="[object GeneratorFunction]",R=/^(?:0|[1-9]\d*)$/,S=Object.prototype,A=S.hasOwnProperty,k=S.toString,x=S.propertyIsEnumerable,D=n(Object.keys,Object),L=Math.max,N=!x.call({valueOf:1},"valueOf"),j=Array.isArray,F=u(function(e,t){if(N||d(t)||y(t))return void p(t,g(t),e);for(var o in t)A.call(t,o)&&s(e,o,t[o])});e.exports=F},function(e,t,o){var r,n,a;!function(s,i){n=[t,o(1),o(4),o(7),o(9),o(8),o(65)],r=i,a="function"==typeof r?r.apply(t,n):r,!(void 0!==a&&(e.exports=a))}(this,function(e,t,o,r,n,a,s){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(e,"__esModule",{value:!0});var c=i(t),f=i(o),d=i(r),h=i(n),_=i(a),y=i(s),b="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},T=function(){function e(e,t){for(var o=0;oo&&(o=Number(e.props.row))}),c.default.Children.map(t,function(e,t){var r=e.props.row?Number(e.props.row):0,n=e.props.rowSpan?Number(e.props.rowSpan):1;if(n+r===o+1)return{name:e.props.dataField,align:e.props.dataAlign,sort:e.props.dataSort,format:e.props.dataFormat,formatExtraData:e.props.formatExtraData,filterFormatted:e.props.filterFormatted,filterValue:e.props.filterValue,editable:e.props.editable,customEditor:e.props.customEditor,hidden:e.props.hidden,hiddenOnInsert:e.props.hiddenOnInsert,searchable:e.props.searchable,className:e.props.columnClassName,editClassName:e.props.editColumnClassName,invalidEditColumnClassName:e.props.invalidEditColumnClassName,columnTitle:e.props.columnTitle,width:e.props.width,text:e.props.headerText||e.props.children,sortFunc:e.props.sortFunc,sortFuncExtraData:e.props.sortFuncExtraData,export:e.props.export,expandable:e.props.expandable,index:t,attrs:e.props.tdAttr,style:e.props.tdStyle}})}},{key:"reset",value:function(){this.store.clean(),this.setState({data:this.getTableData(),currPage:1,expanding:[],sizePerPage:_.default.SIZE_PER_PAGE_LIST[0],selectedRowKeys:this.store.getSelectedRowKeys(),reset:!0})}},{key:"componentWillReceiveProps",value:function(e){this.initTable(e);var t=e.options,o=e.selectRow;this.store.setData(e.data.slice());var r=this.state.currPage;this.props.options.page!==t.page&&(r=t.page);var n=this.state.sizePerPage;if(this.props.options.sizePerPage!==t.sizePerPage&&(n=t.sizePerPage),this.isRemoteDataSource()){var a=e.data.slice();e.pagination&&!this.allowRemote(_.default.REMOTE_PAGE)&&(a=this.store.page(r,n).get()),this.setState({data:a,currPage:r,sizePerPage:n,reset:!1})}else{r>Math.ceil(e.data.length/n)&&(r=1);var s=this.store.getSortInfo(),i=t.sortName,l=t.sortOrder;i&&l?(this.store.setSortInfo(l,i),this.store.sort()):s.length>0&&this.store.sort();var p=this.store.page(r,n).get();this.setState({data:p,currPage:r,sizePerPage:n,reset:!1})}if(this.props.options.expanding!==t.expanding&&this.setState({expanding:t.expanding||[]}),o&&o.selected){var u=o.selected.slice();this.store.setSelectedRowKey(u),this.setState({selectedRowKeys:u,reset:!1})}}},{key:"componentDidMount",value:function(){this._adjustTable(),window.addEventListener("resize",this._adjustTable),this.refs.body.refs.container.addEventListener("scroll",this._scrollHeader),this.props.scrollTop&&this._scrollTop()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this._adjustTable),this.refs.body.refs.container.removeEventListener("scroll",this._scrollHeader),this.filter&&this.filter.removeAllListeners("onFilterChange")}},{key:"componentDidUpdate",value:function(){this._adjustTable(),this._attachCellEditFunc(),this.props.options.afterTableComplete&&this.props.options.afterTableComplete()}},{key:"_attachCellEditFunc",value:function(){var e=this.props.cellEdit;e&&(this.props.cellEdit.__onCompleteEdit__=this.handleEditCell.bind(this),e.mode!==_.default.CELL_EDIT_NONE&&(this.props.selectRow.clickToSelect=!1))}},{key:"isRemoteDataSource",value:function(e){var t=e||this.props,o=t.remote;return o===!0||"function"==typeof o}},{key:"allowRemote",value:function(e,t){var o=t||this.props,r=o.remote;if("function"==typeof r){var n=r(_.default.REMOTE);return n[e]}return r}},{key:"render",value:function(){var e={height:this.props.height,maxHeight:this.props.maxHeight},t=this.getColumnsDescription(this.props),o=this.store.getSortInfo(),r=this.renderPagination(),n=this.renderToolBar(),a=this.renderTableFilter(t),s=this.isSelectAll(),i=this.props.expandColumnOptions;"undefined"==typeof i.expandColumnBeforeSelectColumn&&(i.expandColumnBeforeSelectColumn=!0);var p=S.default.renderColGroup(t,this.props.selectRow,i),u=this.props.options.sortIndicator;"undefined"==typeof this.props.options.sortIndicator&&(u=!0);var f=this.props.options.paginationPosition,h=void 0===f?_.default.PAGINATION_POS_BOTTOM:f,y=h!==_.default.PAGINATION_POS_BOTTOM,T=h!==_.default.PAGINATION_POS_TOP;return c.default.createElement("div",{className:(0,d.default)("react-bs-table-container",this.props.className,this.props.containerClass),style:this.props.containerStyle},n,y?r:null,c.default.createElement("div",{ref:"table",className:(0,d.default)("react-bs-table",this.props.tableContainerClass),style:l({},e,this.props.tableStyle),onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},c.default.createElement(b.default,{ref:"header",colGroups:p,headerContainerClass:this.props.headerContainerClass,tableHeaderClass:this.props.tableHeaderClass,style:this.props.headerStyle,rowSelectType:this.props.selectRow.mode,customComponent:this.props.selectRow.customComponent,hideSelectColumn:this.props.selectRow.hideSelectColumn,sortList:o,sortIndicator:u,onSort:this.handleSort,onSelectAllRow:this.handleSelectAllRow,bordered:this.props.bordered,condensed:this.props.condensed,isFiltered:!!this.filter,isSelectAll:s,reset:this.state.reset,expandColumnVisible:i.expandColumnVisible,expandColumnComponent:i.expandColumnComponent,expandColumnBeforeSelectColumn:i.expandColumnBeforeSelectColumn},this.props.children),c.default.createElement(m.default,{ref:"body",bodyContainerClass:this.props.bodyContainerClass,tableBodyClass:this.props.tableBodyClass,style:l({},e,this.props.bodyStyle),data:this.state.data,expandComponent:this.props.expandComponent,expandableRow:this.props.expandableRow,expandRowBgColor:this.props.options.expandRowBgColor,expandBy:this.props.options.expandBy||_.default.EXPAND_BY_ROW,columns:t,trClassName:this.props.trClassName,striped:this.props.striped,bordered:this.props.bordered,hover:this.props.hover,keyField:this.store.getKeyField(),condensed:this.props.condensed,selectRow:this.props.selectRow,expandColumnOptions:this.props.expandColumnOptions,cellEdit:this.props.cellEdit,selectedRowKeys:this.state.selectedRowKeys,onRowClick:this.handleRowClick,onRowDoubleClick:this.handleRowDoubleClick,onRowMouseOver:this.handleRowMouseOver,onRowMouseOut:this.handleRowMouseOut,onSelectRow:this.handleSelectRow,noDataText:this.props.options.noDataText,withoutNoDataText:this.props.options.withoutNoDataText,expanding:this.state.expanding,onExpand:this.handleExpandRow,beforeShowError:this.props.options.beforeShowError,keyBoardNav:this.props.keyBoardNav,onNavigateCell:this.handleNavigateCell,x:this.state.x,y:this.state.y})),a,T?r:null,c.default.createElement(L.default,{stack:{limit:3}}))}},{key:"isSelectAll",value:function(){if(this.store.isEmpty())return!1;var e=this.props.selectRow.unselectable,t=this.store.getSelectedRowKeys(),o=this.store.getAllRowkey();if(0===t.length)return!1;var r=0,n=0,a=0;return t.forEach(function(t){o.indexOf(t)!==-1?r++:n++,e&&e.indexOf(t)!==-1&&a++}),n!==t.length&&(r===o.length||!(e&&r<=a&&a===e.length)&&"indeterminate")}},{key:"cleanSelected",value:function(){this.store.setSelectedRowKey([]),this.setState({selectedRowKeys:[],reset:!1})}},{key:"__handleSort__REACT_HOT_LOADER__",value:function(e,t){if(this.props.options.onSortChange&&this.props.options.onSortChange(t,e,this.props),this.store.setSortInfo(e,t),!this.allowRemote(_.default.REMOTE_SORT)){var o=this.store.sort().get();this.setState({data:o,reset:!1})}}},{key:"__handleExpandRow__REACT_HOT_LOADER__",value:function(e){var t=this;this.setState({expanding:e,reset:!1},function(){t._adjustHeaderWidth()})}},{key:"__handlePaginationData__REACT_HOT_LOADER__",value:function(e,t){var o=this.props.options,r=o.onPageChange,n=o.pageStartIndex,a=this.store.isEmpty();r&&r(e,t);var s={sizePerPage:t,reset:!1};if(a||(s.currPage=e),this.setState(s),!this.allowRemote(_.default.REMOTE_PAGE)&&!a){var i=void 0;if(void 0!==n){var l=Math.abs(_.default.PAGE_START_INDEX-n);i=e+l}else i=e;var p=this.store.page(i,t).get();this.setState({data:p,reset:!1})}}},{key:"__handleMouseLeave__REACT_HOT_LOADER__",value:function(){this.props.options.onMouseLeave&&this.props.options.onMouseLeave()}},{key:"__handleMouseEnter__REACT_HOT_LOADER__",value:function(){this.props.options.onMouseEnter&&this.props.options.onMouseEnter()}},{key:"__handleRowMouseOut__REACT_HOT_LOADER__",value:function(e,t){this.props.options.onRowMouseOut&&this.props.options.onRowMouseOut(e,t)}},{key:"__handleRowMouseOver__REACT_HOT_LOADER__",value:function(e,t){this.props.options.onRowMouseOver&&this.props.options.onRowMouseOver(e,t)}},{key:"__handleNavigateCell__REACT_HOT_LOADER__",value:function(e){var t=e.x,o=e.y,r=e.lastEditCell,n=this.props.pagination,a=this.state,s=a.x,i=a.y,l=a.currPage;s+=t,i+=o;var p=this.store.getColInfos(),u=this.state.data.length,c=Object.keys(p).filter(function(e){return!p[e].hidden}).length;if(i>=u){l++;var f=n?this.refs.pagination.getLastPage():-1;if(!(l<=f))return;this.handlePaginationData(l,this.state.sizePerPage),i=0}else if(i<0){if(l--,!(l>0))return;this.handlePaginationData(l,this.state.sizePerPage),i=u-1}else if(s>=c){if(i+1===u){l++;var d=n?this.refs.pagination.getLastPage():-1;if(!(l<=d))return;this.handlePaginationData(l,this.state.sizePerPage),i=0}else i++;s=r?1:0}else if(s<0)if(s=c-1,0===i){if(l--,!(l>0))return;this.handlePaginationData(l,this.state.sizePerPage),i=this.state.sizePerPage-1}else i--;this.setState({x:s,y:i,currPage:l,reset:!1})}},{key:"__handleRowClick__REACT_HOT_LOADER__",value:function(e,t,o){var r=this.props,n=r.options,a=r.keyBoardNav;if(n.onRowClick&&n.onRowClick(e),a){var s="object"===("undefined"==typeof a?"undefined":i(a))?a:{},l=s.clickToNav;l=l!==!1||l,l&&this.setState({x:o,y:t,reset:!1})}}},{key:"__handleRowDoubleClick__REACT_HOT_LOADER__",value:function(e){this.props.options.onRowDoubleClick&&this.props.options.onRowDoubleClick(e)}},{key:"__handleSelectAllRow__REACT_HOT_LOADER__",value:function(e){var t=e.currentTarget.checked,o=this.store.getKeyField(),r=this.props.selectRow,n=r.onSelectAll,a=r.unselectable,s=r.selected,i=[],l=!0,p=t?this.store.get():this.store.getRowByKey(this.state.selectedRowKeys);a&&a.length>0&&(p=t?p.filter(function(e){return a.indexOf(e[o])===-1||s&&s.indexOf(e[o])!==-1}):p.filter(function(e){return a.indexOf(e[o])===-1})),n&&(l=this.props.selectRow.onSelectAll(t,p)),"undefined"!=typeof l&&l===!1||(t?i=Array.isArray(l)?l:p.map(function(e){return e[o]}):a&&s&&(i=s.filter(function(e){return a.indexOf(e)>-1})),this.store.setSelectedRowKey(i),this.setState({selectedRowKeys:i,reset:!1}))}},{key:"__handleShowOnlySelected__REACT_HOT_LOADER__",value:function(){this.store.ignoreNonSelected();var e=void 0;e=this.props.pagination?this.store.page(1,this.state.sizePerPage).get():this.store.get(),this.setState({data:e,reset:!1,currPage:this.props.options.pageStartIndex||_.default.PAGE_START_INDEX})}},{key:"__handleSelectRow__REACT_HOT_LOADER__",value:function(e,t,o){var r=!0,n=this.store.getSelectedRowKeys(),a=e[this.store.getKeyField()],s=this.props.selectRow;s.onSelect&&(r=s.onSelect(e,t,o)),"undefined"!=typeof r&&r===!1||(s.mode===_.default.ROW_SELECT_SINGLE?n=t?[a]:[]:t?n.push(a):n=n.filter(function(e){return a!==e}),this.store.setSelectedRowKey(n),this.setState({selectedRowKeys:n,reset:!1}))}},{key:"handleEditCell",value:function(e,t,o){var r=this.props.options.onCellEdit,n=this.props.cellEdit,a=n.beforeSaveCell,s=n.afterSaveCell,i=this.getColumnsDescription(this.props),l=i[o].name;if(a){var p=a(this.state.data[t],l,e);if(!p&&"undefined"!=typeof p)return void this.setState({data:this.store.get(),reset:!1})}if(r&&(e=r(this.state.data[t],l,e)),this.allowRemote(_.default.REMOTE_CELL_EDIT))return void(s&&s(this.state.data[t],l,e));var u=this.store.edit(e,t,l).get();this.setState({data:u,reset:!1}),s&&s(this.state.data[t],l,e)}},{key:"handleAddRowAtBegin",value:function(e){try{this.store.addAtBegin(e)}catch(e){return e}this._handleAfterAddingRow(e,!0)}},{key:"__handleAddRow__REACT_HOT_LOADER__",value:function(e){var t=this.props.options.onAddRow;if(t){var o=this.store.getColInfos();t(e,o)}if(this.allowRemote(_.default.REMOTE_INSERT_ROW))return this.props.options.afterInsertRow&&this.props.options.afterInsertRow(e),null;try{this.store.add(e)}catch(e){return e.message}this._handleAfterAddingRow(e,!1)}},{key:"getSizePerPage",value:function(){return this.state.sizePerPage}},{key:"getCurrentPage",value:function(){return this.state.currPage}},{key:"getTableDataIgnorePaging",value:function(){return this.store.getCurrentDisplayData()}},{key:"__getPageByRowKey__REACT_HOT_LOADER__",value:function(e){var t=this.state.sizePerPage,o=this.store.getCurrentDisplayData(),r=this.store.getKeyField(),n=o.findIndex(function(t){return t[r]===e});return n>-1?parseInt(n/t,10)+1:n}},{key:"__handleDropRow__REACT_HOT_LOADER__",value:function(e){var t=this,o=e?e:this.store.getSelectedRowKeys();o&&o.length>0&&(this.props.options.handleConfirmDeleteRow?this.props.options.handleConfirmDeleteRow(function(){t.deleteRow(o)},o):confirm("Are you sure you want to delete?")&&this.deleteRow(o))}},{key:"deleteRow",value:function(e){var t=this.props.options.onDeleteRow;if(t&&t(e),this.store.setSelectedRowKey([]),this.allowRemote(_.default.REMOTE_DROP_ROW))return void(this.props.options.afterDeleteRow&&this.props.options.afterDeleteRow(e));this.store.remove(e);var o=void 0;if(this.props.pagination){var r=this.state.sizePerPage,n=Math.ceil(this.store.getDataNum()/r),a=this.state.currPage;a>n&&(a=n),o=this.store.page(a,r).get(),this.setState({data:o,selectedRowKeys:this.store.getSelectedRowKeys(),currPage:a,reset:!1})}else o=this.store.get(),this.setState({data:o,reset:!1,selectedRowKeys:this.store.getSelectedRowKeys()});this.props.options.afterDeleteRow&&this.props.options.afterDeleteRow(e)}},{key:"__handleFilterData__REACT_HOT_LOADER__",value:function(e){var t=this.props.options.onFilterChange;if(t){var o=this.store.getColInfos();t(e,o)}if(this.setState({currPage:this.props.options.pageStartIndex||_.default.PAGE_START_INDEX,reset:!1}),this.allowRemote(_.default.REMOTE_FILTER))return void(this.props.options.afterColumnFilter&&this.props.options.afterColumnFilter(e,this.store.getDataIgnoringPagination()));this.store.filter(e);var r=this.store.getSortInfo();r.length>0&&this.store.sort();var n=void 0;if(this.props.pagination){var a=this.state.sizePerPage;n=this.store.page(1,a).get()}else n=this.store.get();this.props.options.afterColumnFilter&&this.props.options.afterColumnFilter(e,this.store.getDataIgnoringPagination()),this.setState({data:n,reset:!1})}},{key:"__handleExportCSV__REACT_HOT_LOADER__",value:function(){var e={},t=this.props.csvFileName,o=this.props.options.onExportToCSV;e=o?o():this.store.getDataIgnoringPagination();var r=[];this.props.children.map(function(e){(e.props.export===!0||"undefined"==typeof e.props.export&&e.props.hidden===!1)&&r.push({field:e.props.dataField,format:e.props.csvFormat,extraData:e.props.csvFormatExtraData,header:e.props.csvHeader||e.props.dataField,row:Number(e.props.row)||0,rowSpan:Number(e.props.rowSpan)||1,colSpan:Number(e.props.colSpan)||1})}),"function"==typeof t&&(t=t()),(0,k.default)(e,r,t)}},{key:"__handleSearch__REACT_HOT_LOADER__",value:function(e){this.refs.toolbar&&this.refs.toolbar.setSearchInput(e);var t=this.props.options.onSearchChange;if(t){var o=this.store.getColInfos();t(e,o,this.props.multiColumnSearch)}if(this.setState({currPage:this.props.options.pageStartIndex||_.default.PAGE_START_INDEX,reset:!1}),this.allowRemote(_.default.REMOTE_SEARCH))return void(this.props.options.afterSearch&&this.props.options.afterSearch(e,this.store.getDataIgnoringPagination()));this.store.search(e);var r=this.store.getSortInfo();r.length>0&&this.store.sort();var n=void 0;if(this.props.pagination){var a=this.state.sizePerPage;n=this.store.page(1,a).get()}else n=this.store.get();this.props.options.afterSearch&&this.props.options.afterSearch(e,this.store.getDataIgnoringPagination()),this.setState({data:n,reset:!1})}},{key:"renderPagination",value:function(){if(this.props.pagination){var e=void 0;e=this.allowRemote(_.default.REMOTE_PAGE)?this.props.fetchInfo.dataTotalSize:this.store.getDataNum();var t=this.props.options,o=void 0===t.withFirstAndLast||t.withFirstAndLast;return Math.ceil(e/this.state.sizePerPage)<=1&&this.props.ignoreSinglePage?null:c.default.createElement("div",{className:"react-bs-table-pagination"},c.default.createElement(E.default,{ref:"pagination",withFirstAndLast:o,alwaysShowAllBtns:t.alwaysShowAllBtns,currPage:this.state.currPage,changePage:this.handlePaginationData,sizePerPage:this.state.sizePerPage,sizePerPageList:t.sizePerPageList||_.default.SIZE_PER_PAGE_LIST,pageStartIndex:t.pageStartIndex,paginationShowsTotal:t.paginationShowsTotal,paginationSize:t.paginationSize||_.default.PAGINATION_SIZE,dataSize:e,onSizePerPageList:t.onSizePerPageList,prePage:t.prePage||_.default.PRE_PAGE,nextPage:t.nextPage||_.default.NEXT_PAGE,firstPage:t.firstPage||_.default.FIRST_PAGE,lastPage:t.lastPage||_.default.LAST_PAGE,prePageTitle:t.prePageTitle||_.default.PRE_PAGE_TITLE,nextPageTitle:t.nextPageTitle||_.default.NEXT_PAGE_TITLE,firstPageTitle:t.firstPageTitle||_.default.FIRST_PAGE_TITLE,lastPageTitle:t.lastPageTitle||_.default.LAST_PAGE_TITLE,hideSizePerPage:t.hideSizePerPage,sizePerPageDropDown:t.sizePerPageDropDown,hidePageListOnlyOnePage:t.hidePageListOnlyOnePage,paginationPanel:t.paginationPanel,open:!1}))}return null}},{key:"renderToolBar",value:function(){var e=this.props,t=e.exportCSV,o=e.selectRow,r=e.insertRow,n=e.deleteRow,a=e.search,s=e.children,i=e.keyField,l=o&&o.showOnlySelected,p="undefined"==typeof this.props.options.printToolBar||this.props.options.printToolBar;if(l||r||n||a||t||this.props.options.searchPanel||this.props.options.btnGroup||this.props.options.toolBar){var u=void 0;return u=Array.isArray(s)?s.map(function(e,t){var o=e.props,r=o.isKey||i===o.dataField;return{isKey:r,name:o.headerText||o.children,field:o.dataField,hiddenOnInsert:o.hiddenOnInsert,keyValidator:o.keyValidator,autoValue:o.autoValue||!1,editable:o.editable&&"function"==typeof o.editable?o.editable():o.editable,format:!!o.dataFormat&&function(e){return o.dataFormat(e,null,o.formatExtraData,t).replace(/<.*?>/g,"")}}}):[{name:s.props.headerText||s.props.children,field:s.props.dataField,editable:s.props.editable,hiddenOnInsert:s.props.hiddenOnInsert,keyValidator:s.props.keyValidator}],c.default.createElement("div",{className:"react-bs-table-tool-bar "+(p?"":"hidden-print")},c.default.createElement(O.default,{ref:"toolbar",defaultSearch:this.props.options.defaultSearch,clearSearch:this.props.options.clearSearch,searchPosition:this.props.options.searchPosition,searchDelayTime:this.props.options.searchDelayTime,enableInsert:r,enableDelete:n,enableSearch:a,enableExportCSV:t,
-enableShowOnlySelected:l,columns:u,searchPlaceholder:this.props.searchPlaceholder,exportCSVText:this.props.options.exportCSVText,insertText:this.props.options.insertText,deleteText:this.props.options.deleteText,saveText:this.props.options.saveText,closeText:this.props.options.closeText,ignoreEditable:this.props.options.ignoreEditable,onAddRow:this.handleAddRow,onDropRow:this.handleDropRow,onSearch:this.handleSearch,onExportCSV:this.handleExportCSV,onShowOnlySelected:this.handleShowOnlySelected,insertModalHeader:this.props.options.insertModalHeader,insertModalFooter:this.props.options.insertModalFooter,insertModalBody:this.props.options.insertModalBody,insertModal:this.props.options.insertModal,insertBtn:this.props.options.insertBtn,deleteBtn:this.props.options.deleteBtn,showSelectedOnlyBtn:this.props.options.showSelectedOnlyBtn,exportCSVBtn:this.props.options.exportCSVBtn,clearSearchBtn:this.props.options.clearSearchBtn,searchField:this.props.options.searchField,searchPanel:this.props.options.searchPanel,btnGroup:this.props.options.btnGroup,toolBar:this.props.options.toolBar,reset:this.state.reset,isValidKey:this.store.isValidKey}))}return null}},{key:"renderTableFilter",value:function(e){return this.props.columnFilter?c.default.createElement(P.default,{columns:e,rowSelectType:this.props.selectRow.mode,onFilter:this.handleFilterData}):null}},{key:"___scrollTop__REACT_HOT_LOADER__",value:function(){var e=this.props.scrollTop;e===_.default.SCROLL_TOP?this.refs.body.refs.container.scrollTop=0:e===_.default.SCROLL_BOTTOM?this.refs.body.refs.container.scrollTop=this.refs.body.refs.container.scrollHeight:"number"!=typeof e||isNaN(e)||(this.refs.body.refs.container.scrollTop=e)}},{key:"___scrollHeader__REACT_HOT_LOADER__",value:function(e){this.refs.header.refs.container.scrollLeft=e.currentTarget.scrollLeft}},{key:"_adjustTable",value:function(){this._adjustHeight(),this.props.printable||this._adjustHeaderWidth()}},{key:"_adjustHeaderWidth",value:function(){var e=this.refs.header.getHeaderColGrouop(),t=this.refs.body.refs.tbody,o=this.refs.body.getHeaderColGrouop(),r=t.childNodes[0],n=t.parentNode.getBoundingClientRect().height>t.parentNode.parentNode.getBoundingClientRect().height,a=n?S.default.getScrollBarWidth():0;if(r&&this.store.getDataNum()){if(n||this.isVerticalScroll!==n)for(var s=r.childNodes,i=0;i/g,"")};return w(s.editable)&&(f=s.editable(p,e,a,l)),c.default.createElement(E.default,{completeEdit:this.handleCompleteEditCell,editable:f,customEditor:s.customEditor,format:!!s.format&&d,key:l,blurToSave:t.blurToSave,onTab:this.handleEditCell,rowIndex:a,colIndex:l,row:e,fieldValue:p,className:s.editClassName,invalidColumnClassName:s.invalidEditColumnClassName,beforeShowError:o,isFocus:u,customStyleWithNav:v})}var h=p&&p.toString(),_=null,y=s.className;if(w(s.className)&&(y=s.className(p,e,a,l)),"undefined"!=typeof s.format){var b=s.format(p,e,s.formatExtraData,a);c.default.isValidElement(b)?(h=b,_=s.columnTitle&&b?b.toString():null):h=c.default.createElement("div",{dangerouslySetInnerHTML:{__html:b}})}else _=s.columnTitle&&p?p.toString():null;return c.default.createElement(m.default,{key:l,rIndex:a,dataAlign:s.align,className:y,columnTitle:_,cellEdit:t,hidden:s.hidden,onEdit:this.handleEditCell,width:s.width,onClick:this.handleClickCell,attrs:s.attrs,style:s.style,tabIndex:S++ +"",isFocus:u,keyBoardNav:T,onKeyDown:this.handleCellKeyDown,customNavStyle:g,row:e},h)},this),l=e[this.props.keyField],f=p.indexOf(l)!==-1,d=this.props.selectedRowKeys.indexOf(l)!==-1,O=u&&!this.props.selectRow.hideSelectColumn?this.renderSelectRowColumn(d,h,f,y,a,e):null,A=this.renderExpandRowColumn(this.props.expandableRow&&this.props.expandableRow(e),this.props.expanding.indexOf(l)>-1,C,a,e),k=this.props.trClassName;w(this.props.trClassName)&&(k=this.props.trClassName(e,a));var x=[c.default.createElement(b.default,{isSelected:d,key:l,className:k,index:a,row:e,selectRow:u?this.props.selectRow:void 0,enableCellEdit:t.mode!==_.default.CELL_EDIT_NONE,onRowClick:this.handleRowClick,onRowDoubleClick:this.handleRowDoubleClick,onRowMouseOver:this.handleRowMouseOver,onRowMouseOut:this.handleRowMouseOut,onSelectRow:this.handleSelectRow,onExpandRow:this.handleClickCell,unselectableRow:f},this.props.expandColumnOptions.expandColumnVisible&&this.props.expandColumnOptions.expandColumnBeforeSelectColumn&&A,O,this.props.expandColumnOptions.expandColumnVisible&&!this.props.expandColumnOptions.expandColumnBeforeSelectColumn&&A,s)];return this.props.expandableRow&&this.props.expandableRow(e)&&x.push(c.default.createElement(P.default,{key:l+"-expand",className:k,bgColor:this.props.expandRowBgColor||this.props.selectRow.bgColor||void 0,hidden:!(this.props.expanding.indexOf(l)>-1),colSpan:R,width:"100%"},this.props.expandComponent(e))),x},this);if(0===A.length&&!this.props.withoutNoDataText){var k=this.props.columns.filter(function(e){return!e.hidden}).length+(u?1:0);A=[c.default.createElement(b.default,{key:"##table-empty##"},c.default.createElement("td",{"data-toggle":"collapse",colSpan:k,className:"react-bs-table-no-data"},this.props.noDataText||_.default.NO_DATA_TEXT))]}return c.default.createElement("div",{ref:"container",className:(0,O.default)("react-bs-container-body",this.props.bodyContainerClass),style:this.props.style},c.default.createElement("table",{className:s},c.default.cloneElement(f,{ref:"header"}),c.default.createElement("tbody",{ref:"tbody"},A)))}},{key:"__handleCellKeyDown__REACT_HOT_LOADER__",value:function(e,t){e.preventDefault();var o=this.props,r=o.keyBoardNav,n=o.onNavigateCell,a=o.cellEdit,s=void 0;if(37===e.keyCode)s={x:-1,y:0};else if(38===e.keyCode)s={x:0,y:-1};else if(39===e.keyCode||9===e.keyCode)s={x:1,y:0},9===e.keyCode&&t&&(s=i({},s,{lastEditCell:t}));else if(40===e.keyCode)s={x:0,y:1};else if(13===e.keyCode){var p="object"===("undefined"==typeof r?"undefined":l(r))&&r.enterToEdit;a&&p&&this.handleEditCell(e.target.parentElement.rowIndex+1,e.currentTarget.cellIndex,"",e)}s&&r&&n(s)}},{key:"__handleRowMouseOut__REACT_HOT_LOADER__",value:function(e,t){var o=this.props.data[e];this.props.onRowMouseOut(o,t)}},{key:"__handleRowMouseOver__REACT_HOT_LOADER__",value:function(e,t){var o=this.props.data[e];this.props.onRowMouseOver(o,t)}},{key:"__handleRowClick__REACT_HOT_LOADER__",value:function(e,t){var o=this.props.onRowClick;this._isSelectRowDefined()&&t--,this._isExpandColumnVisible()&&t--,o(this.props.data[e-1],e-1,t)}},{key:"__handleRowDoubleClick__REACT_HOT_LOADER__",value:function(e){var t=this.props.onRowDoubleClick,o=this.props.data[e];t(o)}},{key:"__handleSelectRow__REACT_HOT_LOADER__",value:function(e,t,o){var r=void 0,n=this.props,a=n.data,s=n.onSelectRow;a.forEach(function(t,o){if(o===e-1)return r=t,!1}),s(r,t,o)}},{key:"__handleSelectRowColumChange__REACT_HOT_LOADER__",value:function(e,t){this.props.selectRow.clickToSelect&&this.props.selectRow.clickToSelectAndEditCell||this.handleSelectRow(t+1,e.currentTarget.checked,e)}},{key:"__handleClickCell__REACT_HOT_LOADER__",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=this.props,n=r.columns,a=r.keyField,s=r.expandBy,i=r.expandableRow,l=r.selectRow.clickToExpand,p=!(this._isSelectRowDefined()&&!l);o=this._isSelectRowDefined()?o-1:o,o=this._isExpandColumnVisible()?o-1:o,i&&p&&(s===_.default.EXPAND_BY_ROW||s===_.default.EXPAND_BY_COL&&o<0||s===_.default.EXPAND_BY_COL&&n[o].expandable)&&!function(){var o=t.props.data[e-1][a],r=t.props.expanding;r.indexOf(o)>-1?r=r.filter(function(e){return e!==o}):r.push(o),t.props.onExpand(r)}()}},{key:"__handleEditCell__REACT_HOT_LOADER__",value:function(e,t,o,r){var n=this.props.selectRow,a=this._isSelectRowDefined(),s=this._isExpandColumnVisible();if(a&&(t--,n.hideSelectColumn&&t++),s&&t--,e--,"tab"===o){a&&!n.hideSelectColumn&&t++,s&&t++,this.handleCompleteEditCell(r.target.value,e,t-1),t>=this.props.columns.length?this.handleCellKeyDown(r,!0):this.handleCellKeyDown(r);var i=this.nextEditableCell(e,t),l=i.nextRIndex,p=i.nextCIndex;e=l,t=p}var u={currEditCell:{rid:e,cid:t}};if(this.props.selectRow.clickToSelectAndEditCell&&this.props.cellEdit.mode!==_.default.CELL_EDIT_DBCLICK){var c=this.props.selectedRowKeys.indexOf(this.props.data[e][this.props.keyField])!==-1;this.handleSelectRow(e+1,!c,r)}this.setState(u)}},{key:"__nextEditableCell__REACT_HOT_LOADER__",value:function(e,t){var o=this.props.keyField,r=e,n=t,a=void 0,s=void 0;do{if(n>=this.props.columns.length&&(r++,n=0),a=this.props.data[r],s=this.props.columns[n],!a)break;var i=s.editable;if(w(s.editable)&&(i=s.editable(s,a,r,n)),i&&i.readOnly!==!0&&!s.hidden&&o!==s.name)break;n++}while(a);return{nextRIndex:r,nextCIndex:n}}},{key:"__handleCompleteEditCell__REACT_HOT_LOADER__",value:function(e,t,o){this.setState({currEditCell:null}),null!==e&&this.props.cellEdit.__onCompleteEdit__(e,t,o)}},{key:"__handleClickonSelectColumn__REACT_HOT_LOADER__",value:function(e,t,o,r){if(e.stopPropagation(),"TD"===e.target.tagName&&(this.props.selectRow.clickToSelect||this.props.selectRow.clickToSelectAndEditCell)){var n=this.props.selectRow.unselectable||[];n.indexOf(r[this.props.keyField])===-1&&(this.handleSelectRow(o+1,t,e),this.handleClickCell(o+1))}}},{key:"renderSelectRowColumn",value:function(e,t,o){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,n=this,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,s=arguments[5];return c.default.createElement("td",{onClick:function(t){n.handleClickonSelectColumn(t,!e,a,s)},style:{textAlign:"center"}},r?c.default.createElement(r,{type:t,checked:e,disabled:o,rowIndex:a,onChange:function(e){return n.handleSelectRowColumChange(e,a)}}):c.default.createElement("input",{type:t,checked:e,disabled:o,onChange:function(e){return n.handleSelectRowColumChange(e,a)}}))}},{key:"renderExpandRowColumn",value:function(e,t,o){var r=this,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=null;return a=o?c.default.createElement(o,{isExpandableRow:e,isExpanded:t}):e?t?c.default.createElement("span",{className:"glyphicon glyphicon-minus"}):c.default.createElement("span",{className:"glyphicon glyphicon-plus"}):" ",c.default.createElement("td",{className:"react-bs-table-expand-cell",onClick:function(){return r.handleClickCell(n+1)}},a)}},{key:"_isSelectRowDefined",value:function(){return this.props.selectRow.mode===_.default.ROW_SELECT_SINGLE||this.props.selectRow.mode===_.default.ROW_SELECT_MULTI}},{key:"_isExpandColumnVisible",value:function(){return this.props.expandColumnOptions.expandColumnVisible}},{key:"__getHeaderColGrouop__REACT_HOT_LOADER__",value:function(){return this.refs.header.childNodes}}]),t}(u.Component);R.propTypes={data:u.PropTypes.array,columns:u.PropTypes.array,striped:u.PropTypes.bool,bordered:u.PropTypes.bool,hover:u.PropTypes.bool,condensed:u.PropTypes.bool,keyField:u.PropTypes.string,selectedRowKeys:u.PropTypes.array,onRowClick:u.PropTypes.func,onRowDoubleClick:u.PropTypes.func,onSelectRow:u.PropTypes.func,noDataText:u.PropTypes.oneOfType([u.PropTypes.string,u.PropTypes.object]),withoutNoDataText:u.PropTypes.bool,style:u.PropTypes.object,tableBodyClass:u.PropTypes.string,bodyContainerClass:u.PropTypes.string,expandableRow:u.PropTypes.func,expandComponent:u.PropTypes.func,expandRowBgColor:u.PropTypes.string,expandBy:u.PropTypes.string,expanding:u.PropTypes.array,onExpand:u.PropTypes.func,beforeShowError:u.PropTypes.func,keyBoardNav:u.PropTypes.oneOfType([u.PropTypes.bool,u.PropTypes.object]),x:u.PropTypes.number,y:u.PropTypes.number,onNavigateCell:u.PropTypes.func};var S=R;t.default=S;(function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(w,"isFun","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableBody.js"),__REACT_HOT_LOADER__.register(R,"TableBody","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableBody.js"),
-__REACT_HOT_LOADER__.register(S,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableBody.js"))})()},function(e,t,o){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t0?r[0].order:void 0}}Object.defineProperty(t,"__esModule",{value:!0});var p=function(){function e(e,t){for(var o=0;on&&(n=e.row);for(var t=0;t1?"":void 0}).filter(function(e){return"undefined"!=typeof e}).join(",")+"\n"},s=0;s<=n;s++)a(s);return t=t.filter(function(e){return void 0!==e.field}),e.map(function(e){t.map(function(r,n){var a=r.field,s=r.format,i=r.extraData,l="undefined"!=typeof s?s(e[a],e,i):e[a],p="undefined"!=typeof l?'"'+l+'"':"";o+=p,n+1",">=","<","<=","!="],h=function(e){function t(e){n(this,t);var o=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.dateComparators=o.props.dateComparators||d,o.filter=o.filter.bind(o),o.onChangeComparator=o.onChangeComparator.bind(o),o}return s(t,e),l(t,[{key:"setDefaultDate",value:function(){var e="",t=this.props.defaultValue;return t&&t.date&&(e=i(new Date(t.date))),e}},{key:"onChangeComparator",value:function(e){var t=this.refs.inputDate.value,o=e.target.value;""!==t&&(t=new Date(t),this.props.filterHandler({date:t,comparator:o},f.default.FILTER_TYPE.DATE))}},{key:"getComparatorOptions",value:function(){var e=[];e.push(u.default.createElement("option",{key:"-1"}));for(var t=0;t",">=","<","<=","!="],_=function(e){function t(e){n(this,t);var o=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.numberComparators=o.props.numberComparators||h,o.timeout=null,o.state={isPlaceholderSelected:void 0===o.props.defaultValue||void 0===o.props.defaultValue.number||o.props.options&&o.props.options.indexOf(o.props.defaultValue.number)===-1},o.onChangeNumber=o.onChangeNumber.bind(o),o.onChangeNumberSet=o.onChangeNumberSet.bind(o),o.onChangeComparator=o.onChangeComparator.bind(o),o}return s(t,e),i(t,[{key:"onChangeNumber",value:function(e){var t=this,o=this.refs.numberFilterComparator.value;if(""!==o){this.timeout&&clearTimeout(this.timeout);var r=e.target.value;this.timeout=setTimeout(function(){t.props.filterHandler({number:r,comparator:o},d.default.FILTER_TYPE.NUMBER)},this.props.delay)}}},{key:"onChangeNumberSet",value:function(e){var t=this.refs.numberFilterComparator.value,o=e.target.value;this.setState({isPlaceholderSelected:""===o}),""!==t&&this.props.filterHandler({number:o,comparator:t},d.default.FILTER_TYPE.NUMBER)}},{key:"onChangeComparator",value:function(e){var t=this.refs.numberFilter.value,o=e.target.value;""!==t&&this.props.filterHandler({number:t,comparator:o},d.default.FILTER_TYPE.NUMBER)}},{key:"cleanFiltered",value:function(){var e=this.props.defaultValue?this.props.defaultValue.number:"",t=this.props.defaultValue?this.props.defaultValue.comparator:"";this.setState({isPlaceholderSelected:""===e}),this.refs.numberFilterComparator.value=t,this.refs.numberFilter.value=e,this.props.filterHandler({number:e,comparator:t},d.default.FILTER_TYPE.NUMBER)}},{key:"applyFilter",value:function(e){var t=e.number,o=e.comparator;this.setState({isPlaceholderSelected:""===t}),this.refs.numberFilterComparator.value=o,this.refs.numberFilter.value=t,this.props.filterHandler({number:t,comparator:o},d.default.FILTER_TYPE.NUMBER)}},{key:"getComparatorOptions",value:function(){var e=[];e.push(p.default.createElement("option",{key:"-1"}));for(var t=0;tthis.lastPage?this.lastPage:n+1:e===s?this.lastPage:e===i?o:parseInt(e,10),e!==n&&this.props.changePage(e,l)}},{key:"__changeSizePerPage__REACT_HOT_LOADER__",value:function(e){var t="string"==typeof e?parseInt(e,10):e,o=this.props.currPage;t!==this.props.sizePerPage?(this.totalPages=Math.ceil(this.props.dataSize/t),this.lastPage=this.props.pageStartIndex+this.totalPages-1,o>this.lastPage&&(o=this.lastPage),this.props.changePage(o,t),this.props.onSizePerPageList&&this.props.onSizePerPageList(t)):this.setState({open:!1})}},{key:"__toggleDropDown__REACT_HOT_LOADER__",value:function(){this.setState({open:!this.state.open})}},{key:"render",value:function(){var e=this.props,t=e.currPage,o=e.dataSize,r=e.sizePerPage,n=e.sizePerPageList,a=e.paginationShowsTotal,s=e.pageStartIndex,i=e.paginationPanel,l=e.hidePageListOnlyOnePage;this.totalPages=Math.ceil(o/r),this.lastPage=this.props.pageStartIndex+this.totalPages-1;var p=this.makePage("function"==typeof i),c=this.makeDropDown(),f=Math.abs(T.default.PAGE_START_INDEX-s),d=(t-s)*r;d=0===o?0:d+1;var h=Math.min(r*(t+f)-1,o);h>=o&&h--;var _=a?u.default.createElement("span",null,"Showing rows ",d," to ",h+1," of ",o):null;"function"==typeof a&&(_=a(d,h+1,o));var y=i&&i({currPage:t,sizePerPage:r,sizePerPageList:n,pageStartIndex:s,changePage:this.changePage,toggleDropDown:this.toggleDropDown,changeSizePerPage:this.changeSizePerPage,components:{totalText:_,sizePerPageDropdown:c,pageList:p}}),b=l&&1===this.totalPages?"none":"block";return u.default.createElement("div",{className:"row",style:{marginTop:15}},y||u.default.createElement("div",null,u.default.createElement("div",{className:"col-md-6 col-xs-6 col-sm-6 col-lg-6"},_,n.length>1?c:null),u.default.createElement("div",{style:{display:b},className:"col-md-6 col-xs-6 col-sm-6 col-lg-6"},p)))}},{key:"makeDropDown",value:function(){var e=this,t=void 0,o=void 0,r="",n=this.props,a=n.sizePerPageDropDown,s=n.hideSizePerPage,l=n.sizePerPage,p=n.sizePerPageList;if(a){if(t=a({open:this.state.open,hideSizePerPage:s,currSizePerPage:l,sizePerPageList:p,toggleDropDown:this.toggleDropDown,changeSizePerPage:this.changeSizePerPage}),t.type.name!==y.default.name)return t;o=t.props}if(o||!t){var c=p.map(function(t){var o=t.text||t,n=t.value||t;return l===n&&(r=o),u.default.createElement("li",{key:o,role:"presentation"},u.default.createElement("a",{role:"menuitem",tabIndex:"-1",href:"#","data-page":n,onClick:function(t){t.preventDefault(),e.changeSizePerPage(n)}},o))});t=u.default.createElement(y.default,i({open:this.state.open,hidden:s,currSizePerPage:String(r),options:c,onClick:this.toggleDropDown},o))}return t}},{key:"makePage",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=this.getPages(),r=function(e,t){var o=t.currPage,r=t.pageStartIndex,n=t.firstPage,a=t.prePage;return o===r&&(e===n||e===a)},n=function(t,o){var r=o.currPage,n=o.nextPage,a=o.lastPage;return r===e.lastPage&&(t===n||t===a)},a=o.filter(function(e){return!!this.props.alwaysShowAllBtns||!r(e,this.props)&&!n(e,this.props)},this).map(function(e){var t=e===this.props.currPage,o=!(!r(e,this.props)&&!n(e,this.props)),a=e+"";return e===this.props.nextPage?a=this.props.nextPageTitle:e===this.props.prePage?a=this.props.prePageTitle:e===this.props.firstPage?a=this.props.firstPageTitle:e===this.props.lastPage&&(a=this.props.lastPageTitle),u.default.createElement(h.default,{key:e,title:a,changePage:this.changePage,active:t,disable:o},e)},this),s=(0,f.default)(t?null:"react-bootstrap-table-page-btns-ul","pagination");return u.default.createElement("ul",{className:s},a)}},{key:"getLastPage",value:function(){return this.lastPage}},{key:"getPages",value:function(){var e=void 0,t=this.totalPages;if(t<=0)return[];var o=Math.max(this.props.currPage-Math.floor(this.props.paginationSize/2),this.props.pageStartIndex);t=o+this.props.paginationSize-1,t>this.lastPage&&(t=this.lastPage,o=t-this.props.paginationSize+1),e=o!==this.props.pageStartIndex&&this.totalPages>this.props.paginationSize&&this.props.withFirstAndLast?[this.props.firstPage,this.props.prePage]:this.totalPages>1||this.props.alwaysShowAllBtns?[this.props.prePage]:[];for(var r=o;r<=t;r++)r>=this.props.pageStartIndex&&e.push(r);return t<=this.lastPage&&e.push(this.props.nextPage),t!==this.totalPages&&this.props.withFirstAndLast&&e.push(this.props.lastPage),e}}]),t}(p.Component);m.propTypes={currPage:p.PropTypes.number,sizePerPage:p.PropTypes.number,dataSize:p.PropTypes.number,changePage:p.PropTypes.func,sizePerPageList:p.PropTypes.array,paginationShowsTotal:p.PropTypes.oneOfType([p.PropTypes.bool,p.PropTypes.func]),paginationSize:p.PropTypes.number,onSizePerPageList:p.PropTypes.func,prePage:p.PropTypes.string,pageStartIndex:p.PropTypes.number,hideSizePerPage:p.PropTypes.bool,alwaysShowAllBtns:p.PropTypes.bool,withFirstAndLast:p.PropTypes.bool,sizePerPageDropDown:p.PropTypes.func,paginationPanel:p.PropTypes.func,prePageTitle:p.PropTypes.string,nextPageTitle:p.PropTypes.string,firstPageTitle:p.PropTypes.string,lastPageTitle:p.PropTypes.string,hidePageListOnlyOnePage:p.PropTypes.bool},m.defaultProps={sizePerPage:T.default.SIZE_PER_PAGE,pageStartIndex:T.default.PAGE_START_INDEX};var v=m;t.default=v;(function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(m,"PaginationList","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/pagination/PaginationList.js"),__REACT_HOT_LOADER__.register(v,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/pagination/PaginationList.js"))})()},function(e,t,o){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.TableDataStore=void 0;var 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},s=function(){function e(e,t){for(var o=0;o1){for(var r=this.sortList.length-1,n=!1;r>=0;r--)if(this.sortList[r].sortField===t){n=!0;break}n&&(r>0?this.sortList=this.sortList.slice(0,r):this.sortList=this.sortList.slice(1)),this.sortList.unshift(o),this.sortList=this.sortList.slice(0,this.multiColumnSort)}else this.sortList=[o]}}},{key:"setSelectedRowKey",value:function(e){this.selected=e}},{key:"getRowByKey",value:function(e){for(var t=this,o=[],r=function(r){var n=t.data[r];return e&&0!==e.length?void(e.indexOf(n[t.keyField])>-1&&(e=e.filter(function(e){return e!==n[t.keyField]}),o.push(n))):"break"},n=0;n0&&this.sort()}},{key:"ignoreNonSelected",value:function(){var e=this;this.showOnlySelected=!this.showOnlySelected,this.showOnlySelected?(this.isOnFilter=!0,this.filteredData=this.data.filter(function(t){var o=e.selected.find(function(o){return t[e.keyField]===o});return"undefined"!=typeof o})):this.isOnFilter=!1}},{key:"sort",value:function(){var e=this.getCurrentDisplayData();return e=this._sort(e),this}},{key:"page",value:function(e,t){return this.pageObj.end=e*t-1,this.pageObj.start=this.pageObj.end-(t-1),this}},{key:"edit",value:function(e,t,o){var r=this.getCurrentDisplayData(),n=void 0;return this.enablePagination?(r[this.pageObj.start+t][o]=e,n=r[this.pageObj.start+t][this.keyField]):(r[t][o]=e,n=r[t][this.keyField]),this.isOnFilter&&(this.data.forEach(function(t){t[this.keyField]===n&&(t[o]=e)},this),null!==this.filterObj&&this.filter(this.filterObj),null!==this.searchText&&this.search(this.searchText)),this}},{key:"addAtBegin",value:function(e){if(!e[this.keyField]||""===e[this.keyField].toString())throw new Error(this.keyField+" can't be empty value.");var t=this.getCurrentDisplayData();t.forEach(function(t){if(t[this.keyField].toString()===e[this.keyField].toString())throw new Error(this.keyField+" "+e[this.keyField]+" already exists")},this),t.unshift(e),this.isOnFilter&&this.data.unshift(e),this._refresh(!1)}},{key:"add",value:function(e){var t=this.isValidKey(e[this.keyField]);if(t)throw new Error(t);var o=this.getCurrentDisplayData();o.push(e),this.isOnFilter&&this.data.push(e),this._refresh(!1)}},{key:"__isValidKey__REACT_HOT_LOADER__",value:function(e){var t=this;if(!e||""===e.toString())return this.keyField+" can't be empty value.";var o=this.getCurrentDisplayData(),r=o.find(function(o){return o[t.keyField].toString()===e.toString()});return r?this.keyField+" "+e+" already exists":void 0}},{key:"remove",value:function(e){var t=this,o=this.getCurrentDisplayData(),r=o.filter(function(o){return e.indexOf(o[t.keyField])===-1});this.isOnFilter?(this.data=this.data.filter(function(o){return e.indexOf(o[t.keyField])===-1}),this.filteredData=r):this.data=r}},{key:"filter",value:function(e){if(0===Object.keys(e).length)this.filteredData=null,this.isOnFilter=!1,this.filterObj=null,this.searchText&&this._search(this.data);else{var t=this.data;this.filterObj=e,this.searchText&&(this._search(t),t=this.filteredData),this._filter(t)}}},{key:"filterNumber",value:function(e,t,o){var r=!0;switch(o){case"=":e!=t&&(r=!1);break;case">":e<=t&&(r=!1);break;case">=":e=t&&(r=!1);break;case"<=":e>t&&(r=!1);break;case"!=":e==t&&(r=!1);break;default:console.error("Number comparator provided is not supported")}return r}},{key:"filterDate",value:function e(t,o,r){if(!t)return!1;var e=o.getDate(),n=o.getMonth(),a=o.getFullYear(),s=t.getDate(),i=t.getMonth(),l=t.getFullYear(),p=!0;switch(r){case"=":e===s&&n===i&&a===l||(p=!1);break;case">":t<=o&&(p=!1);break;case">=":l=o&&(p=!1);break;case"<=":l>a?p=!1:l===a&&i>n?p=!1:l===a&&i===n&&s>e&&(p=!1);break;case"!=":e===s&&n===i&&a===l&&(p=!1);break;default:console.error("Date comparator provided is not supported")}return p}},{key:"filterRegex",value:function(e,t){try{return new RegExp(t,"i").test(e)}catch(e){return!0}}},{key:"filterCustom",value:function(e,t,o,r){return null!==o&&"object"===("undefined"==typeof o?"undefined":a(o))?o.callback(e,o.callbackParameters):this.filterText(e,t,r)}},{key:"filterText",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.FILTER_COND_LIKE;return e=e.toString(),t=t.toString(),o===l.default.FILTER_COND_EQ?e===t:(e=e.toLowerCase(),t=t.toLowerCase(),!(e.indexOf(t)===-1))}},{key:"search",value:function(e){if(""===e.trim())this.filteredData=null,this.isOnFilter=!1,this.searchText=null,this.filterObj&&this._filter(this.data);else{var t=this.data;this.searchText=e,this.filterObj&&(this._filter(t),t=this.filteredData),this._search(t)}}},{key:"_filter",value:function(e){var t=this,o=this.filterObj;this.filteredData=e.filter(function(e,r){var n=!0,s=void 0;for(var i in o){var p=e[i];switch(null!==p&&void 0!==p||(p=""),o[i].type){case l.default.FILTER_TYPE.NUMBER:s=o[i].value.number;break;case l.default.FILTER_TYPE.CUSTOM:s="object"===a(o[i].value)?void 0:"string"==typeof o[i].value?o[i].value.toLowerCase():o[i].value;break;case l.default.FILTER_TYPE.DATE:s=o[i].value.date;break;case l.default.FILTER_TYPE.REGEX:s=o[i].value;break;default:s=o[i].value,void 0===s&&(s=o[i])}var u=void 0,c=void 0,f=void 0,d=void 0;switch(t.colInfos[i]&&(u=t.colInfos[i].format,c=t.colInfos[i].filterFormatted,f=t.colInfos[i].formatExtraData,d=t.colInfos[i].filterValue,c&&u?p=u(e[i],e,f,r):d&&(p=d(e[i],e))),o[i].type){case l.default.FILTER_TYPE.NUMBER:n=t.filterNumber(p,s,o[i].value.comparator);break;case l.default.FILTER_TYPE.DATE:n=t.filterDate(p,s,o[i].value.comparator);break;case l.default.FILTER_TYPE.REGEX:n=t.filterRegex(p,s);break;case l.default.FILTER_TYPE.CUSTOM:var h=o[i].props?o[i].props.cond:l.default.FILTER_COND_LIKE;n=t.filterCustom(p,s,o[i].value,h);break;default:o[i].type===l.default.FILTER_TYPE.SELECT&&c&&c&&u&&(s=u(s,e,f,r));var _=o[i].props?o[i].props.cond:l.default.FILTER_COND_LIKE;n=t.filterText(p,s,_)}if(!n)break}return n}),this.isOnFilter=!0}},{key:"_search",value:function(e){var t=this,o=[];this.multiColumnSearch?o=this.searchText.split(" "):o.push(this.searchText),this.filteredData=e.filter(function(e,r){for(var n=Object.keys(e),a=!1,s=0,i=n.length;sf?-1:cf?1:0}if(0!==r)return r}return r}),e)}},{key:"getDataIgnoringPagination",value:function(){return this.getCurrentDisplayData()}},{key:"get",value:function(){var e=this.getCurrentDisplayData();if(0===e.length)return e;var t="function"==typeof this.remote?this.remote(l.default.REMOTE)[l.default.REMOTE_PAGE]:this.remote;if(t||!this.enablePagination)return e;for(var o=[],r=this.pageObj.start;r<=this.pageObj.end&&(o.push(e[r]),r+1!==e.length);r++);return o}},{key:"getKeyField",value:function(){return this.keyField}},{key:"getDataNum",value:function(){return this.getCurrentDisplayData().length}},{key:"isChangedPage",value:function(){return!(!this.pageObj.start||!this.pageObj.end)}},{key:"isEmpty",value:function(){return 0===this.data.length||null===this.data||void 0===this.data}},{key:"getAllRowkey",value:function(){var e=this;return this.data.map(function(t){return t[e.keyField]})}}]),e}();t.TableDataStore=p;(function(){"undefined"!=typeof __REACT_HOT_LOADER__&&__REACT_HOT_LOADER__.register(p,"TableDataStore","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/store/TableDataStore.js")})()},function(e,t,o){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){var o={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t0&&(t=u.default.cloneElement(t,d))}else if(t&&t.type.name!==f.default.name){var _=t.props.className;"undefined"!=typeof _&&_.indexOf("modal-header")!==-1||(t=u.default.createElement("div",{className:"modal-header"},t))}if(o&&o.type.name===h.default.name){var T={};o.props.onModalClose||(T.onModalClose=p),o.props.onSave||(T.onSave=this.handleSave),Object.keys(T).length>0&&(o=u.default.cloneElement(o,T))}else if(o&&o.type.name!==h.default.name){var m=o.props.className;"undefined"!=typeof m&&m.indexOf("modal-footer")!==-1||(o=u.default.createElement("div",{className:"modal-footer"},o))}return u.default.createElement("div",{className:"modal-content "+b},t||u.default.createElement(f.default,{className:"react-bs-table-inser-modal-header",onModalClose:p}),r||u.default.createElement(y.default,i({ref:"body"},c)),o||u.default.createElement(h.default,{className:"react-bs-table-inser-modal-footer",onModalClose:p,onSave:this.handleSave}))}}]),t}(p.Component),m=T;t.default=m,T.propTypes={columns:p.PropTypes.array.isRequired,validateState:p.PropTypes.object.isRequired,ignoreEditable:p.PropTypes.bool,headerComponent:p.PropTypes.func,bodyComponent:p.PropTypes.func,footerComponent:p.PropTypes.func,onModalClose:p.PropTypes.func,onSave:p.PropTypes.func},T.defaultProps={};(function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(b,"defaultModalClassName","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/InsertModal.js"),__REACT_HOT_LOADER__.register(T,"InsertModal","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/InsertModal.js"),__REACT_HOT_LOADER__.register(m,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/InsertModal.js"))})()},function(e,t,o){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var o=[],r=!0,n=!1,a=void 0;try{for(var s,i=e[Symbol.iterator]();!(r=(s=i.next()).done)&&(o.push(s.value),!t||o.length!==t);r=!0);}catch(e){n=!0,a=e}finally{try{!r&&i.return&&i.return()}finally{if(n)throw a}}return o}return function(t,o){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l="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},p=function(){function e(e,t){for(var o=0;o>";if("production"!==t.env.NODE_ENV)w={array:c("array"),bool:c("boolean"),func:c("function"),number:c("number"),object:c("object"),string:c("string"),symbol:c("symbol"),any:f(),arrayOf:d,element:h(),instanceOf:_,node:m(),objectOf:b,oneOf:y,oneOfType:T,shape:v};else{var k=function(){n(!1,"React.PropTypes type checking code is stripped in production.")};k.isRequired=k;var x=function(){return k};w={array:k,bool:k,func:k,number:k,object:k,string:k,symbol:k,any:k,arrayOf:x,element:k,instanceOf:x,node:k,objectOf:x,oneOf:x,oneOfType:x,shape:x}}return p.prototype=Error.prototype,w.checkPropTypes=i,w.PropTypes=w,w}}).call(t,o(5))},function(e,t,o){(function(t){function r(e){return e()}var n=o(1),a=o(4),s=o(63),i=n.createFactory(o(57)),l=o(58),p=o(62),u=o(4).unstable_renderSubtreeIntoContainer,c=o(27),f=s.canUseDOM?window.HTMLElement:{},d=s.canUseDOM?document.body:{appendChild:function(){}},h=n.createClass({displayName:"Modal",statics:{setAppElement:function(e){d=l.setElement(e)},injectCSS:function(){"production"!==t.env.NODE_ENV&&console.warn("React-Modal: injectCSS has been deprecated and no longer has any effect. It will be removed in a later version")}},propTypes:{isOpen:n.PropTypes.bool.isRequired,style:n.PropTypes.shape({content:n.PropTypes.object,overlay:n.PropTypes.object}),portalClassName:n.PropTypes.string,appElement:n.PropTypes.instanceOf(f),onAfterOpen:n.PropTypes.func,onRequestClose:n.PropTypes.func,closeTimeoutMS:n.PropTypes.number,ariaHideApp:n.PropTypes.bool,shouldCloseOnOverlayClick:n.PropTypes.bool,parentSelector:n.PropTypes.func,role:n.PropTypes.string,contentLabel:n.PropTypes.string.isRequired},getDefaultProps:function(){return{isOpen:!1,portalClassName:"ReactModalPortal",ariaHideApp:!0,closeTimeoutMS:0,shouldCloseOnOverlayClick:!0,parentSelector:function(){return document.body}}},componentDidMount:function(){this.node=document.createElement("div"),this.node.className=this.props.portalClassName;var e=r(this.props.parentSelector);e.appendChild(this.node),this.renderPortal(this.props)},componentWillReceiveProps:function(e){var t=r(this.props.parentSelector),o=r(e.parentSelector);o!==t&&(t.removeChild(this.node),o.appendChild(this.node)),this.renderPortal(e)},componentWillUnmount:function(){this.props.ariaHideApp&&l.show(this.props.appElement),a.unmountComponentAtNode(this.node);var e=r(this.props.parentSelector);e.removeChild(this.node),p(document.body).remove("ReactModal__Body--open")},renderPortal:function(e){e.isOpen?p(document.body).add("ReactModal__Body--open"):p(document.body).remove("ReactModal__Body--open"),e.ariaHideApp&&l.toggle(e.isOpen,e.appElement),this.portal=u(this,i(c({},e,{defaultStyles:h.defaultStyles})),this.node)},render:function(){return n.DOM.noscript()}});h.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},e.exports=h}).call(t,o(5))},function(e,t,o){var r=o(1),n=r.DOM.div,a=o(59),s=o(60),i=o(27),l={overlay:{base:"ReactModal__Overlay",afterOpen:"ReactModal__Overlay--after-open",beforeClose:"ReactModal__Overlay--before-close"},content:{base:"ReactModal__Content",afterOpen:"ReactModal__Content--after-open",beforeClose:"ReactModal__Content--before-close"}};e.exports=r.createClass({displayName:"ModalPortal",shouldClose:null,getDefaultProps:function(){return{style:{overlay:{},content:{}}}},getInitialState:function(){return{afterOpen:!1,beforeClose:!1}},componentDidMount:function(){this.props.isOpen&&(this.setFocusAfterRender(!0),this.open())},componentWillUnmount:function(){clearTimeout(this.closeTimer)},componentWillReceiveProps:function(e){!this.props.isOpen&&e.isOpen?(this.setFocusAfterRender(!0),this.open()):this.props.isOpen&&!e.isOpen&&this.close()},componentDidUpdate:function(){this.focusAfterRender&&(this.focusContent(),this.setFocusAfterRender(!1))},setFocusAfterRender:function(e){this.focusAfterRender=e},open:function(){this.state.afterOpen&&this.state.beforeClose?(clearTimeout(this.closeTimer),this.setState({beforeClose:!1})):(a.setupScopedFocus(this.node),a.markForFocusLater(),this.setState({isOpen:!0},function(){this.setState({afterOpen:!0}),this.props.isOpen&&this.props.onAfterOpen&&this.props.onAfterOpen()}.bind(this)))},close:function(){this.ownerHandlesClose()&&(this.props.closeTimeoutMS>0?this.closeWithTimeout():this.closeWithoutTimeout())},focusContent:function(){this.contentHasFocus()||this.refs.content.focus()},closeWithTimeout:function(){this.setState({beforeClose:!0},function(){this.closeTimer=setTimeout(this.closeWithoutTimeout,this.props.closeTimeoutMS)}.bind(this))},closeWithoutTimeout:function(){this.setState({beforeClose:!1,isOpen:!1,afterOpen:!1},this.afterClose)},afterClose:function(){a.returnFocus(),a.teardownScopedFocus()},handleKeyDown:function(e){9==e.keyCode&&s(this.refs.content,e),27==e.keyCode&&(e.preventDefault(),this.requestClose(e))},handleOverlayMouseDown:function(e){null===this.shouldClose&&(this.shouldClose=!0)},handleOverlayMouseUp:function(e){this.shouldClose&&this.props.shouldCloseOnOverlayClick&&(this.ownerHandlesClose()?this.requestClose(e):this.focusContent()),this.shouldClose=null},handleContentMouseDown:function(e){this.shouldClose=!1},handleContentMouseUp:function(e){this.shouldClose=!1},requestClose:function(e){this.ownerHandlesClose()&&this.props.onRequestClose(e)},ownerHandlesClose:function(){return this.props.onRequestClose},shouldBeClosed:function(){return!this.props.isOpen&&!this.state.beforeClose},contentHasFocus:function(){return document.activeElement===this.refs.content||this.refs.content.contains(document.activeElement)},buildClassName:function(e,t){var o=l[e].base;return this.state.afterOpen&&(o+=" "+l[e].afterOpen),this.state.beforeClose&&(o+=" "+l[e].beforeClose),t?o+" "+t:o},render:function(){var e=this.props.className?{}:this.props.defaultStyles.content,t=this.props.overlayClassName?{}:this.props.defaultStyles.overlay;return this.shouldBeClosed()?n():n({ref:"overlay",className:this.buildClassName("overlay",this.props.overlayClassName),style:i({},t,this.props.style.overlay||{}),onMouseDown:this.handleOverlayMouseDown,onMouseUp:this.handleOverlayMouseUp},n({ref:"content",style:i({},e,this.props.style.content||{}),className:this.buildClassName("content",this.props.className),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentMouseDown,onMouseUp:this.handleContentMouseUp,role:this.props.role,"aria-label":this.props.contentLabel},this.props.children))}})},function(e,t){function o(e){if("string"==typeof e){var t=document.querySelectorAll(e);e="length"in t?t[0]:t}return l=e||l}function r(e){s(e),(e||l).setAttribute("aria-hidden","true")}function n(e){s(e),(e||l).removeAttribute("aria-hidden")}function a(e,t){e?r(t):n(t)}function s(e){if(!e&&!l)throw new Error("react-modal: You must set an element with `Modal.setAppElement(el)` to make this accessible")}function i(){l=document.body}var l="undefined"!=typeof document?document.body:null;t.toggle=a,t.setElement=o,t.show=n,t.hide=r,t.resetForTesting=i},function(e,t,o){function r(e){l=!0}function n(e){if(l){if(l=!1,!s)return;setTimeout(function(){if(!s.contains(document.activeElement)){var e=a(s)[0]||s;e.focus()}},0)}}var a=o(26),s=null,i=null,l=!1;t.markForFocusLater=function(){i=document.activeElement},t.returnFocus=function(){try{i.focus()}catch(e){console.warn("You tried to return focus to "+i+" but it is not in the DOM anymore")}i=null},t.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",r,!1),document.addEventListener("focus",n,!0)):(window.attachEvent("onBlur",r),document.attachEvent("onFocus",n))},t.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",r),document.removeEventListener("focus",n)):(window.detachEvent("onBlur",r),document.detachEvent("onFocus",n))}},function(e,t,o){var r=o(26);e.exports=function(e,t){var o=r(e);if(!o.length)return void t.preventDefault();var n=o[t.shiftKey?0:o.length-1],a=n===document.activeElement||e===document.activeElement;if(a){t.preventDefault();var s=o[t.shiftKey?o.length-1:0];s.focus()}}},function(e,t,o){e.exports=o(56)},function(e,t){function o(e,t){if(e.indexOf)return e.indexOf(t);for(var o=0,r=e.length;o-1?r:(r.push(e),t.className=r.join(" "),r)}},r.prototype.remove=function(e){var t=this.el;if(t&&""!==t.className){var r=t.className.split(" "),n=o(r,e);return n>-1&&r.splice(n,1),t.className=r.join(" "),r}},r.prototype.has=function(e){var t=this.el;if(t){var r=t.className.split(" ");return o(r,e)>-1}},r.prototype.toggle=function(e){var t=this.el;t&&(this.has(e)?this.remove(e):this.add(e))}},function(e,t,o){var r;/*!
+function o(e,t){var o=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(o)?!e.disabled:"a"===o?e.href||t:t)&&n(e)}function r(e){return e.offsetWidth<=0&&e.offsetHeight<=0||"none"===e.style.display}function n(e){for(;e&&e!==document.body;){if(r(e))return!1;e=e.parentNode}return!0}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var r=isNaN(t);return(r||t>=0)&&o(e,!r)}function s(e){return[].slice.call(e.querySelectorAll("*"),0).filter(function(e){return a(e)})}e.exports=s},function(e,t){function o(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}function r(e,t){for(var o=-1,r=Array(e);++o1?o[n-1]:void 0,s=n>2?o[2]:void 0;for(a=e.length>3&&"function"==typeof a?(n--,a):void 0,s&&f(o[0],o[1],s)&&(a=n<3?void 0:a,n=1),t=Object(t);++r-1&&e%1==0&&e-1&&e%1==0&&e<=O}function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function E(e){return!!e&&"object"==typeof e}function g(e){return y(e)?a(e):i(e)}var O=9007199254740991,C="[object Arguments]",P="[object Function]",w="[object GeneratorFunction]",R=/^(?:0|[1-9]\d*)$/,S=Object.prototype,A=S.hasOwnProperty,k=S.toString,x=S.propertyIsEnumerable,D=n(Object.keys,Object),L=Math.max,N=!x.call({valueOf:1},"valueOf"),j=Array.isArray,F=u(function(e,t){if(N||d(t)||y(t))return void p(t,g(t),e);for(var o in t)A.call(t,o)&&s(e,o,t[o])});e.exports=F},function(e,t,o){var r,n,a;!function(s,i){n=[t,o(1),o(4),o(7),o(9),o(8),o(65)],r=i,a="function"==typeof r?r.apply(t,n):r,!(void 0!==a&&(e.exports=a))}(this,function(e,t,o,r,n,a,s){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(e,"__esModule",{value:!0});var c=i(t),f=i(o),d=i(r),h=i(n),_=i(a),y=i(s),b="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},T=function(){function e(e,t){for(var o=0;oo&&(o=Number(e.props.row))}),c.default.Children.map(t,function(e,t){var r=e.props.row?Number(e.props.row):0,n=e.props.rowSpan?Number(e.props.rowSpan):1;if(n+r===o+1)return{name:e.props.dataField,align:e.props.dataAlign,sort:e.props.dataSort,format:e.props.dataFormat,formatExtraData:e.props.formatExtraData,filterFormatted:e.props.filterFormatted,filterValue:e.props.filterValue,editable:e.props.editable,customEditor:e.props.customEditor,hidden:e.props.hidden,hiddenOnInsert:e.props.hiddenOnInsert,searchable:e.props.searchable,className:e.props.columnClassName,editClassName:e.props.editColumnClassName,invalidEditColumnClassName:e.props.invalidEditColumnClassName,columnTitle:e.props.columnTitle,width:e.props.width,text:e.props.headerText||e.props.children,sortFunc:e.props.sortFunc,sortFuncExtraData:e.props.sortFuncExtraData,export:e.props.export,expandable:e.props.expandable,index:t,attrs:e.props.tdAttr,style:e.props.tdStyle}})}},{key:"reset",value:function(){var e=this.props.options.pageStartIndex;this.store.clean(),this.setState({data:this.getTableData(),currPage:S.default.getFirstPage(e),expanding:[],sizePerPage:_.default.SIZE_PER_PAGE_LIST[0],selectedRowKeys:this.store.getSelectedRowKeys(),reset:!0})}},{key:"componentWillReceiveProps",value:function(e){this.initTable(e);var t=e.options,o=e.selectRow;this.store.setData(e.data.slice());var r=this.state.currPage;this.props.options.page!==t.page&&(r=t.page);var n=this.state.sizePerPage;if(this.props.options.sizePerPage!==t.sizePerPage&&(n=t.sizePerPage),this.isRemoteDataSource()){var a=e.data.slice();e.pagination&&!this.allowRemote(_.default.REMOTE_PAGE)&&(a=this.store.page(r,n).get()),this.setState({data:a,currPage:r,sizePerPage:n,reset:!1})}else{r>Math.ceil(e.data.length/n)&&(r=1);var s=this.store.getSortInfo(),i=t.sortName,l=t.sortOrder;i&&l?(this.store.setSortInfo(l,i),this.store.sort()):s.length>0&&this.store.sort();var p=this.store.page(r,n).get();this.setState({data:p,currPage:r,sizePerPage:n,reset:!1})}if(this.props.options.expanding!==t.expanding&&this.setState({expanding:t.expanding||[]}),o&&o.selected){var u=o.selected.slice();this.store.setSelectedRowKey(u),this.setState({selectedRowKeys:u,reset:!1})}}},{key:"componentDidMount",value:function(){this._adjustTable(),window.addEventListener("resize",this._adjustTable),this.refs.body.refs.container.addEventListener("scroll",this._scrollHeader),this.props.scrollTop&&this._scrollTop()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this._adjustTable),this.refs.body.refs.container.removeEventListener("scroll",this._scrollHeader),this.filter&&this.filter.removeAllListeners("onFilterChange")}},{key:"componentDidUpdate",value:function(){this._adjustTable(),this._attachCellEditFunc(),this.props.options.afterTableComplete&&this.props.options.afterTableComplete()}},{key:"_attachCellEditFunc",value:function(){var e=this.props.cellEdit;e&&(this.props.cellEdit.__onCompleteEdit__=this.handleEditCell.bind(this),e.mode!==_.default.CELL_EDIT_NONE&&(this.props.selectRow.clickToSelect=!1))}},{key:"isRemoteDataSource",value:function(e){var t=e||this.props,o=t.remote;return o===!0||"function"==typeof o}},{key:"allowRemote",value:function(e,t){var o=t||this.props,r=o.remote;if("function"==typeof r){var n=r(_.default.REMOTE);return n[e]}return r}},{key:"render",value:function(){var e={height:this.props.height,maxHeight:this.props.maxHeight},t=this.getColumnsDescription(this.props),o=this.store.getSortInfo(),r=this.renderPagination(),n=this.renderToolBar(),a=this.renderTableFilter(t),s=this.isSelectAll(),i=this.props.expandColumnOptions;"undefined"==typeof i.expandColumnBeforeSelectColumn&&(i.expandColumnBeforeSelectColumn=!0);var p=S.default.renderColGroup(t,this.props.selectRow,i),u=this.props.options.sortIndicator;"undefined"==typeof this.props.options.sortIndicator&&(u=!0);var f=this.props.options.paginationPosition,h=void 0===f?_.default.PAGINATION_POS_BOTTOM:f,y=h!==_.default.PAGINATION_POS_BOTTOM,T=h!==_.default.PAGINATION_POS_TOP;return c.default.createElement("div",{className:(0,d.default)("react-bs-table-container",this.props.className,this.props.containerClass),style:this.props.containerStyle},n,y?r:null,c.default.createElement("div",{ref:"table",className:(0,d.default)("react-bs-table",this.props.tableContainerClass),style:l({},e,this.props.tableStyle),onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},c.default.createElement(b.default,{ref:"header",colGroups:p,headerContainerClass:this.props.headerContainerClass,tableHeaderClass:this.props.tableHeaderClass,style:this.props.headerStyle,rowSelectType:this.props.selectRow.mode,customComponent:this.props.selectRow.customComponent,hideSelectColumn:this.props.selectRow.hideSelectColumn,sortList:o,sortIndicator:u,onSort:this.handleSort,onSelectAllRow:this.handleSelectAllRow,bordered:this.props.bordered,condensed:this.props.condensed,isFiltered:!!this.filter,isSelectAll:s,reset:this.state.reset,expandColumnVisible:i.expandColumnVisible,expandColumnComponent:i.expandColumnComponent,expandColumnBeforeSelectColumn:i.expandColumnBeforeSelectColumn},this.props.children),c.default.createElement(m.default,{ref:"body",bodyContainerClass:this.props.bodyContainerClass,tableBodyClass:this.props.tableBodyClass,style:l({},e,this.props.bodyStyle),data:this.state.data,expandComponent:this.props.expandComponent,expandableRow:this.props.expandableRow,expandRowBgColor:this.props.options.expandRowBgColor,expandBy:this.props.options.expandBy||_.default.EXPAND_BY_ROW,columns:t,trClassName:this.props.trClassName,striped:this.props.striped,bordered:this.props.bordered,hover:this.props.hover,keyField:this.store.getKeyField(),condensed:this.props.condensed,selectRow:this.props.selectRow,expandColumnOptions:this.props.expandColumnOptions,cellEdit:this.props.cellEdit,selectedRowKeys:this.state.selectedRowKeys,onRowClick:this.handleRowClick,onRowDoubleClick:this.handleRowDoubleClick,onRowMouseOver:this.handleRowMouseOver,onRowMouseOut:this.handleRowMouseOut,onSelectRow:this.handleSelectRow,noDataText:this.props.options.noDataText,withoutNoDataText:this.props.options.withoutNoDataText,expanding:this.state.expanding,onExpand:this.handleExpandRow,onlyOneExpanding:this.props.options.onlyOneExpanding,beforeShowError:this.props.options.beforeShowError,keyBoardNav:this.props.keyBoardNav,onNavigateCell:this.handleNavigateCell,x:this.state.x,y:this.state.y})),a,T?r:null,c.default.createElement(L.default,{stack:{limit:3}}))}},{key:"isSelectAll",value:function(){if(this.store.isEmpty())return!1;var e=this.props.selectRow.unselectable,t=this.store.getSelectedRowKeys(),o=this.store.getAllRowkey();if(0===t.length)return!1;var r=0,n=0,a=0;return t.forEach(function(t){o.indexOf(t)!==-1?r++:n++,e&&e.indexOf(t)!==-1&&a++}),n!==t.length&&(r===o.length||!(e&&r<=a&&a===e.length)&&"indeterminate")}},{key:"cleanSelected",value:function(){this.store.setSelectedRowKey([]),this.setState({selectedRowKeys:[],reset:!1})}},{key:"__handleSort__REACT_HOT_LOADER__",value:function(e,t){if(this.props.options.onSortChange&&this.props.options.onSortChange(t,e,this.props),this.store.setSortInfo(e,t),!this.allowRemote(_.default.REMOTE_SORT)){var o=this.store.sort().get();this.setState({data:o,reset:!1})}}},{key:"__handleExpandRow__REACT_HOT_LOADER__",value:function(e){var t=this;this.setState({expanding:e,reset:!1},function(){t._adjustHeaderWidth()})}},{key:"__handlePaginationData__REACT_HOT_LOADER__",value:function(e,t){var o=this.props.options,r=o.onPageChange,n=o.pageStartIndex,a=this.store.isEmpty();r&&r(e,t);var s={sizePerPage:t,reset:!1};if(a||(s.currPage=e),this.setState(s),!this.allowRemote(_.default.REMOTE_PAGE)&&!a){var i=this.store.page(S.default.getNormalizedPage(n,e),t).get();this.setState({data:i,reset:!1})}}},{key:"__handleMouseLeave__REACT_HOT_LOADER__",value:function(){this.props.options.onMouseLeave&&this.props.options.onMouseLeave()}},{key:"__handleMouseEnter__REACT_HOT_LOADER__",value:function(){this.props.options.onMouseEnter&&this.props.options.onMouseEnter()}},{key:"__handleRowMouseOut__REACT_HOT_LOADER__",value:function(e,t){this.props.options.onRowMouseOut&&this.props.options.onRowMouseOut(e,t)}},{key:"__handleRowMouseOver__REACT_HOT_LOADER__",value:function(e,t){this.props.options.onRowMouseOver&&this.props.options.onRowMouseOver(e,t)}},{key:"__handleNavigateCell__REACT_HOT_LOADER__",value:function(e){var t=e.x,o=e.y,r=e.lastEditCell,n=this.props.pagination,a=this.state,s=a.x,i=a.y,l=a.currPage;s+=t,i+=o;var p=this.store.getColInfos(),u=this.state.data.length,c=Object.keys(p).filter(function(e){return!p[e].hidden}).length;if(i>=u){l++;var f=n?this.refs.pagination.getLastPage():-1;if(!(l<=f))return;this.handlePaginationData(l,this.state.sizePerPage),i=0}else if(i<0){if(l--,!(l>0))return;this.handlePaginationData(l,this.state.sizePerPage),i=u-1}else if(s>=c){if(i+1===u){l++;var d=n?this.refs.pagination.getLastPage():-1;if(!(l<=d))return;this.handlePaginationData(l,this.state.sizePerPage),i=0}else i++;s=r?1:0}else if(s<0)if(s=c-1,0===i){if(l--,!(l>0))return;this.handlePaginationData(l,this.state.sizePerPage),i=this.state.sizePerPage-1}else i--;this.setState({x:s,y:i,currPage:l,reset:!1})}},{key:"__handleRowClick__REACT_HOT_LOADER__",value:function(e,t,o){var r=this.props,n=r.options,a=r.keyBoardNav;if(n.onRowClick&&n.onRowClick(e),a){var s="object"===("undefined"==typeof a?"undefined":i(a))?a:{},l=s.clickToNav;l=l!==!1||l,l&&this.setState({x:o,y:t,reset:!1})}}},{key:"__handleRowDoubleClick__REACT_HOT_LOADER__",value:function(e){this.props.options.onRowDoubleClick&&this.props.options.onRowDoubleClick(e)}},{key:"__handleSelectAllRow__REACT_HOT_LOADER__",value:function(e){var t=e.currentTarget.checked,o=this.store.getKeyField(),r=this.props.selectRow,n=r.onSelectAll,a=r.unselectable,s=r.selected,i=[],l=!0,p=t?this.store.get():this.store.getRowByKey(this.state.selectedRowKeys);a&&a.length>0&&(p=t?p.filter(function(e){return a.indexOf(e[o])===-1||s&&s.indexOf(e[o])!==-1}):p.filter(function(e){return a.indexOf(e[o])===-1})),n&&(l=this.props.selectRow.onSelectAll(t,p)),"undefined"!=typeof l&&l===!1||(t?i=Array.isArray(l)?l:p.map(function(e){return e[o]}):a&&s&&(i=s.filter(function(e){return a.indexOf(e)>-1})),this.store.setSelectedRowKey(i),this.setState({selectedRowKeys:i,reset:!1}))}},{key:"__handleShowOnlySelected__REACT_HOT_LOADER__",value:function(){this.store.ignoreNonSelected();var e=this.props.options.pageStartIndex,t=void 0;t=this.props.pagination?this.store.page(S.default.getNormalizedPage(e),this.state.sizePerPage).get():this.store.get(),this.setState({data:t,reset:!1,currPage:S.default.getFirstPage(e)})}},{key:"__handleSelectRow__REACT_HOT_LOADER__",value:function(e,t,o){var r=!0,n=this.store.getSelectedRowKeys(),a=e[this.store.getKeyField()],s=this.props.selectRow;s.onSelect&&(r=s.onSelect(e,t,o)),"undefined"!=typeof r&&r===!1||(s.mode===_.default.ROW_SELECT_SINGLE?n=t?[a]:[]:t?n.push(a):n=n.filter(function(e){return a!==e}),this.store.setSelectedRowKey(n),this.setState({selectedRowKeys:n,reset:!1}))}},{key:"handleEditCell",value:function(e,t,o){var r=this.props.options.onCellEdit,n=this.props.cellEdit,a=n.beforeSaveCell,s=n.afterSaveCell,i=this.getColumnsDescription(this.props),l=i[o].name;if(a){var p=a(this.state.data[t],l,e);if(!p&&"undefined"!=typeof p)return void this.setState({data:this.store.get(),reset:!1})}if(r&&(e=r(this.state.data[t],l,e)),this.allowRemote(_.default.REMOTE_CELL_EDIT))return void(s&&s(this.state.data[t],l,e));var u=this.store.edit(e,t,l).get();this.setState({data:u,reset:!1}),s&&s(this.state.data[t],l,e)}},{key:"handleAddRowAtBegin",value:function(e){try{this.store.addAtBegin(e)}catch(e){return e}this._handleAfterAddingRow(e,!0)}},{key:"__handleAddRow__REACT_HOT_LOADER__",value:function(e){var t=this.props.options.onAddRow;if(t){var o=this.store.getColInfos();t(e,o)}if(this.allowRemote(_.default.REMOTE_INSERT_ROW))return this.props.options.afterInsertRow&&this.props.options.afterInsertRow(e),null;try{this.store.add(e)}catch(e){return e.message}this._handleAfterAddingRow(e,!1)}},{key:"getSizePerPage",value:function(){return this.state.sizePerPage}},{key:"getCurrentPage",value:function(){return this.state.currPage}},{key:"getTableDataIgnorePaging",value:function(){return this.store.getCurrentDisplayData()}},{key:"__getPageByRowKey__REACT_HOT_LOADER__",value:function(e){var t=this.state.sizePerPage,o=this.store.getCurrentDisplayData(),r=this.store.getKeyField(),n=o.findIndex(function(t){return t[r]===e});return n>-1?parseInt(n/t,10)+1:n}},{key:"__handleDropRow__REACT_HOT_LOADER__",value:function(e){var t=this,o=e?e:this.store.getSelectedRowKeys();o&&o.length>0&&(this.props.options.handleConfirmDeleteRow?this.props.options.handleConfirmDeleteRow(function(){t.deleteRow(o)},o):confirm("Are you sure you want to delete?")&&this.deleteRow(o))}},{key:"deleteRow",value:function(e){var t=this.props.options.onDeleteRow;if(t&&t(e),this.store.setSelectedRowKey([]),this.allowRemote(_.default.REMOTE_DROP_ROW))return void(this.props.options.afterDeleteRow&&this.props.options.afterDeleteRow(e));this.store.remove(e);var o=void 0;if(this.props.pagination){var r=this.state.sizePerPage,n=Math.ceil(this.store.getDataNum()/r),a=this.state.currPage;a>n&&(a=n),o=this.store.page(a,r).get(),this.setState({data:o,selectedRowKeys:this.store.getSelectedRowKeys(),currPage:a,reset:!1})}else o=this.store.get(),this.setState({data:o,reset:!1,selectedRowKeys:this.store.getSelectedRowKeys()});this.props.options.afterDeleteRow&&this.props.options.afterDeleteRow(e)}},{key:"__handleFilterData__REACT_HOT_LOADER__",value:function(e){var t=this.props.options,o=t.onFilterChange,r=t.pageStartIndex;if(o){var n=this.store.getColInfos();o(e,n)}if(this.setState({currPage:S.default.getFirstPage(r),reset:!1}),this.allowRemote(_.default.REMOTE_FILTER))return void(this.props.options.afterColumnFilter&&this.props.options.afterColumnFilter(e,this.store.getDataIgnoringPagination()));this.store.filter(e);var a=this.store.getSortInfo();a.length>0&&this.store.sort();var s=void 0;if(this.props.pagination){var i=this.state.sizePerPage;s=this.store.page(S.default.getNormalizedPage(r),i).get()}else s=this.store.get();this.props.options.afterColumnFilter&&this.props.options.afterColumnFilter(e,this.store.getDataIgnoringPagination()),this.setState({data:s,reset:!1})}},{key:"__handleExportCSV__REACT_HOT_LOADER__",value:function(){var e={},t=this.props.csvFileName,o=this.props.options.onExportToCSV;e=o?o():this.store.getDataIgnoringPagination();var r=[];this.props.children.map(function(e){(e.props.export===!0||"undefined"==typeof e.props.export&&e.props.hidden===!1)&&r.push({field:e.props.dataField,format:e.props.csvFormat,extraData:e.props.csvFormatExtraData,header:e.props.csvHeader||e.props.dataField,row:Number(e.props.row)||0,rowSpan:Number(e.props.rowSpan)||1,colSpan:Number(e.props.colSpan)||1})}),"function"==typeof t&&(t=t()),(0,k.default)(e,r,t)}},{key:"__handleSearch__REACT_HOT_LOADER__",value:function(e){this.refs.toolbar&&this.refs.toolbar.setSearchInput(e);var t=this.props.options,o=t.onSearchChange,r=t.pageStartIndex;if(o){var n=this.store.getColInfos();o(e,n,this.props.multiColumnSearch)}if(this.setState({currPage:S.default.getFirstPage(r),reset:!1}),this.allowRemote(_.default.REMOTE_SEARCH))return void(this.props.options.afterSearch&&this.props.options.afterSearch(e,this.store.getDataIgnoringPagination()));this.store.search(e);var a=this.store.getSortInfo();a.length>0&&this.store.sort();var s=void 0;if(this.props.pagination){var i=this.state.sizePerPage;s=this.store.page(S.default.getNormalizedPage(r),i).get()}else s=this.store.get();this.props.options.afterSearch&&this.props.options.afterSearch(e,this.store.getDataIgnoringPagination()),this.setState({data:s,reset:!1})}},{key:"renderPagination",value:function(){if(this.props.pagination){var e=void 0;e=this.allowRemote(_.default.REMOTE_PAGE)?this.props.fetchInfo.dataTotalSize:this.store.getDataNum();var t=this.props.options,o=void 0===t.withFirstAndLast||t.withFirstAndLast;return Math.ceil(e/this.state.sizePerPage)<=1&&this.props.ignoreSinglePage?null:c.default.createElement("div",{className:"react-bs-table-pagination"},c.default.createElement(E.default,{ref:"pagination",withFirstAndLast:o,alwaysShowAllBtns:t.alwaysShowAllBtns,currPage:this.state.currPage,changePage:this.handlePaginationData,sizePerPage:this.state.sizePerPage,sizePerPageList:t.sizePerPageList||_.default.SIZE_PER_PAGE_LIST,pageStartIndex:t.pageStartIndex,paginationShowsTotal:t.paginationShowsTotal,paginationSize:t.paginationSize||_.default.PAGINATION_SIZE,dataSize:e,onSizePerPageList:t.onSizePerPageList,prePage:t.prePage||_.default.PRE_PAGE,nextPage:t.nextPage||_.default.NEXT_PAGE,firstPage:t.firstPage||_.default.FIRST_PAGE,lastPage:t.lastPage||_.default.LAST_PAGE,prePageTitle:t.prePageTitle||_.default.PRE_PAGE_TITLE,nextPageTitle:t.nextPageTitle||_.default.NEXT_PAGE_TITLE,firstPageTitle:t.firstPageTitle||_.default.FIRST_PAGE_TITLE,lastPageTitle:t.lastPageTitle||_.default.LAST_PAGE_TITLE,hideSizePerPage:t.hideSizePerPage,sizePerPageDropDown:t.sizePerPageDropDown,hidePageListOnlyOnePage:t.hidePageListOnlyOnePage,paginationPanel:t.paginationPanel,open:!1}))}return null}},{key:"renderToolBar",value:function(){var e=this.props,t=e.exportCSV,o=e.selectRow,r=e.insertRow,n=e.deleteRow,a=e.search,s=e.children,i=e.keyField,l=o&&o.showOnlySelected,p="undefined"==typeof this.props.options.printToolBar||this.props.options.printToolBar;if(l||r||n||a||t||this.props.options.searchPanel||this.props.options.btnGroup||this.props.options.toolBar){var u=void 0;return u=Array.isArray(s)?s.map(function(e,t){var o=e.props,r=o.isKey||i===o.dataField;return{isKey:r,name:o.headerText||o.children,field:o.dataField,hiddenOnInsert:o.hiddenOnInsert,keyValidator:o.keyValidator,customInsertEditor:o.customInsertEditor,autoValue:o.autoValue||!1,editable:o.editable&&"function"==typeof o.editable?o.editable():o.editable,format:!!o.dataFormat&&function(e){return o.dataFormat(e,null,o.formatExtraData,t).replace(/<.*?>/g,"")}}}):[{name:s.props.headerText||s.props.children,field:s.props.dataField,editable:s.props.editable,customInsertEditor:s.props.customInsertEditor,hiddenOnInsert:s.props.hiddenOnInsert,keyValidator:s.props.keyValidator}],c.default.createElement("div",{className:"react-bs-table-tool-bar "+(p?"":"hidden-print")},c.default.createElement(O.default,{ref:"toolbar",defaultSearch:this.props.options.defaultSearch,
+clearSearch:this.props.options.clearSearch,searchPosition:this.props.options.searchPosition,searchDelayTime:this.props.options.searchDelayTime,enableInsert:r,enableDelete:n,enableSearch:a,enableExportCSV:t,enableShowOnlySelected:l,columns:u,searchPlaceholder:this.props.searchPlaceholder,exportCSVText:this.props.options.exportCSVText,insertText:this.props.options.insertText,deleteText:this.props.options.deleteText,saveText:this.props.options.saveText,closeText:this.props.options.closeText,ignoreEditable:this.props.options.ignoreEditable,onAddRow:this.handleAddRow,onDropRow:this.handleDropRow,onSearch:this.handleSearch,onExportCSV:this.handleExportCSV,onShowOnlySelected:this.handleShowOnlySelected,insertModalHeader:this.props.options.insertModalHeader,insertModalFooter:this.props.options.insertModalFooter,insertModalBody:this.props.options.insertModalBody,insertModal:this.props.options.insertModal,insertBtn:this.props.options.insertBtn,deleteBtn:this.props.options.deleteBtn,showSelectedOnlyBtn:this.props.options.showSelectedOnlyBtn,exportCSVBtn:this.props.options.exportCSVBtn,clearSearchBtn:this.props.options.clearSearchBtn,searchField:this.props.options.searchField,searchPanel:this.props.options.searchPanel,btnGroup:this.props.options.btnGroup,toolBar:this.props.options.toolBar,reset:this.state.reset,isValidKey:this.store.isValidKey}))}return null}},{key:"renderTableFilter",value:function(e){return this.props.columnFilter?c.default.createElement(P.default,{columns:e,rowSelectType:this.props.selectRow.mode,onFilter:this.handleFilterData}):null}},{key:"___scrollTop__REACT_HOT_LOADER__",value:function(){var e=this.props.scrollTop;e===_.default.SCROLL_TOP?this.refs.body.refs.container.scrollTop=0:e===_.default.SCROLL_BOTTOM?this.refs.body.refs.container.scrollTop=this.refs.body.refs.container.scrollHeight:"number"!=typeof e||isNaN(e)||(this.refs.body.refs.container.scrollTop=e)}},{key:"___scrollHeader__REACT_HOT_LOADER__",value:function(e){this.refs.header.refs.container.scrollLeft=e.currentTarget.scrollLeft}},{key:"_adjustTable",value:function(){this._adjustHeight(),this.props.printable||this._adjustHeaderWidth()}},{key:"_adjustHeaderWidth",value:function(){var e=this.refs.header.getHeaderColGrouop(),t=this.refs.body.refs.tbody,o=this.refs.body.getHeaderColGrouop(),r=t.childNodes[0],n=t.parentNode.getBoundingClientRect().height>t.parentNode.parentNode.getBoundingClientRect().height,a=n?S.default.getScrollBarWidth():0;if(r&&this.store.getDataNum()){if(n||this.isVerticalScroll!==n)for(var s=r.childNodes,i=0;i/g,"")};return w(s.editable)&&(f=s.editable(p,e,a,l)),c.default.createElement(E.default,{completeEdit:this.handleCompleteEditCell,editable:f,customEditor:s.customEditor,format:!!s.format&&d,key:l,blurToSave:t.blurToSave,onTab:this.handleEditCell,rowIndex:a,colIndex:l,row:e,fieldValue:p,className:s.editClassName,invalidColumnClassName:s.invalidEditColumnClassName,beforeShowError:o,isFocus:u,customStyleWithNav:v})}var h=p&&p.toString(),_=null,y=s.className;if(w(s.className)&&(y=s.className(p,e,a,l)),"undefined"!=typeof s.format){var b=s.format(p,e,s.formatExtraData,a);c.default.isValidElement(b)?(h=b,_=s.columnTitle&&b?b.toString():null):h=c.default.createElement("div",{dangerouslySetInnerHTML:{__html:b}})}else _=s.columnTitle&&p?p.toString():null;return c.default.createElement(m.default,{key:l,rIndex:a,dataAlign:s.align,className:y,columnTitle:_,cellEdit:t,hidden:s.hidden,onEdit:this.handleEditCell,width:s.width,onClick:this.handleClickCell,attrs:s.attrs,style:s.style,tabIndex:S++ +"",isFocus:u,keyBoardNav:T,onKeyDown:this.handleCellKeyDown,customNavStyle:g,row:e},h)},this),l=e[this.props.keyField],f=p.indexOf(l)!==-1,d=this.props.selectedRowKeys.indexOf(l)!==-1,O=u&&!this.props.selectRow.hideSelectColumn?this.renderSelectRowColumn(d,h,f,y,a,e):null,A=this.renderExpandRowColumn(this.props.expandableRow&&this.props.expandableRow(e),this.props.expanding.indexOf(l)>-1,C,a,e),k=this.props.trClassName;w(this.props.trClassName)&&(k=this.props.trClassName(e,a));var x=[c.default.createElement(b.default,{isSelected:d,key:l,className:k,index:a,row:e,selectRow:u?this.props.selectRow:void 0,enableCellEdit:t.mode!==_.default.CELL_EDIT_NONE,onRowClick:this.handleRowClick,onRowDoubleClick:this.handleRowDoubleClick,onRowMouseOver:this.handleRowMouseOver,onRowMouseOut:this.handleRowMouseOut,onSelectRow:this.handleSelectRow,onExpandRow:this.handleClickCell,unselectableRow:f},this.props.expandColumnOptions.expandColumnVisible&&this.props.expandColumnOptions.expandColumnBeforeSelectColumn&&A,O,this.props.expandColumnOptions.expandColumnVisible&&!this.props.expandColumnOptions.expandColumnBeforeSelectColumn&&A,s)];return this.props.expandableRow&&this.props.expandableRow(e)&&x.push(c.default.createElement(P.default,{key:l+"-expand",className:k,bgColor:this.props.expandRowBgColor||this.props.selectRow.bgColor||void 0,hidden:!(this.props.expanding.indexOf(l)>-1),colSpan:R,width:"100%"},this.props.expandComponent(e))),x},this);if(0===A.length&&!this.props.withoutNoDataText){var k=this.props.columns.filter(function(e){return!e.hidden}).length+(u?1:0);A=[c.default.createElement(b.default,{key:"##table-empty##"},c.default.createElement("td",{"data-toggle":"collapse",colSpan:k,className:"react-bs-table-no-data"},this.props.noDataText||_.default.NO_DATA_TEXT))]}return c.default.createElement("div",{ref:"container",className:(0,O.default)("react-bs-container-body",this.props.bodyContainerClass),style:this.props.style},c.default.createElement("table",{className:s},c.default.cloneElement(f,{ref:"header"}),c.default.createElement("tbody",{ref:"tbody"},A)))}},{key:"__handleCellKeyDown__REACT_HOT_LOADER__",value:function(e,t){e.preventDefault();var o=this.props,r=o.keyBoardNav,n=o.onNavigateCell,a=o.cellEdit,s=void 0;if(37===e.keyCode)s={x:-1,y:0};else if(38===e.keyCode)s={x:0,y:-1};else if(39===e.keyCode||9===e.keyCode)s={x:1,y:0},9===e.keyCode&&t&&(s=i({},s,{lastEditCell:t}));else if(40===e.keyCode)s={x:0,y:1};else if(13===e.keyCode){var p="object"===("undefined"==typeof r?"undefined":l(r))&&r.enterToEdit;a&&p&&this.handleEditCell(e.target.parentElement.rowIndex+1,e.currentTarget.cellIndex,"",e)}s&&r&&n(s)}},{key:"__handleRowMouseOut__REACT_HOT_LOADER__",value:function(e,t){var o=this.props.data[e];this.props.onRowMouseOut(o,t)}},{key:"__handleRowMouseOver__REACT_HOT_LOADER__",value:function(e,t){var o=this.props.data[e];this.props.onRowMouseOver(o,t)}},{key:"__handleRowClick__REACT_HOT_LOADER__",value:function(e,t){var o=this.props.onRowClick;this._isSelectRowDefined()&&t--,this._isExpandColumnVisible()&&t--,o(this.props.data[e-1],e-1,t)}},{key:"__handleRowDoubleClick__REACT_HOT_LOADER__",value:function(e){var t=this.props.onRowDoubleClick,o=this.props.data[e];t(o)}},{key:"__handleSelectRow__REACT_HOT_LOADER__",value:function(e,t,o){var r=void 0,n=this.props,a=n.data,s=n.onSelectRow;a.forEach(function(t,o){if(o===e-1)return r=t,!1}),s(r,t,o)}},{key:"__handleSelectRowColumChange__REACT_HOT_LOADER__",value:function(e,t){this.props.selectRow.clickToSelect&&this.props.selectRow.clickToSelectAndEditCell||this.handleSelectRow(t+1,e.currentTarget.checked,e)}},{key:"__handleClickCell__REACT_HOT_LOADER__",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=this.props,n=r.columns,a=r.keyField,s=r.expandBy,i=r.expandableRow,l=r.selectRow.clickToExpand,p=r.onlyOneExpanding,u=!(this._isSelectRowDefined()&&!l);o=this._isSelectRowDefined()?o-1:o,o=this._isExpandColumnVisible()?o-1:o,i&&u&&(s===_.default.EXPAND_BY_ROW||s===_.default.EXPAND_BY_COL&&o<0||s===_.default.EXPAND_BY_COL&&n[o].expandable)&&!function(){var o=t.props.data[e-1][a],r=t.props.expanding;r.indexOf(o)>-1?r=r.filter(function(e){return e!==o}):p?r=[o]:r.push(o),t.props.onExpand(r)}()}},{key:"__handleEditCell__REACT_HOT_LOADER__",value:function(e,t,o,r){var n=this.props.selectRow,a=this._isSelectRowDefined(),s=this._isExpandColumnVisible();if(a&&(t--,n.hideSelectColumn&&t++),s&&t--,e--,"tab"===o){a&&!n.hideSelectColumn&&t++,s&&t++,this.handleCompleteEditCell(r.target.value,e,t-1),t>=this.props.columns.length?this.handleCellKeyDown(r,!0):this.handleCellKeyDown(r);var i=this.nextEditableCell(e,t),l=i.nextRIndex,p=i.nextCIndex;e=l,t=p}var u={currEditCell:{rid:e,cid:t}};if(this.props.selectRow.clickToSelectAndEditCell&&this.props.cellEdit.mode!==_.default.CELL_EDIT_DBCLICK){var c=this.props.selectedRowKeys.indexOf(this.props.data[e][this.props.keyField])!==-1;this.handleSelectRow(e+1,!c,r)}this.setState(u)}},{key:"__nextEditableCell__REACT_HOT_LOADER__",value:function(e,t){var o=this.props.keyField,r=e,n=t,a=void 0,s=void 0;do{if(n>=this.props.columns.length&&(r++,n=0),a=this.props.data[r],s=this.props.columns[n],!a)break;var i=s.editable;if(w(s.editable)&&(i=s.editable(s,a,r,n)),i&&i.readOnly!==!0&&!s.hidden&&o!==s.name)break;n++}while(a);return{nextRIndex:r,nextCIndex:n}}},{key:"__handleCompleteEditCell__REACT_HOT_LOADER__",value:function(e,t,o){this.setState({currEditCell:null}),null!==e&&this.props.cellEdit.__onCompleteEdit__(e,t,o)}},{key:"__handleClickonSelectColumn__REACT_HOT_LOADER__",value:function(e,t,o,r){if(e.stopPropagation(),"TD"===e.target.tagName&&(this.props.selectRow.clickToSelect||this.props.selectRow.clickToSelectAndEditCell)){var n=this.props.selectRow.unselectable||[];n.indexOf(r[this.props.keyField])===-1&&(this.handleSelectRow(o+1,t,e),this.handleClickCell(o+1))}}},{key:"renderSelectRowColumn",value:function(e,t,o){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,n=this,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,s=arguments[5];return c.default.createElement("td",{onClick:function(t){n.handleClickonSelectColumn(t,!e,a,s)},style:{textAlign:"center"}},r?c.default.createElement(r,{type:t,checked:e,disabled:o,rowIndex:a,onChange:function(e){return n.handleSelectRowColumChange(e,a)}}):c.default.createElement("input",{type:t,checked:e,disabled:o,onChange:function(e){return n.handleSelectRowColumChange(e,a)}}))}},{key:"renderExpandRowColumn",value:function(e,t,o){var r=this,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=null;return a=o?c.default.createElement(o,{isExpandableRow:e,isExpanded:t}):e?t?c.default.createElement("span",{className:"glyphicon glyphicon-minus"}):c.default.createElement("span",{className:"glyphicon glyphicon-plus"}):" ",c.default.createElement("td",{className:"react-bs-table-expand-cell",onClick:function(){return r.handleClickCell(n+1)}},a)}},{key:"_isSelectRowDefined",value:function(){return this.props.selectRow.mode===_.default.ROW_SELECT_SINGLE||this.props.selectRow.mode===_.default.ROW_SELECT_MULTI}},{key:"_isExpandColumnVisible",value:function(){return this.props.expandColumnOptions.expandColumnVisible}},{key:"__getHeaderColGrouop__REACT_HOT_LOADER__",value:function(){return this.refs.header.childNodes}}]),t}(u.Component);R.propTypes={data:u.PropTypes.array,columns:u.PropTypes.array,striped:u.PropTypes.bool,bordered:u.PropTypes.bool,hover:u.PropTypes.bool,condensed:u.PropTypes.bool,keyField:u.PropTypes.string,selectedRowKeys:u.PropTypes.array,onRowClick:u.PropTypes.func,onRowDoubleClick:u.PropTypes.func,onSelectRow:u.PropTypes.func,noDataText:u.PropTypes.oneOfType([u.PropTypes.string,u.PropTypes.object]),withoutNoDataText:u.PropTypes.bool,style:u.PropTypes.object,tableBodyClass:u.PropTypes.string,bodyContainerClass:u.PropTypes.string,expandableRow:u.PropTypes.func,expandComponent:u.PropTypes.func,expandRowBgColor:u.PropTypes.string,expandBy:u.PropTypes.string,expanding:u.PropTypes.array,onExpand:u.PropTypes.func,onlyOneExpanding:u.PropTypes.bool,
+beforeShowError:u.PropTypes.func,keyBoardNav:u.PropTypes.oneOfType([u.PropTypes.bool,u.PropTypes.object]),x:u.PropTypes.number,y:u.PropTypes.number,onNavigateCell:u.PropTypes.func};var S=R;t.default=S;(function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(w,"isFun","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableBody.js"),__REACT_HOT_LOADER__.register(R,"TableBody","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableBody.js"),__REACT_HOT_LOADER__.register(S,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableBody.js"))})()},function(e,t,o){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t0?r[0].order:void 0}}Object.defineProperty(t,"__esModule",{value:!0});var p=function(){function e(e,t){for(var o=0;on&&(n=e.row);for(var t=0;t1?"":void 0}).filter(function(e){return"undefined"!=typeof e}).join(",")+"\n"},s=0;s<=n;s++)a(s);return t=t.filter(function(e){return void 0!==e.field}),e.map(function(e){t.map(function(r,n){var a=r.field,s=r.format,i=r.extraData,l="undefined"!=typeof s?s(e[a],e,i):e[a],p="undefined"!=typeof l?'"'+l+'"':"";o+=p,n+1",">=","<","<=","!="],h=function(e){function t(e){n(this,t);var o=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.dateComparators=o.props.dateComparators||d,o.filter=o.filter.bind(o),o.onChangeComparator=o.onChangeComparator.bind(o),o}return s(t,e),l(t,[{key:"setDefaultDate",value:function(){var e="",t=this.props.defaultValue;return t&&t.date&&(e=i(new Date(t.date))),e}},{key:"onChangeComparator",value:function(e){var t=this.refs.inputDate.value,o=e.target.value;""!==t&&(t=new Date(t),this.props.filterHandler({date:t,comparator:o},f.default.FILTER_TYPE.DATE))}},{key:"getComparatorOptions",value:function(){var e=[];e.push(u.default.createElement("option",{key:"-1"}));for(var t=0;t",">=","<","<=","!="],_=function(e){function t(e){n(this,t);var o=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.numberComparators=o.props.numberComparators||h,o.timeout=null,o.state={isPlaceholderSelected:void 0===o.props.defaultValue||void 0===o.props.defaultValue.number||o.props.options&&o.props.options.indexOf(o.props.defaultValue.number)===-1},o.onChangeNumber=o.onChangeNumber.bind(o),o.onChangeNumberSet=o.onChangeNumberSet.bind(o),o.onChangeComparator=o.onChangeComparator.bind(o),o}return s(t,e),i(t,[{key:"onChangeNumber",value:function(e){var t=this,o=this.refs.numberFilterComparator.value;if(""!==o){this.timeout&&clearTimeout(this.timeout);var r=e.target.value;this.timeout=setTimeout(function(){t.props.filterHandler({number:r,comparator:o},d.default.FILTER_TYPE.NUMBER)},this.props.delay)}}},{key:"onChangeNumberSet",value:function(e){var t=this.refs.numberFilterComparator.value,o=e.target.value;this.setState({isPlaceholderSelected:""===o}),""!==t&&this.props.filterHandler({number:o,comparator:t},d.default.FILTER_TYPE.NUMBER)}},{key:"onChangeComparator",value:function(e){var t=this.refs.numberFilter.value,o=e.target.value;""!==t&&this.props.filterHandler({number:t,comparator:o},d.default.FILTER_TYPE.NUMBER)}},{key:"cleanFiltered",value:function(){var e=this.props.defaultValue?this.props.defaultValue.number:"",t=this.props.defaultValue?this.props.defaultValue.comparator:"";this.setState({isPlaceholderSelected:""===e}),this.refs.numberFilterComparator.value=t,this.refs.numberFilter.value=e,this.props.filterHandler({number:e,comparator:t},d.default.FILTER_TYPE.NUMBER)}},{key:"applyFilter",value:function(e){var t=e.number,o=e.comparator;this.setState({isPlaceholderSelected:""===t}),this.refs.numberFilterComparator.value=o,this.refs.numberFilter.value=t,this.props.filterHandler({number:t,comparator:o},d.default.FILTER_TYPE.NUMBER)}},{key:"getComparatorOptions",value:function(){var e=[];e.push(p.default.createElement("option",{key:"-1"}));for(var t=0;tthis.lastPage?this.lastPage:n+1:e===s?this.lastPage:e===i?o:parseInt(e,10),e!==n&&this.props.changePage(e,l)}},{key:"__changeSizePerPage__REACT_HOT_LOADER__",value:function(e){var t="string"==typeof e?parseInt(e,10):e,o=this.props.currPage;t!==this.props.sizePerPage?(this.totalPages=Math.ceil(this.props.dataSize/t),this.lastPage=this.props.pageStartIndex+this.totalPages-1,o>this.lastPage&&(o=this.lastPage),this.props.changePage(o,t),this.props.onSizePerPageList&&this.props.onSizePerPageList(t)):this.setState({open:!1})}},{key:"__toggleDropDown__REACT_HOT_LOADER__",value:function(){this.setState({open:!this.state.open})}},{key:"render",value:function(){var e=this.props,t=e.currPage,o=e.dataSize,r=e.sizePerPage,n=e.sizePerPageList,a=e.paginationShowsTotal,s=e.pageStartIndex,i=e.paginationPanel,l=e.hidePageListOnlyOnePage;this.totalPages=Math.ceil(o/r),this.lastPage=this.props.pageStartIndex+this.totalPages-1;var p=this.makePage("function"==typeof i),c=this.makeDropDown(),f=Math.abs(T.default.PAGE_START_INDEX-s),d=(t-s)*r;d=0===o?0:d+1;var h=Math.min(r*(t+f)-1,o);h>=o&&h--;var _=a?u.default.createElement("span",null,"Showing rows ",d," to ",h+1," of ",o):null;"function"==typeof a&&(_=a(d,h+1,o));var y=i&&i({currPage:t,sizePerPage:r,sizePerPageList:n,pageStartIndex:s,changePage:this.changePage,toggleDropDown:this.toggleDropDown,changeSizePerPage:this.changeSizePerPage,components:{totalText:_,sizePerPageDropdown:c,pageList:p}}),b=l&&1===this.totalPages?"none":"block";return u.default.createElement("div",{className:"row",style:{marginTop:15}},y||u.default.createElement("div",null,u.default.createElement("div",{className:"col-md-6 col-xs-6 col-sm-6 col-lg-6"},_,n.length>1?c:null),u.default.createElement("div",{style:{display:b},className:"col-md-6 col-xs-6 col-sm-6 col-lg-6"},p)))}},{key:"makeDropDown",value:function(){var e=this,t=void 0,o=void 0,r="",n=this.props,a=n.sizePerPageDropDown,s=n.hideSizePerPage,l=n.sizePerPage,p=n.sizePerPageList;if(a){if(t=a({open:this.state.open,hideSizePerPage:s,currSizePerPage:l,sizePerPageList:p,toggleDropDown:this.toggleDropDown,changeSizePerPage:this.changeSizePerPage}),t.type.name!==y.default.name)return t;o=t.props}if(o||!t){var c=p.map(function(t){var o=t.text||t,n=t.value||t;return l===n&&(r=o),u.default.createElement("li",{key:o,role:"presentation"},u.default.createElement("a",{role:"menuitem",tabIndex:"-1",href:"#","data-page":n,onClick:function(t){t.preventDefault(),e.changeSizePerPage(n)}},o))});t=u.default.createElement(y.default,i({open:this.state.open,hidden:s,currSizePerPage:String(r),options:c,onClick:this.toggleDropDown},o))}return t}},{key:"makePage",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=this.getPages(),r=function(e,t){var o=t.currPage,r=t.pageStartIndex,n=t.firstPage,a=t.prePage;return o===r&&(e===n||e===a)},n=function(t,o){var r=o.currPage,n=o.nextPage,a=o.lastPage;return r===e.lastPage&&(t===n||t===a)},a=o.filter(function(e){return!!this.props.alwaysShowAllBtns||!r(e,this.props)&&!n(e,this.props)},this).map(function(e){var t=e===this.props.currPage,o=!(!r(e,this.props)&&!n(e,this.props)),a=e+"";return e===this.props.nextPage?a=this.props.nextPageTitle:e===this.props.prePage?a=this.props.prePageTitle:e===this.props.firstPage?a=this.props.firstPageTitle:e===this.props.lastPage&&(a=this.props.lastPageTitle),u.default.createElement(h.default,{key:e,title:a,changePage:this.changePage,active:t,disable:o},e)},this),s=(0,f.default)(t?null:"react-bootstrap-table-page-btns-ul","pagination");return u.default.createElement("ul",{className:s},a)}},{key:"getLastPage",value:function(){return this.lastPage}},{key:"getPages",value:function(){var e=void 0,t=this.totalPages;if(t<=0)return[];var o=Math.max(this.props.currPage-Math.floor(this.props.paginationSize/2),this.props.pageStartIndex);t=o+this.props.paginationSize-1,t>this.lastPage&&(t=this.lastPage,o=t-this.props.paginationSize+1),e=o!==this.props.pageStartIndex&&this.totalPages>this.props.paginationSize&&this.props.withFirstAndLast?[this.props.firstPage,this.props.prePage]:this.totalPages>1||this.props.alwaysShowAllBtns?[this.props.prePage]:[];for(var r=o;r<=t;r++)r>=this.props.pageStartIndex&&e.push(r);return t<=this.lastPage&&e.length>1&&e.push(this.props.nextPage),t!==this.lastPage&&this.props.withFirstAndLast&&e.push(this.props.lastPage),e}}]),t}(p.Component);m.propTypes={currPage:p.PropTypes.number,sizePerPage:p.PropTypes.number,dataSize:p.PropTypes.number,changePage:p.PropTypes.func,sizePerPageList:p.PropTypes.array,paginationShowsTotal:p.PropTypes.oneOfType([p.PropTypes.bool,p.PropTypes.func]),paginationSize:p.PropTypes.number,onSizePerPageList:p.PropTypes.func,prePage:p.PropTypes.string,pageStartIndex:p.PropTypes.number,hideSizePerPage:p.PropTypes.bool,alwaysShowAllBtns:p.PropTypes.bool,withFirstAndLast:p.PropTypes.bool,sizePerPageDropDown:p.PropTypes.func,paginationPanel:p.PropTypes.func,prePageTitle:p.PropTypes.string,nextPageTitle:p.PropTypes.string,firstPageTitle:p.PropTypes.string,lastPageTitle:p.PropTypes.string,hidePageListOnlyOnePage:p.PropTypes.bool},m.defaultProps={sizePerPage:T.default.SIZE_PER_PAGE,pageStartIndex:T.default.PAGE_START_INDEX};var v=m;t.default=v;(function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(m,"PaginationList","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/pagination/PaginationList.js"),__REACT_HOT_LOADER__.register(v,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/pagination/PaginationList.js"))})()},function(e,t,o){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.TableDataStore=void 0;var 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;
+},s=function(){function e(e,t){for(var o=0;o1){for(var r=this.sortList.length-1,n=!1;r>=0;r--)if(this.sortList[r].sortField===t){n=!0;break}n&&(r>0?this.sortList=this.sortList.slice(0,r):this.sortList=this.sortList.slice(1)),this.sortList.unshift(o),this.sortList=this.sortList.slice(0,this.multiColumnSort)}else this.sortList=[o]}}},{key:"setSelectedRowKey",value:function(e){this.selected=e}},{key:"getRowByKey",value:function(e){for(var t=this,o=[],r=function(r){var n=t.data[r];return e&&0!==e.length?void(e.indexOf(n[t.keyField])>-1&&(e=e.filter(function(e){return e!==n[t.keyField]}),o.push(n))):"break"},n=0;n0&&this.sort()}},{key:"ignoreNonSelected",value:function(){var e=this;this.showOnlySelected=!this.showOnlySelected,this.showOnlySelected?(this.isOnFilter=!0,this.filteredData=this.data.filter(function(t){var o=e.selected.find(function(o){return t[e.keyField]===o});return"undefined"!=typeof o})):this.isOnFilter=!1}},{key:"sort",value:function(){var e=this.getCurrentDisplayData();return e=this._sort(e),this}},{key:"page",value:function(e,t){return this.pageObj.end=e*t-1,this.pageObj.start=this.pageObj.end-(t-1),this}},{key:"edit",value:function(e,t,o){var r=this.getCurrentDisplayData(),n=void 0;return this.enablePagination?(r[this.pageObj.start+t][o]=e,n=r[this.pageObj.start+t][this.keyField]):(r[t][o]=e,n=r[t][this.keyField]),this.isOnFilter&&(this.data.forEach(function(t){t[this.keyField]===n&&(t[o]=e)},this),null!==this.filterObj&&this.filter(this.filterObj),null!==this.searchText&&this.search(this.searchText)),this}},{key:"addAtBegin",value:function(e){if(!e[this.keyField]||""===e[this.keyField].toString())throw new Error(this.keyField+" can't be empty value.");var t=this.getCurrentDisplayData();t.forEach(function(t){if(t[this.keyField].toString()===e[this.keyField].toString())throw new Error(this.keyField+" "+e[this.keyField]+" already exists")},this),t.unshift(e),this.isOnFilter&&this.data.unshift(e),this._refresh(!1)}},{key:"add",value:function(e){var t=this.isValidKey(e[this.keyField]);if(t)throw new Error(t);var o=this.getCurrentDisplayData();o.push(e),this.isOnFilter&&this.data.push(e),this._refresh(!1)}},{key:"__isValidKey__REACT_HOT_LOADER__",value:function(e){var t=this;if(!e||""===e.toString())return this.keyField+" can't be empty value.";var o=this.getCurrentDisplayData(),r=o.find(function(o){return o[t.keyField].toString()===e.toString()});return r?this.keyField+" "+e+" already exists":void 0}},{key:"remove",value:function(e){var t=this,o=this.getCurrentDisplayData(),r=o.filter(function(o){return e.indexOf(o[t.keyField])===-1});this.isOnFilter?(this.data=this.data.filter(function(o){return e.indexOf(o[t.keyField])===-1}),this.filteredData=r):this.data=r}},{key:"filter",value:function(e){if(0===Object.keys(e).length)this.filteredData=null,this.isOnFilter=!1,this.filterObj=null,this.searchText&&this._search(this.data);else{var t=this.data;this.filterObj=e,this.searchText&&(this._search(t),t=this.filteredData),this._filter(t)}}},{key:"filterNumber",value:function(e,t,o){var r=!0;switch(o){case"=":e!=t&&(r=!1);break;case">":e<=t&&(r=!1);break;case">=":e=t&&(r=!1);break;case"<=":e>t&&(r=!1);break;case"!=":e==t&&(r=!1);break;default:console.error("Number comparator provided is not supported")}return r}},{key:"filterDate",value:function e(t,o,r){if(!t)return!1;var e=o.getDate(),n=o.getMonth(),a=o.getFullYear(),s=t.getDate(),i=t.getMonth(),l=t.getFullYear(),p=!0;switch(r){case"=":e===s&&n===i&&a===l||(p=!1);break;case">":t<=o&&(p=!1);break;case">=":l=o&&(p=!1);break;case"<=":l>a?p=!1:l===a&&i>n?p=!1:l===a&&i===n&&s>e&&(p=!1);break;case"!=":e===s&&n===i&&a===l&&(p=!1);break;default:console.error("Date comparator provided is not supported")}return p}},{key:"filterRegex",value:function(e,t){try{return new RegExp(t,"i").test(e)}catch(e){return!0}}},{key:"filterCustom",value:function(e,t,o,r){return null!==o&&"object"===("undefined"==typeof o?"undefined":a(o))?o.callback(e,o.callbackParameters):this.filterText(e,t,r)}},{key:"filterText",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.FILTER_COND_LIKE;return e=e.toString(),t=t.toString(),o===l.default.FILTER_COND_EQ?e===t:(e=e.toLowerCase(),t=t.toLowerCase(),!(e.indexOf(t)===-1))}},{key:"search",value:function(e){if(""===e.trim())this.filteredData=null,this.isOnFilter=!1,this.searchText=null,this.filterObj&&this._filter(this.data);else{var t=this.data;this.searchText=e,this.filterObj&&(this._filter(t),t=this.filteredData),this._search(t)}}},{key:"_filter",value:function(e){var t=this,o=this.filterObj;this.filteredData=e.filter(function(e,r){var n=!0,s=void 0;for(var i in o){var p=e[i];switch(null!==p&&void 0!==p||(p=""),o[i].type){case l.default.FILTER_TYPE.NUMBER:s=o[i].value.number;break;case l.default.FILTER_TYPE.CUSTOM:s="object"===a(o[i].value)?void 0:"string"==typeof o[i].value?o[i].value.toLowerCase():o[i].value;break;case l.default.FILTER_TYPE.DATE:s=o[i].value.date;break;case l.default.FILTER_TYPE.REGEX:s=o[i].value;break;default:s=o[i].value,void 0===s&&(s=o[i])}var u=void 0,c=void 0,f=void 0,d=void 0;switch(t.colInfos[i]&&(u=t.colInfos[i].format,c=t.colInfos[i].filterFormatted,f=t.colInfos[i].formatExtraData,d=t.colInfos[i].filterValue,c&&u?p=u(e[i],e,f,r):d&&(p=d(e[i],e))),o[i].type){case l.default.FILTER_TYPE.NUMBER:n=t.filterNumber(p,s,o[i].value.comparator);break;case l.default.FILTER_TYPE.DATE:n=t.filterDate(p,s,o[i].value.comparator);break;case l.default.FILTER_TYPE.REGEX:n=t.filterRegex(p,s);break;case l.default.FILTER_TYPE.CUSTOM:var h=o[i].props?o[i].props.cond:l.default.FILTER_COND_LIKE;n=t.filterCustom(p,s,o[i].value,h);break;default:o[i].type===l.default.FILTER_TYPE.SELECT&&c&&c&&u&&(s=u(s,e,f,r));var _=o[i].props?o[i].props.cond:l.default.FILTER_COND_LIKE;n=t.filterText(p,s,_)}if(!n)break}return n}),this.isOnFilter=!0}},{key:"_search",value:function(e){var t=this,o=void 0;o=this.multiColumnSearch||!this.strictSearch?this.searchText.trim().toLowerCase().split(/\s+/):[this.searchText.toLowerCase()];var r=o.length,n=r>1,a=n&&!this.strictSearch&&this.multiColumnSearch,s=n&&!this.strictSearch&&!this.multiColumnSearch;this.filteredData=e.filter(function(e,i){for(var l=Object.keys(e),p=n?o.slice():o,u=0,c=l.length;up.length&&(p=o.slice());for(var m=p.length-1;m>-1;m--)if(T.indexOf(p[m])!==-1){if(a||1===p.length)return!0;p.splice(m,1)}else if(!t.multiColumnSearch)break}}}return!1}),this.isOnFilter=!0}},{key:"_sort",value:function(e){var t=this;return 0===this.sortList.length||"undefined"==typeof this.sortList[0]?e:(e.sort(function(e,o){for(var r=0,n=0;nf?-1:cf?1:0}if(0!==r)return r}return r}),e)}},{key:"getDataIgnoringPagination",value:function(){return this.getCurrentDisplayData()}},{key:"get",value:function(){var e=this.getCurrentDisplayData();if(0===e.length)return e;var t="function"==typeof this.remote?this.remote(l.default.REMOTE)[l.default.REMOTE_PAGE]:this.remote;if(t||!this.enablePagination)return e;for(var o=[],r=this.pageObj.start;r<=this.pageObj.end&&(o.push(e[r]),r+1!==e.length);r++);return o}},{key:"getKeyField",value:function(){return this.keyField}},{key:"getDataNum",value:function(){return this.getCurrentDisplayData().length}},{key:"isChangedPage",value:function(){return!(!this.pageObj.start||!this.pageObj.end)}},{key:"isEmpty",value:function(){return 0===this.data.length||null===this.data||void 0===this.data}},{key:"getAllRowkey",value:function(){var e=this;return this.data.map(function(t){return t[e.keyField]})}}]),e}();t.TableDataStore=p;(function(){"undefined"!=typeof __REACT_HOT_LOADER__&&__REACT_HOT_LOADER__.register(p,"TableDataStore","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/store/TableDataStore.js")})()},function(e,t,o){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){var o={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t0&&(t=u.default.cloneElement(t,d))}else if(t&&t.type.name!==f.default.name){var _=t.props.className;"undefined"!=typeof _&&_.indexOf("modal-header")!==-1||(t=u.default.createElement("div",{className:"modal-header"},t))}if(o&&o.type.name===h.default.name){var T={};o.props.onModalClose||(T.onModalClose=p),o.props.onSave||(T.onSave=this.handleSave),Object.keys(T).length>0&&(o=u.default.cloneElement(o,T))}else if(o&&o.type.name!==h.default.name){var m=o.props.className;"undefined"!=typeof m&&m.indexOf("modal-footer")!==-1||(o=u.default.createElement("div",{className:"modal-footer"},o))}return u.default.createElement("div",{className:"modal-content "+b},t||u.default.createElement(f.default,{className:"react-bs-table-inser-modal-header",onModalClose:p}),r||u.default.createElement(y.default,i({ref:"body"},c)),o||u.default.createElement(h.default,{className:"react-bs-table-inser-modal-footer",onModalClose:p,onSave:this.handleSave}))}}]),t}(p.Component),m=T;t.default=m,T.propTypes={columns:p.PropTypes.array.isRequired,validateState:p.PropTypes.object.isRequired,ignoreEditable:p.PropTypes.bool,headerComponent:p.PropTypes.func,bodyComponent:p.PropTypes.func,footerComponent:p.PropTypes.func,onModalClose:p.PropTypes.func,onSave:p.PropTypes.func},T.defaultProps={};(function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(b,"defaultModalClassName","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/InsertModal.js"),__REACT_HOT_LOADER__.register(T,"InsertModal","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/InsertModal.js"),__REACT_HOT_LOADER__.register(m,"default","/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/InsertModal.js"))})()},function(e,t,o){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var o=[],r=!0,n=!1,a=void 0;try{for(var s,i=e[Symbol.iterator]();!(r=(s=i.next()).done)&&(o.push(s.value),!t||o.length!==t);r=!0);}catch(e){n=!0,a=e}finally{try{!r&&i.return&&i.return()}finally{if(n)throw a}}return o}return function(t,o){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l="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},p=function(){function e(e,t){for(var o=0;o>";if("production"!==t.env.NODE_ENV)w={array:c("array"),bool:c("boolean"),func:c("function"),number:c("number"),object:c("object"),string:c("string"),symbol:c("symbol"),any:f(),arrayOf:d,element:h(),instanceOf:_,node:m(),objectOf:b,oneOf:y,oneOfType:T,shape:v};else{var k=function(){n(!1,"React.PropTypes type checking code is stripped in production.")};k.isRequired=k;var x=function(){return k};w={array:k,bool:k,func:k,number:k,object:k,string:k,symbol:k,any:k,arrayOf:x,element:k,instanceOf:x,node:k,objectOf:x,oneOf:x,oneOfType:x,shape:x}}return p.prototype=Error.prototype,w.checkPropTypes=i,w.PropTypes=w,w}}).call(t,o(5))},function(e,t,o){(function(t){function r(e){return e()}var n=o(1),a=o(4),s=o(63),i=n.createFactory(o(57)),l=o(58),p=o(62),u=o(4).unstable_renderSubtreeIntoContainer,c=o(27),f=s.canUseDOM?window.HTMLElement:{},d=s.canUseDOM?document.body:{appendChild:function(){}},h=n.createClass({displayName:"Modal",statics:{setAppElement:function(e){d=l.setElement(e)},injectCSS:function(){"production"!==t.env.NODE_ENV&&console.warn("React-Modal: injectCSS has been deprecated and no longer has any effect. It will be removed in a later version")}},propTypes:{isOpen:n.PropTypes.bool.isRequired,style:n.PropTypes.shape({content:n.PropTypes.object,overlay:n.PropTypes.object}),portalClassName:n.PropTypes.string,appElement:n.PropTypes.instanceOf(f),onAfterOpen:n.PropTypes.func,onRequestClose:n.PropTypes.func,closeTimeoutMS:n.PropTypes.number,ariaHideApp:n.PropTypes.bool,shouldCloseOnOverlayClick:n.PropTypes.bool,parentSelector:n.PropTypes.func,role:n.PropTypes.string,contentLabel:n.PropTypes.string.isRequired},getDefaultProps:function(){return{isOpen:!1,portalClassName:"ReactModalPortal",ariaHideApp:!0,closeTimeoutMS:0,shouldCloseOnOverlayClick:!0,parentSelector:function(){return document.body}}},componentDidMount:function(){this.node=document.createElement("div"),this.node.className=this.props.portalClassName;var e=r(this.props.parentSelector);e.appendChild(this.node),this.renderPortal(this.props)},componentWillReceiveProps:function(e){var t=r(this.props.parentSelector),o=r(e.parentSelector);o!==t&&(t.removeChild(this.node),o.appendChild(this.node)),this.renderPortal(e)},componentWillUnmount:function(){this.props.ariaHideApp&&l.show(this.props.appElement),a.unmountComponentAtNode(this.node);var e=r(this.props.parentSelector);e.removeChild(this.node),p(document.body).remove("ReactModal__Body--open")},renderPortal:function(e){e.isOpen?p(document.body).add("ReactModal__Body--open"):p(document.body).remove("ReactModal__Body--open"),e.ariaHideApp&&l.toggle(e.isOpen,e.appElement),this.portal=u(this,i(c({},e,{defaultStyles:h.defaultStyles})),this.node)},render:function(){return n.DOM.noscript()}});h.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},e.exports=h}).call(t,o(5))},function(e,t,o){var r=o(1),n=r.DOM.div,a=o(59),s=o(60),i=o(27),l={overlay:{base:"ReactModal__Overlay",afterOpen:"ReactModal__Overlay--after-open",beforeClose:"ReactModal__Overlay--before-close"},content:{base:"ReactModal__Content",afterOpen:"ReactModal__Content--after-open",beforeClose:"ReactModal__Content--before-close"}};e.exports=r.createClass({displayName:"ModalPortal",shouldClose:null,getDefaultProps:function(){return{style:{overlay:{},content:{}}}},getInitialState:function(){return{afterOpen:!1,beforeClose:!1}},componentDidMount:function(){this.props.isOpen&&(this.setFocusAfterRender(!0),this.open())},componentWillUnmount:function(){clearTimeout(this.closeTimer)},componentWillReceiveProps:function(e){!this.props.isOpen&&e.isOpen?(this.setFocusAfterRender(!0),this.open()):this.props.isOpen&&!e.isOpen&&this.close()},componentDidUpdate:function(){this.focusAfterRender&&(this.focusContent(),this.setFocusAfterRender(!1))},setFocusAfterRender:function(e){this.focusAfterRender=e},open:function(){this.state.afterOpen&&this.state.beforeClose?(clearTimeout(this.closeTimer),this.setState({beforeClose:!1})):(a.setupScopedFocus(this.node),a.markForFocusLater(),this.setState({isOpen:!0},function(){this.setState({afterOpen:!0}),this.props.isOpen&&this.props.onAfterOpen&&this.props.onAfterOpen()}.bind(this)))},close:function(){this.ownerHandlesClose()&&(this.props.closeTimeoutMS>0?this.closeWithTimeout():this.closeWithoutTimeout())},focusContent:function(){this.contentHasFocus()||this.refs.content.focus()},closeWithTimeout:function(){this.setState({beforeClose:!0},function(){this.closeTimer=setTimeout(this.closeWithoutTimeout,this.props.closeTimeoutMS)}.bind(this))},closeWithoutTimeout:function(){this.setState({beforeClose:!1,isOpen:!1,afterOpen:!1},this.afterClose)},afterClose:function(){a.returnFocus(),a.teardownScopedFocus()},handleKeyDown:function(e){9==e.keyCode&&s(this.refs.content,e),27==e.keyCode&&(e.preventDefault(),this.requestClose(e))},handleOverlayMouseDown:function(e){null===this.shouldClose&&(this.shouldClose=!0)},handleOverlayMouseUp:function(e){this.shouldClose&&this.props.shouldCloseOnOverlayClick&&(this.ownerHandlesClose()?this.requestClose(e):this.focusContent()),this.shouldClose=null},handleContentMouseDown:function(e){this.shouldClose=!1},handleContentMouseUp:function(e){this.shouldClose=!1},requestClose:function(e){this.ownerHandlesClose()&&this.props.onRequestClose(e)},ownerHandlesClose:function(){return this.props.onRequestClose},shouldBeClosed:function(){return!this.props.isOpen&&!this.state.beforeClose},contentHasFocus:function(){return document.activeElement===this.refs.content||this.refs.content.contains(document.activeElement)},buildClassName:function(e,t){var o=l[e].base;return this.state.afterOpen&&(o+=" "+l[e].afterOpen),this.state.beforeClose&&(o+=" "+l[e].beforeClose),t?o+" "+t:o},render:function(){var e=this.props.className?{}:this.props.defaultStyles.content,t=this.props.overlayClassName?{}:this.props.defaultStyles.overlay;return this.shouldBeClosed()?n():n({ref:"overlay",className:this.buildClassName("overlay",this.props.overlayClassName),style:i({},t,this.props.style.overlay||{}),onMouseDown:this.handleOverlayMouseDown,onMouseUp:this.handleOverlayMouseUp},n({ref:"content",style:i({},e,this.props.style.content||{}),className:this.buildClassName("content",this.props.className),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentMouseDown,onMouseUp:this.handleContentMouseUp,role:this.props.role,"aria-label":this.props.contentLabel},this.props.children))}})},function(e,t){function o(e){if("string"==typeof e){var t=document.querySelectorAll(e);e="length"in t?t[0]:t}return l=e||l}function r(e){s(e),(e||l).setAttribute("aria-hidden","true")}function n(e){s(e),(e||l).removeAttribute("aria-hidden")}function a(e,t){e?r(t):n(t)}function s(e){if(!e&&!l)throw new Error("react-modal: You must set an element with `Modal.setAppElement(el)` to make this accessible")}function i(){l=document.body}var l="undefined"!=typeof document?document.body:null;t.toggle=a,t.setElement=o,t.show=n,t.hide=r,t.resetForTesting=i},function(e,t,o){function r(e){l=!0}function n(e){if(l){if(l=!1,!s)return;setTimeout(function(){if(!s.contains(document.activeElement)){var e=a(s)[0]||s;e.focus()}},0)}}var a=o(26),s=null,i=null,l=!1;t.markForFocusLater=function(){i=document.activeElement},t.returnFocus=function(){try{i.focus()}catch(e){console.warn("You tried to return focus to "+i+" but it is not in the DOM anymore")}i=null},t.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",r,!1),document.addEventListener("focus",n,!0)):(window.attachEvent("onBlur",r),document.attachEvent("onFocus",n))},t.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",r),document.removeEventListener("focus",n)):(window.detachEvent("onBlur",r),document.detachEvent("onFocus",n))}},function(e,t,o){var r=o(26);e.exports=function(e,t){var o=r(e);if(!o.length)return void t.preventDefault();var n=o[t.shiftKey?0:o.length-1],a=n===document.activeElement||e===document.activeElement;if(a){t.preventDefault();var s=o[t.shiftKey?o.length-1:0];s.focus()}}},function(e,t,o){e.exports=o(56)},function(e,t){function o(e,t){if(e.indexOf)return e.indexOf(t);for(var o=0,r=e.length;o-1?r:(r.push(e),t.className=r.join(" "),r)}},r.prototype.remove=function(e){var t=this.el;if(t&&""!==t.className){var r=t.className.split(" "),n=o(r,e);return n>-1&&r.splice(n,1),t.className=r.join(" "),r}},r.prototype.has=function(e){var t=this.el;if(t){var r=t.className.split(" ");return o(r,e)>-1}},r.prototype.toggle=function(e){var t=this.el;t&&(this.has(e)?this.remove(e):this.add(e))}},function(e,t,o){var r;/*!
Copyright (c) 2015 Jed Watson.
Based on code that is Copyright 2013-2015, Facebook, Inc.
All rights reserved.
diff --git a/examples/js/custom/delete-button/fully-custom-delete-button.js b/examples/js/custom/delete-button/fully-custom-delete-button.js
index 5311b2ef2..85d13c712 100644
--- a/examples/js/custom/delete-button/fully-custom-delete-button.js
+++ b/examples/js/custom/delete-button/fully-custom-delete-button.js
@@ -2,7 +2,7 @@
/* eslint no-unused-vars: 0 */
/* eslint no-alert: 0 */
import React from 'react';
-import { BootstrapTable, TableHeaderColumn, InsertButton } from 'react-bootstrap-table';
+import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
@@ -21,7 +21,7 @@ function addProducts(quantity) {
addProducts(5);
-export default class FullyCustomInsertButtonTable extends React.Component {
+export default class FullyCustomDeleteButtonTable extends React.Component {
createCustomDeleteButton = (onBtnClick) => {
return (
diff --git a/examples/js/custom/demo.js b/examples/js/custom/demo.js
index 0e7261cb5..8f751762c 100644
--- a/examples/js/custom/demo.js
+++ b/examples/js/custom/demo.js
@@ -7,6 +7,7 @@ import FullyCustomInsertModalHeaderTable from './insert-modal/fully-custom-inser
import DefaultCustomInsertModalFooterTable from './insert-modal/default-custom-insert-modal-footer';
import FullyCustomInsertModalFooterTable from './insert-modal/fully-custom-insert-modal-footer';
import CustomInsertModalBodyTable from './insert-modal/custom-insert-modal-body';
+import CustomInsertModalFieldTable from './insert-modal/custom-insert-modal-field';
import CustomInsertModalTable from './insert-modal/custom-insert-modal';
import DefaultCustomInsertButtonTable from './insert-button/default-custom-insert-button';
import FullyCustomInsertButtonTable from './insert-button/fully-custom-insert-button';
@@ -55,6 +56,10 @@ class Demo extends React.Component {
{ renderLinks('custom/insert-modal/custom-insert-modal-body.js') }
+
+ { renderLinks('custom/insert-modal/custom-insert-modal-field.js') }
+
+
{ renderLinks('custom/insert-modal/custom-insert-modal.js') }
diff --git a/examples/js/custom/insert-modal/custom-insert-modal-field.js b/examples/js/custom/insert-modal/custom-insert-modal-field.js
new file mode 100644
index 000000000..50b67dde7
--- /dev/null
+++ b/examples/js/custom/insert-modal/custom-insert-modal-field.js
@@ -0,0 +1,93 @@
+/* eslint max-len: 0 */
+/* eslint no-unused-vars: 0 */
+/* eslint no-alert: 0 */
+import React from 'react';
+import ReactDOM from 'react-dom';
+import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
+
+
+const products = [];
+const fruits = [ 'banana', 'apple', 'orange', 'tomato', 'strawberries' ];
+function addProducts(quantity) {
+ const startId = products.length;
+ for (let i = 0; i < quantity; i++) {
+ const id = startId + i;
+ products.push({
+ id: id,
+ name: fruits[i],
+ sales: i % 2 ? 'Yes' : 'No',
+ price: 100 + i
+ });
+ }
+}
+
+addProducts(5);
+
+class SalesRadioField extends React.Component {
+
+ getFieldValue = () => {
+ return this.refs.yes.checked ? 'Yes' : 'No';
+ }
+
+ render() {
+ return (
+
+
+
+
+ );
+ }
+}
+
+export default class CustomInsertModalFieldTable extends React.Component {
+
+ customKeyField = (column, attr, editorClass, ignoreEditable) => {
+ const seqId = this.refs.table.state.data.length;
+ return (
+
+ );
+ }
+
+ customNameField = (column, attr, editorClass, ignoreEditable) => {
+ return (
+
+ );
+ }
+
+ customSaleField = (column, attr, editorClass, ignoreEditable) => {
+ /*
+ Sometime, your field is not only a HTML element, like radio, checkbox etc.
+ In this case, you are suppose to be prodived a specific method name for
+ react-bootstrap-table to get the value for this field.
+
+ Notes:
+ 1. You are suppose to be added ref to your custom React class
+ 2. You are suppose to be implement getFieldValue function and return the value that user input
+ */
+ return (
+
+ );
+ }
+
+ render() {
+ const options = {
+ insertModalField: this.createCustomModalField
+ };
+ return (
+
+ Product ID
+ Product Name
+ On Sales?
+ Product Price
+
+ );
+ }
+}
diff --git a/examples/js/expandRow/demo.js b/examples/js/expandRow/demo.js
index e343927e0..523ac10c3 100644
--- a/examples/js/expandRow/demo.js
+++ b/examples/js/expandRow/demo.js
@@ -1,6 +1,7 @@
/* eslint max-len: 0 */
import React from 'react';
import ExpandRow from './expandRow';
+import SingleExpandRow from './single-expanding';
import ExpandByColumn from './expand-row-by-column';
import ManageExpandExternal from './manage-expanding';
import ExpandWithSelection from './expand-row-with-selection';
@@ -20,6 +21,10 @@ class Demo extends React.Component {
You can insert your customize component as a expand component
+
+ { renderLinks('expandRow/single-expanding.js') }
+
+
{ renderLinks('expandRow/expand-indicator.js') }
diff --git a/examples/js/expandRow/single-expanding.js b/examples/js/expandRow/single-expanding.js
new file mode 100644
index 000000000..b7daff90a
--- /dev/null
+++ b/examples/js/expandRow/single-expanding.js
@@ -0,0 +1,88 @@
+/* eslint max-len: 0 */
+import React from 'react';
+import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
+
+const products = [];
+
+function addProducts(quantity) {
+ const startId = products.length;
+ for (let i = 0; i < quantity; i++) {
+ const id = startId + i;
+ if (i < 3) {
+ products.push({
+ id: id,
+ name: 'Item name ' + id,
+ price: 2100 + i,
+ expand: [ {
+ fieldA: 'test1',
+ fieldB: (i + 1) * 99,
+ fieldC: (i + 1) * Math.random() * 100,
+ fieldD: '123eedd' + i
+ }, {
+ fieldA: 'test2',
+ fieldB: i * 99,
+ fieldC: i * Math.random() * 100,
+ fieldD: '123eedd' + i
+ } ]
+ });
+ } else {
+ products.push({
+ id: id,
+ name: 'Item name ' + id,
+ price: 2100 + i
+ });
+ }
+ }
+}
+addProducts(5);
+
+class BSTable extends React.Component {
+ render() {
+ if (this.props.data) {
+ return (
+
+ Field A
+ Field B
+ Field C
+ Field D
+ );
+ } else {
+ return (?
);
+ }
+ }
+}
+
+export default class SingleExpandRow extends React.Component {
+ constructor(props) {
+ super(props);
+ }
+
+ isExpandableRow(row) {
+ if (row.id < 4) return true;
+ else return false;
+ }
+
+ expandComponent(row) {
+ return (
+
+ );
+ }
+
+ render() {
+ const options = {
+ expandRowBgColor: 'rgb(242, 255, 163)',
+ onlyOneExpanding: true
+ };
+ return (
+
+ Product ID
+ Product Name
+ Product Price
+
+ );
+ }
+}
diff --git a/examples/js/manipulation/demo.js b/examples/js/manipulation/demo.js
index cbdd9304c..cad3fa88e 100644
--- a/examples/js/manipulation/demo.js
+++ b/examples/js/manipulation/demo.js
@@ -2,9 +2,11 @@
import React from 'react';
import InsertRowTable from './insert-row-table';
import DeleteRowTable from './delete-row-table';
+import StrictSearchTable from './strict-search-table';
import SearchTable from './search-table';
import ColumnFilterTable from './filter-table';
import MultiSearchTable from './multi-search-table';
+import StrictMultiSearchTable from './strict-multi-search-table';
import ExportCSVTable from './export-csv-table';
import ExportCSVColumnTable from './export-csv-column-table';
import DeleteRowCustomComfirmTable from './del-row-custom-confirm';
@@ -20,133 +22,158 @@ class Demo extends React.Component {
-
Insert Row Example
+
{ 'Insert Row Example' }
-
Source in /examples/js/manipulation/insert-row-table.js
+ { 'Source in /examples/js/manipulation/insert-row-table.js' }
-
Delete Row Example
+
{ 'Delete Row Example' }
-
Source in /examples/js/manipulation/delete-row-table.js
+ { 'Source in /examples/js/manipulation/delete-row-table.js' }
-
Table Search Example(Include after search hook)
+
{ 'Table Search Example(Include after search hook)' }
-
Source in /examples/js/manipulation/search-table.js
- See your console to watch information of after searching.
- The Product ID has searchable
set to false
.
-
+ { 'Source in /examples/js/manipulation/strict-search-table.js' }
+ { 'The table\'s ' }{ 'strictSearch' }
{ ' is by default ' }{ 'true' }
{ '.' }
+ { 'See your console to watch information of after searching.' }
+ { 'The Product ID has ' }{ 'searchable' }
{ ' set to ' }{ 'false' }
{ '.' }
+
-
Table Search Example with Clear Button
+
{ 'Table Search Example(Use space to delimited search text, ex:"name banana")' }
-
Source in /examples/js/manipulation/search-clear-table.js
- The Product Name has searchable
set to false
.
-
+ { 'Source in /examples/js/manipulation/search-table.js' }
+ { 'The table\'s ' }{ 'strictSearch' }
{ ' is set to ' }{ 'false' }
{ '.' }
+ { 'See your console to watch information of after searching.' }
+ { 'The Product ID has ' }{ 'searchable' }
{ ' set to ' }{ 'false' }
{ '.' }
+
-
Table Multi Search Example(Use space to delimited search text, ex:3 4)
+
{ 'Table Multi Search Example(Use space to delimited search text, ex:"3 4")' }
-
Source in /examples/js/manipulation/multi-search-table.js
- The Product ID has searchable
set to false
.
+ { 'Source in /examples/js/manipulation/multi-search-table.js' }
+ { 'The table\'s ' }{ 'strictSearch' }
{ ' is by default ' }{ 'false' }
{ '.' }
+ { 'The Product ID has ' }{ 'searchable' }
{ ' set to ' }{ 'false' }
{ '.' }
-
Search for custom format data
+
{ 'Table Multi Search Example(Use space to delimited search text, ex:"3 orange")' }
+
+
{ 'Source in /examples/js/manipulation/strict-multi-search-table.js' }
+ { 'The table\'s ' }{ 'strictSearch' }
{ ' is set to ' }{ 'true' }
{ '.' }
+ { 'The Product ID has ' }{ 'searchable' }
{ ' set to ' }{ 'false' }
{ '.' }
+
+
+
+
+
+
+
{ 'Table Search Example with Clear Button' }
+
+
{ 'Source in /examples/js/manipulation/search-clear-table.js' }
+ { 'The Product Name has ' }{ 'searchable' }
{ ' set to ' }{ 'false' }
{ '.' }
+
+
+
+
+
+
+
{ 'Search for custom format data' }
-
You can custom the filter value by giving filterValue
when searching or filtering
- For example, the second field is formatted from an object, and you can searh on its type by keying Cloud, Mail, Insert, Modify, Money
- You can also search or filter the column after formatted, just enable filterFormatted
+ { 'You can custom the filter value by giving ' }{ 'filterValue' }
{ ' when searching or filtering' }
+ { 'For example, the second field is formatted from an object, and you can searh on its type by keying Cloud, Mail, Insert, Modify, Money' }
+ { 'You can also search or filter the column after formatted, just enable ' }{ 'filterFormatted' }
- Source in /examples/js/manipulation/search-format-table.js
+ { 'Source in /examples/js/manipulation/search-format-table.js' }
-
Debounce Search Table Example(Use searchDelayTime props to set your search delay time)
+
{ 'Debounce Search Table Example(Use searchDelayTime props to set your search delay time)' }
-
Source in /examples/js/manipulation/debounce-search-table.js
- use searchDelayTime
for options
object to set delay time in search input and default is 0.
+ { 'Source in /examples/js/manipulation/debounce-search-table.js' }
+ { 'use ' }{ 'searchDelayTime' }
{ ' for ' }{ 'options' }
{ ' object to set delay time in search input and default is 0.' }
-
Default Search Table
+
{ 'Default Search Table' }
-
Source in /examples/js/manipulation/default-search-table.js
+ { 'Source in /examples/js/manipulation/default-search-table.js' }
-
Column Filter Example
+
{ 'Column Filter Example' }
-
Source in /examples/js/manipulation/filter-table.js
- See your console to watch information of after column filtering.
+ { 'Source in /examples/js/manipulation/filter-table.js' }
+ { 'See your console to watch information of after column filtering.' }
-
Export CSV Example
+
{ 'Export CSV Example' }
-
Source in /examples/js/manipulation/export-csv-table.js
- Use csvFormat
to format cell when exporting.
- Use csvHeader
to change the header text in csv.
- Use csvFormatExtraData
to assign your extra data for formatting csv cell data.
+ { 'Source in /examples/js/manipulation/export-csv-table.js' }
+ { 'Use ' }{ 'csvFormat' }
{ ' to format cell when exporting.' }
+ { 'Use ' }{ 'csvHeader' }
{ ' to change the header text in csv.' }
+ { 'Use ' }{ 'csvFormatExtraData' }
{ ' to assign your extra data for formatting csv cell data.' }
-
Export CSV Column Example
+
{ 'Export CSV Column Example' }
-
Source in /examples/js/manipulation/export-csv-column-table.js
- Use export
to ask react-bootstrap-table
to export hidden column
- For example, The ID column is hidden, but can be exported by assigning export
- You can also give export=false
to ignore this column on exporting
+ { 'Source in /examples/js/manipulation/export-csv-column-table.js' }
+ { 'Use ' }{ 'export' }
{ ' to ask ' }{ 'react-bootstrap-table' }
{ ' to export hidden column' }
+ { 'For example, The ID column is hidden, but can be exported by assigning ' }{ 'export' }
+ { 'You can also give ' }{ 'export=false' }
{ ' to ignore this column on exporting' }
-
A Custom add/delete/exportcsv Button Text Example
+
{ 'A Custom add/delete/exportcsv Button Text Example' }
-
Source in /examples/js/manipulation/custom-btn-text-table.js
+ { 'Source in /examples/js/manipulation/custom-btn-text-table.js' }
-
Custom Confirmation for row deletion Example
+
{ 'Custom Confirmation for row deletion Example' }
-
Source in /examples/js/manipulation/del-row-custom-confirm.js
+ { 'Source in /examples/js/manipulation/del-row-custom-confirm.js' }
diff --git a/examples/js/manipulation/search-table.js b/examples/js/manipulation/search-table.js
index 48c1e986c..10e247b67 100644
--- a/examples/js/manipulation/search-table.js
+++ b/examples/js/manipulation/search-table.js
@@ -36,7 +36,7 @@ const options = {
export default class SearchTable extends React.Component {
render() {
return (
-
+
Product ID
Fruit Name
Product Price
diff --git a/examples/js/manipulation/strict-multi-search-table.js b/examples/js/manipulation/strict-multi-search-table.js
new file mode 100644
index 000000000..eb3f13ab6
--- /dev/null
+++ b/examples/js/manipulation/strict-multi-search-table.js
@@ -0,0 +1,34 @@
+/* eslint max-len: 0 */
+import React from 'react';
+import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
+
+
+const products = [];
+
+function addProducts(quantity) {
+ const startId = products.length;
+ const fruits = [ 'banana', 'apple', 'orange', 'tomato', 'strawberries', 'cherries' ];
+ for (let i = 0; i < quantity; i++) {
+ const id = startId + i;
+ products.push({
+ id: id,
+ name: 'Fruits: ' + fruits[i] + ' and ' + fruits[i + 1],
+ price: 2100 + i
+ });
+ }
+}
+
+addProducts(5);
+
+
+export default class StrictMultiSearchTable extends React.Component {
+ render() {
+ return (
+
+ Product ID
+ Fruits
+ Price
+
+ );
+ }
+}
diff --git a/examples/js/manipulation/strict-search-table.js b/examples/js/manipulation/strict-search-table.js
new file mode 100644
index 000000000..5ff4ac3d8
--- /dev/null
+++ b/examples/js/manipulation/strict-search-table.js
@@ -0,0 +1,46 @@
+/* eslint max-len: 0 */
+/* eslint no-console: 0 */
+import React from 'react';
+import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
+
+
+const products = [];
+
+function addProducts(quantity) {
+ const startId = products.length;
+ const fruits = [ 'banana', 'apple', 'orange', 'tomato', 'strawberries' ];
+ for (let i = 0; i < quantity; i++) {
+ const id = startId + i;
+ products.push({
+ id: id,
+ name: 'Fruit name is ' + fruits[i],
+ price: 2100 + i
+ });
+ }
+}
+
+addProducts(5);
+
+function afterSearch(searchText, result) {
+ console.log('Your search text is ' + searchText);
+ console.log('Result is:');
+ for (let i = 0; i < result.length; i++) {
+ console.log('Fruit: ' + result[i].id + ', ' + result[i].name + ', ' + result[i].price);
+ }
+}
+
+const options = {
+ afterSearch: afterSearch // define a after search hook
+};
+
+export default class StrictSearchTable extends React.Component {
+ render() {
+ return (
+
+ Product ID
+ Fruit Name
+ Product Price
+
+ );
+ }
+}
diff --git a/package.json b/package.json
index 72ad5f892..514b9f2f4 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "react-bootstrap-table",
- "version": "4.0.0-beta.1",
+ "version": "4.0.0-beta.2",
"description": "It's a react table for bootstrap",
"main": "./lib/index.js",
"repository": {
@@ -9,6 +9,7 @@
},
"scripts": {
"lint": "eslint src",
+ "test": "jest",
"start": "gulp example-server"
},
"keywords": [
@@ -51,6 +52,7 @@
"gulp-cssmin": "^0.1.7",
"gulp-shell": "^0.5.2",
"history": "3.0.0",
+ "jest-cli": "^19.0.2",
"jquery": "^2.1.4",
"jsx-loader": "^0.13.2",
"react": "^0.14.3 || ^15.0.0",
@@ -74,7 +76,7 @@
"react": "^0.14.3 || ^15.0.0"
},
"jest": {
- "scriptPreprocessor": "/preprocessor.js",
+ "testEnvironment": "node",
"unmockedModulePathPatterns": [
"/node_modules/react"
]
diff --git a/src/BootstrapTable.js b/src/BootstrapTable.js
index 553db7e90..5a7a5d01f 100644
--- a/src/BootstrapTable.js
+++ b/src/BootstrapTable.js
@@ -98,6 +98,7 @@ class BootstrapTable extends Component {
keyField: keyField,
colInfos: this.colInfos,
multiColumnSearch: props.multiColumnSearch,
+ strictSearch: props.strictSearch,
multiColumnSort: props.multiColumnSort,
remote: this.props.remote
});
@@ -178,10 +179,11 @@ class BootstrapTable extends Component {
}
reset() {
+ const { pageStartIndex } = this.props.options;
this.store.clean();
this.setState({
data: this.getTableData(),
- currPage: 1,
+ currPage: Util.getFirstPage(pageStartIndex),
expanding: [],
sizePerPage: Const.SIZE_PER_PAGE_LIST[0],
selectedRowKeys: this.store.getSelectedRowKeys(),
@@ -410,6 +412,7 @@ class BootstrapTable extends Component {
withoutNoDataText={ this.props.options.withoutNoDataText }
expanding={ this.state.expanding }
onExpand={ this.handleExpandRow }
+ onlyOneExpanding={ this.props.options.onlyOneExpanding }
beforeShowError={ this.props.options.beforeShowError }
keyBoardNav={ this.props.keyBoardNav }
onNavigateCell={ this.handleNavigateCell }
@@ -499,18 +502,7 @@ class BootstrapTable extends Component {
return;
}
- // We calculate an offset here in order to properly fetch the indexed data,
- // despite the page start index not always being 1
- let normalizedPage;
- if (pageStartIndex !== undefined) {
- const offset = Math.abs(Const.PAGE_START_INDEX - pageStartIndex);
- normalizedPage = page + offset;
- } else {
- normalizedPage = page;
- }
-
- const result = this.store.page(normalizedPage, sizePerPage).get();
-
+ const result = this.store.page(Util.getNormalizedPage(pageStartIndex, page), sizePerPage).get();
this.setState({ data: result, reset: false });
}
@@ -543,8 +535,6 @@ class BootstrapTable extends Component {
let { x, y, currPage } = this.state;
x += offSetX;
y += offSetY;
- // currPage += 1;
- // console.log(currPage);
const columns = this.store.getColInfos();
const visibleRowSize = this.state.data.length;
@@ -667,16 +657,17 @@ class BootstrapTable extends Component {
handleShowOnlySelected = () => {
this.store.ignoreNonSelected();
+ const { pageStartIndex } = this.props.options;
let result;
if (this.props.pagination) {
- result = this.store.page(1, this.state.sizePerPage).get();
+ result = this.store.page(Util.getNormalizedPage(pageStartIndex), this.state.sizePerPage).get();
} else {
result = this.store.get();
}
this.setState({
data: result,
reset: false,
- currPage: this.props.options.pageStartIndex || Const.PAGE_START_INDEX
+ currPage: Util.getFirstPage(pageStartIndex)
});
}
@@ -859,14 +850,14 @@ class BootstrapTable extends Component {
}
handleFilterData = filterObj => {
- const { onFilterChange } = this.props.options;
+ const { onFilterChange, pageStartIndex } = this.props.options;
if (onFilterChange) {
const colInfos = this.store.getColInfos();
onFilterChange(filterObj, colInfos);
}
this.setState({
- currPage: this.props.options.pageStartIndex || Const.PAGE_START_INDEX,
+ currPage: Util.getFirstPage(pageStartIndex),
reset: false
});
@@ -889,7 +880,7 @@ class BootstrapTable extends Component {
if (this.props.pagination) {
const { sizePerPage } = this.state;
- result = this.store.page(1, sizePerPage).get();
+ result = this.store.page(Util.getNormalizedPage(pageStartIndex), sizePerPage).get();
} else {
result = this.store.get();
}
@@ -944,14 +935,14 @@ class BootstrapTable extends Component {
if (this.refs.toolbar) {
this.refs.toolbar.setSearchInput(searchText);
}
- const { onSearchChange } = this.props.options;
+ const { onSearchChange, pageStartIndex } = this.props.options;
if (onSearchChange) {
const colInfos = this.store.getColInfos();
onSearchChange(searchText, colInfos, this.props.multiColumnSearch);
}
this.setState({
- currPage: this.props.options.pageStartIndex || Const.PAGE_START_INDEX,
+ currPage: Util.getFirstPage(pageStartIndex),
reset: false
});
@@ -974,7 +965,7 @@ class BootstrapTable extends Component {
let result;
if (this.props.pagination) {
const { sizePerPage } = this.state;
- result = this.store.page(1, sizePerPage).get();
+ result = this.store.page(Util.getNormalizedPage(pageStartIndex), sizePerPage).get();
} else {
result = this.store.get();
}
@@ -1058,6 +1049,7 @@ class BootstrapTable extends Component {
field: props.dataField,
hiddenOnInsert: props.hiddenOnInsert,
keyValidator: props.keyValidator,
+ customInsertEditor: props.customInsertEditor,
// when you want same auto generate value and not allow edit, example ID field
autoValue: props.autoValue || false,
// for create editor, no params for column.editable() indicate that editor for new row
@@ -1072,6 +1064,7 @@ class BootstrapTable extends Component {
name: children.props.headerText || children.props.children,
field: children.props.dataField,
editable: children.props.editable,
+ customInsertEditor: children.props.customInsertEditor,
hiddenOnInsert: children.props.hiddenOnInsert,
keyValidator: children.props.keyValidator
} ];
@@ -1234,11 +1227,11 @@ class BootstrapTable extends Component {
const { sizePerPage } = this.state;
if (atTheBeginning) {
- const firstPage = this.props.options.pageStartIndex || Const.PAGE_START_INDEX;
- result = this.store.page(firstPage, sizePerPage).get();
+ const { pageStartIndex } = this.props.options;
+ result = this.store.page(Util.getNormalizedPage(pageStartIndex), sizePerPage).get();
this.setState({
data: result,
- currPage: firstPage,
+ currPage: Util.getFirstPage(pageStartIndex),
reset: false
});
} else {
@@ -1308,6 +1301,8 @@ BootstrapTable.propTypes = {
insertRow: PropTypes.bool,
deleteRow: PropTypes.bool,
search: PropTypes.bool,
+ multiColumnSearch: PropTypes.bool,
+ strictSearch: PropTypes.bool,
columnFilter: PropTypes.bool,
trClassName: PropTypes.any,
tableStyle: PropTypes.object,
@@ -1395,6 +1390,7 @@ BootstrapTable.propTypes = {
expandRowBgColor: PropTypes.string,
expandBy: PropTypes.string,
expanding: PropTypes.array,
+ onlyOneExpanding: PropTypes.bool,
beforeShowError: PropTypes.func,
printToolBar: PropTypes.bool
}),
@@ -1457,6 +1453,7 @@ BootstrapTable.defaultProps = {
deleteRow: false,
search: false,
multiColumnSearch: false,
+ strictSearch: undefined,
multiColumnSort: 1,
columnFilter: false,
trClassName: '',
@@ -1510,7 +1507,7 @@ BootstrapTable.defaultProps = {
nextPageTitle: Const.NEXT_PAGE_TITLE,
firstPageTitle: Const.FIRST_PAGE_TITLE,
lastPageTitle: Const.LAST_PAGE_TITLE,
- pageStartIndex: undefined,
+ pageStartIndex: 1,
searchDelayTime: undefined,
exportCSVText: Const.EXPORT_CSV_TEXT,
insertText: Const.INSERT_BTN_TEXT,
@@ -1538,6 +1535,7 @@ BootstrapTable.defaultProps = {
expandRowBgColor: undefined,
expandBy: Const.EXPAND_BY_ROW,
expanding: [],
+ onlyOneExpanding: false,
beforeShowError: undefined,
printToolBar: true
},
diff --git a/src/TableBody.js b/src/TableBody.js
index 08b152b59..75d9bc374 100644
--- a/src/TableBody.js
+++ b/src/TableBody.js
@@ -303,7 +303,8 @@ class TableBody extends Component {
expandableRow,
selectRow: {
clickToExpand
- }
+ },
+ onlyOneExpanding
} = this.props;
const selectRowAndExpand = this._isSelectRowDefined() && !clickToExpand ? false : true;
columnIndex = this._isSelectRowDefined() ? columnIndex - 1 : columnIndex;
@@ -320,7 +321,8 @@ class TableBody extends Component {
if (expanding.indexOf(rowKey) > -1) {
expanding = expanding.filter(k => k !== rowKey);
} else {
- expanding.push(rowKey);
+ if (onlyOneExpanding) expanding = [ rowKey ];
+ else expanding.push(rowKey);
}
this.props.onExpand(expanding);
}
@@ -489,6 +491,7 @@ TableBody.propTypes = {
expandBy: PropTypes.string,
expanding: PropTypes.array,
onExpand: PropTypes.func,
+ onlyOneExpanding: PropTypes.bool,
beforeShowError: PropTypes.func,
keyBoardNav: PropTypes.oneOfType([ PropTypes.bool, PropTypes.object ]),
x: PropTypes.number,
diff --git a/src/pagination/PaginationList.js b/src/pagination/PaginationList.js
index 3011236fc..93c832d4d 100644
--- a/src/pagination/PaginationList.js
+++ b/src/pagination/PaginationList.js
@@ -272,10 +272,10 @@ class PaginationList extends Component {
if (i >= this.props.pageStartIndex) pages.push(i);
}
- if (endPage <= this.lastPage) {
+ if (endPage <= this.lastPage && pages.length > 1) {
pages.push(this.props.nextPage);
}
- if (endPage !== this.totalPages && this.props.withFirstAndLast) {
+ if (endPage !== this.lastPage && this.props.withFirstAndLast) {
pages.push(this.props.lastPage);
}
diff --git a/src/pagination/SizePerPageDropDown.js b/src/pagination/SizePerPageDropDown.js
index 74d0fea26..2bf2af6e0 100644
--- a/src/pagination/SizePerPageDropDown.js
+++ b/src/pagination/SizePerPageDropDown.js
@@ -1,5 +1,7 @@
import React, { Component, PropTypes } from 'react';
+const sizePerPageDefaultClass = 'react-bs-table-sizePerPage-dropdown';
+
class SizePerPageDropDown extends Component {
render() {
const {
@@ -17,7 +19,8 @@ class SizePerPageDropDown extends Component {
const dropDownStyle = { visibility: hidden ? 'hidden' : 'visible' };
return (
-
+