@myunisoft/design-system 0.21.0-beta.1 → 0.21.1-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +113 -113
- package/dist/index.css.map +1 -1
- package/dist/index.js +552 -2416
- package/dist/index.js.map +1 -1
- package/package.json +1 -2
package/dist/index.js
CHANGED
|
@@ -7,7 +7,6 @@ var $gXNCa$babelruntimehelpersslicedToArray = require("@babel/runtime/helpers/sl
|
|
|
7
7
|
var $gXNCa$lodashmin = require("lodash/min");
|
|
8
8
|
var $gXNCa$proptypes = require("prop-types");
|
|
9
9
|
var $gXNCa$react = require("react");
|
|
10
|
-
var $gXNCa$reactvirtualized = require("react-virtualized");
|
|
11
10
|
var $gXNCa$muiutilsdeprecatedPropType = require("@mui/utils/deprecatedPropType");
|
|
12
11
|
var $gXNCa$i18next = require("i18next");
|
|
13
12
|
var $gXNCa$muimaterial = require("@mui/material");
|
|
@@ -15,6 +14,8 @@ var $gXNCa$muistylesmakeStyles = require("@mui/styles/makeStyles");
|
|
|
15
14
|
var $gXNCa$babelruntimehelpersextends = require("@babel/runtime/helpers/extends");
|
|
16
15
|
var $gXNCa$babelruntimehelpersobjectWithoutProperties = require("@babel/runtime/helpers/objectWithoutProperties");
|
|
17
16
|
var $gXNCa$classnames = require("classnames");
|
|
17
|
+
var $gXNCa$babelruntimehelpersclassCallCheck = require("@babel/runtime/helpers/classCallCheck");
|
|
18
|
+
var $gXNCa$babelruntimehelperscreateClass = require("@babel/runtime/helpers/createClass");
|
|
18
19
|
var $gXNCa$lodashget = require("lodash/get");
|
|
19
20
|
var $gXNCa$lodashisArray = require("lodash/isArray");
|
|
20
21
|
var $gXNCa$lodashisNil = require("lodash/isNil");
|
|
@@ -35,12 +36,13 @@ var $gXNCa$lodashisEmpty = require("lodash/isEmpty");
|
|
|
35
36
|
var $gXNCa$lodashfirst = require("lodash/first");
|
|
36
37
|
var $gXNCa$reactspinnersClipLoader = require("react-spinners/ClipLoader");
|
|
37
38
|
var $gXNCa$muimaterialstyles = require("@mui/material/styles");
|
|
39
|
+
var $gXNCa$babelruntimeregenerator = require("@babel/runtime/regenerator");
|
|
38
40
|
var $gXNCa$babelruntimehelpersasyncToGenerator = require("@babel/runtime/helpers/asyncToGenerator");
|
|
39
41
|
var $gXNCa$lodashfind = require("lodash/find");
|
|
40
|
-
var $gXNCa$exceljs = require("exceljs");
|
|
41
42
|
var $gXNCa$lodashescapeRegExp = require("lodash/escapeRegExp");
|
|
42
|
-
var $gXNCa$
|
|
43
|
+
var $gXNCa$exceljs = require("exceljs");
|
|
43
44
|
require("jspdf-autotable");
|
|
45
|
+
var $gXNCa$jspdf = require("jspdf");
|
|
44
46
|
var $gXNCa$reactdropzone = require("react-dropzone");
|
|
45
47
|
var $gXNCa$muistyleswithStyles = require("@mui/styles/withStyles");
|
|
46
48
|
var $gXNCa$muimaterialIconButton = require("@mui/material/IconButton");
|
|
@@ -51,13 +53,14 @@ var $gXNCa$lodashhead = require("lodash/head");
|
|
|
51
53
|
var $gXNCa$lodashisEqual = require("lodash/isEqual");
|
|
52
54
|
var $gXNCa$lodashuniq = require("lodash/uniq");
|
|
53
55
|
var $gXNCa$muiiconsmaterialSearch = require("@mui/icons-material/Search");
|
|
54
|
-
var $gXNCa$lodashmap = require("lodash/map");
|
|
55
56
|
var $gXNCa$muibaseClickAwayListener = require("@mui/base/ClickAwayListener");
|
|
57
|
+
var $gXNCa$lodashmap = require("lodash/map");
|
|
56
58
|
var $gXNCa$muiiconsmaterialClose = require("@mui/icons-material/Close");
|
|
57
59
|
var $gXNCa$reactinputautosize = require("react-input-autosize");
|
|
58
60
|
var $gXNCa$muiiconsmaterialMoreVert = require("@mui/icons-material/MoreVert");
|
|
59
61
|
var $gXNCa$muiiconsmaterial = require("@mui/icons-material");
|
|
60
62
|
var $gXNCa$lodashorderBy = require("lodash/orderBy");
|
|
63
|
+
var $gXNCa$lodashgroupBy = require("lodash/groupBy");
|
|
61
64
|
|
|
62
65
|
function $parcel$export(e, n, v, s) {
|
|
63
66
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
@@ -121,7 +124,6 @@ var $d72463ab93d2098f$var$_propTypes = $gXNCa$babelruntimehelpersinteropRequireD
|
|
|
121
124
|
|
|
122
125
|
var $d72463ab93d2098f$var$_react = $d72463ab93d2098f$var$_interopRequireWildcard($gXNCa$react);
|
|
123
126
|
|
|
124
|
-
|
|
125
127
|
var $d72463ab93d2098f$var$_AddLine = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("1bdCV")));
|
|
126
128
|
|
|
127
129
|
var $d72463ab93d2098f$var$_Body = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("4qWgC")));
|
|
@@ -216,37 +218,27 @@ var $d72463ab93d2098f$var$defaultConfig = {
|
|
|
216
218
|
selectableRowKey: "id"
|
|
217
219
|
};
|
|
218
220
|
var $d72463ab93d2098f$var$VirtualTable = /*#__PURE__*/ $d72463ab93d2098f$var$_react["default"].memo(/*#__PURE__*/ $d72463ab93d2098f$var$_react["default"].forwardRef(function VirtualTable(_ref, ref) {
|
|
219
|
-
var rowData = _ref.data, maxHeight = _ref.maxHeight,
|
|
221
|
+
var rowData = _ref.data, maxHeight = _ref.maxHeight, configProps = _ref.config, selectRows = _ref.selectRows, handleRowsToDelete = _ref.handleRowsToDelete, handleValidateEdit = _ref.handleValidateEdit, handleValidateAdd = _ref.handleValidateAdd, handleCancel = _ref.handleCancel, _ref$customHeader = _ref.customHeader, customHeader = _ref$customHeader === void 0 ? false : _ref$customHeader, _ref$customFooter = _ref.customFooter, customFooter = _ref$customFooter === void 0 ? false : _ref$customFooter, onCustomScroll = _ref.onCustomScroll, onRowClick = _ref.onRowClick, onRowContextMenu = _ref.onRowContextMenu, isEdit = _ref.isEdit, tableKeyName = _ref.tableKeyName, defaultSelectedRows = _ref.defaultSelectedRows, onFocusChange = _ref.onFocusChange, onKeyDown = _ref.onKeyDown, onClick = _ref.onClick, onDoubleClick = _ref.onDoubleClick, setVTState = _ref.setVTState, validationResolver = _ref.validationResolver, validationRules = _ref.validationRules;
|
|
220
222
|
var styles = (0, $d72463ab93d2098f$var$_styles["default"])();
|
|
221
|
-
var _useState = (0, $d72463ab93d2098f$var$_react.useState)(0), _useState2 = (0, $d72463ab93d2098f$var$_slicedToArray2["default"])(_useState, 2),
|
|
222
|
-
var _useState3 = (0, $d72463ab93d2098f$var$_react.useState)(0), _useState4 = (0, $d72463ab93d2098f$var$_slicedToArray2["default"])(_useState3, 2),
|
|
223
|
-
var _useState5 = (0, $d72463ab93d2098f$var$_react.useState)(0), _useState6 = (0, $d72463ab93d2098f$var$_slicedToArray2["default"])(_useState5, 2),
|
|
224
|
-
var _useState7 = (0, $d72463ab93d2098f$var$_react.useState)(0), _useState8 = (0, $d72463ab93d2098f$var$_slicedToArray2["default"])(_useState7, 2), height = _useState8[0], setHeight = _useState8[1];
|
|
223
|
+
var _useState = (0, $d72463ab93d2098f$var$_react.useState)(0), _useState2 = (0, $d72463ab93d2098f$var$_slicedToArray2["default"])(_useState, 2), width = _useState2[0], setWidth = _useState2[1];
|
|
224
|
+
var _useState3 = (0, $d72463ab93d2098f$var$_react.useState)(0), _useState4 = (0, $d72463ab93d2098f$var$_slicedToArray2["default"])(_useState3, 2), scrollTop = _useState4[0], setScrollTop = _useState4[1];
|
|
225
|
+
var _useState5 = (0, $d72463ab93d2098f$var$_react.useState)(0), _useState6 = (0, $d72463ab93d2098f$var$_slicedToArray2["default"])(_useState5, 2), scrollLeft = _useState6[0], setScrollLeft = _useState6[1];
|
|
225
226
|
var config = $d72463ab93d2098f$var$_objectSpread($d72463ab93d2098f$var$_objectSpread({}, $d72463ab93d2098f$var$defaultConfig), configProps);
|
|
226
|
-
var _config$insertPositio = config.insertPosition, insertPosition = _config$insertPositio === void 0 ? $e902G.INSERT_POSITION.TOP : _config$insertPositio, columnsRaw = config.columns, _config$hasFooter = config.hasFooter, hasFooter = _config$hasFooter === void 0 ? false : _config$hasFooter, _config$hasHeader = config.hasHeader, hasHeader = _config$hasHeader === void 0 ? true : _config$hasHeader, _config$selectableRow = config.selectableRow, selectableRow = _config$selectableRow === void 0 ? false : _config$selectableRow, _config$selectableRow2 = config.selectableRowKey, selectableRowKey = _config$selectableRow2 === void 0 ? "id" : _config$selectableRow2, _config$selectableOnl = config.selectableOnlyOneRow, selectableOnlyOneRow = _config$selectableOnl === void 0 ? false : _config$selectableOnl, customSelectionHeader = config.customSelectionHeader, _config$minCellWidth = config.minCellWidth, minCellWidth = _config$minCellWidth === void 0 ? 100 : _config$minCellWidth, _config$selectableBar = config.selectableBarInfo, selectableBarInfo = _config$selectableBar === void 0 ? false : _config$selectableBar, _config$modeAdd = config.modeAdd, modeAdd = _config$modeAdd === void 0 ? false : _config$modeAdd, _config$modeEdit = config.modeEdit, modeEdit = _config$modeEdit === void 0 ? false : _config$modeEdit, _config$modeDelete = config.modeDelete, modeDelete = _config$modeDelete === void 0 ? false : _config$modeDelete, _config$modeGroup = config.modeGroup, modeGroup = _config$modeGroup === void 0 ? false : _config$modeGroup, _config$alwaysInEditi = config.alwaysInEdition, alwaysInEdition = _config$alwaysInEditi === void 0 ? false : _config$alwaysInEditi, _config$dynamicHeight = config.dynamicHeight, dynamicHeight = _config$dynamicHeight === void 0 ? true : _config$dynamicHeight, _config$wrapHeaderTex = config.wrapHeaderText, wrapHeaderText = _config$wrapHeaderTex === void 0 ? false : _config$wrapHeaderTex, _config$rowHeight = config.rowHeight, rowHeight = _config$rowHeight === void 0 ? 32 : _config$rowHeight, headerHeight = config.headerHeight, _config$fixedColumns = config.fixedColumns, fixedColumns = _config$fixedColumns === void 0 ? 0 : _config$fixedColumns, onCustomAdd = config.onCustomAdd, _config$addOneByOne = config.addOneByOne, addOneByOne = _config$addOneByOne === void 0 ? false : _config$addOneByOne, _config$hasSearchbar = config.hasSearchbar, hasSearchbar = _config$hasSearchbar === void 0 ? true : _config$hasSearchbar, _config$groupKey = config.groupKey, groupKey = _config$groupKey === void 0 ? "id" : _config$groupKey, _config$collapsedGrou = config.collapsedGroup, collapsedGroup = _config$collapsedGrou === void 0 ? false : _config$collapsedGrou, _config$hideToolbar = config.hideToolbar, hideToolbar = _config$hideToolbar === void 0 ? false : _config$hideToolbar, _config$hideCheckbox = config.hideCheckbox, hideCheckbox = _config$hideCheckbox === void 0 ? false : _config$hideCheckbox, _config$defaultOrder = config.defaultOrder, defaultOrder = _config$defaultOrder === void 0 ? "" : _config$defaultOrder, _config$defaultOrderD = config.defaultOrderDirection, defaultOrderDirection = _config$defaultOrderD === void 0 ? $e902G.SORTABLE_DIRECTIONS.ASC : _config$defaultOrderD, addRowLabel = config.addRowLabel, onCustomOrderChange = config.onCustomOrderChange;
|
|
227
|
-
var cache = new $gXNCa$reactvirtualized.CellMeasurerCache({
|
|
228
|
-
fixedWidth: true,
|
|
229
|
-
defaultHeight: rowHeight,
|
|
230
|
-
fixedHeight: true
|
|
231
|
-
});
|
|
232
|
-
var refBodyGrid = (0, $d72463ab93d2098f$var$_react.useRef)(null);
|
|
233
|
-
var refFooterGrid = (0, $d72463ab93d2098f$var$_react.useRef)(null);
|
|
234
|
-
var refHeaderGrid = (0, $d72463ab93d2098f$var$_react.useRef)(null);
|
|
235
|
-
var refToolbar = (0, $d72463ab93d2098f$var$_react.useRef)(null);
|
|
236
|
-
var customHeaderRef = (0, $d72463ab93d2098f$var$_react.useRef)(null);
|
|
237
|
-
var customFooterRef = (0, $d72463ab93d2098f$var$_react.useRef)(null);
|
|
238
|
-
var addLineRef = (0, $d72463ab93d2098f$var$_react.useRef)(null);
|
|
227
|
+
var _config$insertPositio = config.insertPosition, insertPosition = _config$insertPositio === void 0 ? $e902G.INSERT_POSITION.TOP : _config$insertPositio, columnsRaw = config.columns, _config$hasFooter = config.hasFooter, hasFooter = _config$hasFooter === void 0 ? false : _config$hasFooter, _config$hasHeader = config.hasHeader, hasHeader = _config$hasHeader === void 0 ? true : _config$hasHeader, _config$selectableRow = config.selectableRow, selectableRow = _config$selectableRow === void 0 ? false : _config$selectableRow, _config$selectableRow2 = config.selectableRowKey, selectableRowKey = _config$selectableRow2 === void 0 ? "id" : _config$selectableRow2, _config$selectableOnl = config.selectableOnlyOneRow, selectableOnlyOneRow = _config$selectableOnl === void 0 ? false : _config$selectableOnl, customSelectionHeader = config.customSelectionHeader, _config$minCellWidth = config.minCellWidth, minCellWidth = _config$minCellWidth === void 0 ? 100 : _config$minCellWidth, _config$selectableBar = config.selectableBarInfo, selectableBarInfo = _config$selectableBar === void 0 ? false : _config$selectableBar, _config$modeAdd = config.modeAdd, modeAdd = _config$modeAdd === void 0 ? false : _config$modeAdd, _config$modeEdit = config.modeEdit, modeEdit = _config$modeEdit === void 0 ? false : _config$modeEdit, _config$modeDelete = config.modeDelete, modeDelete = _config$modeDelete === void 0 ? false : _config$modeDelete, _config$modeGroup = config.modeGroup, modeGroup = _config$modeGroup === void 0 ? false : _config$modeGroup, _config$alwaysInEditi = config.alwaysInEdition, alwaysInEdition = _config$alwaysInEditi === void 0 ? false : _config$alwaysInEditi, _config$dynamicHeight = config.dynamicHeight, dynamicHeight = _config$dynamicHeight === void 0 ? true : _config$dynamicHeight, _config$wrapHeaderTex = config.wrapHeaderText, wrapHeaderText = _config$wrapHeaderTex === void 0 ? false : _config$wrapHeaderTex, _config$rowHeight = config.rowHeight, rowHeight = _config$rowHeight === void 0 ? 32 : _config$rowHeight, headerHeight = config.headerHeight, _config$fixedColumns = config.fixedColumns, fixedColumns = _config$fixedColumns === void 0 ? 0 : _config$fixedColumns, onCustomAdd = config.onCustomAdd, _config$addOneByOne = config.addOneByOne, addOneByOne = _config$addOneByOne === void 0 ? false : _config$addOneByOne, _config$hasSearchbar = config.hasSearchbar, hasSearchbar = _config$hasSearchbar === void 0 ? true : _config$hasSearchbar, _config$groupKey = config.groupKey, groupKey = _config$groupKey === void 0 ? "id" : _config$groupKey, _config$collapsedGrou = config.collapsedGroup, collapsedGroup = _config$collapsedGrou === void 0 ? false : _config$collapsedGrou, _config$hideToolbar = config.hideToolbar, hideToolbar = _config$hideToolbar === void 0 ? false : _config$hideToolbar, _config$hideCheckbox = config.hideCheckbox, hideCheckbox = _config$hideCheckbox === void 0 ? false : _config$hideCheckbox, _config$defaultOrder = config.defaultOrder, defaultOrder = _config$defaultOrder === void 0 ? "" : _config$defaultOrder, _config$defaultOrderD = config.defaultOrderDirection, defaultOrderDirection = _config$defaultOrderD === void 0 ? $e902G.SORTABLE_DIRECTIONS.ASC : _config$defaultOrderD, addRowLabel = config.addRowLabel, onCustomOrderChange = config.onCustomOrderChange, sortedGroup = config.sortedGroup;
|
|
239
228
|
var _useMachine = (0, $jV35V.useMachine)($d72463ab93d2098f$var$_machine["default"], $d72463ab93d2098f$var$_objectSpread($d72463ab93d2098f$var$_objectSpread({}, $d72463ab93d2098f$var$_machine.initialContext), {}, {
|
|
240
229
|
selectedRows: (0, $idhBf.createSelection)(defaultSelectedRows)
|
|
241
230
|
})), _useMachine2 = (0, $d72463ab93d2098f$var$_slicedToArray2["default"])(_useMachine, 4), state = _useMachine2[0], context = _useMachine2[1], send = _useMachine2[2], can = _useMachine2[3];
|
|
242
|
-
var
|
|
231
|
+
var _useState7 = (0, $d72463ab93d2098f$var$_react.useState)({}), _useState8 = (0, $d72463ab93d2098f$var$_slicedToArray2["default"])(_useState7, 2), searchFilters = _useState8[0], setSearchFilters = _useState8[1];
|
|
243
232
|
var _useSortable = (0, $ckVq7.useSortable)(defaultOrder, defaultOrderDirection, onCustomOrderChange), order = _useSortable.order, orderDirection = _useSortable.orderDirection, onOrderChange = _useSortable.onOrderChange;
|
|
244
233
|
var _useColumns = (0, $d72463ab93d2098f$var$_useColumns2["default"])(columnsRaw, tableKeyName, config), _columns = _useColumns.state, dispatchColumnsSetting = _useColumns.dispatch;
|
|
245
234
|
var _useApiState = (0, $d72463ab93d2098f$var$_useApiState3["default"])(ref), _useApiState2 = (0, $d72463ab93d2098f$var$_slicedToArray2["default"])(_useApiState, 1), apiRef = _useApiState2[0];
|
|
246
235
|
var CHECKBOX_COLUMN = "checkboxColumn";
|
|
247
236
|
var uniqueTableId = (0, $lDpO0.generateId)();
|
|
248
237
|
var data = (0, $d72463ab93d2098f$var$_react.useMemo)(function() {
|
|
249
|
-
if (order)
|
|
238
|
+
if (order) {
|
|
239
|
+
if (modeGroup) return (0, $azJMN.applyGroupSorting)(rowData, _columns, order, orderDirection, groupKey, sortedGroup);
|
|
240
|
+
return (0, $azJMN.applySorting)(rowData, _columns, order, orderDirection);
|
|
241
|
+
}
|
|
250
242
|
return rowData;
|
|
251
243
|
}, [
|
|
252
244
|
rowData,
|
|
@@ -312,7 +304,7 @@ var $d72463ab93d2098f$var$VirtualTable = /*#__PURE__*/ $d72463ab93d2098f$var$_re
|
|
|
312
304
|
var processRowsData = (0, $d72463ab93d2098f$var$_react.useCallback)(function() {
|
|
313
305
|
if (modeGroup) {
|
|
314
306
|
if (collapsedGroup) return (0, $fwYho.processCollapsedGroups)(data);
|
|
315
|
-
return (0, $fwYho.processGroups)(data, groupKey);
|
|
307
|
+
return (0, $fwYho.processGroups)(data, groupKey, order, orderDirection);
|
|
316
308
|
}
|
|
317
309
|
return data;
|
|
318
310
|
}, [
|
|
@@ -322,7 +314,8 @@ var $d72463ab93d2098f$var$VirtualTable = /*#__PURE__*/ $d72463ab93d2098f$var$_re
|
|
|
322
314
|
groupKey
|
|
323
315
|
]);
|
|
324
316
|
(0, $d72463ab93d2098f$var$_react.useEffect)(function() {
|
|
325
|
-
var processedDataRows = processRowsData();
|
|
317
|
+
var processedDataRows = processRowsData();
|
|
318
|
+
// eslint-disable-next-line no-use-before-define
|
|
326
319
|
send("updateCtx", {
|
|
327
320
|
data: processedDataRows
|
|
328
321
|
});
|
|
@@ -348,68 +341,7 @@ var $d72463ab93d2098f$var$VirtualTable = /*#__PURE__*/ $d72463ab93d2098f$var$_re
|
|
|
348
341
|
dataRows,
|
|
349
342
|
searchFilters
|
|
350
343
|
]);
|
|
351
|
-
var handleResize = (0, $d72463ab93d2098f$var$_react.useCallback)(function(dimension) {
|
|
352
|
-
setWidth(dimension.width);
|
|
353
|
-
setHeight(dimension.height);
|
|
354
|
-
}, []);
|
|
355
344
|
var hasSelectionManager = (modeEdit || modeDelete || selectableBarInfo || hasSearchbar) && !hideToolbar;
|
|
356
|
-
var refHeight = (0, $d72463ab93d2098f$var$_react.useMemo)(function() {
|
|
357
|
-
var heightCalculate = 0;
|
|
358
|
-
if (refFooterGrid.current) {
|
|
359
|
-
var _refFooterGrid$curren;
|
|
360
|
-
heightCalculate += refFooterGrid === null || refFooterGrid === void 0 ? void 0 : (_refFooterGrid$curren = refFooterGrid.current) === null || _refFooterGrid$curren === void 0 ? void 0 : _refFooterGrid$curren.clientHeight;
|
|
361
|
-
}
|
|
362
|
-
if (refToolbar.current) {
|
|
363
|
-
var _refToolbar$current;
|
|
364
|
-
heightCalculate += refToolbar === null || refToolbar === void 0 ? void 0 : (_refToolbar$current = refToolbar.current) === null || _refToolbar$current === void 0 ? void 0 : _refToolbar$current.clientHeight;
|
|
365
|
-
}
|
|
366
|
-
if (customHeaderRef.current) {
|
|
367
|
-
var _customHeaderRef$curr;
|
|
368
|
-
heightCalculate += customHeaderRef === null || customHeaderRef === void 0 ? void 0 : (_customHeaderRef$curr = customHeaderRef.current) === null || _customHeaderRef$curr === void 0 ? void 0 : _customHeaderRef$curr.clientHeight;
|
|
369
|
-
}
|
|
370
|
-
if (customFooterRef.current) {
|
|
371
|
-
var _customFooterRef$curr;
|
|
372
|
-
heightCalculate += customFooterRef === null || customFooterRef === void 0 ? void 0 : (_customFooterRef$curr = customFooterRef.current) === null || _customFooterRef$curr === void 0 ? void 0 : _customFooterRef$curr.clientHeight;
|
|
373
|
-
}
|
|
374
|
-
if (refHeaderGrid.current) {
|
|
375
|
-
var _refHeaderGrid$curren, _refHeaderGrid$curren2, _refHeaderGrid$curren3;
|
|
376
|
-
heightCalculate += (refHeaderGrid === null || refHeaderGrid === void 0 ? void 0 : (_refHeaderGrid$curren = refHeaderGrid.current) === null || _refHeaderGrid$curren === void 0 ? void 0 : (_refHeaderGrid$curren2 = _refHeaderGrid$curren.props) === null || _refHeaderGrid$curren2 === void 0 ? void 0 : _refHeaderGrid$curren2.height) || (refHeaderGrid === null || refHeaderGrid === void 0 ? void 0 : (_refHeaderGrid$curren3 = refHeaderGrid.current) === null || _refHeaderGrid$curren3 === void 0 ? void 0 : _refHeaderGrid$curren3.clientHeight);
|
|
377
|
-
}
|
|
378
|
-
if (modeAdd) {
|
|
379
|
-
var _addLineRef$current;
|
|
380
|
-
heightCalculate += (addLineRef === null || addLineRef === void 0 ? void 0 : (_addLineRef$current = addLineRef.current) === null || _addLineRef$current === void 0 ? void 0 : _addLineRef$current.clientHeight) || 32;
|
|
381
|
-
}
|
|
382
|
-
return heightCalculate;
|
|
383
|
-
}, [
|
|
384
|
-
modeAdd,
|
|
385
|
-
refFooterGrid === null || refFooterGrid === void 0 ? void 0 : refFooterGrid.current,
|
|
386
|
-
customHeaderRef === null || customHeaderRef === void 0 ? void 0 : customHeaderRef.current,
|
|
387
|
-
customFooterRef === null || customFooterRef === void 0 ? void 0 : customFooterRef.current,
|
|
388
|
-
refHeaderGrid === null || refHeaderGrid === void 0 ? void 0 : refHeaderGrid.current,
|
|
389
|
-
addLineRef === null || addLineRef === void 0 ? void 0 : addLineRef.current
|
|
390
|
-
]);
|
|
391
|
-
var autoSizerStyle = (0, $d72463ab93d2098f$var$_react.useMemo)(function() {
|
|
392
|
-
return {
|
|
393
|
-
height: "".concat(displayableRows.length * rowHeight + refHeight + verticalPadding, "px"),
|
|
394
|
-
maxHeight: maxHeight,
|
|
395
|
-
width: widthTable
|
|
396
|
-
};
|
|
397
|
-
}, [
|
|
398
|
-
maxHeight,
|
|
399
|
-
widthTable,
|
|
400
|
-
displayableRows
|
|
401
|
-
]);
|
|
402
|
-
var bodyHeight = (0, $d72463ab93d2098f$var$_react.useMemo)(function() {
|
|
403
|
-
var rowsHeight = displayableRows.length * 32;
|
|
404
|
-
var heightCalculate = height - refHeight;
|
|
405
|
-
if (rowsHeight <= parseInt(heightCalculate)) return rowsHeight + verticalPadding;
|
|
406
|
-
return heightCalculate;
|
|
407
|
-
}, [
|
|
408
|
-
height,
|
|
409
|
-
maxHeight,
|
|
410
|
-
refHeight,
|
|
411
|
-
verticalPadding
|
|
412
|
-
]);
|
|
413
345
|
var handleAddClick = function handleAddClick() {
|
|
414
346
|
if (onCustomAdd) onCustomAdd();
|
|
415
347
|
else send("add", {
|
|
@@ -419,24 +351,29 @@ var $d72463ab93d2098f$var$VirtualTable = /*#__PURE__*/ $d72463ab93d2098f$var$_re
|
|
|
419
351
|
});
|
|
420
352
|
};
|
|
421
353
|
var columnsWidth = (0, $d72463ab93d2098f$var$_react.useMemo)(function() {
|
|
422
|
-
return (0, $e902G.calculateColumnsWidth)(columns, width,
|
|
354
|
+
return (0, $e902G.calculateColumnsWidth)(columns, width, minCellWidth);
|
|
423
355
|
}, [
|
|
424
356
|
columns,
|
|
425
|
-
width
|
|
426
|
-
horizontalPadding
|
|
357
|
+
width
|
|
427
358
|
]);
|
|
428
359
|
var columnsTotalWidth = columns.reduce(function(prev, _ref4) {
|
|
429
360
|
var key = _ref4.key;
|
|
430
361
|
return prev += columnsWidth[key];
|
|
431
362
|
}, 0);
|
|
363
|
+
var _getColumnWidth = function _getColumnWidth(_ref5) {
|
|
364
|
+
var index = _ref5.index;
|
|
365
|
+
var key = columns[index].key;
|
|
366
|
+
return columnsWidth[key];
|
|
367
|
+
};
|
|
432
368
|
return /*#__PURE__*/ $d72463ab93d2098f$var$_react["default"].createElement("div", {
|
|
433
369
|
style: {
|
|
434
|
-
maxHeight: maxHeight
|
|
370
|
+
maxHeight: maxHeight || "inherit"
|
|
435
371
|
},
|
|
436
372
|
"data-role": "table",
|
|
437
373
|
id: tableKeyName,
|
|
438
374
|
"data-rows-count": displayableRows === null || displayableRows === void 0 ? void 0 : displayableRows.length,
|
|
439
|
-
"data-columns-count": columns === null || columns === void 0 ? void 0 : columns.length
|
|
375
|
+
"data-columns-count": columns === null || columns === void 0 ? void 0 : columns.length,
|
|
376
|
+
className: styles.GridColumn
|
|
440
377
|
}, /*#__PURE__*/ $d72463ab93d2098f$var$_react["default"].createElement($d72463ab93d2098f$var$_context["default"].Provider, {
|
|
441
378
|
value: {
|
|
442
379
|
state: state,
|
|
@@ -461,98 +398,70 @@ var $d72463ab93d2098f$var$VirtualTable = /*#__PURE__*/ $d72463ab93d2098f$var$_re
|
|
|
461
398
|
}, /*#__PURE__*/ $d72463ab93d2098f$var$_react["default"].createElement($d72463ab93d2098f$var$_ApiRefHandler["default"], null), /*#__PURE__*/ $d72463ab93d2098f$var$_react["default"].createElement("div", {
|
|
462
399
|
id: "vt-totalrows-".concat(uniqueTableId),
|
|
463
400
|
"data-totalrows": displayableRows === null || displayableRows === void 0 ? void 0 : displayableRows.length
|
|
464
|
-
}), /*#__PURE__*/ $d72463ab93d2098f$var$_react["default"].createElement($d72463ab93d2098f$var$_react["default"].Fragment, null, /*#__PURE__*/ $d72463ab93d2098f$var$_react["default"].createElement($
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
},
|
|
529
|
-
onCellFocus: handleCellFocus,
|
|
530
|
-
onCellBlur: handleCellBlur,
|
|
531
|
-
onClick: onClick,
|
|
532
|
-
onDoubleClick: onDoubleClick,
|
|
533
|
-
onRowClick: onRowClick,
|
|
534
|
-
onRowContextMenu: onRowContextMenu,
|
|
535
|
-
width: width,
|
|
536
|
-
focusedCell: currentCell,
|
|
537
|
-
onKeyDown: onKeyDown
|
|
538
|
-
}), modeAdd && insertPosition === $e902G.INSERT_POSITION.BOTTOM && /*#__PURE__*/ $d72463ab93d2098f$var$_react["default"].createElement($d72463ab93d2098f$var$_AddLine["default"], {
|
|
539
|
-
ref: addLineRef,
|
|
540
|
-
onAdd: handleAddClick,
|
|
541
|
-
label: addRowLabel
|
|
542
|
-
}), hasFooter && /*#__PURE__*/ $d72463ab93d2098f$var$_react["default"].createElement($d72463ab93d2098f$var$_Footer["default"], {
|
|
543
|
-
ref: refFooterGrid,
|
|
544
|
-
modeEdit: modeEdit,
|
|
545
|
-
columnWidth: _getColumnWidth,
|
|
546
|
-
displayableRows: displayableRows,
|
|
547
|
-
rowHeight: cache.rowHeight,
|
|
548
|
-
scrollLeft: scrollLeft,
|
|
549
|
-
fixedColumnCount: fixedColumns + +hasCheckBox,
|
|
550
|
-
width: width
|
|
551
|
-
}), customFooter && /*#__PURE__*/ $d72463ab93d2098f$var$_react["default"].cloneElement(customFooter, {
|
|
552
|
-
ref: customFooterRef,
|
|
553
|
-
scrollLeft: scrollLeft
|
|
554
|
-
})));
|
|
555
|
-
});
|
|
401
|
+
}), /*#__PURE__*/ $d72463ab93d2098f$var$_react["default"].createElement($d72463ab93d2098f$var$_react["default"].Fragment, null, customSelectionHeader || hasSelectionManager && /*#__PURE__*/ $d72463ab93d2098f$var$_react["default"].createElement($d72463ab93d2098f$var$_Toolbar["default"], {
|
|
402
|
+
displayableRows: displayableRows,
|
|
403
|
+
setSearchFilters: setSearchFilters,
|
|
404
|
+
handleRowsToDelete: handleRowsToDelete,
|
|
405
|
+
handleValidateEdit: handleValidateEdit,
|
|
406
|
+
handleValidateAdd: handleValidateAdd,
|
|
407
|
+
handleCancel: handleCancel,
|
|
408
|
+
onChangeColumnsSetting: dispatchColumnsSetting
|
|
409
|
+
}), customHeader && /*#__PURE__*/ $d72463ab93d2098f$var$_react["default"].cloneElement(customHeader, {
|
|
410
|
+
fixedColumnCount: fixedColumns + +hasCheckBox,
|
|
411
|
+
scrollLeft: scrollLeft,
|
|
412
|
+
columnWidth: _getColumnWidth
|
|
413
|
+
}), hasHeader && /*#__PURE__*/ $d72463ab93d2098f$var$_react["default"].createElement($d72463ab93d2098f$var$_Header["default"], {
|
|
414
|
+
columnWidth: _getColumnWidth,
|
|
415
|
+
height: wrapHeaderText ? headerHeight : 32,
|
|
416
|
+
rowHeight: wrapHeaderText ? headerHeight : 32,
|
|
417
|
+
scrollLeft: scrollLeft,
|
|
418
|
+
fixedColumnCount: fixedColumns + +hasCheckBox,
|
|
419
|
+
width: width,
|
|
420
|
+
displayableRows: displayableRows,
|
|
421
|
+
order: order,
|
|
422
|
+
orderDirection: orderDirection,
|
|
423
|
+
onOrderChange: onOrderChange
|
|
424
|
+
}), modeAdd && insertPosition === $e902G.INSERT_POSITION.TOP && /*#__PURE__*/ $d72463ab93d2098f$var$_react["default"].createElement($d72463ab93d2098f$var$_AddLine["default"], {
|
|
425
|
+
onAdd: handleAddClick,
|
|
426
|
+
label: addRowLabel
|
|
427
|
+
}), /*#__PURE__*/ $d72463ab93d2098f$var$_react["default"].createElement($d72463ab93d2098f$var$_Body["default"], {
|
|
428
|
+
tableKeyName: tableKeyName,
|
|
429
|
+
columnWidth: _getColumnWidth,
|
|
430
|
+
displayableRows: displayableRows,
|
|
431
|
+
totalWidth: columnsTotalWidth,
|
|
432
|
+
onScroll: function onScroll(onScrollParams) {
|
|
433
|
+
setScrollLeft(onScrollParams.scrollLeft);
|
|
434
|
+
setScrollTop(onScrollParams.scrollTop);
|
|
435
|
+
if (typeof onCustomScroll === "function") onCustomScroll(onScrollParams);
|
|
436
|
+
},
|
|
437
|
+
scrollLeft: scrollLeft,
|
|
438
|
+
scrollTop: scrollTop,
|
|
439
|
+
rowHeight: rowHeight,
|
|
440
|
+
fixedColumnCount: fixedColumns + +hasCheckBox,
|
|
441
|
+
onCellFocus: handleCellFocus,
|
|
442
|
+
onCellBlur: handleCellBlur,
|
|
443
|
+
onClick: onClick,
|
|
444
|
+
onDoubleClick: onDoubleClick,
|
|
445
|
+
onRowClick: onRowClick,
|
|
446
|
+
onRowContextMenu: onRowContextMenu,
|
|
447
|
+
width: width,
|
|
448
|
+
focusedCell: currentCell,
|
|
449
|
+
onKeyDown: onKeyDown,
|
|
450
|
+
setWidth: setWidth
|
|
451
|
+
}), modeAdd && insertPosition === $e902G.INSERT_POSITION.BOTTOM && /*#__PURE__*/ $d72463ab93d2098f$var$_react["default"].createElement($d72463ab93d2098f$var$_AddLine["default"], {
|
|
452
|
+
onAdd: handleAddClick,
|
|
453
|
+
label: addRowLabel
|
|
454
|
+
}), hasFooter && /*#__PURE__*/ $d72463ab93d2098f$var$_react["default"].createElement($d72463ab93d2098f$var$_Footer["default"], {
|
|
455
|
+
modeEdit: modeEdit,
|
|
456
|
+
columnWidth: _getColumnWidth,
|
|
457
|
+
displayableRows: displayableRows,
|
|
458
|
+
scrollLeft: scrollLeft,
|
|
459
|
+
fixedColumnCount: fixedColumns + +hasCheckBox,
|
|
460
|
+
width: width
|
|
461
|
+
}), customFooter && /*#__PURE__*/ $d72463ab93d2098f$var$_react["default"].cloneElement(customFooter, {
|
|
462
|
+
fixedColumnCount: fixedColumns + +hasCheckBox,
|
|
463
|
+
scrollLeft: scrollLeft,
|
|
464
|
+
columnWidth: _getColumnWidth
|
|
556
465
|
}))));
|
|
557
466
|
}));
|
|
558
467
|
$d72463ab93d2098f$var$VirtualTable.propTypes = {
|
|
@@ -620,17 +529,16 @@ var $0dc163860acc2627$var$_propTypes = $gXNCa$babelruntimehelpersinteropRequireD
|
|
|
620
529
|
var $0dc163860acc2627$var$_I18n = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("b4Pcp")));
|
|
621
530
|
|
|
622
531
|
var $0dc163860acc2627$var$_styles = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("7rg17")));
|
|
623
|
-
var $0dc163860acc2627$var$AddLine =
|
|
532
|
+
var $0dc163860acc2627$var$AddLine = function AddLine(_ref) {
|
|
624
533
|
var onAdd = _ref.onAdd, label = _ref.label;
|
|
625
534
|
var styles = (0, $0dc163860acc2627$var$_styles["default"])();
|
|
626
535
|
return /*#__PURE__*/ $0dc163860acc2627$var$_react["default"].createElement("div", {
|
|
627
536
|
className: styles.root,
|
|
628
537
|
onClick: onAdd,
|
|
629
538
|
"data-role": "add-row",
|
|
630
|
-
role: "button"
|
|
631
|
-
ref: ref
|
|
539
|
+
role: "button"
|
|
632
540
|
}, label);
|
|
633
|
-
}
|
|
541
|
+
};
|
|
634
542
|
$0dc163860acc2627$var$AddLine.propTypes = {
|
|
635
543
|
label: $0dc163860acc2627$var$_propTypes["default"].string,
|
|
636
544
|
onAdd: $0dc163860acc2627$var$_propTypes["default"].func.isRequired
|
|
@@ -880,6 +788,7 @@ var $56a77aac93333633$var$_makeStyles = $gXNCa$babelruntimehelpersinteropRequire
|
|
|
880
788
|
var $56a77aac93333633$var$useStyles = (0, $56a77aac93333633$var$_makeStyles["default"])(function(theme) {
|
|
881
789
|
return {
|
|
882
790
|
root: {
|
|
791
|
+
flexShrink: 0,
|
|
883
792
|
cursor: "pointer",
|
|
884
793
|
height: 32,
|
|
885
794
|
backgroundColor: theme.palette.info.main,
|
|
@@ -918,12 +827,16 @@ var $33a6c9c6ce93d958$var$_defineProperty2 = $gXNCa$babelruntimehelpersinteropRe
|
|
|
918
827
|
|
|
919
828
|
var $33a6c9c6ce93d958$var$_extends2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersextends);
|
|
920
829
|
|
|
830
|
+
var $33a6c9c6ce93d958$var$_slicedToArray2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersslicedToArray);
|
|
831
|
+
|
|
921
832
|
var $33a6c9c6ce93d958$var$_objectWithoutProperties2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersobjectWithoutProperties);
|
|
922
833
|
|
|
923
834
|
var $33a6c9c6ce93d958$var$_classnames = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$classnames);
|
|
924
835
|
|
|
925
836
|
var $33a6c9c6ce93d958$var$_react = $33a6c9c6ce93d958$var$_interopRequireWildcard($gXNCa$react);
|
|
926
837
|
|
|
838
|
+
var $33a6c9c6ce93d958$var$_resizeObserver = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("leMQx")));
|
|
839
|
+
|
|
927
840
|
var $ckVq7 = parcelRequire("ckVq7");
|
|
928
841
|
|
|
929
842
|
var $e902G = parcelRequire("e902G");
|
|
@@ -936,15 +849,13 @@ var $33a6c9c6ce93d958$var$_styles = $gXNCa$babelruntimehelpersinteropRequireDefa
|
|
|
936
849
|
|
|
937
850
|
var $33a6c9c6ce93d958$var$_VirtualGrid = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("9uUS3")));
|
|
938
851
|
var $33a6c9c6ce93d958$var$_excluded = [
|
|
939
|
-
"cache",
|
|
940
852
|
"displayableRows",
|
|
941
|
-
"height",
|
|
942
|
-
"onScrollbarPresenceChange",
|
|
943
853
|
"domRef",
|
|
944
854
|
"scrollLeft",
|
|
945
855
|
"totalWidth",
|
|
946
856
|
"onScroll",
|
|
947
|
-
"
|
|
857
|
+
"setWidth",
|
|
858
|
+
"onRowContextMenu"
|
|
948
859
|
];
|
|
949
860
|
function $33a6c9c6ce93d958$var$_getRequireWildcardCache(nodeInterop) {
|
|
950
861
|
if (typeof WeakMap !== "function") return null;
|
|
@@ -972,11 +883,23 @@ function $33a6c9c6ce93d958$var$_interopRequireWildcard(obj, nodeInterop) {
|
|
|
972
883
|
if (cache) cache.set(obj, newObj);
|
|
973
884
|
return newObj;
|
|
974
885
|
}
|
|
975
|
-
var $33a6c9c6ce93d958$var$Body =
|
|
976
|
-
var
|
|
886
|
+
var $33a6c9c6ce93d958$var$Body = function Body(props) {
|
|
887
|
+
var displayableRows = props.displayableRows, domRef = props.domRef, scrollLeft = props.scrollLeft, totalWidth = props.totalWidth, onScroll = props.onScroll, setWidth = props.setWidth, onRowContextMenu = props.onRowContextMenu, rest = (0, $33a6c9c6ce93d958$var$_objectWithoutProperties2["default"])(props, $33a6c9c6ce93d958$var$_excluded);
|
|
888
|
+
var _useState = (0, $33a6c9c6ce93d958$var$_react.useState)(), _useState2 = (0, $33a6c9c6ce93d958$var$_slicedToArray2["default"])(_useState, 2), height = _useState2[0], setHeight = _useState2[1];
|
|
889
|
+
var ref = (0, $33a6c9c6ce93d958$var$_react.useRef)();
|
|
977
890
|
var _useConfig = (0, $ckVq7.useConfig)(), _useConfig$config = _useConfig.config, _useConfig$config$alw = _useConfig$config.alwaysInEdition, alwaysInEdition = _useConfig$config$alw === void 0 ? false : _useConfig$config$alw, columns = _useConfig$config.columns, _useConfig$config$wit = _useConfig$config.withBorders, withBorders = _useConfig$config$wit === void 0 ? false : _useConfig$config$wit, selectableRowKey = _useConfig$config.selectableRowKey, _useConfig$config$has = _useConfig$config.hasSecureSociety, hasSecureSociety = _useConfig$config$has === void 0 ? false : _useConfig$config$has, _useConfig$config$ope = _useConfig$config.openSocieties, openSocieties = _useConfig$config$ope === void 0 ? [] : _useConfig$config$ope, stylesProp = _useConfig$config.styles;
|
|
891
|
+
(0, $33a6c9c6ce93d958$var$_react.useEffect)(function() {
|
|
892
|
+
var ro = new $33a6c9c6ce93d958$var$_resizeObserver["default"]();
|
|
893
|
+
ro.observe(ref.current, function(entry) {
|
|
894
|
+
var _entry$borderBoxSize, _entry$borderBoxSize$;
|
|
895
|
+
setHeight(Math.ceil((_entry$borderBoxSize = entry.borderBoxSize) === null || _entry$borderBoxSize === void 0 ? void 0 : (_entry$borderBoxSize$ = _entry$borderBoxSize[0]) === null || _entry$borderBoxSize$ === void 0 ? void 0 : _entry$borderBoxSize$.blockSize));
|
|
896
|
+
setWidth(entry.contentRect.width);
|
|
897
|
+
});
|
|
898
|
+
return function() {
|
|
899
|
+
ro.disconnect();
|
|
900
|
+
};
|
|
901
|
+
}, []);
|
|
978
902
|
var styles = (0, $33a6c9c6ce93d958$var$_styles["default"])({
|
|
979
|
-
horizontalPadding: horizontalPadding,
|
|
980
903
|
rowHeight: props.rowHeight
|
|
981
904
|
});
|
|
982
905
|
var openSocietiesIds = openSocieties.map(function(society) {
|
|
@@ -1003,43 +926,162 @@ var $33a6c9c6ce93d958$var$Body = /*#__PURE__*/ $33a6c9c6ce93d958$var$_react["def
|
|
|
1003
926
|
columns: columns,
|
|
1004
927
|
selectableRowKey: selectableRowKey,
|
|
1005
928
|
displayableRows: displayableRows,
|
|
1006
|
-
cache: cache,
|
|
1007
929
|
hasSecureSociety: hasSecureSociety,
|
|
1008
930
|
openSocietiesIds: openSocietiesIds,
|
|
1009
931
|
alwaysInEdition: alwaysInEdition,
|
|
1010
|
-
bodyStylesProp: stylesProp === null || stylesProp === void 0 ? void 0 : stylesProp.body
|
|
932
|
+
bodyStylesProp: stylesProp === null || stylesProp === void 0 ? void 0 : stylesProp.body,
|
|
933
|
+
onRowContextMenu: onRowContextMenu
|
|
1011
934
|
}, rest));
|
|
1012
935
|
}, [
|
|
1013
936
|
displayableRows,
|
|
1014
|
-
cache,
|
|
1015
937
|
scrollLeft,
|
|
1016
938
|
columns,
|
|
1017
939
|
hasSecureSociety,
|
|
1018
940
|
openSocieties,
|
|
1019
941
|
alwaysInEdition
|
|
1020
942
|
]);
|
|
1021
|
-
return /*#__PURE__*/ $33a6c9c6ce93d958$var$_react["default"].createElement("
|
|
1022
|
-
className: (0, $33a6c9c6ce93d958$var$_classnames["default"])(containerCustomStyling === null || containerCustomStyling === void 0 ? void 0 : containerCustomStyling.classes, styles.gridContainer),
|
|
1023
|
-
ref: domRef,
|
|
1024
|
-
"data-role": "body",
|
|
1025
|
-
style: containerCustomStyling === null || containerCustomStyling === void 0 ? void 0 : containerCustomStyling.style
|
|
1026
|
-
}, /*#__PURE__*/ $33a6c9c6ce93d958$var$_react["default"].createElement($33a6c9c6ce93d958$var$_VirtualGrid["default"], (0, $33a6c9c6ce93d958$var$_extends2["default"])({
|
|
943
|
+
return /*#__PURE__*/ $33a6c9c6ce93d958$var$_react["default"].createElement($33a6c9c6ce93d958$var$_VirtualGrid["default"], (0, $33a6c9c6ce93d958$var$_extends2["default"])({
|
|
1027
944
|
ref: ref,
|
|
1028
|
-
className: (0, $33a6c9c6ce93d958$var$_classnames["default"])("vtBody", styles.BodyGrid, styles.defaultStyle, (0, $33a6c9c6ce93d958$var$_defineProperty2["default"])({}, styles.BodyGrid_withBorders, withBorders)),
|
|
945
|
+
className: (0, $33a6c9c6ce93d958$var$_classnames["default"])("vtBody", styles.BodyGrid, styles.defaultStyle, containerCustomStyling === null || containerCustomStyling === void 0 ? void 0 : containerCustomStyling.classes, (0, $33a6c9c6ce93d958$var$_defineProperty2["default"])({}, styles.BodyGrid_withBorders, withBorders)),
|
|
1029
946
|
rowCount: displayableRows.length,
|
|
1030
947
|
onScroll: onScroll,
|
|
1031
948
|
contentWidth: totalWidth,
|
|
1032
949
|
height: height,
|
|
1033
950
|
rowRenderer: _renderBodyRow,
|
|
1034
951
|
scrollLeft: scrollLeft,
|
|
1035
|
-
estimatedRowSize: props.rowHeight
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
});
|
|
952
|
+
estimatedRowSize: props.rowHeight
|
|
953
|
+
}, rest));
|
|
954
|
+
};
|
|
1039
955
|
var $33a6c9c6ce93d958$var$_default = $33a6c9c6ce93d958$var$Body;
|
|
1040
956
|
module.exports["default"] = $33a6c9c6ce93d958$var$_default;
|
|
1041
957
|
|
|
1042
958
|
});
|
|
959
|
+
parcelRequire.register("leMQx", function(module, exports) {
|
|
960
|
+
"use strict";
|
|
961
|
+
|
|
962
|
+
Object.defineProperty(module.exports, "__esModule", {
|
|
963
|
+
value: true
|
|
964
|
+
});
|
|
965
|
+
module.exports["default"] = void 0;
|
|
966
|
+
|
|
967
|
+
var $f760cba34a65e089$var$_classCallCheck2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersclassCallCheck);
|
|
968
|
+
|
|
969
|
+
var $f760cba34a65e089$var$_createClass2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelperscreateClass);
|
|
970
|
+
|
|
971
|
+
var $f760cba34a65e089$var$_defineProperty2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersdefineProperty);
|
|
972
|
+
function $f760cba34a65e089$var$_createForOfIteratorHelper(o, allowArrayLike) {
|
|
973
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
974
|
+
if (!it) {
|
|
975
|
+
if (Array.isArray(o) || (it = $f760cba34a65e089$var$_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
976
|
+
if (it) o = it;
|
|
977
|
+
var i = 0;
|
|
978
|
+
var F = function F() {};
|
|
979
|
+
return {
|
|
980
|
+
s: F,
|
|
981
|
+
n: function n() {
|
|
982
|
+
if (i >= o.length) return {
|
|
983
|
+
done: true
|
|
984
|
+
};
|
|
985
|
+
return {
|
|
986
|
+
done: false,
|
|
987
|
+
value: o[i++]
|
|
988
|
+
};
|
|
989
|
+
},
|
|
990
|
+
e: function e(_e) {
|
|
991
|
+
throw _e;
|
|
992
|
+
},
|
|
993
|
+
f: F
|
|
994
|
+
};
|
|
995
|
+
}
|
|
996
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
997
|
+
}
|
|
998
|
+
var normalCompletion = true, didErr = false, err;
|
|
999
|
+
return {
|
|
1000
|
+
s: function s() {
|
|
1001
|
+
it = it.call(o);
|
|
1002
|
+
},
|
|
1003
|
+
n: function n() {
|
|
1004
|
+
var step = it.next();
|
|
1005
|
+
normalCompletion = step.done;
|
|
1006
|
+
return step;
|
|
1007
|
+
},
|
|
1008
|
+
e: function e(_e2) {
|
|
1009
|
+
didErr = true;
|
|
1010
|
+
err = _e2;
|
|
1011
|
+
},
|
|
1012
|
+
f: function f() {
|
|
1013
|
+
try {
|
|
1014
|
+
if (!normalCompletion && it["return"] != null) it["return"]();
|
|
1015
|
+
} finally{
|
|
1016
|
+
if (didErr) throw err;
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
};
|
|
1020
|
+
}
|
|
1021
|
+
function $f760cba34a65e089$var$_unsupportedIterableToArray(o, minLen) {
|
|
1022
|
+
if (!o) return;
|
|
1023
|
+
if (typeof o === "string") return $f760cba34a65e089$var$_arrayLikeToArray(o, minLen);
|
|
1024
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1025
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1026
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
1027
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return $f760cba34a65e089$var$_arrayLikeToArray(o, minLen);
|
|
1028
|
+
}
|
|
1029
|
+
function $f760cba34a65e089$var$_arrayLikeToArray(arr, len) {
|
|
1030
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
1031
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1032
|
+
return arr2;
|
|
1033
|
+
}
|
|
1034
|
+
var $f760cba34a65e089$var$ResizeObserverHelper = /*#__PURE__*/ function() {
|
|
1035
|
+
function ResizeObserverHelper() {
|
|
1036
|
+
var _this = this;
|
|
1037
|
+
(0, $f760cba34a65e089$var$_classCallCheck2["default"])(this, ResizeObserverHelper);
|
|
1038
|
+
(0, $f760cba34a65e089$var$_defineProperty2["default"])(this, "observer", void 0);
|
|
1039
|
+
(0, $f760cba34a65e089$var$_defineProperty2["default"])(this, "callbacks", void 0);
|
|
1040
|
+
this.callbacks = new Map();
|
|
1041
|
+
this.observer = new ResizeObserver(function(entries) {
|
|
1042
|
+
var _iterator = $f760cba34a65e089$var$_createForOfIteratorHelper(entries), _step;
|
|
1043
|
+
try {
|
|
1044
|
+
for(_iterator.s(); !(_step = _iterator.n()).done;){
|
|
1045
|
+
var entry = _step.value;
|
|
1046
|
+
var callback = _this.callbacks.get(entry.target);
|
|
1047
|
+
if (callback) callback(entry);
|
|
1048
|
+
}
|
|
1049
|
+
} catch (err) {
|
|
1050
|
+
_iterator.e(err);
|
|
1051
|
+
} finally{
|
|
1052
|
+
_iterator.f();
|
|
1053
|
+
}
|
|
1054
|
+
});
|
|
1055
|
+
}
|
|
1056
|
+
(0, $f760cba34a65e089$var$_createClass2["default"])(ResizeObserverHelper, [
|
|
1057
|
+
{
|
|
1058
|
+
key: "observe",
|
|
1059
|
+
value: function observe(element, callback) {
|
|
1060
|
+
if (!this.callbacks.has(element)) this.observer.observe(element);
|
|
1061
|
+
this.callbacks.set(element, callback);
|
|
1062
|
+
}
|
|
1063
|
+
},
|
|
1064
|
+
{
|
|
1065
|
+
key: "unobserve",
|
|
1066
|
+
value: function unobserve(element) {
|
|
1067
|
+
this.observer.unobserve(element);
|
|
1068
|
+
this.callbacks["delete"](element);
|
|
1069
|
+
}
|
|
1070
|
+
},
|
|
1071
|
+
{
|
|
1072
|
+
key: "disconnect",
|
|
1073
|
+
value: function disconnect() {
|
|
1074
|
+
this.observer.disconnect();
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
]);
|
|
1078
|
+
return ResizeObserverHelper;
|
|
1079
|
+
}();
|
|
1080
|
+
var $f760cba34a65e089$var$_default = $f760cba34a65e089$var$ResizeObserverHelper;
|
|
1081
|
+
module.exports["default"] = $f760cba34a65e089$var$_default;
|
|
1082
|
+
|
|
1083
|
+
});
|
|
1084
|
+
|
|
1043
1085
|
parcelRequire.register("ckVq7", function(module, exports) {
|
|
1044
1086
|
"use strict";
|
|
1045
1087
|
|
|
@@ -1381,9 +1423,8 @@ function $a4c1f05a2ad8512a$var$isAsync(func) {
|
|
|
1381
1423
|
].includes(func === null || func === void 0 ? void 0 : (_func$constructor = func.constructor) === null || _func$constructor === void 0 ? void 0 : _func$constructor.name);
|
|
1382
1424
|
}
|
|
1383
1425
|
function $a4c1f05a2ad8512a$var$calculateColumnsWidth(columns, width) {
|
|
1384
|
-
var
|
|
1385
|
-
var
|
|
1386
|
-
var totalColumnsWidth = horizontalPadding;
|
|
1426
|
+
var minCellWidth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 100;
|
|
1427
|
+
var totalColumnsWidth = 0;
|
|
1387
1428
|
var totalColumnsSize = 0;
|
|
1388
1429
|
columns.forEach(function(item) {
|
|
1389
1430
|
totalColumnsWidth += Number.isNaN(Number(item === null || item === void 0 ? void 0 : item.width)) ? item !== null && item !== void 0 && item.size ? 0 : minCellWidth : item.width;
|
|
@@ -1520,7 +1561,7 @@ function $6a434bd325b1a27a$var$_objectSpread(target) {
|
|
|
1520
1561
|
var _options$filterCompar = options.filterComparator, filterComparator = _options$filterCompar === void 0 ? "contains" : _options$filterCompar;
|
|
1521
1562
|
var search = $6a434bd325b1a27a$var$escapeRegExp(term.toString());
|
|
1522
1563
|
if (typeof filterComparator === "function") return filterComparator(search, value);
|
|
1523
|
-
|
|
1564
|
+
// TODO: Add accent converter
|
|
1524
1565
|
if ([
|
|
1525
1566
|
$51yp9.TYPE_CELL.AMOUNT,
|
|
1526
1567
|
$51yp9.TYPE_CELL.NUMBER
|
|
@@ -1577,7 +1618,8 @@ var $6a434bd325b1a27a$var$getColumnConfig = function getColumnConfig(key, row, c
|
|
|
1577
1618
|
var columns = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
1578
1619
|
return filters.every(function(_ref) {
|
|
1579
1620
|
var _ref2 = (0, $6a434bd325b1a27a$var$_slicedToArray2["default"])(_ref, 2), key = _ref2[0], term = _ref2[1];
|
|
1580
|
-
if (!term) return true;
|
|
1621
|
+
if (!term) return true;
|
|
1622
|
+
// Use array key to create OR condition
|
|
1581
1623
|
if ((0, $6a434bd325b1a27a$var$_isArray2["default"])(key)) return key.some(function(k) {
|
|
1582
1624
|
var _getColumnConfig = $6a434bd325b1a27a$var$getColumnConfig(k, row, columns), value = _getColumnConfig.value, typeCell = _getColumnConfig.typeCell, options = (0, $6a434bd325b1a27a$var$_objectWithoutProperties2["default"])(_getColumnConfig, $6a434bd325b1a27a$var$_excluded);
|
|
1583
1625
|
return $6a434bd325b1a27a$var$isMatching(term, value, typeCell, options);
|
|
@@ -2016,7 +2058,6 @@ var $5975f126da112a16$var$_Cell = $gXNCa$babelruntimehelpersinteropRequireDefaul
|
|
|
2016
2058
|
|
|
2017
2059
|
var $ckVq7 = parcelRequire("ckVq7");
|
|
2018
2060
|
var $5975f126da112a16$var$_excluded = [
|
|
2019
|
-
"cache",
|
|
2020
2061
|
"columns",
|
|
2021
2062
|
"columnWidth",
|
|
2022
2063
|
"displayableRows",
|
|
@@ -2087,7 +2128,7 @@ function $5975f126da112a16$var$_objectSpread(target) {
|
|
|
2087
2128
|
}
|
|
2088
2129
|
var $5975f126da112a16$var$BodyRow = function BodyRow(props) {
|
|
2089
2130
|
var _row$parentRowIndex;
|
|
2090
|
-
var
|
|
2131
|
+
var columns = props.columns, columnWidth = props.columnWidth, displayableRows = props.displayableRows, fixedColumnCount = props.fixedColumnCount, hasCheckBoxHidden = props.hasCheckBoxHidden, rowIndex = props.rowIndex, _props$row = props.row, row = _props$row === void 0 ? {} : _props$row, scrollLeft = props.scrollLeft, selectableRowKey = props.selectableRowKey, style = props.style, classes = props.classes, isVisible = props.isVisible, _props$hasSecureSocie = props.hasSecureSociety, hasSecureSociety = _props$hasSecureSocie === void 0 ? false : _props$hasSecureSocie, _props$openSocietiesI = props.openSocietiesIds, openSocietiesIds = _props$openSocietiesI === void 0 ? [] : _props$openSocietiesI, _props$alwaysInEditio = props.alwaysInEdition, alwaysInEdition = _props$alwaysInEditio === void 0 ? false : _props$alwaysInEditio, bodyStylesProp = props.bodyStylesProp, onRowContextMenu = props.onRowContextMenu, onRowClick = props.onRowClick, rest = (0, $5975f126da112a16$var$_objectWithoutProperties2["default"])(props, $5975f126da112a16$var$_excluded);
|
|
2091
2132
|
var _useConfig = (0, $ckVq7.useConfig)(), send = _useConfig.send;
|
|
2092
2133
|
var apiRef = (0, $4IFzq.useApiRef)();
|
|
2093
2134
|
var selectedRows = (0, $9E7Hm.useSelector)(apiRef, $lRxmh.selectedRowsSelector);
|
|
@@ -2120,6 +2161,17 @@ var $5975f126da112a16$var$BodyRow = function BodyRow(props) {
|
|
|
2120
2161
|
keyId: row[selectableRowKey]
|
|
2121
2162
|
});
|
|
2122
2163
|
}
|
|
2164
|
+
function handleRowClick(event) {
|
|
2165
|
+
event.preventDefault();
|
|
2166
|
+
switch(event.type){
|
|
2167
|
+
case "click":
|
|
2168
|
+
onRowClick === null || onRowClick === void 0 || onRowClick(event, getEventCell(event));
|
|
2169
|
+
break;
|
|
2170
|
+
case "contextmenu":
|
|
2171
|
+
onRowContextMenu === null || onRowContextMenu === void 0 || onRowContextMenu(event, getEventCell(event));
|
|
2172
|
+
break;
|
|
2173
|
+
}
|
|
2174
|
+
}
|
|
2123
2175
|
var getEventCell = function getEventCell(e) {
|
|
2124
2176
|
var _e$target$closest, _e$target$closest$dat;
|
|
2125
2177
|
return {
|
|
@@ -2134,7 +2186,6 @@ var $5975f126da112a16$var$BodyRow = function BodyRow(props) {
|
|
|
2134
2186
|
var key = columns[columnIndex].key;
|
|
2135
2187
|
return /*#__PURE__*/ $5975f126da112a16$var$_react["default"].createElement($5975f126da112a16$var$_Cell["default"], (0, $5975f126da112a16$var$_extends2["default"])({
|
|
2136
2188
|
key: "".concat(keyId, "-").concat(columnIndex, "-").concat(key),
|
|
2137
|
-
cache: cache,
|
|
2138
2189
|
displayableRows: displayableRows,
|
|
2139
2190
|
keyName: "".concat(keyId, "-").concat(key),
|
|
2140
2191
|
hasCheckBoxHidden: hasCheckBoxHidden,
|
|
@@ -2151,12 +2202,8 @@ var $5975f126da112a16$var$BodyRow = function BodyRow(props) {
|
|
|
2151
2202
|
key: rowIndex,
|
|
2152
2203
|
"data-role": "row",
|
|
2153
2204
|
"data-key": keyId,
|
|
2154
|
-
onContextMenu:
|
|
2155
|
-
|
|
2156
|
-
},
|
|
2157
|
-
onClick: function onClick(e) {
|
|
2158
|
-
onRowClick === null || onRowClick === void 0 || onRowClick(e, getEventCell(e));
|
|
2159
|
-
},
|
|
2205
|
+
onContextMenu: handleRowClick,
|
|
2206
|
+
onClick: handleRowClick,
|
|
2160
2207
|
className: (0, $5975f126da112a16$var$_classnames["default"])("bodyRow", customStyling === null || customStyling === void 0 ? void 0 : customStyling.classes, isOdd ? "odd" : "even", {
|
|
2161
2208
|
selectedRow: isSelected && !alwaysInEdition
|
|
2162
2209
|
}),
|
|
@@ -2463,6 +2510,7 @@ var $207fc0463a0bd15d$var$BodyCell = function BodyCell(_ref) {
|
|
|
2463
2510
|
if (onKeyDown) onKeyDown(e, rowIndex, columnIndex);
|
|
2464
2511
|
};
|
|
2465
2512
|
var _ref5 = columns[columnIndex] || {}, _ref5$cellProps = _ref5.cellProps, cellProps = _ref5$cellProps === void 0 ? {} : _ref5$cellProps;
|
|
2513
|
+
if (tooltipDetail) cellProps.title = "";
|
|
2466
2514
|
return /*#__PURE__*/ $207fc0463a0bd15d$var$_react["default"].createElement("span", {
|
|
2467
2515
|
ref: ref
|
|
2468
2516
|
}, /*#__PURE__*/ $207fc0463a0bd15d$var$_react["default"].createElement($207fc0463a0bd15d$var$_cells["default"], (0, $207fc0463a0bd15d$var$_extends2["default"])({
|
|
@@ -6092,14 +6140,17 @@ function $b65a981b085d4ff1$var$_interopRequireWildcard(obj, nodeInterop) {
|
|
|
6092
6140
|
var $b65a981b085d4ff1$var$Image = function Image(props) {
|
|
6093
6141
|
var _classNames;
|
|
6094
6142
|
var className = props.className, src = props.src, alt = props.alt, hidden = props.hidden, onClick = props.onClick, onUnload = props.onUnload;
|
|
6095
|
-
var styles = (0, $b65a981b085d4ff1$var$_styles["default"])();
|
|
6143
|
+
var styles = (0, $b65a981b085d4ff1$var$_styles["default"])();
|
|
6144
|
+
// State
|
|
6096
6145
|
var _useState = (0, $b65a981b085d4ff1$var$_react.useState)(true), _useState2 = (0, $b65a981b085d4ff1$var$_slicedToArray2["default"])(_useState, 2), loading = _useState2[0], setLoading = _useState2[1];
|
|
6097
|
-
var _useState3 = (0, $b65a981b085d4ff1$var$_react.useState)(false), _useState4 = (0, $b65a981b085d4ff1$var$_slicedToArray2["default"])(_useState3, 2), error = _useState4[0], setError = _useState4[1];
|
|
6146
|
+
var _useState3 = (0, $b65a981b085d4ff1$var$_react.useState)(false), _useState4 = (0, $b65a981b085d4ff1$var$_slicedToArray2["default"])(_useState3, 2), error = _useState4[0], setError = _useState4[1];
|
|
6147
|
+
// Handlers
|
|
6098
6148
|
var handleKeyPress = function handleKeyPress(event) {
|
|
6099
6149
|
if (event.key === "Enter") {
|
|
6100
6150
|
if (onClick) onClick();
|
|
6101
6151
|
}
|
|
6102
|
-
};
|
|
6152
|
+
};
|
|
6153
|
+
// Rendering
|
|
6103
6154
|
return /*#__PURE__*/ $b65a981b085d4ff1$var$_react["default"].createElement("div", {
|
|
6104
6155
|
className: (0, $b65a981b085d4ff1$var$_classnames["default"])(styles.container, className, (_classNames = {}, (0, $b65a981b085d4ff1$var$_defineProperty2["default"])(_classNames, styles.loading, loading), (0, $b65a981b085d4ff1$var$_defineProperty2["default"])(_classNames, styles.error, error), _classNames)),
|
|
6105
6156
|
role: "button",
|
|
@@ -6130,7 +6181,8 @@ var $b65a981b085d4ff1$var$Image = function Image(props) {
|
|
|
6130
6181
|
}), /*#__PURE__*/ $b65a981b085d4ff1$var$_react["default"].createElement("span", {
|
|
6131
6182
|
className: "label"
|
|
6132
6183
|
}, $b65a981b085d4ff1$var$_I18n["default"].t("attachments.error"))));
|
|
6133
|
-
};
|
|
6184
|
+
};
|
|
6185
|
+
// Props
|
|
6134
6186
|
$b65a981b085d4ff1$var$Image.propTypes = {
|
|
6135
6187
|
className: $b65a981b085d4ff1$var$_propTypes["default"].string,
|
|
6136
6188
|
src: $b65a981b085d4ff1$var$_propTypes["default"].string.isRequired,
|
|
@@ -6318,16 +6370,20 @@ var $c28dcb2ecc31f940$var$downloadFile = function downloadFile(data, filename) {
|
|
|
6318
6370
|
data
|
|
6319
6371
|
], {
|
|
6320
6372
|
type: type
|
|
6321
|
-
});
|
|
6373
|
+
});
|
|
6374
|
+
// Create a link element, hide it, direct
|
|
6322
6375
|
// it towards the blob, and then 'click' it programatically
|
|
6323
6376
|
var a = document.createElement("a");
|
|
6324
6377
|
a.style = "display: none";
|
|
6325
|
-
document.body.appendChild(a);
|
|
6378
|
+
document.body.appendChild(a);
|
|
6379
|
+
// Create a DOMString representing the blob
|
|
6326
6380
|
// and point the link element towards it
|
|
6327
6381
|
var url = window.URL.createObjectURL(blob);
|
|
6328
6382
|
a.href = url;
|
|
6329
|
-
a.download = filename;
|
|
6330
|
-
|
|
6383
|
+
a.download = filename;
|
|
6384
|
+
// programatically click the link to trigger the download
|
|
6385
|
+
a.click();
|
|
6386
|
+
// release the reference to the file by revoking the Object URL
|
|
6331
6387
|
setTimeout(function() {
|
|
6332
6388
|
// For Firefox it is necessary to delay revoking the ObjectURL
|
|
6333
6389
|
window.URL.revokeObjectURL(url);
|
|
@@ -6398,12 +6454,13 @@ module.exports.exportData = $c28dcb2ecc31f940$var$exportData;
|
|
|
6398
6454
|
parcelRequire.register("jlN5T", function(module, exports) {
|
|
6399
6455
|
"use strict";
|
|
6400
6456
|
|
|
6401
|
-
|
|
6402
6457
|
Object.defineProperty(module.exports, "__esModule", {
|
|
6403
6458
|
value: true
|
|
6404
6459
|
});
|
|
6405
6460
|
module.exports.parseFooter = module.exports.parseDataRows = module.exports.formatDefaultData = module.exports.formatDataToExport = module.exports.exportToExcel = module.exports.exportToCSV = void 0;
|
|
6406
6461
|
|
|
6462
|
+
var $e1660f894c3a788a$var$_regenerator = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimeregenerator);
|
|
6463
|
+
|
|
6407
6464
|
var $e1660f894c3a788a$var$_asyncToGenerator2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersasyncToGenerator);
|
|
6408
6465
|
|
|
6409
6466
|
var $e1660f894c3a788a$var$_defineProperty2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersdefineProperty);
|
|
@@ -6450,294 +6507,6 @@ var $e1660f894c3a788a$var$_excluded = [
|
|
|
6450
6507
|
"idx",
|
|
6451
6508
|
"typeCell"
|
|
6452
6509
|
];
|
|
6453
|
-
function $e1660f894c3a788a$var$_regeneratorRuntime() {
|
|
6454
|
-
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
6455
|
-
$e1660f894c3a788a$var$_regeneratorRuntime = function _regeneratorRuntime() {
|
|
6456
|
-
return exports1;
|
|
6457
|
-
};
|
|
6458
|
-
var exports1 = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
6459
|
-
function define(obj, key, value) {
|
|
6460
|
-
return Object.defineProperty(obj, key, {
|
|
6461
|
-
value: value,
|
|
6462
|
-
enumerable: !0,
|
|
6463
|
-
configurable: !0,
|
|
6464
|
-
writable: !0
|
|
6465
|
-
}), obj[key];
|
|
6466
|
-
}
|
|
6467
|
-
try {
|
|
6468
|
-
define({}, "");
|
|
6469
|
-
} catch (err) {
|
|
6470
|
-
define = function define(obj, key, value) {
|
|
6471
|
-
return obj[key] = value;
|
|
6472
|
-
};
|
|
6473
|
-
}
|
|
6474
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
6475
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []);
|
|
6476
|
-
return generator._invoke = function(innerFn, self, context) {
|
|
6477
|
-
var state = "suspendedStart";
|
|
6478
|
-
return function(method, arg) {
|
|
6479
|
-
if ("executing" === state) throw new Error("Generator is already running");
|
|
6480
|
-
if ("completed" === state) {
|
|
6481
|
-
if ("throw" === method) throw arg;
|
|
6482
|
-
return doneResult();
|
|
6483
|
-
}
|
|
6484
|
-
for(context.method = method, context.arg = arg;;){
|
|
6485
|
-
var delegate = context.delegate;
|
|
6486
|
-
if (delegate) {
|
|
6487
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
6488
|
-
if (delegateResult) {
|
|
6489
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
6490
|
-
return delegateResult;
|
|
6491
|
-
}
|
|
6492
|
-
}
|
|
6493
|
-
if ("next" === context.method) context.sent = context._sent = context.arg;
|
|
6494
|
-
else if ("throw" === context.method) {
|
|
6495
|
-
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
6496
|
-
context.dispatchException(context.arg);
|
|
6497
|
-
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
6498
|
-
state = "executing";
|
|
6499
|
-
var record = tryCatch(innerFn, self, context);
|
|
6500
|
-
if ("normal" === record.type) {
|
|
6501
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
6502
|
-
return {
|
|
6503
|
-
value: record.arg,
|
|
6504
|
-
done: context.done
|
|
6505
|
-
};
|
|
6506
|
-
}
|
|
6507
|
-
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
6508
|
-
}
|
|
6509
|
-
};
|
|
6510
|
-
}(innerFn, self, context), generator;
|
|
6511
|
-
}
|
|
6512
|
-
function tryCatch(fn, obj, arg) {
|
|
6513
|
-
try {
|
|
6514
|
-
return {
|
|
6515
|
-
type: "normal",
|
|
6516
|
-
arg: fn.call(obj, arg)
|
|
6517
|
-
};
|
|
6518
|
-
} catch (err) {
|
|
6519
|
-
return {
|
|
6520
|
-
type: "throw",
|
|
6521
|
-
arg: err
|
|
6522
|
-
};
|
|
6523
|
-
}
|
|
6524
|
-
}
|
|
6525
|
-
exports1.wrap = wrap;
|
|
6526
|
-
var ContinueSentinel = {};
|
|
6527
|
-
function Generator() {}
|
|
6528
|
-
function GeneratorFunction() {}
|
|
6529
|
-
function GeneratorFunctionPrototype() {}
|
|
6530
|
-
var IteratorPrototype = {};
|
|
6531
|
-
define(IteratorPrototype, iteratorSymbol, function() {
|
|
6532
|
-
return this;
|
|
6533
|
-
});
|
|
6534
|
-
var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
6535
|
-
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
6536
|
-
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
6537
|
-
function defineIteratorMethods(prototype) {
|
|
6538
|
-
[
|
|
6539
|
-
"next",
|
|
6540
|
-
"throw",
|
|
6541
|
-
"return"
|
|
6542
|
-
].forEach(function(method) {
|
|
6543
|
-
define(prototype, method, function(arg) {
|
|
6544
|
-
return this._invoke(method, arg);
|
|
6545
|
-
});
|
|
6546
|
-
});
|
|
6547
|
-
}
|
|
6548
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
6549
|
-
function invoke(method, arg, resolve, reject) {
|
|
6550
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
6551
|
-
if ("throw" !== record.type) {
|
|
6552
|
-
var result = record.arg, value = result.value;
|
|
6553
|
-
return value && "object" == $gXNCa$babelruntimehelperstypeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function(value) {
|
|
6554
|
-
invoke("next", value, resolve, reject);
|
|
6555
|
-
}, function(err) {
|
|
6556
|
-
invoke("throw", err, resolve, reject);
|
|
6557
|
-
}) : PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
6558
|
-
result.value = unwrapped, resolve(result);
|
|
6559
|
-
}, function(error) {
|
|
6560
|
-
return invoke("throw", error, resolve, reject);
|
|
6561
|
-
});
|
|
6562
|
-
}
|
|
6563
|
-
reject(record.arg);
|
|
6564
|
-
}
|
|
6565
|
-
var previousPromise;
|
|
6566
|
-
this._invoke = function(method, arg) {
|
|
6567
|
-
function callInvokeWithMethodAndArg() {
|
|
6568
|
-
return new PromiseImpl(function(resolve, reject) {
|
|
6569
|
-
invoke(method, arg, resolve, reject);
|
|
6570
|
-
});
|
|
6571
|
-
}
|
|
6572
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
6573
|
-
};
|
|
6574
|
-
}
|
|
6575
|
-
function maybeInvokeDelegate(delegate, context) {
|
|
6576
|
-
var method = delegate.iterator[context.method];
|
|
6577
|
-
if (undefined === method) {
|
|
6578
|
-
if (context.delegate = null, "throw" === context.method) {
|
|
6579
|
-
if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
6580
|
-
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
6581
|
-
}
|
|
6582
|
-
return ContinueSentinel;
|
|
6583
|
-
}
|
|
6584
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
6585
|
-
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
6586
|
-
var info = record.arg;
|
|
6587
|
-
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
6588
|
-
}
|
|
6589
|
-
function pushTryEntry(locs) {
|
|
6590
|
-
var entry = {
|
|
6591
|
-
tryLoc: locs[0]
|
|
6592
|
-
};
|
|
6593
|
-
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
6594
|
-
}
|
|
6595
|
-
function resetTryEntry(entry) {
|
|
6596
|
-
var record = entry.completion || {};
|
|
6597
|
-
record.type = "normal", delete record.arg, entry.completion = record;
|
|
6598
|
-
}
|
|
6599
|
-
function Context(tryLocsList) {
|
|
6600
|
-
this.tryEntries = [
|
|
6601
|
-
{
|
|
6602
|
-
tryLoc: "root"
|
|
6603
|
-
}
|
|
6604
|
-
], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
6605
|
-
}
|
|
6606
|
-
function values(iterable) {
|
|
6607
|
-
if (iterable) {
|
|
6608
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
6609
|
-
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
6610
|
-
if ("function" == typeof iterable.next) return iterable;
|
|
6611
|
-
if (!isNaN(iterable.length)) {
|
|
6612
|
-
var i = -1, next = function next() {
|
|
6613
|
-
for(; ++i < iterable.length;){
|
|
6614
|
-
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
6615
|
-
}
|
|
6616
|
-
return next.value = undefined, next.done = !0, next;
|
|
6617
|
-
};
|
|
6618
|
-
return next.next = next;
|
|
6619
|
-
}
|
|
6620
|
-
}
|
|
6621
|
-
return {
|
|
6622
|
-
next: doneResult
|
|
6623
|
-
};
|
|
6624
|
-
}
|
|
6625
|
-
function doneResult() {
|
|
6626
|
-
return {
|
|
6627
|
-
value: undefined,
|
|
6628
|
-
done: !0
|
|
6629
|
-
};
|
|
6630
|
-
}
|
|
6631
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports1.isGeneratorFunction = function(genFun) {
|
|
6632
|
-
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
6633
|
-
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
6634
|
-
}, exports1.mark = function(genFun) {
|
|
6635
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
6636
|
-
}, exports1.awrap = function(arg) {
|
|
6637
|
-
return {
|
|
6638
|
-
__await: arg
|
|
6639
|
-
};
|
|
6640
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function() {
|
|
6641
|
-
return this;
|
|
6642
|
-
}), exports1.AsyncIterator = AsyncIterator, exports1.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
6643
|
-
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
6644
|
-
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
6645
|
-
return exports1.isGeneratorFunction(outerFn) ? iter : iter.next().then(function(result) {
|
|
6646
|
-
return result.done ? result.value : iter.next();
|
|
6647
|
-
});
|
|
6648
|
-
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function() {
|
|
6649
|
-
return this;
|
|
6650
|
-
}), define(Gp, "toString", function() {
|
|
6651
|
-
return "[object Generator]";
|
|
6652
|
-
}), exports1.keys = function(object) {
|
|
6653
|
-
var keys = [];
|
|
6654
|
-
for(var key in object)keys.push(key);
|
|
6655
|
-
return keys.reverse(), function next() {
|
|
6656
|
-
for(; keys.length;){
|
|
6657
|
-
var key = keys.pop();
|
|
6658
|
-
if (key in object) return next.value = key, next.done = !1, next;
|
|
6659
|
-
}
|
|
6660
|
-
return next.done = !0, next;
|
|
6661
|
-
};
|
|
6662
|
-
}, exports1.values = values, Context.prototype = {
|
|
6663
|
-
constructor: Context,
|
|
6664
|
-
reset: function reset(skipTempReset) {
|
|
6665
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for(var name in this)"t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
6666
|
-
},
|
|
6667
|
-
stop: function stop() {
|
|
6668
|
-
this.done = !0;
|
|
6669
|
-
var rootRecord = this.tryEntries[0].completion;
|
|
6670
|
-
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
6671
|
-
return this.rval;
|
|
6672
|
-
},
|
|
6673
|
-
dispatchException: function dispatchException(exception) {
|
|
6674
|
-
if (this.done) throw exception;
|
|
6675
|
-
var context = this;
|
|
6676
|
-
function handle(loc, caught) {
|
|
6677
|
-
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
6678
|
-
}
|
|
6679
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
6680
|
-
var entry = this.tryEntries[i], record = entry.completion;
|
|
6681
|
-
if ("root" === entry.tryLoc) return handle("end");
|
|
6682
|
-
if (entry.tryLoc <= this.prev) {
|
|
6683
|
-
var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
6684
|
-
if (hasCatch && hasFinally) {
|
|
6685
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
6686
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
6687
|
-
} else if (hasCatch) {
|
|
6688
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
6689
|
-
} else {
|
|
6690
|
-
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
6691
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
6692
|
-
}
|
|
6693
|
-
}
|
|
6694
|
-
}
|
|
6695
|
-
},
|
|
6696
|
-
abrupt: function abrupt(type, arg) {
|
|
6697
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
6698
|
-
var entry = this.tryEntries[i];
|
|
6699
|
-
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
6700
|
-
var finallyEntry = entry;
|
|
6701
|
-
break;
|
|
6702
|
-
}
|
|
6703
|
-
}
|
|
6704
|
-
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
6705
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
6706
|
-
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
6707
|
-
},
|
|
6708
|
-
complete: function complete(record, afterLoc) {
|
|
6709
|
-
if ("throw" === record.type) throw record.arg;
|
|
6710
|
-
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
6711
|
-
},
|
|
6712
|
-
finish: function finish(finallyLoc) {
|
|
6713
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
6714
|
-
var entry = this.tryEntries[i];
|
|
6715
|
-
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
6716
|
-
}
|
|
6717
|
-
},
|
|
6718
|
-
"catch": function _catch(tryLoc) {
|
|
6719
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
6720
|
-
var entry = this.tryEntries[i];
|
|
6721
|
-
if (entry.tryLoc === tryLoc) {
|
|
6722
|
-
var record = entry.completion;
|
|
6723
|
-
if ("throw" === record.type) {
|
|
6724
|
-
var thrown = record.arg;
|
|
6725
|
-
resetTryEntry(entry);
|
|
6726
|
-
}
|
|
6727
|
-
return thrown;
|
|
6728
|
-
}
|
|
6729
|
-
}
|
|
6730
|
-
throw new Error("illegal catch attempt");
|
|
6731
|
-
},
|
|
6732
|
-
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
6733
|
-
return this.delegate = {
|
|
6734
|
-
iterator: values(iterable),
|
|
6735
|
-
resultName: resultName,
|
|
6736
|
-
nextLoc: nextLoc
|
|
6737
|
-
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
6738
|
-
}
|
|
6739
|
-
}, exports1;
|
|
6740
|
-
}
|
|
6741
6510
|
function $e1660f894c3a788a$var$ownKeys(object, enumerableOnly) {
|
|
6742
6511
|
var keys = Object.keys(object);
|
|
6743
6512
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -7017,9 +6786,9 @@ var $e1660f894c3a788a$var$exportToCSV = function exportToCSV(csvData, fileName)
|
|
|
7017
6786
|
};
|
|
7018
6787
|
module.exports.exportToCSV = $e1660f894c3a788a$var$exportToCSV;
|
|
7019
6788
|
var $e1660f894c3a788a$var$exportToExcel = /*#__PURE__*/ function() {
|
|
7020
|
-
var _ref7 = (0, $e1660f894c3a788a$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $e1660f894c3a788a$var$
|
|
6789
|
+
var _ref7 = (0, $e1660f894c3a788a$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $e1660f894c3a788a$var$_regenerator["default"].mark(function _callee(_ref6, fileName) {
|
|
7021
6790
|
var header, body, ExcelJSWorkbook, worksheet, xlsxData, data;
|
|
7022
|
-
return $e1660f894c3a788a$var$
|
|
6791
|
+
return $e1660f894c3a788a$var$_regenerator["default"].wrap(function _callee$(_context) {
|
|
7023
6792
|
while(true)switch(_context.prev = _context.next){
|
|
7024
6793
|
case 0:
|
|
7025
6794
|
header = _ref6.header, body = _ref6.body;
|
|
@@ -7120,12 +6889,13 @@ module.exports.getFooterValue = $0bb913d1efc0c879$var$getFooterValue;
|
|
|
7120
6889
|
parcelRequire.register("hiJne", function(module, exports) {
|
|
7121
6890
|
"use strict";
|
|
7122
6891
|
|
|
7123
|
-
|
|
7124
6892
|
Object.defineProperty(module.exports, "__esModule", {
|
|
7125
6893
|
value: true
|
|
7126
6894
|
});
|
|
7127
6895
|
module.exports.exportPDF = void 0;
|
|
7128
6896
|
|
|
6897
|
+
var $c987505f49f7b1a6$var$_regenerator = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimeregenerator);
|
|
6898
|
+
|
|
7129
6899
|
var $c987505f49f7b1a6$var$_asyncToGenerator2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersasyncToGenerator);
|
|
7130
6900
|
|
|
7131
6901
|
var $c987505f49f7b1a6$var$_defineProperty2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersdefineProperty);
|
|
@@ -7136,301 +6906,13 @@ var $c987505f49f7b1a6$var$_jspdf = $gXNCa$babelruntimehelpersinteropRequireDefau
|
|
|
7136
6906
|
var $51yp9 = parcelRequire("51yp9");
|
|
7137
6907
|
|
|
7138
6908
|
var $e902G = parcelRequire("e902G");
|
|
7139
|
-
function $c987505f49f7b1a6$var$
|
|
7140
|
-
|
|
7141
|
-
|
|
7142
|
-
|
|
7143
|
-
|
|
7144
|
-
|
|
7145
|
-
|
|
7146
|
-
return Object.defineProperty(obj, key, {
|
|
7147
|
-
value: value,
|
|
7148
|
-
enumerable: !0,
|
|
7149
|
-
configurable: !0,
|
|
7150
|
-
writable: !0
|
|
7151
|
-
}), obj[key];
|
|
7152
|
-
}
|
|
7153
|
-
try {
|
|
7154
|
-
define({}, "");
|
|
7155
|
-
} catch (err) {
|
|
7156
|
-
define = function define(obj, key, value) {
|
|
7157
|
-
return obj[key] = value;
|
|
7158
|
-
};
|
|
7159
|
-
}
|
|
7160
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
7161
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []);
|
|
7162
|
-
return generator._invoke = function(innerFn, self, context) {
|
|
7163
|
-
var state = "suspendedStart";
|
|
7164
|
-
return function(method, arg) {
|
|
7165
|
-
if ("executing" === state) throw new Error("Generator is already running");
|
|
7166
|
-
if ("completed" === state) {
|
|
7167
|
-
if ("throw" === method) throw arg;
|
|
7168
|
-
return doneResult();
|
|
7169
|
-
}
|
|
7170
|
-
for(context.method = method, context.arg = arg;;){
|
|
7171
|
-
var delegate = context.delegate;
|
|
7172
|
-
if (delegate) {
|
|
7173
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
7174
|
-
if (delegateResult) {
|
|
7175
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
7176
|
-
return delegateResult;
|
|
7177
|
-
}
|
|
7178
|
-
}
|
|
7179
|
-
if ("next" === context.method) context.sent = context._sent = context.arg;
|
|
7180
|
-
else if ("throw" === context.method) {
|
|
7181
|
-
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
7182
|
-
context.dispatchException(context.arg);
|
|
7183
|
-
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
7184
|
-
state = "executing";
|
|
7185
|
-
var record = tryCatch(innerFn, self, context);
|
|
7186
|
-
if ("normal" === record.type) {
|
|
7187
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
7188
|
-
return {
|
|
7189
|
-
value: record.arg,
|
|
7190
|
-
done: context.done
|
|
7191
|
-
};
|
|
7192
|
-
}
|
|
7193
|
-
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
7194
|
-
}
|
|
7195
|
-
};
|
|
7196
|
-
}(innerFn, self, context), generator;
|
|
7197
|
-
}
|
|
7198
|
-
function tryCatch(fn, obj, arg) {
|
|
7199
|
-
try {
|
|
7200
|
-
return {
|
|
7201
|
-
type: "normal",
|
|
7202
|
-
arg: fn.call(obj, arg)
|
|
7203
|
-
};
|
|
7204
|
-
} catch (err) {
|
|
7205
|
-
return {
|
|
7206
|
-
type: "throw",
|
|
7207
|
-
arg: err
|
|
7208
|
-
};
|
|
7209
|
-
}
|
|
7210
|
-
}
|
|
7211
|
-
exports1.wrap = wrap;
|
|
7212
|
-
var ContinueSentinel = {};
|
|
7213
|
-
function Generator() {}
|
|
7214
|
-
function GeneratorFunction() {}
|
|
7215
|
-
function GeneratorFunctionPrototype() {}
|
|
7216
|
-
var IteratorPrototype = {};
|
|
7217
|
-
define(IteratorPrototype, iteratorSymbol, function() {
|
|
7218
|
-
return this;
|
|
7219
|
-
});
|
|
7220
|
-
var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
7221
|
-
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
7222
|
-
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
7223
|
-
function defineIteratorMethods(prototype) {
|
|
7224
|
-
[
|
|
7225
|
-
"next",
|
|
7226
|
-
"throw",
|
|
7227
|
-
"return"
|
|
7228
|
-
].forEach(function(method) {
|
|
7229
|
-
define(prototype, method, function(arg) {
|
|
7230
|
-
return this._invoke(method, arg);
|
|
7231
|
-
});
|
|
7232
|
-
});
|
|
7233
|
-
}
|
|
7234
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
7235
|
-
function invoke(method, arg, resolve, reject) {
|
|
7236
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
7237
|
-
if ("throw" !== record.type) {
|
|
7238
|
-
var result = record.arg, value = result.value;
|
|
7239
|
-
return value && "object" == $gXNCa$babelruntimehelperstypeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function(value) {
|
|
7240
|
-
invoke("next", value, resolve, reject);
|
|
7241
|
-
}, function(err) {
|
|
7242
|
-
invoke("throw", err, resolve, reject);
|
|
7243
|
-
}) : PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
7244
|
-
result.value = unwrapped, resolve(result);
|
|
7245
|
-
}, function(error) {
|
|
7246
|
-
return invoke("throw", error, resolve, reject);
|
|
7247
|
-
});
|
|
7248
|
-
}
|
|
7249
|
-
reject(record.arg);
|
|
7250
|
-
}
|
|
7251
|
-
var previousPromise;
|
|
7252
|
-
this._invoke = function(method, arg) {
|
|
7253
|
-
function callInvokeWithMethodAndArg() {
|
|
7254
|
-
return new PromiseImpl(function(resolve, reject) {
|
|
7255
|
-
invoke(method, arg, resolve, reject);
|
|
7256
|
-
});
|
|
7257
|
-
}
|
|
7258
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
7259
|
-
};
|
|
7260
|
-
}
|
|
7261
|
-
function maybeInvokeDelegate(delegate, context) {
|
|
7262
|
-
var method = delegate.iterator[context.method];
|
|
7263
|
-
if (undefined === method) {
|
|
7264
|
-
if (context.delegate = null, "throw" === context.method) {
|
|
7265
|
-
if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
7266
|
-
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
7267
|
-
}
|
|
7268
|
-
return ContinueSentinel;
|
|
7269
|
-
}
|
|
7270
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
7271
|
-
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
7272
|
-
var info = record.arg;
|
|
7273
|
-
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
7274
|
-
}
|
|
7275
|
-
function pushTryEntry(locs) {
|
|
7276
|
-
var entry = {
|
|
7277
|
-
tryLoc: locs[0]
|
|
7278
|
-
};
|
|
7279
|
-
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
7280
|
-
}
|
|
7281
|
-
function resetTryEntry(entry) {
|
|
7282
|
-
var record = entry.completion || {};
|
|
7283
|
-
record.type = "normal", delete record.arg, entry.completion = record;
|
|
7284
|
-
}
|
|
7285
|
-
function Context(tryLocsList) {
|
|
7286
|
-
this.tryEntries = [
|
|
7287
|
-
{
|
|
7288
|
-
tryLoc: "root"
|
|
7289
|
-
}
|
|
7290
|
-
], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
7291
|
-
}
|
|
7292
|
-
function values(iterable) {
|
|
7293
|
-
if (iterable) {
|
|
7294
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
7295
|
-
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
7296
|
-
if ("function" == typeof iterable.next) return iterable;
|
|
7297
|
-
if (!isNaN(iterable.length)) {
|
|
7298
|
-
var i = -1, next = function next() {
|
|
7299
|
-
for(; ++i < iterable.length;){
|
|
7300
|
-
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
7301
|
-
}
|
|
7302
|
-
return next.value = undefined, next.done = !0, next;
|
|
7303
|
-
};
|
|
7304
|
-
return next.next = next;
|
|
7305
|
-
}
|
|
7306
|
-
}
|
|
7307
|
-
return {
|
|
7308
|
-
next: doneResult
|
|
7309
|
-
};
|
|
7310
|
-
}
|
|
7311
|
-
function doneResult() {
|
|
7312
|
-
return {
|
|
7313
|
-
value: undefined,
|
|
7314
|
-
done: !0
|
|
7315
|
-
};
|
|
7316
|
-
}
|
|
7317
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports1.isGeneratorFunction = function(genFun) {
|
|
7318
|
-
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
7319
|
-
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
7320
|
-
}, exports1.mark = function(genFun) {
|
|
7321
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
7322
|
-
}, exports1.awrap = function(arg) {
|
|
7323
|
-
return {
|
|
7324
|
-
__await: arg
|
|
7325
|
-
};
|
|
7326
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function() {
|
|
7327
|
-
return this;
|
|
7328
|
-
}), exports1.AsyncIterator = AsyncIterator, exports1.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
7329
|
-
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
7330
|
-
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
7331
|
-
return exports1.isGeneratorFunction(outerFn) ? iter : iter.next().then(function(result) {
|
|
7332
|
-
return result.done ? result.value : iter.next();
|
|
7333
|
-
});
|
|
7334
|
-
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function() {
|
|
7335
|
-
return this;
|
|
7336
|
-
}), define(Gp, "toString", function() {
|
|
7337
|
-
return "[object Generator]";
|
|
7338
|
-
}), exports1.keys = function(object) {
|
|
7339
|
-
var keys = [];
|
|
7340
|
-
for(var key in object)keys.push(key);
|
|
7341
|
-
return keys.reverse(), function next() {
|
|
7342
|
-
for(; keys.length;){
|
|
7343
|
-
var key = keys.pop();
|
|
7344
|
-
if (key in object) return next.value = key, next.done = !1, next;
|
|
7345
|
-
}
|
|
7346
|
-
return next.done = !0, next;
|
|
7347
|
-
};
|
|
7348
|
-
}, exports1.values = values, Context.prototype = {
|
|
7349
|
-
constructor: Context,
|
|
7350
|
-
reset: function reset(skipTempReset) {
|
|
7351
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for(var name in this)"t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
7352
|
-
},
|
|
7353
|
-
stop: function stop() {
|
|
7354
|
-
this.done = !0;
|
|
7355
|
-
var rootRecord = this.tryEntries[0].completion;
|
|
7356
|
-
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
7357
|
-
return this.rval;
|
|
7358
|
-
},
|
|
7359
|
-
dispatchException: function dispatchException(exception) {
|
|
7360
|
-
if (this.done) throw exception;
|
|
7361
|
-
var context = this;
|
|
7362
|
-
function handle(loc, caught) {
|
|
7363
|
-
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
7364
|
-
}
|
|
7365
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
7366
|
-
var entry = this.tryEntries[i], record = entry.completion;
|
|
7367
|
-
if ("root" === entry.tryLoc) return handle("end");
|
|
7368
|
-
if (entry.tryLoc <= this.prev) {
|
|
7369
|
-
var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
7370
|
-
if (hasCatch && hasFinally) {
|
|
7371
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
7372
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
7373
|
-
} else if (hasCatch) {
|
|
7374
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
7375
|
-
} else {
|
|
7376
|
-
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
7377
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
7378
|
-
}
|
|
7379
|
-
}
|
|
7380
|
-
}
|
|
7381
|
-
},
|
|
7382
|
-
abrupt: function abrupt(type, arg) {
|
|
7383
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
7384
|
-
var entry = this.tryEntries[i];
|
|
7385
|
-
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
7386
|
-
var finallyEntry = entry;
|
|
7387
|
-
break;
|
|
7388
|
-
}
|
|
7389
|
-
}
|
|
7390
|
-
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
7391
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
7392
|
-
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
7393
|
-
},
|
|
7394
|
-
complete: function complete(record, afterLoc) {
|
|
7395
|
-
if ("throw" === record.type) throw record.arg;
|
|
7396
|
-
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
7397
|
-
},
|
|
7398
|
-
finish: function finish(finallyLoc) {
|
|
7399
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
7400
|
-
var entry = this.tryEntries[i];
|
|
7401
|
-
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
7402
|
-
}
|
|
7403
|
-
},
|
|
7404
|
-
"catch": function _catch(tryLoc) {
|
|
7405
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
7406
|
-
var entry = this.tryEntries[i];
|
|
7407
|
-
if (entry.tryLoc === tryLoc) {
|
|
7408
|
-
var record = entry.completion;
|
|
7409
|
-
if ("throw" === record.type) {
|
|
7410
|
-
var thrown = record.arg;
|
|
7411
|
-
resetTryEntry(entry);
|
|
7412
|
-
}
|
|
7413
|
-
return thrown;
|
|
7414
|
-
}
|
|
7415
|
-
}
|
|
7416
|
-
throw new Error("illegal catch attempt");
|
|
7417
|
-
},
|
|
7418
|
-
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
7419
|
-
return this.delegate = {
|
|
7420
|
-
iterator: values(iterable),
|
|
7421
|
-
resultName: resultName,
|
|
7422
|
-
nextLoc: nextLoc
|
|
7423
|
-
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
7424
|
-
}
|
|
7425
|
-
}, exports1;
|
|
7426
|
-
}
|
|
7427
|
-
function $c987505f49f7b1a6$var$ownKeys(object, enumerableOnly) {
|
|
7428
|
-
var keys = Object.keys(object);
|
|
7429
|
-
if (Object.getOwnPropertySymbols) {
|
|
7430
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
7431
|
-
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
7432
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
7433
|
-
})), keys.push.apply(keys, symbols);
|
|
6909
|
+
function $c987505f49f7b1a6$var$ownKeys(object, enumerableOnly) {
|
|
6910
|
+
var keys = Object.keys(object);
|
|
6911
|
+
if (Object.getOwnPropertySymbols) {
|
|
6912
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
6913
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
6914
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
6915
|
+
})), keys.push.apply(keys, symbols);
|
|
7434
6916
|
}
|
|
7435
6917
|
return keys;
|
|
7436
6918
|
}
|
|
@@ -7528,8 +7010,8 @@ var $c987505f49f7b1a6$var$createHeaders = function createHeaders(columns) {
|
|
|
7528
7010
|
];
|
|
7529
7011
|
};
|
|
7530
7012
|
var $c987505f49f7b1a6$var$dataToPdf = /*#__PURE__*/ function() {
|
|
7531
|
-
var _ref6 = (0, $c987505f49f7b1a6$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $c987505f49f7b1a6$var$
|
|
7532
|
-
return $c987505f49f7b1a6$var$
|
|
7013
|
+
var _ref6 = (0, $c987505f49f7b1a6$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $c987505f49f7b1a6$var$_regenerator["default"].mark(function _callee(data, filename, print, opts) {
|
|
7014
|
+
return $c987505f49f7b1a6$var$_regenerator["default"].wrap(function _callee$(_context) {
|
|
7533
7015
|
while(true)switch(_context.prev = _context.next){
|
|
7534
7016
|
case 0:
|
|
7535
7017
|
_context.next = 2;
|
|
@@ -7675,8 +7157,8 @@ var $c987505f49f7b1a6$var$dataToPdf = /*#__PURE__*/ function() {
|
|
|
7675
7157
|
};
|
|
7676
7158
|
}();
|
|
7677
7159
|
var $c987505f49f7b1a6$var$exportPDF = /*#__PURE__*/ function() {
|
|
7678
|
-
var _ref7 = (0, $c987505f49f7b1a6$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $c987505f49f7b1a6$var$
|
|
7679
|
-
return $c987505f49f7b1a6$var$
|
|
7160
|
+
var _ref7 = (0, $c987505f49f7b1a6$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $c987505f49f7b1a6$var$_regenerator["default"].mark(function _callee2(fname, data, print, options) {
|
|
7161
|
+
return $c987505f49f7b1a6$var$_regenerator["default"].wrap(function _callee2$(_context2) {
|
|
7680
7162
|
while(true)switch(_context2.prev = _context2.next){
|
|
7681
7163
|
case 0:
|
|
7682
7164
|
_context2.next = 2;
|
|
@@ -8063,6 +7545,8 @@ Object.defineProperty(module.exports, "__esModule", {
|
|
|
8063
7545
|
});
|
|
8064
7546
|
module.exports["default"] = void 0;
|
|
8065
7547
|
|
|
7548
|
+
var $5b597552807640f8$var$_regenerator = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimeregenerator);
|
|
7549
|
+
|
|
8066
7550
|
var $5b597552807640f8$var$_extends2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersextends);
|
|
8067
7551
|
|
|
8068
7552
|
var $5b597552807640f8$var$_asyncToGenerator2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersasyncToGenerator);
|
|
@@ -8111,294 +7595,6 @@ function $5b597552807640f8$var$_interopRequireWildcard(obj, nodeInterop) {
|
|
|
8111
7595
|
if (cache) cache.set(obj, newObj);
|
|
8112
7596
|
return newObj;
|
|
8113
7597
|
}
|
|
8114
|
-
function $5b597552807640f8$var$_regeneratorRuntime() {
|
|
8115
|
-
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
8116
|
-
$5b597552807640f8$var$_regeneratorRuntime = function _regeneratorRuntime() {
|
|
8117
|
-
return exports1;
|
|
8118
|
-
};
|
|
8119
|
-
var exports1 = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
8120
|
-
function define(obj, key, value) {
|
|
8121
|
-
return Object.defineProperty(obj, key, {
|
|
8122
|
-
value: value,
|
|
8123
|
-
enumerable: !0,
|
|
8124
|
-
configurable: !0,
|
|
8125
|
-
writable: !0
|
|
8126
|
-
}), obj[key];
|
|
8127
|
-
}
|
|
8128
|
-
try {
|
|
8129
|
-
define({}, "");
|
|
8130
|
-
} catch (err) {
|
|
8131
|
-
define = function define(obj, key, value) {
|
|
8132
|
-
return obj[key] = value;
|
|
8133
|
-
};
|
|
8134
|
-
}
|
|
8135
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
8136
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []);
|
|
8137
|
-
return generator._invoke = function(innerFn, self, context) {
|
|
8138
|
-
var state = "suspendedStart";
|
|
8139
|
-
return function(method, arg) {
|
|
8140
|
-
if ("executing" === state) throw new Error("Generator is already running");
|
|
8141
|
-
if ("completed" === state) {
|
|
8142
|
-
if ("throw" === method) throw arg;
|
|
8143
|
-
return doneResult();
|
|
8144
|
-
}
|
|
8145
|
-
for(context.method = method, context.arg = arg;;){
|
|
8146
|
-
var delegate = context.delegate;
|
|
8147
|
-
if (delegate) {
|
|
8148
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
8149
|
-
if (delegateResult) {
|
|
8150
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
8151
|
-
return delegateResult;
|
|
8152
|
-
}
|
|
8153
|
-
}
|
|
8154
|
-
if ("next" === context.method) context.sent = context._sent = context.arg;
|
|
8155
|
-
else if ("throw" === context.method) {
|
|
8156
|
-
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
8157
|
-
context.dispatchException(context.arg);
|
|
8158
|
-
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
8159
|
-
state = "executing";
|
|
8160
|
-
var record = tryCatch(innerFn, self, context);
|
|
8161
|
-
if ("normal" === record.type) {
|
|
8162
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
8163
|
-
return {
|
|
8164
|
-
value: record.arg,
|
|
8165
|
-
done: context.done
|
|
8166
|
-
};
|
|
8167
|
-
}
|
|
8168
|
-
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
8169
|
-
}
|
|
8170
|
-
};
|
|
8171
|
-
}(innerFn, self, context), generator;
|
|
8172
|
-
}
|
|
8173
|
-
function tryCatch(fn, obj, arg) {
|
|
8174
|
-
try {
|
|
8175
|
-
return {
|
|
8176
|
-
type: "normal",
|
|
8177
|
-
arg: fn.call(obj, arg)
|
|
8178
|
-
};
|
|
8179
|
-
} catch (err) {
|
|
8180
|
-
return {
|
|
8181
|
-
type: "throw",
|
|
8182
|
-
arg: err
|
|
8183
|
-
};
|
|
8184
|
-
}
|
|
8185
|
-
}
|
|
8186
|
-
exports1.wrap = wrap;
|
|
8187
|
-
var ContinueSentinel = {};
|
|
8188
|
-
function Generator() {}
|
|
8189
|
-
function GeneratorFunction() {}
|
|
8190
|
-
function GeneratorFunctionPrototype() {}
|
|
8191
|
-
var IteratorPrototype = {};
|
|
8192
|
-
define(IteratorPrototype, iteratorSymbol, function() {
|
|
8193
|
-
return this;
|
|
8194
|
-
});
|
|
8195
|
-
var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
8196
|
-
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
8197
|
-
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
8198
|
-
function defineIteratorMethods(prototype) {
|
|
8199
|
-
[
|
|
8200
|
-
"next",
|
|
8201
|
-
"throw",
|
|
8202
|
-
"return"
|
|
8203
|
-
].forEach(function(method) {
|
|
8204
|
-
define(prototype, method, function(arg) {
|
|
8205
|
-
return this._invoke(method, arg);
|
|
8206
|
-
});
|
|
8207
|
-
});
|
|
8208
|
-
}
|
|
8209
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
8210
|
-
function invoke(method, arg, resolve, reject) {
|
|
8211
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
8212
|
-
if ("throw" !== record.type) {
|
|
8213
|
-
var result = record.arg, value = result.value;
|
|
8214
|
-
return value && "object" == $gXNCa$babelruntimehelperstypeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function(value) {
|
|
8215
|
-
invoke("next", value, resolve, reject);
|
|
8216
|
-
}, function(err) {
|
|
8217
|
-
invoke("throw", err, resolve, reject);
|
|
8218
|
-
}) : PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
8219
|
-
result.value = unwrapped, resolve(result);
|
|
8220
|
-
}, function(error) {
|
|
8221
|
-
return invoke("throw", error, resolve, reject);
|
|
8222
|
-
});
|
|
8223
|
-
}
|
|
8224
|
-
reject(record.arg);
|
|
8225
|
-
}
|
|
8226
|
-
var previousPromise;
|
|
8227
|
-
this._invoke = function(method, arg) {
|
|
8228
|
-
function callInvokeWithMethodAndArg() {
|
|
8229
|
-
return new PromiseImpl(function(resolve, reject) {
|
|
8230
|
-
invoke(method, arg, resolve, reject);
|
|
8231
|
-
});
|
|
8232
|
-
}
|
|
8233
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
8234
|
-
};
|
|
8235
|
-
}
|
|
8236
|
-
function maybeInvokeDelegate(delegate, context) {
|
|
8237
|
-
var method = delegate.iterator[context.method];
|
|
8238
|
-
if (undefined === method) {
|
|
8239
|
-
if (context.delegate = null, "throw" === context.method) {
|
|
8240
|
-
if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
8241
|
-
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
8242
|
-
}
|
|
8243
|
-
return ContinueSentinel;
|
|
8244
|
-
}
|
|
8245
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
8246
|
-
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
8247
|
-
var info = record.arg;
|
|
8248
|
-
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
8249
|
-
}
|
|
8250
|
-
function pushTryEntry(locs) {
|
|
8251
|
-
var entry = {
|
|
8252
|
-
tryLoc: locs[0]
|
|
8253
|
-
};
|
|
8254
|
-
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
8255
|
-
}
|
|
8256
|
-
function resetTryEntry(entry) {
|
|
8257
|
-
var record = entry.completion || {};
|
|
8258
|
-
record.type = "normal", delete record.arg, entry.completion = record;
|
|
8259
|
-
}
|
|
8260
|
-
function Context(tryLocsList) {
|
|
8261
|
-
this.tryEntries = [
|
|
8262
|
-
{
|
|
8263
|
-
tryLoc: "root"
|
|
8264
|
-
}
|
|
8265
|
-
], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
8266
|
-
}
|
|
8267
|
-
function values(iterable) {
|
|
8268
|
-
if (iterable) {
|
|
8269
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
8270
|
-
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
8271
|
-
if ("function" == typeof iterable.next) return iterable;
|
|
8272
|
-
if (!isNaN(iterable.length)) {
|
|
8273
|
-
var i = -1, next = function next() {
|
|
8274
|
-
for(; ++i < iterable.length;){
|
|
8275
|
-
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
8276
|
-
}
|
|
8277
|
-
return next.value = undefined, next.done = !0, next;
|
|
8278
|
-
};
|
|
8279
|
-
return next.next = next;
|
|
8280
|
-
}
|
|
8281
|
-
}
|
|
8282
|
-
return {
|
|
8283
|
-
next: doneResult
|
|
8284
|
-
};
|
|
8285
|
-
}
|
|
8286
|
-
function doneResult() {
|
|
8287
|
-
return {
|
|
8288
|
-
value: undefined,
|
|
8289
|
-
done: !0
|
|
8290
|
-
};
|
|
8291
|
-
}
|
|
8292
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports1.isGeneratorFunction = function(genFun) {
|
|
8293
|
-
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
8294
|
-
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
8295
|
-
}, exports1.mark = function(genFun) {
|
|
8296
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
8297
|
-
}, exports1.awrap = function(arg) {
|
|
8298
|
-
return {
|
|
8299
|
-
__await: arg
|
|
8300
|
-
};
|
|
8301
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function() {
|
|
8302
|
-
return this;
|
|
8303
|
-
}), exports1.AsyncIterator = AsyncIterator, exports1.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
8304
|
-
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
8305
|
-
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
8306
|
-
return exports1.isGeneratorFunction(outerFn) ? iter : iter.next().then(function(result) {
|
|
8307
|
-
return result.done ? result.value : iter.next();
|
|
8308
|
-
});
|
|
8309
|
-
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function() {
|
|
8310
|
-
return this;
|
|
8311
|
-
}), define(Gp, "toString", function() {
|
|
8312
|
-
return "[object Generator]";
|
|
8313
|
-
}), exports1.keys = function(object) {
|
|
8314
|
-
var keys = [];
|
|
8315
|
-
for(var key in object)keys.push(key);
|
|
8316
|
-
return keys.reverse(), function next() {
|
|
8317
|
-
for(; keys.length;){
|
|
8318
|
-
var key = keys.pop();
|
|
8319
|
-
if (key in object) return next.value = key, next.done = !1, next;
|
|
8320
|
-
}
|
|
8321
|
-
return next.done = !0, next;
|
|
8322
|
-
};
|
|
8323
|
-
}, exports1.values = values, Context.prototype = {
|
|
8324
|
-
constructor: Context,
|
|
8325
|
-
reset: function reset(skipTempReset) {
|
|
8326
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for(var name in this)"t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
8327
|
-
},
|
|
8328
|
-
stop: function stop() {
|
|
8329
|
-
this.done = !0;
|
|
8330
|
-
var rootRecord = this.tryEntries[0].completion;
|
|
8331
|
-
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
8332
|
-
return this.rval;
|
|
8333
|
-
},
|
|
8334
|
-
dispatchException: function dispatchException(exception) {
|
|
8335
|
-
if (this.done) throw exception;
|
|
8336
|
-
var context = this;
|
|
8337
|
-
function handle(loc, caught) {
|
|
8338
|
-
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
8339
|
-
}
|
|
8340
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
8341
|
-
var entry = this.tryEntries[i], record = entry.completion;
|
|
8342
|
-
if ("root" === entry.tryLoc) return handle("end");
|
|
8343
|
-
if (entry.tryLoc <= this.prev) {
|
|
8344
|
-
var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
8345
|
-
if (hasCatch && hasFinally) {
|
|
8346
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
8347
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
8348
|
-
} else if (hasCatch) {
|
|
8349
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
8350
|
-
} else {
|
|
8351
|
-
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
8352
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
8353
|
-
}
|
|
8354
|
-
}
|
|
8355
|
-
}
|
|
8356
|
-
},
|
|
8357
|
-
abrupt: function abrupt(type, arg) {
|
|
8358
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
8359
|
-
var entry = this.tryEntries[i];
|
|
8360
|
-
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
8361
|
-
var finallyEntry = entry;
|
|
8362
|
-
break;
|
|
8363
|
-
}
|
|
8364
|
-
}
|
|
8365
|
-
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
8366
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
8367
|
-
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
8368
|
-
},
|
|
8369
|
-
complete: function complete(record, afterLoc) {
|
|
8370
|
-
if ("throw" === record.type) throw record.arg;
|
|
8371
|
-
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
8372
|
-
},
|
|
8373
|
-
finish: function finish(finallyLoc) {
|
|
8374
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
8375
|
-
var entry = this.tryEntries[i];
|
|
8376
|
-
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
8377
|
-
}
|
|
8378
|
-
},
|
|
8379
|
-
"catch": function _catch(tryLoc) {
|
|
8380
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
8381
|
-
var entry = this.tryEntries[i];
|
|
8382
|
-
if (entry.tryLoc === tryLoc) {
|
|
8383
|
-
var record = entry.completion;
|
|
8384
|
-
if ("throw" === record.type) {
|
|
8385
|
-
var thrown = record.arg;
|
|
8386
|
-
resetTryEntry(entry);
|
|
8387
|
-
}
|
|
8388
|
-
return thrown;
|
|
8389
|
-
}
|
|
8390
|
-
}
|
|
8391
|
-
throw new Error("illegal catch attempt");
|
|
8392
|
-
},
|
|
8393
|
-
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
8394
|
-
return this.delegate = {
|
|
8395
|
-
iterator: values(iterable),
|
|
8396
|
-
resultName: resultName,
|
|
8397
|
-
nextLoc: nextLoc
|
|
8398
|
-
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
8399
|
-
}
|
|
8400
|
-
}, exports1;
|
|
8401
|
-
}
|
|
8402
7598
|
var $5b597552807640f8$var$getFilesDiff = function getFilesDiff(initialFiles, finalFiles) {
|
|
8403
7599
|
var deleted = [];
|
|
8404
7600
|
var added = [];
|
|
@@ -8433,9 +7629,9 @@ var $5b597552807640f8$var$UploadDialog = function UploadDialog(props) {
|
|
|
8433
7629
|
var buttons = [];
|
|
8434
7630
|
var _filesDropperProps$on = filesDropperProps.onRemoveFile, _onRemoveFile = _filesDropperProps$on === void 0 ? function() {} : _filesDropperProps$on, _filesDropperProps$on2 = filesDropperProps.onAddFiles, _onAddFiles = _filesDropperProps$on2 === void 0 ? function() {} : _filesDropperProps$on2, otherFilesDropperProps = (0, $5b597552807640f8$var$_objectWithoutProperties2["default"])(filesDropperProps, $5b597552807640f8$var$_excluded);
|
|
8435
7631
|
var handleSubmit = /*#__PURE__*/ function() {
|
|
8436
|
-
var _ref3 = (0, $5b597552807640f8$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $5b597552807640f8$var$
|
|
7632
|
+
var _ref3 = (0, $5b597552807640f8$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $5b597552807640f8$var$_regenerator["default"].mark(function _callee() {
|
|
8437
7633
|
var _getFilesDiff, added, deleted, res;
|
|
8438
|
-
return $5b597552807640f8$var$
|
|
7634
|
+
return $5b597552807640f8$var$_regenerator["default"].wrap(function _callee$(_context) {
|
|
8439
7635
|
while(true)switch(_context.prev = _context.next){
|
|
8440
7636
|
case 0:
|
|
8441
7637
|
setIsProcessing(true);
|
|
@@ -8763,306 +7959,19 @@ module.exports["default"] = $a569c294f3ffb90b$var$_default;
|
|
|
8763
7959
|
parcelRequire.register("dsukx", function(module, exports) {
|
|
8764
7960
|
"use strict";
|
|
8765
7961
|
|
|
8766
|
-
|
|
8767
7962
|
Object.defineProperty(module.exports, "__esModule", {
|
|
8768
7963
|
value: true
|
|
8769
7964
|
});
|
|
8770
7965
|
module.exports["default"] = void 0;
|
|
8771
7966
|
|
|
7967
|
+
var $9cc56adabc671d24$var$_regenerator = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimeregenerator);
|
|
7968
|
+
|
|
8772
7969
|
var $9cc56adabc671d24$var$_toConsumableArray2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelperstoConsumableArray);
|
|
8773
7970
|
|
|
8774
7971
|
var $9cc56adabc671d24$var$_asyncToGenerator2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersasyncToGenerator);
|
|
8775
7972
|
|
|
8776
7973
|
var $9cc56adabc671d24$var$_slicedToArray2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersslicedToArray);
|
|
8777
7974
|
|
|
8778
|
-
function $9cc56adabc671d24$var$_regeneratorRuntime() {
|
|
8779
|
-
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
8780
|
-
$9cc56adabc671d24$var$_regeneratorRuntime = function _regeneratorRuntime() {
|
|
8781
|
-
return exports1;
|
|
8782
|
-
};
|
|
8783
|
-
var exports1 = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
8784
|
-
function define(obj, key, value) {
|
|
8785
|
-
return Object.defineProperty(obj, key, {
|
|
8786
|
-
value: value,
|
|
8787
|
-
enumerable: !0,
|
|
8788
|
-
configurable: !0,
|
|
8789
|
-
writable: !0
|
|
8790
|
-
}), obj[key];
|
|
8791
|
-
}
|
|
8792
|
-
try {
|
|
8793
|
-
define({}, "");
|
|
8794
|
-
} catch (err) {
|
|
8795
|
-
define = function define(obj, key, value) {
|
|
8796
|
-
return obj[key] = value;
|
|
8797
|
-
};
|
|
8798
|
-
}
|
|
8799
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
8800
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []);
|
|
8801
|
-
return generator._invoke = function(innerFn, self, context) {
|
|
8802
|
-
var state = "suspendedStart";
|
|
8803
|
-
return function(method, arg) {
|
|
8804
|
-
if ("executing" === state) throw new Error("Generator is already running");
|
|
8805
|
-
if ("completed" === state) {
|
|
8806
|
-
if ("throw" === method) throw arg;
|
|
8807
|
-
return doneResult();
|
|
8808
|
-
}
|
|
8809
|
-
for(context.method = method, context.arg = arg;;){
|
|
8810
|
-
var delegate = context.delegate;
|
|
8811
|
-
if (delegate) {
|
|
8812
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
8813
|
-
if (delegateResult) {
|
|
8814
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
8815
|
-
return delegateResult;
|
|
8816
|
-
}
|
|
8817
|
-
}
|
|
8818
|
-
if ("next" === context.method) context.sent = context._sent = context.arg;
|
|
8819
|
-
else if ("throw" === context.method) {
|
|
8820
|
-
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
8821
|
-
context.dispatchException(context.arg);
|
|
8822
|
-
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
8823
|
-
state = "executing";
|
|
8824
|
-
var record = tryCatch(innerFn, self, context);
|
|
8825
|
-
if ("normal" === record.type) {
|
|
8826
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
8827
|
-
return {
|
|
8828
|
-
value: record.arg,
|
|
8829
|
-
done: context.done
|
|
8830
|
-
};
|
|
8831
|
-
}
|
|
8832
|
-
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
8833
|
-
}
|
|
8834
|
-
};
|
|
8835
|
-
}(innerFn, self, context), generator;
|
|
8836
|
-
}
|
|
8837
|
-
function tryCatch(fn, obj, arg) {
|
|
8838
|
-
try {
|
|
8839
|
-
return {
|
|
8840
|
-
type: "normal",
|
|
8841
|
-
arg: fn.call(obj, arg)
|
|
8842
|
-
};
|
|
8843
|
-
} catch (err) {
|
|
8844
|
-
return {
|
|
8845
|
-
type: "throw",
|
|
8846
|
-
arg: err
|
|
8847
|
-
};
|
|
8848
|
-
}
|
|
8849
|
-
}
|
|
8850
|
-
exports1.wrap = wrap;
|
|
8851
|
-
var ContinueSentinel = {};
|
|
8852
|
-
function Generator() {}
|
|
8853
|
-
function GeneratorFunction() {}
|
|
8854
|
-
function GeneratorFunctionPrototype() {}
|
|
8855
|
-
var IteratorPrototype = {};
|
|
8856
|
-
define(IteratorPrototype, iteratorSymbol, function() {
|
|
8857
|
-
return this;
|
|
8858
|
-
});
|
|
8859
|
-
var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
8860
|
-
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
8861
|
-
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
8862
|
-
function defineIteratorMethods(prototype) {
|
|
8863
|
-
[
|
|
8864
|
-
"next",
|
|
8865
|
-
"throw",
|
|
8866
|
-
"return"
|
|
8867
|
-
].forEach(function(method) {
|
|
8868
|
-
define(prototype, method, function(arg) {
|
|
8869
|
-
return this._invoke(method, arg);
|
|
8870
|
-
});
|
|
8871
|
-
});
|
|
8872
|
-
}
|
|
8873
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
8874
|
-
function invoke(method, arg, resolve, reject) {
|
|
8875
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
8876
|
-
if ("throw" !== record.type) {
|
|
8877
|
-
var result = record.arg, value = result.value;
|
|
8878
|
-
return value && "object" == $gXNCa$babelruntimehelperstypeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function(value) {
|
|
8879
|
-
invoke("next", value, resolve, reject);
|
|
8880
|
-
}, function(err) {
|
|
8881
|
-
invoke("throw", err, resolve, reject);
|
|
8882
|
-
}) : PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
8883
|
-
result.value = unwrapped, resolve(result);
|
|
8884
|
-
}, function(error) {
|
|
8885
|
-
return invoke("throw", error, resolve, reject);
|
|
8886
|
-
});
|
|
8887
|
-
}
|
|
8888
|
-
reject(record.arg);
|
|
8889
|
-
}
|
|
8890
|
-
var previousPromise;
|
|
8891
|
-
this._invoke = function(method, arg) {
|
|
8892
|
-
function callInvokeWithMethodAndArg() {
|
|
8893
|
-
return new PromiseImpl(function(resolve, reject) {
|
|
8894
|
-
invoke(method, arg, resolve, reject);
|
|
8895
|
-
});
|
|
8896
|
-
}
|
|
8897
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
8898
|
-
};
|
|
8899
|
-
}
|
|
8900
|
-
function maybeInvokeDelegate(delegate, context) {
|
|
8901
|
-
var method = delegate.iterator[context.method];
|
|
8902
|
-
if (undefined === method) {
|
|
8903
|
-
if (context.delegate = null, "throw" === context.method) {
|
|
8904
|
-
if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
8905
|
-
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
8906
|
-
}
|
|
8907
|
-
return ContinueSentinel;
|
|
8908
|
-
}
|
|
8909
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
8910
|
-
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
8911
|
-
var info = record.arg;
|
|
8912
|
-
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
8913
|
-
}
|
|
8914
|
-
function pushTryEntry(locs) {
|
|
8915
|
-
var entry = {
|
|
8916
|
-
tryLoc: locs[0]
|
|
8917
|
-
};
|
|
8918
|
-
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
8919
|
-
}
|
|
8920
|
-
function resetTryEntry(entry) {
|
|
8921
|
-
var record = entry.completion || {};
|
|
8922
|
-
record.type = "normal", delete record.arg, entry.completion = record;
|
|
8923
|
-
}
|
|
8924
|
-
function Context(tryLocsList) {
|
|
8925
|
-
this.tryEntries = [
|
|
8926
|
-
{
|
|
8927
|
-
tryLoc: "root"
|
|
8928
|
-
}
|
|
8929
|
-
], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
8930
|
-
}
|
|
8931
|
-
function values(iterable) {
|
|
8932
|
-
if (iterable) {
|
|
8933
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
8934
|
-
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
8935
|
-
if ("function" == typeof iterable.next) return iterable;
|
|
8936
|
-
if (!isNaN(iterable.length)) {
|
|
8937
|
-
var i = -1, next = function next() {
|
|
8938
|
-
for(; ++i < iterable.length;){
|
|
8939
|
-
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
8940
|
-
}
|
|
8941
|
-
return next.value = undefined, next.done = !0, next;
|
|
8942
|
-
};
|
|
8943
|
-
return next.next = next;
|
|
8944
|
-
}
|
|
8945
|
-
}
|
|
8946
|
-
return {
|
|
8947
|
-
next: doneResult
|
|
8948
|
-
};
|
|
8949
|
-
}
|
|
8950
|
-
function doneResult() {
|
|
8951
|
-
return {
|
|
8952
|
-
value: undefined,
|
|
8953
|
-
done: !0
|
|
8954
|
-
};
|
|
8955
|
-
}
|
|
8956
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports1.isGeneratorFunction = function(genFun) {
|
|
8957
|
-
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
8958
|
-
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
8959
|
-
}, exports1.mark = function(genFun) {
|
|
8960
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
8961
|
-
}, exports1.awrap = function(arg) {
|
|
8962
|
-
return {
|
|
8963
|
-
__await: arg
|
|
8964
|
-
};
|
|
8965
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function() {
|
|
8966
|
-
return this;
|
|
8967
|
-
}), exports1.AsyncIterator = AsyncIterator, exports1.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
8968
|
-
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
8969
|
-
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
8970
|
-
return exports1.isGeneratorFunction(outerFn) ? iter : iter.next().then(function(result) {
|
|
8971
|
-
return result.done ? result.value : iter.next();
|
|
8972
|
-
});
|
|
8973
|
-
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function() {
|
|
8974
|
-
return this;
|
|
8975
|
-
}), define(Gp, "toString", function() {
|
|
8976
|
-
return "[object Generator]";
|
|
8977
|
-
}), exports1.keys = function(object) {
|
|
8978
|
-
var keys = [];
|
|
8979
|
-
for(var key in object)keys.push(key);
|
|
8980
|
-
return keys.reverse(), function next() {
|
|
8981
|
-
for(; keys.length;){
|
|
8982
|
-
var key = keys.pop();
|
|
8983
|
-
if (key in object) return next.value = key, next.done = !1, next;
|
|
8984
|
-
}
|
|
8985
|
-
return next.done = !0, next;
|
|
8986
|
-
};
|
|
8987
|
-
}, exports1.values = values, Context.prototype = {
|
|
8988
|
-
constructor: Context,
|
|
8989
|
-
reset: function reset(skipTempReset) {
|
|
8990
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for(var name in this)"t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
8991
|
-
},
|
|
8992
|
-
stop: function stop() {
|
|
8993
|
-
this.done = !0;
|
|
8994
|
-
var rootRecord = this.tryEntries[0].completion;
|
|
8995
|
-
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
8996
|
-
return this.rval;
|
|
8997
|
-
},
|
|
8998
|
-
dispatchException: function dispatchException(exception) {
|
|
8999
|
-
if (this.done) throw exception;
|
|
9000
|
-
var context = this;
|
|
9001
|
-
function handle(loc, caught) {
|
|
9002
|
-
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
9003
|
-
}
|
|
9004
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
9005
|
-
var entry = this.tryEntries[i], record = entry.completion;
|
|
9006
|
-
if ("root" === entry.tryLoc) return handle("end");
|
|
9007
|
-
if (entry.tryLoc <= this.prev) {
|
|
9008
|
-
var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
9009
|
-
if (hasCatch && hasFinally) {
|
|
9010
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
9011
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
9012
|
-
} else if (hasCatch) {
|
|
9013
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
9014
|
-
} else {
|
|
9015
|
-
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
9016
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
9017
|
-
}
|
|
9018
|
-
}
|
|
9019
|
-
}
|
|
9020
|
-
},
|
|
9021
|
-
abrupt: function abrupt(type, arg) {
|
|
9022
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
9023
|
-
var entry = this.tryEntries[i];
|
|
9024
|
-
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
9025
|
-
var finallyEntry = entry;
|
|
9026
|
-
break;
|
|
9027
|
-
}
|
|
9028
|
-
}
|
|
9029
|
-
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
9030
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
9031
|
-
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
9032
|
-
},
|
|
9033
|
-
complete: function complete(record, afterLoc) {
|
|
9034
|
-
if ("throw" === record.type) throw record.arg;
|
|
9035
|
-
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
9036
|
-
},
|
|
9037
|
-
finish: function finish(finallyLoc) {
|
|
9038
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
9039
|
-
var entry = this.tryEntries[i];
|
|
9040
|
-
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
9041
|
-
}
|
|
9042
|
-
},
|
|
9043
|
-
"catch": function _catch(tryLoc) {
|
|
9044
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
9045
|
-
var entry = this.tryEntries[i];
|
|
9046
|
-
if (entry.tryLoc === tryLoc) {
|
|
9047
|
-
var record = entry.completion;
|
|
9048
|
-
if ("throw" === record.type) {
|
|
9049
|
-
var thrown = record.arg;
|
|
9050
|
-
resetTryEntry(entry);
|
|
9051
|
-
}
|
|
9052
|
-
return thrown;
|
|
9053
|
-
}
|
|
9054
|
-
}
|
|
9055
|
-
throw new Error("illegal catch attempt");
|
|
9056
|
-
},
|
|
9057
|
-
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
9058
|
-
return this.delegate = {
|
|
9059
|
-
iterator: values(iterable),
|
|
9060
|
-
resultName: resultName,
|
|
9061
|
-
nextLoc: nextLoc
|
|
9062
|
-
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
9063
|
-
}
|
|
9064
|
-
}, exports1;
|
|
9065
|
-
}
|
|
9066
7975
|
var $9cc56adabc671d24$var$useFileDropper = function useFileDropper(props) {
|
|
9067
7976
|
var _props$initialFiles = props.initialFiles, initialFiles = _props$initialFiles === void 0 ? [] : _props$initialFiles, onAddFiles = props.onAddFiles, _props$onRemoveFile = props.onRemoveFile, onRemoveFile = _props$onRemoveFile === void 0 ? function() {} : _props$onRemoveFile, _props$onChange = props.onChange, onChange = _props$onChange === void 0 ? function() {} : _props$onChange, maxFiles = props.maxFiles;
|
|
9068
7977
|
var _useState = (0, $gXNCa$react.useState)(false), _useState2 = (0, $9cc56adabc671d24$var$_slicedToArray2["default"])(_useState, 2), isUploading = _useState2[0], setIsUpLoading = _useState2[1];
|
|
@@ -9074,9 +7983,9 @@ var $9cc56adabc671d24$var$useFileDropper = function useFileDropper(props) {
|
|
|
9074
7983
|
return _files.length > limit ? _files.splice(0, limit) : _files;
|
|
9075
7984
|
}
|
|
9076
7985
|
var handleAddFiles = /*#__PURE__*/ function() {
|
|
9077
|
-
var _ref = (0, $9cc56adabc671d24$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $9cc56adabc671d24$var$
|
|
7986
|
+
var _ref = (0, $9cc56adabc671d24$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $9cc56adabc671d24$var$_regenerator["default"].mark(function _callee(_files) {
|
|
9078
7987
|
var newFiles, newState;
|
|
9079
|
-
return $9cc56adabc671d24$var$
|
|
7988
|
+
return $9cc56adabc671d24$var$_regenerator["default"].wrap(function _callee$(_context) {
|
|
9080
7989
|
while(true)switch(_context.prev = _context.next){
|
|
9081
7990
|
case 0:
|
|
9082
7991
|
if (!(!_files.length || isUploading || maxFiles && files.length >= maxFiles)) {
|
|
@@ -9122,9 +8031,9 @@ var $9cc56adabc671d24$var$useFileDropper = function useFileDropper(props) {
|
|
|
9122
8031
|
};
|
|
9123
8032
|
}();
|
|
9124
8033
|
var handleRemove = /*#__PURE__*/ function() {
|
|
9125
|
-
var _ref2 = (0, $9cc56adabc671d24$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $9cc56adabc671d24$var$
|
|
8034
|
+
var _ref2 = (0, $9cc56adabc671d24$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $9cc56adabc671d24$var$_regenerator["default"].mark(function _callee2(file, i) {
|
|
9126
8035
|
var newState;
|
|
9127
|
-
return $9cc56adabc671d24$var$
|
|
8036
|
+
return $9cc56adabc671d24$var$_regenerator["default"].wrap(function _callee2$(_context2) {
|
|
9128
8037
|
while(true)switch(_context2.prev = _context2.next){
|
|
9129
8038
|
case 0:
|
|
9130
8039
|
if (!isRemoving) {
|
|
@@ -9278,6 +8187,8 @@ Object.defineProperty(module.exports, "__esModule", {
|
|
|
9278
8187
|
});
|
|
9279
8188
|
module.exports["default"] = void 0;
|
|
9280
8189
|
|
|
8190
|
+
var $39694de9ccf18c3d$var$_regenerator = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimeregenerator);
|
|
8191
|
+
|
|
9281
8192
|
var $39694de9ccf18c3d$var$_defineProperty2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersdefineProperty);
|
|
9282
8193
|
|
|
9283
8194
|
var $39694de9ccf18c3d$var$_asyncToGenerator2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersasyncToGenerator);
|
|
@@ -9357,294 +8268,6 @@ function $39694de9ccf18c3d$var$_objectSpread(target) {
|
|
|
9357
8268
|
}
|
|
9358
8269
|
return target;
|
|
9359
8270
|
}
|
|
9360
|
-
function $39694de9ccf18c3d$var$_regeneratorRuntime() {
|
|
9361
|
-
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
9362
|
-
$39694de9ccf18c3d$var$_regeneratorRuntime = function _regeneratorRuntime() {
|
|
9363
|
-
return exports1;
|
|
9364
|
-
};
|
|
9365
|
-
var exports1 = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
9366
|
-
function define(obj, key, value) {
|
|
9367
|
-
return Object.defineProperty(obj, key, {
|
|
9368
|
-
value: value,
|
|
9369
|
-
enumerable: !0,
|
|
9370
|
-
configurable: !0,
|
|
9371
|
-
writable: !0
|
|
9372
|
-
}), obj[key];
|
|
9373
|
-
}
|
|
9374
|
-
try {
|
|
9375
|
-
define({}, "");
|
|
9376
|
-
} catch (err) {
|
|
9377
|
-
define = function define(obj, key, value) {
|
|
9378
|
-
return obj[key] = value;
|
|
9379
|
-
};
|
|
9380
|
-
}
|
|
9381
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
9382
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []);
|
|
9383
|
-
return generator._invoke = function(innerFn, self, context) {
|
|
9384
|
-
var state = "suspendedStart";
|
|
9385
|
-
return function(method, arg) {
|
|
9386
|
-
if ("executing" === state) throw new Error("Generator is already running");
|
|
9387
|
-
if ("completed" === state) {
|
|
9388
|
-
if ("throw" === method) throw arg;
|
|
9389
|
-
return doneResult();
|
|
9390
|
-
}
|
|
9391
|
-
for(context.method = method, context.arg = arg;;){
|
|
9392
|
-
var delegate = context.delegate;
|
|
9393
|
-
if (delegate) {
|
|
9394
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
9395
|
-
if (delegateResult) {
|
|
9396
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
9397
|
-
return delegateResult;
|
|
9398
|
-
}
|
|
9399
|
-
}
|
|
9400
|
-
if ("next" === context.method) context.sent = context._sent = context.arg;
|
|
9401
|
-
else if ("throw" === context.method) {
|
|
9402
|
-
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
9403
|
-
context.dispatchException(context.arg);
|
|
9404
|
-
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
9405
|
-
state = "executing";
|
|
9406
|
-
var record = tryCatch(innerFn, self, context);
|
|
9407
|
-
if ("normal" === record.type) {
|
|
9408
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
9409
|
-
return {
|
|
9410
|
-
value: record.arg,
|
|
9411
|
-
done: context.done
|
|
9412
|
-
};
|
|
9413
|
-
}
|
|
9414
|
-
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
9415
|
-
}
|
|
9416
|
-
};
|
|
9417
|
-
}(innerFn, self, context), generator;
|
|
9418
|
-
}
|
|
9419
|
-
function tryCatch(fn, obj, arg) {
|
|
9420
|
-
try {
|
|
9421
|
-
return {
|
|
9422
|
-
type: "normal",
|
|
9423
|
-
arg: fn.call(obj, arg)
|
|
9424
|
-
};
|
|
9425
|
-
} catch (err) {
|
|
9426
|
-
return {
|
|
9427
|
-
type: "throw",
|
|
9428
|
-
arg: err
|
|
9429
|
-
};
|
|
9430
|
-
}
|
|
9431
|
-
}
|
|
9432
|
-
exports1.wrap = wrap;
|
|
9433
|
-
var ContinueSentinel = {};
|
|
9434
|
-
function Generator() {}
|
|
9435
|
-
function GeneratorFunction() {}
|
|
9436
|
-
function GeneratorFunctionPrototype() {}
|
|
9437
|
-
var IteratorPrototype = {};
|
|
9438
|
-
define(IteratorPrototype, iteratorSymbol, function() {
|
|
9439
|
-
return this;
|
|
9440
|
-
});
|
|
9441
|
-
var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
9442
|
-
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
9443
|
-
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
9444
|
-
function defineIteratorMethods(prototype) {
|
|
9445
|
-
[
|
|
9446
|
-
"next",
|
|
9447
|
-
"throw",
|
|
9448
|
-
"return"
|
|
9449
|
-
].forEach(function(method) {
|
|
9450
|
-
define(prototype, method, function(arg) {
|
|
9451
|
-
return this._invoke(method, arg);
|
|
9452
|
-
});
|
|
9453
|
-
});
|
|
9454
|
-
}
|
|
9455
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
9456
|
-
function invoke(method, arg, resolve, reject) {
|
|
9457
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
9458
|
-
if ("throw" !== record.type) {
|
|
9459
|
-
var result = record.arg, value = result.value;
|
|
9460
|
-
return value && "object" == $gXNCa$babelruntimehelperstypeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function(value) {
|
|
9461
|
-
invoke("next", value, resolve, reject);
|
|
9462
|
-
}, function(err) {
|
|
9463
|
-
invoke("throw", err, resolve, reject);
|
|
9464
|
-
}) : PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
9465
|
-
result.value = unwrapped, resolve(result);
|
|
9466
|
-
}, function(error) {
|
|
9467
|
-
return invoke("throw", error, resolve, reject);
|
|
9468
|
-
});
|
|
9469
|
-
}
|
|
9470
|
-
reject(record.arg);
|
|
9471
|
-
}
|
|
9472
|
-
var previousPromise;
|
|
9473
|
-
this._invoke = function(method, arg) {
|
|
9474
|
-
function callInvokeWithMethodAndArg() {
|
|
9475
|
-
return new PromiseImpl(function(resolve, reject) {
|
|
9476
|
-
invoke(method, arg, resolve, reject);
|
|
9477
|
-
});
|
|
9478
|
-
}
|
|
9479
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
9480
|
-
};
|
|
9481
|
-
}
|
|
9482
|
-
function maybeInvokeDelegate(delegate, context) {
|
|
9483
|
-
var method = delegate.iterator[context.method];
|
|
9484
|
-
if (undefined === method) {
|
|
9485
|
-
if (context.delegate = null, "throw" === context.method) {
|
|
9486
|
-
if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
9487
|
-
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
9488
|
-
}
|
|
9489
|
-
return ContinueSentinel;
|
|
9490
|
-
}
|
|
9491
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
9492
|
-
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
9493
|
-
var info = record.arg;
|
|
9494
|
-
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
9495
|
-
}
|
|
9496
|
-
function pushTryEntry(locs) {
|
|
9497
|
-
var entry = {
|
|
9498
|
-
tryLoc: locs[0]
|
|
9499
|
-
};
|
|
9500
|
-
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
9501
|
-
}
|
|
9502
|
-
function resetTryEntry(entry) {
|
|
9503
|
-
var record = entry.completion || {};
|
|
9504
|
-
record.type = "normal", delete record.arg, entry.completion = record;
|
|
9505
|
-
}
|
|
9506
|
-
function Context(tryLocsList) {
|
|
9507
|
-
this.tryEntries = [
|
|
9508
|
-
{
|
|
9509
|
-
tryLoc: "root"
|
|
9510
|
-
}
|
|
9511
|
-
], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
9512
|
-
}
|
|
9513
|
-
function values(iterable) {
|
|
9514
|
-
if (iterable) {
|
|
9515
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
9516
|
-
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
9517
|
-
if ("function" == typeof iterable.next) return iterable;
|
|
9518
|
-
if (!isNaN(iterable.length)) {
|
|
9519
|
-
var i = -1, next = function next() {
|
|
9520
|
-
for(; ++i < iterable.length;){
|
|
9521
|
-
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
9522
|
-
}
|
|
9523
|
-
return next.value = undefined, next.done = !0, next;
|
|
9524
|
-
};
|
|
9525
|
-
return next.next = next;
|
|
9526
|
-
}
|
|
9527
|
-
}
|
|
9528
|
-
return {
|
|
9529
|
-
next: doneResult
|
|
9530
|
-
};
|
|
9531
|
-
}
|
|
9532
|
-
function doneResult() {
|
|
9533
|
-
return {
|
|
9534
|
-
value: undefined,
|
|
9535
|
-
done: !0
|
|
9536
|
-
};
|
|
9537
|
-
}
|
|
9538
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports1.isGeneratorFunction = function(genFun) {
|
|
9539
|
-
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
9540
|
-
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
9541
|
-
}, exports1.mark = function(genFun) {
|
|
9542
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
9543
|
-
}, exports1.awrap = function(arg) {
|
|
9544
|
-
return {
|
|
9545
|
-
__await: arg
|
|
9546
|
-
};
|
|
9547
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function() {
|
|
9548
|
-
return this;
|
|
9549
|
-
}), exports1.AsyncIterator = AsyncIterator, exports1.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
9550
|
-
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
9551
|
-
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
9552
|
-
return exports1.isGeneratorFunction(outerFn) ? iter : iter.next().then(function(result) {
|
|
9553
|
-
return result.done ? result.value : iter.next();
|
|
9554
|
-
});
|
|
9555
|
-
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function() {
|
|
9556
|
-
return this;
|
|
9557
|
-
}), define(Gp, "toString", function() {
|
|
9558
|
-
return "[object Generator]";
|
|
9559
|
-
}), exports1.keys = function(object) {
|
|
9560
|
-
var keys = [];
|
|
9561
|
-
for(var key in object)keys.push(key);
|
|
9562
|
-
return keys.reverse(), function next() {
|
|
9563
|
-
for(; keys.length;){
|
|
9564
|
-
var key = keys.pop();
|
|
9565
|
-
if (key in object) return next.value = key, next.done = !1, next;
|
|
9566
|
-
}
|
|
9567
|
-
return next.done = !0, next;
|
|
9568
|
-
};
|
|
9569
|
-
}, exports1.values = values, Context.prototype = {
|
|
9570
|
-
constructor: Context,
|
|
9571
|
-
reset: function reset(skipTempReset) {
|
|
9572
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for(var name in this)"t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
9573
|
-
},
|
|
9574
|
-
stop: function stop() {
|
|
9575
|
-
this.done = !0;
|
|
9576
|
-
var rootRecord = this.tryEntries[0].completion;
|
|
9577
|
-
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
9578
|
-
return this.rval;
|
|
9579
|
-
},
|
|
9580
|
-
dispatchException: function dispatchException(exception) {
|
|
9581
|
-
if (this.done) throw exception;
|
|
9582
|
-
var context = this;
|
|
9583
|
-
function handle(loc, caught) {
|
|
9584
|
-
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
9585
|
-
}
|
|
9586
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
9587
|
-
var entry = this.tryEntries[i], record = entry.completion;
|
|
9588
|
-
if ("root" === entry.tryLoc) return handle("end");
|
|
9589
|
-
if (entry.tryLoc <= this.prev) {
|
|
9590
|
-
var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
9591
|
-
if (hasCatch && hasFinally) {
|
|
9592
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
9593
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
9594
|
-
} else if (hasCatch) {
|
|
9595
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
9596
|
-
} else {
|
|
9597
|
-
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
9598
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
9599
|
-
}
|
|
9600
|
-
}
|
|
9601
|
-
}
|
|
9602
|
-
},
|
|
9603
|
-
abrupt: function abrupt(type, arg) {
|
|
9604
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
9605
|
-
var entry = this.tryEntries[i];
|
|
9606
|
-
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
9607
|
-
var finallyEntry = entry;
|
|
9608
|
-
break;
|
|
9609
|
-
}
|
|
9610
|
-
}
|
|
9611
|
-
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
9612
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
9613
|
-
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
9614
|
-
},
|
|
9615
|
-
complete: function complete(record, afterLoc) {
|
|
9616
|
-
if ("throw" === record.type) throw record.arg;
|
|
9617
|
-
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
9618
|
-
},
|
|
9619
|
-
finish: function finish(finallyLoc) {
|
|
9620
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
9621
|
-
var entry = this.tryEntries[i];
|
|
9622
|
-
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
9623
|
-
}
|
|
9624
|
-
},
|
|
9625
|
-
"catch": function _catch(tryLoc) {
|
|
9626
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
9627
|
-
var entry = this.tryEntries[i];
|
|
9628
|
-
if (entry.tryLoc === tryLoc) {
|
|
9629
|
-
var record = entry.completion;
|
|
9630
|
-
if ("throw" === record.type) {
|
|
9631
|
-
var thrown = record.arg;
|
|
9632
|
-
resetTryEntry(entry);
|
|
9633
|
-
}
|
|
9634
|
-
return thrown;
|
|
9635
|
-
}
|
|
9636
|
-
}
|
|
9637
|
-
throw new Error("illegal catch attempt");
|
|
9638
|
-
},
|
|
9639
|
-
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
9640
|
-
return this.delegate = {
|
|
9641
|
-
iterator: values(iterable),
|
|
9642
|
-
resultName: resultName,
|
|
9643
|
-
nextLoc: nextLoc
|
|
9644
|
-
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
9645
|
-
}
|
|
9646
|
-
}, exports1;
|
|
9647
|
-
}
|
|
9648
8271
|
var $39694de9ccf18c3d$var$WrapperIcon = function WrapperIcon(props) {
|
|
9649
8272
|
var badgeContent = props.badgeContent, badgeColor = props.badgeColor, children = props.children;
|
|
9650
8273
|
if (badgeContent) return /*#__PURE__*/ $39694de9ccf18c3d$var$_react["default"].createElement($gXNCa$muimaterial.Badge, {
|
|
@@ -9670,9 +8293,9 @@ var $39694de9ccf18c3d$var$InlineButton = function InlineButton(props) {
|
|
|
9670
8293
|
};
|
|
9671
8294
|
var marginClassname = marginClassesMap[marginDirection];
|
|
9672
8295
|
var _onClick = /*#__PURE__*/ function() {
|
|
9673
|
-
var _ref = (0, $39694de9ccf18c3d$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $39694de9ccf18c3d$var$
|
|
8296
|
+
var _ref = (0, $39694de9ccf18c3d$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $39694de9ccf18c3d$var$_regenerator["default"].mark(function _callee(e, button) {
|
|
9674
8297
|
var _button$onClick;
|
|
9675
|
-
return $39694de9ccf18c3d$var$
|
|
8298
|
+
return $39694de9ccf18c3d$var$_regenerator["default"].wrap(function _callee$(_context) {
|
|
9676
8299
|
while(true)switch(_context.prev = _context.next){
|
|
9677
8300
|
case 0:
|
|
9678
8301
|
if (!button.onClick) {
|
|
@@ -9680,7 +8303,7 @@ var $39694de9ccf18c3d$var$InlineButton = function InlineButton(props) {
|
|
|
9680
8303
|
break;
|
|
9681
8304
|
}
|
|
9682
8305
|
_context.prev = 1;
|
|
9683
|
-
if ((_button$onClick = button.onClick) !== null && _button$onClick !== void 0 && _button$onClick.then || (0, $e902G.isAsync)(button.onClick)) setIsLoading((0, $39694de9ccf18c3d$var$_defineProperty2["default"])({}, button.text, true));
|
|
8306
|
+
if (!button.noLoader && ((_button$onClick = button.onClick) !== null && _button$onClick !== void 0 && _button$onClick.then || (0, $e902G.isAsync)(button.onClick))) setIsLoading((0, $39694de9ccf18c3d$var$_defineProperty2["default"])({}, button.text, true));
|
|
9684
8307
|
setDisableAllOnLoad(true);
|
|
9685
8308
|
_context.next = 6;
|
|
9686
8309
|
return button.onClick(e);
|
|
@@ -9989,7 +8612,8 @@ var $c540f60a589f33c4$var$Button = function Button(props) {
|
|
|
9989
8612
|
variant: variant,
|
|
9990
8613
|
disabled: disabled
|
|
9991
8614
|
})));
|
|
9992
|
-
};
|
|
8615
|
+
};
|
|
8616
|
+
// Props
|
|
9993
8617
|
$c540f60a589f33c4$var$Button.propTypes = {
|
|
9994
8618
|
color: $c540f60a589f33c4$var$_propTypes["default"].oneOf([
|
|
9995
8619
|
"primary",
|
|
@@ -11521,6 +10145,8 @@ Object.defineProperty(module.exports, "__esModule", {
|
|
|
11521
10145
|
});
|
|
11522
10146
|
module.exports["default"] = void 0;
|
|
11523
10147
|
|
|
10148
|
+
var $3e6285a7fb5d9790$var$_regenerator = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimeregenerator);
|
|
10149
|
+
|
|
11524
10150
|
var $3e6285a7fb5d9790$var$_asyncToGenerator2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersasyncToGenerator);
|
|
11525
10151
|
|
|
11526
10152
|
var $3e6285a7fb5d9790$var$_slicedToArray2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersslicedToArray);
|
|
@@ -11560,294 +10186,6 @@ function $3e6285a7fb5d9790$var$_interopRequireWildcard(obj, nodeInterop) {
|
|
|
11560
10186
|
if (cache) cache.set(obj, newObj);
|
|
11561
10187
|
return newObj;
|
|
11562
10188
|
}
|
|
11563
|
-
function $3e6285a7fb5d9790$var$_regeneratorRuntime() {
|
|
11564
|
-
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
11565
|
-
$3e6285a7fb5d9790$var$_regeneratorRuntime = function _regeneratorRuntime() {
|
|
11566
|
-
return exports1;
|
|
11567
|
-
};
|
|
11568
|
-
var exports1 = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
11569
|
-
function define(obj, key, value) {
|
|
11570
|
-
return Object.defineProperty(obj, key, {
|
|
11571
|
-
value: value,
|
|
11572
|
-
enumerable: !0,
|
|
11573
|
-
configurable: !0,
|
|
11574
|
-
writable: !0
|
|
11575
|
-
}), obj[key];
|
|
11576
|
-
}
|
|
11577
|
-
try {
|
|
11578
|
-
define({}, "");
|
|
11579
|
-
} catch (err) {
|
|
11580
|
-
define = function define(obj, key, value) {
|
|
11581
|
-
return obj[key] = value;
|
|
11582
|
-
};
|
|
11583
|
-
}
|
|
11584
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
11585
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []);
|
|
11586
|
-
return generator._invoke = function(innerFn, self, context) {
|
|
11587
|
-
var state = "suspendedStart";
|
|
11588
|
-
return function(method, arg) {
|
|
11589
|
-
if ("executing" === state) throw new Error("Generator is already running");
|
|
11590
|
-
if ("completed" === state) {
|
|
11591
|
-
if ("throw" === method) throw arg;
|
|
11592
|
-
return doneResult();
|
|
11593
|
-
}
|
|
11594
|
-
for(context.method = method, context.arg = arg;;){
|
|
11595
|
-
var delegate = context.delegate;
|
|
11596
|
-
if (delegate) {
|
|
11597
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
11598
|
-
if (delegateResult) {
|
|
11599
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
11600
|
-
return delegateResult;
|
|
11601
|
-
}
|
|
11602
|
-
}
|
|
11603
|
-
if ("next" === context.method) context.sent = context._sent = context.arg;
|
|
11604
|
-
else if ("throw" === context.method) {
|
|
11605
|
-
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
11606
|
-
context.dispatchException(context.arg);
|
|
11607
|
-
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
11608
|
-
state = "executing";
|
|
11609
|
-
var record = tryCatch(innerFn, self, context);
|
|
11610
|
-
if ("normal" === record.type) {
|
|
11611
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
11612
|
-
return {
|
|
11613
|
-
value: record.arg,
|
|
11614
|
-
done: context.done
|
|
11615
|
-
};
|
|
11616
|
-
}
|
|
11617
|
-
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
11618
|
-
}
|
|
11619
|
-
};
|
|
11620
|
-
}(innerFn, self, context), generator;
|
|
11621
|
-
}
|
|
11622
|
-
function tryCatch(fn, obj, arg) {
|
|
11623
|
-
try {
|
|
11624
|
-
return {
|
|
11625
|
-
type: "normal",
|
|
11626
|
-
arg: fn.call(obj, arg)
|
|
11627
|
-
};
|
|
11628
|
-
} catch (err) {
|
|
11629
|
-
return {
|
|
11630
|
-
type: "throw",
|
|
11631
|
-
arg: err
|
|
11632
|
-
};
|
|
11633
|
-
}
|
|
11634
|
-
}
|
|
11635
|
-
exports1.wrap = wrap;
|
|
11636
|
-
var ContinueSentinel = {};
|
|
11637
|
-
function Generator() {}
|
|
11638
|
-
function GeneratorFunction() {}
|
|
11639
|
-
function GeneratorFunctionPrototype() {}
|
|
11640
|
-
var IteratorPrototype = {};
|
|
11641
|
-
define(IteratorPrototype, iteratorSymbol, function() {
|
|
11642
|
-
return this;
|
|
11643
|
-
});
|
|
11644
|
-
var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
11645
|
-
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
11646
|
-
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
11647
|
-
function defineIteratorMethods(prototype) {
|
|
11648
|
-
[
|
|
11649
|
-
"next",
|
|
11650
|
-
"throw",
|
|
11651
|
-
"return"
|
|
11652
|
-
].forEach(function(method) {
|
|
11653
|
-
define(prototype, method, function(arg) {
|
|
11654
|
-
return this._invoke(method, arg);
|
|
11655
|
-
});
|
|
11656
|
-
});
|
|
11657
|
-
}
|
|
11658
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
11659
|
-
function invoke(method, arg, resolve, reject) {
|
|
11660
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
11661
|
-
if ("throw" !== record.type) {
|
|
11662
|
-
var result = record.arg, value = result.value;
|
|
11663
|
-
return value && "object" == $gXNCa$babelruntimehelperstypeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function(value) {
|
|
11664
|
-
invoke("next", value, resolve, reject);
|
|
11665
|
-
}, function(err) {
|
|
11666
|
-
invoke("throw", err, resolve, reject);
|
|
11667
|
-
}) : PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
11668
|
-
result.value = unwrapped, resolve(result);
|
|
11669
|
-
}, function(error) {
|
|
11670
|
-
return invoke("throw", error, resolve, reject);
|
|
11671
|
-
});
|
|
11672
|
-
}
|
|
11673
|
-
reject(record.arg);
|
|
11674
|
-
}
|
|
11675
|
-
var previousPromise;
|
|
11676
|
-
this._invoke = function(method, arg) {
|
|
11677
|
-
function callInvokeWithMethodAndArg() {
|
|
11678
|
-
return new PromiseImpl(function(resolve, reject) {
|
|
11679
|
-
invoke(method, arg, resolve, reject);
|
|
11680
|
-
});
|
|
11681
|
-
}
|
|
11682
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
11683
|
-
};
|
|
11684
|
-
}
|
|
11685
|
-
function maybeInvokeDelegate(delegate, context) {
|
|
11686
|
-
var method = delegate.iterator[context.method];
|
|
11687
|
-
if (undefined === method) {
|
|
11688
|
-
if (context.delegate = null, "throw" === context.method) {
|
|
11689
|
-
if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
11690
|
-
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
11691
|
-
}
|
|
11692
|
-
return ContinueSentinel;
|
|
11693
|
-
}
|
|
11694
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
11695
|
-
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
11696
|
-
var info = record.arg;
|
|
11697
|
-
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
11698
|
-
}
|
|
11699
|
-
function pushTryEntry(locs) {
|
|
11700
|
-
var entry = {
|
|
11701
|
-
tryLoc: locs[0]
|
|
11702
|
-
};
|
|
11703
|
-
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
11704
|
-
}
|
|
11705
|
-
function resetTryEntry(entry) {
|
|
11706
|
-
var record = entry.completion || {};
|
|
11707
|
-
record.type = "normal", delete record.arg, entry.completion = record;
|
|
11708
|
-
}
|
|
11709
|
-
function Context(tryLocsList) {
|
|
11710
|
-
this.tryEntries = [
|
|
11711
|
-
{
|
|
11712
|
-
tryLoc: "root"
|
|
11713
|
-
}
|
|
11714
|
-
], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
11715
|
-
}
|
|
11716
|
-
function values(iterable) {
|
|
11717
|
-
if (iterable) {
|
|
11718
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
11719
|
-
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
11720
|
-
if ("function" == typeof iterable.next) return iterable;
|
|
11721
|
-
if (!isNaN(iterable.length)) {
|
|
11722
|
-
var i = -1, next = function next() {
|
|
11723
|
-
for(; ++i < iterable.length;){
|
|
11724
|
-
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
11725
|
-
}
|
|
11726
|
-
return next.value = undefined, next.done = !0, next;
|
|
11727
|
-
};
|
|
11728
|
-
return next.next = next;
|
|
11729
|
-
}
|
|
11730
|
-
}
|
|
11731
|
-
return {
|
|
11732
|
-
next: doneResult
|
|
11733
|
-
};
|
|
11734
|
-
}
|
|
11735
|
-
function doneResult() {
|
|
11736
|
-
return {
|
|
11737
|
-
value: undefined,
|
|
11738
|
-
done: !0
|
|
11739
|
-
};
|
|
11740
|
-
}
|
|
11741
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports1.isGeneratorFunction = function(genFun) {
|
|
11742
|
-
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
11743
|
-
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
11744
|
-
}, exports1.mark = function(genFun) {
|
|
11745
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
11746
|
-
}, exports1.awrap = function(arg) {
|
|
11747
|
-
return {
|
|
11748
|
-
__await: arg
|
|
11749
|
-
};
|
|
11750
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function() {
|
|
11751
|
-
return this;
|
|
11752
|
-
}), exports1.AsyncIterator = AsyncIterator, exports1.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
11753
|
-
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
11754
|
-
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
11755
|
-
return exports1.isGeneratorFunction(outerFn) ? iter : iter.next().then(function(result) {
|
|
11756
|
-
return result.done ? result.value : iter.next();
|
|
11757
|
-
});
|
|
11758
|
-
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function() {
|
|
11759
|
-
return this;
|
|
11760
|
-
}), define(Gp, "toString", function() {
|
|
11761
|
-
return "[object Generator]";
|
|
11762
|
-
}), exports1.keys = function(object) {
|
|
11763
|
-
var keys = [];
|
|
11764
|
-
for(var key in object)keys.push(key);
|
|
11765
|
-
return keys.reverse(), function next() {
|
|
11766
|
-
for(; keys.length;){
|
|
11767
|
-
var key = keys.pop();
|
|
11768
|
-
if (key in object) return next.value = key, next.done = !1, next;
|
|
11769
|
-
}
|
|
11770
|
-
return next.done = !0, next;
|
|
11771
|
-
};
|
|
11772
|
-
}, exports1.values = values, Context.prototype = {
|
|
11773
|
-
constructor: Context,
|
|
11774
|
-
reset: function reset(skipTempReset) {
|
|
11775
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for(var name in this)"t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
11776
|
-
},
|
|
11777
|
-
stop: function stop() {
|
|
11778
|
-
this.done = !0;
|
|
11779
|
-
var rootRecord = this.tryEntries[0].completion;
|
|
11780
|
-
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
11781
|
-
return this.rval;
|
|
11782
|
-
},
|
|
11783
|
-
dispatchException: function dispatchException(exception) {
|
|
11784
|
-
if (this.done) throw exception;
|
|
11785
|
-
var context = this;
|
|
11786
|
-
function handle(loc, caught) {
|
|
11787
|
-
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
11788
|
-
}
|
|
11789
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
11790
|
-
var entry = this.tryEntries[i], record = entry.completion;
|
|
11791
|
-
if ("root" === entry.tryLoc) return handle("end");
|
|
11792
|
-
if (entry.tryLoc <= this.prev) {
|
|
11793
|
-
var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
11794
|
-
if (hasCatch && hasFinally) {
|
|
11795
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
11796
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
11797
|
-
} else if (hasCatch) {
|
|
11798
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
11799
|
-
} else {
|
|
11800
|
-
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
11801
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
11802
|
-
}
|
|
11803
|
-
}
|
|
11804
|
-
}
|
|
11805
|
-
},
|
|
11806
|
-
abrupt: function abrupt(type, arg) {
|
|
11807
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
11808
|
-
var entry = this.tryEntries[i];
|
|
11809
|
-
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
11810
|
-
var finallyEntry = entry;
|
|
11811
|
-
break;
|
|
11812
|
-
}
|
|
11813
|
-
}
|
|
11814
|
-
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
11815
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
11816
|
-
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
11817
|
-
},
|
|
11818
|
-
complete: function complete(record, afterLoc) {
|
|
11819
|
-
if ("throw" === record.type) throw record.arg;
|
|
11820
|
-
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
11821
|
-
},
|
|
11822
|
-
finish: function finish(finallyLoc) {
|
|
11823
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
11824
|
-
var entry = this.tryEntries[i];
|
|
11825
|
-
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
11826
|
-
}
|
|
11827
|
-
},
|
|
11828
|
-
"catch": function _catch(tryLoc) {
|
|
11829
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
11830
|
-
var entry = this.tryEntries[i];
|
|
11831
|
-
if (entry.tryLoc === tryLoc) {
|
|
11832
|
-
var record = entry.completion;
|
|
11833
|
-
if ("throw" === record.type) {
|
|
11834
|
-
var thrown = record.arg;
|
|
11835
|
-
resetTryEntry(entry);
|
|
11836
|
-
}
|
|
11837
|
-
return thrown;
|
|
11838
|
-
}
|
|
11839
|
-
}
|
|
11840
|
-
throw new Error("illegal catch attempt");
|
|
11841
|
-
},
|
|
11842
|
-
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
11843
|
-
return this.delegate = {
|
|
11844
|
-
iterator: values(iterable),
|
|
11845
|
-
resultName: resultName,
|
|
11846
|
-
nextLoc: nextLoc
|
|
11847
|
-
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
11848
|
-
}
|
|
11849
|
-
}, exports1;
|
|
11850
|
-
}
|
|
11851
10189
|
var $3e6285a7fb5d9790$var$ButtonCell = function ButtonCell(_ref) {
|
|
11852
10190
|
var data = _ref.data, dataKey = _ref.dataKey, column = _ref.column, isDisabled = _ref.isDisabled;
|
|
11853
10191
|
var _useState = (0, $3e6285a7fb5d9790$var$_react.useState)(false), _useState2 = (0, $3e6285a7fb5d9790$var$_slicedToArray2["default"])(_useState, 2), loading = _useState2[0], setLoading = _useState2[1];
|
|
@@ -11857,8 +10195,8 @@ var $3e6285a7fb5d9790$var$ButtonCell = function ButtonCell(_ref) {
|
|
|
11857
10195
|
return _onClick.apply(this, arguments);
|
|
11858
10196
|
}
|
|
11859
10197
|
function _onClick() {
|
|
11860
|
-
_onClick = (0, $3e6285a7fb5d9790$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $3e6285a7fb5d9790$var$
|
|
11861
|
-
return $3e6285a7fb5d9790$var$
|
|
10198
|
+
_onClick = (0, $3e6285a7fb5d9790$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $3e6285a7fb5d9790$var$_regenerator["default"].mark(function _callee() {
|
|
10199
|
+
return $3e6285a7fb5d9790$var$_regenerator["default"].wrap(function _callee$(_context) {
|
|
11862
10200
|
while(true)switch(_context.prev = _context.next){
|
|
11863
10201
|
case 0:
|
|
11864
10202
|
_context.prev = 0;
|
|
@@ -12328,7 +10666,8 @@ var $9989899389fa060b$var$AutocompleteEdit = /*#__PURE__*/ (0, $9989899389fa060b
|
|
|
12328
10666
|
}, label));
|
|
12329
10667
|
},
|
|
12330
10668
|
filterOptions: function filterOptions(options, params) {
|
|
12331
|
-
var filtered = filter(options, params);
|
|
10669
|
+
var filtered = filter(options, params);
|
|
10670
|
+
// Suggest the creation of a new value
|
|
12332
10671
|
if (params.inputValue !== "" && filtered.length === 0 && canCreate) filtered.push({
|
|
12333
10672
|
inputValue: params.inputValue,
|
|
12334
10673
|
label: $9989899389fa060b$var$_I18n["default"].t("autocomplete.createOption", {
|
|
@@ -12682,9 +11021,9 @@ function $6ea307c9b2d01d64$var$_interopRequireWildcard(obj, nodeInterop) {
|
|
|
12682
11021
|
return newObj;
|
|
12683
11022
|
}
|
|
12684
11023
|
var $6ea307c9b2d01d64$var$VirtualGrid = /*#__PURE__*/ (0, $6ea307c9b2d01d64$var$_react.forwardRef)(function VirtualGrid(props, ref) {
|
|
12685
|
-
var className = props.className, contentWidth = props.contentWidth, _props$estimatedRowSi = props.estimatedRowSize, estimatedRowSize = _props$estimatedRowSi === void 0 ? 32 : _props$estimatedRowSi, height = props.height, _props$onScroll = props.onScroll, _onScroll = _props$onScroll === void 0 ? function() {} : _props$onScroll,
|
|
11024
|
+
var className = props.className, contentWidth = props.contentWidth, _props$estimatedRowSi = props.estimatedRowSize, estimatedRowSize = _props$estimatedRowSi === void 0 ? 32 : _props$estimatedRowSi, height = props.height, _props$onScroll = props.onScroll, _onScroll = _props$onScroll === void 0 ? function() {} : _props$onScroll, _props$overscanRowCou = props.overscanRowCount, overscanRowCount = _props$overscanRowCou === void 0 ? 5 : _props$overscanRowCou, rowCount = props.rowCount, _props$rowRenderer = props.rowRenderer, rowRenderer = _props$rowRenderer === void 0 ? function() {
|
|
12686
11025
|
return null;
|
|
12687
|
-
} : _props$rowRenderer, scrollTop = props.scrollTop
|
|
11026
|
+
} : _props$rowRenderer, scrollTop = props.scrollTop;
|
|
12688
11027
|
var styleCache = [];
|
|
12689
11028
|
var _calculateRowIndexesR = (0, $8rceO.calculateRowIndexesRange)({
|
|
12690
11029
|
height: height,
|
|
@@ -12709,19 +11048,10 @@ var $6ea307c9b2d01d64$var$VirtualGrid = /*#__PURE__*/ (0, $6ea307c9b2d01d64$var$
|
|
|
12709
11048
|
}
|
|
12710
11049
|
return rowsToRender;
|
|
12711
11050
|
};
|
|
12712
|
-
(0, $6ea307c9b2d01d64$var$_react.useEffect)(function() {
|
|
12713
|
-
if (ref !== null && ref !== void 0 && ref.current) onScrollbarPresenceChange((0, $8rceO.getScrollbarDimension)(ref === null || ref === void 0 ? void 0 : ref.current));
|
|
12714
|
-
}, [
|
|
12715
|
-
rowCount,
|
|
12716
|
-
height,
|
|
12717
|
-
width
|
|
12718
|
-
]);
|
|
12719
11051
|
return /*#__PURE__*/ $6ea307c9b2d01d64$var$_react["default"].createElement("div", {
|
|
12720
11052
|
ref: ref,
|
|
12721
|
-
className: className,
|
|
12722
|
-
|
|
12723
|
-
height: height
|
|
12724
|
-
},
|
|
11053
|
+
className: className,
|
|
11054
|
+
"data-role": "body",
|
|
12725
11055
|
onScroll: function onScroll(e) {
|
|
12726
11056
|
return _onScroll(e.target);
|
|
12727
11057
|
},
|
|
@@ -12730,7 +11060,8 @@ var $6ea307c9b2d01d64$var$VirtualGrid = /*#__PURE__*/ (0, $6ea307c9b2d01d64$var$
|
|
|
12730
11060
|
style: {
|
|
12731
11061
|
width: contentWidth,
|
|
12732
11062
|
height: rowCount * estimatedRowSize,
|
|
12733
|
-
position: "relative"
|
|
11063
|
+
position: "relative",
|
|
11064
|
+
minWidth: "100%"
|
|
12734
11065
|
}
|
|
12735
11066
|
}, getRows()));
|
|
12736
11067
|
});
|
|
@@ -12828,10 +11159,11 @@ function $62231dc23eb5e423$var$_interopRequireWildcard(obj, nodeInterop) {
|
|
|
12828
11159
|
if (cache) cache.set(obj, newObj);
|
|
12829
11160
|
return newObj;
|
|
12830
11161
|
}
|
|
12831
|
-
var $62231dc23eb5e423$var$Footer =
|
|
11162
|
+
var $62231dc23eb5e423$var$Footer = function Footer(_ref) {
|
|
12832
11163
|
var _ref$current;
|
|
12833
11164
|
var modeEdit = _ref.modeEdit, displayableRows = _ref.displayableRows, domRef = _ref.domRef, rest = (0, $62231dc23eb5e423$var$_objectWithoutProperties2["default"])(_ref, $62231dc23eb5e423$var$_excluded);
|
|
12834
11165
|
var _useConfig = (0, $ckVq7.useConfig)(), _useConfig$config = _useConfig.config, columns = _useConfig$config.columns, _useConfig$config$foo = _useConfig$config.footerStyle, footerStyle = _useConfig$config$foo === void 0 ? {} : _useConfig$config$foo, stylesProp = _useConfig$config.styles;
|
|
11166
|
+
var ref = (0, $62231dc23eb5e423$var$_react.useRef)();
|
|
12835
11167
|
var _columns = (0, $62231dc23eb5e423$var$_react.useMemo)(function() {
|
|
12836
11168
|
var list = [];
|
|
12837
11169
|
for(var i = 0; i < columns.length; i++){
|
|
@@ -12912,7 +11244,7 @@ var $62231dc23eb5e423$var$Footer = /*#__PURE__*/ $62231dc23eb5e423$var$_react["d
|
|
|
12912
11244
|
classes: columnIndex < rest.fixedColumnCount ? styles.fixed : null
|
|
12913
11245
|
});
|
|
12914
11246
|
})));
|
|
12915
|
-
}
|
|
11247
|
+
};
|
|
12916
11248
|
var $62231dc23eb5e423$var$_default = $62231dc23eb5e423$var$Footer;
|
|
12917
11249
|
module.exports["default"] = $62231dc23eb5e423$var$_default;
|
|
12918
11250
|
|
|
@@ -12929,6 +11261,7 @@ var $1b8a9f45f1071ae2$var$_makeStyles = $gXNCa$babelruntimehelpersinteropRequire
|
|
|
12929
11261
|
var $1b8a9f45f1071ae2$var$useStyles = (0, $1b8a9f45f1071ae2$var$_makeStyles["default"])(function() {
|
|
12930
11262
|
return {
|
|
12931
11263
|
gridContainer: {
|
|
11264
|
+
flexShrink: 0,
|
|
12932
11265
|
backgroundColor: "#fff",
|
|
12933
11266
|
overflow: "hidden"
|
|
12934
11267
|
},
|
|
@@ -13203,8 +11536,7 @@ var $e7517de803644e56$var$_excluded = [
|
|
|
13203
11536
|
"tableKeyName",
|
|
13204
11537
|
"order",
|
|
13205
11538
|
"orderDirection",
|
|
13206
|
-
"onOrderChange"
|
|
13207
|
-
"domRef"
|
|
11539
|
+
"onOrderChange"
|
|
13208
11540
|
];
|
|
13209
11541
|
function $e7517de803644e56$var$_getRequireWildcardCache(nodeInterop) {
|
|
13210
11542
|
if (typeof WeakMap !== "function") return null;
|
|
@@ -13294,8 +11626,8 @@ function $e7517de803644e56$var$_arrayLikeToArray(arr, len) {
|
|
|
13294
11626
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
13295
11627
|
return arr2;
|
|
13296
11628
|
}
|
|
13297
|
-
var $e7517de803644e56$var$Header =
|
|
13298
|
-
var displayableRows = _ref.displayableRows, wrapHeaderText = _ref.wrapHeaderText, _tableKeyName = _ref.tableKeyName, order = _ref.order, orderDirection = _ref.orderDirection, onOrderChange = _ref.onOrderChange,
|
|
11629
|
+
var $e7517de803644e56$var$Header = function Header(_ref) {
|
|
11630
|
+
var displayableRows = _ref.displayableRows, wrapHeaderText = _ref.wrapHeaderText, _tableKeyName = _ref.tableKeyName, order = _ref.order, orderDirection = _ref.orderDirection, onOrderChange = _ref.onOrderChange, rest = (0, $e7517de803644e56$var$_objectWithoutProperties2["default"])(_ref, $e7517de803644e56$var$_excluded);
|
|
13299
11631
|
var CHECKBOX_COLUMN = "checkboxColumn";
|
|
13300
11632
|
var styles = (0, $e7517de803644e56$var$_styles["default"])();
|
|
13301
11633
|
var _useConfig = (0, $ckVq7.useConfig)(), _useConfig$config = _useConfig.config, columns = _useConfig$config.columns, _useConfig$config$has = _useConfig$config.hasCheckBoxHidden, hasCheckBoxHidden = _useConfig$config$has === void 0 ? false : _useConfig$config$has, _useConfig$config$has2 = _useConfig$config.hasSecureSociety, hasSecureSociety = _useConfig$config$has2 === void 0 ? false : _useConfig$config$has2, openSocieties = _useConfig$config.openSocieties, _useConfig$config$sel = _useConfig$config.selectableOnlyOneRow, selectableOnlyOneRow = _useConfig$config$sel === void 0 ? false : _useConfig$config$sel, _useConfig$config$sel2 = _useConfig$config.selectableRowKey, selectableRowKey = _useConfig$config$sel2 === void 0 ? "id" : _useConfig$config$sel2, _useConfig$config$wit = _useConfig$config.withBorders, withBorders = _useConfig$config$wit === void 0 ? false : _useConfig$config$wit, stylesProp = _useConfig$config.styles;
|
|
@@ -13384,11 +11716,9 @@ var $e7517de803644e56$var$Header = /*#__PURE__*/ $e7517de803644e56$var$_react["d
|
|
|
13384
11716
|
};
|
|
13385
11717
|
return /*#__PURE__*/ $e7517de803644e56$var$_react["default"].createElement("div", {
|
|
13386
11718
|
className: (0, $e7517de803644e56$var$_classnames["default"])(containerCustomStyling === null || containerCustomStyling === void 0 ? void 0 : containerCustomStyling.classes, styles.gridContainer),
|
|
13387
|
-
ref: domRef,
|
|
13388
11719
|
"data-role": "header",
|
|
13389
11720
|
style: containerCustomStyling === null || containerCustomStyling === void 0 ? void 0 : containerCustomStyling.style
|
|
13390
11721
|
}, /*#__PURE__*/ $e7517de803644e56$var$_react["default"].createElement("div", {
|
|
13391
|
-
ref: ref,
|
|
13392
11722
|
"data-role": "row",
|
|
13393
11723
|
className: (0, $e7517de803644e56$var$_classnames["default"])("vtHeader", styles.HeaderGrid, (0, $e7517de803644e56$var$_defineProperty2["default"])({}, styles.HeaderGrid_withBorders, withBorders)),
|
|
13394
11724
|
style: {
|
|
@@ -13408,7 +11738,7 @@ var $e7517de803644e56$var$Header = /*#__PURE__*/ $e7517de803644e56$var$_react["d
|
|
|
13408
11738
|
}
|
|
13409
11739
|
});
|
|
13410
11740
|
})));
|
|
13411
|
-
}
|
|
11741
|
+
};
|
|
13412
11742
|
var $e7517de803644e56$var$_default = $e7517de803644e56$var$Header;
|
|
13413
11743
|
module.exports["default"] = $e7517de803644e56$var$_default;
|
|
13414
11744
|
|
|
@@ -13502,6 +11832,7 @@ var $74d7c783859244b3$var$HeaderCell = function HeaderCell(_ref) {
|
|
|
13502
11832
|
}, [
|
|
13503
11833
|
columnIndex
|
|
13504
11834
|
]);
|
|
11835
|
+
var title = tooltipHeader ? "" : header;
|
|
13505
11836
|
var render = function render() {
|
|
13506
11837
|
var _cx;
|
|
13507
11838
|
return /*#__PURE__*/ $74d7c783859244b3$var$_react["default"].createElement("div", {
|
|
@@ -13529,7 +11860,7 @@ var $74d7c783859244b3$var$HeaderCell = function HeaderCell(_ref) {
|
|
|
13529
11860
|
variant: variant
|
|
13530
11861
|
})), /*#__PURE__*/ $74d7c783859244b3$var$_react["default"].createElement("div", {
|
|
13531
11862
|
className: (0, $74d7c783859244b3$var$_classnames["default"])(styles.headerCell),
|
|
13532
|
-
title:
|
|
11863
|
+
title: title
|
|
13533
11864
|
}, (0, $e902G.isSortable)({
|
|
13534
11865
|
typeCell: typeCell,
|
|
13535
11866
|
sortable: sortable
|
|
@@ -13746,6 +12077,7 @@ var $9c9f24aaa3335ba6$var$_makeStyles = $gXNCa$babelruntimehelpersinteropRequire
|
|
|
13746
12077
|
var $9c9f24aaa3335ba6$var$useStyles = (0, $9c9f24aaa3335ba6$var$_makeStyles["default"])(function(theme) {
|
|
13747
12078
|
return {
|
|
13748
12079
|
gridContainer: {
|
|
12080
|
+
flexShrink: 0,
|
|
13749
12081
|
backgroundColor: "#fff",
|
|
13750
12082
|
overflow: "hidden"
|
|
13751
12083
|
},
|
|
@@ -13799,7 +12131,8 @@ module.exports.sameArray = $aeaa9692314e35aa$var$sameArray;
|
|
|
13799
12131
|
// Inspired by https://stackoverflow.com/questions/7837456/how-to-compare-arrays-in-javascript
|
|
13800
12132
|
function $aeaa9692314e35aa$var$sameArray(array1, array2) {
|
|
13801
12133
|
// if the other array is a falsy value, return
|
|
13802
|
-
if (!array2) return false;
|
|
12134
|
+
if (!array2) return false;
|
|
12135
|
+
// compare lengths - can save a lot of time
|
|
13803
12136
|
if (array1.length !== array2.length) return false;
|
|
13804
12137
|
var offset = 0;
|
|
13805
12138
|
for(var i = 0, l = array1.length; i < l; i++){
|
|
@@ -13887,7 +12220,7 @@ function $a85085767390e993$var$_interopRequireWildcard(obj, nodeInterop) {
|
|
|
13887
12220
|
if (cache) cache.set(obj, newObj);
|
|
13888
12221
|
return newObj;
|
|
13889
12222
|
}
|
|
13890
|
-
var $a85085767390e993$var$Toolbar =
|
|
12223
|
+
var $a85085767390e993$var$Toolbar = function Toolbar(_ref) {
|
|
13891
12224
|
var _apiRef$current, _apiRef$current$state;
|
|
13892
12225
|
var _ref$setSearchFilters = _ref.setSearchFilters, setSearchFilters = _ref$setSearchFilters === void 0 ? function() {} : _ref$setSearchFilters, displayableRows = _ref.displayableRows, handleRowsToDelete = _ref.handleRowsToDelete, handleValidateAdd = _ref.handleValidateAdd, handleValidateEdit = _ref.handleValidateEdit, rest = (0, $a85085767390e993$var$_objectWithoutProperties2["default"])(_ref, $a85085767390e993$var$_excluded);
|
|
13893
12226
|
var _useConfig = (0, $ckVq7.useConfig)(), _useConfig$config = _useConfig.config;
|
|
@@ -13905,8 +12238,7 @@ var $a85085767390e993$var$Toolbar = /*#__PURE__*/ $a85085767390e993$var$_react["
|
|
|
13905
12238
|
columns
|
|
13906
12239
|
]);
|
|
13907
12240
|
return /*#__PURE__*/ $a85085767390e993$var$_react["default"].createElement("div", {
|
|
13908
|
-
className: styles.selectionManager
|
|
13909
|
-
ref: ref
|
|
12241
|
+
className: styles.selectionManager
|
|
13910
12242
|
}, hasSearchbar && !(0, $a85085767390e993$var$_isEmpty2["default"])(searchableColumns) && /*#__PURE__*/ $a85085767390e993$var$_react["default"].createElement($a85085767390e993$var$_SearchBar["default"], {
|
|
13911
12243
|
columns: searchableColumns,
|
|
13912
12244
|
onChange: function onChange(filters, q) {
|
|
@@ -13927,7 +12259,7 @@ var $a85085767390e993$var$Toolbar = /*#__PURE__*/ $a85085767390e993$var$_react["
|
|
|
13927
12259
|
handleValidateAdd: handleValidateAdd,
|
|
13928
12260
|
displayableRows: displayableRows
|
|
13929
12261
|
}, rest)));
|
|
13930
|
-
}
|
|
12262
|
+
};
|
|
13931
12263
|
var $a85085767390e993$var$_default = $a85085767390e993$var$Toolbar;
|
|
13932
12264
|
module.exports["default"] = $a85085767390e993$var$_default;
|
|
13933
12265
|
|
|
@@ -14745,10 +13077,14 @@ Object.defineProperty(module.exports, "__esModule", {
|
|
|
14745
13077
|
});
|
|
14746
13078
|
module.exports["default"] = void 0;
|
|
14747
13079
|
|
|
13080
|
+
var $4cc03a09cd474ddf$var$_regenerator = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimeregenerator);
|
|
13081
|
+
|
|
14748
13082
|
var $4cc03a09cd474ddf$var$_defineProperty2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersdefineProperty);
|
|
14749
13083
|
|
|
14750
13084
|
var $4cc03a09cd474ddf$var$_toConsumableArray2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelperstoConsumableArray);
|
|
14751
13085
|
|
|
13086
|
+
var $4cc03a09cd474ddf$var$_asyncToGenerator2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersasyncToGenerator);
|
|
13087
|
+
|
|
14752
13088
|
var $4cc03a09cd474ddf$var$_slicedToArray2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersslicedToArray);
|
|
14753
13089
|
|
|
14754
13090
|
var $4cc03a09cd474ddf$var$_react = $4cc03a09cd474ddf$var$_interopRequireWildcard($gXNCa$react);
|
|
@@ -14845,35 +13181,93 @@ var $4cc03a09cd474ddf$var$ToolbarButtons = function ToolbarButtons(_ref) {
|
|
|
14845
13181
|
setPopperAnchorEl(null);
|
|
14846
13182
|
};
|
|
14847
13183
|
function handleDeleteRows() {
|
|
14848
|
-
|
|
14849
|
-
|
|
14850
|
-
|
|
14851
|
-
|
|
13184
|
+
return _handleDeleteRows.apply(this, arguments);
|
|
13185
|
+
}
|
|
13186
|
+
function _handleDeleteRows() {
|
|
13187
|
+
_handleDeleteRows = (0, $4cc03a09cd474ddf$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $4cc03a09cd474ddf$var$_regenerator["default"].mark(function _callee() {
|
|
13188
|
+
var _apiRef$current2, _apiRef$current2$vali;
|
|
13189
|
+
return $4cc03a09cd474ddf$var$_regenerator["default"].wrap(function _callee$(_context) {
|
|
13190
|
+
while(true)switch(_context.prev = _context.next){
|
|
13191
|
+
case 0:
|
|
13192
|
+
_context.prev = 0;
|
|
13193
|
+
_context.next = 3;
|
|
13194
|
+
return handleRowsToDelete(selectedVisibleRows);
|
|
13195
|
+
case 3:
|
|
13196
|
+
apiRef.current.selectRows((0, $idhBf.getSelectedHiddenRows)(selectedRows, displayableRows, selectableRowKey));
|
|
13197
|
+
(_apiRef$current2 = apiRef.current) === null || _apiRef$current2 === void 0 || (_apiRef$current2$vali = _apiRef$current2.validation) === null || _apiRef$current2$vali === void 0 || _apiRef$current2$vali.removeErrors(selectedVisibleRows);
|
|
13198
|
+
_context.next = 9;
|
|
13199
|
+
break;
|
|
13200
|
+
case 7:
|
|
13201
|
+
_context.prev = 7;
|
|
13202
|
+
_context.t0 = _context["catch"](0);
|
|
13203
|
+
case 9:
|
|
13204
|
+
case "end":
|
|
13205
|
+
return _context.stop();
|
|
13206
|
+
}
|
|
13207
|
+
}, _callee, null, [
|
|
13208
|
+
[
|
|
13209
|
+
0,
|
|
13210
|
+
7
|
|
13211
|
+
]
|
|
13212
|
+
]);
|
|
13213
|
+
}));
|
|
13214
|
+
return _handleDeleteRows.apply(this, arguments);
|
|
14852
13215
|
}
|
|
14853
13216
|
function handleSave() {
|
|
14854
|
-
|
|
14855
|
-
|
|
14856
|
-
|
|
14857
|
-
|
|
14858
|
-
|
|
14859
|
-
|
|
14860
|
-
|
|
14861
|
-
|
|
14862
|
-
|
|
14863
|
-
|
|
14864
|
-
|
|
14865
|
-
|
|
14866
|
-
|
|
14867
|
-
|
|
14868
|
-
|
|
14869
|
-
|
|
14870
|
-
$e902G.
|
|
14871
|
-
|
|
14872
|
-
|
|
14873
|
-
|
|
14874
|
-
|
|
14875
|
-
|
|
14876
|
-
|
|
13217
|
+
return _handleSave.apply(this, arguments);
|
|
13218
|
+
}
|
|
13219
|
+
function _handleSave() {
|
|
13220
|
+
_handleSave = (0, $4cc03a09cd474ddf$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $4cc03a09cd474ddf$var$_regenerator["default"].mark(function _callee2() {
|
|
13221
|
+
var _apiRef$current3, _apiRef$current3$vali;
|
|
13222
|
+
var ret;
|
|
13223
|
+
return $4cc03a09cd474ddf$var$_regenerator["default"].wrap(function _callee2$(_context2) {
|
|
13224
|
+
while(true)switch(_context2.prev = _context2.next){
|
|
13225
|
+
case 0:
|
|
13226
|
+
if (!(apiRef !== null && apiRef !== void 0 && (_apiRef$current3 = apiRef.current) !== null && _apiRef$current3 !== void 0 && (_apiRef$current3$vali = _apiRef$current3.validation) !== null && _apiRef$current3$vali !== void 0 && _apiRef$current3$vali.hasError)) {
|
|
13227
|
+
_context2.next = 2;
|
|
13228
|
+
break;
|
|
13229
|
+
}
|
|
13230
|
+
return _context2.abrupt("return");
|
|
13231
|
+
case 2:
|
|
13232
|
+
_context2.t0 = state;
|
|
13233
|
+
_context2.next = _context2.t0 === $e902G.TABLE_STATE.ADD ? 5 : _context2.t0 === $e902G.TABLE_STATE.EDIT ? 9 : _context2.t0 === $e902G.TABLE_STATE.PERMANENT_EDIT ? 13 : 17;
|
|
13234
|
+
break;
|
|
13235
|
+
case 5:
|
|
13236
|
+
_context2.next = 7;
|
|
13237
|
+
return handleValidateAdd(displayableRows.filter(function(e) {
|
|
13238
|
+
return e.rowType === $e902G.ROW_TYPE.NEW && e._touched;
|
|
13239
|
+
}), insertPosition === $e902G.INSERT_POSITION.BOTTOM ? displayableRows.length : 0);
|
|
13240
|
+
case 7:
|
|
13241
|
+
ret = _context2.sent;
|
|
13242
|
+
return _context2.abrupt("break", 17);
|
|
13243
|
+
case 9:
|
|
13244
|
+
_context2.next = 11;
|
|
13245
|
+
return handleValidateEdit(displayableRows.filter(function(e) {
|
|
13246
|
+
return e.rowType === $e902G.ROW_TYPE.EDIT;
|
|
13247
|
+
}));
|
|
13248
|
+
case 11:
|
|
13249
|
+
ret = _context2.sent;
|
|
13250
|
+
return _context2.abrupt("break", 17);
|
|
13251
|
+
case 13:
|
|
13252
|
+
_context2.next = 15;
|
|
13253
|
+
return handleValidateEdit(displayableRows.filter(function(e) {
|
|
13254
|
+
return [
|
|
13255
|
+
$e902G.ROW_TYPE.EDIT,
|
|
13256
|
+
$e902G.ROW_TYPE.NEW
|
|
13257
|
+
].includes(e.rowType) && e._touched;
|
|
13258
|
+
}), insertPosition === $e902G.INSERT_POSITION.BOTTOM ? displayableRows.length : 0);
|
|
13259
|
+
case 15:
|
|
13260
|
+
ret = _context2.sent;
|
|
13261
|
+
return _context2.abrupt("break", 17);
|
|
13262
|
+
case 17:
|
|
13263
|
+
if (ret !== false) send("validate");
|
|
13264
|
+
case 18:
|
|
13265
|
+
case "end":
|
|
13266
|
+
return _context2.stop();
|
|
13267
|
+
}
|
|
13268
|
+
}, _callee2);
|
|
13269
|
+
}));
|
|
13270
|
+
return _handleSave.apply(this, arguments);
|
|
14877
13271
|
}
|
|
14878
13272
|
var buttons = (0, $4cc03a09cd474ddf$var$_toConsumableArray2["default"])(customButtons === null || customButtons === void 0 ? void 0 : customButtons.map(function(customButton) {
|
|
14879
13273
|
var _customButton$isDisab = customButton.isDisabled, isDisabled = _customButton$isDisab === void 0 ? function() {
|
|
@@ -14969,6 +13363,7 @@ var $4cc03a09cd474ddf$var$ToolbarButtons = function ToolbarButtons(_ref) {
|
|
|
14969
13363
|
iconName: "icon-trash",
|
|
14970
13364
|
iconColor: "white",
|
|
14971
13365
|
color: "error",
|
|
13366
|
+
noLoader: true,
|
|
14972
13367
|
iconSize: 28,
|
|
14973
13368
|
titleInfoBulle: $4cc03a09cd474ddf$var$_I18n["default"].t("tooltips.delete"),
|
|
14974
13369
|
disabled: !can("deleteRow") || selectedVisibleRows.length === 0,
|
|
@@ -15686,12 +14081,13 @@ module.exports["default"] = $77903841862356c6$var$_default;
|
|
|
15686
14081
|
parcelRequire.register("ku1Z0", function(module, exports) {
|
|
15687
14082
|
"use strict";
|
|
15688
14083
|
|
|
15689
|
-
|
|
15690
14084
|
Object.defineProperty(module.exports, "__esModule", {
|
|
15691
14085
|
value: true
|
|
15692
14086
|
});
|
|
15693
14087
|
module.exports.useExport = void 0;
|
|
15694
14088
|
|
|
14089
|
+
var $ee9825c87509d7ea$var$_regenerator = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimeregenerator);
|
|
14090
|
+
|
|
15695
14091
|
var $ee9825c87509d7ea$var$_defineProperty2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersdefineProperty);
|
|
15696
14092
|
|
|
15697
14093
|
var $ee9825c87509d7ea$var$_asyncToGenerator2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersasyncToGenerator);
|
|
@@ -15702,294 +14098,6 @@ var $ee9825c87509d7ea$var$_slicedToArray2 = $gXNCa$babelruntimehelpersinteropReq
|
|
|
15702
14098
|
var $gHByu = parcelRequire("gHByu");
|
|
15703
14099
|
|
|
15704
14100
|
var $ckVq7 = parcelRequire("ckVq7");
|
|
15705
|
-
function $ee9825c87509d7ea$var$_regeneratorRuntime() {
|
|
15706
|
-
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
15707
|
-
$ee9825c87509d7ea$var$_regeneratorRuntime = function _regeneratorRuntime() {
|
|
15708
|
-
return exports1;
|
|
15709
|
-
};
|
|
15710
|
-
var exports1 = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
15711
|
-
function define(obj, key, value) {
|
|
15712
|
-
return Object.defineProperty(obj, key, {
|
|
15713
|
-
value: value,
|
|
15714
|
-
enumerable: !0,
|
|
15715
|
-
configurable: !0,
|
|
15716
|
-
writable: !0
|
|
15717
|
-
}), obj[key];
|
|
15718
|
-
}
|
|
15719
|
-
try {
|
|
15720
|
-
define({}, "");
|
|
15721
|
-
} catch (err) {
|
|
15722
|
-
define = function define(obj, key, value) {
|
|
15723
|
-
return obj[key] = value;
|
|
15724
|
-
};
|
|
15725
|
-
}
|
|
15726
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
15727
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []);
|
|
15728
|
-
return generator._invoke = function(innerFn, self, context) {
|
|
15729
|
-
var state = "suspendedStart";
|
|
15730
|
-
return function(method, arg) {
|
|
15731
|
-
if ("executing" === state) throw new Error("Generator is already running");
|
|
15732
|
-
if ("completed" === state) {
|
|
15733
|
-
if ("throw" === method) throw arg;
|
|
15734
|
-
return doneResult();
|
|
15735
|
-
}
|
|
15736
|
-
for(context.method = method, context.arg = arg;;){
|
|
15737
|
-
var delegate = context.delegate;
|
|
15738
|
-
if (delegate) {
|
|
15739
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
15740
|
-
if (delegateResult) {
|
|
15741
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
15742
|
-
return delegateResult;
|
|
15743
|
-
}
|
|
15744
|
-
}
|
|
15745
|
-
if ("next" === context.method) context.sent = context._sent = context.arg;
|
|
15746
|
-
else if ("throw" === context.method) {
|
|
15747
|
-
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
15748
|
-
context.dispatchException(context.arg);
|
|
15749
|
-
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
15750
|
-
state = "executing";
|
|
15751
|
-
var record = tryCatch(innerFn, self, context);
|
|
15752
|
-
if ("normal" === record.type) {
|
|
15753
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
15754
|
-
return {
|
|
15755
|
-
value: record.arg,
|
|
15756
|
-
done: context.done
|
|
15757
|
-
};
|
|
15758
|
-
}
|
|
15759
|
-
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
15760
|
-
}
|
|
15761
|
-
};
|
|
15762
|
-
}(innerFn, self, context), generator;
|
|
15763
|
-
}
|
|
15764
|
-
function tryCatch(fn, obj, arg) {
|
|
15765
|
-
try {
|
|
15766
|
-
return {
|
|
15767
|
-
type: "normal",
|
|
15768
|
-
arg: fn.call(obj, arg)
|
|
15769
|
-
};
|
|
15770
|
-
} catch (err) {
|
|
15771
|
-
return {
|
|
15772
|
-
type: "throw",
|
|
15773
|
-
arg: err
|
|
15774
|
-
};
|
|
15775
|
-
}
|
|
15776
|
-
}
|
|
15777
|
-
exports1.wrap = wrap;
|
|
15778
|
-
var ContinueSentinel = {};
|
|
15779
|
-
function Generator() {}
|
|
15780
|
-
function GeneratorFunction() {}
|
|
15781
|
-
function GeneratorFunctionPrototype() {}
|
|
15782
|
-
var IteratorPrototype = {};
|
|
15783
|
-
define(IteratorPrototype, iteratorSymbol, function() {
|
|
15784
|
-
return this;
|
|
15785
|
-
});
|
|
15786
|
-
var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
15787
|
-
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
15788
|
-
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
15789
|
-
function defineIteratorMethods(prototype) {
|
|
15790
|
-
[
|
|
15791
|
-
"next",
|
|
15792
|
-
"throw",
|
|
15793
|
-
"return"
|
|
15794
|
-
].forEach(function(method) {
|
|
15795
|
-
define(prototype, method, function(arg) {
|
|
15796
|
-
return this._invoke(method, arg);
|
|
15797
|
-
});
|
|
15798
|
-
});
|
|
15799
|
-
}
|
|
15800
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
15801
|
-
function invoke(method, arg, resolve, reject) {
|
|
15802
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
15803
|
-
if ("throw" !== record.type) {
|
|
15804
|
-
var result = record.arg, value = result.value;
|
|
15805
|
-
return value && "object" == $gXNCa$babelruntimehelperstypeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function(value) {
|
|
15806
|
-
invoke("next", value, resolve, reject);
|
|
15807
|
-
}, function(err) {
|
|
15808
|
-
invoke("throw", err, resolve, reject);
|
|
15809
|
-
}) : PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
15810
|
-
result.value = unwrapped, resolve(result);
|
|
15811
|
-
}, function(error) {
|
|
15812
|
-
return invoke("throw", error, resolve, reject);
|
|
15813
|
-
});
|
|
15814
|
-
}
|
|
15815
|
-
reject(record.arg);
|
|
15816
|
-
}
|
|
15817
|
-
var previousPromise;
|
|
15818
|
-
this._invoke = function(method, arg) {
|
|
15819
|
-
function callInvokeWithMethodAndArg() {
|
|
15820
|
-
return new PromiseImpl(function(resolve, reject) {
|
|
15821
|
-
invoke(method, arg, resolve, reject);
|
|
15822
|
-
});
|
|
15823
|
-
}
|
|
15824
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
15825
|
-
};
|
|
15826
|
-
}
|
|
15827
|
-
function maybeInvokeDelegate(delegate, context) {
|
|
15828
|
-
var method = delegate.iterator[context.method];
|
|
15829
|
-
if (undefined === method) {
|
|
15830
|
-
if (context.delegate = null, "throw" === context.method) {
|
|
15831
|
-
if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
15832
|
-
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
15833
|
-
}
|
|
15834
|
-
return ContinueSentinel;
|
|
15835
|
-
}
|
|
15836
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
15837
|
-
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
15838
|
-
var info = record.arg;
|
|
15839
|
-
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
15840
|
-
}
|
|
15841
|
-
function pushTryEntry(locs) {
|
|
15842
|
-
var entry = {
|
|
15843
|
-
tryLoc: locs[0]
|
|
15844
|
-
};
|
|
15845
|
-
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
15846
|
-
}
|
|
15847
|
-
function resetTryEntry(entry) {
|
|
15848
|
-
var record = entry.completion || {};
|
|
15849
|
-
record.type = "normal", delete record.arg, entry.completion = record;
|
|
15850
|
-
}
|
|
15851
|
-
function Context(tryLocsList) {
|
|
15852
|
-
this.tryEntries = [
|
|
15853
|
-
{
|
|
15854
|
-
tryLoc: "root"
|
|
15855
|
-
}
|
|
15856
|
-
], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
15857
|
-
}
|
|
15858
|
-
function values(iterable) {
|
|
15859
|
-
if (iterable) {
|
|
15860
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
15861
|
-
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
15862
|
-
if ("function" == typeof iterable.next) return iterable;
|
|
15863
|
-
if (!isNaN(iterable.length)) {
|
|
15864
|
-
var i = -1, next = function next() {
|
|
15865
|
-
for(; ++i < iterable.length;){
|
|
15866
|
-
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
15867
|
-
}
|
|
15868
|
-
return next.value = undefined, next.done = !0, next;
|
|
15869
|
-
};
|
|
15870
|
-
return next.next = next;
|
|
15871
|
-
}
|
|
15872
|
-
}
|
|
15873
|
-
return {
|
|
15874
|
-
next: doneResult
|
|
15875
|
-
};
|
|
15876
|
-
}
|
|
15877
|
-
function doneResult() {
|
|
15878
|
-
return {
|
|
15879
|
-
value: undefined,
|
|
15880
|
-
done: !0
|
|
15881
|
-
};
|
|
15882
|
-
}
|
|
15883
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports1.isGeneratorFunction = function(genFun) {
|
|
15884
|
-
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
15885
|
-
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
15886
|
-
}, exports1.mark = function(genFun) {
|
|
15887
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
15888
|
-
}, exports1.awrap = function(arg) {
|
|
15889
|
-
return {
|
|
15890
|
-
__await: arg
|
|
15891
|
-
};
|
|
15892
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function() {
|
|
15893
|
-
return this;
|
|
15894
|
-
}), exports1.AsyncIterator = AsyncIterator, exports1.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
15895
|
-
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
15896
|
-
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
15897
|
-
return exports1.isGeneratorFunction(outerFn) ? iter : iter.next().then(function(result) {
|
|
15898
|
-
return result.done ? result.value : iter.next();
|
|
15899
|
-
});
|
|
15900
|
-
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function() {
|
|
15901
|
-
return this;
|
|
15902
|
-
}), define(Gp, "toString", function() {
|
|
15903
|
-
return "[object Generator]";
|
|
15904
|
-
}), exports1.keys = function(object) {
|
|
15905
|
-
var keys = [];
|
|
15906
|
-
for(var key in object)keys.push(key);
|
|
15907
|
-
return keys.reverse(), function next() {
|
|
15908
|
-
for(; keys.length;){
|
|
15909
|
-
var key = keys.pop();
|
|
15910
|
-
if (key in object) return next.value = key, next.done = !1, next;
|
|
15911
|
-
}
|
|
15912
|
-
return next.done = !0, next;
|
|
15913
|
-
};
|
|
15914
|
-
}, exports1.values = values, Context.prototype = {
|
|
15915
|
-
constructor: Context,
|
|
15916
|
-
reset: function reset(skipTempReset) {
|
|
15917
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for(var name in this)"t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
15918
|
-
},
|
|
15919
|
-
stop: function stop() {
|
|
15920
|
-
this.done = !0;
|
|
15921
|
-
var rootRecord = this.tryEntries[0].completion;
|
|
15922
|
-
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
15923
|
-
return this.rval;
|
|
15924
|
-
},
|
|
15925
|
-
dispatchException: function dispatchException(exception) {
|
|
15926
|
-
if (this.done) throw exception;
|
|
15927
|
-
var context = this;
|
|
15928
|
-
function handle(loc, caught) {
|
|
15929
|
-
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
15930
|
-
}
|
|
15931
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
15932
|
-
var entry = this.tryEntries[i], record = entry.completion;
|
|
15933
|
-
if ("root" === entry.tryLoc) return handle("end");
|
|
15934
|
-
if (entry.tryLoc <= this.prev) {
|
|
15935
|
-
var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
15936
|
-
if (hasCatch && hasFinally) {
|
|
15937
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
15938
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
15939
|
-
} else if (hasCatch) {
|
|
15940
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
15941
|
-
} else {
|
|
15942
|
-
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
15943
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
15944
|
-
}
|
|
15945
|
-
}
|
|
15946
|
-
}
|
|
15947
|
-
},
|
|
15948
|
-
abrupt: function abrupt(type, arg) {
|
|
15949
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
15950
|
-
var entry = this.tryEntries[i];
|
|
15951
|
-
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
15952
|
-
var finallyEntry = entry;
|
|
15953
|
-
break;
|
|
15954
|
-
}
|
|
15955
|
-
}
|
|
15956
|
-
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
15957
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
15958
|
-
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
15959
|
-
},
|
|
15960
|
-
complete: function complete(record, afterLoc) {
|
|
15961
|
-
if ("throw" === record.type) throw record.arg;
|
|
15962
|
-
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
15963
|
-
},
|
|
15964
|
-
finish: function finish(finallyLoc) {
|
|
15965
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
15966
|
-
var entry = this.tryEntries[i];
|
|
15967
|
-
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
15968
|
-
}
|
|
15969
|
-
},
|
|
15970
|
-
"catch": function _catch(tryLoc) {
|
|
15971
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
15972
|
-
var entry = this.tryEntries[i];
|
|
15973
|
-
if (entry.tryLoc === tryLoc) {
|
|
15974
|
-
var record = entry.completion;
|
|
15975
|
-
if ("throw" === record.type) {
|
|
15976
|
-
var thrown = record.arg;
|
|
15977
|
-
resetTryEntry(entry);
|
|
15978
|
-
}
|
|
15979
|
-
return thrown;
|
|
15980
|
-
}
|
|
15981
|
-
}
|
|
15982
|
-
throw new Error("illegal catch attempt");
|
|
15983
|
-
},
|
|
15984
|
-
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
15985
|
-
return this.delegate = {
|
|
15986
|
-
iterator: values(iterable),
|
|
15987
|
-
resultName: resultName,
|
|
15988
|
-
nextLoc: nextLoc
|
|
15989
|
-
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
15990
|
-
}
|
|
15991
|
-
}, exports1;
|
|
15992
|
-
}
|
|
15993
14101
|
function $ee9825c87509d7ea$var$ownKeys(object, enumerableOnly) {
|
|
15994
14102
|
var keys = Object.keys(object);
|
|
15995
14103
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -16021,8 +14129,8 @@ var $ee9825c87509d7ea$var$useExport = function useExport() {
|
|
|
16021
14129
|
*
|
|
16022
14130
|
* @param {string} format - The format of the exported file can be 'csv', 'xls', 'pdf', 'print'
|
|
16023
14131
|
*/ var exportData = /*#__PURE__*/ function() {
|
|
16024
|
-
var _ref = (0, $ee9825c87509d7ea$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $ee9825c87509d7ea$var$
|
|
16025
|
-
return $ee9825c87509d7ea$var$
|
|
14132
|
+
var _ref = (0, $ee9825c87509d7ea$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $ee9825c87509d7ea$var$_regenerator["default"].mark(function _callee(format, options) {
|
|
14133
|
+
return $ee9825c87509d7ea$var$_regenerator["default"].wrap(function _callee$(_context) {
|
|
16026
14134
|
while(true)switch(_context.prev = _context.next){
|
|
16027
14135
|
case 0:
|
|
16028
14136
|
setLoading(true);
|
|
@@ -16101,6 +14209,7 @@ var $8931f480c9fd7378$var$_makeStyles = $gXNCa$babelruntimehelpersinteropRequire
|
|
|
16101
14209
|
var $8931f480c9fd7378$var$useStyles = (0, $8931f480c9fd7378$var$_makeStyles["default"])(function() {
|
|
16102
14210
|
return {
|
|
16103
14211
|
selectionManager: {
|
|
14212
|
+
flexShrink: 0,
|
|
16104
14213
|
display: "flex",
|
|
16105
14214
|
justifyContent: "space-between",
|
|
16106
14215
|
alignItems: "center",
|
|
@@ -16223,12 +14332,15 @@ function $e805bdb14b581d2c$var$useMachine(machine) {
|
|
|
16223
14332
|
var ref = (0, $gXNCa$react.useRef)(null);
|
|
16224
14333
|
if (ref.current === null) ref.current = (0, $gXNCa$robot3.interpret)(machine, function() {
|
|
16225
14334
|
// eslint-disable-next-line no-use-before-define
|
|
16226
|
-
setState(service.machine.current);
|
|
14335
|
+
setState(service.machine.current);
|
|
14336
|
+
// eslint-disable-next-line no-use-before-define
|
|
16227
14337
|
setContext(service.context);
|
|
16228
14338
|
}, initialContext);
|
|
16229
|
-
var service = ref.current;
|
|
14339
|
+
var service = ref.current;
|
|
14340
|
+
// We store the context & state of the machine in the react state.
|
|
16230
14341
|
var _useState = (0, $gXNCa$react.useState)(service.machine.current), _useState2 = (0, $e805bdb14b581d2c$var$_slicedToArray2["default"])(_useState, 2), state = _useState2[0], setState = _useState2[1];
|
|
16231
|
-
var _useState3 = (0, $gXNCa$react.useState)(service.context), _useState4 = (0, $e805bdb14b581d2c$var$_slicedToArray2["default"])(_useState3, 2), context = _useState4[0], setContext = _useState4[1];
|
|
14342
|
+
var _useState3 = (0, $gXNCa$react.useState)(service.context), _useState4 = (0, $e805bdb14b581d2c$var$_slicedToArray2["default"])(_useState3, 2), context = _useState4[0], setContext = _useState4[1];
|
|
14343
|
+
// Allows you to request a transition
|
|
16232
14344
|
var send = (0, $gXNCa$react.useCallback)(function(type) {
|
|
16233
14345
|
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
16234
14346
|
service.send($e805bdb14b581d2c$var$_objectSpread({
|
|
@@ -16236,12 +14348,14 @@ function $e805bdb14b581d2c$var$useMachine(machine) {
|
|
|
16236
14348
|
}, params));
|
|
16237
14349
|
}, [
|
|
16238
14350
|
service
|
|
16239
|
-
]);
|
|
14351
|
+
]);
|
|
14352
|
+
// Checks if a transition is possible from the current state
|
|
16240
14353
|
var can = (0, $gXNCa$react.useCallback)(function(transitionName) {
|
|
16241
14354
|
// eslint-disable-next-line prefer-destructuring
|
|
16242
14355
|
var transitions = service.machine.state.value.transitions;
|
|
16243
14356
|
if (!transitions.has(transitionName)) return false;
|
|
16244
|
-
var transitionsForName = transitions.get(transitionName);
|
|
14357
|
+
var transitionsForName = transitions.get(transitionName);
|
|
14358
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
16245
14359
|
var _iterator = $e805bdb14b581d2c$var$_createForOfIteratorHelper(transitionsForName), _step;
|
|
16246
14360
|
try {
|
|
16247
14361
|
for(_iterator.s(); !(_step = _iterator.n()).done;){
|
|
@@ -16607,14 +14721,15 @@ function $b4e89a7530fc0987$var$_objectSpread(target) {
|
|
|
16607
14721
|
}
|
|
16608
14722
|
return target;
|
|
16609
14723
|
}
|
|
16610
|
-
var $b4e89a7530fc0987$var$processGroups = function processGroups(
|
|
16611
|
-
var list =
|
|
14724
|
+
var $b4e89a7530fc0987$var$processGroups = function processGroups(data, groupKey, order, orderDirection) {
|
|
14725
|
+
var list = data;
|
|
14726
|
+
if (!order) list = (0, $b4e89a7530fc0987$var$_orderBy2["default"])(data, groupKey, orderDirection);
|
|
16612
14727
|
var groupIndex = 0;
|
|
16613
14728
|
var currentGroup = null;
|
|
16614
14729
|
return list.map(function(row) {
|
|
16615
|
-
if (currentGroup !== row[
|
|
14730
|
+
if (currentGroup !== row[groupKey]) {
|
|
16616
14731
|
if (currentGroup) groupIndex++;
|
|
16617
|
-
currentGroup = row[
|
|
14732
|
+
currentGroup = row[groupKey];
|
|
16618
14733
|
}
|
|
16619
14734
|
return $b4e89a7530fc0987$var$_objectSpread($b4e89a7530fc0987$var$_objectSpread({}, row), {}, {
|
|
16620
14735
|
groupId: currentGroup,
|
|
@@ -16627,7 +14742,8 @@ var $b4e89a7530fc0987$var$processGroupItem = function processGroupItem(group) {
|
|
|
16627
14742
|
var titleRow = (0, $e902G.createTitleRow)(group);
|
|
16628
14743
|
var newTab = [
|
|
16629
14744
|
titleRow
|
|
16630
|
-
];
|
|
14745
|
+
];
|
|
14746
|
+
// TODO addRow for each group
|
|
16631
14747
|
// if (modeAdd) {
|
|
16632
14748
|
// newTab.push(createAddRowGroup(group));
|
|
16633
14749
|
// }
|
|
@@ -16747,7 +14863,7 @@ parcelRequire.register("azJMN", function(module, exports) {
|
|
|
16747
14863
|
Object.defineProperty(module.exports, "__esModule", {
|
|
16748
14864
|
value: true
|
|
16749
14865
|
});
|
|
16750
|
-
module.exports.applySorting = void 0;
|
|
14866
|
+
module.exports.applySorting = module.exports.applyGroupSorting = void 0;
|
|
16751
14867
|
|
|
16752
14868
|
var $7b30b0659d74fc67$var$_toConsumableArray2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelperstoConsumableArray);
|
|
16753
14869
|
|
|
@@ -16755,6 +14871,8 @@ var $7b30b0659d74fc67$var$_defineProperty2 = $gXNCa$babelruntimehelpersinteropRe
|
|
|
16755
14871
|
|
|
16756
14872
|
var $7b30b0659d74fc67$var$_orderBy2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$lodashorderBy);
|
|
16757
14873
|
|
|
14874
|
+
var $7b30b0659d74fc67$var$_groupBy2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$lodashgroupBy);
|
|
14875
|
+
|
|
16758
14876
|
var $51yp9 = parcelRequire("51yp9");
|
|
16759
14877
|
|
|
16760
14878
|
var $e902G = parcelRequire("e902G");
|
|
@@ -16807,6 +14925,22 @@ var $7b30b0659d74fc67$var$applySorting = function applySorting(data, columns, or
|
|
|
16807
14925
|
return (0, $7b30b0659d74fc67$var$_orderBy2["default"])(data, order, orderDirection);
|
|
16808
14926
|
};
|
|
16809
14927
|
module.exports.applySorting = $7b30b0659d74fc67$var$applySorting;
|
|
14928
|
+
var $7b30b0659d74fc67$var$applyGroupSorting = function applyGroupSorting(data, columns, order, orderDirection, groupKey, sortedGroup) {
|
|
14929
|
+
var column = columns.find(function(c) {
|
|
14930
|
+
return c.key === order;
|
|
14931
|
+
});
|
|
14932
|
+
var groupedData = (0, $7b30b0659d74fc67$var$_groupBy2["default"])(data, groupKey);
|
|
14933
|
+
if (sortedGroup) groupedData = Object.values(groupedData).map(function(group) {
|
|
14934
|
+
return $7b30b0659d74fc67$var$applySorting(group, columns, order, orderDirection);
|
|
14935
|
+
});
|
|
14936
|
+
var comparator = $7b30b0659d74fc67$var$buildComparator(column, order);
|
|
14937
|
+
if (comparator) return Object.values(groupedData).sort(function(a, b) {
|
|
14938
|
+
var _a$, _b$, _b$2, _a$2;
|
|
14939
|
+
return orderDirection === $e902G.SORTABLE_DIRECTIONS.ASC ? comparator((_a$ = a[0]) === null || _a$ === void 0 ? void 0 : _a$[order], (_b$ = b[0]) === null || _b$ === void 0 ? void 0 : _b$[order], a[0], b[0]) : comparator((_b$2 = b[0]) === null || _b$2 === void 0 ? void 0 : _b$2[order], (_a$2 = a[0]) === null || _a$2 === void 0 ? void 0 : _a$2[order], b[0], a[0]);
|
|
14940
|
+
}).flat();
|
|
14941
|
+
return (0, $7b30b0659d74fc67$var$_orderBy2["default"])(groupedData, "[0].".concat(order), orderDirection).flat();
|
|
14942
|
+
};
|
|
14943
|
+
module.exports.applyGroupSorting = $7b30b0659d74fc67$var$applyGroupSorting;
|
|
16810
14944
|
|
|
16811
14945
|
});
|
|
16812
14946
|
|
|
@@ -17302,40 +15436,40 @@ module.exports["default"] = $91a39eacac205c01$var$_default;
|
|
|
17302
15436
|
});
|
|
17303
15437
|
parcelRequire.register("bOZp3", function(module, exports) {
|
|
17304
15438
|
|
|
17305
|
-
$parcel$export(module.exports, "isError", () => $89b3fe986b2d4477$export$e6127cc7fe7395c3, (v) => $89b3fe986b2d4477$export$e6127cc7fe7395c3 = v);
|
|
17306
|
-
$parcel$export(module.exports, "dropDownIcon", () => $89b3fe986b2d4477$export$e41ce6c93801c63c, (v) => $89b3fe986b2d4477$export$e41ce6c93801c63c = v);
|
|
17307
|
-
$parcel$export(module.exports, "label", () => $89b3fe986b2d4477$export$1237798dc640739a, (v) => $89b3fe986b2d4477$export$1237798dc640739a = v);
|
|
17308
|
-
$parcel$export(module.exports, "open", () => $89b3fe986b2d4477$export$3ce6949f20cea765, (v) => $89b3fe986b2d4477$export$3ce6949f20cea765 = v);
|
|
17309
|
-
$parcel$export(module.exports, "selector", () => $89b3fe986b2d4477$export$aea217a45095ce11, (v) => $89b3fe986b2d4477$export$aea217a45095ce11 = v);
|
|
17310
|
-
$parcel$export(module.exports, "search", () => $89b3fe986b2d4477$export$d76128d007d19019, (v) => $89b3fe986b2d4477$export$d76128d007d19019 = v);
|
|
17311
15439
|
$parcel$export(module.exports, "clear", () => $89b3fe986b2d4477$export$42ffd38884aecdac, (v) => $89b3fe986b2d4477$export$42ffd38884aecdac = v);
|
|
17312
|
-
$parcel$export(module.exports, "icons", () => $89b3fe986b2d4477$export$df03f54e09e486fa, (v) => $89b3fe986b2d4477$export$df03f54e09e486fa = v);
|
|
17313
15440
|
$parcel$export(module.exports, "border", () => $89b3fe986b2d4477$export$1edee58a52776cd9, (v) => $89b3fe986b2d4477$export$1edee58a52776cd9 = v);
|
|
17314
|
-
$parcel$export(module.exports, "
|
|
15441
|
+
$parcel$export(module.exports, "search", () => $89b3fe986b2d4477$export$d76128d007d19019, (v) => $89b3fe986b2d4477$export$d76128d007d19019 = v);
|
|
15442
|
+
$parcel$export(module.exports, "dropDownIcon", () => $89b3fe986b2d4477$export$e41ce6c93801c63c, (v) => $89b3fe986b2d4477$export$e41ce6c93801c63c = v);
|
|
15443
|
+
$parcel$export(module.exports, "icons", () => $89b3fe986b2d4477$export$df03f54e09e486fa, (v) => $89b3fe986b2d4477$export$df03f54e09e486fa = v);
|
|
15444
|
+
$parcel$export(module.exports, "isError", () => $89b3fe986b2d4477$export$e6127cc7fe7395c3, (v) => $89b3fe986b2d4477$export$e6127cc7fe7395c3 = v);
|
|
15445
|
+
$parcel$export(module.exports, "selector", () => $89b3fe986b2d4477$export$aea217a45095ce11, (v) => $89b3fe986b2d4477$export$aea217a45095ce11 = v);
|
|
15446
|
+
$parcel$export(module.exports, "open", () => $89b3fe986b2d4477$export$3ce6949f20cea765, (v) => $89b3fe986b2d4477$export$3ce6949f20cea765 = v);
|
|
17315
15447
|
$parcel$export(module.exports, "autoCompleteContainer", () => $89b3fe986b2d4477$export$d08603063fe3f9a5, (v) => $89b3fe986b2d4477$export$d08603063fe3f9a5 = v);
|
|
17316
|
-
|
|
17317
|
-
|
|
17318
|
-
var $89b3fe986b2d4477$export$1237798dc640739a;
|
|
17319
|
-
var $89b3fe986b2d4477$export$3ce6949f20cea765;
|
|
17320
|
-
var $89b3fe986b2d4477$export$aea217a45095ce11;
|
|
17321
|
-
var $89b3fe986b2d4477$export$d76128d007d19019;
|
|
15448
|
+
$parcel$export(module.exports, "rotated", () => $89b3fe986b2d4477$export$7d2b4e7a5a4801f2, (v) => $89b3fe986b2d4477$export$7d2b4e7a5a4801f2 = v);
|
|
15449
|
+
$parcel$export(module.exports, "label", () => $89b3fe986b2d4477$export$1237798dc640739a, (v) => $89b3fe986b2d4477$export$1237798dc640739a = v);
|
|
17322
15450
|
var $89b3fe986b2d4477$export$42ffd38884aecdac;
|
|
17323
|
-
var $89b3fe986b2d4477$export$df03f54e09e486fa;
|
|
17324
15451
|
var $89b3fe986b2d4477$export$1edee58a52776cd9;
|
|
17325
|
-
var $89b3fe986b2d4477$export$
|
|
15452
|
+
var $89b3fe986b2d4477$export$d76128d007d19019;
|
|
15453
|
+
var $89b3fe986b2d4477$export$e41ce6c93801c63c;
|
|
15454
|
+
var $89b3fe986b2d4477$export$df03f54e09e486fa;
|
|
15455
|
+
var $89b3fe986b2d4477$export$e6127cc7fe7395c3;
|
|
15456
|
+
var $89b3fe986b2d4477$export$aea217a45095ce11;
|
|
15457
|
+
var $89b3fe986b2d4477$export$3ce6949f20cea765;
|
|
17326
15458
|
var $89b3fe986b2d4477$export$d08603063fe3f9a5;
|
|
15459
|
+
var $89b3fe986b2d4477$export$7d2b4e7a5a4801f2;
|
|
15460
|
+
var $89b3fe986b2d4477$export$1237798dc640739a;
|
|
17327
15461
|
"use strict";
|
|
17328
|
-
$89b3fe986b2d4477$export$e6127cc7fe7395c3 = "h8cnOq_isError";
|
|
17329
|
-
$89b3fe986b2d4477$export$e41ce6c93801c63c = "h8cnOq_dropDownIcon";
|
|
17330
|
-
$89b3fe986b2d4477$export$1237798dc640739a = "h8cnOq_label";
|
|
17331
|
-
$89b3fe986b2d4477$export$3ce6949f20cea765 = "h8cnOq_open";
|
|
17332
|
-
$89b3fe986b2d4477$export$aea217a45095ce11 = "h8cnOq_selector";
|
|
17333
|
-
$89b3fe986b2d4477$export$d76128d007d19019 = "h8cnOq_search";
|
|
17334
15462
|
$89b3fe986b2d4477$export$42ffd38884aecdac = "h8cnOq_clear";
|
|
17335
|
-
$89b3fe986b2d4477$export$df03f54e09e486fa = "h8cnOq_icons";
|
|
17336
15463
|
$89b3fe986b2d4477$export$1edee58a52776cd9 = "h8cnOq_border";
|
|
17337
|
-
$89b3fe986b2d4477$export$
|
|
15464
|
+
$89b3fe986b2d4477$export$d76128d007d19019 = "h8cnOq_search";
|
|
15465
|
+
$89b3fe986b2d4477$export$e41ce6c93801c63c = "h8cnOq_dropDownIcon";
|
|
15466
|
+
$89b3fe986b2d4477$export$df03f54e09e486fa = "h8cnOq_icons";
|
|
15467
|
+
$89b3fe986b2d4477$export$e6127cc7fe7395c3 = "h8cnOq_isError";
|
|
15468
|
+
$89b3fe986b2d4477$export$aea217a45095ce11 = "h8cnOq_selector";
|
|
15469
|
+
$89b3fe986b2d4477$export$3ce6949f20cea765 = "h8cnOq_open";
|
|
17338
15470
|
$89b3fe986b2d4477$export$d08603063fe3f9a5 = "h8cnOq_autoCompleteContainer";
|
|
15471
|
+
$89b3fe986b2d4477$export$7d2b4e7a5a4801f2 = "h8cnOq_rotated";
|
|
15472
|
+
$89b3fe986b2d4477$export$1237798dc640739a = "h8cnOq_label";
|
|
17339
15473
|
|
|
17340
15474
|
});
|
|
17341
15475
|
|
|
@@ -17396,13 +15530,13 @@ module.exports["default"] = $2a8ea8e017c38455$var$_default;
|
|
|
17396
15530
|
});
|
|
17397
15531
|
parcelRequire.register("6phpP", function(module, exports) {
|
|
17398
15532
|
|
|
17399
|
-
$parcel$export(module.exports, "noResult", () => $4aa29644d428563d$export$17aca76bf89ef49e, (v) => $4aa29644d428563d$export$17aca76bf89ef49e = v);
|
|
17400
15533
|
$parcel$export(module.exports, "resultsContainer", () => $4aa29644d428563d$export$15750c32f8f4f754, (v) => $4aa29644d428563d$export$15750c32f8f4f754 = v);
|
|
17401
|
-
|
|
15534
|
+
$parcel$export(module.exports, "noResult", () => $4aa29644d428563d$export$17aca76bf89ef49e, (v) => $4aa29644d428563d$export$17aca76bf89ef49e = v);
|
|
17402
15535
|
var $4aa29644d428563d$export$15750c32f8f4f754;
|
|
15536
|
+
var $4aa29644d428563d$export$17aca76bf89ef49e;
|
|
17403
15537
|
"use strict";
|
|
17404
|
-
$4aa29644d428563d$export$17aca76bf89ef49e = "SaImvG_noResult";
|
|
17405
15538
|
$4aa29644d428563d$export$15750c32f8f4f754 = "SaImvG_resultsContainer";
|
|
15539
|
+
$4aa29644d428563d$export$17aca76bf89ef49e = "SaImvG_noResult";
|
|
17406
15540
|
|
|
17407
15541
|
});
|
|
17408
15542
|
|
|
@@ -17459,19 +15593,19 @@ module.exports["default"] = $060ef87bc99cc1cf$var$_default;
|
|
|
17459
15593
|
});
|
|
17460
15594
|
parcelRequire.register("bfmDi", function(module, exports) {
|
|
17461
15595
|
|
|
17462
|
-
$parcel$export(module.exports, "
|
|
15596
|
+
$parcel$export(module.exports, "inputSearch", () => $8302a6d46dfd98fe$export$f78c4432585bf2ac, (v) => $8302a6d46dfd98fe$export$f78c4432585bf2ac = v);
|
|
17463
15597
|
$parcel$export(module.exports, "searchIcon", () => $8302a6d46dfd98fe$export$8687ffcdea58e000, (v) => $8302a6d46dfd98fe$export$8687ffcdea58e000 = v);
|
|
15598
|
+
$parcel$export(module.exports, "closeIcon", () => $8302a6d46dfd98fe$export$64a53ecd158b85c4, (v) => $8302a6d46dfd98fe$export$64a53ecd158b85c4 = v);
|
|
17464
15599
|
$parcel$export(module.exports, "inputContainer", () => $8302a6d46dfd98fe$export$72108e4fb43880e3, (v) => $8302a6d46dfd98fe$export$72108e4fb43880e3 = v);
|
|
17465
|
-
|
|
17466
|
-
var $8302a6d46dfd98fe$export$64a53ecd158b85c4;
|
|
15600
|
+
var $8302a6d46dfd98fe$export$f78c4432585bf2ac;
|
|
17467
15601
|
var $8302a6d46dfd98fe$export$8687ffcdea58e000;
|
|
15602
|
+
var $8302a6d46dfd98fe$export$64a53ecd158b85c4;
|
|
17468
15603
|
var $8302a6d46dfd98fe$export$72108e4fb43880e3;
|
|
17469
|
-
var $8302a6d46dfd98fe$export$f78c4432585bf2ac;
|
|
17470
15604
|
"use strict";
|
|
17471
|
-
$8302a6d46dfd98fe$export$
|
|
15605
|
+
$8302a6d46dfd98fe$export$f78c4432585bf2ac = "t5EYra_inputSearch";
|
|
17472
15606
|
$8302a6d46dfd98fe$export$8687ffcdea58e000 = "t5EYra_searchIcon";
|
|
15607
|
+
$8302a6d46dfd98fe$export$64a53ecd158b85c4 = "t5EYra_closeIcon";
|
|
17473
15608
|
$8302a6d46dfd98fe$export$72108e4fb43880e3 = "t5EYra_inputContainer";
|
|
17474
|
-
$8302a6d46dfd98fe$export$f78c4432585bf2ac = "t5EYra_inputSearch";
|
|
17475
15609
|
|
|
17476
15610
|
});
|
|
17477
15611
|
|
|
@@ -17567,7 +15701,9 @@ var $7d5761816dd9f126$var$SuggestList = function SuggestList(_ref) {
|
|
|
17567
15701
|
e.returnValue = false;
|
|
17568
15702
|
};
|
|
17569
15703
|
var isMouseOverSuggestList = function isMouseOverSuggestList(e, myAutoCompleteSuggestListRef) {
|
|
17570
|
-
|
|
15704
|
+
if (!(myAutoCompleteSuggestListRef !== null && myAutoCompleteSuggestListRef !== void 0 && myAutoCompleteSuggestListRef.current)) return false;
|
|
15705
|
+
var rect = myAutoCompleteSuggestListRef.current.getBoundingClientRect();
|
|
15706
|
+
return rect && e.clientX >= rect.left && e.clientX <= rect.left + rect.width && e.clientY >= rect.top && e.clientY <= rect.top + rect.height;
|
|
17571
15707
|
};
|
|
17572
15708
|
var limitScrollAtEndOfList = function limitScrollAtEndOfList() {
|
|
17573
15709
|
var maxCurrentPositionY = itemHeight * (list.length - 5);
|
|
@@ -17730,19 +15866,19 @@ module.exports["default"] = $827476aa1ed605f8$var$_default;
|
|
|
17730
15866
|
});
|
|
17731
15867
|
parcelRequire.register("aI0no", function(module, exports) {
|
|
17732
15868
|
|
|
17733
|
-
$parcel$export(module.exports, "disabled", () => $7cbe4e30c9952688$export$683472f6198a076e, (v) => $7cbe4e30c9952688$export$683472f6198a076e = v);
|
|
17734
|
-
$parcel$export(module.exports, "checkboxContainer", () => $7cbe4e30c9952688$export$be69ea624d82a314, (v) => $7cbe4e30c9952688$export$be69ea624d82a314 = v);
|
|
17735
15869
|
$parcel$export(module.exports, "line", () => $7cbe4e30c9952688$export$53f1d5ea8de3d7c, (v) => $7cbe4e30c9952688$export$53f1d5ea8de3d7c = v);
|
|
15870
|
+
$parcel$export(module.exports, "checkboxContainer", () => $7cbe4e30c9952688$export$be69ea624d82a314, (v) => $7cbe4e30c9952688$export$be69ea624d82a314 = v);
|
|
17736
15871
|
$parcel$export(module.exports, "label", () => $7cbe4e30c9952688$export$1237798dc640739a, (v) => $7cbe4e30c9952688$export$1237798dc640739a = v);
|
|
17737
|
-
|
|
17738
|
-
var $7cbe4e30c9952688$export$be69ea624d82a314;
|
|
15872
|
+
$parcel$export(module.exports, "disabled", () => $7cbe4e30c9952688$export$683472f6198a076e, (v) => $7cbe4e30c9952688$export$683472f6198a076e = v);
|
|
17739
15873
|
var $7cbe4e30c9952688$export$53f1d5ea8de3d7c;
|
|
15874
|
+
var $7cbe4e30c9952688$export$be69ea624d82a314;
|
|
17740
15875
|
var $7cbe4e30c9952688$export$1237798dc640739a;
|
|
15876
|
+
var $7cbe4e30c9952688$export$683472f6198a076e;
|
|
17741
15877
|
"use strict";
|
|
17742
|
-
$7cbe4e30c9952688$export$683472f6198a076e = "kMx4ia_disabled";
|
|
17743
|
-
$7cbe4e30c9952688$export$be69ea624d82a314 = "kMx4ia_checkboxContainer";
|
|
17744
15878
|
$7cbe4e30c9952688$export$53f1d5ea8de3d7c = "kMx4ia_line";
|
|
15879
|
+
$7cbe4e30c9952688$export$be69ea624d82a314 = "kMx4ia_checkboxContainer";
|
|
17745
15880
|
$7cbe4e30c9952688$export$1237798dc640739a = "kMx4ia_label";
|
|
15881
|
+
$7cbe4e30c9952688$export$683472f6198a076e = "kMx4ia_disabled";
|
|
17746
15882
|
|
|
17747
15883
|
});
|
|
17748
15884
|
|
|
@@ -17792,16 +15928,16 @@ module.exports["default"] = $582fe4327e2ca233$var$_default;
|
|
|
17792
15928
|
});
|
|
17793
15929
|
parcelRequire.register("4ZIDK", function(module, exports) {
|
|
17794
15930
|
|
|
15931
|
+
$parcel$export(module.exports, "checked", () => $3a2f7c860af0abde$export$b96bb35bc88d6fa, (v) => $3a2f7c860af0abde$export$b96bb35bc88d6fa = v);
|
|
17795
15932
|
$parcel$export(module.exports, "disabled", () => $3a2f7c860af0abde$export$683472f6198a076e, (v) => $3a2f7c860af0abde$export$683472f6198a076e = v);
|
|
17796
15933
|
$parcel$export(module.exports, "checkbox", () => $3a2f7c860af0abde$export$b07e517d22efa1ca, (v) => $3a2f7c860af0abde$export$b07e517d22efa1ca = v);
|
|
17797
|
-
|
|
15934
|
+
var $3a2f7c860af0abde$export$b96bb35bc88d6fa;
|
|
17798
15935
|
var $3a2f7c860af0abde$export$683472f6198a076e;
|
|
17799
15936
|
var $3a2f7c860af0abde$export$b07e517d22efa1ca;
|
|
17800
|
-
var $3a2f7c860af0abde$export$b96bb35bc88d6fa;
|
|
17801
15937
|
"use strict";
|
|
15938
|
+
$3a2f7c860af0abde$export$b96bb35bc88d6fa = "pNP20W_checked";
|
|
17802
15939
|
$3a2f7c860af0abde$export$683472f6198a076e = "pNP20W_disabled";
|
|
17803
15940
|
$3a2f7c860af0abde$export$b07e517d22efa1ca = "pNP20W_checkbox";
|
|
17804
|
-
$3a2f7c860af0abde$export$b96bb35bc88d6fa = "pNP20W_checked";
|
|
17805
15941
|
|
|
17806
15942
|
});
|
|
17807
15943
|
|
|
@@ -17953,8 +16089,8 @@ $14c49666e282f90f$var$MyAutoCompleteSuggestListScrollBar.propTypes = {
|
|
|
17953
16089
|
numberOfItemDisplayed: $14c49666e282f90f$var$_propTypes["default"].number,
|
|
17954
16090
|
changeListData: $14c49666e282f90f$var$_propTypes["default"].func,
|
|
17955
16091
|
setCurrentPositionYRef: $14c49666e282f90f$var$_propTypes["default"].func,
|
|
17956
|
-
setStartIndexListDisplayedRef: $14c49666e282f90f$var$_propTypes["default"].
|
|
17957
|
-
startIndexListDisplayed: $14c49666e282f90f$var$_propTypes["default"].
|
|
16092
|
+
setStartIndexListDisplayedRef: $14c49666e282f90f$var$_propTypes["default"].func,
|
|
16093
|
+
startIndexListDisplayed: $14c49666e282f90f$var$_propTypes["default"].number,
|
|
17958
16094
|
suggestListHeight: $14c49666e282f90f$var$_propTypes["default"].number
|
|
17959
16095
|
};
|
|
17960
16096
|
|
|
@@ -18014,19 +16150,19 @@ module.exports["default"] = $b3ca32e1e8152d41$var$_default;
|
|
|
18014
16150
|
});
|
|
18015
16151
|
parcelRequire.register("5OeO1", function(module, exports) {
|
|
18016
16152
|
|
|
18017
|
-
$parcel$export(module.exports, "chipsContainer", () => $43ad1b6180880954$export$4ecd951fab6372ae, (v) => $43ad1b6180880954$export$4ecd951fab6372ae = v);
|
|
18018
16153
|
$parcel$export(module.exports, "description", () => $43ad1b6180880954$export$6d59db4903f20f7d, (v) => $43ad1b6180880954$export$6d59db4903f20f7d = v);
|
|
18019
|
-
$parcel$export(module.exports, "
|
|
16154
|
+
$parcel$export(module.exports, "chipsContainer", () => $43ad1b6180880954$export$4ecd951fab6372ae, (v) => $43ad1b6180880954$export$4ecd951fab6372ae = v);
|
|
18020
16155
|
$parcel$export(module.exports, "selectorContainer", () => $43ad1b6180880954$export$4f73249088d12862, (v) => $43ad1b6180880954$export$4f73249088d12862 = v);
|
|
18021
|
-
|
|
16156
|
+
$parcel$export(module.exports, "search", () => $43ad1b6180880954$export$d76128d007d19019, (v) => $43ad1b6180880954$export$d76128d007d19019 = v);
|
|
18022
16157
|
var $43ad1b6180880954$export$6d59db4903f20f7d;
|
|
18023
|
-
var $43ad1b6180880954$export$
|
|
16158
|
+
var $43ad1b6180880954$export$4ecd951fab6372ae;
|
|
18024
16159
|
var $43ad1b6180880954$export$4f73249088d12862;
|
|
16160
|
+
var $43ad1b6180880954$export$d76128d007d19019;
|
|
18025
16161
|
"use strict";
|
|
18026
|
-
$43ad1b6180880954$export$4ecd951fab6372ae = "_1WQQUG_chipsContainer";
|
|
18027
16162
|
$43ad1b6180880954$export$6d59db4903f20f7d = "_1WQQUG_description";
|
|
18028
|
-
$43ad1b6180880954$export$
|
|
16163
|
+
$43ad1b6180880954$export$4ecd951fab6372ae = "_1WQQUG_chipsContainer";
|
|
18029
16164
|
$43ad1b6180880954$export$4f73249088d12862 = "_1WQQUG_selectorContainer";
|
|
16165
|
+
$43ad1b6180880954$export$d76128d007d19019 = "_1WQQUG_search";
|
|
18030
16166
|
|
|
18031
16167
|
});
|
|
18032
16168
|
|
|
@@ -18163,26 +16299,27 @@ function $fc67e8a80c2a5449$var$_arrayLikeToArray(arr, len) {
|
|
|
18163
16299
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
18164
16300
|
return arr2;
|
|
18165
16301
|
}
|
|
18166
|
-
var $fc67e8a80c2a5449$var$SIZE_EMPTY_CHIPS =
|
|
18167
|
-
var $fc67e8a80c2a5449$var$SIZE_CHAR =
|
|
18168
|
-
var $fc67e8a80c2a5449$var$SIZE_ICONS =
|
|
16302
|
+
var $fc67e8a80c2a5449$var$SIZE_EMPTY_CHIPS = 35;
|
|
16303
|
+
var $fc67e8a80c2a5449$var$SIZE_CHAR = 6;
|
|
16304
|
+
var $fc67e8a80c2a5449$var$SIZE_ICONS = 50;
|
|
16305
|
+
var $fc67e8a80c2a5449$var$PLUS_CHIPS = 45;
|
|
18169
16306
|
var $fc67e8a80c2a5449$var$ListChips = function ListChips(_ref) {
|
|
18170
16307
|
var _options$slice;
|
|
18171
16308
|
var _ref$options = _ref.options, options = _ref$options === void 0 ? [] : _ref$options, widthContainer = _ref.widthContainer, onUnselectChips = _ref.onUnselectChips;
|
|
18172
16309
|
var numberCanDisplay = function numberCanDisplay() {
|
|
18173
16310
|
var numberChipsDisplayed = 0;
|
|
18174
|
-
var
|
|
16311
|
+
var restWidth = widthContainer - $fc67e8a80c2a5449$var$SIZE_ICONS;
|
|
16312
|
+
if ((options === null || options === void 0 ? void 0 : options.length) > 1) restWidth -= $fc67e8a80c2a5449$var$PLUS_CHIPS;
|
|
18175
16313
|
var _iterator = $fc67e8a80c2a5449$var$_createForOfIteratorHelper(options), _step;
|
|
18176
16314
|
try {
|
|
18177
16315
|
for(_iterator.s(); !(_step = _iterator.n()).done;){
|
|
18178
16316
|
var _option$label;
|
|
18179
16317
|
var option = _step.value;
|
|
18180
|
-
var
|
|
18181
|
-
|
|
18182
|
-
|
|
18183
|
-
|
|
18184
|
-
|
|
18185
|
-
} else break;
|
|
16318
|
+
var widthToAdd = $fc67e8a80c2a5449$var$SIZE_CHAR * (option === null || option === void 0 ? void 0 : (_option$label = option.label) === null || _option$label === void 0 ? void 0 : _option$label.length) + $fc67e8a80c2a5449$var$SIZE_EMPTY_CHIPS;
|
|
16319
|
+
var canAddChips = restWidth > widthToAdd;
|
|
16320
|
+
restWidth = restWidth - widthToAdd;
|
|
16321
|
+
if (canAddChips) numberChipsDisplayed++;
|
|
16322
|
+
else break;
|
|
18186
16323
|
}
|
|
18187
16324
|
} catch (err) {
|
|
18188
16325
|
_iterator.e(err);
|
|
@@ -18207,8 +16344,7 @@ var $fc67e8a80c2a5449$var$ListChips = function ListChips(_ref) {
|
|
|
18207
16344
|
key: "chips_".concat(o === null || o === void 0 ? void 0 : o.id, "_").concat(index)
|
|
18208
16345
|
}, /*#__PURE__*/ $fc67e8a80c2a5449$var$_react["default"].createElement($fc67e8a80c2a5449$var$_Chips["default"], {
|
|
18209
16346
|
text: o === null || o === void 0 ? void 0 : o.label,
|
|
18210
|
-
isClosable: !o.disabled
|
|
18211
|
-
,
|
|
16347
|
+
isClosable: !o.disabled,
|
|
18212
16348
|
onUnselectChips: function onUnselectChips(e) {
|
|
18213
16349
|
return handleUnselectChip(e, o === null || o === void 0 ? void 0 : o.id);
|
|
18214
16350
|
}
|
|
@@ -18241,21 +16377,21 @@ module.exports["default"] = $fc67e8a80c2a5449$var$_default;
|
|
|
18241
16377
|
});
|
|
18242
16378
|
parcelRequire.register("fMO2k", function(module, exports) {
|
|
18243
16379
|
|
|
18244
|
-
$parcel$export(module.exports, "otherChips", () => $b7e226f14163178c$export$8e7e5eade6f0e227, (v) => $b7e226f14163178c$export$8e7e5eade6f0e227 = v);
|
|
18245
|
-
$parcel$export(module.exports, "listChips", () => $b7e226f14163178c$export$e7d1eca55671fd03, (v) => $b7e226f14163178c$export$e7d1eca55671fd03 = v);
|
|
18246
16380
|
$parcel$export(module.exports, "toolTipsList", () => $b7e226f14163178c$export$5cb38942082ce4bd, (v) => $b7e226f14163178c$export$5cb38942082ce4bd = v);
|
|
18247
16381
|
$parcel$export(module.exports, "chips", () => $b7e226f14163178c$export$9f51660fd8227d80, (v) => $b7e226f14163178c$export$9f51660fd8227d80 = v);
|
|
16382
|
+
$parcel$export(module.exports, "otherChips", () => $b7e226f14163178c$export$8e7e5eade6f0e227, (v) => $b7e226f14163178c$export$8e7e5eade6f0e227 = v);
|
|
16383
|
+
$parcel$export(module.exports, "listChips", () => $b7e226f14163178c$export$e7d1eca55671fd03, (v) => $b7e226f14163178c$export$e7d1eca55671fd03 = v);
|
|
18248
16384
|
$parcel$export(module.exports, "lineChips", () => $b7e226f14163178c$export$bce1eb5c2ff1e30e, (v) => $b7e226f14163178c$export$bce1eb5c2ff1e30e = v);
|
|
18249
|
-
var $b7e226f14163178c$export$8e7e5eade6f0e227;
|
|
18250
|
-
var $b7e226f14163178c$export$e7d1eca55671fd03;
|
|
18251
16385
|
var $b7e226f14163178c$export$5cb38942082ce4bd;
|
|
18252
16386
|
var $b7e226f14163178c$export$9f51660fd8227d80;
|
|
16387
|
+
var $b7e226f14163178c$export$8e7e5eade6f0e227;
|
|
16388
|
+
var $b7e226f14163178c$export$e7d1eca55671fd03;
|
|
18253
16389
|
var $b7e226f14163178c$export$bce1eb5c2ff1e30e;
|
|
18254
16390
|
"use strict";
|
|
18255
|
-
$b7e226f14163178c$export$8e7e5eade6f0e227 = "_8FpR1a_otherChips";
|
|
18256
|
-
$b7e226f14163178c$export$e7d1eca55671fd03 = "_8FpR1a_listChips";
|
|
18257
16391
|
$b7e226f14163178c$export$5cb38942082ce4bd = "_8FpR1a_toolTipsList";
|
|
18258
16392
|
$b7e226f14163178c$export$9f51660fd8227d80 = "_8FpR1a_chips";
|
|
16393
|
+
$b7e226f14163178c$export$8e7e5eade6f0e227 = "_8FpR1a_otherChips";
|
|
16394
|
+
$b7e226f14163178c$export$e7d1eca55671fd03 = "_8FpR1a_listChips";
|
|
18259
16395
|
$b7e226f14163178c$export$bce1eb5c2ff1e30e = "_8FpR1a_lineChips";
|
|
18260
16396
|
|
|
18261
16397
|
});
|