@myunisoft/design-system 0.22.2 → 0.22.3-MYUN-25378
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 +0 -226
- package/dist/index.css.map +1 -1
- package/dist/index.js +895 -2699
- package/dist/index.js.map +1 -1
- package/package.json +1 -2
package/dist/index.js
CHANGED
|
@@ -36,12 +36,13 @@ var $gXNCa$lodashisEmpty = require("lodash/isEmpty");
|
|
|
36
36
|
var $gXNCa$lodashfirst = require("lodash/first");
|
|
37
37
|
var $gXNCa$reactspinnersClipLoader = require("react-spinners/ClipLoader");
|
|
38
38
|
var $gXNCa$muimaterialstyles = require("@mui/material/styles");
|
|
39
|
+
var $gXNCa$babelruntimeregenerator = require("@babel/runtime/regenerator");
|
|
39
40
|
var $gXNCa$babelruntimehelpersasyncToGenerator = require("@babel/runtime/helpers/asyncToGenerator");
|
|
40
41
|
var $gXNCa$lodashfind = require("lodash/find");
|
|
41
|
-
var $gXNCa$exceljs = require("exceljs");
|
|
42
42
|
var $gXNCa$lodashescapeRegExp = require("lodash/escapeRegExp");
|
|
43
|
-
var $gXNCa$
|
|
43
|
+
var $gXNCa$exceljs = require("exceljs");
|
|
44
44
|
require("jspdf-autotable");
|
|
45
|
+
var $gXNCa$jspdf = require("jspdf");
|
|
45
46
|
var $gXNCa$reactdropzone = require("react-dropzone");
|
|
46
47
|
var $gXNCa$muistyleswithStyles = require("@mui/styles/withStyles");
|
|
47
48
|
var $gXNCa$muimaterialIconButton = require("@mui/material/IconButton");
|
|
@@ -51,13 +52,9 @@ var $gXNCa$muimaterialAutocomplete = require("@mui/material/Autocomplete");
|
|
|
51
52
|
var $gXNCa$lodashhead = require("lodash/head");
|
|
52
53
|
var $gXNCa$lodashisEqual = require("lodash/isEqual");
|
|
53
54
|
var $gXNCa$lodashuniq = require("lodash/uniq");
|
|
54
|
-
var $gXNCa$muiiconsmaterialSearch = require("@mui/icons-material/Search");
|
|
55
|
-
var $gXNCa$lodashmap = require("lodash/map");
|
|
56
55
|
var $gXNCa$muibaseClickAwayListener = require("@mui/base/ClickAwayListener");
|
|
57
|
-
var $gXNCa$
|
|
56
|
+
var $gXNCa$lodashmap = require("lodash/map");
|
|
58
57
|
var $gXNCa$reactinputautosize = require("react-input-autosize");
|
|
59
|
-
var $gXNCa$muiiconsmaterialMoreVert = require("@mui/icons-material/MoreVert");
|
|
60
|
-
var $gXNCa$muiiconsmaterial = require("@mui/icons-material");
|
|
61
58
|
var $gXNCa$lodashorderBy = require("lodash/orderBy");
|
|
62
59
|
var $gXNCa$lodashgroupBy = require("lodash/groupBy");
|
|
63
60
|
|
|
@@ -166,6 +163,8 @@ var $jI8lH = parcelRequire("jI8lH");
|
|
|
166
163
|
var $97Dm9 = parcelRequire("97Dm9");
|
|
167
164
|
|
|
168
165
|
var $d72463ab93d2098f$var$_deprecatedPropType = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$muiutilsdeprecatedPropType);
|
|
166
|
+
|
|
167
|
+
var $4vYVW = parcelRequire("4vYVW");
|
|
169
168
|
function $d72463ab93d2098f$var$_getRequireWildcardCache(nodeInterop) {
|
|
170
169
|
if (typeof WeakMap !== "function") return null;
|
|
171
170
|
var cacheBabelInterop = new WeakMap();
|
|
@@ -217,20 +216,28 @@ var $d72463ab93d2098f$var$defaultConfig = {
|
|
|
217
216
|
selectableRowKey: "id"
|
|
218
217
|
};
|
|
219
218
|
var $d72463ab93d2098f$var$VirtualTable = /*#__PURE__*/ $d72463ab93d2098f$var$_react["default"].memo(/*#__PURE__*/ $d72463ab93d2098f$var$_react["default"].forwardRef(function VirtualTable(_ref, ref) {
|
|
220
|
-
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;
|
|
219
|
+
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, onColumnsChange = _ref.onColumnsChange;
|
|
221
220
|
var styles = (0, $d72463ab93d2098f$var$_styles["default"])();
|
|
222
221
|
var _useState = (0, $d72463ab93d2098f$var$_react.useState)(0), _useState2 = (0, $d72463ab93d2098f$var$_slicedToArray2["default"])(_useState, 2), width = _useState2[0], setWidth = _useState2[1];
|
|
223
222
|
var _useState3 = (0, $d72463ab93d2098f$var$_react.useState)(0), _useState4 = (0, $d72463ab93d2098f$var$_slicedToArray2["default"])(_useState3, 2), scrollTop = _useState4[0], setScrollTop = _useState4[1];
|
|
224
223
|
var _useState5 = (0, $d72463ab93d2098f$var$_react.useState)(0), _useState6 = (0, $d72463ab93d2098f$var$_slicedToArray2["default"])(_useState5, 2), scrollLeft = _useState6[0], setScrollLeft = _useState6[1];
|
|
225
224
|
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, sortedGroup = config.sortedGroup;
|
|
225
|
+
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, unlockedRows = config.unlockedRows;
|
|
226
|
+
var unlockedRowsIds = (0, $d72463ab93d2098f$var$_react.useMemo)(function() {
|
|
227
|
+
return (0, $4vYVW.getUnlockedRowsIds)(unlockedRows, selectableRowKey);
|
|
228
|
+
}, [
|
|
229
|
+
unlockedRows
|
|
230
|
+
]);
|
|
227
231
|
var _useMachine = (0, $jV35V.useMachine)($d72463ab93d2098f$var$_machine["default"], $d72463ab93d2098f$var$_objectSpread($d72463ab93d2098f$var$_objectSpread({}, $d72463ab93d2098f$var$_machine.initialContext), {}, {
|
|
228
232
|
selectedRows: (0, $idhBf.createSelection)(defaultSelectedRows)
|
|
229
233
|
})), _useMachine2 = (0, $d72463ab93d2098f$var$_slicedToArray2["default"])(_useMachine, 4), state = _useMachine2[0], context = _useMachine2[1], send = _useMachine2[2], can = _useMachine2[3];
|
|
230
234
|
var _useState7 = (0, $d72463ab93d2098f$var$_react.useState)({}), _useState8 = (0, $d72463ab93d2098f$var$_slicedToArray2["default"])(_useState7, 2), searchFilters = _useState8[0], setSearchFilters = _useState8[1];
|
|
231
235
|
var _useSortable = (0, $ckVq7.useSortable)(defaultOrder, defaultOrderDirection, onCustomOrderChange), order = _useSortable.order, orderDirection = _useSortable.orderDirection, onOrderChange = _useSortable.onOrderChange;
|
|
232
|
-
var _useColumns = (0, $d72463ab93d2098f$var$_useColumns2["default"])(columnsRaw, tableKeyName, config), _columns = _useColumns.state, dispatchColumnsSetting = _useColumns.dispatch;
|
|
236
|
+
var _useColumns = (0, $d72463ab93d2098f$var$_useColumns2["default"])(columnsRaw, tableKeyName, config, onColumnsChange), _columns = _useColumns.state, dispatchColumnsSetting = _useColumns.dispatch;
|
|
233
237
|
var _useApiState = (0, $d72463ab93d2098f$var$_useApiState3["default"])(ref), _useApiState2 = (0, $d72463ab93d2098f$var$_slicedToArray2["default"])(_useApiState, 1), apiRef = _useApiState2[0];
|
|
238
|
+
apiRef.current.getFilters = function() {
|
|
239
|
+
return searchFilters;
|
|
240
|
+
};
|
|
234
241
|
var CHECKBOX_COLUMN = "checkboxColumn";
|
|
235
242
|
var uniqueTableId = (0, $lDpO0.generateId)();
|
|
236
243
|
var data = (0, $d72463ab93d2098f$var$_react.useMemo)(function() {
|
|
@@ -313,7 +320,8 @@ var $d72463ab93d2098f$var$VirtualTable = /*#__PURE__*/ $d72463ab93d2098f$var$_re
|
|
|
313
320
|
groupKey
|
|
314
321
|
]);
|
|
315
322
|
(0, $d72463ab93d2098f$var$_react.useEffect)(function() {
|
|
316
|
-
var processedDataRows = processRowsData();
|
|
323
|
+
var processedDataRows = processRowsData();
|
|
324
|
+
// eslint-disable-next-line no-use-before-define
|
|
317
325
|
send("updateCtx", {
|
|
318
326
|
data: processedDataRows
|
|
319
327
|
});
|
|
@@ -382,7 +390,10 @@ var $d72463ab93d2098f$var$VirtualTable = /*#__PURE__*/ $d72463ab93d2098f$var$_re
|
|
|
382
390
|
displayableRows: displayableRows,
|
|
383
391
|
tableKeyName: tableKeyName,
|
|
384
392
|
apiRef: apiRef,
|
|
385
|
-
config: $d72463ab93d2098f$var$_objectSpread($d72463ab93d2098f$var$_objectSpread({
|
|
393
|
+
config: $d72463ab93d2098f$var$_objectSpread($d72463ab93d2098f$var$_objectSpread({
|
|
394
|
+
selectableRowKey: "id"
|
|
395
|
+
}, config), {}, {
|
|
396
|
+
unlockedRowsIds: unlockedRowsIds,
|
|
386
397
|
columns: columns,
|
|
387
398
|
columnsRaw: _columns
|
|
388
399
|
}),
|
|
@@ -885,7 +896,7 @@ var $33a6c9c6ce93d958$var$Body = function Body(props) {
|
|
|
885
896
|
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);
|
|
886
897
|
var _useState = (0, $33a6c9c6ce93d958$var$_react.useState)(), _useState2 = (0, $33a6c9c6ce93d958$var$_slicedToArray2["default"])(_useState, 2), height = _useState2[0], setHeight = _useState2[1];
|
|
887
898
|
var ref = (0, $33a6c9c6ce93d958$var$_react.useRef)();
|
|
888
|
-
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.
|
|
899
|
+
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.hasSecuredRows, hasSecuredRows = _useConfig$config$has === void 0 ? false : _useConfig$config$has, stylesProp = _useConfig$config.styles;
|
|
889
900
|
(0, $33a6c9c6ce93d958$var$_react.useEffect)(function() {
|
|
890
901
|
var ro = new $33a6c9c6ce93d958$var$_resizeObserver["default"]();
|
|
891
902
|
ro.observe(ref.current, function(entry) {
|
|
@@ -900,9 +911,6 @@ var $33a6c9c6ce93d958$var$Body = function Body(props) {
|
|
|
900
911
|
var styles = (0, $33a6c9c6ce93d958$var$_styles["default"])({
|
|
901
912
|
rowHeight: props.rowHeight
|
|
902
913
|
});
|
|
903
|
-
var openSocietiesIds = openSocieties.map(function(society) {
|
|
904
|
-
return society === null || society === void 0 ? void 0 : society.id;
|
|
905
|
-
});
|
|
906
914
|
var containerCustomStyling = (0, $33a6c9c6ce93d958$var$_react.useMemo)(function() {
|
|
907
915
|
var _stylesProp$body, _stylesProp$body$cont;
|
|
908
916
|
return stylesProp === null || stylesProp === void 0 ? void 0 : (_stylesProp$body = stylesProp.body) === null || _stylesProp$body === void 0 ? void 0 : (_stylesProp$body$cont = _stylesProp$body.container) === null || _stylesProp$body$cont === void 0 ? void 0 : _stylesProp$body$cont.call(_stylesProp$body, {
|
|
@@ -924,8 +932,6 @@ var $33a6c9c6ce93d958$var$Body = function Body(props) {
|
|
|
924
932
|
columns: columns,
|
|
925
933
|
selectableRowKey: selectableRowKey,
|
|
926
934
|
displayableRows: displayableRows,
|
|
927
|
-
hasSecureSociety: hasSecureSociety,
|
|
928
|
-
openSocietiesIds: openSocietiesIds,
|
|
929
935
|
alwaysInEdition: alwaysInEdition,
|
|
930
936
|
bodyStylesProp: stylesProp === null || stylesProp === void 0 ? void 0 : stylesProp.body,
|
|
931
937
|
onRowContextMenu: onRowContextMenu
|
|
@@ -934,8 +940,7 @@ var $33a6c9c6ce93d958$var$Body = function Body(props) {
|
|
|
934
940
|
displayableRows,
|
|
935
941
|
scrollLeft,
|
|
936
942
|
columns,
|
|
937
|
-
|
|
938
|
-
openSocieties,
|
|
943
|
+
hasSecuredRows,
|
|
939
944
|
alwaysInEdition
|
|
940
945
|
]);
|
|
941
946
|
return /*#__PURE__*/ $33a6c9c6ce93d958$var$_react["default"].createElement($33a6c9c6ce93d958$var$_VirtualGrid["default"], (0, $33a6c9c6ce93d958$var$_extends2["default"])({
|
|
@@ -1295,7 +1300,11 @@ var $a4c1f05a2ad8512a$var$INSERT_POSITION = {
|
|
|
1295
1300
|
module.exports.INSERT_POSITION = $a4c1f05a2ad8512a$var$INSERT_POSITION;
|
|
1296
1301
|
var $a4c1f05a2ad8512a$var$SORTABLE_TYPES = [
|
|
1297
1302
|
$51yp9.TYPE_CELL.AMOUNT,
|
|
1303
|
+
$51yp9.TYPE_CELL.AUTOCOMPLETE,
|
|
1304
|
+
$51yp9.TYPE_CELL.CHECKBOX,
|
|
1305
|
+
$51yp9.TYPE_CELL.DATE,
|
|
1298
1306
|
$51yp9.TYPE_CELL.NUMBER,
|
|
1307
|
+
$51yp9.TYPE_CELL.SELECT,
|
|
1299
1308
|
$51yp9.TYPE_CELL.STRING
|
|
1300
1309
|
];
|
|
1301
1310
|
var $a4c1f05a2ad8512a$var$EXPORTABLE_TYPES = [
|
|
@@ -1559,11 +1568,12 @@ function $6a434bd325b1a27a$var$_objectSpread(target) {
|
|
|
1559
1568
|
var _options$filterCompar = options.filterComparator, filterComparator = _options$filterCompar === void 0 ? "contains" : _options$filterCompar;
|
|
1560
1569
|
var search = $6a434bd325b1a27a$var$escapeRegExp(term.toString());
|
|
1561
1570
|
if (typeof filterComparator === "function") return filterComparator(search, value);
|
|
1562
|
-
|
|
1571
|
+
// TODO: Add accent converter
|
|
1563
1572
|
if ([
|
|
1564
1573
|
$51yp9.TYPE_CELL.AMOUNT,
|
|
1565
1574
|
$51yp9.TYPE_CELL.NUMBER
|
|
1566
1575
|
].includes(typeCell)) return $6a434bd325b1a27a$var$isMatchingNumber(term.toString(), value);
|
|
1576
|
+
if (typeCell === $51yp9.TYPE_CELL.SELECT) return term === value;
|
|
1567
1577
|
var reg;
|
|
1568
1578
|
switch(filterComparator){
|
|
1569
1579
|
case "startsBy":
|
|
@@ -1616,7 +1626,8 @@ var $6a434bd325b1a27a$var$getColumnConfig = function getColumnConfig(key, row, c
|
|
|
1616
1626
|
var columns = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
1617
1627
|
return filters.every(function(_ref) {
|
|
1618
1628
|
var _ref2 = (0, $6a434bd325b1a27a$var$_slicedToArray2["default"])(_ref, 2), key = _ref2[0], term = _ref2[1];
|
|
1619
|
-
if (!term) return true;
|
|
1629
|
+
if (!term) return true;
|
|
1630
|
+
// Use array key to create OR condition
|
|
1620
1631
|
if ((0, $6a434bd325b1a27a$var$_isArray2["default"])(key)) return key.some(function(k) {
|
|
1621
1632
|
var _getColumnConfig = $6a434bd325b1a27a$var$getColumnConfig(k, row, columns), value = _getColumnConfig.value, typeCell = _getColumnConfig.typeCell, options = (0, $6a434bd325b1a27a$var$_objectWithoutProperties2["default"])(_getColumnConfig, $6a434bd325b1a27a$var$_excluded);
|
|
1622
1633
|
return $6a434bd325b1a27a$var$isMatching(term, value, typeCell, options);
|
|
@@ -1955,6 +1966,9 @@ var $f4cf6da9b3997b19$var$useStyles = (0, $f4cf6da9b3997b19$var$_makeStyles["def
|
|
|
1955
1966
|
var _theme$palette, _theme$palette$_color;
|
|
1956
1967
|
var _color = _ref.color;
|
|
1957
1968
|
return ((_theme$palette = theme.palette) === null || _theme$palette === void 0 ? void 0 : (_theme$palette$_color = _theme$palette[_color]) === null || _theme$palette$_color === void 0 ? void 0 : _theme$palette$_color.main) || _color;
|
|
1969
|
+
},
|
|
1970
|
+
"[data-role=cell]:hover &": {
|
|
1971
|
+
textDecoration: "none"
|
|
1958
1972
|
}
|
|
1959
1973
|
},
|
|
1960
1974
|
dataIconChar: {
|
|
@@ -2054,6 +2068,8 @@ var $lRxmh = parcelRequire("lRxmh");
|
|
|
2054
2068
|
var $5975f126da112a16$var$_Cell = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("2MZty")));
|
|
2055
2069
|
|
|
2056
2070
|
var $ckVq7 = parcelRequire("ckVq7");
|
|
2071
|
+
|
|
2072
|
+
var $3LtOr = parcelRequire("3LtOr");
|
|
2057
2073
|
var $5975f126da112a16$var$_excluded = [
|
|
2058
2074
|
"columns",
|
|
2059
2075
|
"columnWidth",
|
|
@@ -2067,8 +2083,6 @@ var $5975f126da112a16$var$_excluded = [
|
|
|
2067
2083
|
"style",
|
|
2068
2084
|
"classes",
|
|
2069
2085
|
"isVisible",
|
|
2070
|
-
"hasSecureSociety",
|
|
2071
|
-
"openSocietiesIds",
|
|
2072
2086
|
"alwaysInEdition",
|
|
2073
2087
|
"bodyStylesProp",
|
|
2074
2088
|
"onRowContextMenu",
|
|
@@ -2125,11 +2139,12 @@ function $5975f126da112a16$var$_objectSpread(target) {
|
|
|
2125
2139
|
}
|
|
2126
2140
|
var $5975f126da112a16$var$BodyRow = function BodyRow(props) {
|
|
2127
2141
|
var _row$parentRowIndex;
|
|
2128
|
-
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$
|
|
2142
|
+
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$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);
|
|
2129
2143
|
var _useConfig = (0, $ckVq7.useConfig)(), send = _useConfig.send;
|
|
2130
2144
|
var apiRef = (0, $4IFzq.useApiRef)();
|
|
2131
2145
|
var selectedRows = (0, $9E7Hm.useSelector)(apiRef, $lRxmh.selectedRowsSelector);
|
|
2132
2146
|
var isSelected = selectedRows.includes(row[selectableRowKey]);
|
|
2147
|
+
var _useSecured = (0, $3LtOr.useSecured)(row), isSecuredRow = _useSecured.isSecuredRow;
|
|
2133
2148
|
var customStyling = (0, $5975f126da112a16$var$_react.useMemo)(function() {
|
|
2134
2149
|
var _bodyStylesProp$row;
|
|
2135
2150
|
return bodyStylesProp === null || bodyStylesProp === void 0 ? void 0 : (_bodyStylesProp$row = bodyStylesProp.row) === null || _bodyStylesProp$row === void 0 ? void 0 : _bodyStylesProp$row.call(bodyStylesProp, {
|
|
@@ -2142,8 +2157,6 @@ var $5975f126da112a16$var$BodyRow = function BodyRow(props) {
|
|
|
2142
2157
|
]);
|
|
2143
2158
|
var keyId = row[selectableRowKey];
|
|
2144
2159
|
var isOdd = ((_row$parentRowIndex = row.parentRowIndex) !== null && _row$parentRowIndex !== void 0 ? _row$parentRowIndex : rowIndex) % 2;
|
|
2145
|
-
var checkIfSocietyIsOpen = !openSocietiesIds.includes(row === null || row === void 0 ? void 0 : row.company_id);
|
|
2146
|
-
var isSecuredRow = hasSecureSociety && (row === null || row === void 0 ? void 0 : row.secured) && checkIfSocietyIsOpen;
|
|
2147
2160
|
var errors = (0, $5975f126da112a16$var$_react.useMemo)(function() {
|
|
2148
2161
|
var _apiRef$current, _apiRef$current$valid, _apiRef$current$valid2;
|
|
2149
2162
|
return (_apiRef$current = apiRef.current) === null || _apiRef$current === void 0 ? void 0 : (_apiRef$current$valid = _apiRef$current.validation) === null || _apiRef$current$valid === void 0 ? void 0 : (_apiRef$current$valid2 = _apiRef$current$valid.validate) === null || _apiRef$current$valid2 === void 0 ? void 0 : _apiRef$current$valid2.call(_apiRef$current$valid, row);
|
|
@@ -3512,6 +3525,11 @@ var $bd36d7d906d5b05f$var$removeRow = function removeRow(ctx, _ref2) {
|
|
|
3512
3525
|
})
|
|
3513
3526
|
});
|
|
3514
3527
|
};
|
|
3528
|
+
var $bd36d7d906d5b05f$var$removeNewRows = function removeNewRows(ctx) {
|
|
3529
|
+
return $bd36d7d906d5b05f$var$_objectSpread($bd36d7d906d5b05f$var$_objectSpread({}, ctx), {}, {
|
|
3530
|
+
addRows: []
|
|
3531
|
+
});
|
|
3532
|
+
};
|
|
3515
3533
|
var $bd36d7d906d5b05f$var$edit = function edit(ctx, _ref3) {
|
|
3516
3534
|
var data = _ref3.data, key = _ref3.key, keyId = _ref3.keyId, selectableRowKey = _ref3.selectableRowKey;
|
|
3517
3535
|
var addRows = ctx.addRows, dataRows = ctx.dataRows;
|
|
@@ -3631,7 +3649,7 @@ var $bd36d7d906d5b05f$var$_default = (0, $gXNCa$robot3.createMachine)({
|
|
|
3631
3649
|
return $bd36d7d906d5b05f$var$_objectSpread($bd36d7d906d5b05f$var$_objectSpread({}, ctx), {}, {
|
|
3632
3650
|
addRows: []
|
|
3633
3651
|
});
|
|
3634
|
-
})), (0, $gXNCa$robot3.transition)("delete", "ADD", (0, $gXNCa$robot3.reduce)($bd36d7d906d5b05f$var$removeRow)), (0, $gXNCa$robot3.transition)("input", "ADD", (0, $gXNCa$robot3.reduce)(function(ctx, ev) {
|
|
3652
|
+
})), (0, $gXNCa$robot3.transition)("delete", "ADD", (0, $gXNCa$robot3.reduce)($bd36d7d906d5b05f$var$removeRow)), (0, $gXNCa$robot3.transition)("deleteNewRows", "ADD", (0, $gXNCa$robot3.reduce)($bd36d7d906d5b05f$var$removeNewRows)), (0, $gXNCa$robot3.transition)("input", "ADD", (0, $gXNCa$robot3.reduce)(function(ctx, ev) {
|
|
3635
3653
|
var _objectSpread4;
|
|
3636
3654
|
var addRows = ctx.addRows;
|
|
3637
3655
|
var tab = (0, $bd36d7d906d5b05f$var$_toConsumableArray2["default"])(addRows);
|
|
@@ -3687,7 +3705,7 @@ var $bd36d7d906d5b05f$var$_default = (0, $gXNCa$robot3.createMachine)({
|
|
|
3687
3705
|
dataRows: ev.data
|
|
3688
3706
|
});
|
|
3689
3707
|
})), (0, $gXNCa$robot3.transition)("selectAllColumn", "PERMANENT_EDIT", (0, $gXNCa$robot3.reduce)($bd36d7d906d5b05f$var$selectAllColumn)), (0, $gXNCa$robot3.transition)("unselectAllColumn", "PERMANENT_EDIT", (0, $gXNCa$robot3.reduce)($bd36d7d906d5b05f$var$unselectAllColumn))),
|
|
3690
|
-
PERMANENT_EDIT: (0, $gXNCa$robot3.state)((0, $gXNCa$robot3.transition)("add", "PERMANENT_EDIT", (0, $gXNCa$robot3.reduce)($bd36d7d906d5b05f$var$addRow)), (0, $gXNCa$robot3.transition)("selectItem", "PERMANENT_EDIT", (0, $gXNCa$robot3.reduce)($bd36d7d906d5b05f$var$handleSelect)), (0, $gXNCa$robot3.transition)("unselectItem", "PERMANENT_EDIT", (0, $gXNCa$robot3.reduce)($bd36d7d906d5b05f$var$handleUnselect)), (0, $gXNCa$robot3.transition)("delete", "PERMANENT_EDIT", (0, $gXNCa$robot3.reduce)($bd36d7d906d5b05f$var$removeRow)), (0, $gXNCa$robot3.transition)("selectRows", "PERMANENT_EDIT", (0, $gXNCa$robot3.reduce)(function(ctx, _ref6) {
|
|
3708
|
+
PERMANENT_EDIT: (0, $gXNCa$robot3.state)((0, $gXNCa$robot3.transition)("add", "PERMANENT_EDIT", (0, $gXNCa$robot3.reduce)($bd36d7d906d5b05f$var$addRow)), (0, $gXNCa$robot3.transition)("selectItem", "PERMANENT_EDIT", (0, $gXNCa$robot3.reduce)($bd36d7d906d5b05f$var$handleSelect)), (0, $gXNCa$robot3.transition)("unselectItem", "PERMANENT_EDIT", (0, $gXNCa$robot3.reduce)($bd36d7d906d5b05f$var$handleUnselect)), (0, $gXNCa$robot3.transition)("delete", "PERMANENT_EDIT", (0, $gXNCa$robot3.reduce)($bd36d7d906d5b05f$var$removeRow)), (0, $gXNCa$robot3.transition)("deleteNewRows", "PERMANENT_EDIT", (0, $gXNCa$robot3.reduce)($bd36d7d906d5b05f$var$removeNewRows)), (0, $gXNCa$robot3.transition)("selectRows", "PERMANENT_EDIT", (0, $gXNCa$robot3.reduce)(function(ctx, _ref6) {
|
|
3691
3709
|
var selectedRows = _ref6.selectedRows;
|
|
3692
3710
|
return $bd36d7d906d5b05f$var$_objectSpread($bd36d7d906d5b05f$var$_objectSpread({}, ctx), {}, {
|
|
3693
3711
|
selectedRows: selectedRows
|
|
@@ -3741,6 +3759,8 @@ var $d42717d78cc65048$var$_toConsumableArray2 = $gXNCa$babelruntimehelpersintero
|
|
|
3741
3759
|
var $d42717d78cc65048$var$_get2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$lodashget);
|
|
3742
3760
|
|
|
3743
3761
|
var $e902G = parcelRequire("e902G");
|
|
3762
|
+
|
|
3763
|
+
var $4vYVW = parcelRequire("4vYVW");
|
|
3744
3764
|
function $d42717d78cc65048$var$_createForOfIteratorHelper(o, allowArrayLike) {
|
|
3745
3765
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
3746
3766
|
if (!it) {
|
|
@@ -3806,14 +3826,6 @@ function $d42717d78cc65048$var$_arrayLikeToArray(arr, len) {
|
|
|
3806
3826
|
var $d42717d78cc65048$var$isContentRow = function isContentRow(row) {
|
|
3807
3827
|
return row.rowType !== $e902G.ROW_TYPE.GROUP_BUTTON && row.rowType !== $e902G.ROW_TYPE.ADD_BUTTON;
|
|
3808
3828
|
};
|
|
3809
|
-
var $d42717d78cc65048$var$isLockedRow = function isLockedRow(_ref) {
|
|
3810
|
-
var row = _ref.row, hasSecureSociety = _ref.hasSecureSociety, openSocieties = _ref.openSocieties, selectableRowKey = _ref.selectableRowKey;
|
|
3811
|
-
if (!hasSecureSociety || !(row !== null && row !== void 0 && row.secured)) return false;
|
|
3812
|
-
var checkIfSocietyIsOpen = openSocieties.find(function(society) {
|
|
3813
|
-
return (society === null || society === void 0 ? void 0 : society.id) === (0, $d42717d78cc65048$var$_get2["default"])(row, selectableRowKey);
|
|
3814
|
-
});
|
|
3815
|
-
return !checkIfSocietyIsOpen;
|
|
3816
|
-
};
|
|
3817
3829
|
function $d42717d78cc65048$var$createSelection() {
|
|
3818
3830
|
var rows = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
3819
3831
|
return (0, $d42717d78cc65048$var$_toConsumableArray2["default"])(rows);
|
|
@@ -3850,26 +3862,19 @@ function $d42717d78cc65048$var$getSelectedVisibleRows() {
|
|
|
3850
3862
|
});
|
|
3851
3863
|
return res;
|
|
3852
3864
|
}
|
|
3853
|
-
function $d42717d78cc65048$var$getSelectableRows(
|
|
3854
|
-
var
|
|
3865
|
+
function $d42717d78cc65048$var$getSelectableRows(_ref) {
|
|
3866
|
+
var _ref$displayableRows = _ref.displayableRows, displayableRows = _ref$displayableRows === void 0 ? [] : _ref$displayableRows, _ref$selectableRowKey = _ref.selectableRowKey, selectableRowKey = _ref$selectableRowKey === void 0 ? "id" : _ref$selectableRowKey, hasSecuredRows = _ref.hasSecuredRows, _ref$unlockedRowsIds = _ref.unlockedRowsIds, unlockedRowsIds = _ref$unlockedRowsIds === void 0 ? [] : _ref$unlockedRowsIds;
|
|
3855
3867
|
var list = [];
|
|
3856
3868
|
var _iterator = $d42717d78cc65048$var$_createForOfIteratorHelper(displayableRows), _step;
|
|
3857
3869
|
try {
|
|
3858
3870
|
for(_iterator.s(); !(_step = _iterator.n()).done;){
|
|
3859
3871
|
var row = _step.value;
|
|
3860
|
-
if ($d42717d78cc65048$var$isContentRow(row) &&
|
|
3872
|
+
if ($d42717d78cc65048$var$isContentRow(row) && !(0, $4vYVW.isLockedRow)({
|
|
3861
3873
|
row: row,
|
|
3862
3874
|
selectableRowKey: selectableRowKey,
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
}))
|
|
3866
|
-
if ($d42717d78cc65048$var$isContentRow(row) && !$d42717d78cc65048$var$isLockedRow({
|
|
3867
|
-
row: row,
|
|
3868
|
-
selectableRowKey: selectableRowKey,
|
|
3869
|
-
hasSecureSociety: hasSecureSociety,
|
|
3870
|
-
openSocieties: openSocieties
|
|
3871
|
-
})) list.push(row[selectableRowKey]);
|
|
3872
|
-
}
|
|
3875
|
+
hasSecuredRows: hasSecuredRows,
|
|
3876
|
+
unlockedRowsIds: unlockedRowsIds
|
|
3877
|
+
})) list.push(row[selectableRowKey]);
|
|
3873
3878
|
}
|
|
3874
3879
|
} catch (err) {
|
|
3875
3880
|
_iterator.e(err);
|
|
@@ -3880,6 +3885,46 @@ function $d42717d78cc65048$var$getSelectableRows(_ref2) {
|
|
|
3880
3885
|
}
|
|
3881
3886
|
|
|
3882
3887
|
});
|
|
3888
|
+
parcelRequire.register("4vYVW", function(module, exports) {
|
|
3889
|
+
"use strict";
|
|
3890
|
+
|
|
3891
|
+
Object.defineProperty(module.exports, "__esModule", {
|
|
3892
|
+
value: true
|
|
3893
|
+
});
|
|
3894
|
+
module.exports.isSecuredRow = module.exports.isLockedRow = module.exports.getUnlockedRowsIds = void 0;
|
|
3895
|
+
|
|
3896
|
+
var $349952d26a15aefe$var$_get2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$lodashget);
|
|
3897
|
+
var $349952d26a15aefe$var$isSecuredRow = function isSecuredRow(_ref) {
|
|
3898
|
+
var hasSecuredRows = _ref.hasSecuredRows, row = _ref.row;
|
|
3899
|
+
return Boolean(hasSecuredRows && (row === null || row === void 0 ? void 0 : row.secured));
|
|
3900
|
+
};
|
|
3901
|
+
module.exports.isSecuredRow = $349952d26a15aefe$var$isSecuredRow;
|
|
3902
|
+
var $349952d26a15aefe$var$isLockedRow = function isLockedRow(_ref2) {
|
|
3903
|
+
var unlockedRowsIds = _ref2.unlockedRowsIds, row = _ref2.row, _ref2$selectableRowKe = _ref2.selectableRowKey, selectableRowKey = _ref2$selectableRowKe === void 0 ? "id" : _ref2$selectableRowKe, hasSecuredRows = _ref2.hasSecuredRows;
|
|
3904
|
+
if (!$349952d26a15aefe$var$isSecuredRow({
|
|
3905
|
+
hasSecuredRows: hasSecuredRows,
|
|
3906
|
+
row: row
|
|
3907
|
+
})) return false;
|
|
3908
|
+
return !unlockedRowsIds.includes((0, $349952d26a15aefe$var$_get2["default"])(row, selectableRowKey));
|
|
3909
|
+
};
|
|
3910
|
+
/**
|
|
3911
|
+
*
|
|
3912
|
+
* @param {Array<Row|number>} unlockedRows
|
|
3913
|
+
* @param {string} selectableRowKey
|
|
3914
|
+
* @returns
|
|
3915
|
+
*/ module.exports.isLockedRow = $349952d26a15aefe$var$isLockedRow;
|
|
3916
|
+
var $349952d26a15aefe$var$getUnlockedRowsIds = function getUnlockedRowsIds() {
|
|
3917
|
+
var unlockedRows = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
3918
|
+
var selectableRowKey = arguments.length > 1 ? arguments[1] : undefined;
|
|
3919
|
+
return unlockedRows.map(function(row) {
|
|
3920
|
+
if (typeof row === "number") return row;
|
|
3921
|
+
return (row === null || row === void 0 ? void 0 : row.id) || (0, $349952d26a15aefe$var$_get2["default"])(row, selectableRowKey);
|
|
3922
|
+
});
|
|
3923
|
+
};
|
|
3924
|
+
module.exports.getUnlockedRowsIds = $349952d26a15aefe$var$getUnlockedRowsIds;
|
|
3925
|
+
|
|
3926
|
+
});
|
|
3927
|
+
|
|
3883
3928
|
|
|
3884
3929
|
|
|
3885
3930
|
|
|
@@ -6138,14 +6183,17 @@ function $b65a981b085d4ff1$var$_interopRequireWildcard(obj, nodeInterop) {
|
|
|
6138
6183
|
var $b65a981b085d4ff1$var$Image = function Image(props) {
|
|
6139
6184
|
var _classNames;
|
|
6140
6185
|
var className = props.className, src = props.src, alt = props.alt, hidden = props.hidden, onClick = props.onClick, onUnload = props.onUnload;
|
|
6141
|
-
var styles = (0, $b65a981b085d4ff1$var$_styles["default"])();
|
|
6186
|
+
var styles = (0, $b65a981b085d4ff1$var$_styles["default"])();
|
|
6187
|
+
// State
|
|
6142
6188
|
var _useState = (0, $b65a981b085d4ff1$var$_react.useState)(true), _useState2 = (0, $b65a981b085d4ff1$var$_slicedToArray2["default"])(_useState, 2), loading = _useState2[0], setLoading = _useState2[1];
|
|
6143
|
-
var _useState3 = (0, $b65a981b085d4ff1$var$_react.useState)(false), _useState4 = (0, $b65a981b085d4ff1$var$_slicedToArray2["default"])(_useState3, 2), error = _useState4[0], setError = _useState4[1];
|
|
6189
|
+
var _useState3 = (0, $b65a981b085d4ff1$var$_react.useState)(false), _useState4 = (0, $b65a981b085d4ff1$var$_slicedToArray2["default"])(_useState3, 2), error = _useState4[0], setError = _useState4[1];
|
|
6190
|
+
// Handlers
|
|
6144
6191
|
var handleKeyPress = function handleKeyPress(event) {
|
|
6145
6192
|
if (event.key === "Enter") {
|
|
6146
6193
|
if (onClick) onClick();
|
|
6147
6194
|
}
|
|
6148
|
-
};
|
|
6195
|
+
};
|
|
6196
|
+
// Rendering
|
|
6149
6197
|
return /*#__PURE__*/ $b65a981b085d4ff1$var$_react["default"].createElement("div", {
|
|
6150
6198
|
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)),
|
|
6151
6199
|
role: "button",
|
|
@@ -6176,7 +6224,8 @@ var $b65a981b085d4ff1$var$Image = function Image(props) {
|
|
|
6176
6224
|
}), /*#__PURE__*/ $b65a981b085d4ff1$var$_react["default"].createElement("span", {
|
|
6177
6225
|
className: "label"
|
|
6178
6226
|
}, $b65a981b085d4ff1$var$_I18n["default"].t("attachments.error"))));
|
|
6179
|
-
};
|
|
6227
|
+
};
|
|
6228
|
+
// Props
|
|
6180
6229
|
$b65a981b085d4ff1$var$Image.propTypes = {
|
|
6181
6230
|
className: $b65a981b085d4ff1$var$_propTypes["default"].string,
|
|
6182
6231
|
src: $b65a981b085d4ff1$var$_propTypes["default"].string.isRequired,
|
|
@@ -6364,16 +6413,20 @@ var $c28dcb2ecc31f940$var$downloadFile = function downloadFile(data, filename) {
|
|
|
6364
6413
|
data
|
|
6365
6414
|
], {
|
|
6366
6415
|
type: type
|
|
6367
|
-
});
|
|
6416
|
+
});
|
|
6417
|
+
// Create a link element, hide it, direct
|
|
6368
6418
|
// it towards the blob, and then 'click' it programatically
|
|
6369
6419
|
var a = document.createElement("a");
|
|
6370
6420
|
a.style = "display: none";
|
|
6371
|
-
document.body.appendChild(a);
|
|
6421
|
+
document.body.appendChild(a);
|
|
6422
|
+
// Create a DOMString representing the blob
|
|
6372
6423
|
// and point the link element towards it
|
|
6373
6424
|
var url = window.URL.createObjectURL(blob);
|
|
6374
6425
|
a.href = url;
|
|
6375
|
-
a.download = filename;
|
|
6376
|
-
|
|
6426
|
+
a.download = filename;
|
|
6427
|
+
// programatically click the link to trigger the download
|
|
6428
|
+
a.click();
|
|
6429
|
+
// release the reference to the file by revoking the Object URL
|
|
6377
6430
|
setTimeout(function() {
|
|
6378
6431
|
// For Firefox it is necessary to delay revoking the ObjectURL
|
|
6379
6432
|
window.URL.revokeObjectURL(url);
|
|
@@ -6449,12 +6502,13 @@ module.exports.exportData = $c28dcb2ecc31f940$var$exportData;
|
|
|
6449
6502
|
parcelRequire.register("jlN5T", function(module, exports) {
|
|
6450
6503
|
"use strict";
|
|
6451
6504
|
|
|
6452
|
-
|
|
6453
6505
|
Object.defineProperty(module.exports, "__esModule", {
|
|
6454
6506
|
value: true
|
|
6455
6507
|
});
|
|
6456
6508
|
module.exports.parseFooter = module.exports.parseDataRows = module.exports.formatDefaultData = module.exports.formatDataToExport = module.exports.exportToExcel = module.exports.exportToCSV = void 0;
|
|
6457
6509
|
|
|
6510
|
+
var $e1660f894c3a788a$var$_regenerator = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimeregenerator);
|
|
6511
|
+
|
|
6458
6512
|
var $e1660f894c3a788a$var$_asyncToGenerator2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersasyncToGenerator);
|
|
6459
6513
|
|
|
6460
6514
|
var $e1660f894c3a788a$var$_defineProperty2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersdefineProperty);
|
|
@@ -6494,294 +6548,6 @@ var $10oRz = parcelRequire("10oRz");
|
|
|
6494
6548
|
var $e902G = parcelRequire("e902G");
|
|
6495
6549
|
|
|
6496
6550
|
var $eHwgP = parcelRequire("eHwgP");
|
|
6497
|
-
function $e1660f894c3a788a$var$_regeneratorRuntime() {
|
|
6498
|
-
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
6499
|
-
$e1660f894c3a788a$var$_regeneratorRuntime = function _regeneratorRuntime() {
|
|
6500
|
-
return exports1;
|
|
6501
|
-
};
|
|
6502
|
-
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";
|
|
6503
|
-
function define(obj, key, value) {
|
|
6504
|
-
return Object.defineProperty(obj, key, {
|
|
6505
|
-
value: value,
|
|
6506
|
-
enumerable: !0,
|
|
6507
|
-
configurable: !0,
|
|
6508
|
-
writable: !0
|
|
6509
|
-
}), obj[key];
|
|
6510
|
-
}
|
|
6511
|
-
try {
|
|
6512
|
-
define({}, "");
|
|
6513
|
-
} catch (err) {
|
|
6514
|
-
define = function define(obj, key, value) {
|
|
6515
|
-
return obj[key] = value;
|
|
6516
|
-
};
|
|
6517
|
-
}
|
|
6518
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
6519
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []);
|
|
6520
|
-
return generator._invoke = function(innerFn, self, context) {
|
|
6521
|
-
var state = "suspendedStart";
|
|
6522
|
-
return function(method, arg) {
|
|
6523
|
-
if ("executing" === state) throw new Error("Generator is already running");
|
|
6524
|
-
if ("completed" === state) {
|
|
6525
|
-
if ("throw" === method) throw arg;
|
|
6526
|
-
return doneResult();
|
|
6527
|
-
}
|
|
6528
|
-
for(context.method = method, context.arg = arg;;){
|
|
6529
|
-
var delegate = context.delegate;
|
|
6530
|
-
if (delegate) {
|
|
6531
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
6532
|
-
if (delegateResult) {
|
|
6533
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
6534
|
-
return delegateResult;
|
|
6535
|
-
}
|
|
6536
|
-
}
|
|
6537
|
-
if ("next" === context.method) context.sent = context._sent = context.arg;
|
|
6538
|
-
else if ("throw" === context.method) {
|
|
6539
|
-
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
6540
|
-
context.dispatchException(context.arg);
|
|
6541
|
-
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
6542
|
-
state = "executing";
|
|
6543
|
-
var record = tryCatch(innerFn, self, context);
|
|
6544
|
-
if ("normal" === record.type) {
|
|
6545
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
6546
|
-
return {
|
|
6547
|
-
value: record.arg,
|
|
6548
|
-
done: context.done
|
|
6549
|
-
};
|
|
6550
|
-
}
|
|
6551
|
-
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
6552
|
-
}
|
|
6553
|
-
};
|
|
6554
|
-
}(innerFn, self, context), generator;
|
|
6555
|
-
}
|
|
6556
|
-
function tryCatch(fn, obj, arg) {
|
|
6557
|
-
try {
|
|
6558
|
-
return {
|
|
6559
|
-
type: "normal",
|
|
6560
|
-
arg: fn.call(obj, arg)
|
|
6561
|
-
};
|
|
6562
|
-
} catch (err) {
|
|
6563
|
-
return {
|
|
6564
|
-
type: "throw",
|
|
6565
|
-
arg: err
|
|
6566
|
-
};
|
|
6567
|
-
}
|
|
6568
|
-
}
|
|
6569
|
-
exports1.wrap = wrap;
|
|
6570
|
-
var ContinueSentinel = {};
|
|
6571
|
-
function Generator() {}
|
|
6572
|
-
function GeneratorFunction() {}
|
|
6573
|
-
function GeneratorFunctionPrototype() {}
|
|
6574
|
-
var IteratorPrototype = {};
|
|
6575
|
-
define(IteratorPrototype, iteratorSymbol, function() {
|
|
6576
|
-
return this;
|
|
6577
|
-
});
|
|
6578
|
-
var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
6579
|
-
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
6580
|
-
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
6581
|
-
function defineIteratorMethods(prototype) {
|
|
6582
|
-
[
|
|
6583
|
-
"next",
|
|
6584
|
-
"throw",
|
|
6585
|
-
"return"
|
|
6586
|
-
].forEach(function(method) {
|
|
6587
|
-
define(prototype, method, function(arg) {
|
|
6588
|
-
return this._invoke(method, arg);
|
|
6589
|
-
});
|
|
6590
|
-
});
|
|
6591
|
-
}
|
|
6592
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
6593
|
-
function invoke(method, arg, resolve, reject) {
|
|
6594
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
6595
|
-
if ("throw" !== record.type) {
|
|
6596
|
-
var result = record.arg, value = result.value;
|
|
6597
|
-
return value && "object" == $gXNCa$babelruntimehelperstypeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function(value) {
|
|
6598
|
-
invoke("next", value, resolve, reject);
|
|
6599
|
-
}, function(err) {
|
|
6600
|
-
invoke("throw", err, resolve, reject);
|
|
6601
|
-
}) : PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
6602
|
-
result.value = unwrapped, resolve(result);
|
|
6603
|
-
}, function(error) {
|
|
6604
|
-
return invoke("throw", error, resolve, reject);
|
|
6605
|
-
});
|
|
6606
|
-
}
|
|
6607
|
-
reject(record.arg);
|
|
6608
|
-
}
|
|
6609
|
-
var previousPromise;
|
|
6610
|
-
this._invoke = function(method, arg) {
|
|
6611
|
-
function callInvokeWithMethodAndArg() {
|
|
6612
|
-
return new PromiseImpl(function(resolve, reject) {
|
|
6613
|
-
invoke(method, arg, resolve, reject);
|
|
6614
|
-
});
|
|
6615
|
-
}
|
|
6616
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
6617
|
-
};
|
|
6618
|
-
}
|
|
6619
|
-
function maybeInvokeDelegate(delegate, context) {
|
|
6620
|
-
var method = delegate.iterator[context.method];
|
|
6621
|
-
if (undefined === method) {
|
|
6622
|
-
if (context.delegate = null, "throw" === context.method) {
|
|
6623
|
-
if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
6624
|
-
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
6625
|
-
}
|
|
6626
|
-
return ContinueSentinel;
|
|
6627
|
-
}
|
|
6628
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
6629
|
-
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
6630
|
-
var info = record.arg;
|
|
6631
|
-
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);
|
|
6632
|
-
}
|
|
6633
|
-
function pushTryEntry(locs) {
|
|
6634
|
-
var entry = {
|
|
6635
|
-
tryLoc: locs[0]
|
|
6636
|
-
};
|
|
6637
|
-
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
6638
|
-
}
|
|
6639
|
-
function resetTryEntry(entry) {
|
|
6640
|
-
var record = entry.completion || {};
|
|
6641
|
-
record.type = "normal", delete record.arg, entry.completion = record;
|
|
6642
|
-
}
|
|
6643
|
-
function Context(tryLocsList) {
|
|
6644
|
-
this.tryEntries = [
|
|
6645
|
-
{
|
|
6646
|
-
tryLoc: "root"
|
|
6647
|
-
}
|
|
6648
|
-
], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
6649
|
-
}
|
|
6650
|
-
function values(iterable) {
|
|
6651
|
-
if (iterable) {
|
|
6652
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
6653
|
-
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
6654
|
-
if ("function" == typeof iterable.next) return iterable;
|
|
6655
|
-
if (!isNaN(iterable.length)) {
|
|
6656
|
-
var i = -1, next = function next() {
|
|
6657
|
-
for(; ++i < iterable.length;){
|
|
6658
|
-
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
6659
|
-
}
|
|
6660
|
-
return next.value = undefined, next.done = !0, next;
|
|
6661
|
-
};
|
|
6662
|
-
return next.next = next;
|
|
6663
|
-
}
|
|
6664
|
-
}
|
|
6665
|
-
return {
|
|
6666
|
-
next: doneResult
|
|
6667
|
-
};
|
|
6668
|
-
}
|
|
6669
|
-
function doneResult() {
|
|
6670
|
-
return {
|
|
6671
|
-
value: undefined,
|
|
6672
|
-
done: !0
|
|
6673
|
-
};
|
|
6674
|
-
}
|
|
6675
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports1.isGeneratorFunction = function(genFun) {
|
|
6676
|
-
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
6677
|
-
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
6678
|
-
}, exports1.mark = function(genFun) {
|
|
6679
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
6680
|
-
}, exports1.awrap = function(arg) {
|
|
6681
|
-
return {
|
|
6682
|
-
__await: arg
|
|
6683
|
-
};
|
|
6684
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function() {
|
|
6685
|
-
return this;
|
|
6686
|
-
}), exports1.AsyncIterator = AsyncIterator, exports1.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
6687
|
-
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
6688
|
-
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
6689
|
-
return exports1.isGeneratorFunction(outerFn) ? iter : iter.next().then(function(result) {
|
|
6690
|
-
return result.done ? result.value : iter.next();
|
|
6691
|
-
});
|
|
6692
|
-
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function() {
|
|
6693
|
-
return this;
|
|
6694
|
-
}), define(Gp, "toString", function() {
|
|
6695
|
-
return "[object Generator]";
|
|
6696
|
-
}), exports1.keys = function(object) {
|
|
6697
|
-
var keys = [];
|
|
6698
|
-
for(var key in object)keys.push(key);
|
|
6699
|
-
return keys.reverse(), function next() {
|
|
6700
|
-
for(; keys.length;){
|
|
6701
|
-
var key = keys.pop();
|
|
6702
|
-
if (key in object) return next.value = key, next.done = !1, next;
|
|
6703
|
-
}
|
|
6704
|
-
return next.done = !0, next;
|
|
6705
|
-
};
|
|
6706
|
-
}, exports1.values = values, Context.prototype = {
|
|
6707
|
-
constructor: Context,
|
|
6708
|
-
reset: function reset(skipTempReset) {
|
|
6709
|
-
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);
|
|
6710
|
-
},
|
|
6711
|
-
stop: function stop() {
|
|
6712
|
-
this.done = !0;
|
|
6713
|
-
var rootRecord = this.tryEntries[0].completion;
|
|
6714
|
-
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
6715
|
-
return this.rval;
|
|
6716
|
-
},
|
|
6717
|
-
dispatchException: function dispatchException(exception) {
|
|
6718
|
-
if (this.done) throw exception;
|
|
6719
|
-
var context = this;
|
|
6720
|
-
function handle(loc, caught) {
|
|
6721
|
-
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
6722
|
-
}
|
|
6723
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
6724
|
-
var entry = this.tryEntries[i], record = entry.completion;
|
|
6725
|
-
if ("root" === entry.tryLoc) return handle("end");
|
|
6726
|
-
if (entry.tryLoc <= this.prev) {
|
|
6727
|
-
var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
6728
|
-
if (hasCatch && hasFinally) {
|
|
6729
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
6730
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
6731
|
-
} else if (hasCatch) {
|
|
6732
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
6733
|
-
} else {
|
|
6734
|
-
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
6735
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
6736
|
-
}
|
|
6737
|
-
}
|
|
6738
|
-
}
|
|
6739
|
-
},
|
|
6740
|
-
abrupt: function abrupt(type, arg) {
|
|
6741
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
6742
|
-
var entry = this.tryEntries[i];
|
|
6743
|
-
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
6744
|
-
var finallyEntry = entry;
|
|
6745
|
-
break;
|
|
6746
|
-
}
|
|
6747
|
-
}
|
|
6748
|
-
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
6749
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
6750
|
-
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
6751
|
-
},
|
|
6752
|
-
complete: function complete(record, afterLoc) {
|
|
6753
|
-
if ("throw" === record.type) throw record.arg;
|
|
6754
|
-
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;
|
|
6755
|
-
},
|
|
6756
|
-
finish: function finish(finallyLoc) {
|
|
6757
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
6758
|
-
var entry = this.tryEntries[i];
|
|
6759
|
-
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
6760
|
-
}
|
|
6761
|
-
},
|
|
6762
|
-
"catch": function _catch(tryLoc) {
|
|
6763
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
6764
|
-
var entry = this.tryEntries[i];
|
|
6765
|
-
if (entry.tryLoc === tryLoc) {
|
|
6766
|
-
var record = entry.completion;
|
|
6767
|
-
if ("throw" === record.type) {
|
|
6768
|
-
var thrown = record.arg;
|
|
6769
|
-
resetTryEntry(entry);
|
|
6770
|
-
}
|
|
6771
|
-
return thrown;
|
|
6772
|
-
}
|
|
6773
|
-
}
|
|
6774
|
-
throw new Error("illegal catch attempt");
|
|
6775
|
-
},
|
|
6776
|
-
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
6777
|
-
return this.delegate = {
|
|
6778
|
-
iterator: values(iterable),
|
|
6779
|
-
resultName: resultName,
|
|
6780
|
-
nextLoc: nextLoc
|
|
6781
|
-
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
6782
|
-
}
|
|
6783
|
-
}, exports1;
|
|
6784
|
-
}
|
|
6785
6551
|
function $e1660f894c3a788a$var$ownKeys(object, enumerableOnly) {
|
|
6786
6552
|
var keys = Object.keys(object);
|
|
6787
6553
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -7061,9 +6827,9 @@ var $e1660f894c3a788a$var$exportToCSV = function exportToCSV(csvData, fileName)
|
|
|
7061
6827
|
};
|
|
7062
6828
|
module.exports.exportToCSV = $e1660f894c3a788a$var$exportToCSV;
|
|
7063
6829
|
var $e1660f894c3a788a$var$exportToExcel = /*#__PURE__*/ function() {
|
|
7064
|
-
var _ref6 = (0, $e1660f894c3a788a$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $e1660f894c3a788a$var$
|
|
6830
|
+
var _ref6 = (0, $e1660f894c3a788a$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $e1660f894c3a788a$var$_regenerator["default"].mark(function _callee(_ref5, fileName) {
|
|
7065
6831
|
var header, body, footer, ExcelJSWorkbook, worksheet, xlsxData, data;
|
|
7066
|
-
return $e1660f894c3a788a$var$
|
|
6832
|
+
return $e1660f894c3a788a$var$_regenerator["default"].wrap(function _callee$(_context) {
|
|
7067
6833
|
while(true)switch(_context.prev = _context.next){
|
|
7068
6834
|
case 0:
|
|
7069
6835
|
header = _ref5.header, body = _ref5.body, footer = _ref5.footer;
|
|
@@ -7168,12 +6934,13 @@ module.exports.getFooterValue = $0bb913d1efc0c879$var$getFooterValue;
|
|
|
7168
6934
|
parcelRequire.register("hiJne", function(module, exports) {
|
|
7169
6935
|
"use strict";
|
|
7170
6936
|
|
|
7171
|
-
|
|
7172
6937
|
Object.defineProperty(module.exports, "__esModule", {
|
|
7173
6938
|
value: true
|
|
7174
6939
|
});
|
|
7175
6940
|
module.exports.exportPDF = void 0;
|
|
7176
6941
|
|
|
6942
|
+
var $c987505f49f7b1a6$var$_regenerator = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimeregenerator);
|
|
6943
|
+
|
|
7177
6944
|
var $c987505f49f7b1a6$var$_asyncToGenerator2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersasyncToGenerator);
|
|
7178
6945
|
|
|
7179
6946
|
var $c987505f49f7b1a6$var$_defineProperty2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersdefineProperty);
|
|
@@ -7184,294 +6951,6 @@ var $c987505f49f7b1a6$var$_jspdf = $gXNCa$babelruntimehelpersinteropRequireDefau
|
|
|
7184
6951
|
var $51yp9 = parcelRequire("51yp9");
|
|
7185
6952
|
|
|
7186
6953
|
var $e902G = parcelRequire("e902G");
|
|
7187
|
-
function $c987505f49f7b1a6$var$_regeneratorRuntime() {
|
|
7188
|
-
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
7189
|
-
$c987505f49f7b1a6$var$_regeneratorRuntime = function _regeneratorRuntime() {
|
|
7190
|
-
return exports1;
|
|
7191
|
-
};
|
|
7192
|
-
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";
|
|
7193
|
-
function define(obj, key, value) {
|
|
7194
|
-
return Object.defineProperty(obj, key, {
|
|
7195
|
-
value: value,
|
|
7196
|
-
enumerable: !0,
|
|
7197
|
-
configurable: !0,
|
|
7198
|
-
writable: !0
|
|
7199
|
-
}), obj[key];
|
|
7200
|
-
}
|
|
7201
|
-
try {
|
|
7202
|
-
define({}, "");
|
|
7203
|
-
} catch (err) {
|
|
7204
|
-
define = function define(obj, key, value) {
|
|
7205
|
-
return obj[key] = value;
|
|
7206
|
-
};
|
|
7207
|
-
}
|
|
7208
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
7209
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []);
|
|
7210
|
-
return generator._invoke = function(innerFn, self, context) {
|
|
7211
|
-
var state = "suspendedStart";
|
|
7212
|
-
return function(method, arg) {
|
|
7213
|
-
if ("executing" === state) throw new Error("Generator is already running");
|
|
7214
|
-
if ("completed" === state) {
|
|
7215
|
-
if ("throw" === method) throw arg;
|
|
7216
|
-
return doneResult();
|
|
7217
|
-
}
|
|
7218
|
-
for(context.method = method, context.arg = arg;;){
|
|
7219
|
-
var delegate = context.delegate;
|
|
7220
|
-
if (delegate) {
|
|
7221
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
7222
|
-
if (delegateResult) {
|
|
7223
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
7224
|
-
return delegateResult;
|
|
7225
|
-
}
|
|
7226
|
-
}
|
|
7227
|
-
if ("next" === context.method) context.sent = context._sent = context.arg;
|
|
7228
|
-
else if ("throw" === context.method) {
|
|
7229
|
-
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
7230
|
-
context.dispatchException(context.arg);
|
|
7231
|
-
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
7232
|
-
state = "executing";
|
|
7233
|
-
var record = tryCatch(innerFn, self, context);
|
|
7234
|
-
if ("normal" === record.type) {
|
|
7235
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
7236
|
-
return {
|
|
7237
|
-
value: record.arg,
|
|
7238
|
-
done: context.done
|
|
7239
|
-
};
|
|
7240
|
-
}
|
|
7241
|
-
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
7242
|
-
}
|
|
7243
|
-
};
|
|
7244
|
-
}(innerFn, self, context), generator;
|
|
7245
|
-
}
|
|
7246
|
-
function tryCatch(fn, obj, arg) {
|
|
7247
|
-
try {
|
|
7248
|
-
return {
|
|
7249
|
-
type: "normal",
|
|
7250
|
-
arg: fn.call(obj, arg)
|
|
7251
|
-
};
|
|
7252
|
-
} catch (err) {
|
|
7253
|
-
return {
|
|
7254
|
-
type: "throw",
|
|
7255
|
-
arg: err
|
|
7256
|
-
};
|
|
7257
|
-
}
|
|
7258
|
-
}
|
|
7259
|
-
exports1.wrap = wrap;
|
|
7260
|
-
var ContinueSentinel = {};
|
|
7261
|
-
function Generator() {}
|
|
7262
|
-
function GeneratorFunction() {}
|
|
7263
|
-
function GeneratorFunctionPrototype() {}
|
|
7264
|
-
var IteratorPrototype = {};
|
|
7265
|
-
define(IteratorPrototype, iteratorSymbol, function() {
|
|
7266
|
-
return this;
|
|
7267
|
-
});
|
|
7268
|
-
var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
7269
|
-
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
7270
|
-
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
7271
|
-
function defineIteratorMethods(prototype) {
|
|
7272
|
-
[
|
|
7273
|
-
"next",
|
|
7274
|
-
"throw",
|
|
7275
|
-
"return"
|
|
7276
|
-
].forEach(function(method) {
|
|
7277
|
-
define(prototype, method, function(arg) {
|
|
7278
|
-
return this._invoke(method, arg);
|
|
7279
|
-
});
|
|
7280
|
-
});
|
|
7281
|
-
}
|
|
7282
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
7283
|
-
function invoke(method, arg, resolve, reject) {
|
|
7284
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
7285
|
-
if ("throw" !== record.type) {
|
|
7286
|
-
var result = record.arg, value = result.value;
|
|
7287
|
-
return value && "object" == $gXNCa$babelruntimehelperstypeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function(value) {
|
|
7288
|
-
invoke("next", value, resolve, reject);
|
|
7289
|
-
}, function(err) {
|
|
7290
|
-
invoke("throw", err, resolve, reject);
|
|
7291
|
-
}) : PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
7292
|
-
result.value = unwrapped, resolve(result);
|
|
7293
|
-
}, function(error) {
|
|
7294
|
-
return invoke("throw", error, resolve, reject);
|
|
7295
|
-
});
|
|
7296
|
-
}
|
|
7297
|
-
reject(record.arg);
|
|
7298
|
-
}
|
|
7299
|
-
var previousPromise;
|
|
7300
|
-
this._invoke = function(method, arg) {
|
|
7301
|
-
function callInvokeWithMethodAndArg() {
|
|
7302
|
-
return new PromiseImpl(function(resolve, reject) {
|
|
7303
|
-
invoke(method, arg, resolve, reject);
|
|
7304
|
-
});
|
|
7305
|
-
}
|
|
7306
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
7307
|
-
};
|
|
7308
|
-
}
|
|
7309
|
-
function maybeInvokeDelegate(delegate, context) {
|
|
7310
|
-
var method = delegate.iterator[context.method];
|
|
7311
|
-
if (undefined === method) {
|
|
7312
|
-
if (context.delegate = null, "throw" === context.method) {
|
|
7313
|
-
if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
7314
|
-
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
7315
|
-
}
|
|
7316
|
-
return ContinueSentinel;
|
|
7317
|
-
}
|
|
7318
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
7319
|
-
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
7320
|
-
var info = record.arg;
|
|
7321
|
-
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);
|
|
7322
|
-
}
|
|
7323
|
-
function pushTryEntry(locs) {
|
|
7324
|
-
var entry = {
|
|
7325
|
-
tryLoc: locs[0]
|
|
7326
|
-
};
|
|
7327
|
-
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
7328
|
-
}
|
|
7329
|
-
function resetTryEntry(entry) {
|
|
7330
|
-
var record = entry.completion || {};
|
|
7331
|
-
record.type = "normal", delete record.arg, entry.completion = record;
|
|
7332
|
-
}
|
|
7333
|
-
function Context(tryLocsList) {
|
|
7334
|
-
this.tryEntries = [
|
|
7335
|
-
{
|
|
7336
|
-
tryLoc: "root"
|
|
7337
|
-
}
|
|
7338
|
-
], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
7339
|
-
}
|
|
7340
|
-
function values(iterable) {
|
|
7341
|
-
if (iterable) {
|
|
7342
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
7343
|
-
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
7344
|
-
if ("function" == typeof iterable.next) return iterable;
|
|
7345
|
-
if (!isNaN(iterable.length)) {
|
|
7346
|
-
var i = -1, next = function next() {
|
|
7347
|
-
for(; ++i < iterable.length;){
|
|
7348
|
-
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
7349
|
-
}
|
|
7350
|
-
return next.value = undefined, next.done = !0, next;
|
|
7351
|
-
};
|
|
7352
|
-
return next.next = next;
|
|
7353
|
-
}
|
|
7354
|
-
}
|
|
7355
|
-
return {
|
|
7356
|
-
next: doneResult
|
|
7357
|
-
};
|
|
7358
|
-
}
|
|
7359
|
-
function doneResult() {
|
|
7360
|
-
return {
|
|
7361
|
-
value: undefined,
|
|
7362
|
-
done: !0
|
|
7363
|
-
};
|
|
7364
|
-
}
|
|
7365
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports1.isGeneratorFunction = function(genFun) {
|
|
7366
|
-
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
7367
|
-
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
7368
|
-
}, exports1.mark = function(genFun) {
|
|
7369
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
7370
|
-
}, exports1.awrap = function(arg) {
|
|
7371
|
-
return {
|
|
7372
|
-
__await: arg
|
|
7373
|
-
};
|
|
7374
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function() {
|
|
7375
|
-
return this;
|
|
7376
|
-
}), exports1.AsyncIterator = AsyncIterator, exports1.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
7377
|
-
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
7378
|
-
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
7379
|
-
return exports1.isGeneratorFunction(outerFn) ? iter : iter.next().then(function(result) {
|
|
7380
|
-
return result.done ? result.value : iter.next();
|
|
7381
|
-
});
|
|
7382
|
-
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function() {
|
|
7383
|
-
return this;
|
|
7384
|
-
}), define(Gp, "toString", function() {
|
|
7385
|
-
return "[object Generator]";
|
|
7386
|
-
}), exports1.keys = function(object) {
|
|
7387
|
-
var keys = [];
|
|
7388
|
-
for(var key in object)keys.push(key);
|
|
7389
|
-
return keys.reverse(), function next() {
|
|
7390
|
-
for(; keys.length;){
|
|
7391
|
-
var key = keys.pop();
|
|
7392
|
-
if (key in object) return next.value = key, next.done = !1, next;
|
|
7393
|
-
}
|
|
7394
|
-
return next.done = !0, next;
|
|
7395
|
-
};
|
|
7396
|
-
}, exports1.values = values, Context.prototype = {
|
|
7397
|
-
constructor: Context,
|
|
7398
|
-
reset: function reset(skipTempReset) {
|
|
7399
|
-
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);
|
|
7400
|
-
},
|
|
7401
|
-
stop: function stop() {
|
|
7402
|
-
this.done = !0;
|
|
7403
|
-
var rootRecord = this.tryEntries[0].completion;
|
|
7404
|
-
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
7405
|
-
return this.rval;
|
|
7406
|
-
},
|
|
7407
|
-
dispatchException: function dispatchException(exception) {
|
|
7408
|
-
if (this.done) throw exception;
|
|
7409
|
-
var context = this;
|
|
7410
|
-
function handle(loc, caught) {
|
|
7411
|
-
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
7412
|
-
}
|
|
7413
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
7414
|
-
var entry = this.tryEntries[i], record = entry.completion;
|
|
7415
|
-
if ("root" === entry.tryLoc) return handle("end");
|
|
7416
|
-
if (entry.tryLoc <= this.prev) {
|
|
7417
|
-
var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
7418
|
-
if (hasCatch && hasFinally) {
|
|
7419
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
7420
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
7421
|
-
} else if (hasCatch) {
|
|
7422
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
7423
|
-
} else {
|
|
7424
|
-
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
7425
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
7426
|
-
}
|
|
7427
|
-
}
|
|
7428
|
-
}
|
|
7429
|
-
},
|
|
7430
|
-
abrupt: function abrupt(type, arg) {
|
|
7431
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
7432
|
-
var entry = this.tryEntries[i];
|
|
7433
|
-
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
7434
|
-
var finallyEntry = entry;
|
|
7435
|
-
break;
|
|
7436
|
-
}
|
|
7437
|
-
}
|
|
7438
|
-
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
7439
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
7440
|
-
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
7441
|
-
},
|
|
7442
|
-
complete: function complete(record, afterLoc) {
|
|
7443
|
-
if ("throw" === record.type) throw record.arg;
|
|
7444
|
-
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;
|
|
7445
|
-
},
|
|
7446
|
-
finish: function finish(finallyLoc) {
|
|
7447
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
7448
|
-
var entry = this.tryEntries[i];
|
|
7449
|
-
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
7450
|
-
}
|
|
7451
|
-
},
|
|
7452
|
-
"catch": function _catch(tryLoc) {
|
|
7453
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
7454
|
-
var entry = this.tryEntries[i];
|
|
7455
|
-
if (entry.tryLoc === tryLoc) {
|
|
7456
|
-
var record = entry.completion;
|
|
7457
|
-
if ("throw" === record.type) {
|
|
7458
|
-
var thrown = record.arg;
|
|
7459
|
-
resetTryEntry(entry);
|
|
7460
|
-
}
|
|
7461
|
-
return thrown;
|
|
7462
|
-
}
|
|
7463
|
-
}
|
|
7464
|
-
throw new Error("illegal catch attempt");
|
|
7465
|
-
},
|
|
7466
|
-
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
7467
|
-
return this.delegate = {
|
|
7468
|
-
iterator: values(iterable),
|
|
7469
|
-
resultName: resultName,
|
|
7470
|
-
nextLoc: nextLoc
|
|
7471
|
-
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
7472
|
-
}
|
|
7473
|
-
}, exports1;
|
|
7474
|
-
}
|
|
7475
6954
|
function $c987505f49f7b1a6$var$ownKeys(object, enumerableOnly) {
|
|
7476
6955
|
var keys = Object.keys(object);
|
|
7477
6956
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -7576,8 +7055,8 @@ var $c987505f49f7b1a6$var$createHeaders = function createHeaders(columns) {
|
|
|
7576
7055
|
];
|
|
7577
7056
|
};
|
|
7578
7057
|
var $c987505f49f7b1a6$var$dataToPdf = /*#__PURE__*/ function() {
|
|
7579
|
-
var _ref6 = (0, $c987505f49f7b1a6$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $c987505f49f7b1a6$var$
|
|
7580
|
-
return $c987505f49f7b1a6$var$
|
|
7058
|
+
var _ref6 = (0, $c987505f49f7b1a6$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $c987505f49f7b1a6$var$_regenerator["default"].mark(function _callee(data, filename, print, opts) {
|
|
7059
|
+
return $c987505f49f7b1a6$var$_regenerator["default"].wrap(function _callee$(_context) {
|
|
7581
7060
|
while(true)switch(_context.prev = _context.next){
|
|
7582
7061
|
case 0:
|
|
7583
7062
|
_context.next = 2;
|
|
@@ -7723,8 +7202,8 @@ var $c987505f49f7b1a6$var$dataToPdf = /*#__PURE__*/ function() {
|
|
|
7723
7202
|
};
|
|
7724
7203
|
}();
|
|
7725
7204
|
var $c987505f49f7b1a6$var$exportPDF = /*#__PURE__*/ function() {
|
|
7726
|
-
var _ref7 = (0, $c987505f49f7b1a6$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $c987505f49f7b1a6$var$
|
|
7727
|
-
return $c987505f49f7b1a6$var$
|
|
7205
|
+
var _ref7 = (0, $c987505f49f7b1a6$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $c987505f49f7b1a6$var$_regenerator["default"].mark(function _callee2(fname, data, print, options) {
|
|
7206
|
+
return $c987505f49f7b1a6$var$_regenerator["default"].wrap(function _callee2$(_context2) {
|
|
7728
7207
|
while(true)switch(_context2.prev = _context2.next){
|
|
7729
7208
|
case 0:
|
|
7730
7209
|
_context2.next = 2;
|
|
@@ -8111,6 +7590,8 @@ Object.defineProperty(module.exports, "__esModule", {
|
|
|
8111
7590
|
});
|
|
8112
7591
|
module.exports["default"] = void 0;
|
|
8113
7592
|
|
|
7593
|
+
var $5b597552807640f8$var$_regenerator = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimeregenerator);
|
|
7594
|
+
|
|
8114
7595
|
var $5b597552807640f8$var$_extends2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersextends);
|
|
8115
7596
|
|
|
8116
7597
|
var $5b597552807640f8$var$_asyncToGenerator2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersasyncToGenerator);
|
|
@@ -8159,345 +7640,57 @@ function $5b597552807640f8$var$_interopRequireWildcard(obj, nodeInterop) {
|
|
|
8159
7640
|
if (cache) cache.set(obj, newObj);
|
|
8160
7641
|
return newObj;
|
|
8161
7642
|
}
|
|
8162
|
-
|
|
8163
|
-
|
|
8164
|
-
|
|
8165
|
-
|
|
7643
|
+
var $5b597552807640f8$var$getFilesDiff = function getFilesDiff(initialFiles, finalFiles) {
|
|
7644
|
+
var deleted = [];
|
|
7645
|
+
var added = [];
|
|
7646
|
+
var finalMap = {};
|
|
7647
|
+
var initialMap = {};
|
|
7648
|
+
initialFiles.forEach(function(_ref) {
|
|
7649
|
+
var token = _ref.token;
|
|
7650
|
+
return initialMap[token] = true;
|
|
7651
|
+
});
|
|
7652
|
+
finalFiles.forEach(function(_ref2) {
|
|
7653
|
+
var token = _ref2.token;
|
|
7654
|
+
return finalMap[token] = true;
|
|
7655
|
+
});
|
|
7656
|
+
initialFiles === null || initialFiles === void 0 || initialFiles.forEach(function(file) {
|
|
7657
|
+
var token = file.token;
|
|
7658
|
+
if (!finalMap[token]) deleted.push(file);
|
|
7659
|
+
});
|
|
7660
|
+
finalFiles === null || finalFiles === void 0 || finalFiles.forEach(function(file) {
|
|
7661
|
+
var token = file.token;
|
|
7662
|
+
if (!initialMap[token]) added.push(file);
|
|
7663
|
+
});
|
|
7664
|
+
return {
|
|
7665
|
+
added: added,
|
|
7666
|
+
deleted: deleted
|
|
8166
7667
|
};
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
|
|
8178
|
-
|
|
8179
|
-
|
|
8180
|
-
|
|
8181
|
-
|
|
8182
|
-
|
|
8183
|
-
|
|
8184
|
-
|
|
8185
|
-
|
|
8186
|
-
|
|
8187
|
-
|
|
8188
|
-
|
|
8189
|
-
|
|
8190
|
-
|
|
8191
|
-
|
|
8192
|
-
|
|
8193
|
-
for(context.method = method, context.arg = arg;;){
|
|
8194
|
-
var delegate = context.delegate;
|
|
8195
|
-
if (delegate) {
|
|
8196
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
8197
|
-
if (delegateResult) {
|
|
8198
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
8199
|
-
return delegateResult;
|
|
8200
|
-
}
|
|
8201
|
-
}
|
|
8202
|
-
if ("next" === context.method) context.sent = context._sent = context.arg;
|
|
8203
|
-
else if ("throw" === context.method) {
|
|
8204
|
-
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
8205
|
-
context.dispatchException(context.arg);
|
|
8206
|
-
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
8207
|
-
state = "executing";
|
|
8208
|
-
var record = tryCatch(innerFn, self, context);
|
|
8209
|
-
if ("normal" === record.type) {
|
|
8210
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
8211
|
-
return {
|
|
8212
|
-
value: record.arg,
|
|
8213
|
-
done: context.done
|
|
8214
|
-
};
|
|
8215
|
-
}
|
|
8216
|
-
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
8217
|
-
}
|
|
8218
|
-
};
|
|
8219
|
-
}(innerFn, self, context), generator;
|
|
8220
|
-
}
|
|
8221
|
-
function tryCatch(fn, obj, arg) {
|
|
8222
|
-
try {
|
|
8223
|
-
return {
|
|
8224
|
-
type: "normal",
|
|
8225
|
-
arg: fn.call(obj, arg)
|
|
8226
|
-
};
|
|
8227
|
-
} catch (err) {
|
|
8228
|
-
return {
|
|
8229
|
-
type: "throw",
|
|
8230
|
-
arg: err
|
|
8231
|
-
};
|
|
8232
|
-
}
|
|
8233
|
-
}
|
|
8234
|
-
exports1.wrap = wrap;
|
|
8235
|
-
var ContinueSentinel = {};
|
|
8236
|
-
function Generator() {}
|
|
8237
|
-
function GeneratorFunction() {}
|
|
8238
|
-
function GeneratorFunctionPrototype() {}
|
|
8239
|
-
var IteratorPrototype = {};
|
|
8240
|
-
define(IteratorPrototype, iteratorSymbol, function() {
|
|
8241
|
-
return this;
|
|
8242
|
-
});
|
|
8243
|
-
var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
8244
|
-
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
8245
|
-
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
8246
|
-
function defineIteratorMethods(prototype) {
|
|
8247
|
-
[
|
|
8248
|
-
"next",
|
|
8249
|
-
"throw",
|
|
8250
|
-
"return"
|
|
8251
|
-
].forEach(function(method) {
|
|
8252
|
-
define(prototype, method, function(arg) {
|
|
8253
|
-
return this._invoke(method, arg);
|
|
8254
|
-
});
|
|
8255
|
-
});
|
|
8256
|
-
}
|
|
8257
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
8258
|
-
function invoke(method, arg, resolve, reject) {
|
|
8259
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
8260
|
-
if ("throw" !== record.type) {
|
|
8261
|
-
var result = record.arg, value = result.value;
|
|
8262
|
-
return value && "object" == $gXNCa$babelruntimehelperstypeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function(value) {
|
|
8263
|
-
invoke("next", value, resolve, reject);
|
|
8264
|
-
}, function(err) {
|
|
8265
|
-
invoke("throw", err, resolve, reject);
|
|
8266
|
-
}) : PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
8267
|
-
result.value = unwrapped, resolve(result);
|
|
8268
|
-
}, function(error) {
|
|
8269
|
-
return invoke("throw", error, resolve, reject);
|
|
8270
|
-
});
|
|
8271
|
-
}
|
|
8272
|
-
reject(record.arg);
|
|
8273
|
-
}
|
|
8274
|
-
var previousPromise;
|
|
8275
|
-
this._invoke = function(method, arg) {
|
|
8276
|
-
function callInvokeWithMethodAndArg() {
|
|
8277
|
-
return new PromiseImpl(function(resolve, reject) {
|
|
8278
|
-
invoke(method, arg, resolve, reject);
|
|
8279
|
-
});
|
|
8280
|
-
}
|
|
8281
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
8282
|
-
};
|
|
8283
|
-
}
|
|
8284
|
-
function maybeInvokeDelegate(delegate, context) {
|
|
8285
|
-
var method = delegate.iterator[context.method];
|
|
8286
|
-
if (undefined === method) {
|
|
8287
|
-
if (context.delegate = null, "throw" === context.method) {
|
|
8288
|
-
if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
8289
|
-
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
8290
|
-
}
|
|
8291
|
-
return ContinueSentinel;
|
|
8292
|
-
}
|
|
8293
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
8294
|
-
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
8295
|
-
var info = record.arg;
|
|
8296
|
-
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);
|
|
8297
|
-
}
|
|
8298
|
-
function pushTryEntry(locs) {
|
|
8299
|
-
var entry = {
|
|
8300
|
-
tryLoc: locs[0]
|
|
8301
|
-
};
|
|
8302
|
-
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
8303
|
-
}
|
|
8304
|
-
function resetTryEntry(entry) {
|
|
8305
|
-
var record = entry.completion || {};
|
|
8306
|
-
record.type = "normal", delete record.arg, entry.completion = record;
|
|
8307
|
-
}
|
|
8308
|
-
function Context(tryLocsList) {
|
|
8309
|
-
this.tryEntries = [
|
|
8310
|
-
{
|
|
8311
|
-
tryLoc: "root"
|
|
8312
|
-
}
|
|
8313
|
-
], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
8314
|
-
}
|
|
8315
|
-
function values(iterable) {
|
|
8316
|
-
if (iterable) {
|
|
8317
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
8318
|
-
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
8319
|
-
if ("function" == typeof iterable.next) return iterable;
|
|
8320
|
-
if (!isNaN(iterable.length)) {
|
|
8321
|
-
var i = -1, next = function next() {
|
|
8322
|
-
for(; ++i < iterable.length;){
|
|
8323
|
-
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
8324
|
-
}
|
|
8325
|
-
return next.value = undefined, next.done = !0, next;
|
|
8326
|
-
};
|
|
8327
|
-
return next.next = next;
|
|
8328
|
-
}
|
|
8329
|
-
}
|
|
8330
|
-
return {
|
|
8331
|
-
next: doneResult
|
|
8332
|
-
};
|
|
8333
|
-
}
|
|
8334
|
-
function doneResult() {
|
|
8335
|
-
return {
|
|
8336
|
-
value: undefined,
|
|
8337
|
-
done: !0
|
|
8338
|
-
};
|
|
8339
|
-
}
|
|
8340
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports1.isGeneratorFunction = function(genFun) {
|
|
8341
|
-
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
8342
|
-
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
8343
|
-
}, exports1.mark = function(genFun) {
|
|
8344
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
8345
|
-
}, exports1.awrap = function(arg) {
|
|
8346
|
-
return {
|
|
8347
|
-
__await: arg
|
|
8348
|
-
};
|
|
8349
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function() {
|
|
8350
|
-
return this;
|
|
8351
|
-
}), exports1.AsyncIterator = AsyncIterator, exports1.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
8352
|
-
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
8353
|
-
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
8354
|
-
return exports1.isGeneratorFunction(outerFn) ? iter : iter.next().then(function(result) {
|
|
8355
|
-
return result.done ? result.value : iter.next();
|
|
8356
|
-
});
|
|
8357
|
-
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function() {
|
|
8358
|
-
return this;
|
|
8359
|
-
}), define(Gp, "toString", function() {
|
|
8360
|
-
return "[object Generator]";
|
|
8361
|
-
}), exports1.keys = function(object) {
|
|
8362
|
-
var keys = [];
|
|
8363
|
-
for(var key in object)keys.push(key);
|
|
8364
|
-
return keys.reverse(), function next() {
|
|
8365
|
-
for(; keys.length;){
|
|
8366
|
-
var key = keys.pop();
|
|
8367
|
-
if (key in object) return next.value = key, next.done = !1, next;
|
|
8368
|
-
}
|
|
8369
|
-
return next.done = !0, next;
|
|
8370
|
-
};
|
|
8371
|
-
}, exports1.values = values, Context.prototype = {
|
|
8372
|
-
constructor: Context,
|
|
8373
|
-
reset: function reset(skipTempReset) {
|
|
8374
|
-
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);
|
|
8375
|
-
},
|
|
8376
|
-
stop: function stop() {
|
|
8377
|
-
this.done = !0;
|
|
8378
|
-
var rootRecord = this.tryEntries[0].completion;
|
|
8379
|
-
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
8380
|
-
return this.rval;
|
|
8381
|
-
},
|
|
8382
|
-
dispatchException: function dispatchException(exception) {
|
|
8383
|
-
if (this.done) throw exception;
|
|
8384
|
-
var context = this;
|
|
8385
|
-
function handle(loc, caught) {
|
|
8386
|
-
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
8387
|
-
}
|
|
8388
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
8389
|
-
var entry = this.tryEntries[i], record = entry.completion;
|
|
8390
|
-
if ("root" === entry.tryLoc) return handle("end");
|
|
8391
|
-
if (entry.tryLoc <= this.prev) {
|
|
8392
|
-
var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
8393
|
-
if (hasCatch && hasFinally) {
|
|
8394
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
8395
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
8396
|
-
} else if (hasCatch) {
|
|
8397
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
8398
|
-
} else {
|
|
8399
|
-
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
8400
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
8401
|
-
}
|
|
8402
|
-
}
|
|
8403
|
-
}
|
|
8404
|
-
},
|
|
8405
|
-
abrupt: function abrupt(type, arg) {
|
|
8406
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
8407
|
-
var entry = this.tryEntries[i];
|
|
8408
|
-
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
8409
|
-
var finallyEntry = entry;
|
|
8410
|
-
break;
|
|
8411
|
-
}
|
|
8412
|
-
}
|
|
8413
|
-
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
8414
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
8415
|
-
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
8416
|
-
},
|
|
8417
|
-
complete: function complete(record, afterLoc) {
|
|
8418
|
-
if ("throw" === record.type) throw record.arg;
|
|
8419
|
-
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;
|
|
8420
|
-
},
|
|
8421
|
-
finish: function finish(finallyLoc) {
|
|
8422
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
8423
|
-
var entry = this.tryEntries[i];
|
|
8424
|
-
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
8425
|
-
}
|
|
8426
|
-
},
|
|
8427
|
-
"catch": function _catch(tryLoc) {
|
|
8428
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
8429
|
-
var entry = this.tryEntries[i];
|
|
8430
|
-
if (entry.tryLoc === tryLoc) {
|
|
8431
|
-
var record = entry.completion;
|
|
8432
|
-
if ("throw" === record.type) {
|
|
8433
|
-
var thrown = record.arg;
|
|
8434
|
-
resetTryEntry(entry);
|
|
8435
|
-
}
|
|
8436
|
-
return thrown;
|
|
8437
|
-
}
|
|
8438
|
-
}
|
|
8439
|
-
throw new Error("illegal catch attempt");
|
|
8440
|
-
},
|
|
8441
|
-
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
8442
|
-
return this.delegate = {
|
|
8443
|
-
iterator: values(iterable),
|
|
8444
|
-
resultName: resultName,
|
|
8445
|
-
nextLoc: nextLoc
|
|
8446
|
-
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
8447
|
-
}
|
|
8448
|
-
}, exports1;
|
|
8449
|
-
}
|
|
8450
|
-
var $5b597552807640f8$var$getFilesDiff = function getFilesDiff(initialFiles, finalFiles) {
|
|
8451
|
-
var deleted = [];
|
|
8452
|
-
var added = [];
|
|
8453
|
-
var finalMap = {};
|
|
8454
|
-
var initialMap = {};
|
|
8455
|
-
initialFiles.forEach(function(_ref) {
|
|
8456
|
-
var token = _ref.token;
|
|
8457
|
-
return initialMap[token] = true;
|
|
8458
|
-
});
|
|
8459
|
-
finalFiles.forEach(function(_ref2) {
|
|
8460
|
-
var token = _ref2.token;
|
|
8461
|
-
return finalMap[token] = true;
|
|
8462
|
-
});
|
|
8463
|
-
initialFiles === null || initialFiles === void 0 || initialFiles.forEach(function(file) {
|
|
8464
|
-
var token = file.token;
|
|
8465
|
-
if (!finalMap[token]) deleted.push(file);
|
|
8466
|
-
});
|
|
8467
|
-
finalFiles === null || finalFiles === void 0 || finalFiles.forEach(function(file) {
|
|
8468
|
-
var token = file.token;
|
|
8469
|
-
if (!initialMap[token]) added.push(file);
|
|
8470
|
-
});
|
|
8471
|
-
return {
|
|
8472
|
-
added: added,
|
|
8473
|
-
deleted: deleted
|
|
8474
|
-
};
|
|
8475
|
-
};
|
|
8476
|
-
var $5b597552807640f8$var$UploadDialog = function UploadDialog(props) {
|
|
8477
|
-
var open = props.open, onClose = props.onClose, cell = props.cell, _props$files = props.files, files = _props$files === void 0 ? [] : _props$files, onChange = props.onChange;
|
|
8478
|
-
var _useState = (0, $5b597552807640f8$var$_react.useState)(files), _useState2 = (0, $5b597552807640f8$var$_slicedToArray2["default"])(_useState, 2), state = _useState2[0], setState = _useState2[1];
|
|
8479
|
-
var _cell$column = cell.column, _cell$column$isDispla = _cell$column.isDisplayCloseBtn, isDisplayCloseBtn = _cell$column$isDispla === void 0 ? true : _cell$column$isDispla, onSubmit = _cell$column.onSubmit, _cell$column$filesDro = _cell$column.filesDropperProps, filesDropperProps = _cell$column$filesDro === void 0 ? {} : _cell$column$filesDro;
|
|
8480
|
-
var _useState3 = (0, $5b597552807640f8$var$_react.useState)(false), _useState4 = (0, $5b597552807640f8$var$_slicedToArray2["default"])(_useState3, 2), isProcessing = _useState4[0], setIsProcessing = _useState4[1];
|
|
8481
|
-
var buttons = [];
|
|
8482
|
-
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);
|
|
8483
|
-
var handleSubmit = /*#__PURE__*/ function() {
|
|
8484
|
-
var _ref3 = (0, $5b597552807640f8$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $5b597552807640f8$var$_regeneratorRuntime().mark(function _callee() {
|
|
8485
|
-
var _getFilesDiff, added, deleted, res;
|
|
8486
|
-
return $5b597552807640f8$var$_regeneratorRuntime().wrap(function _callee$(_context) {
|
|
8487
|
-
while(true)switch(_context.prev = _context.next){
|
|
8488
|
-
case 0:
|
|
8489
|
-
setIsProcessing(true);
|
|
8490
|
-
_getFilesDiff = $5b597552807640f8$var$getFilesDiff(files, state), added = _getFilesDiff.added, deleted = _getFilesDiff.deleted;
|
|
8491
|
-
_context.next = 4;
|
|
8492
|
-
return onSubmit(cell, state, added, deleted);
|
|
8493
|
-
case 4:
|
|
8494
|
-
res = _context.sent;
|
|
8495
|
-
if ((0, $5b597552807640f8$var$_isArray2["default"])(res)) onChange(res);
|
|
8496
|
-
onClose();
|
|
8497
|
-
setIsProcessing(false);
|
|
8498
|
-
case 8:
|
|
8499
|
-
case "end":
|
|
8500
|
-
return _context.stop();
|
|
7668
|
+
};
|
|
7669
|
+
var $5b597552807640f8$var$UploadDialog = function UploadDialog(props) {
|
|
7670
|
+
var open = props.open, onClose = props.onClose, cell = props.cell, _props$files = props.files, files = _props$files === void 0 ? [] : _props$files, onChange = props.onChange;
|
|
7671
|
+
var _useState = (0, $5b597552807640f8$var$_react.useState)(files), _useState2 = (0, $5b597552807640f8$var$_slicedToArray2["default"])(_useState, 2), state = _useState2[0], setState = _useState2[1];
|
|
7672
|
+
var _cell$column = cell.column, _cell$column$isDispla = _cell$column.isDisplayCloseBtn, isDisplayCloseBtn = _cell$column$isDispla === void 0 ? true : _cell$column$isDispla, onSubmit = _cell$column.onSubmit, _cell$column$filesDro = _cell$column.filesDropperProps, filesDropperProps = _cell$column$filesDro === void 0 ? {} : _cell$column$filesDro;
|
|
7673
|
+
var _useState3 = (0, $5b597552807640f8$var$_react.useState)(false), _useState4 = (0, $5b597552807640f8$var$_slicedToArray2["default"])(_useState3, 2), isProcessing = _useState4[0], setIsProcessing = _useState4[1];
|
|
7674
|
+
var buttons = [];
|
|
7675
|
+
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);
|
|
7676
|
+
var handleSubmit = /*#__PURE__*/ function() {
|
|
7677
|
+
var _ref3 = (0, $5b597552807640f8$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $5b597552807640f8$var$_regenerator["default"].mark(function _callee() {
|
|
7678
|
+
var _getFilesDiff, added, deleted, res;
|
|
7679
|
+
return $5b597552807640f8$var$_regenerator["default"].wrap(function _callee$(_context) {
|
|
7680
|
+
while(true)switch(_context.prev = _context.next){
|
|
7681
|
+
case 0:
|
|
7682
|
+
setIsProcessing(true);
|
|
7683
|
+
_getFilesDiff = $5b597552807640f8$var$getFilesDiff(files, state), added = _getFilesDiff.added, deleted = _getFilesDiff.deleted;
|
|
7684
|
+
_context.next = 4;
|
|
7685
|
+
return onSubmit(cell, state, added, deleted);
|
|
7686
|
+
case 4:
|
|
7687
|
+
res = _context.sent;
|
|
7688
|
+
if ((0, $5b597552807640f8$var$_isArray2["default"])(res)) onChange(res);
|
|
7689
|
+
onClose();
|
|
7690
|
+
setIsProcessing(false);
|
|
7691
|
+
case 8:
|
|
7692
|
+
case "end":
|
|
7693
|
+
return _context.stop();
|
|
8501
7694
|
}
|
|
8502
7695
|
}, _callee);
|
|
8503
7696
|
}));
|
|
@@ -8696,6 +7889,7 @@ var $96b8af0a8d255962$var$FilesDropperZone = function FilesDropperZone(props) {
|
|
|
8696
7889
|
className: styles.icon,
|
|
8697
7890
|
name: "icon-upload1"
|
|
8698
7891
|
}), /*#__PURE__*/ $96b8af0a8d255962$var$_react["default"].createElement("input", getInputProps()), /*#__PURE__*/ $96b8af0a8d255962$var$_react["default"].createElement($gXNCa$muimaterial.Typography, null, $96b8af0a8d255962$var$_I18n["default"].t("common.or"), " ", /*#__PURE__*/ $96b8af0a8d255962$var$_react["default"].createElement($gXNCa$muimaterial.Link, {
|
|
7892
|
+
variant: "h4",
|
|
8699
7893
|
component: "button",
|
|
8700
7894
|
color: "primary",
|
|
8701
7895
|
onClick: handleOpenFileBrowser(open)
|
|
@@ -8811,306 +8005,19 @@ module.exports["default"] = $a569c294f3ffb90b$var$_default;
|
|
|
8811
8005
|
parcelRequire.register("dsukx", function(module, exports) {
|
|
8812
8006
|
"use strict";
|
|
8813
8007
|
|
|
8814
|
-
|
|
8815
8008
|
Object.defineProperty(module.exports, "__esModule", {
|
|
8816
8009
|
value: true
|
|
8817
8010
|
});
|
|
8818
8011
|
module.exports["default"] = void 0;
|
|
8819
8012
|
|
|
8013
|
+
var $9cc56adabc671d24$var$_regenerator = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimeregenerator);
|
|
8014
|
+
|
|
8820
8015
|
var $9cc56adabc671d24$var$_toConsumableArray2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelperstoConsumableArray);
|
|
8821
8016
|
|
|
8822
8017
|
var $9cc56adabc671d24$var$_asyncToGenerator2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersasyncToGenerator);
|
|
8823
8018
|
|
|
8824
8019
|
var $9cc56adabc671d24$var$_slicedToArray2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersslicedToArray);
|
|
8825
8020
|
|
|
8826
|
-
function $9cc56adabc671d24$var$_regeneratorRuntime() {
|
|
8827
|
-
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
8828
|
-
$9cc56adabc671d24$var$_regeneratorRuntime = function _regeneratorRuntime() {
|
|
8829
|
-
return exports1;
|
|
8830
|
-
};
|
|
8831
|
-
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";
|
|
8832
|
-
function define(obj, key, value) {
|
|
8833
|
-
return Object.defineProperty(obj, key, {
|
|
8834
|
-
value: value,
|
|
8835
|
-
enumerable: !0,
|
|
8836
|
-
configurable: !0,
|
|
8837
|
-
writable: !0
|
|
8838
|
-
}), obj[key];
|
|
8839
|
-
}
|
|
8840
|
-
try {
|
|
8841
|
-
define({}, "");
|
|
8842
|
-
} catch (err) {
|
|
8843
|
-
define = function define(obj, key, value) {
|
|
8844
|
-
return obj[key] = value;
|
|
8845
|
-
};
|
|
8846
|
-
}
|
|
8847
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
8848
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []);
|
|
8849
|
-
return generator._invoke = function(innerFn, self, context) {
|
|
8850
|
-
var state = "suspendedStart";
|
|
8851
|
-
return function(method, arg) {
|
|
8852
|
-
if ("executing" === state) throw new Error("Generator is already running");
|
|
8853
|
-
if ("completed" === state) {
|
|
8854
|
-
if ("throw" === method) throw arg;
|
|
8855
|
-
return doneResult();
|
|
8856
|
-
}
|
|
8857
|
-
for(context.method = method, context.arg = arg;;){
|
|
8858
|
-
var delegate = context.delegate;
|
|
8859
|
-
if (delegate) {
|
|
8860
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
8861
|
-
if (delegateResult) {
|
|
8862
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
8863
|
-
return delegateResult;
|
|
8864
|
-
}
|
|
8865
|
-
}
|
|
8866
|
-
if ("next" === context.method) context.sent = context._sent = context.arg;
|
|
8867
|
-
else if ("throw" === context.method) {
|
|
8868
|
-
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
8869
|
-
context.dispatchException(context.arg);
|
|
8870
|
-
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
8871
|
-
state = "executing";
|
|
8872
|
-
var record = tryCatch(innerFn, self, context);
|
|
8873
|
-
if ("normal" === record.type) {
|
|
8874
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
8875
|
-
return {
|
|
8876
|
-
value: record.arg,
|
|
8877
|
-
done: context.done
|
|
8878
|
-
};
|
|
8879
|
-
}
|
|
8880
|
-
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
8881
|
-
}
|
|
8882
|
-
};
|
|
8883
|
-
}(innerFn, self, context), generator;
|
|
8884
|
-
}
|
|
8885
|
-
function tryCatch(fn, obj, arg) {
|
|
8886
|
-
try {
|
|
8887
|
-
return {
|
|
8888
|
-
type: "normal",
|
|
8889
|
-
arg: fn.call(obj, arg)
|
|
8890
|
-
};
|
|
8891
|
-
} catch (err) {
|
|
8892
|
-
return {
|
|
8893
|
-
type: "throw",
|
|
8894
|
-
arg: err
|
|
8895
|
-
};
|
|
8896
|
-
}
|
|
8897
|
-
}
|
|
8898
|
-
exports1.wrap = wrap;
|
|
8899
|
-
var ContinueSentinel = {};
|
|
8900
|
-
function Generator() {}
|
|
8901
|
-
function GeneratorFunction() {}
|
|
8902
|
-
function GeneratorFunctionPrototype() {}
|
|
8903
|
-
var IteratorPrototype = {};
|
|
8904
|
-
define(IteratorPrototype, iteratorSymbol, function() {
|
|
8905
|
-
return this;
|
|
8906
|
-
});
|
|
8907
|
-
var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
8908
|
-
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
8909
|
-
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
8910
|
-
function defineIteratorMethods(prototype) {
|
|
8911
|
-
[
|
|
8912
|
-
"next",
|
|
8913
|
-
"throw",
|
|
8914
|
-
"return"
|
|
8915
|
-
].forEach(function(method) {
|
|
8916
|
-
define(prototype, method, function(arg) {
|
|
8917
|
-
return this._invoke(method, arg);
|
|
8918
|
-
});
|
|
8919
|
-
});
|
|
8920
|
-
}
|
|
8921
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
8922
|
-
function invoke(method, arg, resolve, reject) {
|
|
8923
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
8924
|
-
if ("throw" !== record.type) {
|
|
8925
|
-
var result = record.arg, value = result.value;
|
|
8926
|
-
return value && "object" == $gXNCa$babelruntimehelperstypeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function(value) {
|
|
8927
|
-
invoke("next", value, resolve, reject);
|
|
8928
|
-
}, function(err) {
|
|
8929
|
-
invoke("throw", err, resolve, reject);
|
|
8930
|
-
}) : PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
8931
|
-
result.value = unwrapped, resolve(result);
|
|
8932
|
-
}, function(error) {
|
|
8933
|
-
return invoke("throw", error, resolve, reject);
|
|
8934
|
-
});
|
|
8935
|
-
}
|
|
8936
|
-
reject(record.arg);
|
|
8937
|
-
}
|
|
8938
|
-
var previousPromise;
|
|
8939
|
-
this._invoke = function(method, arg) {
|
|
8940
|
-
function callInvokeWithMethodAndArg() {
|
|
8941
|
-
return new PromiseImpl(function(resolve, reject) {
|
|
8942
|
-
invoke(method, arg, resolve, reject);
|
|
8943
|
-
});
|
|
8944
|
-
}
|
|
8945
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
8946
|
-
};
|
|
8947
|
-
}
|
|
8948
|
-
function maybeInvokeDelegate(delegate, context) {
|
|
8949
|
-
var method = delegate.iterator[context.method];
|
|
8950
|
-
if (undefined === method) {
|
|
8951
|
-
if (context.delegate = null, "throw" === context.method) {
|
|
8952
|
-
if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
8953
|
-
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
8954
|
-
}
|
|
8955
|
-
return ContinueSentinel;
|
|
8956
|
-
}
|
|
8957
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
8958
|
-
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
8959
|
-
var info = record.arg;
|
|
8960
|
-
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);
|
|
8961
|
-
}
|
|
8962
|
-
function pushTryEntry(locs) {
|
|
8963
|
-
var entry = {
|
|
8964
|
-
tryLoc: locs[0]
|
|
8965
|
-
};
|
|
8966
|
-
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
8967
|
-
}
|
|
8968
|
-
function resetTryEntry(entry) {
|
|
8969
|
-
var record = entry.completion || {};
|
|
8970
|
-
record.type = "normal", delete record.arg, entry.completion = record;
|
|
8971
|
-
}
|
|
8972
|
-
function Context(tryLocsList) {
|
|
8973
|
-
this.tryEntries = [
|
|
8974
|
-
{
|
|
8975
|
-
tryLoc: "root"
|
|
8976
|
-
}
|
|
8977
|
-
], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
8978
|
-
}
|
|
8979
|
-
function values(iterable) {
|
|
8980
|
-
if (iterable) {
|
|
8981
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
8982
|
-
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
8983
|
-
if ("function" == typeof iterable.next) return iterable;
|
|
8984
|
-
if (!isNaN(iterable.length)) {
|
|
8985
|
-
var i = -1, next = function next() {
|
|
8986
|
-
for(; ++i < iterable.length;){
|
|
8987
|
-
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
8988
|
-
}
|
|
8989
|
-
return next.value = undefined, next.done = !0, next;
|
|
8990
|
-
};
|
|
8991
|
-
return next.next = next;
|
|
8992
|
-
}
|
|
8993
|
-
}
|
|
8994
|
-
return {
|
|
8995
|
-
next: doneResult
|
|
8996
|
-
};
|
|
8997
|
-
}
|
|
8998
|
-
function doneResult() {
|
|
8999
|
-
return {
|
|
9000
|
-
value: undefined,
|
|
9001
|
-
done: !0
|
|
9002
|
-
};
|
|
9003
|
-
}
|
|
9004
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports1.isGeneratorFunction = function(genFun) {
|
|
9005
|
-
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
9006
|
-
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
9007
|
-
}, exports1.mark = function(genFun) {
|
|
9008
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
9009
|
-
}, exports1.awrap = function(arg) {
|
|
9010
|
-
return {
|
|
9011
|
-
__await: arg
|
|
9012
|
-
};
|
|
9013
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function() {
|
|
9014
|
-
return this;
|
|
9015
|
-
}), exports1.AsyncIterator = AsyncIterator, exports1.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
9016
|
-
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
9017
|
-
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
9018
|
-
return exports1.isGeneratorFunction(outerFn) ? iter : iter.next().then(function(result) {
|
|
9019
|
-
return result.done ? result.value : iter.next();
|
|
9020
|
-
});
|
|
9021
|
-
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function() {
|
|
9022
|
-
return this;
|
|
9023
|
-
}), define(Gp, "toString", function() {
|
|
9024
|
-
return "[object Generator]";
|
|
9025
|
-
}), exports1.keys = function(object) {
|
|
9026
|
-
var keys = [];
|
|
9027
|
-
for(var key in object)keys.push(key);
|
|
9028
|
-
return keys.reverse(), function next() {
|
|
9029
|
-
for(; keys.length;){
|
|
9030
|
-
var key = keys.pop();
|
|
9031
|
-
if (key in object) return next.value = key, next.done = !1, next;
|
|
9032
|
-
}
|
|
9033
|
-
return next.done = !0, next;
|
|
9034
|
-
};
|
|
9035
|
-
}, exports1.values = values, Context.prototype = {
|
|
9036
|
-
constructor: Context,
|
|
9037
|
-
reset: function reset(skipTempReset) {
|
|
9038
|
-
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);
|
|
9039
|
-
},
|
|
9040
|
-
stop: function stop() {
|
|
9041
|
-
this.done = !0;
|
|
9042
|
-
var rootRecord = this.tryEntries[0].completion;
|
|
9043
|
-
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
9044
|
-
return this.rval;
|
|
9045
|
-
},
|
|
9046
|
-
dispatchException: function dispatchException(exception) {
|
|
9047
|
-
if (this.done) throw exception;
|
|
9048
|
-
var context = this;
|
|
9049
|
-
function handle(loc, caught) {
|
|
9050
|
-
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
9051
|
-
}
|
|
9052
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
9053
|
-
var entry = this.tryEntries[i], record = entry.completion;
|
|
9054
|
-
if ("root" === entry.tryLoc) return handle("end");
|
|
9055
|
-
if (entry.tryLoc <= this.prev) {
|
|
9056
|
-
var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
9057
|
-
if (hasCatch && hasFinally) {
|
|
9058
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
9059
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
9060
|
-
} else if (hasCatch) {
|
|
9061
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
9062
|
-
} else {
|
|
9063
|
-
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
9064
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
9065
|
-
}
|
|
9066
|
-
}
|
|
9067
|
-
}
|
|
9068
|
-
},
|
|
9069
|
-
abrupt: function abrupt(type, arg) {
|
|
9070
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
9071
|
-
var entry = this.tryEntries[i];
|
|
9072
|
-
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
9073
|
-
var finallyEntry = entry;
|
|
9074
|
-
break;
|
|
9075
|
-
}
|
|
9076
|
-
}
|
|
9077
|
-
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
9078
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
9079
|
-
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
9080
|
-
},
|
|
9081
|
-
complete: function complete(record, afterLoc) {
|
|
9082
|
-
if ("throw" === record.type) throw record.arg;
|
|
9083
|
-
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;
|
|
9084
|
-
},
|
|
9085
|
-
finish: function finish(finallyLoc) {
|
|
9086
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
9087
|
-
var entry = this.tryEntries[i];
|
|
9088
|
-
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
9089
|
-
}
|
|
9090
|
-
},
|
|
9091
|
-
"catch": function _catch(tryLoc) {
|
|
9092
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
9093
|
-
var entry = this.tryEntries[i];
|
|
9094
|
-
if (entry.tryLoc === tryLoc) {
|
|
9095
|
-
var record = entry.completion;
|
|
9096
|
-
if ("throw" === record.type) {
|
|
9097
|
-
var thrown = record.arg;
|
|
9098
|
-
resetTryEntry(entry);
|
|
9099
|
-
}
|
|
9100
|
-
return thrown;
|
|
9101
|
-
}
|
|
9102
|
-
}
|
|
9103
|
-
throw new Error("illegal catch attempt");
|
|
9104
|
-
},
|
|
9105
|
-
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
9106
|
-
return this.delegate = {
|
|
9107
|
-
iterator: values(iterable),
|
|
9108
|
-
resultName: resultName,
|
|
9109
|
-
nextLoc: nextLoc
|
|
9110
|
-
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
9111
|
-
}
|
|
9112
|
-
}, exports1;
|
|
9113
|
-
}
|
|
9114
8021
|
var $9cc56adabc671d24$var$useFileDropper = function useFileDropper(props) {
|
|
9115
8022
|
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;
|
|
9116
8023
|
var _useState = (0, $gXNCa$react.useState)(false), _useState2 = (0, $9cc56adabc671d24$var$_slicedToArray2["default"])(_useState, 2), isUploading = _useState2[0], setIsUpLoading = _useState2[1];
|
|
@@ -9122,9 +8029,9 @@ var $9cc56adabc671d24$var$useFileDropper = function useFileDropper(props) {
|
|
|
9122
8029
|
return _files.length > limit ? _files.splice(0, limit) : _files;
|
|
9123
8030
|
}
|
|
9124
8031
|
var handleAddFiles = /*#__PURE__*/ function() {
|
|
9125
|
-
var _ref = (0, $9cc56adabc671d24$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $9cc56adabc671d24$var$
|
|
8032
|
+
var _ref = (0, $9cc56adabc671d24$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $9cc56adabc671d24$var$_regenerator["default"].mark(function _callee(_files) {
|
|
9126
8033
|
var newFiles, newState;
|
|
9127
|
-
return $9cc56adabc671d24$var$
|
|
8034
|
+
return $9cc56adabc671d24$var$_regenerator["default"].wrap(function _callee$(_context) {
|
|
9128
8035
|
while(true)switch(_context.prev = _context.next){
|
|
9129
8036
|
case 0:
|
|
9130
8037
|
if (!(!_files.length || isUploading || maxFiles && files.length >= maxFiles)) {
|
|
@@ -9170,9 +8077,9 @@ var $9cc56adabc671d24$var$useFileDropper = function useFileDropper(props) {
|
|
|
9170
8077
|
};
|
|
9171
8078
|
}();
|
|
9172
8079
|
var handleRemove = /*#__PURE__*/ function() {
|
|
9173
|
-
var _ref2 = (0, $9cc56adabc671d24$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $9cc56adabc671d24$var$
|
|
8080
|
+
var _ref2 = (0, $9cc56adabc671d24$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $9cc56adabc671d24$var$_regenerator["default"].mark(function _callee2(file, i) {
|
|
9174
8081
|
var newState;
|
|
9175
|
-
return $9cc56adabc671d24$var$
|
|
8082
|
+
return $9cc56adabc671d24$var$_regenerator["default"].wrap(function _callee2$(_context2) {
|
|
9176
8083
|
while(true)switch(_context2.prev = _context2.next){
|
|
9177
8084
|
case 0:
|
|
9178
8085
|
if (!isRemoving) {
|
|
@@ -9326,6 +8233,8 @@ Object.defineProperty(module.exports, "__esModule", {
|
|
|
9326
8233
|
});
|
|
9327
8234
|
module.exports["default"] = void 0;
|
|
9328
8235
|
|
|
8236
|
+
var $39694de9ccf18c3d$var$_regenerator = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimeregenerator);
|
|
8237
|
+
|
|
9329
8238
|
var $39694de9ccf18c3d$var$_defineProperty2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersdefineProperty);
|
|
9330
8239
|
|
|
9331
8240
|
var $39694de9ccf18c3d$var$_asyncToGenerator2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersasyncToGenerator);
|
|
@@ -9405,294 +8314,6 @@ function $39694de9ccf18c3d$var$_objectSpread(target) {
|
|
|
9405
8314
|
}
|
|
9406
8315
|
return target;
|
|
9407
8316
|
}
|
|
9408
|
-
function $39694de9ccf18c3d$var$_regeneratorRuntime() {
|
|
9409
|
-
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
9410
|
-
$39694de9ccf18c3d$var$_regeneratorRuntime = function _regeneratorRuntime() {
|
|
9411
|
-
return exports1;
|
|
9412
|
-
};
|
|
9413
|
-
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";
|
|
9414
|
-
function define(obj, key, value) {
|
|
9415
|
-
return Object.defineProperty(obj, key, {
|
|
9416
|
-
value: value,
|
|
9417
|
-
enumerable: !0,
|
|
9418
|
-
configurable: !0,
|
|
9419
|
-
writable: !0
|
|
9420
|
-
}), obj[key];
|
|
9421
|
-
}
|
|
9422
|
-
try {
|
|
9423
|
-
define({}, "");
|
|
9424
|
-
} catch (err) {
|
|
9425
|
-
define = function define(obj, key, value) {
|
|
9426
|
-
return obj[key] = value;
|
|
9427
|
-
};
|
|
9428
|
-
}
|
|
9429
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
9430
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []);
|
|
9431
|
-
return generator._invoke = function(innerFn, self, context) {
|
|
9432
|
-
var state = "suspendedStart";
|
|
9433
|
-
return function(method, arg) {
|
|
9434
|
-
if ("executing" === state) throw new Error("Generator is already running");
|
|
9435
|
-
if ("completed" === state) {
|
|
9436
|
-
if ("throw" === method) throw arg;
|
|
9437
|
-
return doneResult();
|
|
9438
|
-
}
|
|
9439
|
-
for(context.method = method, context.arg = arg;;){
|
|
9440
|
-
var delegate = context.delegate;
|
|
9441
|
-
if (delegate) {
|
|
9442
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
9443
|
-
if (delegateResult) {
|
|
9444
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
9445
|
-
return delegateResult;
|
|
9446
|
-
}
|
|
9447
|
-
}
|
|
9448
|
-
if ("next" === context.method) context.sent = context._sent = context.arg;
|
|
9449
|
-
else if ("throw" === context.method) {
|
|
9450
|
-
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
9451
|
-
context.dispatchException(context.arg);
|
|
9452
|
-
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
9453
|
-
state = "executing";
|
|
9454
|
-
var record = tryCatch(innerFn, self, context);
|
|
9455
|
-
if ("normal" === record.type) {
|
|
9456
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
9457
|
-
return {
|
|
9458
|
-
value: record.arg,
|
|
9459
|
-
done: context.done
|
|
9460
|
-
};
|
|
9461
|
-
}
|
|
9462
|
-
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
9463
|
-
}
|
|
9464
|
-
};
|
|
9465
|
-
}(innerFn, self, context), generator;
|
|
9466
|
-
}
|
|
9467
|
-
function tryCatch(fn, obj, arg) {
|
|
9468
|
-
try {
|
|
9469
|
-
return {
|
|
9470
|
-
type: "normal",
|
|
9471
|
-
arg: fn.call(obj, arg)
|
|
9472
|
-
};
|
|
9473
|
-
} catch (err) {
|
|
9474
|
-
return {
|
|
9475
|
-
type: "throw",
|
|
9476
|
-
arg: err
|
|
9477
|
-
};
|
|
9478
|
-
}
|
|
9479
|
-
}
|
|
9480
|
-
exports1.wrap = wrap;
|
|
9481
|
-
var ContinueSentinel = {};
|
|
9482
|
-
function Generator() {}
|
|
9483
|
-
function GeneratorFunction() {}
|
|
9484
|
-
function GeneratorFunctionPrototype() {}
|
|
9485
|
-
var IteratorPrototype = {};
|
|
9486
|
-
define(IteratorPrototype, iteratorSymbol, function() {
|
|
9487
|
-
return this;
|
|
9488
|
-
});
|
|
9489
|
-
var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
9490
|
-
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
9491
|
-
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
9492
|
-
function defineIteratorMethods(prototype) {
|
|
9493
|
-
[
|
|
9494
|
-
"next",
|
|
9495
|
-
"throw",
|
|
9496
|
-
"return"
|
|
9497
|
-
].forEach(function(method) {
|
|
9498
|
-
define(prototype, method, function(arg) {
|
|
9499
|
-
return this._invoke(method, arg);
|
|
9500
|
-
});
|
|
9501
|
-
});
|
|
9502
|
-
}
|
|
9503
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
9504
|
-
function invoke(method, arg, resolve, reject) {
|
|
9505
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
9506
|
-
if ("throw" !== record.type) {
|
|
9507
|
-
var result = record.arg, value = result.value;
|
|
9508
|
-
return value && "object" == $gXNCa$babelruntimehelperstypeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function(value) {
|
|
9509
|
-
invoke("next", value, resolve, reject);
|
|
9510
|
-
}, function(err) {
|
|
9511
|
-
invoke("throw", err, resolve, reject);
|
|
9512
|
-
}) : PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
9513
|
-
result.value = unwrapped, resolve(result);
|
|
9514
|
-
}, function(error) {
|
|
9515
|
-
return invoke("throw", error, resolve, reject);
|
|
9516
|
-
});
|
|
9517
|
-
}
|
|
9518
|
-
reject(record.arg);
|
|
9519
|
-
}
|
|
9520
|
-
var previousPromise;
|
|
9521
|
-
this._invoke = function(method, arg) {
|
|
9522
|
-
function callInvokeWithMethodAndArg() {
|
|
9523
|
-
return new PromiseImpl(function(resolve, reject) {
|
|
9524
|
-
invoke(method, arg, resolve, reject);
|
|
9525
|
-
});
|
|
9526
|
-
}
|
|
9527
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
9528
|
-
};
|
|
9529
|
-
}
|
|
9530
|
-
function maybeInvokeDelegate(delegate, context) {
|
|
9531
|
-
var method = delegate.iterator[context.method];
|
|
9532
|
-
if (undefined === method) {
|
|
9533
|
-
if (context.delegate = null, "throw" === context.method) {
|
|
9534
|
-
if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
9535
|
-
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
9536
|
-
}
|
|
9537
|
-
return ContinueSentinel;
|
|
9538
|
-
}
|
|
9539
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
9540
|
-
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
9541
|
-
var info = record.arg;
|
|
9542
|
-
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);
|
|
9543
|
-
}
|
|
9544
|
-
function pushTryEntry(locs) {
|
|
9545
|
-
var entry = {
|
|
9546
|
-
tryLoc: locs[0]
|
|
9547
|
-
};
|
|
9548
|
-
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
9549
|
-
}
|
|
9550
|
-
function resetTryEntry(entry) {
|
|
9551
|
-
var record = entry.completion || {};
|
|
9552
|
-
record.type = "normal", delete record.arg, entry.completion = record;
|
|
9553
|
-
}
|
|
9554
|
-
function Context(tryLocsList) {
|
|
9555
|
-
this.tryEntries = [
|
|
9556
|
-
{
|
|
9557
|
-
tryLoc: "root"
|
|
9558
|
-
}
|
|
9559
|
-
], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
9560
|
-
}
|
|
9561
|
-
function values(iterable) {
|
|
9562
|
-
if (iterable) {
|
|
9563
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
9564
|
-
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
9565
|
-
if ("function" == typeof iterable.next) return iterable;
|
|
9566
|
-
if (!isNaN(iterable.length)) {
|
|
9567
|
-
var i = -1, next = function next() {
|
|
9568
|
-
for(; ++i < iterable.length;){
|
|
9569
|
-
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
9570
|
-
}
|
|
9571
|
-
return next.value = undefined, next.done = !0, next;
|
|
9572
|
-
};
|
|
9573
|
-
return next.next = next;
|
|
9574
|
-
}
|
|
9575
|
-
}
|
|
9576
|
-
return {
|
|
9577
|
-
next: doneResult
|
|
9578
|
-
};
|
|
9579
|
-
}
|
|
9580
|
-
function doneResult() {
|
|
9581
|
-
return {
|
|
9582
|
-
value: undefined,
|
|
9583
|
-
done: !0
|
|
9584
|
-
};
|
|
9585
|
-
}
|
|
9586
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports1.isGeneratorFunction = function(genFun) {
|
|
9587
|
-
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
9588
|
-
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
9589
|
-
}, exports1.mark = function(genFun) {
|
|
9590
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
9591
|
-
}, exports1.awrap = function(arg) {
|
|
9592
|
-
return {
|
|
9593
|
-
__await: arg
|
|
9594
|
-
};
|
|
9595
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function() {
|
|
9596
|
-
return this;
|
|
9597
|
-
}), exports1.AsyncIterator = AsyncIterator, exports1.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
9598
|
-
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
9599
|
-
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
9600
|
-
return exports1.isGeneratorFunction(outerFn) ? iter : iter.next().then(function(result) {
|
|
9601
|
-
return result.done ? result.value : iter.next();
|
|
9602
|
-
});
|
|
9603
|
-
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function() {
|
|
9604
|
-
return this;
|
|
9605
|
-
}), define(Gp, "toString", function() {
|
|
9606
|
-
return "[object Generator]";
|
|
9607
|
-
}), exports1.keys = function(object) {
|
|
9608
|
-
var keys = [];
|
|
9609
|
-
for(var key in object)keys.push(key);
|
|
9610
|
-
return keys.reverse(), function next() {
|
|
9611
|
-
for(; keys.length;){
|
|
9612
|
-
var key = keys.pop();
|
|
9613
|
-
if (key in object) return next.value = key, next.done = !1, next;
|
|
9614
|
-
}
|
|
9615
|
-
return next.done = !0, next;
|
|
9616
|
-
};
|
|
9617
|
-
}, exports1.values = values, Context.prototype = {
|
|
9618
|
-
constructor: Context,
|
|
9619
|
-
reset: function reset(skipTempReset) {
|
|
9620
|
-
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);
|
|
9621
|
-
},
|
|
9622
|
-
stop: function stop() {
|
|
9623
|
-
this.done = !0;
|
|
9624
|
-
var rootRecord = this.tryEntries[0].completion;
|
|
9625
|
-
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
9626
|
-
return this.rval;
|
|
9627
|
-
},
|
|
9628
|
-
dispatchException: function dispatchException(exception) {
|
|
9629
|
-
if (this.done) throw exception;
|
|
9630
|
-
var context = this;
|
|
9631
|
-
function handle(loc, caught) {
|
|
9632
|
-
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
9633
|
-
}
|
|
9634
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
9635
|
-
var entry = this.tryEntries[i], record = entry.completion;
|
|
9636
|
-
if ("root" === entry.tryLoc) return handle("end");
|
|
9637
|
-
if (entry.tryLoc <= this.prev) {
|
|
9638
|
-
var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
9639
|
-
if (hasCatch && hasFinally) {
|
|
9640
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
9641
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
9642
|
-
} else if (hasCatch) {
|
|
9643
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
9644
|
-
} else {
|
|
9645
|
-
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
9646
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
9647
|
-
}
|
|
9648
|
-
}
|
|
9649
|
-
}
|
|
9650
|
-
},
|
|
9651
|
-
abrupt: function abrupt(type, arg) {
|
|
9652
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
9653
|
-
var entry = this.tryEntries[i];
|
|
9654
|
-
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
9655
|
-
var finallyEntry = entry;
|
|
9656
|
-
break;
|
|
9657
|
-
}
|
|
9658
|
-
}
|
|
9659
|
-
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
9660
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
9661
|
-
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
9662
|
-
},
|
|
9663
|
-
complete: function complete(record, afterLoc) {
|
|
9664
|
-
if ("throw" === record.type) throw record.arg;
|
|
9665
|
-
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;
|
|
9666
|
-
},
|
|
9667
|
-
finish: function finish(finallyLoc) {
|
|
9668
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
9669
|
-
var entry = this.tryEntries[i];
|
|
9670
|
-
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
9671
|
-
}
|
|
9672
|
-
},
|
|
9673
|
-
"catch": function _catch(tryLoc) {
|
|
9674
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
9675
|
-
var entry = this.tryEntries[i];
|
|
9676
|
-
if (entry.tryLoc === tryLoc) {
|
|
9677
|
-
var record = entry.completion;
|
|
9678
|
-
if ("throw" === record.type) {
|
|
9679
|
-
var thrown = record.arg;
|
|
9680
|
-
resetTryEntry(entry);
|
|
9681
|
-
}
|
|
9682
|
-
return thrown;
|
|
9683
|
-
}
|
|
9684
|
-
}
|
|
9685
|
-
throw new Error("illegal catch attempt");
|
|
9686
|
-
},
|
|
9687
|
-
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
9688
|
-
return this.delegate = {
|
|
9689
|
-
iterator: values(iterable),
|
|
9690
|
-
resultName: resultName,
|
|
9691
|
-
nextLoc: nextLoc
|
|
9692
|
-
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
9693
|
-
}
|
|
9694
|
-
}, exports1;
|
|
9695
|
-
}
|
|
9696
8317
|
var $39694de9ccf18c3d$var$WrapperIcon = function WrapperIcon(props) {
|
|
9697
8318
|
var badgeContent = props.badgeContent, badgeColor = props.badgeColor, children = props.children;
|
|
9698
8319
|
if (badgeContent) return /*#__PURE__*/ $39694de9ccf18c3d$var$_react["default"].createElement($gXNCa$muimaterial.Badge, {
|
|
@@ -9718,9 +8339,9 @@ var $39694de9ccf18c3d$var$InlineButton = function InlineButton(props) {
|
|
|
9718
8339
|
};
|
|
9719
8340
|
var marginClassname = marginClassesMap[marginDirection];
|
|
9720
8341
|
var _onClick = /*#__PURE__*/ function() {
|
|
9721
|
-
var _ref = (0, $39694de9ccf18c3d$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $39694de9ccf18c3d$var$
|
|
8342
|
+
var _ref = (0, $39694de9ccf18c3d$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $39694de9ccf18c3d$var$_regenerator["default"].mark(function _callee(e, button) {
|
|
9722
8343
|
var _button$onClick;
|
|
9723
|
-
return $39694de9ccf18c3d$var$
|
|
8344
|
+
return $39694de9ccf18c3d$var$_regenerator["default"].wrap(function _callee$(_context) {
|
|
9724
8345
|
while(true)switch(_context.prev = _context.next){
|
|
9725
8346
|
case 0:
|
|
9726
8347
|
if (!button.onClick) {
|
|
@@ -10037,7 +8658,8 @@ var $c540f60a589f33c4$var$Button = function Button(props) {
|
|
|
10037
8658
|
variant: variant,
|
|
10038
8659
|
disabled: disabled
|
|
10039
8660
|
})));
|
|
10040
|
-
};
|
|
8661
|
+
};
|
|
8662
|
+
// Props
|
|
10041
8663
|
$c540f60a589f33c4$var$Button.propTypes = {
|
|
10042
8664
|
color: $c540f60a589f33c4$var$_propTypes["default"].oneOf([
|
|
10043
8665
|
"primary",
|
|
@@ -10366,6 +8988,12 @@ Object.defineProperty(module.exports, "SwapIcon", {
|
|
|
10366
8988
|
return $896cfc3b1dfae9aa$var$_SwapIcon["default"];
|
|
10367
8989
|
}
|
|
10368
8990
|
});
|
|
8991
|
+
Object.defineProperty(module.exports, "TableIcon", {
|
|
8992
|
+
enumerable: true,
|
|
8993
|
+
get: function get() {
|
|
8994
|
+
return $896cfc3b1dfae9aa$var$_TableIcon["default"];
|
|
8995
|
+
}
|
|
8996
|
+
});
|
|
10369
8997
|
Object.defineProperty(module.exports, "TrashIcon", {
|
|
10370
8998
|
enumerable: true,
|
|
10371
8999
|
get: function get() {
|
|
@@ -10423,6 +9051,8 @@ var $896cfc3b1dfae9aa$var$_SplitIcon = $gXNCa$babelruntimehelpersinteropRequireD
|
|
|
10423
9051
|
|
|
10424
9052
|
var $896cfc3b1dfae9aa$var$_SwapIcon = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("4hMUK")));
|
|
10425
9053
|
|
|
9054
|
+
var $896cfc3b1dfae9aa$var$_TableIcon = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("fyoLq")));
|
|
9055
|
+
|
|
10426
9056
|
var $896cfc3b1dfae9aa$var$_TrashIcon = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("4LhmC")));
|
|
10427
9057
|
|
|
10428
9058
|
var $896cfc3b1dfae9aa$var$_UploadIcon = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("430sF")));
|
|
@@ -10482,22 +9112,31 @@ Object.defineProperty(module.exports, "__esModule", {
|
|
|
10482
9112
|
});
|
|
10483
9113
|
module.exports["default"] = void 0;
|
|
10484
9114
|
|
|
9115
|
+
var $ba71576b896e480a$var$_extends2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersextends);
|
|
9116
|
+
|
|
9117
|
+
var $ba71576b896e480a$var$_objectWithoutProperties2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersobjectWithoutProperties);
|
|
9118
|
+
|
|
10485
9119
|
var $ba71576b896e480a$var$_react = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$react);
|
|
10486
9120
|
|
|
10487
9121
|
var $ba71576b896e480a$var$_propTypes = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$proptypes);
|
|
10488
9122
|
|
|
10489
9123
|
var $auDXv = parcelRequire("auDXv");
|
|
9124
|
+
var $ba71576b896e480a$var$_excluded = [
|
|
9125
|
+
"content",
|
|
9126
|
+
"size",
|
|
9127
|
+
"color"
|
|
9128
|
+
];
|
|
10490
9129
|
var $ba71576b896e480a$var$Icon = function Icon(_ref) {
|
|
10491
|
-
var content = _ref.content, size = _ref.size, color = _ref.color;
|
|
9130
|
+
var content = _ref.content, size = _ref.size, color = _ref.color, rest = (0, $ba71576b896e480a$var$_objectWithoutProperties2["default"])(_ref, $ba71576b896e480a$var$_excluded);
|
|
10492
9131
|
var calculatedSize = (0, $auDXv.calculateSize)(size);
|
|
10493
|
-
return /*#__PURE__*/ $ba71576b896e480a$var$_react["default"].createElement("svg", {
|
|
9132
|
+
return /*#__PURE__*/ $ba71576b896e480a$var$_react["default"].createElement("svg", (0, $ba71576b896e480a$var$_extends2["default"])({
|
|
10494
9133
|
width: calculatedSize,
|
|
10495
9134
|
height: calculatedSize,
|
|
10496
9135
|
viewBox: "0 0 20 20",
|
|
10497
9136
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10498
9137
|
display: "flex",
|
|
10499
9138
|
color: color
|
|
10500
|
-
}, content);
|
|
9139
|
+
}, rest), content);
|
|
10501
9140
|
};
|
|
10502
9141
|
$ba71576b896e480a$var$Icon.propTypes = {
|
|
10503
9142
|
color: $ba71576b896e480a$var$_propTypes["default"].string,
|
|
@@ -11244,6 +9883,37 @@ module.exports["default"] = $31eeb14c4cf3c2b0$var$_default;
|
|
|
11244
9883
|
|
|
11245
9884
|
});
|
|
11246
9885
|
|
|
9886
|
+
parcelRequire.register("fyoLq", function(module, exports) {
|
|
9887
|
+
"use strict";
|
|
9888
|
+
|
|
9889
|
+
Object.defineProperty(module.exports, "__esModule", {
|
|
9890
|
+
value: true
|
|
9891
|
+
});
|
|
9892
|
+
module.exports["default"] = void 0;
|
|
9893
|
+
|
|
9894
|
+
var $b52d3d996f0b74e2$var$_extends2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersextends);
|
|
9895
|
+
|
|
9896
|
+
var $b52d3d996f0b74e2$var$_react = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$react);
|
|
9897
|
+
|
|
9898
|
+
var $b52d3d996f0b74e2$var$_Icon = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("g0qGb")));
|
|
9899
|
+
var $b52d3d996f0b74e2$var$TableIcon = function TableIcon(props) {
|
|
9900
|
+
var c = /*#__PURE__*/ $b52d3d996f0b74e2$var$_react["default"].createElement("g", {
|
|
9901
|
+
fillRule: "evenodd"
|
|
9902
|
+
}, /*#__PURE__*/ $b52d3d996f0b74e2$var$_react["default"].createElement("path", {
|
|
9903
|
+
fillRule: "nonzero",
|
|
9904
|
+
d: "M18.718 0c.446 0 .607.046.77.134a.906.906 0 01.378.378c.088.163.134.324.134.77v17.436c0 .446-.046.607-.134.77a.909.909 0 01-.378.378c-.163.088-.324.134-.77.134H1.282c-.446 0-.607-.046-.77-.134a.909.909 0 01-.378-.378c-.088-.163-.134-.324-.134-.77V1.282C0 .836.046.675.134.512A.909.909 0 01.512.134C.675.046.836 0 1.282 0h17.436zm.274 1.007l-.073-.005H1.081l-.074.005-.005.074v17.838l.005.073.074.006.2.002 17.638-.002.073-.006.006-.073.002-.2-.002-17.638-.006-.074z"
|
|
9905
|
+
}), /*#__PURE__*/ $b52d3d996f0b74e2$var$_react["default"].createElement("path", {
|
|
9906
|
+
d: "M5.5 5h1a.5.5 0 010 1h-1a.5.5 0 010-1zm0 6h1a.5.5 0 110 1h-1a.5.5 0 110-1zm0 3h1a.5.5 0 110 1h-1a.5.5 0 110-1zm0-6h1a.5.5 0 010 1h-1a.5.5 0 010-1zm3-3h6a.5.5 0 110 1h-6a.5.5 0 010-1zm0 6h6a.5.5 0 110 1h-6a.5.5 0 110-1zm0 3h6a.5.5 0 110 1h-6a.5.5 0 110-1zm0-6h6a.5.5 0 110 1h-6a.5.5 0 010-1z"
|
|
9907
|
+
}));
|
|
9908
|
+
return /*#__PURE__*/ $b52d3d996f0b74e2$var$_react["default"].createElement($b52d3d996f0b74e2$var$_Icon["default"], (0, $b52d3d996f0b74e2$var$_extends2["default"])({
|
|
9909
|
+
content: c
|
|
9910
|
+
}, props));
|
|
9911
|
+
};
|
|
9912
|
+
var $b52d3d996f0b74e2$var$_default = $b52d3d996f0b74e2$var$TableIcon;
|
|
9913
|
+
module.exports["default"] = $b52d3d996f0b74e2$var$_default;
|
|
9914
|
+
|
|
9915
|
+
});
|
|
9916
|
+
|
|
11247
9917
|
parcelRequire.register("4LhmC", function(module, exports) {
|
|
11248
9918
|
"use strict";
|
|
11249
9919
|
|
|
@@ -11569,6 +10239,8 @@ Object.defineProperty(module.exports, "__esModule", {
|
|
|
11569
10239
|
});
|
|
11570
10240
|
module.exports["default"] = void 0;
|
|
11571
10241
|
|
|
10242
|
+
var $3e6285a7fb5d9790$var$_regenerator = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimeregenerator);
|
|
10243
|
+
|
|
11572
10244
|
var $3e6285a7fb5d9790$var$_asyncToGenerator2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersasyncToGenerator);
|
|
11573
10245
|
|
|
11574
10246
|
var $3e6285a7fb5d9790$var$_slicedToArray2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersslicedToArray);
|
|
@@ -11578,323 +10250,35 @@ var $3e6285a7fb5d9790$var$_propTypes = $gXNCa$babelruntimehelpersinteropRequireD
|
|
|
11578
10250
|
var $3e6285a7fb5d9790$var$_react = $3e6285a7fb5d9790$var$_interopRequireWildcard($gXNCa$react);
|
|
11579
10251
|
|
|
11580
10252
|
var $3e6285a7fb5d9790$var$_I18n = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("b4Pcp")));
|
|
11581
|
-
|
|
11582
|
-
var $3e6285a7fb5d9790$var$_Button = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("gVYzZ")));
|
|
11583
|
-
|
|
11584
|
-
var $3e6285a7fb5d9790$var$_styles = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("b2Nld")));
|
|
11585
|
-
function $3e6285a7fb5d9790$var$_getRequireWildcardCache(nodeInterop) {
|
|
11586
|
-
if (typeof WeakMap !== "function") return null;
|
|
11587
|
-
var cacheBabelInterop = new WeakMap();
|
|
11588
|
-
var cacheNodeInterop = new WeakMap();
|
|
11589
|
-
return ($3e6285a7fb5d9790$var$_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) {
|
|
11590
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
11591
|
-
})(nodeInterop);
|
|
11592
|
-
}
|
|
11593
|
-
function $3e6285a7fb5d9790$var$_interopRequireWildcard(obj, nodeInterop) {
|
|
11594
|
-
if (!nodeInterop && obj && obj.__esModule) return obj;
|
|
11595
|
-
if (obj === null || $gXNCa$babelruntimehelperstypeof(obj) !== "object" && typeof obj !== "function") return {
|
|
11596
|
-
"default": obj
|
|
11597
|
-
};
|
|
11598
|
-
var cache = $3e6285a7fb5d9790$var$_getRequireWildcardCache(nodeInterop);
|
|
11599
|
-
if (cache && cache.has(obj)) return cache.get(obj);
|
|
11600
|
-
var newObj = {};
|
|
11601
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
11602
|
-
for(var key in obj)if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
11603
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
11604
|
-
if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc);
|
|
11605
|
-
else newObj[key] = obj[key];
|
|
11606
|
-
}
|
|
11607
|
-
newObj["default"] = obj;
|
|
11608
|
-
if (cache) cache.set(obj, newObj);
|
|
11609
|
-
return newObj;
|
|
11610
|
-
}
|
|
11611
|
-
function $3e6285a7fb5d9790$var$_regeneratorRuntime() {
|
|
11612
|
-
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
11613
|
-
$3e6285a7fb5d9790$var$_regeneratorRuntime = function _regeneratorRuntime() {
|
|
11614
|
-
return exports1;
|
|
11615
|
-
};
|
|
11616
|
-
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";
|
|
11617
|
-
function define(obj, key, value) {
|
|
11618
|
-
return Object.defineProperty(obj, key, {
|
|
11619
|
-
value: value,
|
|
11620
|
-
enumerable: !0,
|
|
11621
|
-
configurable: !0,
|
|
11622
|
-
writable: !0
|
|
11623
|
-
}), obj[key];
|
|
11624
|
-
}
|
|
11625
|
-
try {
|
|
11626
|
-
define({}, "");
|
|
11627
|
-
} catch (err) {
|
|
11628
|
-
define = function define(obj, key, value) {
|
|
11629
|
-
return obj[key] = value;
|
|
11630
|
-
};
|
|
11631
|
-
}
|
|
11632
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
11633
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []);
|
|
11634
|
-
return generator._invoke = function(innerFn, self, context) {
|
|
11635
|
-
var state = "suspendedStart";
|
|
11636
|
-
return function(method, arg) {
|
|
11637
|
-
if ("executing" === state) throw new Error("Generator is already running");
|
|
11638
|
-
if ("completed" === state) {
|
|
11639
|
-
if ("throw" === method) throw arg;
|
|
11640
|
-
return doneResult();
|
|
11641
|
-
}
|
|
11642
|
-
for(context.method = method, context.arg = arg;;){
|
|
11643
|
-
var delegate = context.delegate;
|
|
11644
|
-
if (delegate) {
|
|
11645
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
11646
|
-
if (delegateResult) {
|
|
11647
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
11648
|
-
return delegateResult;
|
|
11649
|
-
}
|
|
11650
|
-
}
|
|
11651
|
-
if ("next" === context.method) context.sent = context._sent = context.arg;
|
|
11652
|
-
else if ("throw" === context.method) {
|
|
11653
|
-
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
11654
|
-
context.dispatchException(context.arg);
|
|
11655
|
-
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
11656
|
-
state = "executing";
|
|
11657
|
-
var record = tryCatch(innerFn, self, context);
|
|
11658
|
-
if ("normal" === record.type) {
|
|
11659
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
11660
|
-
return {
|
|
11661
|
-
value: record.arg,
|
|
11662
|
-
done: context.done
|
|
11663
|
-
};
|
|
11664
|
-
}
|
|
11665
|
-
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
11666
|
-
}
|
|
11667
|
-
};
|
|
11668
|
-
}(innerFn, self, context), generator;
|
|
11669
|
-
}
|
|
11670
|
-
function tryCatch(fn, obj, arg) {
|
|
11671
|
-
try {
|
|
11672
|
-
return {
|
|
11673
|
-
type: "normal",
|
|
11674
|
-
arg: fn.call(obj, arg)
|
|
11675
|
-
};
|
|
11676
|
-
} catch (err) {
|
|
11677
|
-
return {
|
|
11678
|
-
type: "throw",
|
|
11679
|
-
arg: err
|
|
11680
|
-
};
|
|
11681
|
-
}
|
|
11682
|
-
}
|
|
11683
|
-
exports1.wrap = wrap;
|
|
11684
|
-
var ContinueSentinel = {};
|
|
11685
|
-
function Generator() {}
|
|
11686
|
-
function GeneratorFunction() {}
|
|
11687
|
-
function GeneratorFunctionPrototype() {}
|
|
11688
|
-
var IteratorPrototype = {};
|
|
11689
|
-
define(IteratorPrototype, iteratorSymbol, function() {
|
|
11690
|
-
return this;
|
|
11691
|
-
});
|
|
11692
|
-
var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
11693
|
-
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
11694
|
-
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
11695
|
-
function defineIteratorMethods(prototype) {
|
|
11696
|
-
[
|
|
11697
|
-
"next",
|
|
11698
|
-
"throw",
|
|
11699
|
-
"return"
|
|
11700
|
-
].forEach(function(method) {
|
|
11701
|
-
define(prototype, method, function(arg) {
|
|
11702
|
-
return this._invoke(method, arg);
|
|
11703
|
-
});
|
|
11704
|
-
});
|
|
11705
|
-
}
|
|
11706
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
11707
|
-
function invoke(method, arg, resolve, reject) {
|
|
11708
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
11709
|
-
if ("throw" !== record.type) {
|
|
11710
|
-
var result = record.arg, value = result.value;
|
|
11711
|
-
return value && "object" == $gXNCa$babelruntimehelperstypeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function(value) {
|
|
11712
|
-
invoke("next", value, resolve, reject);
|
|
11713
|
-
}, function(err) {
|
|
11714
|
-
invoke("throw", err, resolve, reject);
|
|
11715
|
-
}) : PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
11716
|
-
result.value = unwrapped, resolve(result);
|
|
11717
|
-
}, function(error) {
|
|
11718
|
-
return invoke("throw", error, resolve, reject);
|
|
11719
|
-
});
|
|
11720
|
-
}
|
|
11721
|
-
reject(record.arg);
|
|
11722
|
-
}
|
|
11723
|
-
var previousPromise;
|
|
11724
|
-
this._invoke = function(method, arg) {
|
|
11725
|
-
function callInvokeWithMethodAndArg() {
|
|
11726
|
-
return new PromiseImpl(function(resolve, reject) {
|
|
11727
|
-
invoke(method, arg, resolve, reject);
|
|
11728
|
-
});
|
|
11729
|
-
}
|
|
11730
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
11731
|
-
};
|
|
11732
|
-
}
|
|
11733
|
-
function maybeInvokeDelegate(delegate, context) {
|
|
11734
|
-
var method = delegate.iterator[context.method];
|
|
11735
|
-
if (undefined === method) {
|
|
11736
|
-
if (context.delegate = null, "throw" === context.method) {
|
|
11737
|
-
if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
11738
|
-
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
11739
|
-
}
|
|
11740
|
-
return ContinueSentinel;
|
|
11741
|
-
}
|
|
11742
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
11743
|
-
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
11744
|
-
var info = record.arg;
|
|
11745
|
-
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);
|
|
11746
|
-
}
|
|
11747
|
-
function pushTryEntry(locs) {
|
|
11748
|
-
var entry = {
|
|
11749
|
-
tryLoc: locs[0]
|
|
11750
|
-
};
|
|
11751
|
-
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
11752
|
-
}
|
|
11753
|
-
function resetTryEntry(entry) {
|
|
11754
|
-
var record = entry.completion || {};
|
|
11755
|
-
record.type = "normal", delete record.arg, entry.completion = record;
|
|
11756
|
-
}
|
|
11757
|
-
function Context(tryLocsList) {
|
|
11758
|
-
this.tryEntries = [
|
|
11759
|
-
{
|
|
11760
|
-
tryLoc: "root"
|
|
11761
|
-
}
|
|
11762
|
-
], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
11763
|
-
}
|
|
11764
|
-
function values(iterable) {
|
|
11765
|
-
if (iterable) {
|
|
11766
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
11767
|
-
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
11768
|
-
if ("function" == typeof iterable.next) return iterable;
|
|
11769
|
-
if (!isNaN(iterable.length)) {
|
|
11770
|
-
var i = -1, next = function next() {
|
|
11771
|
-
for(; ++i < iterable.length;){
|
|
11772
|
-
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
11773
|
-
}
|
|
11774
|
-
return next.value = undefined, next.done = !0, next;
|
|
11775
|
-
};
|
|
11776
|
-
return next.next = next;
|
|
11777
|
-
}
|
|
11778
|
-
}
|
|
11779
|
-
return {
|
|
11780
|
-
next: doneResult
|
|
11781
|
-
};
|
|
11782
|
-
}
|
|
11783
|
-
function doneResult() {
|
|
11784
|
-
return {
|
|
11785
|
-
value: undefined,
|
|
11786
|
-
done: !0
|
|
11787
|
-
};
|
|
10253
|
+
|
|
10254
|
+
var $3e6285a7fb5d9790$var$_Button = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("gVYzZ")));
|
|
10255
|
+
|
|
10256
|
+
var $3e6285a7fb5d9790$var$_styles = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("b2Nld")));
|
|
10257
|
+
function $3e6285a7fb5d9790$var$_getRequireWildcardCache(nodeInterop) {
|
|
10258
|
+
if (typeof WeakMap !== "function") return null;
|
|
10259
|
+
var cacheBabelInterop = new WeakMap();
|
|
10260
|
+
var cacheNodeInterop = new WeakMap();
|
|
10261
|
+
return ($3e6285a7fb5d9790$var$_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) {
|
|
10262
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
10263
|
+
})(nodeInterop);
|
|
10264
|
+
}
|
|
10265
|
+
function $3e6285a7fb5d9790$var$_interopRequireWildcard(obj, nodeInterop) {
|
|
10266
|
+
if (!nodeInterop && obj && obj.__esModule) return obj;
|
|
10267
|
+
if (obj === null || $gXNCa$babelruntimehelperstypeof(obj) !== "object" && typeof obj !== "function") return {
|
|
10268
|
+
"default": obj
|
|
10269
|
+
};
|
|
10270
|
+
var cache = $3e6285a7fb5d9790$var$_getRequireWildcardCache(nodeInterop);
|
|
10271
|
+
if (cache && cache.has(obj)) return cache.get(obj);
|
|
10272
|
+
var newObj = {};
|
|
10273
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
10274
|
+
for(var key in obj)if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
10275
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
10276
|
+
if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc);
|
|
10277
|
+
else newObj[key] = obj[key];
|
|
11788
10278
|
}
|
|
11789
|
-
|
|
11790
|
-
|
|
11791
|
-
|
|
11792
|
-
}, exports1.mark = function(genFun) {
|
|
11793
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
11794
|
-
}, exports1.awrap = function(arg) {
|
|
11795
|
-
return {
|
|
11796
|
-
__await: arg
|
|
11797
|
-
};
|
|
11798
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function() {
|
|
11799
|
-
return this;
|
|
11800
|
-
}), exports1.AsyncIterator = AsyncIterator, exports1.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
11801
|
-
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
11802
|
-
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
11803
|
-
return exports1.isGeneratorFunction(outerFn) ? iter : iter.next().then(function(result) {
|
|
11804
|
-
return result.done ? result.value : iter.next();
|
|
11805
|
-
});
|
|
11806
|
-
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function() {
|
|
11807
|
-
return this;
|
|
11808
|
-
}), define(Gp, "toString", function() {
|
|
11809
|
-
return "[object Generator]";
|
|
11810
|
-
}), exports1.keys = function(object) {
|
|
11811
|
-
var keys = [];
|
|
11812
|
-
for(var key in object)keys.push(key);
|
|
11813
|
-
return keys.reverse(), function next() {
|
|
11814
|
-
for(; keys.length;){
|
|
11815
|
-
var key = keys.pop();
|
|
11816
|
-
if (key in object) return next.value = key, next.done = !1, next;
|
|
11817
|
-
}
|
|
11818
|
-
return next.done = !0, next;
|
|
11819
|
-
};
|
|
11820
|
-
}, exports1.values = values, Context.prototype = {
|
|
11821
|
-
constructor: Context,
|
|
11822
|
-
reset: function reset(skipTempReset) {
|
|
11823
|
-
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);
|
|
11824
|
-
},
|
|
11825
|
-
stop: function stop() {
|
|
11826
|
-
this.done = !0;
|
|
11827
|
-
var rootRecord = this.tryEntries[0].completion;
|
|
11828
|
-
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
11829
|
-
return this.rval;
|
|
11830
|
-
},
|
|
11831
|
-
dispatchException: function dispatchException(exception) {
|
|
11832
|
-
if (this.done) throw exception;
|
|
11833
|
-
var context = this;
|
|
11834
|
-
function handle(loc, caught) {
|
|
11835
|
-
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
11836
|
-
}
|
|
11837
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
11838
|
-
var entry = this.tryEntries[i], record = entry.completion;
|
|
11839
|
-
if ("root" === entry.tryLoc) return handle("end");
|
|
11840
|
-
if (entry.tryLoc <= this.prev) {
|
|
11841
|
-
var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
11842
|
-
if (hasCatch && hasFinally) {
|
|
11843
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
11844
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
11845
|
-
} else if (hasCatch) {
|
|
11846
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
11847
|
-
} else {
|
|
11848
|
-
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
11849
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
11850
|
-
}
|
|
11851
|
-
}
|
|
11852
|
-
}
|
|
11853
|
-
},
|
|
11854
|
-
abrupt: function abrupt(type, arg) {
|
|
11855
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
11856
|
-
var entry = this.tryEntries[i];
|
|
11857
|
-
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
11858
|
-
var finallyEntry = entry;
|
|
11859
|
-
break;
|
|
11860
|
-
}
|
|
11861
|
-
}
|
|
11862
|
-
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
11863
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
11864
|
-
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
11865
|
-
},
|
|
11866
|
-
complete: function complete(record, afterLoc) {
|
|
11867
|
-
if ("throw" === record.type) throw record.arg;
|
|
11868
|
-
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;
|
|
11869
|
-
},
|
|
11870
|
-
finish: function finish(finallyLoc) {
|
|
11871
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
11872
|
-
var entry = this.tryEntries[i];
|
|
11873
|
-
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
11874
|
-
}
|
|
11875
|
-
},
|
|
11876
|
-
"catch": function _catch(tryLoc) {
|
|
11877
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
11878
|
-
var entry = this.tryEntries[i];
|
|
11879
|
-
if (entry.tryLoc === tryLoc) {
|
|
11880
|
-
var record = entry.completion;
|
|
11881
|
-
if ("throw" === record.type) {
|
|
11882
|
-
var thrown = record.arg;
|
|
11883
|
-
resetTryEntry(entry);
|
|
11884
|
-
}
|
|
11885
|
-
return thrown;
|
|
11886
|
-
}
|
|
11887
|
-
}
|
|
11888
|
-
throw new Error("illegal catch attempt");
|
|
11889
|
-
},
|
|
11890
|
-
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
11891
|
-
return this.delegate = {
|
|
11892
|
-
iterator: values(iterable),
|
|
11893
|
-
resultName: resultName,
|
|
11894
|
-
nextLoc: nextLoc
|
|
11895
|
-
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
11896
|
-
}
|
|
11897
|
-
}, exports1;
|
|
10279
|
+
newObj["default"] = obj;
|
|
10280
|
+
if (cache) cache.set(obj, newObj);
|
|
10281
|
+
return newObj;
|
|
11898
10282
|
}
|
|
11899
10283
|
var $3e6285a7fb5d9790$var$ButtonCell = function ButtonCell(_ref) {
|
|
11900
10284
|
var data = _ref.data, dataKey = _ref.dataKey, column = _ref.column, isDisabled = _ref.isDisabled;
|
|
@@ -11905,8 +10289,8 @@ var $3e6285a7fb5d9790$var$ButtonCell = function ButtonCell(_ref) {
|
|
|
11905
10289
|
return _onClick.apply(this, arguments);
|
|
11906
10290
|
}
|
|
11907
10291
|
function _onClick() {
|
|
11908
|
-
_onClick = (0, $3e6285a7fb5d9790$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $3e6285a7fb5d9790$var$
|
|
11909
|
-
return $3e6285a7fb5d9790$var$
|
|
10292
|
+
_onClick = (0, $3e6285a7fb5d9790$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $3e6285a7fb5d9790$var$_regenerator["default"].mark(function _callee() {
|
|
10293
|
+
return $3e6285a7fb5d9790$var$_regenerator["default"].wrap(function _callee$(_context) {
|
|
11910
10294
|
while(true)switch(_context.prev = _context.next){
|
|
11911
10295
|
case 0:
|
|
11912
10296
|
_context.prev = 0;
|
|
@@ -12373,7 +10757,8 @@ var $9989899389fa060b$var$AutocompleteEdit = /*#__PURE__*/ (0, $9989899389fa060b
|
|
|
12373
10757
|
}, label));
|
|
12374
10758
|
},
|
|
12375
10759
|
filterOptions: function filterOptions(options, params) {
|
|
12376
|
-
var filtered = filter(options, params);
|
|
10760
|
+
var filtered = filter(options, params);
|
|
10761
|
+
// Suggest the creation of a new value
|
|
12377
10762
|
if (params.inputValue !== "" && filtered.length === 0 && canCreate) filtered.push({
|
|
12378
10763
|
inputValue: params.inputValue,
|
|
12379
10764
|
label: $9989899389fa060b$var$_I18n["default"].t("autocomplete.createOption", {
|
|
@@ -12497,7 +10882,7 @@ var $e051837645aae399$var$useStyles = (0, $e051837645aae399$var$_makeStyles["def
|
|
|
12497
10882
|
},
|
|
12498
10883
|
pointer: {
|
|
12499
10884
|
cursor: "pointer",
|
|
12500
|
-
"&:hover": {
|
|
10885
|
+
"&:hover > *": {
|
|
12501
10886
|
textDecoration: "underline"
|
|
12502
10887
|
}
|
|
12503
10888
|
},
|
|
@@ -12637,6 +11022,32 @@ module.exports["default"] = $9d2199f26db3ff55$var$_default;
|
|
|
12637
11022
|
});
|
|
12638
11023
|
|
|
12639
11024
|
|
|
11025
|
+
parcelRequire.register("3LtOr", function(module, exports) {
|
|
11026
|
+
"use strict";
|
|
11027
|
+
Object.defineProperty(module.exports, "__esModule", {
|
|
11028
|
+
value: true
|
|
11029
|
+
});
|
|
11030
|
+
module.exports.useSecured = void 0;
|
|
11031
|
+
|
|
11032
|
+
var $ckVq7 = parcelRequire("ckVq7");
|
|
11033
|
+
|
|
11034
|
+
var $4vYVW = parcelRequire("4vYVW");
|
|
11035
|
+
var $2bdce305434549fd$var$useSecured = function useSecured(row) {
|
|
11036
|
+
var _useConfig = (0, $ckVq7.useConfig)(), _useConfig$config = _useConfig.config, unlockedRowsIds = _useConfig$config.unlockedRowsIds, selectableRowKey = _useConfig$config.selectableRowKey, hasSecuredRows = _useConfig$config.hasSecuredRows;
|
|
11037
|
+
var isSecuredRow_ = (0, $4vYVW.isLockedRow)({
|
|
11038
|
+
hasSecuredRows: hasSecuredRows,
|
|
11039
|
+
row: row,
|
|
11040
|
+
unlockedRowsIds: unlockedRowsIds,
|
|
11041
|
+
selectableRowKey: selectableRowKey
|
|
11042
|
+
});
|
|
11043
|
+
return {
|
|
11044
|
+
isSecuredRow: isSecuredRow_
|
|
11045
|
+
};
|
|
11046
|
+
};
|
|
11047
|
+
module.exports.useSecured = $2bdce305434549fd$var$useSecured;
|
|
11048
|
+
|
|
11049
|
+
});
|
|
11050
|
+
|
|
12640
11051
|
|
|
12641
11052
|
parcelRequire.register("lWMip", function(module, exports) {
|
|
12642
11053
|
"use strict";
|
|
@@ -13336,7 +11747,7 @@ var $e7517de803644e56$var$Header = function Header(_ref) {
|
|
|
13336
11747
|
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);
|
|
13337
11748
|
var CHECKBOX_COLUMN = "checkboxColumn";
|
|
13338
11749
|
var styles = (0, $e7517de803644e56$var$_styles["default"])();
|
|
13339
|
-
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.
|
|
11750
|
+
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.hasSecuredRows, hasSecuredRows = _useConfig$config$has2 === void 0 ? false : _useConfig$config$has2, unlockedRowsIds = _useConfig$config.unlockedRowsIds, _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;
|
|
13340
11751
|
var isAllCheckedColumn = function isAllCheckedColumn(key, rows) {
|
|
13341
11752
|
var _iterator = $e7517de803644e56$var$_createForOfIteratorHelper(rows), _step;
|
|
13342
11753
|
try {
|
|
@@ -13361,14 +11772,14 @@ var $e7517de803644e56$var$Header = function Header(_ref) {
|
|
|
13361
11772
|
return (0, $idhBf.getSelectableRows)({
|
|
13362
11773
|
displayableRows: displayableRows,
|
|
13363
11774
|
selectableRowKey: selectableRowKey,
|
|
13364
|
-
|
|
13365
|
-
|
|
11775
|
+
hasSecuredRows: hasSecuredRows,
|
|
11776
|
+
unlockedRowsIds: unlockedRowsIds
|
|
13366
11777
|
});
|
|
13367
11778
|
}, [
|
|
13368
11779
|
displayableRows,
|
|
13369
11780
|
selectableRowKey,
|
|
13370
|
-
|
|
13371
|
-
|
|
11781
|
+
hasSecuredRows,
|
|
11782
|
+
unlockedRowsIds
|
|
13372
11783
|
]);
|
|
13373
11784
|
var isAllChecked = (0, $e7517de803644e56$var$_react.useMemo)(function() {
|
|
13374
11785
|
return (0, $eZKbx.sameArray)(allSelectableKey, (0, $idhBf.getSelectedVisibleRows)(selectedRows, displayableRows, selectableRowKey));
|
|
@@ -13837,7 +12248,8 @@ module.exports.sameArray = $aeaa9692314e35aa$var$sameArray;
|
|
|
13837
12248
|
// Inspired by https://stackoverflow.com/questions/7837456/how-to-compare-arrays-in-javascript
|
|
13838
12249
|
function $aeaa9692314e35aa$var$sameArray(array1, array2) {
|
|
13839
12250
|
// if the other array is a falsy value, return
|
|
13840
|
-
if (!array2) return false;
|
|
12251
|
+
if (!array2) return false;
|
|
12252
|
+
// compare lengths - can save a lot of time
|
|
13841
12253
|
if (array1.length !== array2.length) return false;
|
|
13842
12254
|
var offset = 0;
|
|
13843
12255
|
for(var i = 0, l = array1.length; i < l; i++){
|
|
@@ -13987,7 +12399,7 @@ var $024494c4bcfd73e9$var$_react = $024494c4bcfd73e9$var$_interopRequireWildcard
|
|
|
13987
12399
|
var $024494c4bcfd73e9$var$_classnames = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$classnames);
|
|
13988
12400
|
|
|
13989
12401
|
|
|
13990
|
-
var $
|
|
12402
|
+
var $bNvRr = parcelRequire("bNvRr");
|
|
13991
12403
|
|
|
13992
12404
|
var $024494c4bcfd73e9$var$_ClickAwayListener = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$muibaseClickAwayListener);
|
|
13993
12405
|
|
|
@@ -14151,7 +12563,9 @@ var $024494c4bcfd73e9$var$SearchBar = function SearchBar(_ref) {
|
|
|
14151
12563
|
color: "primary",
|
|
14152
12564
|
onClick: focusMainInput,
|
|
14153
12565
|
variant: "contained"
|
|
14154
|
-
}, /*#__PURE__*/ $024494c4bcfd73e9$var$_react["default"].createElement($
|
|
12566
|
+
}, /*#__PURE__*/ $024494c4bcfd73e9$var$_react["default"].createElement($bNvRr.SearchIcon, {
|
|
12567
|
+
size: "m"
|
|
12568
|
+
})), /*#__PURE__*/ $024494c4bcfd73e9$var$_react["default"].createElement("div", {
|
|
14155
12569
|
className: classes.termsWrapper,
|
|
14156
12570
|
style: {
|
|
14157
12571
|
minWidth: wrapperMinWidth
|
|
@@ -14344,7 +12758,7 @@ var $439c8c5525c90b0c$var$_react = $gXNCa$babelruntimehelpersinteropRequireDefau
|
|
|
14344
12758
|
|
|
14345
12759
|
var $439c8c5525c90b0c$var$_classnames = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$classnames);
|
|
14346
12760
|
|
|
14347
|
-
var $
|
|
12761
|
+
var $bNvRr = parcelRequire("bNvRr");
|
|
14348
12762
|
|
|
14349
12763
|
var $439c8c5525c90b0c$var$_propTypes = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$proptypes);
|
|
14350
12764
|
|
|
@@ -14383,8 +12797,9 @@ var $439c8c5525c90b0c$var$_styles = $gXNCa$babelruntimehelpersinteropRequireDefa
|
|
|
14383
12797
|
onClick: function onClick() {
|
|
14384
12798
|
return onClose(name);
|
|
14385
12799
|
}
|
|
14386
|
-
}, /*#__PURE__*/ $439c8c5525c90b0c$var$_react["default"].createElement($
|
|
14387
|
-
className: classes.closeIcon
|
|
12800
|
+
}, /*#__PURE__*/ $439c8c5525c90b0c$var$_react["default"].createElement($bNvRr.CloseIcon, {
|
|
12801
|
+
className: classes.closeIcon,
|
|
12802
|
+
size: 8
|
|
14388
12803
|
})))
|
|
14389
12804
|
});
|
|
14390
12805
|
};
|
|
@@ -14433,8 +12848,7 @@ var $6bdd929e648764d2$var$useStyles = (0, $6bdd929e648764d2$var$_makeStyles["def
|
|
|
14433
12848
|
}
|
|
14434
12849
|
},
|
|
14435
12850
|
closeIcon: {
|
|
14436
|
-
color: theme.palette.primary.main
|
|
14437
|
-
fontSize: "0.875rem"
|
|
12851
|
+
color: theme.palette.primary.main
|
|
14438
12852
|
}
|
|
14439
12853
|
};
|
|
14440
12854
|
});
|
|
@@ -14782,6 +13196,8 @@ Object.defineProperty(module.exports, "__esModule", {
|
|
|
14782
13196
|
});
|
|
14783
13197
|
module.exports["default"] = void 0;
|
|
14784
13198
|
|
|
13199
|
+
var $4cc03a09cd474ddf$var$_regenerator = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimeregenerator);
|
|
13200
|
+
|
|
14785
13201
|
var $4cc03a09cd474ddf$var$_defineProperty2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersdefineProperty);
|
|
14786
13202
|
|
|
14787
13203
|
var $4cc03a09cd474ddf$var$_toConsumableArray2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelperstoConsumableArray);
|
|
@@ -14793,7 +13209,7 @@ var $4cc03a09cd474ddf$var$_slicedToArray2 = $gXNCa$babelruntimehelpersinteropReq
|
|
|
14793
13209
|
var $4cc03a09cd474ddf$var$_react = $4cc03a09cd474ddf$var$_interopRequireWildcard($gXNCa$react);
|
|
14794
13210
|
|
|
14795
13211
|
|
|
14796
|
-
var $
|
|
13212
|
+
var $bNvRr = parcelRequire("bNvRr");
|
|
14797
13213
|
|
|
14798
13214
|
var $4cc03a09cd474ddf$var$_SettingsIcon = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("jUXzP")));
|
|
14799
13215
|
|
|
@@ -14840,294 +13256,6 @@ function $4cc03a09cd474ddf$var$_interopRequireWildcard(obj, nodeInterop) {
|
|
|
14840
13256
|
if (cache) cache.set(obj, newObj);
|
|
14841
13257
|
return newObj;
|
|
14842
13258
|
}
|
|
14843
|
-
function $4cc03a09cd474ddf$var$_regeneratorRuntime() {
|
|
14844
|
-
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
14845
|
-
$4cc03a09cd474ddf$var$_regeneratorRuntime = function _regeneratorRuntime() {
|
|
14846
|
-
return exports1;
|
|
14847
|
-
};
|
|
14848
|
-
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";
|
|
14849
|
-
function define(obj, key, value) {
|
|
14850
|
-
return Object.defineProperty(obj, key, {
|
|
14851
|
-
value: value,
|
|
14852
|
-
enumerable: !0,
|
|
14853
|
-
configurable: !0,
|
|
14854
|
-
writable: !0
|
|
14855
|
-
}), obj[key];
|
|
14856
|
-
}
|
|
14857
|
-
try {
|
|
14858
|
-
define({}, "");
|
|
14859
|
-
} catch (err) {
|
|
14860
|
-
define = function define(obj, key, value) {
|
|
14861
|
-
return obj[key] = value;
|
|
14862
|
-
};
|
|
14863
|
-
}
|
|
14864
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
14865
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []);
|
|
14866
|
-
return generator._invoke = function(innerFn, self, context) {
|
|
14867
|
-
var state = "suspendedStart";
|
|
14868
|
-
return function(method, arg) {
|
|
14869
|
-
if ("executing" === state) throw new Error("Generator is already running");
|
|
14870
|
-
if ("completed" === state) {
|
|
14871
|
-
if ("throw" === method) throw arg;
|
|
14872
|
-
return doneResult();
|
|
14873
|
-
}
|
|
14874
|
-
for(context.method = method, context.arg = arg;;){
|
|
14875
|
-
var delegate = context.delegate;
|
|
14876
|
-
if (delegate) {
|
|
14877
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
14878
|
-
if (delegateResult) {
|
|
14879
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
14880
|
-
return delegateResult;
|
|
14881
|
-
}
|
|
14882
|
-
}
|
|
14883
|
-
if ("next" === context.method) context.sent = context._sent = context.arg;
|
|
14884
|
-
else if ("throw" === context.method) {
|
|
14885
|
-
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
14886
|
-
context.dispatchException(context.arg);
|
|
14887
|
-
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
14888
|
-
state = "executing";
|
|
14889
|
-
var record = tryCatch(innerFn, self, context);
|
|
14890
|
-
if ("normal" === record.type) {
|
|
14891
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
14892
|
-
return {
|
|
14893
|
-
value: record.arg,
|
|
14894
|
-
done: context.done
|
|
14895
|
-
};
|
|
14896
|
-
}
|
|
14897
|
-
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
14898
|
-
}
|
|
14899
|
-
};
|
|
14900
|
-
}(innerFn, self, context), generator;
|
|
14901
|
-
}
|
|
14902
|
-
function tryCatch(fn, obj, arg) {
|
|
14903
|
-
try {
|
|
14904
|
-
return {
|
|
14905
|
-
type: "normal",
|
|
14906
|
-
arg: fn.call(obj, arg)
|
|
14907
|
-
};
|
|
14908
|
-
} catch (err) {
|
|
14909
|
-
return {
|
|
14910
|
-
type: "throw",
|
|
14911
|
-
arg: err
|
|
14912
|
-
};
|
|
14913
|
-
}
|
|
14914
|
-
}
|
|
14915
|
-
exports1.wrap = wrap;
|
|
14916
|
-
var ContinueSentinel = {};
|
|
14917
|
-
function Generator() {}
|
|
14918
|
-
function GeneratorFunction() {}
|
|
14919
|
-
function GeneratorFunctionPrototype() {}
|
|
14920
|
-
var IteratorPrototype = {};
|
|
14921
|
-
define(IteratorPrototype, iteratorSymbol, function() {
|
|
14922
|
-
return this;
|
|
14923
|
-
});
|
|
14924
|
-
var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
14925
|
-
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
14926
|
-
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
14927
|
-
function defineIteratorMethods(prototype) {
|
|
14928
|
-
[
|
|
14929
|
-
"next",
|
|
14930
|
-
"throw",
|
|
14931
|
-
"return"
|
|
14932
|
-
].forEach(function(method) {
|
|
14933
|
-
define(prototype, method, function(arg) {
|
|
14934
|
-
return this._invoke(method, arg);
|
|
14935
|
-
});
|
|
14936
|
-
});
|
|
14937
|
-
}
|
|
14938
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
14939
|
-
function invoke(method, arg, resolve, reject) {
|
|
14940
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
14941
|
-
if ("throw" !== record.type) {
|
|
14942
|
-
var result = record.arg, value = result.value;
|
|
14943
|
-
return value && "object" == $gXNCa$babelruntimehelperstypeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function(value) {
|
|
14944
|
-
invoke("next", value, resolve, reject);
|
|
14945
|
-
}, function(err) {
|
|
14946
|
-
invoke("throw", err, resolve, reject);
|
|
14947
|
-
}) : PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
14948
|
-
result.value = unwrapped, resolve(result);
|
|
14949
|
-
}, function(error) {
|
|
14950
|
-
return invoke("throw", error, resolve, reject);
|
|
14951
|
-
});
|
|
14952
|
-
}
|
|
14953
|
-
reject(record.arg);
|
|
14954
|
-
}
|
|
14955
|
-
var previousPromise;
|
|
14956
|
-
this._invoke = function(method, arg) {
|
|
14957
|
-
function callInvokeWithMethodAndArg() {
|
|
14958
|
-
return new PromiseImpl(function(resolve, reject) {
|
|
14959
|
-
invoke(method, arg, resolve, reject);
|
|
14960
|
-
});
|
|
14961
|
-
}
|
|
14962
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
14963
|
-
};
|
|
14964
|
-
}
|
|
14965
|
-
function maybeInvokeDelegate(delegate, context) {
|
|
14966
|
-
var method = delegate.iterator[context.method];
|
|
14967
|
-
if (undefined === method) {
|
|
14968
|
-
if (context.delegate = null, "throw" === context.method) {
|
|
14969
|
-
if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
14970
|
-
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
14971
|
-
}
|
|
14972
|
-
return ContinueSentinel;
|
|
14973
|
-
}
|
|
14974
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
14975
|
-
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
14976
|
-
var info = record.arg;
|
|
14977
|
-
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);
|
|
14978
|
-
}
|
|
14979
|
-
function pushTryEntry(locs) {
|
|
14980
|
-
var entry = {
|
|
14981
|
-
tryLoc: locs[0]
|
|
14982
|
-
};
|
|
14983
|
-
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
14984
|
-
}
|
|
14985
|
-
function resetTryEntry(entry) {
|
|
14986
|
-
var record = entry.completion || {};
|
|
14987
|
-
record.type = "normal", delete record.arg, entry.completion = record;
|
|
14988
|
-
}
|
|
14989
|
-
function Context(tryLocsList) {
|
|
14990
|
-
this.tryEntries = [
|
|
14991
|
-
{
|
|
14992
|
-
tryLoc: "root"
|
|
14993
|
-
}
|
|
14994
|
-
], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
14995
|
-
}
|
|
14996
|
-
function values(iterable) {
|
|
14997
|
-
if (iterable) {
|
|
14998
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
14999
|
-
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
15000
|
-
if ("function" == typeof iterable.next) return iterable;
|
|
15001
|
-
if (!isNaN(iterable.length)) {
|
|
15002
|
-
var i = -1, next = function next() {
|
|
15003
|
-
for(; ++i < iterable.length;){
|
|
15004
|
-
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
15005
|
-
}
|
|
15006
|
-
return next.value = undefined, next.done = !0, next;
|
|
15007
|
-
};
|
|
15008
|
-
return next.next = next;
|
|
15009
|
-
}
|
|
15010
|
-
}
|
|
15011
|
-
return {
|
|
15012
|
-
next: doneResult
|
|
15013
|
-
};
|
|
15014
|
-
}
|
|
15015
|
-
function doneResult() {
|
|
15016
|
-
return {
|
|
15017
|
-
value: undefined,
|
|
15018
|
-
done: !0
|
|
15019
|
-
};
|
|
15020
|
-
}
|
|
15021
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports1.isGeneratorFunction = function(genFun) {
|
|
15022
|
-
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
15023
|
-
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
15024
|
-
}, exports1.mark = function(genFun) {
|
|
15025
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
15026
|
-
}, exports1.awrap = function(arg) {
|
|
15027
|
-
return {
|
|
15028
|
-
__await: arg
|
|
15029
|
-
};
|
|
15030
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function() {
|
|
15031
|
-
return this;
|
|
15032
|
-
}), exports1.AsyncIterator = AsyncIterator, exports1.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
15033
|
-
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
15034
|
-
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
15035
|
-
return exports1.isGeneratorFunction(outerFn) ? iter : iter.next().then(function(result) {
|
|
15036
|
-
return result.done ? result.value : iter.next();
|
|
15037
|
-
});
|
|
15038
|
-
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function() {
|
|
15039
|
-
return this;
|
|
15040
|
-
}), define(Gp, "toString", function() {
|
|
15041
|
-
return "[object Generator]";
|
|
15042
|
-
}), exports1.keys = function(object) {
|
|
15043
|
-
var keys = [];
|
|
15044
|
-
for(var key in object)keys.push(key);
|
|
15045
|
-
return keys.reverse(), function next() {
|
|
15046
|
-
for(; keys.length;){
|
|
15047
|
-
var key = keys.pop();
|
|
15048
|
-
if (key in object) return next.value = key, next.done = !1, next;
|
|
15049
|
-
}
|
|
15050
|
-
return next.done = !0, next;
|
|
15051
|
-
};
|
|
15052
|
-
}, exports1.values = values, Context.prototype = {
|
|
15053
|
-
constructor: Context,
|
|
15054
|
-
reset: function reset(skipTempReset) {
|
|
15055
|
-
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);
|
|
15056
|
-
},
|
|
15057
|
-
stop: function stop() {
|
|
15058
|
-
this.done = !0;
|
|
15059
|
-
var rootRecord = this.tryEntries[0].completion;
|
|
15060
|
-
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
15061
|
-
return this.rval;
|
|
15062
|
-
},
|
|
15063
|
-
dispatchException: function dispatchException(exception) {
|
|
15064
|
-
if (this.done) throw exception;
|
|
15065
|
-
var context = this;
|
|
15066
|
-
function handle(loc, caught) {
|
|
15067
|
-
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
15068
|
-
}
|
|
15069
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
15070
|
-
var entry = this.tryEntries[i], record = entry.completion;
|
|
15071
|
-
if ("root" === entry.tryLoc) return handle("end");
|
|
15072
|
-
if (entry.tryLoc <= this.prev) {
|
|
15073
|
-
var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
15074
|
-
if (hasCatch && hasFinally) {
|
|
15075
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
15076
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
15077
|
-
} else if (hasCatch) {
|
|
15078
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
15079
|
-
} else {
|
|
15080
|
-
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
15081
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
15082
|
-
}
|
|
15083
|
-
}
|
|
15084
|
-
}
|
|
15085
|
-
},
|
|
15086
|
-
abrupt: function abrupt(type, arg) {
|
|
15087
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
15088
|
-
var entry = this.tryEntries[i];
|
|
15089
|
-
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
15090
|
-
var finallyEntry = entry;
|
|
15091
|
-
break;
|
|
15092
|
-
}
|
|
15093
|
-
}
|
|
15094
|
-
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
15095
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
15096
|
-
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
15097
|
-
},
|
|
15098
|
-
complete: function complete(record, afterLoc) {
|
|
15099
|
-
if ("throw" === record.type) throw record.arg;
|
|
15100
|
-
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;
|
|
15101
|
-
},
|
|
15102
|
-
finish: function finish(finallyLoc) {
|
|
15103
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
15104
|
-
var entry = this.tryEntries[i];
|
|
15105
|
-
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
15106
|
-
}
|
|
15107
|
-
},
|
|
15108
|
-
"catch": function _catch(tryLoc) {
|
|
15109
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
15110
|
-
var entry = this.tryEntries[i];
|
|
15111
|
-
if (entry.tryLoc === tryLoc) {
|
|
15112
|
-
var record = entry.completion;
|
|
15113
|
-
if ("throw" === record.type) {
|
|
15114
|
-
var thrown = record.arg;
|
|
15115
|
-
resetTryEntry(entry);
|
|
15116
|
-
}
|
|
15117
|
-
return thrown;
|
|
15118
|
-
}
|
|
15119
|
-
}
|
|
15120
|
-
throw new Error("illegal catch attempt");
|
|
15121
|
-
},
|
|
15122
|
-
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
15123
|
-
return this.delegate = {
|
|
15124
|
-
iterator: values(iterable),
|
|
15125
|
-
resultName: resultName,
|
|
15126
|
-
nextLoc: nextLoc
|
|
15127
|
-
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
15128
|
-
}
|
|
15129
|
-
}, exports1;
|
|
15130
|
-
}
|
|
15131
13259
|
function $4cc03a09cd474ddf$var$ownKeys(object, enumerableOnly) {
|
|
15132
13260
|
var keys = Object.keys(object);
|
|
15133
13261
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -15151,7 +13279,7 @@ function $4cc03a09cd474ddf$var$_objectSpread(target) {
|
|
|
15151
13279
|
}
|
|
15152
13280
|
var $4cc03a09cd474ddf$var$ToolbarButtons = function ToolbarButtons(_ref) {
|
|
15153
13281
|
var _apiRef$current, _apiRef$current$valid;
|
|
15154
|
-
var displayableRows = _ref.displayableRows, handleRowsToDelete = _ref.handleRowsToDelete, handleValidateAdd = _ref.handleValidateAdd, handleValidateEdit = _ref.handleValidateEdit,
|
|
13282
|
+
var displayableRows = _ref.displayableRows, handleRowsToDelete = _ref.handleRowsToDelete, handleValidateAdd = _ref.handleValidateAdd, handleValidateEdit = _ref.handleValidateEdit, onCancel = _ref.handleCancel, selectedRows = _ref.selectedRows, selectedVisibleRows = _ref.selectedVisibleRows, onChangeColumnsSetting = _ref.onChangeColumnsSetting;
|
|
15155
13283
|
var _useConfig = (0, $ckVq7.useConfig)(), allRows = _useConfig.allRows, can = _useConfig.can, _useConfig$config = _useConfig.config, _useConfig$config$act = _useConfig$config.actionsButton, actionsButton = _useConfig$config$act === void 0 ? [] : _useConfig$config$act, _useConfig$config$cus = _useConfig$config.customButtons, customButtons = _useConfig$config$cus === void 0 ? [] : _useConfig$config$cus, _useConfig$config$exp = _useConfig$config.exportFormat, exportFormat = _useConfig$config$exp === void 0 ? [
|
|
15156
13284
|
"csv",
|
|
15157
13285
|
"xls"
|
|
@@ -15175,9 +13303,9 @@ var $4cc03a09cd474ddf$var$ToolbarButtons = function ToolbarButtons(_ref) {
|
|
|
15175
13303
|
return _handleDeleteRows.apply(this, arguments);
|
|
15176
13304
|
}
|
|
15177
13305
|
function _handleDeleteRows() {
|
|
15178
|
-
_handleDeleteRows = (0, $4cc03a09cd474ddf$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $4cc03a09cd474ddf$var$
|
|
13306
|
+
_handleDeleteRows = (0, $4cc03a09cd474ddf$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $4cc03a09cd474ddf$var$_regenerator["default"].mark(function _callee() {
|
|
15179
13307
|
var _apiRef$current2, _apiRef$current2$vali;
|
|
15180
|
-
return $4cc03a09cd474ddf$var$
|
|
13308
|
+
return $4cc03a09cd474ddf$var$_regenerator["default"].wrap(function _callee$(_context) {
|
|
15181
13309
|
while(true)switch(_context.prev = _context.next){
|
|
15182
13310
|
case 0:
|
|
15183
13311
|
_context.prev = 0;
|
|
@@ -15208,10 +13336,10 @@ var $4cc03a09cd474ddf$var$ToolbarButtons = function ToolbarButtons(_ref) {
|
|
|
15208
13336
|
return _handleSave.apply(this, arguments);
|
|
15209
13337
|
}
|
|
15210
13338
|
function _handleSave() {
|
|
15211
|
-
_handleSave = (0, $4cc03a09cd474ddf$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $4cc03a09cd474ddf$var$
|
|
13339
|
+
_handleSave = (0, $4cc03a09cd474ddf$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $4cc03a09cd474ddf$var$_regenerator["default"].mark(function _callee2() {
|
|
15212
13340
|
var _apiRef$current3, _apiRef$current3$vali;
|
|
15213
13341
|
var ret;
|
|
15214
|
-
return $4cc03a09cd474ddf$var$
|
|
13342
|
+
return $4cc03a09cd474ddf$var$_regenerator["default"].wrap(function _callee2$(_context2) {
|
|
15215
13343
|
while(true)switch(_context2.prev = _context2.next){
|
|
15216
13344
|
case 0:
|
|
15217
13345
|
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)) {
|
|
@@ -15260,6 +13388,27 @@ var $4cc03a09cd474ddf$var$ToolbarButtons = function ToolbarButtons(_ref) {
|
|
|
15260
13388
|
}));
|
|
15261
13389
|
return _handleSave.apply(this, arguments);
|
|
15262
13390
|
}
|
|
13391
|
+
function handleCancel() {
|
|
13392
|
+
return _handleCancel.apply(this, arguments);
|
|
13393
|
+
}
|
|
13394
|
+
function _handleCancel() {
|
|
13395
|
+
_handleCancel = (0, $4cc03a09cd474ddf$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $4cc03a09cd474ddf$var$_regenerator["default"].mark(function _callee3() {
|
|
13396
|
+
return $4cc03a09cd474ddf$var$_regenerator["default"].wrap(function _callee3$(_context3) {
|
|
13397
|
+
while(true)switch(_context3.prev = _context3.next){
|
|
13398
|
+
case 0:
|
|
13399
|
+
send("cancel");
|
|
13400
|
+
onCancel();
|
|
13401
|
+
case 2:
|
|
13402
|
+
case "end":
|
|
13403
|
+
return _context3.stop();
|
|
13404
|
+
}
|
|
13405
|
+
}, _callee3);
|
|
13406
|
+
}));
|
|
13407
|
+
return _handleCancel.apply(this, arguments);
|
|
13408
|
+
}
|
|
13409
|
+
apiRef.current.save = handleSave;
|
|
13410
|
+
apiRef.current.cancel = handleCancel;
|
|
13411
|
+
apiRef.current["delete"] = handleDeleteRows;
|
|
15263
13412
|
var buttons = (0, $4cc03a09cd474ddf$var$_toConsumableArray2["default"])(customButtons === null || customButtons === void 0 ? void 0 : customButtons.map(function(customButton) {
|
|
15264
13413
|
var _customButton$isDisab = customButton.isDisabled, isDisabled = _customButton$isDisab === void 0 ? function() {
|
|
15265
13414
|
return false;
|
|
@@ -15292,10 +13441,11 @@ var $4cc03a09cd474ddf$var$ToolbarButtons = function ToolbarButtons(_ref) {
|
|
|
15292
13441
|
});
|
|
15293
13442
|
if (actionsButton.length > 0 || exportFormat.length > 0) buttons.push({
|
|
15294
13443
|
_type: "component",
|
|
15295
|
-
component: /*#__PURE__*/ $4cc03a09cd474ddf$var$_react["default"].createElement($
|
|
13444
|
+
component: /*#__PURE__*/ $4cc03a09cd474ddf$var$_react["default"].createElement($bNvRr.MoreIcon, {
|
|
13445
|
+
size: "m"
|
|
13446
|
+
}),
|
|
15296
13447
|
style: {
|
|
15297
|
-
|
|
15298
|
-
paddingRight: 6,
|
|
13448
|
+
padding: "6px 8px",
|
|
15299
13449
|
color: "white"
|
|
15300
13450
|
},
|
|
15301
13451
|
onClick: handleClick
|
|
@@ -15339,10 +13489,7 @@ var $4cc03a09cd474ddf$var$ToolbarButtons = function ToolbarButtons(_ref) {
|
|
|
15339
13489
|
iconSize: 28,
|
|
15340
13490
|
titleInfoBulle: $4cc03a09cd474ddf$var$_I18n["default"].t("tooltips.cancel"),
|
|
15341
13491
|
disabled: !can("cancel") || !hasChange_ && !modeEdit,
|
|
15342
|
-
onClick:
|
|
15343
|
-
send("cancel");
|
|
15344
|
-
handleCancel();
|
|
15345
|
-
}
|
|
13492
|
+
onClick: handleCancel
|
|
15346
13493
|
});
|
|
15347
13494
|
}
|
|
15348
13495
|
if ([
|
|
@@ -15493,7 +13640,6 @@ module.exports["default"] = void 0;
|
|
|
15493
13640
|
var $13769636dc41ec10$var$_react = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$react);
|
|
15494
13641
|
|
|
15495
13642
|
|
|
15496
|
-
|
|
15497
13643
|
var $13769636dc41ec10$var$_I18n = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("b4Pcp")));
|
|
15498
13644
|
|
|
15499
13645
|
var $13769636dc41ec10$var$_DataGrid = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("2Hknj")));
|
|
@@ -15507,10 +13653,13 @@ var $13769636dc41ec10$var$_Button = $gXNCa$babelruntimehelpersinteropRequireDefa
|
|
|
15507
13653
|
var $9APg1 = parcelRequire("9APg1");
|
|
15508
13654
|
|
|
15509
13655
|
var $l8ln3 = parcelRequire("l8ln3");
|
|
13656
|
+
|
|
13657
|
+
var $bNvRr = parcelRequire("bNvRr");
|
|
15510
13658
|
var $13769636dc41ec10$var$ColumnsSetting = function ColumnsSetting(_ref) {
|
|
15511
13659
|
var open = _ref.open, onClose = _ref.onClose, onChangeColumnsSetting = _ref.onChangeColumnsSetting;
|
|
15512
13660
|
var _useConfig = (0, $ckVq7.useConfig)(), _useConfig$config$col = _useConfig.config.columnsRaw, columnsRaw = _useConfig$config$col === void 0 ? [] : _useConfig$config$col;
|
|
15513
13661
|
var _useColumnsSetting = (0, $9APg1.useColumnsSetting)(columnsRaw), columns = _useColumnsSetting.columns, changes = _useColumnsSetting.changes, reset = _useColumnsSetting.reset, save = _useColumnsSetting.save, handleChange = _useColumnsSetting.handleChange;
|
|
13662
|
+
var theme = (0, $gXNCa$muimaterial.useTheme)();
|
|
15514
13663
|
var handleValidate = function handleValidate() {
|
|
15515
13664
|
onChangeColumnsSetting({
|
|
15516
13665
|
type: "multiple",
|
|
@@ -15563,9 +13712,9 @@ var $13769636dc41ec10$var$ColumnsSetting = function ColumnsSetting(_ref) {
|
|
|
15563
13712
|
typeCell: $51yp9.TYPE_CELL.COMPONENT,
|
|
15564
13713
|
renderComponent: function renderComponent(_ref2) {
|
|
15565
13714
|
var data = _ref2.data;
|
|
15566
|
-
return (0, $l8ln3.isSearchable)(data) ? /*#__PURE__*/ $13769636dc41ec10$var$_react["default"].createElement($
|
|
15567
|
-
color:
|
|
15568
|
-
|
|
13715
|
+
return (0, $l8ln3.isSearchable)(data) ? /*#__PURE__*/ $13769636dc41ec10$var$_react["default"].createElement($bNvRr.CheckboxIcon, {
|
|
13716
|
+
color: theme.palette.primary.main,
|
|
13717
|
+
size: "s"
|
|
15569
13718
|
}) : null;
|
|
15570
13719
|
}
|
|
15571
13720
|
}
|
|
@@ -16070,312 +14219,25 @@ module.exports["default"] = $77903841862356c6$var$_default;
|
|
|
16070
14219
|
});
|
|
16071
14220
|
|
|
16072
14221
|
parcelRequire.register("ku1Z0", function(module, exports) {
|
|
16073
|
-
"use strict";
|
|
16074
|
-
|
|
16075
|
-
|
|
16076
|
-
|
|
16077
|
-
|
|
16078
|
-
|
|
16079
|
-
|
|
16080
|
-
|
|
16081
|
-
|
|
16082
|
-
|
|
16083
|
-
|
|
16084
|
-
|
|
16085
|
-
|
|
16086
|
-
|
|
16087
|
-
|
|
16088
|
-
|
|
16089
|
-
|
|
16090
|
-
|
|
16091
|
-
|
|
16092
|
-
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
16093
|
-
$ee9825c87509d7ea$var$_regeneratorRuntime = function _regeneratorRuntime() {
|
|
16094
|
-
return exports1;
|
|
16095
|
-
};
|
|
16096
|
-
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";
|
|
16097
|
-
function define(obj, key, value) {
|
|
16098
|
-
return Object.defineProperty(obj, key, {
|
|
16099
|
-
value: value,
|
|
16100
|
-
enumerable: !0,
|
|
16101
|
-
configurable: !0,
|
|
16102
|
-
writable: !0
|
|
16103
|
-
}), obj[key];
|
|
16104
|
-
}
|
|
16105
|
-
try {
|
|
16106
|
-
define({}, "");
|
|
16107
|
-
} catch (err) {
|
|
16108
|
-
define = function define(obj, key, value) {
|
|
16109
|
-
return obj[key] = value;
|
|
16110
|
-
};
|
|
16111
|
-
}
|
|
16112
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
16113
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []);
|
|
16114
|
-
return generator._invoke = function(innerFn, self, context) {
|
|
16115
|
-
var state = "suspendedStart";
|
|
16116
|
-
return function(method, arg) {
|
|
16117
|
-
if ("executing" === state) throw new Error("Generator is already running");
|
|
16118
|
-
if ("completed" === state) {
|
|
16119
|
-
if ("throw" === method) throw arg;
|
|
16120
|
-
return doneResult();
|
|
16121
|
-
}
|
|
16122
|
-
for(context.method = method, context.arg = arg;;){
|
|
16123
|
-
var delegate = context.delegate;
|
|
16124
|
-
if (delegate) {
|
|
16125
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
16126
|
-
if (delegateResult) {
|
|
16127
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
16128
|
-
return delegateResult;
|
|
16129
|
-
}
|
|
16130
|
-
}
|
|
16131
|
-
if ("next" === context.method) context.sent = context._sent = context.arg;
|
|
16132
|
-
else if ("throw" === context.method) {
|
|
16133
|
-
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
16134
|
-
context.dispatchException(context.arg);
|
|
16135
|
-
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
16136
|
-
state = "executing";
|
|
16137
|
-
var record = tryCatch(innerFn, self, context);
|
|
16138
|
-
if ("normal" === record.type) {
|
|
16139
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
16140
|
-
return {
|
|
16141
|
-
value: record.arg,
|
|
16142
|
-
done: context.done
|
|
16143
|
-
};
|
|
16144
|
-
}
|
|
16145
|
-
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
16146
|
-
}
|
|
16147
|
-
};
|
|
16148
|
-
}(innerFn, self, context), generator;
|
|
16149
|
-
}
|
|
16150
|
-
function tryCatch(fn, obj, arg) {
|
|
16151
|
-
try {
|
|
16152
|
-
return {
|
|
16153
|
-
type: "normal",
|
|
16154
|
-
arg: fn.call(obj, arg)
|
|
16155
|
-
};
|
|
16156
|
-
} catch (err) {
|
|
16157
|
-
return {
|
|
16158
|
-
type: "throw",
|
|
16159
|
-
arg: err
|
|
16160
|
-
};
|
|
16161
|
-
}
|
|
16162
|
-
}
|
|
16163
|
-
exports1.wrap = wrap;
|
|
16164
|
-
var ContinueSentinel = {};
|
|
16165
|
-
function Generator() {}
|
|
16166
|
-
function GeneratorFunction() {}
|
|
16167
|
-
function GeneratorFunctionPrototype() {}
|
|
16168
|
-
var IteratorPrototype = {};
|
|
16169
|
-
define(IteratorPrototype, iteratorSymbol, function() {
|
|
16170
|
-
return this;
|
|
16171
|
-
});
|
|
16172
|
-
var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
16173
|
-
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
16174
|
-
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
16175
|
-
function defineIteratorMethods(prototype) {
|
|
16176
|
-
[
|
|
16177
|
-
"next",
|
|
16178
|
-
"throw",
|
|
16179
|
-
"return"
|
|
16180
|
-
].forEach(function(method) {
|
|
16181
|
-
define(prototype, method, function(arg) {
|
|
16182
|
-
return this._invoke(method, arg);
|
|
16183
|
-
});
|
|
16184
|
-
});
|
|
16185
|
-
}
|
|
16186
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
16187
|
-
function invoke(method, arg, resolve, reject) {
|
|
16188
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
16189
|
-
if ("throw" !== record.type) {
|
|
16190
|
-
var result = record.arg, value = result.value;
|
|
16191
|
-
return value && "object" == $gXNCa$babelruntimehelperstypeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function(value) {
|
|
16192
|
-
invoke("next", value, resolve, reject);
|
|
16193
|
-
}, function(err) {
|
|
16194
|
-
invoke("throw", err, resolve, reject);
|
|
16195
|
-
}) : PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
16196
|
-
result.value = unwrapped, resolve(result);
|
|
16197
|
-
}, function(error) {
|
|
16198
|
-
return invoke("throw", error, resolve, reject);
|
|
16199
|
-
});
|
|
16200
|
-
}
|
|
16201
|
-
reject(record.arg);
|
|
16202
|
-
}
|
|
16203
|
-
var previousPromise;
|
|
16204
|
-
this._invoke = function(method, arg) {
|
|
16205
|
-
function callInvokeWithMethodAndArg() {
|
|
16206
|
-
return new PromiseImpl(function(resolve, reject) {
|
|
16207
|
-
invoke(method, arg, resolve, reject);
|
|
16208
|
-
});
|
|
16209
|
-
}
|
|
16210
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
16211
|
-
};
|
|
16212
|
-
}
|
|
16213
|
-
function maybeInvokeDelegate(delegate, context) {
|
|
16214
|
-
var method = delegate.iterator[context.method];
|
|
16215
|
-
if (undefined === method) {
|
|
16216
|
-
if (context.delegate = null, "throw" === context.method) {
|
|
16217
|
-
if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
16218
|
-
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
16219
|
-
}
|
|
16220
|
-
return ContinueSentinel;
|
|
16221
|
-
}
|
|
16222
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
16223
|
-
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
16224
|
-
var info = record.arg;
|
|
16225
|
-
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);
|
|
16226
|
-
}
|
|
16227
|
-
function pushTryEntry(locs) {
|
|
16228
|
-
var entry = {
|
|
16229
|
-
tryLoc: locs[0]
|
|
16230
|
-
};
|
|
16231
|
-
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
16232
|
-
}
|
|
16233
|
-
function resetTryEntry(entry) {
|
|
16234
|
-
var record = entry.completion || {};
|
|
16235
|
-
record.type = "normal", delete record.arg, entry.completion = record;
|
|
16236
|
-
}
|
|
16237
|
-
function Context(tryLocsList) {
|
|
16238
|
-
this.tryEntries = [
|
|
16239
|
-
{
|
|
16240
|
-
tryLoc: "root"
|
|
16241
|
-
}
|
|
16242
|
-
], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
16243
|
-
}
|
|
16244
|
-
function values(iterable) {
|
|
16245
|
-
if (iterable) {
|
|
16246
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
16247
|
-
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
16248
|
-
if ("function" == typeof iterable.next) return iterable;
|
|
16249
|
-
if (!isNaN(iterable.length)) {
|
|
16250
|
-
var i = -1, next = function next() {
|
|
16251
|
-
for(; ++i < iterable.length;){
|
|
16252
|
-
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
16253
|
-
}
|
|
16254
|
-
return next.value = undefined, next.done = !0, next;
|
|
16255
|
-
};
|
|
16256
|
-
return next.next = next;
|
|
16257
|
-
}
|
|
16258
|
-
}
|
|
16259
|
-
return {
|
|
16260
|
-
next: doneResult
|
|
16261
|
-
};
|
|
16262
|
-
}
|
|
16263
|
-
function doneResult() {
|
|
16264
|
-
return {
|
|
16265
|
-
value: undefined,
|
|
16266
|
-
done: !0
|
|
16267
|
-
};
|
|
16268
|
-
}
|
|
16269
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports1.isGeneratorFunction = function(genFun) {
|
|
16270
|
-
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
16271
|
-
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
16272
|
-
}, exports1.mark = function(genFun) {
|
|
16273
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
16274
|
-
}, exports1.awrap = function(arg) {
|
|
16275
|
-
return {
|
|
16276
|
-
__await: arg
|
|
16277
|
-
};
|
|
16278
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function() {
|
|
16279
|
-
return this;
|
|
16280
|
-
}), exports1.AsyncIterator = AsyncIterator, exports1.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
16281
|
-
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
16282
|
-
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
16283
|
-
return exports1.isGeneratorFunction(outerFn) ? iter : iter.next().then(function(result) {
|
|
16284
|
-
return result.done ? result.value : iter.next();
|
|
16285
|
-
});
|
|
16286
|
-
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function() {
|
|
16287
|
-
return this;
|
|
16288
|
-
}), define(Gp, "toString", function() {
|
|
16289
|
-
return "[object Generator]";
|
|
16290
|
-
}), exports1.keys = function(object) {
|
|
16291
|
-
var keys = [];
|
|
16292
|
-
for(var key in object)keys.push(key);
|
|
16293
|
-
return keys.reverse(), function next() {
|
|
16294
|
-
for(; keys.length;){
|
|
16295
|
-
var key = keys.pop();
|
|
16296
|
-
if (key in object) return next.value = key, next.done = !1, next;
|
|
16297
|
-
}
|
|
16298
|
-
return next.done = !0, next;
|
|
16299
|
-
};
|
|
16300
|
-
}, exports1.values = values, Context.prototype = {
|
|
16301
|
-
constructor: Context,
|
|
16302
|
-
reset: function reset(skipTempReset) {
|
|
16303
|
-
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);
|
|
16304
|
-
},
|
|
16305
|
-
stop: function stop() {
|
|
16306
|
-
this.done = !0;
|
|
16307
|
-
var rootRecord = this.tryEntries[0].completion;
|
|
16308
|
-
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
16309
|
-
return this.rval;
|
|
16310
|
-
},
|
|
16311
|
-
dispatchException: function dispatchException(exception) {
|
|
16312
|
-
if (this.done) throw exception;
|
|
16313
|
-
var context = this;
|
|
16314
|
-
function handle(loc, caught) {
|
|
16315
|
-
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
16316
|
-
}
|
|
16317
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
16318
|
-
var entry = this.tryEntries[i], record = entry.completion;
|
|
16319
|
-
if ("root" === entry.tryLoc) return handle("end");
|
|
16320
|
-
if (entry.tryLoc <= this.prev) {
|
|
16321
|
-
var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
16322
|
-
if (hasCatch && hasFinally) {
|
|
16323
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
16324
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
16325
|
-
} else if (hasCatch) {
|
|
16326
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
16327
|
-
} else {
|
|
16328
|
-
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
16329
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
16330
|
-
}
|
|
16331
|
-
}
|
|
16332
|
-
}
|
|
16333
|
-
},
|
|
16334
|
-
abrupt: function abrupt(type, arg) {
|
|
16335
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
16336
|
-
var entry = this.tryEntries[i];
|
|
16337
|
-
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
16338
|
-
var finallyEntry = entry;
|
|
16339
|
-
break;
|
|
16340
|
-
}
|
|
16341
|
-
}
|
|
16342
|
-
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
16343
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
16344
|
-
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
16345
|
-
},
|
|
16346
|
-
complete: function complete(record, afterLoc) {
|
|
16347
|
-
if ("throw" === record.type) throw record.arg;
|
|
16348
|
-
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;
|
|
16349
|
-
},
|
|
16350
|
-
finish: function finish(finallyLoc) {
|
|
16351
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
16352
|
-
var entry = this.tryEntries[i];
|
|
16353
|
-
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
16354
|
-
}
|
|
16355
|
-
},
|
|
16356
|
-
"catch": function _catch(tryLoc) {
|
|
16357
|
-
for(var i = this.tryEntries.length - 1; i >= 0; --i){
|
|
16358
|
-
var entry = this.tryEntries[i];
|
|
16359
|
-
if (entry.tryLoc === tryLoc) {
|
|
16360
|
-
var record = entry.completion;
|
|
16361
|
-
if ("throw" === record.type) {
|
|
16362
|
-
var thrown = record.arg;
|
|
16363
|
-
resetTryEntry(entry);
|
|
16364
|
-
}
|
|
16365
|
-
return thrown;
|
|
16366
|
-
}
|
|
16367
|
-
}
|
|
16368
|
-
throw new Error("illegal catch attempt");
|
|
16369
|
-
},
|
|
16370
|
-
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
16371
|
-
return this.delegate = {
|
|
16372
|
-
iterator: values(iterable),
|
|
16373
|
-
resultName: resultName,
|
|
16374
|
-
nextLoc: nextLoc
|
|
16375
|
-
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
16376
|
-
}
|
|
16377
|
-
}, exports1;
|
|
16378
|
-
}
|
|
14222
|
+
"use strict";
|
|
14223
|
+
|
|
14224
|
+
Object.defineProperty(module.exports, "__esModule", {
|
|
14225
|
+
value: true
|
|
14226
|
+
});
|
|
14227
|
+
module.exports.useExport = void 0;
|
|
14228
|
+
|
|
14229
|
+
var $ee9825c87509d7ea$var$_regenerator = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimeregenerator);
|
|
14230
|
+
|
|
14231
|
+
var $ee9825c87509d7ea$var$_defineProperty2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersdefineProperty);
|
|
14232
|
+
|
|
14233
|
+
var $ee9825c87509d7ea$var$_asyncToGenerator2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersasyncToGenerator);
|
|
14234
|
+
|
|
14235
|
+
var $ee9825c87509d7ea$var$_slicedToArray2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersslicedToArray);
|
|
14236
|
+
|
|
14237
|
+
|
|
14238
|
+
var $gHByu = parcelRequire("gHByu");
|
|
14239
|
+
|
|
14240
|
+
var $ckVq7 = parcelRequire("ckVq7");
|
|
16379
14241
|
function $ee9825c87509d7ea$var$ownKeys(object, enumerableOnly) {
|
|
16380
14242
|
var keys = Object.keys(object);
|
|
16381
14243
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -16407,8 +14269,8 @@ var $ee9825c87509d7ea$var$useExport = function useExport() {
|
|
|
16407
14269
|
*
|
|
16408
14270
|
* @param {string} format - The format of the exported file can be 'csv', 'xls', 'pdf', 'print'
|
|
16409
14271
|
*/ var exportData = /*#__PURE__*/ function() {
|
|
16410
|
-
var _ref = (0, $ee9825c87509d7ea$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $ee9825c87509d7ea$var$
|
|
16411
|
-
return $ee9825c87509d7ea$var$
|
|
14272
|
+
var _ref = (0, $ee9825c87509d7ea$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $ee9825c87509d7ea$var$_regenerator["default"].mark(function _callee(format, options) {
|
|
14273
|
+
return $ee9825c87509d7ea$var$_regenerator["default"].wrap(function _callee$(_context) {
|
|
16412
14274
|
while(true)switch(_context.prev = _context.next){
|
|
16413
14275
|
case 0:
|
|
16414
14276
|
setLoading(true);
|
|
@@ -16610,12 +14472,15 @@ function $e805bdb14b581d2c$var$useMachine(machine) {
|
|
|
16610
14472
|
var ref = (0, $gXNCa$react.useRef)(null);
|
|
16611
14473
|
if (ref.current === null) ref.current = (0, $gXNCa$robot3.interpret)(machine, function() {
|
|
16612
14474
|
// eslint-disable-next-line no-use-before-define
|
|
16613
|
-
setState(service.machine.current);
|
|
14475
|
+
setState(service.machine.current);
|
|
14476
|
+
// eslint-disable-next-line no-use-before-define
|
|
16614
14477
|
setContext(service.context);
|
|
16615
14478
|
}, initialContext);
|
|
16616
|
-
var service = ref.current;
|
|
14479
|
+
var service = ref.current;
|
|
14480
|
+
// We store the context & state of the machine in the react state.
|
|
16617
14481
|
var _useState = (0, $gXNCa$react.useState)(service.machine.current), _useState2 = (0, $e805bdb14b581d2c$var$_slicedToArray2["default"])(_useState, 2), state = _useState2[0], setState = _useState2[1];
|
|
16618
|
-
var _useState3 = (0, $gXNCa$react.useState)(service.context), _useState4 = (0, $e805bdb14b581d2c$var$_slicedToArray2["default"])(_useState3, 2), context = _useState4[0], setContext = _useState4[1];
|
|
14482
|
+
var _useState3 = (0, $gXNCa$react.useState)(service.context), _useState4 = (0, $e805bdb14b581d2c$var$_slicedToArray2["default"])(_useState3, 2), context = _useState4[0], setContext = _useState4[1];
|
|
14483
|
+
// Allows you to request a transition
|
|
16619
14484
|
var send = (0, $gXNCa$react.useCallback)(function(type) {
|
|
16620
14485
|
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
16621
14486
|
service.send($e805bdb14b581d2c$var$_objectSpread({
|
|
@@ -16623,12 +14488,14 @@ function $e805bdb14b581d2c$var$useMachine(machine) {
|
|
|
16623
14488
|
}, params));
|
|
16624
14489
|
}, [
|
|
16625
14490
|
service
|
|
16626
|
-
]);
|
|
14491
|
+
]);
|
|
14492
|
+
// Checks if a transition is possible from the current state
|
|
16627
14493
|
var can = (0, $gXNCa$react.useCallback)(function(transitionName) {
|
|
16628
14494
|
// eslint-disable-next-line prefer-destructuring
|
|
16629
14495
|
var transitions = service.machine.state.value.transitions;
|
|
16630
14496
|
if (!transitions.has(transitionName)) return false;
|
|
16631
|
-
var transitionsForName = transitions.get(transitionName);
|
|
14497
|
+
var transitionsForName = transitions.get(transitionName);
|
|
14498
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
16632
14499
|
var _iterator = $e805bdb14b581d2c$var$_createForOfIteratorHelper(transitionsForName), _step;
|
|
16633
14500
|
try {
|
|
16634
14501
|
for(_iterator.s(); !(_step = _iterator.n()).done;){
|
|
@@ -17015,7 +14882,8 @@ var $b4e89a7530fc0987$var$processGroupItem = function processGroupItem(group) {
|
|
|
17015
14882
|
var titleRow = (0, $e902G.createTitleRow)(group);
|
|
17016
14883
|
var newTab = [
|
|
17017
14884
|
titleRow
|
|
17018
|
-
];
|
|
14885
|
+
];
|
|
14886
|
+
// TODO addRow for each group
|
|
17019
14887
|
// if (modeAdd) {
|
|
17020
14888
|
// newTab.push(createAddRowGroup(group));
|
|
17021
14889
|
// }
|
|
@@ -17070,6 +14938,7 @@ function $17502989b90aa03e$var$_objectSpread(target) {
|
|
|
17070
14938
|
}
|
|
17071
14939
|
var $17502989b90aa03e$var$useColumns = function useColumns(columns, tableKeyName) {
|
|
17072
14940
|
var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
14941
|
+
var onColumnsChange = arguments.length > 3 ? arguments[3] : undefined;
|
|
17073
14942
|
function reducer(state, action) {
|
|
17074
14943
|
switch(action.type){
|
|
17075
14944
|
case "multiple":
|
|
@@ -17119,6 +14988,11 @@ var $17502989b90aa03e$var$useColumns = function useColumns(columns, tableKeyName
|
|
|
17119
14988
|
}
|
|
17120
14989
|
return columns;
|
|
17121
14990
|
}
|
|
14991
|
+
(0, $gXNCa$react.useEffect)(function() {
|
|
14992
|
+
if (onColumnsChange) onColumnsChange(state);
|
|
14993
|
+
}, [
|
|
14994
|
+
state
|
|
14995
|
+
]);
|
|
17122
14996
|
return {
|
|
17123
14997
|
dispatch: dispatch,
|
|
17124
14998
|
state: state
|
|
@@ -17135,12 +15009,14 @@ parcelRequire.register("azJMN", function(module, exports) {
|
|
|
17135
15009
|
Object.defineProperty(module.exports, "__esModule", {
|
|
17136
15010
|
value: true
|
|
17137
15011
|
});
|
|
17138
|
-
module.exports.applySorting = module.exports.applyGroupSorting = void 0;
|
|
15012
|
+
module.exports.sortDate = module.exports.sortBoolean = module.exports.sort = module.exports.optionsComparator = module.exports.dbCollationOrdering = module.exports.dateComparator = module.exports.buildComparator = module.exports.applySorting = module.exports.applyGroupSorting = void 0;
|
|
17139
15013
|
|
|
17140
15014
|
var $7b30b0659d74fc67$var$_toConsumableArray2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelperstoConsumableArray);
|
|
17141
15015
|
|
|
17142
15016
|
var $7b30b0659d74fc67$var$_defineProperty2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersdefineProperty);
|
|
17143
15017
|
|
|
15018
|
+
var $7b30b0659d74fc67$var$_get2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$lodashget);
|
|
15019
|
+
|
|
17144
15020
|
var $7b30b0659d74fc67$var$_orderBy2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$lodashorderBy);
|
|
17145
15021
|
|
|
17146
15022
|
var $7b30b0659d74fc67$var$_groupBy2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$lodashgroupBy);
|
|
@@ -17148,6 +15024,8 @@ var $7b30b0659d74fc67$var$_groupBy2 = $gXNCa$babelruntimehelpersinteropRequireDe
|
|
|
17148
15024
|
var $51yp9 = parcelRequire("51yp9");
|
|
17149
15025
|
|
|
17150
15026
|
var $e902G = parcelRequire("e902G");
|
|
15027
|
+
|
|
15028
|
+
var $7b30b0659d74fc67$var$_moment = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$moment);
|
|
17151
15029
|
function $7b30b0659d74fc67$var$ownKeys(object, enumerableOnly) {
|
|
17152
15030
|
var keys = Object.keys(object);
|
|
17153
15031
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -17169,48 +15047,136 @@ function $7b30b0659d74fc67$var$_objectSpread(target) {
|
|
|
17169
15047
|
}
|
|
17170
15048
|
return target;
|
|
17171
15049
|
}
|
|
17172
|
-
var $7b30b0659d74fc67$var$
|
|
15050
|
+
var $7b30b0659d74fc67$var$optionsComparator = function optionsComparator(list) {
|
|
15051
|
+
return function(a, b) {
|
|
15052
|
+
if (!a || !list[a]) return 1;
|
|
15053
|
+
else if (!b || !list[b]) return -1;
|
|
15054
|
+
return $7b30b0659d74fc67$var$sort(list[a], list[b]);
|
|
15055
|
+
};
|
|
15056
|
+
};
|
|
15057
|
+
module.exports.optionsComparator = $7b30b0659d74fc67$var$optionsComparator;
|
|
15058
|
+
var $7b30b0659d74fc67$var$dateComparator = function dateComparator() {
|
|
15059
|
+
var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "DD/MM/YYYY";
|
|
17173
15060
|
return function(a, b) {
|
|
17174
|
-
if (
|
|
17175
|
-
else
|
|
17176
|
-
|
|
15061
|
+
if (format === "YYYY-MM-DD") return $7b30b0659d74fc67$var$sortDate(a, b);
|
|
15062
|
+
else {
|
|
15063
|
+
var newA = a ? (0, $7b30b0659d74fc67$var$_moment["default"])(a, format).format("YYYY-MM-DD") : null;
|
|
15064
|
+
var newB = b ? (0, $7b30b0659d74fc67$var$_moment["default"])(b, format).format("YYYY-MM-DD") : null;
|
|
15065
|
+
return $7b30b0659d74fc67$var$sortDate(newA, newB);
|
|
15066
|
+
}
|
|
17177
15067
|
};
|
|
17178
15068
|
};
|
|
15069
|
+
module.exports.dateComparator = $7b30b0659d74fc67$var$dateComparator;
|
|
15070
|
+
var $7b30b0659d74fc67$var$sortDate = function sortDate(a, b) {
|
|
15071
|
+
if (!a) return 1;
|
|
15072
|
+
if (!b) return -1;
|
|
15073
|
+
return $7b30b0659d74fc67$var$sort(a, b);
|
|
15074
|
+
};
|
|
15075
|
+
module.exports.sortDate = $7b30b0659d74fc67$var$sortDate;
|
|
15076
|
+
var $7b30b0659d74fc67$var$sortBoolean = function sortBoolean() {
|
|
15077
|
+
var a = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
15078
|
+
var b = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
15079
|
+
return $7b30b0659d74fc67$var$sort(a, b);
|
|
15080
|
+
};
|
|
15081
|
+
module.exports.sortBoolean = $7b30b0659d74fc67$var$sortBoolean;
|
|
15082
|
+
var $7b30b0659d74fc67$var$sort = function sort(a, b) {
|
|
15083
|
+
return a < b ? -1 : b < a ? 1 : 0;
|
|
15084
|
+
};
|
|
15085
|
+
/**
|
|
15086
|
+
* Use same sorting logic than backend
|
|
15087
|
+
*
|
|
15088
|
+
* @param {*} a
|
|
15089
|
+
* @param {*} b
|
|
15090
|
+
*/ module.exports.sort = $7b30b0659d74fc67$var$sort;
|
|
15091
|
+
var $7b30b0659d74fc67$var$dbCollationOrdering = function dbCollationOrdering(a, b) {
|
|
15092
|
+
var newA = String(a).replace(/(?:(?![0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u065F\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06EF\u06FA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07CA-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u0870-\u0887\u0889-\u088E\u0898-\u08E1\u08E3-\u0963\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09F0\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A70-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D7A-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u103F\u1050-\u108F\u109A-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1715\u171F-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u180B-\u180D\u180F\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F\u1AA7\u1AB0-\u1ACE\u1B00-\u1B4C\u1B6B-\u1B73\u1B80-\u1BAF\u1BBA-\u1BF3\u1C00-\u1C37\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u20D0-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005\u3006\u302A-\u302F\u3031-\u3035\u303B\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA672\uA674-\uA67D\uA67F-\uA6E5\uA6F0\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA827\uA82C\uA840-\uA873\uA880-\uA8C5\uA8E0-\uA8F7\uA8FB\uA8FD-\uA8FF\uA90A-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF\uA9E0-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABEA\uABEC\uABED\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD27\uDE80-\uDEA9\uDEAB\uDEAC\uDEB0\uDEB1\uDEFD-\uDF1C\uDF27\uDF30-\uDF50\uDF70-\uDF85\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC00-\uDC46\uDC70-\uDC75\uDC7F-\uDCBA\uDCC2\uDCD0-\uDCE8\uDD00-\uDD34\uDD44-\uDD47\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDC9-\uDDCC\uDDCE\uDDCF\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E-\uDE41\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3B-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC5E-\uDC61\uDC80-\uDCC5\uDCC7\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE80-\uDEB8\uDF00-\uDF1A\uDF1D-\uDF2B\uDF40-\uDF46]|\uD806[\uDC00-\uDC3A\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD35\uDD37\uDD38\uDD3B-\uDD43\uDDA0-\uDDA7\uDDAA-\uDDD7\uDDDA-\uDDE1\uDDE3\uDDE4\uDE00-\uDE3E\uDE47\uDE50-\uDE99\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD8E\uDD90\uDD91\uDD93-\uDD98\uDEE0-\uDEF6\uDF00-\uDF10\uDF12-\uDF3A\uDF3E-\uDF42\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC40-\uDC55]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF4F-\uDF87\uDF8F-\uDF9F\uDFE0\uDFE1\uDFE3\uDFE4\uDFF0\uDFF1]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC30-\uDC6D\uDC8F\uDD00-\uDD2C\uDD30-\uDD3D\uDD4E\uDE90-\uDEAE\uDEC0-\uDEEF]|\uD839[\uDCD0-\uDCEF\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF]|\uDB40[\uDD00-\uDDEF])[\s\S])/gm, "");
|
|
15093
|
+
var newB = String(b).replace(/(?:(?![0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u065F\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06EF\u06FA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07CA-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u0870-\u0887\u0889-\u088E\u0898-\u08E1\u08E3-\u0963\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09F0\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A70-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D7A-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u103F\u1050-\u108F\u109A-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1715\u171F-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u180B-\u180D\u180F\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F\u1AA7\u1AB0-\u1ACE\u1B00-\u1B4C\u1B6B-\u1B73\u1B80-\u1BAF\u1BBA-\u1BF3\u1C00-\u1C37\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u20D0-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005\u3006\u302A-\u302F\u3031-\u3035\u303B\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA672\uA674-\uA67D\uA67F-\uA6E5\uA6F0\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA827\uA82C\uA840-\uA873\uA880-\uA8C5\uA8E0-\uA8F7\uA8FB\uA8FD-\uA8FF\uA90A-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF\uA9E0-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABEA\uABEC\uABED\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD27\uDE80-\uDEA9\uDEAB\uDEAC\uDEB0\uDEB1\uDEFD-\uDF1C\uDF27\uDF30-\uDF50\uDF70-\uDF85\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC00-\uDC46\uDC70-\uDC75\uDC7F-\uDCBA\uDCC2\uDCD0-\uDCE8\uDD00-\uDD34\uDD44-\uDD47\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDC9-\uDDCC\uDDCE\uDDCF\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E-\uDE41\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3B-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC5E-\uDC61\uDC80-\uDCC5\uDCC7\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE80-\uDEB8\uDF00-\uDF1A\uDF1D-\uDF2B\uDF40-\uDF46]|\uD806[\uDC00-\uDC3A\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD35\uDD37\uDD38\uDD3B-\uDD43\uDDA0-\uDDA7\uDDAA-\uDDD7\uDDDA-\uDDE1\uDDE3\uDDE4\uDE00-\uDE3E\uDE47\uDE50-\uDE99\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD8E\uDD90\uDD91\uDD93-\uDD98\uDEE0-\uDEF6\uDF00-\uDF10\uDF12-\uDF3A\uDF3E-\uDF42\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC40-\uDC55]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF4F-\uDF87\uDF8F-\uDF9F\uDFE0\uDFE1\uDFE3\uDFE4\uDFF0\uDFF1]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC30-\uDC6D\uDC8F\uDD00-\uDD2C\uDD30-\uDD3D\uDD4E\uDE90-\uDEAE\uDEC0-\uDEEF]|\uD839[\uDCD0-\uDCEF\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF]|\uDB40[\uDD00-\uDDEF])[\s\S])/gm, "");
|
|
15094
|
+
return new Intl.Collator("fr-FR", {
|
|
15095
|
+
caseFirst: "lower",
|
|
15096
|
+
sensitivity: "case"
|
|
15097
|
+
}).compare(newA, newB);
|
|
15098
|
+
};
|
|
15099
|
+
/**
|
|
15100
|
+
*
|
|
15101
|
+
* @param {object} column
|
|
15102
|
+
* @param {function} column.sortComparator
|
|
15103
|
+
* @param {string} column.typeCell
|
|
15104
|
+
* @param {string} column.formatDate
|
|
15105
|
+
* @param {object[]} column.options
|
|
15106
|
+
* @param {string|number} column.options.value
|
|
15107
|
+
* @param {number} column.options.sortOrder
|
|
15108
|
+
* @returns
|
|
15109
|
+
*/ module.exports.dbCollationOrdering = $7b30b0659d74fc67$var$dbCollationOrdering;
|
|
17179
15110
|
var $7b30b0659d74fc67$var$buildComparator = function buildComparator(column) {
|
|
17180
15111
|
if (column !== null && column !== void 0 && column.sortComparator) return column.sortComparator;
|
|
17181
|
-
|
|
17182
|
-
|
|
17183
|
-
|
|
17184
|
-
|
|
17185
|
-
|
|
17186
|
-
|
|
15112
|
+
switch(column === null || column === void 0 ? void 0 : column.typeCell){
|
|
15113
|
+
case $51yp9.TYPE_CELL.SELECT:
|
|
15114
|
+
case $51yp9.TYPE_CELL.AUTOCOMPLETE:
|
|
15115
|
+
if (!column.options || column.options instanceof Function) return;
|
|
15116
|
+
var list = column.options.reduce(function(prev, curr) {
|
|
15117
|
+
var _curr$sortOrder;
|
|
15118
|
+
return $7b30b0659d74fc67$var$_objectSpread($7b30b0659d74fc67$var$_objectSpread({}, prev), {}, (0, $7b30b0659d74fc67$var$_defineProperty2["default"])({}, curr.value, (_curr$sortOrder = curr.sortOrder) !== null && _curr$sortOrder !== void 0 ? _curr$sortOrder : curr.label));
|
|
15119
|
+
}, {});
|
|
15120
|
+
return $7b30b0659d74fc67$var$optionsComparator(list);
|
|
15121
|
+
case $51yp9.TYPE_CELL.AMOUNT:
|
|
15122
|
+
case $51yp9.TYPE_CELL.NUMBER:
|
|
15123
|
+
return $7b30b0659d74fc67$var$sort;
|
|
15124
|
+
case $51yp9.TYPE_CELL.DATE:
|
|
15125
|
+
return $7b30b0659d74fc67$var$dateComparator(column.formatDate);
|
|
15126
|
+
case $51yp9.TYPE_CELL.CHECKBOX:
|
|
15127
|
+
return $7b30b0659d74fc67$var$sortBoolean;
|
|
15128
|
+
default:
|
|
15129
|
+
return $7b30b0659d74fc67$var$dbCollationOrdering;
|
|
17187
15130
|
}
|
|
17188
15131
|
};
|
|
17189
|
-
|
|
15132
|
+
module.exports.buildComparator = $7b30b0659d74fc67$var$buildComparator;
|
|
15133
|
+
var $7b30b0659d74fc67$var$sortBy = function sortBy(a, b, _ref) {
|
|
15134
|
+
var order = _ref.order, comparator = _ref.comparator, orderDirection = _ref.orderDirection;
|
|
15135
|
+
return orderDirection === $e902G.SORTABLE_DIRECTIONS.ASC ? comparator((0, $7b30b0659d74fc67$var$_get2["default"])(a, order), (0, $7b30b0659d74fc67$var$_get2["default"])(b, order), a, b) : comparator((0, $7b30b0659d74fc67$var$_get2["default"])(b, order), (0, $7b30b0659d74fc67$var$_get2["default"])(a, order), b, a);
|
|
15136
|
+
};
|
|
15137
|
+
/**
|
|
15138
|
+
*
|
|
15139
|
+
* @param {Row[]} data
|
|
15140
|
+
* @param {Column[]} columns
|
|
15141
|
+
* @param {string} order
|
|
15142
|
+
* @param {'asc'|'desc'} orderDirection
|
|
15143
|
+
* @returns
|
|
15144
|
+
*/ var $7b30b0659d74fc67$var$applySorting = function applySorting(data, columns, order, orderDirection) {
|
|
17190
15145
|
var column = columns.find(function(c) {
|
|
17191
15146
|
return c.key === order;
|
|
17192
15147
|
});
|
|
17193
|
-
var comparator = $7b30b0659d74fc67$var$buildComparator(column
|
|
17194
|
-
|
|
17195
|
-
return
|
|
15148
|
+
var comparator = $7b30b0659d74fc67$var$buildComparator(column);
|
|
15149
|
+
return (0, $7b30b0659d74fc67$var$_toConsumableArray2["default"])(data).sort(function(a, b) {
|
|
15150
|
+
return $7b30b0659d74fc67$var$sortBy(a, b, {
|
|
15151
|
+
order: order,
|
|
15152
|
+
comparator: comparator,
|
|
15153
|
+
orderDirection: orderDirection
|
|
15154
|
+
});
|
|
17196
15155
|
});
|
|
17197
|
-
return (0, $7b30b0659d74fc67$var$_orderBy2["default"])(data, order, orderDirection);
|
|
17198
15156
|
};
|
|
17199
15157
|
module.exports.applySorting = $7b30b0659d74fc67$var$applySorting;
|
|
17200
15158
|
var $7b30b0659d74fc67$var$applyGroupSorting = function applyGroupSorting(data, columns, order, orderDirection, groupKey, sortedGroup) {
|
|
17201
15159
|
var column = columns.find(function(c) {
|
|
17202
15160
|
return c.key === order;
|
|
17203
15161
|
});
|
|
15162
|
+
var comparator = $7b30b0659d74fc67$var$buildComparator(column);
|
|
17204
15163
|
var groupedData = (0, $7b30b0659d74fc67$var$_groupBy2["default"])(data, groupKey);
|
|
17205
15164
|
if (sortedGroup) groupedData = Object.values(groupedData).map(function(group) {
|
|
17206
|
-
return $7b30b0659d74fc67$var$
|
|
15165
|
+
return (0, $7b30b0659d74fc67$var$_toConsumableArray2["default"])(group).sort(function(a, b) {
|
|
15166
|
+
return $7b30b0659d74fc67$var$sortBy(a, b, {
|
|
15167
|
+
order: order,
|
|
15168
|
+
comparator: comparator,
|
|
15169
|
+
orderDirection: orderDirection
|
|
15170
|
+
});
|
|
15171
|
+
});
|
|
17207
15172
|
});
|
|
17208
|
-
|
|
17209
|
-
|
|
17210
|
-
|
|
17211
|
-
|
|
15173
|
+
return Object.values(groupedData).sort(function(a, b) {
|
|
15174
|
+
return $7b30b0659d74fc67$var$sortBy(a[0], b[0], {
|
|
15175
|
+
order: order,
|
|
15176
|
+
comparator: comparator,
|
|
15177
|
+
orderDirection: orderDirection
|
|
15178
|
+
});
|
|
17212
15179
|
}).flat();
|
|
17213
|
-
return (0, $7b30b0659d74fc67$var$_orderBy2["default"])(groupedData, "[0].".concat(order), orderDirection).flat();
|
|
17214
15180
|
};
|
|
17215
15181
|
module.exports.applyGroupSorting = $7b30b0659d74fc67$var$applyGroupSorting;
|
|
17216
15182
|
|
|
@@ -17258,15 +15224,36 @@ var $eac58dc2231ce2e2$var$ApiRefHandler = function ApiRefHandler() {
|
|
|
17258
15224
|
var _useExport = (0, $ku1Z0.useExport)(), exportData = _useExport.exportData;
|
|
17259
15225
|
var validation = (0, $eac58dc2231ce2e2$var$_useValidation["default"])();
|
|
17260
15226
|
var _useSelection = (0, $eac58dc2231ce2e2$var$_useSelection2["default"])(), selectRows = _useSelection.selectRows, selectedRows = _useSelection.selectedRows;
|
|
17261
|
-
var _useConfig = (0, $ckVq7.useConfig)(), apiRef = _useConfig.apiRef;
|
|
15227
|
+
var _useConfig = (0, $ckVq7.useConfig)(), apiRef = _useConfig.apiRef, send = _useConfig.send, config = _useConfig.config, allRows = _useConfig.allRows, displayableRows = _useConfig.displayableRows;
|
|
17262
15228
|
apiRef.current.exportData = exportData;
|
|
17263
15229
|
apiRef.current.selectRows = selectRows;
|
|
17264
15230
|
apiRef.current.getSelectedRows = function() {
|
|
17265
15231
|
return selectedRows;
|
|
17266
15232
|
};
|
|
15233
|
+
apiRef.current.edit = function() {
|
|
15234
|
+
return send("edit");
|
|
15235
|
+
};
|
|
15236
|
+
apiRef.current.deleteNewRows = function() {
|
|
15237
|
+
return send("deleteNewRows");
|
|
15238
|
+
};
|
|
17267
15239
|
apiRef.current.state = {
|
|
17268
15240
|
selection: selectedRows
|
|
17269
15241
|
};
|
|
15242
|
+
apiRef.current.getData = function(options) {
|
|
15243
|
+
return options !== null && options !== void 0 && options.filtered ? displayableRows : allRows;
|
|
15244
|
+
};
|
|
15245
|
+
apiRef.current.getColumns = function() {
|
|
15246
|
+
return config.columnsRaw;
|
|
15247
|
+
};
|
|
15248
|
+
apiRef.current.setCellValue = function(_ref) {
|
|
15249
|
+
var keyId = _ref.keyId, key = _ref.key, value = _ref.value;
|
|
15250
|
+
return send("input", {
|
|
15251
|
+
key: key,
|
|
15252
|
+
selectableRowKey: config.selectableRowKey,
|
|
15253
|
+
keyId: keyId,
|
|
15254
|
+
data: value
|
|
15255
|
+
});
|
|
15256
|
+
};
|
|
17270
15257
|
apiRef.current.validation = validation;
|
|
17271
15258
|
return null;
|
|
17272
15259
|
};
|
|
@@ -17517,7 +15504,7 @@ var $ecb12ed14934dbaa$var$required = function required(message) {
|
|
|
17517
15504
|
module.exports.required = $ecb12ed14934dbaa$var$required;
|
|
17518
15505
|
var $ecb12ed14934dbaa$var$date = function date(message) {
|
|
17519
15506
|
return function(obj, key) {
|
|
17520
|
-
if (!(0, $ecb12ed14934dbaa$var$_moment["default"])((0, $ecb12ed14934dbaa$var$_get2["default"])(obj, key,
|
|
15507
|
+
if (!(0, $ecb12ed14934dbaa$var$_moment["default"])((0, $ecb12ed14934dbaa$var$_get2["default"])(obj, key, $ecb12ed14934dbaa$var$_moment["default"].invalid())).isValid()) return message || $ecb12ed14934dbaa$var$_I18n["default"].t("validation.errors.invalidDate");
|
|
17521
15508
|
};
|
|
17522
15509
|
};
|
|
17523
15510
|
module.exports.date = $ecb12ed14934dbaa$var$date;
|
|
@@ -17592,14 +15579,14 @@ var $91a39eacac205c01$var$_classnames = $gXNCa$babelruntimehelpersinteropRequire
|
|
|
17592
15579
|
|
|
17593
15580
|
var $91a39eacac205c01$var$_propTypes = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$proptypes);
|
|
17594
15581
|
|
|
17595
|
-
var $91a39eacac205c01$var$_stylesModule = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("bOZp3")));
|
|
17596
|
-
|
|
17597
15582
|
var $91a39eacac205c01$var$_DropdownIcon = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("aFBmr")));
|
|
17598
15583
|
|
|
17599
15584
|
var $91a39eacac205c01$var$_CloseIcon = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("dLjgM")));
|
|
17600
15585
|
|
|
17601
15586
|
var $91a39eacac205c01$var$_I18n = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("b4Pcp")));
|
|
17602
15587
|
|
|
15588
|
+
var $91a39eacac205c01$var$_styles = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("dGthL")));
|
|
15589
|
+
|
|
17603
15590
|
var $91a39eacac205c01$var$_Results = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("3EwWo")));
|
|
17604
15591
|
|
|
17605
15592
|
var $91a39eacac205c01$var$_Selector = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("fr13H")));
|
|
@@ -17608,6 +15595,7 @@ var $91a39eacac205c01$var$_hook = $gXNCa$babelruntimehelpersinteropRequireDefaul
|
|
|
17608
15595
|
var $91a39eacac205c01$var$AutocompleteMultiple = function AutocompleteMultiple(_ref) {
|
|
17609
15596
|
var _formatedOptions$filt, _htmlElRef$current;
|
|
17610
15597
|
var _ref$options = _ref.options, options = _ref$options === void 0 ? [] : _ref$options, customSearch = _ref.customSearch, _ref$onChange = _ref.onChange, onChange = _ref$onChange === void 0 ? function() {} : _ref$onChange, isError = _ref.isError, label = _ref.label;
|
|
15598
|
+
var styles = (0, $91a39eacac205c01$var$_styles["default"])();
|
|
17611
15599
|
var _useAutocomplete = (0, $91a39eacac205c01$var$_hook["default"])(options, customSearch, onChange), inputValue = _useAutocomplete.inputValue, setInputValue = _useAutocomplete.setInputValue, isSearching = _useAutocomplete.isSearching, setIsSearching = _useAutocomplete.setIsSearching, formatedOptions = _useAutocomplete.formatedOptions, setFormatedOptions = _useAutocomplete.setFormatedOptions, filteredOptions = _useAutocomplete.filteredOptions, widthContainer = _useAutocomplete.widthContainer, htmlElRef = _useAutocomplete.htmlElRef;
|
|
17612
15600
|
var handleUnselectAll = function handleUnselectAll(e) {
|
|
17613
15601
|
e.stopPropagation();
|
|
@@ -17650,7 +15638,7 @@ var $91a39eacac205c01$var$AutocompleteMultiple = function AutocompleteMultiple(_
|
|
|
17650
15638
|
return op === null || op === void 0 ? void 0 : op.selected;
|
|
17651
15639
|
});
|
|
17652
15640
|
return /*#__PURE__*/ $91a39eacac205c01$var$_react["default"].createElement("div", {
|
|
17653
|
-
className:
|
|
15641
|
+
className: styles.autoCompleteContainer,
|
|
17654
15642
|
ref: htmlElRef
|
|
17655
15643
|
}, /*#__PURE__*/ $91a39eacac205c01$var$_react["default"].createElement("input", {
|
|
17656
15644
|
type: "hidden",
|
|
@@ -17660,9 +15648,9 @@ var $91a39eacac205c01$var$AutocompleteMultiple = function AutocompleteMultiple(_
|
|
|
17660
15648
|
return setIsSearching(true);
|
|
17661
15649
|
}
|
|
17662
15650
|
}, /*#__PURE__*/ $91a39eacac205c01$var$_react["default"].createElement("div", {
|
|
17663
|
-
className: (0, $91a39eacac205c01$var$_classnames["default"])(
|
|
15651
|
+
className: (0, $91a39eacac205c01$var$_classnames["default"])(styles.label, isSearching && styles.search, isError && styles.isError)
|
|
17664
15652
|
}, label || $91a39eacac205c01$var$_I18n["default"].t("common.select")), /*#__PURE__*/ $91a39eacac205c01$var$_react["default"].createElement("div", {
|
|
17665
|
-
className:
|
|
15653
|
+
className: styles.selector,
|
|
17666
15654
|
"data-role": "selector"
|
|
17667
15655
|
}, /*#__PURE__*/ $91a39eacac205c01$var$_react["default"].createElement($91a39eacac205c01$var$_Selector["default"], {
|
|
17668
15656
|
isSearching: isSearching,
|
|
@@ -17676,15 +15664,15 @@ var $91a39eacac205c01$var$AutocompleteMultiple = function AutocompleteMultiple(_
|
|
|
17676
15664
|
},
|
|
17677
15665
|
isError: isError
|
|
17678
15666
|
}), /*#__PURE__*/ $91a39eacac205c01$var$_react["default"].createElement("div", {
|
|
17679
|
-
className:
|
|
15667
|
+
className: styles.icons
|
|
17680
15668
|
}, (selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions.length) > 0 && /*#__PURE__*/ $91a39eacac205c01$var$_react["default"].createElement("div", {
|
|
17681
|
-
className:
|
|
15669
|
+
className: styles.clear,
|
|
17682
15670
|
onClick: handleUnselectAll,
|
|
17683
15671
|
"data-role": "clearSelection"
|
|
17684
15672
|
}, /*#__PURE__*/ $91a39eacac205c01$var$_react["default"].createElement($91a39eacac205c01$var$_CloseIcon["default"], null)), /*#__PURE__*/ $91a39eacac205c01$var$_react["default"].createElement("div", {
|
|
17685
|
-
className: (0, $91a39eacac205c01$var$_classnames["default"])(
|
|
15673
|
+
className: (0, $91a39eacac205c01$var$_classnames["default"])(styles.dropDownIcon, isSearching && styles.rotated)
|
|
17686
15674
|
}, /*#__PURE__*/ $91a39eacac205c01$var$_react["default"].createElement($91a39eacac205c01$var$_DropdownIcon["default"], null)))), /*#__PURE__*/ $91a39eacac205c01$var$_react["default"].createElement("div", {
|
|
17687
|
-
className: (0, $91a39eacac205c01$var$_classnames["default"])(
|
|
15675
|
+
className: (0, $91a39eacac205c01$var$_classnames["default"])(styles.border, isSearching && styles.open, isError && styles.isErrorBorder)
|
|
17688
15676
|
})), isSearching && /*#__PURE__*/ $91a39eacac205c01$var$_react["default"].createElement($91a39eacac205c01$var$_Results["default"], {
|
|
17689
15677
|
setInputValue: setInputValue,
|
|
17690
15678
|
inputValue: inputValue,
|
|
@@ -17706,42 +15694,71 @@ var $91a39eacac205c01$var$_default = $91a39eacac205c01$var$AutocompleteMultiple;
|
|
|
17706
15694
|
module.exports["default"] = $91a39eacac205c01$var$_default;
|
|
17707
15695
|
|
|
17708
15696
|
});
|
|
17709
|
-
parcelRequire.register("
|
|
17710
|
-
|
|
17711
|
-
$parcel$export(module.exports, "rotated", () => $89b3fe986b2d4477$export$7d2b4e7a5a4801f2, (v) => $89b3fe986b2d4477$export$7d2b4e7a5a4801f2 = v);
|
|
17712
|
-
$parcel$export(module.exports, "icons", () => $89b3fe986b2d4477$export$df03f54e09e486fa, (v) => $89b3fe986b2d4477$export$df03f54e09e486fa = v);
|
|
17713
|
-
$parcel$export(module.exports, "clear", () => $89b3fe986b2d4477$export$42ffd38884aecdac, (v) => $89b3fe986b2d4477$export$42ffd38884aecdac = v);
|
|
17714
|
-
$parcel$export(module.exports, "open", () => $89b3fe986b2d4477$export$3ce6949f20cea765, (v) => $89b3fe986b2d4477$export$3ce6949f20cea765 = v);
|
|
17715
|
-
$parcel$export(module.exports, "label", () => $89b3fe986b2d4477$export$1237798dc640739a, (v) => $89b3fe986b2d4477$export$1237798dc640739a = v);
|
|
17716
|
-
$parcel$export(module.exports, "isError", () => $89b3fe986b2d4477$export$e6127cc7fe7395c3, (v) => $89b3fe986b2d4477$export$e6127cc7fe7395c3 = v);
|
|
17717
|
-
$parcel$export(module.exports, "border", () => $89b3fe986b2d4477$export$1edee58a52776cd9, (v) => $89b3fe986b2d4477$export$1edee58a52776cd9 = v);
|
|
17718
|
-
$parcel$export(module.exports, "autoCompleteContainer", () => $89b3fe986b2d4477$export$d08603063fe3f9a5, (v) => $89b3fe986b2d4477$export$d08603063fe3f9a5 = v);
|
|
17719
|
-
$parcel$export(module.exports, "selector", () => $89b3fe986b2d4477$export$aea217a45095ce11, (v) => $89b3fe986b2d4477$export$aea217a45095ce11 = v);
|
|
17720
|
-
$parcel$export(module.exports, "dropDownIcon", () => $89b3fe986b2d4477$export$e41ce6c93801c63c, (v) => $89b3fe986b2d4477$export$e41ce6c93801c63c = v);
|
|
17721
|
-
$parcel$export(module.exports, "search", () => $89b3fe986b2d4477$export$d76128d007d19019, (v) => $89b3fe986b2d4477$export$d76128d007d19019 = v);
|
|
17722
|
-
var $89b3fe986b2d4477$export$7d2b4e7a5a4801f2;
|
|
17723
|
-
var $89b3fe986b2d4477$export$df03f54e09e486fa;
|
|
17724
|
-
var $89b3fe986b2d4477$export$42ffd38884aecdac;
|
|
17725
|
-
var $89b3fe986b2d4477$export$3ce6949f20cea765;
|
|
17726
|
-
var $89b3fe986b2d4477$export$1237798dc640739a;
|
|
17727
|
-
var $89b3fe986b2d4477$export$e6127cc7fe7395c3;
|
|
17728
|
-
var $89b3fe986b2d4477$export$1edee58a52776cd9;
|
|
17729
|
-
var $89b3fe986b2d4477$export$d08603063fe3f9a5;
|
|
17730
|
-
var $89b3fe986b2d4477$export$aea217a45095ce11;
|
|
17731
|
-
var $89b3fe986b2d4477$export$e41ce6c93801c63c;
|
|
17732
|
-
var $89b3fe986b2d4477$export$d76128d007d19019;
|
|
15697
|
+
parcelRequire.register("dGthL", function(module, exports) {
|
|
17733
15698
|
"use strict";
|
|
17734
|
-
|
|
17735
|
-
|
|
17736
|
-
|
|
17737
|
-
|
|
17738
|
-
|
|
17739
|
-
|
|
17740
|
-
$
|
|
17741
|
-
$
|
|
17742
|
-
|
|
17743
|
-
|
|
17744
|
-
|
|
15699
|
+
|
|
15700
|
+
Object.defineProperty(module.exports, "__esModule", {
|
|
15701
|
+
value: true
|
|
15702
|
+
});
|
|
15703
|
+
module.exports["default"] = void 0;
|
|
15704
|
+
|
|
15705
|
+
var $9f65ea1fa9e88022$var$_makeStyles = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$muistylesmakeStyles);
|
|
15706
|
+
var $9f65ea1fa9e88022$var$useStyles = (0, $9f65ea1fa9e88022$var$_makeStyles["default"])(function() {
|
|
15707
|
+
return {
|
|
15708
|
+
autoCompleteContainer: {
|
|
15709
|
+
display: "flex",
|
|
15710
|
+
flexDirection: "column",
|
|
15711
|
+
height: "50px",
|
|
15712
|
+
width: "100%",
|
|
15713
|
+
minWidth: "170px"
|
|
15714
|
+
},
|
|
15715
|
+
label: {
|
|
15716
|
+
fontSize: "12px",
|
|
15717
|
+
color: "#9b9b9b",
|
|
15718
|
+
marginBottom: "4px"
|
|
15719
|
+
},
|
|
15720
|
+
search: {
|
|
15721
|
+
color: "#0bd1d1"
|
|
15722
|
+
},
|
|
15723
|
+
isError: {
|
|
15724
|
+
color: "#fe3a5e"
|
|
15725
|
+
},
|
|
15726
|
+
selector: {
|
|
15727
|
+
display: "flex",
|
|
15728
|
+
height: "24px"
|
|
15729
|
+
},
|
|
15730
|
+
icons: {
|
|
15731
|
+
marginLeft: "auto",
|
|
15732
|
+
display: "flex",
|
|
15733
|
+
flexDirection: "row"
|
|
15734
|
+
},
|
|
15735
|
+
dropDownIcon: {
|
|
15736
|
+
width: "12px",
|
|
15737
|
+
marginLeft: "8px"
|
|
15738
|
+
},
|
|
15739
|
+
rotated: {
|
|
15740
|
+
transform: "rotate(180deg)"
|
|
15741
|
+
},
|
|
15742
|
+
clear: {
|
|
15743
|
+
width: "12px",
|
|
15744
|
+
marginLeft: "auto",
|
|
15745
|
+
cursor: "pointer"
|
|
15746
|
+
},
|
|
15747
|
+
border: {
|
|
15748
|
+
width: "100%",
|
|
15749
|
+
marginTop: "5px",
|
|
15750
|
+
borderBottom: "2px solid #d7d7d7"
|
|
15751
|
+
},
|
|
15752
|
+
isErrorBorder: {
|
|
15753
|
+
borderBottom: "2px solid #fe3a5e"
|
|
15754
|
+
},
|
|
15755
|
+
open: {
|
|
15756
|
+
borderBottom: "2px solid #0bd1d1"
|
|
15757
|
+
}
|
|
15758
|
+
};
|
|
15759
|
+
});
|
|
15760
|
+
var $9f65ea1fa9e88022$var$_default = $9f65ea1fa9e88022$var$useStyles;
|
|
15761
|
+
module.exports["default"] = $9f65ea1fa9e88022$var$_default;
|
|
17745
15762
|
|
|
17746
15763
|
});
|
|
17747
15764
|
|
|
@@ -17757,7 +15774,7 @@ var $2a8ea8e017c38455$var$_react = $gXNCa$babelruntimehelpersinteropRequireDefau
|
|
|
17757
15774
|
|
|
17758
15775
|
var $2a8ea8e017c38455$var$_propTypes = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$proptypes);
|
|
17759
15776
|
|
|
17760
|
-
var $2a8ea8e017c38455$var$
|
|
15777
|
+
var $2a8ea8e017c38455$var$_styles = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("cnJGQ")));
|
|
17761
15778
|
|
|
17762
15779
|
var $2a8ea8e017c38455$var$_I18n = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("b4Pcp")));
|
|
17763
15780
|
|
|
@@ -17766,17 +15783,18 @@ var $2a8ea8e017c38455$var$_SearchBar = $gXNCa$babelruntimehelpersinteropRequireD
|
|
|
17766
15783
|
var $2a8ea8e017c38455$var$_SuggestList = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("aLbIo")));
|
|
17767
15784
|
var $2a8ea8e017c38455$var$Results = function Results(_ref) {
|
|
17768
15785
|
var inputValue = _ref.inputValue, setInputValue = _ref.setInputValue, filteredOptions = _ref.filteredOptions, widthContainer = _ref.widthContainer, handleClickAll = _ref.handleClickAll, onClickLine = _ref.onClickLine, isSearching = _ref.isSearching;
|
|
15786
|
+
var styles = (0, $2a8ea8e017c38455$var$_styles["default"])();
|
|
17769
15787
|
var handleChange = function handleChange(e) {
|
|
17770
15788
|
setInputValue(e.target.value);
|
|
17771
15789
|
};
|
|
17772
15790
|
return /*#__PURE__*/ $2a8ea8e017c38455$var$_react["default"].createElement("div", {
|
|
17773
|
-
className:
|
|
15791
|
+
className: styles.resultsContainer
|
|
17774
15792
|
}, /*#__PURE__*/ $2a8ea8e017c38455$var$_react["default"].createElement($2a8ea8e017c38455$var$_SearchBar["default"], {
|
|
17775
15793
|
setValue: setInputValue,
|
|
17776
15794
|
value: inputValue,
|
|
17777
15795
|
onChange: handleChange
|
|
17778
15796
|
}), (filteredOptions === null || filteredOptions === void 0 ? void 0 : filteredOptions.length) <= 0 ? /*#__PURE__*/ $2a8ea8e017c38455$var$_react["default"].createElement("div", {
|
|
17779
|
-
className:
|
|
15797
|
+
className: styles.noResult
|
|
17780
15798
|
}, " ", $2a8ea8e017c38455$var$_I18n["default"].t("common.noResult"), " ") : /*#__PURE__*/ $2a8ea8e017c38455$var$_react["default"].createElement($2a8ea8e017c38455$var$_react["default"].Fragment, null, /*#__PURE__*/ $2a8ea8e017c38455$var$_react["default"].createElement($2a8ea8e017c38455$var$_SuggestList["default"], {
|
|
17781
15799
|
list: filteredOptions,
|
|
17782
15800
|
myAutoCompleteInputValue: inputValue,
|
|
@@ -17800,15 +15818,34 @@ var $2a8ea8e017c38455$var$_default = $2a8ea8e017c38455$var$Results;
|
|
|
17800
15818
|
module.exports["default"] = $2a8ea8e017c38455$var$_default;
|
|
17801
15819
|
|
|
17802
15820
|
});
|
|
17803
|
-
parcelRequire.register("
|
|
17804
|
-
|
|
17805
|
-
$parcel$export(module.exports, "noResult", () => $4aa29644d428563d$export$17aca76bf89ef49e, (v) => $4aa29644d428563d$export$17aca76bf89ef49e = v);
|
|
17806
|
-
$parcel$export(module.exports, "resultsContainer", () => $4aa29644d428563d$export$15750c32f8f4f754, (v) => $4aa29644d428563d$export$15750c32f8f4f754 = v);
|
|
17807
|
-
var $4aa29644d428563d$export$17aca76bf89ef49e;
|
|
17808
|
-
var $4aa29644d428563d$export$15750c32f8f4f754;
|
|
15821
|
+
parcelRequire.register("cnJGQ", function(module, exports) {
|
|
17809
15822
|
"use strict";
|
|
17810
|
-
|
|
17811
|
-
|
|
15823
|
+
|
|
15824
|
+
Object.defineProperty(module.exports, "__esModule", {
|
|
15825
|
+
value: true
|
|
15826
|
+
});
|
|
15827
|
+
module.exports["default"] = void 0;
|
|
15828
|
+
|
|
15829
|
+
var $903b131c60ad19d3$var$_makeStyles = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$muistylesmakeStyles);
|
|
15830
|
+
var $903b131c60ad19d3$var$useStyles = (0, $903b131c60ad19d3$var$_makeStyles["default"])(function() {
|
|
15831
|
+
return {
|
|
15832
|
+
resultsContainer: {
|
|
15833
|
+
boxShadow: "0px 2px 2px 0 rgba(0, 0, 0, 0.1)",
|
|
15834
|
+
padding: "4px",
|
|
15835
|
+
backgroundColor: "#ffffff",
|
|
15836
|
+
zIndex: 9
|
|
15837
|
+
},
|
|
15838
|
+
noResult: {
|
|
15839
|
+
textAlign: "center",
|
|
15840
|
+
marginTop: "15px",
|
|
15841
|
+
color: "#9b9b9b",
|
|
15842
|
+
fontSize: "16px",
|
|
15843
|
+
marginBottom: "10px"
|
|
15844
|
+
}
|
|
15845
|
+
};
|
|
15846
|
+
});
|
|
15847
|
+
var $903b131c60ad19d3$var$_default = $903b131c60ad19d3$var$useStyles;
|
|
15848
|
+
module.exports["default"] = $903b131c60ad19d3$var$_default;
|
|
17812
15849
|
|
|
17813
15850
|
});
|
|
17814
15851
|
|
|
@@ -17865,19 +15902,19 @@ module.exports["default"] = $060ef87bc99cc1cf$var$_default;
|
|
|
17865
15902
|
});
|
|
17866
15903
|
parcelRequire.register("bfmDi", function(module, exports) {
|
|
17867
15904
|
|
|
17868
|
-
$parcel$export(module.exports, "inputContainer", () => $8302a6d46dfd98fe$export$72108e4fb43880e3, (v) => $8302a6d46dfd98fe$export$72108e4fb43880e3 = v);
|
|
17869
15905
|
$parcel$export(module.exports, "inputSearch", () => $8302a6d46dfd98fe$export$f78c4432585bf2ac, (v) => $8302a6d46dfd98fe$export$f78c4432585bf2ac = v);
|
|
17870
15906
|
$parcel$export(module.exports, "searchIcon", () => $8302a6d46dfd98fe$export$8687ffcdea58e000, (v) => $8302a6d46dfd98fe$export$8687ffcdea58e000 = v);
|
|
17871
15907
|
$parcel$export(module.exports, "closeIcon", () => $8302a6d46dfd98fe$export$64a53ecd158b85c4, (v) => $8302a6d46dfd98fe$export$64a53ecd158b85c4 = v);
|
|
17872
|
-
|
|
15908
|
+
$parcel$export(module.exports, "inputContainer", () => $8302a6d46dfd98fe$export$72108e4fb43880e3, (v) => $8302a6d46dfd98fe$export$72108e4fb43880e3 = v);
|
|
17873
15909
|
var $8302a6d46dfd98fe$export$f78c4432585bf2ac;
|
|
17874
15910
|
var $8302a6d46dfd98fe$export$8687ffcdea58e000;
|
|
17875
15911
|
var $8302a6d46dfd98fe$export$64a53ecd158b85c4;
|
|
15912
|
+
var $8302a6d46dfd98fe$export$72108e4fb43880e3;
|
|
17876
15913
|
"use strict";
|
|
17877
|
-
$8302a6d46dfd98fe$export$72108e4fb43880e3 = "t5EYra_inputContainer";
|
|
17878
15914
|
$8302a6d46dfd98fe$export$f78c4432585bf2ac = "t5EYra_inputSearch";
|
|
17879
15915
|
$8302a6d46dfd98fe$export$8687ffcdea58e000 = "t5EYra_searchIcon";
|
|
17880
15916
|
$8302a6d46dfd98fe$export$64a53ecd158b85c4 = "t5EYra_closeIcon";
|
|
15917
|
+
$8302a6d46dfd98fe$export$72108e4fb43880e3 = "t5EYra_inputContainer";
|
|
17881
15918
|
|
|
17882
15919
|
});
|
|
17883
15920
|
|
|
@@ -17901,7 +15938,7 @@ var $7d5761816dd9f126$var$_SuggestItem = $gXNCa$babelruntimehelpersinteropRequir
|
|
|
17901
15938
|
|
|
17902
15939
|
var $7d5761816dd9f126$var$_I18n = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("b4Pcp")));
|
|
17903
15940
|
|
|
17904
|
-
var $7d5761816dd9f126$var$
|
|
15941
|
+
var $7d5761816dd9f126$var$_styles = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("3UPQz")));
|
|
17905
15942
|
|
|
17906
15943
|
var $7d5761816dd9f126$var$_MyAutoCompleteSuggestListScrollBar = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("1MxVf")));
|
|
17907
15944
|
function $7d5761816dd9f126$var$_getRequireWildcardCache(nodeInterop) {
|
|
@@ -17934,6 +15971,7 @@ var $7d5761816dd9f126$var$numberOfItemDisplayed = 5;
|
|
|
17934
15971
|
var $7d5761816dd9f126$var$SuggestList = function SuggestList(_ref) {
|
|
17935
15972
|
var _myAutoCompleteSugges3;
|
|
17936
15973
|
var itemHeight = _ref.itemHeight, list = _ref.list, myAutoCompleteInputValue = _ref.myAutoCompleteInputValue, isOpen = _ref.isOpen, handleClickAll = _ref.handleClickAll, widthContainer = _ref.widthContainer, onClickLine = _ref.onClickLine;
|
|
15974
|
+
var styles = (0, $7d5761816dd9f126$var$_styles["default"])();
|
|
17937
15975
|
var _useState = (0, $7d5761816dd9f126$var$_react.useState)(0), _useState2 = (0, $7d5761816dd9f126$var$_slicedToArray2["default"])(_useState, 2), currentPositionY = _useState2[0], setCurrentPositionY = _useState2[1];
|
|
17938
15976
|
var _useState3 = (0, $7d5761816dd9f126$var$_react.useState)([]), _useState4 = (0, $7d5761816dd9f126$var$_slicedToArray2["default"])(_useState3, 2), currentListInDom = _useState4[0], setCurrentListInDom = _useState4[1];
|
|
17939
15977
|
var currentPositionYRef = (0, $7d5761816dd9f126$var$_react.useRef)(currentPositionY);
|
|
@@ -18050,7 +16088,7 @@ var $7d5761816dd9f126$var$SuggestList = function SuggestList(_ref) {
|
|
|
18050
16088
|
ref: myAutoCompleteSuggestListRef,
|
|
18051
16089
|
style: handleStyle()
|
|
18052
16090
|
}, /*#__PURE__*/ $7d5761816dd9f126$var$_react["default"].createElement("div", {
|
|
18053
|
-
className:
|
|
16091
|
+
className: styles.allOptions,
|
|
18054
16092
|
"data-role": "allOptions"
|
|
18055
16093
|
}, /*#__PURE__*/ $7d5761816dd9f126$var$_react["default"].createElement($7d5761816dd9f126$var$_SuggestItem["default"], {
|
|
18056
16094
|
option: optionAll,
|
|
@@ -18099,7 +16137,7 @@ var $827476aa1ed605f8$var$_react = $gXNCa$babelruntimehelpersinteropRequireDefau
|
|
|
18099
16137
|
|
|
18100
16138
|
var $827476aa1ed605f8$var$_propTypes = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$proptypes);
|
|
18101
16139
|
|
|
18102
|
-
var $827476aa1ed605f8$var$
|
|
16140
|
+
var $827476aa1ed605f8$var$_styles = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("2j5o9")));
|
|
18103
16141
|
|
|
18104
16142
|
var $827476aa1ed605f8$var$_classnames = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$classnames);
|
|
18105
16143
|
|
|
@@ -18109,11 +16147,12 @@ var $827476aa1ed605f8$var$SIZE_CHAR = 6.5;
|
|
|
18109
16147
|
var $827476aa1ed605f8$var$SuggestItem = function SuggestItem(_ref) {
|
|
18110
16148
|
var _option$label;
|
|
18111
16149
|
var option = _ref.option, widthContainer = _ref.widthContainer, onClick = _ref.onClick;
|
|
16150
|
+
var styles = (0, $827476aa1ed605f8$var$_styles["default"])();
|
|
18112
16151
|
return /*#__PURE__*/ $827476aa1ed605f8$var$_react["default"].createElement("div", {
|
|
18113
|
-
className: (0, $827476aa1ed605f8$var$_classnames["default"])(
|
|
16152
|
+
className: (0, $827476aa1ed605f8$var$_classnames["default"])(styles.line, (option === null || option === void 0 ? void 0 : option.disabled) && styles.disabled),
|
|
18114
16153
|
onClick: onClick
|
|
18115
16154
|
}, /*#__PURE__*/ $827476aa1ed605f8$var$_react["default"].createElement("div", {
|
|
18116
|
-
className:
|
|
16155
|
+
className: styles.checkboxContainer
|
|
18117
16156
|
}, /*#__PURE__*/ $827476aa1ed605f8$var$_react["default"].createElement($827476aa1ed605f8$var$_Checkbox["default"], {
|
|
18118
16157
|
checked: option.selected,
|
|
18119
16158
|
disabled: option === null || option === void 0 ? void 0 : option.disabled,
|
|
@@ -18124,9 +16163,9 @@ var $827476aa1ed605f8$var$SuggestItem = function SuggestItem(_ref) {
|
|
|
18124
16163
|
enterDelay: 900,
|
|
18125
16164
|
enterNextDelay: 900
|
|
18126
16165
|
}, /*#__PURE__*/ $827476aa1ed605f8$var$_react["default"].createElement("div", {
|
|
18127
|
-
className:
|
|
16166
|
+
className: styles.label
|
|
18128
16167
|
}, option === null || option === void 0 ? void 0 : option.label)) : /*#__PURE__*/ $827476aa1ed605f8$var$_react["default"].createElement("div", {
|
|
18129
|
-
className:
|
|
16168
|
+
className: styles.label
|
|
18130
16169
|
}, option === null || option === void 0 ? void 0 : option.label));
|
|
18131
16170
|
};
|
|
18132
16171
|
$827476aa1ed605f8$var$SuggestItem.propTypes = {
|
|
@@ -18136,21 +16175,58 @@ var $827476aa1ed605f8$var$_default = $827476aa1ed605f8$var$SuggestItem;
|
|
|
18136
16175
|
module.exports["default"] = $827476aa1ed605f8$var$_default;
|
|
18137
16176
|
|
|
18138
16177
|
});
|
|
18139
|
-
parcelRequire.register("
|
|
18140
|
-
|
|
18141
|
-
$parcel$export(module.exports, "disabled", () => $7cbe4e30c9952688$export$683472f6198a076e, (v) => $7cbe4e30c9952688$export$683472f6198a076e = v);
|
|
18142
|
-
$parcel$export(module.exports, "checkboxContainer", () => $7cbe4e30c9952688$export$be69ea624d82a314, (v) => $7cbe4e30c9952688$export$be69ea624d82a314 = v);
|
|
18143
|
-
$parcel$export(module.exports, "line", () => $7cbe4e30c9952688$export$53f1d5ea8de3d7c, (v) => $7cbe4e30c9952688$export$53f1d5ea8de3d7c = v);
|
|
18144
|
-
$parcel$export(module.exports, "label", () => $7cbe4e30c9952688$export$1237798dc640739a, (v) => $7cbe4e30c9952688$export$1237798dc640739a = v);
|
|
18145
|
-
var $7cbe4e30c9952688$export$683472f6198a076e;
|
|
18146
|
-
var $7cbe4e30c9952688$export$be69ea624d82a314;
|
|
18147
|
-
var $7cbe4e30c9952688$export$53f1d5ea8de3d7c;
|
|
18148
|
-
var $7cbe4e30c9952688$export$1237798dc640739a;
|
|
16178
|
+
parcelRequire.register("2j5o9", function(module, exports) {
|
|
18149
16179
|
"use strict";
|
|
18150
|
-
|
|
18151
|
-
|
|
18152
|
-
|
|
18153
|
-
|
|
16180
|
+
|
|
16181
|
+
Object.defineProperty(module.exports, "__esModule", {
|
|
16182
|
+
value: true
|
|
16183
|
+
});
|
|
16184
|
+
module.exports["default"] = void 0;
|
|
16185
|
+
|
|
16186
|
+
var $1ae189265250ab5f$var$_makeStyles = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$muistylesmakeStyles);
|
|
16187
|
+
var $1ae189265250ab5f$var$useStyles = (0, $1ae189265250ab5f$var$_makeStyles["default"])(function() {
|
|
16188
|
+
return {
|
|
16189
|
+
line: {
|
|
16190
|
+
display: "flex",
|
|
16191
|
+
height: "30px",
|
|
16192
|
+
marginTop: [
|
|
16193
|
+
"0px",
|
|
16194
|
+
"2px"
|
|
16195
|
+
],
|
|
16196
|
+
alignItems: "center",
|
|
16197
|
+
paddingLeft: "8px",
|
|
16198
|
+
"&:hover": {
|
|
16199
|
+
cursor: "pointer",
|
|
16200
|
+
transitionDuration: "300ms",
|
|
16201
|
+
backgroundColor: "#ebebeb"
|
|
16202
|
+
}
|
|
16203
|
+
},
|
|
16204
|
+
disabled: {
|
|
16205
|
+
color: "#c3c3c3",
|
|
16206
|
+
"&:hover": {
|
|
16207
|
+
cursor: "initial"
|
|
16208
|
+
}
|
|
16209
|
+
},
|
|
16210
|
+
checkboxContainer: {
|
|
16211
|
+
height: "14px",
|
|
16212
|
+
width: "14px"
|
|
16213
|
+
},
|
|
16214
|
+
label: {
|
|
16215
|
+
marginLeft: "8px",
|
|
16216
|
+
overflow: [
|
|
16217
|
+
"hidden",
|
|
16218
|
+
"hidden"
|
|
16219
|
+
],
|
|
16220
|
+
textAlign: "left",
|
|
16221
|
+
whiteSpace: "nowrap",
|
|
16222
|
+
textOverflow: "ellipsis",
|
|
16223
|
+
width: "100%",
|
|
16224
|
+
fontSize: "14px"
|
|
16225
|
+
}
|
|
16226
|
+
};
|
|
16227
|
+
});
|
|
16228
|
+
var $1ae189265250ab5f$var$_default = $1ae189265250ab5f$var$useStyles;
|
|
16229
|
+
module.exports["default"] = $1ae189265250ab5f$var$_default;
|
|
18154
16230
|
|
|
18155
16231
|
});
|
|
18156
16232
|
|
|
@@ -18166,13 +16242,14 @@ var $582fe4327e2ca233$var$_react = $gXNCa$babelruntimehelpersinteropRequireDefau
|
|
|
18166
16242
|
|
|
18167
16243
|
var $582fe4327e2ca233$var$_propTypes = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$proptypes);
|
|
18168
16244
|
|
|
18169
|
-
var $582fe4327e2ca233$var$
|
|
16245
|
+
var $582fe4327e2ca233$var$_styles = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("bb5TD")));
|
|
18170
16246
|
|
|
18171
16247
|
var $582fe4327e2ca233$var$_CheckboxIcon = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("jG8Ih")));
|
|
18172
16248
|
var $582fe4327e2ca233$var$Checkbox = function Checkbox(_ref) {
|
|
18173
16249
|
var checked = _ref.checked, size = _ref.size, disabled = _ref.disabled;
|
|
16250
|
+
var styles = (0, $582fe4327e2ca233$var$_styles["default"])();
|
|
18174
16251
|
var sizeCheck = size ? size + "px" : "100%";
|
|
18175
|
-
var customStyle = "".concat(
|
|
16252
|
+
var customStyle = "".concat(styles.checkbox, " ").concat(checked && styles.checked, " ").concat(checked && disabled && styles.disabledChecked, " ").concat(!checked && disabled && styles.disabledNotChecked);
|
|
18176
16253
|
return /*#__PURE__*/ $582fe4327e2ca233$var$_react["default"].createElement($582fe4327e2ca233$var$_react["default"].Fragment, null, /*#__PURE__*/ $582fe4327e2ca233$var$_react["default"].createElement("div", {
|
|
18177
16254
|
style: {
|
|
18178
16255
|
height: sizeCheck,
|
|
@@ -18198,29 +16275,74 @@ var $582fe4327e2ca233$var$_default = $582fe4327e2ca233$var$Checkbox;
|
|
|
18198
16275
|
module.exports["default"] = $582fe4327e2ca233$var$_default;
|
|
18199
16276
|
|
|
18200
16277
|
});
|
|
18201
|
-
parcelRequire.register("
|
|
18202
|
-
|
|
18203
|
-
$parcel$export(module.exports, "checkbox", () => $3a2f7c860af0abde$export$b07e517d22efa1ca, (v) => $3a2f7c860af0abde$export$b07e517d22efa1ca = v);
|
|
18204
|
-
$parcel$export(module.exports, "disabled", () => $3a2f7c860af0abde$export$683472f6198a076e, (v) => $3a2f7c860af0abde$export$683472f6198a076e = v);
|
|
18205
|
-
$parcel$export(module.exports, "checked", () => $3a2f7c860af0abde$export$b96bb35bc88d6fa, (v) => $3a2f7c860af0abde$export$b96bb35bc88d6fa = v);
|
|
18206
|
-
var $3a2f7c860af0abde$export$b07e517d22efa1ca;
|
|
18207
|
-
var $3a2f7c860af0abde$export$683472f6198a076e;
|
|
18208
|
-
var $3a2f7c860af0abde$export$b96bb35bc88d6fa;
|
|
16278
|
+
parcelRequire.register("bb5TD", function(module, exports) {
|
|
18209
16279
|
"use strict";
|
|
18210
|
-
$3a2f7c860af0abde$export$b07e517d22efa1ca = "pNP20W_checkbox";
|
|
18211
|
-
$3a2f7c860af0abde$export$683472f6198a076e = "pNP20W_disabled";
|
|
18212
|
-
$3a2f7c860af0abde$export$b96bb35bc88d6fa = "pNP20W_checked";
|
|
18213
16280
|
|
|
16281
|
+
Object.defineProperty(module.exports, "__esModule", {
|
|
16282
|
+
value: true
|
|
16283
|
+
});
|
|
16284
|
+
module.exports["default"] = void 0;
|
|
16285
|
+
|
|
16286
|
+
var $82354bb3fe57d9e7$var$_makeStyles = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$muistylesmakeStyles);
|
|
16287
|
+
var $82354bb3fe57d9e7$var$useStyles = (0, $82354bb3fe57d9e7$var$_makeStyles["default"])(function() {
|
|
16288
|
+
return {
|
|
16289
|
+
checkbox: {
|
|
16290
|
+
height: "100%",
|
|
16291
|
+
width: "100%",
|
|
16292
|
+
borderRadius: "2px",
|
|
16293
|
+
border: "2px solid #d7d7d7",
|
|
16294
|
+
boxSizing: "border-box",
|
|
16295
|
+
"&:hover": {
|
|
16296
|
+
cursor: "pointer"
|
|
16297
|
+
}
|
|
16298
|
+
},
|
|
16299
|
+
checked: {
|
|
16300
|
+
border: "2px solid #0bd1d1",
|
|
16301
|
+
color: "white",
|
|
16302
|
+
backgroundColor: "#0bd1d1"
|
|
16303
|
+
},
|
|
16304
|
+
disabledChecked: {
|
|
16305
|
+
border: "2px solid #c3c3c3",
|
|
16306
|
+
backgroundColor: "#c3c3c3",
|
|
16307
|
+
"&:hover": {
|
|
16308
|
+
cursor: "initial"
|
|
16309
|
+
}
|
|
16310
|
+
},
|
|
16311
|
+
disabledNotChecked: {
|
|
16312
|
+
border: "2px solid #c3c3c3",
|
|
16313
|
+
"&:hover": {
|
|
16314
|
+
cursor: "initial"
|
|
16315
|
+
}
|
|
16316
|
+
}
|
|
16317
|
+
};
|
|
18214
16318
|
});
|
|
16319
|
+
var $82354bb3fe57d9e7$var$_default = $82354bb3fe57d9e7$var$useStyles;
|
|
16320
|
+
module.exports["default"] = $82354bb3fe57d9e7$var$_default;
|
|
18215
16321
|
|
|
16322
|
+
});
|
|
18216
16323
|
|
|
18217
16324
|
|
|
18218
|
-
parcelRequire.register("kJr2w", function(module, exports) {
|
|
18219
16325
|
|
|
18220
|
-
|
|
18221
|
-
var $f17cfc230a2f89a2$export$1df62816070ed9f0;
|
|
16326
|
+
parcelRequire.register("3UPQz", function(module, exports) {
|
|
18222
16327
|
"use strict";
|
|
18223
|
-
|
|
16328
|
+
|
|
16329
|
+
Object.defineProperty(module.exports, "__esModule", {
|
|
16330
|
+
value: true
|
|
16331
|
+
});
|
|
16332
|
+
module.exports["default"] = void 0;
|
|
16333
|
+
|
|
16334
|
+
var $2d9ed1cb81ba289f$var$_makeStyles = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$muistylesmakeStyles);
|
|
16335
|
+
var $2d9ed1cb81ba289f$var$useStyles = (0, $2d9ed1cb81ba289f$var$_makeStyles["default"])(function() {
|
|
16336
|
+
return {
|
|
16337
|
+
allOptions: {
|
|
16338
|
+
fontWeight: "bold",
|
|
16339
|
+
marginBottom: "5px",
|
|
16340
|
+
marginTop: "2px"
|
|
16341
|
+
}
|
|
16342
|
+
};
|
|
16343
|
+
});
|
|
16344
|
+
var $2d9ed1cb81ba289f$var$_default = $2d9ed1cb81ba289f$var$useStyles;
|
|
16345
|
+
module.exports["default"] = $2d9ed1cb81ba289f$var$_default;
|
|
18224
16346
|
|
|
18225
16347
|
});
|
|
18226
16348
|
|
|
@@ -18382,7 +16504,7 @@ var $b3ca32e1e8152d41$var$_react = $gXNCa$babelruntimehelpersinteropRequireDefau
|
|
|
18382
16504
|
|
|
18383
16505
|
var $b3ca32e1e8152d41$var$_propTypes = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$proptypes);
|
|
18384
16506
|
|
|
18385
|
-
var $b3ca32e1e8152d41$var$
|
|
16507
|
+
var $b3ca32e1e8152d41$var$_styles = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("kqD6q")));
|
|
18386
16508
|
|
|
18387
16509
|
var $b3ca32e1e8152d41$var$_I18n = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("b4Pcp")));
|
|
18388
16510
|
|
|
@@ -18394,12 +16516,13 @@ var $b3ca32e1e8152d41$var$_ListChips = $gXNCa$babelruntimehelpersinteropRequireD
|
|
|
18394
16516
|
var $b3ca32e1e8152d41$var$Selector = function Selector(_ref) {
|
|
18395
16517
|
var isSearching = _ref.isSearching, _ref$options = _ref.options, options = _ref$options === void 0 ? [] : _ref$options, isAllSelected = _ref.isAllSelected, widthContainer = _ref.widthContainer, onUnselectChips = _ref.onUnselectChips;
|
|
18396
16518
|
var isNothingSelected = (options === null || options === void 0 ? void 0 : options.length) === 0;
|
|
16519
|
+
var styles = (0, $b3ca32e1e8152d41$var$_styles["default"])();
|
|
18397
16520
|
return /*#__PURE__*/ $b3ca32e1e8152d41$var$_react["default"].createElement("div", {
|
|
18398
|
-
className:
|
|
16521
|
+
className: styles.selectorContainer
|
|
18399
16522
|
}, isNothingSelected && /*#__PURE__*/ $b3ca32e1e8152d41$var$_react["default"].createElement("div", {
|
|
18400
|
-
className: (0, $b3ca32e1e8152d41$var$_classnames["default"])(
|
|
16523
|
+
className: (0, $b3ca32e1e8152d41$var$_classnames["default"])(styles.description, isSearching && styles.search)
|
|
18401
16524
|
}, $b3ca32e1e8152d41$var$_I18n["default"].t("common.select")), isAllSelected && !isNothingSelected && /*#__PURE__*/ $b3ca32e1e8152d41$var$_react["default"].createElement("div", {
|
|
18402
|
-
className:
|
|
16525
|
+
className: styles.chipsContainer
|
|
18403
16526
|
}, /*#__PURE__*/ $b3ca32e1e8152d41$var$_react["default"].createElement($b3ca32e1e8152d41$var$_Chips["default"], {
|
|
18404
16527
|
text: $b3ca32e1e8152d41$var$_I18n["default"].t("common.all"),
|
|
18405
16528
|
isClosable: false
|
|
@@ -18420,21 +16543,38 @@ var $b3ca32e1e8152d41$var$_default = $b3ca32e1e8152d41$var$Selector;
|
|
|
18420
16543
|
module.exports["default"] = $b3ca32e1e8152d41$var$_default;
|
|
18421
16544
|
|
|
18422
16545
|
});
|
|
18423
|
-
parcelRequire.register("
|
|
18424
|
-
|
|
18425
|
-
$parcel$export(module.exports, "selectorContainer", () => $43ad1b6180880954$export$4f73249088d12862, (v) => $43ad1b6180880954$export$4f73249088d12862 = v);
|
|
18426
|
-
$parcel$export(module.exports, "search", () => $43ad1b6180880954$export$d76128d007d19019, (v) => $43ad1b6180880954$export$d76128d007d19019 = v);
|
|
18427
|
-
$parcel$export(module.exports, "description", () => $43ad1b6180880954$export$6d59db4903f20f7d, (v) => $43ad1b6180880954$export$6d59db4903f20f7d = v);
|
|
18428
|
-
$parcel$export(module.exports, "chipsContainer", () => $43ad1b6180880954$export$4ecd951fab6372ae, (v) => $43ad1b6180880954$export$4ecd951fab6372ae = v);
|
|
18429
|
-
var $43ad1b6180880954$export$4f73249088d12862;
|
|
18430
|
-
var $43ad1b6180880954$export$d76128d007d19019;
|
|
18431
|
-
var $43ad1b6180880954$export$6d59db4903f20f7d;
|
|
18432
|
-
var $43ad1b6180880954$export$4ecd951fab6372ae;
|
|
16546
|
+
parcelRequire.register("kqD6q", function(module, exports) {
|
|
18433
16547
|
"use strict";
|
|
18434
|
-
|
|
18435
|
-
|
|
18436
|
-
|
|
18437
|
-
|
|
16548
|
+
|
|
16549
|
+
Object.defineProperty(module.exports, "__esModule", {
|
|
16550
|
+
value: true
|
|
16551
|
+
});
|
|
16552
|
+
module.exports["default"] = void 0;
|
|
16553
|
+
|
|
16554
|
+
var $edf491578c32f3b2$var$_makeStyles = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$muistylesmakeStyles);
|
|
16555
|
+
var $edf491578c32f3b2$var$useStyles = (0, $edf491578c32f3b2$var$_makeStyles["default"])(function() {
|
|
16556
|
+
return {
|
|
16557
|
+
selectorContainer: {
|
|
16558
|
+
display: "flex",
|
|
16559
|
+
alignItems: "flex-end"
|
|
16560
|
+
},
|
|
16561
|
+
chipsContainer: {
|
|
16562
|
+
display: "flex",
|
|
16563
|
+
flexDirection: "row",
|
|
16564
|
+
alignItems: "center",
|
|
16565
|
+
height: "100%"
|
|
16566
|
+
},
|
|
16567
|
+
description: {
|
|
16568
|
+
fontSize: "14px",
|
|
16569
|
+
color: "#000"
|
|
16570
|
+
},
|
|
16571
|
+
search: {
|
|
16572
|
+
color: "#9b9b9b"
|
|
16573
|
+
}
|
|
16574
|
+
};
|
|
16575
|
+
});
|
|
16576
|
+
var $edf491578c32f3b2$var$_default = $edf491578c32f3b2$var$useStyles;
|
|
16577
|
+
module.exports["default"] = $edf491578c32f3b2$var$_default;
|
|
18438
16578
|
|
|
18439
16579
|
});
|
|
18440
16580
|
|
|
@@ -18450,21 +16590,20 @@ var $8aad64d78e09e617$var$_react = $gXNCa$babelruntimehelpersinteropRequireDefau
|
|
|
18450
16590
|
|
|
18451
16591
|
var $8aad64d78e09e617$var$_propTypes = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$proptypes);
|
|
18452
16592
|
|
|
18453
|
-
var $8aad64d78e09e617$var$
|
|
18454
|
-
|
|
18455
|
-
var $8aad64d78e09e617$var$_stylesModule = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("ismXh")));
|
|
16593
|
+
var $8aad64d78e09e617$var$_styles = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("3VZW2")));
|
|
18456
16594
|
|
|
18457
16595
|
var $8aad64d78e09e617$var$_CloseIcon = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("dLjgM")));
|
|
18458
16596
|
// TODO HERE
|
|
18459
|
-
/*
|
|
18460
|
-
Check with UX if ! isClosable === disabled
|
|
18461
|
-
|
|
16597
|
+
/*
|
|
16598
|
+
Check with UX if ! isClosable === disabled
|
|
16599
|
+
|
|
18462
16600
|
*/ var $8aad64d78e09e617$var$Chips = function Chips(_ref) {
|
|
18463
16601
|
var _ref$text = _ref.text, text = _ref$text === void 0 ? "" : _ref$text, _ref$isClosable = _ref.isClosable, isClosable = _ref$isClosable === void 0 ? false : _ref$isClosable, onUnselectChips = _ref.onUnselectChips;
|
|
16602
|
+
var styles = (0, $8aad64d78e09e617$var$_styles["default"])();
|
|
18464
16603
|
return /*#__PURE__*/ $8aad64d78e09e617$var$_react["default"].createElement("div", {
|
|
18465
|
-
className:
|
|
16604
|
+
className: styles.chips
|
|
18466
16605
|
}, /*#__PURE__*/ $8aad64d78e09e617$var$_react["default"].createElement("div", null, text), isClosable && /*#__PURE__*/ $8aad64d78e09e617$var$_react["default"].createElement("div", {
|
|
18467
|
-
className:
|
|
16606
|
+
className: styles.close,
|
|
18468
16607
|
onClick: onUnselectChips
|
|
18469
16608
|
}, /*#__PURE__*/ $8aad64d78e09e617$var$_react["default"].createElement($8aad64d78e09e617$var$_CloseIcon["default"], {
|
|
18470
16609
|
size: 6
|
|
@@ -18480,15 +16619,41 @@ var $8aad64d78e09e617$var$_default = $8aad64d78e09e617$var$Chips;
|
|
|
18480
16619
|
module.exports["default"] = $8aad64d78e09e617$var$_default;
|
|
18481
16620
|
|
|
18482
16621
|
});
|
|
18483
|
-
parcelRequire.register("
|
|
18484
|
-
|
|
18485
|
-
$parcel$export(module.exports, "close", () => $d6fca5e82e016419$export$8360e631d277ea4d, (v) => $d6fca5e82e016419$export$8360e631d277ea4d = v);
|
|
18486
|
-
$parcel$export(module.exports, "chips", () => $d6fca5e82e016419$export$9f51660fd8227d80, (v) => $d6fca5e82e016419$export$9f51660fd8227d80 = v);
|
|
18487
|
-
var $d6fca5e82e016419$export$8360e631d277ea4d;
|
|
18488
|
-
var $d6fca5e82e016419$export$9f51660fd8227d80;
|
|
16622
|
+
parcelRequire.register("3VZW2", function(module, exports) {
|
|
18489
16623
|
"use strict";
|
|
18490
|
-
|
|
18491
|
-
|
|
16624
|
+
|
|
16625
|
+
Object.defineProperty(module.exports, "__esModule", {
|
|
16626
|
+
value: true
|
|
16627
|
+
});
|
|
16628
|
+
module.exports["default"] = void 0;
|
|
16629
|
+
|
|
16630
|
+
var $2dd6bcf9e0967369$var$_makeStyles = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$muistylesmakeStyles);
|
|
16631
|
+
var $2dd6bcf9e0967369$var$useStyles = (0, $2dd6bcf9e0967369$var$_makeStyles["default"])(function() {
|
|
16632
|
+
return {
|
|
16633
|
+
chips: {
|
|
16634
|
+
display: "inline-flex",
|
|
16635
|
+
flexDirection: "row",
|
|
16636
|
+
alignItems: "center",
|
|
16637
|
+
backgroundColor: "#cef6f6",
|
|
16638
|
+
color: "#0bd1d1",
|
|
16639
|
+
borderRadius: "50px",
|
|
16640
|
+
height: "100%",
|
|
16641
|
+
paddingLeft: "10px",
|
|
16642
|
+
paddingRight: "10px",
|
|
16643
|
+
fontSize: "12px"
|
|
16644
|
+
},
|
|
16645
|
+
close: {
|
|
16646
|
+
marginLeft: "5px",
|
|
16647
|
+
cursor: "pointer",
|
|
16648
|
+
paddingTop: "3px",
|
|
16649
|
+
paddingBottom: "3px",
|
|
16650
|
+
paddingRight: "2px",
|
|
16651
|
+
paddingLeft: "2px"
|
|
16652
|
+
}
|
|
16653
|
+
};
|
|
16654
|
+
});
|
|
16655
|
+
var $2dd6bcf9e0967369$var$_default = $2dd6bcf9e0967369$var$useStyles;
|
|
16656
|
+
module.exports["default"] = $2dd6bcf9e0967369$var$_default;
|
|
18492
16657
|
|
|
18493
16658
|
});
|
|
18494
16659
|
|
|
@@ -18505,7 +16670,7 @@ var $fc67e8a80c2a5449$var$_react = $gXNCa$babelruntimehelpersinteropRequireDefau
|
|
|
18505
16670
|
|
|
18506
16671
|
var $fc67e8a80c2a5449$var$_propTypes = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$proptypes);
|
|
18507
16672
|
|
|
18508
|
-
var $fc67e8a80c2a5449$var$
|
|
16673
|
+
var $fc67e8a80c2a5449$var$_styles = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("leTyH")));
|
|
18509
16674
|
|
|
18510
16675
|
|
|
18511
16676
|
var $fc67e8a80c2a5449$var$_Chips = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("bUaV0")));
|
|
@@ -18578,6 +16743,7 @@ var $fc67e8a80c2a5449$var$PLUS_CHIPS = 45;
|
|
|
18578
16743
|
var $fc67e8a80c2a5449$var$ListChips = function ListChips(_ref) {
|
|
18579
16744
|
var _options$slice;
|
|
18580
16745
|
var _ref$options = _ref.options, options = _ref$options === void 0 ? [] : _ref$options, widthContainer = _ref.widthContainer, onUnselectChips = _ref.onUnselectChips;
|
|
16746
|
+
var styles = (0, $fc67e8a80c2a5449$var$_styles["default"])();
|
|
18581
16747
|
var numberCanDisplay = function numberCanDisplay() {
|
|
18582
16748
|
var numberChipsDisplayed = 0;
|
|
18583
16749
|
var restWidth = widthContainer - $fc67e8a80c2a5449$var$SIZE_ICONS;
|
|
@@ -18609,31 +16775,30 @@ var $fc67e8a80c2a5449$var$ListChips = function ListChips(_ref) {
|
|
|
18609
16775
|
};
|
|
18610
16776
|
var _numberCanDisplay = numberCanDisplay(), numberChipsDisplayed = _numberCanDisplay.numberChipsDisplayed, numberRestDisplay = _numberCanDisplay.numberRestDisplay;
|
|
18611
16777
|
return /*#__PURE__*/ $fc67e8a80c2a5449$var$_react["default"].createElement("div", {
|
|
18612
|
-
className:
|
|
16778
|
+
className: styles.listChips
|
|
18613
16779
|
}, options === null || options === void 0 ? void 0 : options.map(function(o, index) {
|
|
18614
16780
|
return index < numberChipsDisplayed && /*#__PURE__*/ $fc67e8a80c2a5449$var$_react["default"].createElement("div", {
|
|
18615
|
-
className:
|
|
16781
|
+
className: styles.chips,
|
|
18616
16782
|
key: "chips_".concat(o === null || o === void 0 ? void 0 : o.id, "_").concat(index)
|
|
18617
16783
|
}, /*#__PURE__*/ $fc67e8a80c2a5449$var$_react["default"].createElement($fc67e8a80c2a5449$var$_Chips["default"], {
|
|
18618
16784
|
text: o === null || o === void 0 ? void 0 : o.label,
|
|
18619
|
-
isClosable: !o.disabled
|
|
18620
|
-
,
|
|
16785
|
+
isClosable: !o.disabled,
|
|
18621
16786
|
onUnselectChips: function onUnselectChips(e) {
|
|
18622
16787
|
return handleUnselectChip(e, o === null || o === void 0 ? void 0 : o.id);
|
|
18623
16788
|
}
|
|
18624
16789
|
}));
|
|
18625
16790
|
}), numberRestDisplay > 0 && /*#__PURE__*/ $fc67e8a80c2a5449$var$_react["default"].createElement($gXNCa$muimaterial.Tooltip, {
|
|
18626
16791
|
title: /*#__PURE__*/ $fc67e8a80c2a5449$var$_react["default"].createElement("div", {
|
|
18627
|
-
className:
|
|
16792
|
+
className: styles.toolTipsList
|
|
18628
16793
|
}, options === null || options === void 0 ? void 0 : (_options$slice = options.slice(numberChipsDisplayed, options === null || options === void 0 ? void 0 : options.length)) === null || _options$slice === void 0 ? void 0 : _options$slice.map(function(o, index) {
|
|
18629
16794
|
return /*#__PURE__*/ $fc67e8a80c2a5449$var$_react["default"].createElement("div", {
|
|
18630
|
-
className:
|
|
16795
|
+
className: styles.lineChips,
|
|
18631
16796
|
key: index
|
|
18632
16797
|
}, o === null || o === void 0 ? void 0 : o.label);
|
|
18633
16798
|
})),
|
|
18634
16799
|
placement: "bottom"
|
|
18635
16800
|
}, /*#__PURE__*/ $fc67e8a80c2a5449$var$_react["default"].createElement("div", {
|
|
18636
|
-
className:
|
|
16801
|
+
className: styles.otherChips
|
|
18637
16802
|
}, /*#__PURE__*/ $fc67e8a80c2a5449$var$_react["default"].createElement($fc67e8a80c2a5449$var$_Chips["default"], {
|
|
18638
16803
|
text: "+ ".concat(numberRestDisplay),
|
|
18639
16804
|
isClosable: false
|
|
@@ -18648,24 +16813,46 @@ var $fc67e8a80c2a5449$var$_default = $fc67e8a80c2a5449$var$ListChips;
|
|
|
18648
16813
|
module.exports["default"] = $fc67e8a80c2a5449$var$_default;
|
|
18649
16814
|
|
|
18650
16815
|
});
|
|
18651
|
-
parcelRequire.register("
|
|
18652
|
-
|
|
18653
|
-
$parcel$export(module.exports, "chips", () => $b7e226f14163178c$export$9f51660fd8227d80, (v) => $b7e226f14163178c$export$9f51660fd8227d80 = v);
|
|
18654
|
-
$parcel$export(module.exports, "lineChips", () => $b7e226f14163178c$export$bce1eb5c2ff1e30e, (v) => $b7e226f14163178c$export$bce1eb5c2ff1e30e = v);
|
|
18655
|
-
$parcel$export(module.exports, "listChips", () => $b7e226f14163178c$export$e7d1eca55671fd03, (v) => $b7e226f14163178c$export$e7d1eca55671fd03 = v);
|
|
18656
|
-
$parcel$export(module.exports, "otherChips", () => $b7e226f14163178c$export$8e7e5eade6f0e227, (v) => $b7e226f14163178c$export$8e7e5eade6f0e227 = v);
|
|
18657
|
-
$parcel$export(module.exports, "toolTipsList", () => $b7e226f14163178c$export$5cb38942082ce4bd, (v) => $b7e226f14163178c$export$5cb38942082ce4bd = v);
|
|
18658
|
-
var $b7e226f14163178c$export$9f51660fd8227d80;
|
|
18659
|
-
var $b7e226f14163178c$export$bce1eb5c2ff1e30e;
|
|
18660
|
-
var $b7e226f14163178c$export$e7d1eca55671fd03;
|
|
18661
|
-
var $b7e226f14163178c$export$8e7e5eade6f0e227;
|
|
18662
|
-
var $b7e226f14163178c$export$5cb38942082ce4bd;
|
|
16816
|
+
parcelRequire.register("leTyH", function(module, exports) {
|
|
18663
16817
|
"use strict";
|
|
18664
|
-
|
|
18665
|
-
|
|
18666
|
-
|
|
18667
|
-
|
|
18668
|
-
|
|
16818
|
+
|
|
16819
|
+
Object.defineProperty(module.exports, "__esModule", {
|
|
16820
|
+
value: true
|
|
16821
|
+
});
|
|
16822
|
+
module.exports["default"] = void 0;
|
|
16823
|
+
|
|
16824
|
+
var $f7660096bb6aa4bb$var$_makeStyles = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$muistylesmakeStyles);
|
|
16825
|
+
var $f7660096bb6aa4bb$var$useStyles = (0, $f7660096bb6aa4bb$var$_makeStyles["default"])(function() {
|
|
16826
|
+
return {
|
|
16827
|
+
listChips: {
|
|
16828
|
+
display: "flex",
|
|
16829
|
+
flexDirection: "row",
|
|
16830
|
+
alignItems: "center",
|
|
16831
|
+
height: "100%"
|
|
16832
|
+
},
|
|
16833
|
+
otherChips: {
|
|
16834
|
+
display: "flex",
|
|
16835
|
+
height: "100%"
|
|
16836
|
+
},
|
|
16837
|
+
chips: {
|
|
16838
|
+
marginRight: "4px",
|
|
16839
|
+
display: "flex",
|
|
16840
|
+
height: "100%"
|
|
16841
|
+
},
|
|
16842
|
+
toolTipsList: {
|
|
16843
|
+
maxHeight: "118px",
|
|
16844
|
+
overflow: "auto",
|
|
16845
|
+
fontWeight: "normal"
|
|
16846
|
+
},
|
|
16847
|
+
lineChips: {
|
|
16848
|
+
textOverflow: "ellipsis",
|
|
16849
|
+
overflow: "hidden",
|
|
16850
|
+
whiteSpace: "nowrap"
|
|
16851
|
+
}
|
|
16852
|
+
};
|
|
16853
|
+
});
|
|
16854
|
+
var $f7660096bb6aa4bb$var$_default = $f7660096bb6aa4bb$var$useStyles;
|
|
16855
|
+
module.exports["default"] = $f7660096bb6aa4bb$var$_default;
|
|
18669
16856
|
|
|
18670
16857
|
});
|
|
18671
16858
|
|
|
@@ -18819,7 +17006,8 @@ var $4fa36e821943b400$var$_exportNames = {
|
|
|
18819
17006
|
TYPE_FOOTER_CELL: true,
|
|
18820
17007
|
exportData: true,
|
|
18821
17008
|
AutocompleteMultiple: true,
|
|
18822
|
-
Checkbox: true
|
|
17009
|
+
Checkbox: true,
|
|
17010
|
+
ROW_TYPE: true
|
|
18823
17011
|
};
|
|
18824
17012
|
Object.defineProperty(module.exports, "AutocompleteMultiple", {
|
|
18825
17013
|
enumerable: true,
|
|
@@ -18839,6 +17027,12 @@ Object.defineProperty(module.exports, "FileDropper", {
|
|
|
18839
17027
|
return $4fa36e821943b400$var$_FileDropper["default"];
|
|
18840
17028
|
}
|
|
18841
17029
|
});
|
|
17030
|
+
Object.defineProperty(module.exports, "ROW_TYPE", {
|
|
17031
|
+
enumerable: true,
|
|
17032
|
+
get: function get() {
|
|
17033
|
+
return $e902G.ROW_TYPE;
|
|
17034
|
+
}
|
|
17035
|
+
});
|
|
18842
17036
|
Object.defineProperty(module.exports, "TYPE_CELL", {
|
|
18843
17037
|
enumerable: true,
|
|
18844
17038
|
get: function get() {
|
|
@@ -18905,6 +17099,8 @@ Object.keys($bNvRr).forEach(function(key) {
|
|
|
18905
17099
|
});
|
|
18906
17100
|
|
|
18907
17101
|
var $4fa36e821943b400$var$_Checkbox = $gXNCa$babelruntimehelpersinteropRequireDefault((parcelRequire("7zpTL")));
|
|
17102
|
+
|
|
17103
|
+
var $e902G = parcelRequire("e902G");
|
|
18908
17104
|
var $06b0b66eb89e646b$exports = {};
|
|
18909
17105
|
"use strict";
|
|
18910
17106
|
|