@vitessce/styles 3.9.3 → 3.9.4

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.
Files changed (2) hide show
  1. package/dist/index.js +523 -555
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -793,14 +793,14 @@ var createCache = function createCache2(options) {
793
793
  cache2.sheet.hydrate(nodesToHydrate);
794
794
  return cache2;
795
795
  };
796
- function _extends$3() {
797
- return _extends$3 = Object.assign ? Object.assign.bind() : function(n) {
796
+ function _extends$2() {
797
+ return _extends$2 = Object.assign ? Object.assign.bind() : function(n) {
798
798
  for (var e = 1; e < arguments.length; e++) {
799
799
  var t = arguments[e];
800
800
  for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n[r2] = t[r2]);
801
801
  }
802
802
  return n;
803
- }, _extends$3.apply(null, arguments);
803
+ }, _extends$2.apply(null, arguments);
804
804
  }
805
805
  function getDefaultExportFromCjs(x) {
806
806
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
@@ -2347,7 +2347,7 @@ var createStyled$1 = function createStyled(tag, options) {
2347
2347
  }
2348
2348
  });
2349
2349
  Styled.withComponent = function(nextTag, nextOptions) {
2350
- var newStyled2 = createStyled(nextTag, _extends$3({}, options, nextOptions, {
2350
+ var newStyled2 = createStyled(nextTag, _extends$2({}, options, nextOptions, {
2351
2351
  shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
2352
2352
  }));
2353
2353
  return newStyled2.apply(void 0, styles2);
@@ -9577,14 +9577,14 @@ function chainPropTypes(propType1, propType2) {
9577
9577
  return propType1(...args) || propType2(...args);
9578
9578
  };
9579
9579
  }
9580
- function _extends$2() {
9581
- return _extends$2 = Object.assign ? Object.assign.bind() : function(n) {
9580
+ function _extends$1() {
9581
+ return _extends$1 = Object.assign ? Object.assign.bind() : function(n) {
9582
9582
  for (var e = 1; e < arguments.length; e++) {
9583
9583
  var t = arguments[e];
9584
9584
  for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n[r2] = t[r2]);
9585
9585
  }
9586
9586
  return n;
9587
- }, _extends$2.apply(null, arguments);
9587
+ }, _extends$1.apply(null, arguments);
9588
9588
  }
9589
9589
  function _objectWithoutPropertiesLoose(r2, e) {
9590
9590
  if (null == r2) return {};
@@ -9595,13 +9595,13 @@ function _objectWithoutPropertiesLoose(r2, e) {
9595
9595
  }
9596
9596
  return t;
9597
9597
  }
9598
- function _setPrototypeOf$1(t, e) {
9599
- return _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
9598
+ function _setPrototypeOf(t, e) {
9599
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
9600
9600
  return t2.__proto__ = e2, t2;
9601
- }, _setPrototypeOf$1(t, e);
9601
+ }, _setPrototypeOf(t, e);
9602
9602
  }
9603
- function _inheritsLoose$1(t, o) {
9604
- t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf$1(t, o);
9603
+ function _inheritsLoose(t, o) {
9604
+ t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
9605
9605
  }
9606
9606
  const config = {
9607
9607
  disabled: false
@@ -9633,7 +9633,7 @@ var ENTERING = "entering";
9633
9633
  var ENTERED = "entered";
9634
9634
  var EXITING = "exiting";
9635
9635
  var Transition = /* @__PURE__ */ function(_React$Component) {
9636
- _inheritsLoose$1(Transition2, _React$Component);
9636
+ _inheritsLoose(Transition2, _React$Component);
9637
9637
  function Transition2(props, context) {
9638
9638
  var _this;
9639
9639
  _this = _React$Component.call(this, props, context) || this;
@@ -10049,7 +10049,7 @@ Transition.EXITED = EXITED;
10049
10049
  Transition.ENTERING = ENTERING;
10050
10050
  Transition.ENTERED = ENTERED;
10051
10051
  Transition.EXITING = EXITING;
10052
- function _assertThisInitialized$1(e) {
10052
+ function _assertThisInitialized(e) {
10053
10053
  if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
10054
10054
  return e;
10055
10055
  }
@@ -10157,11 +10157,11 @@ var defaultProps = {
10157
10157
  }
10158
10158
  };
10159
10159
  var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
10160
- _inheritsLoose$1(TransitionGroup2, _React$Component);
10160
+ _inheritsLoose(TransitionGroup2, _React$Component);
10161
10161
  function TransitionGroup2(props, context) {
10162
10162
  var _this;
10163
10163
  _this = _React$Component.call(this, props, context) || this;
10164
- var handleExited = _this.handleExited.bind(_assertThisInitialized$1(_this));
10164
+ var handleExited = _this.handleExited.bind(_assertThisInitialized(_this));
10165
10165
  _this.state = {
10166
10166
  contextValue: {
10167
10167
  isMounting: true
@@ -10198,7 +10198,7 @@ var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
10198
10198
  }
10199
10199
  if (this.mounted) {
10200
10200
  this.setState(function(state) {
10201
- var children = _extends$2({}, state.children);
10201
+ var children = _extends$1({}, state.children);
10202
10202
  delete children[child.key];
10203
10203
  return {
10204
10204
  children
@@ -39712,7 +39712,7 @@ const keys = {
39712
39712
  }
39713
39713
  };
39714
39714
  const values = wrap(keys);
39715
- const vars = _extends$2({
39715
+ const vars = _extends$1({
39716
39716
  breakpoints,
39717
39717
  spacing,
39718
39718
  transition,
@@ -39827,7 +39827,7 @@ const GridEditInputCell = forwardRef((props, ref) => {
39827
39827
  inputRef.current.focus();
39828
39828
  }
39829
39829
  }, [hasFocus]);
39830
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditInputCellRoot, _extends$2({
39830
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditInputCellRoot, _extends$1({
39831
39831
  as: rootProps.slots.baseInput,
39832
39832
  inputRef,
39833
39833
  className: classes2.root,
@@ -39911,7 +39911,7 @@ GridEditInputCell.propTypes = {
39911
39911
  */
39912
39912
  value: PropTypes.any
39913
39913
  };
39914
- const renderEditInputCell = (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditInputCell, _extends$2({}, params));
39914
+ const renderEditInputCell = (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditInputCell, _extends$1({}, params));
39915
39915
  const gridRowsStateSelector = createRootSelector((state) => state.rows);
39916
39916
  const gridRowCountSelector = createSelector(gridRowsStateSelector, (rows) => rows.totalRowCount);
39917
39917
  const gridRowsLoadingSelector = createSelector(gridRowsStateSelector, (rows) => rows.loading);
@@ -39966,8 +39966,8 @@ const sanitizeSortModel = (model, disableMultipleColumnsSorting) => {
39966
39966
  }
39967
39967
  return model;
39968
39968
  };
39969
- const mergeStateWithSortModel = (sortModel, disableMultipleColumnsSorting) => (state) => _extends$2({}, state, {
39970
- sorting: _extends$2({}, state.sorting, {
39969
+ const mergeStateWithSortModel = (sortModel, disableMultipleColumnsSorting) => (state) => _extends$1({}, state, {
39970
+ sorting: _extends$1({}, state.sorting, {
39971
39971
  sortModel: sanitizeSortModel(sortModel, disableMultipleColumnsSorting)
39972
39972
  })
39973
39973
  });
@@ -40095,7 +40095,7 @@ function GridFilterInputValue(props) {
40095
40095
  setFilterValueState(value);
40096
40096
  setIsApplying(true);
40097
40097
  filterTimeout.start(rootProps.filterDebounceMs, () => {
40098
- const newItem = _extends$2({}, item, {
40098
+ const newItem = _extends$1({}, item, {
40099
40099
  value: type === "number" && !Number.isNaN(Number(value)) ? Number(value) : value,
40100
40100
  fromInput: id
40101
40101
  });
@@ -40110,7 +40110,7 @@ function GridFilterInputValue(props) {
40110
40110
  }
40111
40111
  }, [id, item]);
40112
40112
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
40113
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTextField, _extends$2({
40113
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTextField, _extends$1({
40114
40114
  id,
40115
40115
  label: apiRef.current.getLocaleText("filterPanelInputLabel"),
40116
40116
  placeholder: apiRef.current.getLocaleText("filterPanelInputPlaceholder"),
@@ -40118,14 +40118,14 @@ function GridFilterInputValue(props) {
40118
40118
  onChange: onFilterChange,
40119
40119
  type: type || "text",
40120
40120
  disabled,
40121
- slotProps: _extends$2({}, textFieldProps == null ? void 0 : textFieldProps.slotProps, {
40122
- input: _extends$2({
40121
+ slotProps: _extends$1({}, textFieldProps == null ? void 0 : textFieldProps.slotProps, {
40122
+ input: _extends$1({
40123
40123
  endAdornment: applying ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.loadIcon, {
40124
40124
  fontSize: "small",
40125
40125
  color: "action"
40126
40126
  }) : null
40127
40127
  }, (_a = textFieldProps == null ? void 0 : textFieldProps.slotProps) == null ? void 0 : _a.input),
40128
- htmlInput: _extends$2({
40128
+ htmlInput: _extends$1({
40129
40129
  tabIndex
40130
40130
  }, (_b = textFieldProps == null ? void 0 : textFieldProps.slotProps) == null ? void 0 : _b.htmlInput)
40131
40131
  }),
@@ -40251,7 +40251,7 @@ function GridFilterInputMultipleValue(props) {
40251
40251
  }, [item.value]);
40252
40252
  const handleChange = React.useCallback((event, value) => {
40253
40253
  setFilterValueState(value.map(String));
40254
- applyValue(_extends$2({}, item, {
40254
+ applyValue(_extends$1({}, item, {
40255
40255
  value: [...value.map((filterItemValue) => type === "number" ? Number(filterItemValue) : filterItemValue)]
40256
40256
  }));
40257
40257
  }, [applyValue, item, type]);
@@ -40263,7 +40263,7 @@ function GridFilterInputMultipleValue(props) {
40263
40263
  }
40264
40264
  }, [setOptions]);
40265
40265
  const BaseAutocomplete2 = rootProps.slots.baseAutocomplete;
40266
- return /* @__PURE__ */ jsxRuntimeExports.jsx(BaseAutocomplete2, _extends$2({
40266
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(BaseAutocomplete2, _extends$1({
40267
40267
  multiple: true,
40268
40268
  freeSolo: true,
40269
40269
  options,
@@ -40517,7 +40517,7 @@ function getHasEval() {
40517
40517
  return hasEval;
40518
40518
  }
40519
40519
  const cleanFilterItem = (item, apiRef) => {
40520
- const cleanItem = _extends$2({}, item);
40520
+ const cleanItem = _extends$1({}, item);
40521
40521
  if (cleanItem.id == null) {
40522
40522
  cleanItem.id = Math.round(Math.random() * 1e5);
40523
40523
  }
@@ -40551,18 +40551,18 @@ const sanitizeFilterModel = (model, disableMultipleColumnsFiltering, apiRef) =>
40551
40551
  }
40552
40552
  }
40553
40553
  if (hasItemWithoutOperator || hasItemsWithoutIds) {
40554
- return _extends$2({}, model, {
40554
+ return _extends$1({}, model, {
40555
40555
  items: items.map((item) => cleanFilterItem(item, apiRef))
40556
40556
  });
40557
40557
  }
40558
40558
  if (model.items !== items) {
40559
- return _extends$2({}, model, {
40559
+ return _extends$1({}, model, {
40560
40560
  items
40561
40561
  });
40562
40562
  }
40563
40563
  return model;
40564
40564
  };
40565
- const mergeStateWithFilterModel = (filterModel, disableMultipleColumnsFiltering, apiRef) => (filteringState) => _extends$2({}, filteringState, {
40565
+ const mergeStateWithFilterModel = (filterModel, disableMultipleColumnsFiltering, apiRef) => (filteringState) => _extends$1({}, filteringState, {
40566
40566
  filterModel: sanitizeFilterModel(filterModel, disableMultipleColumnsFiltering, apiRef)
40567
40567
  });
40568
40568
  const removeDiacritics = (value) => {
@@ -40593,7 +40593,7 @@ const getFilterCallbackFromItem = (filterItem, apiRef) => {
40593
40593
  if (ignoreDiacritics) {
40594
40594
  parsedValue = removeDiacritics(parsedValue);
40595
40595
  }
40596
- const newFilterItem = _extends$2({}, filterItem, {
40596
+ const newFilterItem = _extends$1({}, filterItem, {
40597
40597
  value: parsedValue
40598
40598
  });
40599
40599
  const filterOperators = column2.filterOperators;
@@ -41018,7 +41018,7 @@ function GridMenu(props) {
41018
41018
  }
41019
41019
  onClose(event);
41020
41020
  };
41021
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridMenuRoot, _extends$2({
41021
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridMenuRoot, _extends$1({
41022
41022
  as: rootProps.slots.basePopper,
41023
41023
  className: clsx(classes2.root, className, variablesClass),
41024
41024
  ownerState: rootProps,
@@ -41179,7 +41179,7 @@ function GridActionsCell(props) {
41179
41179
  hideMenu();
41180
41180
  }
41181
41181
  };
41182
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$2({
41182
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$1({
41183
41183
  role: "menu",
41184
41184
  ref: rootRef,
41185
41185
  tabIndex: -1,
@@ -41191,7 +41191,7 @@ function GridActionsCell(props) {
41191
41191
  touchRippleRef: handleTouchRippleRef(index),
41192
41192
  onClick: handleButtonClick(index, button.props.onClick),
41193
41193
  tabIndex: focusedButtonIndex === index ? tabIndex : -1
41194
- })), menuButtons.length > 0 && buttonId && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$2({
41194
+ })), menuButtons.length > 0 && buttonId && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$1({
41195
41195
  ref: buttonRef,
41196
41196
  id: buttonId,
41197
41197
  "aria-label": apiRef.current.getLocaleText("actionsCellMore"),
@@ -41289,9 +41289,9 @@ GridActionsCell.propTypes = {
41289
41289
  */
41290
41290
  value: PropTypes.any
41291
41291
  };
41292
- const renderActionsCell = (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridActionsCell, _extends$2({}, params));
41292
+ const renderActionsCell = (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridActionsCell, _extends$1({}, params));
41293
41293
  const GRID_ACTIONS_COLUMN_TYPE = "actions";
41294
- const GRID_ACTIONS_COL_DEF = _extends$2({}, GRID_STRING_COL_DEF, {
41294
+ const GRID_ACTIONS_COL_DEF = _extends$1({}, GRID_STRING_COL_DEF, {
41295
41295
  sortable: false,
41296
41296
  filterable: false,
41297
41297
  // @ts-ignore
@@ -41407,7 +41407,7 @@ const getRowsStateFromCache = ({
41407
41407
  },
41408
41408
  idToActionLookup: {}
41409
41409
  };
41410
- return _extends$2({}, groupingParamsWithHydrateRows, {
41410
+ return _extends$1({}, groupingParamsWithHydrateRows, {
41411
41411
  totalRowCount: Math.max(rowCountProp, groupingParamsWithHydrateRows.dataRowIds.length),
41412
41412
  totalTopLevelRowCount: getTopLevelRowCount({
41413
41413
  tree: groupingParamsWithHydrateRows.tree,
@@ -41453,7 +41453,7 @@ const updateCacheWithNewRows = ({
41453
41453
  updates.forEach((update2) => {
41454
41454
  const id = getRowIdFromRowModel(update2, getRowId, "A row was provided without id when calling updateRows():");
41455
41455
  if (uniqueUpdates.has(id)) {
41456
- uniqueUpdates.set(id, _extends$2({}, uniqueUpdates.get(id), update2));
41456
+ uniqueUpdates.set(id, _extends$1({}, uniqueUpdates.get(id), update2));
41457
41457
  } else {
41458
41458
  uniqueUpdates.set(id, update2);
41459
41459
  }
@@ -41465,10 +41465,10 @@ const updateCacheWithNewRows = ({
41465
41465
  modify: [...previousCache.updates.actions.modify ?? []],
41466
41466
  remove: [...previousCache.updates.actions.remove ?? []]
41467
41467
  },
41468
- idToActionLookup: _extends$2({}, previousCache.updates.idToActionLookup),
41468
+ idToActionLookup: _extends$1({}, previousCache.updates.idToActionLookup),
41469
41469
  groupKeys
41470
41470
  };
41471
- const dataRowIdToModelLookup = _extends$2({}, previousCache.dataRowIdToModelLookup);
41471
+ const dataRowIdToModelLookup = _extends$1({}, previousCache.dataRowIdToModelLookup);
41472
41472
  const alreadyAppliedActionsToRemove = {
41473
41473
  insert: {},
41474
41474
  modify: {},
@@ -41495,7 +41495,7 @@ const updateCacheWithNewRows = ({
41495
41495
  } else if (actionAlreadyAppliedToRow == null) {
41496
41496
  partialUpdates.actions.modify.push(id);
41497
41497
  }
41498
- dataRowIdToModelLookup[id] = _extends$2({}, oldRow, partialRow);
41498
+ dataRowIdToModelLookup[id] = _extends$1({}, oldRow, partialRow);
41499
41499
  return;
41500
41500
  }
41501
41501
  if (actionAlreadyAppliedToRow === "remove") {
@@ -41532,7 +41532,7 @@ function computeRowsUpdates(apiRef, updates, getRowId) {
41532
41532
  const pinnedRowsCache = apiRef.current.caches.pinnedRows;
41533
41533
  const prevModel = pinnedRowsCache.idLookup[id];
41534
41534
  if (prevModel) {
41535
- pinnedRowsCache.idLookup[id] = _extends$2({}, prevModel, update2);
41535
+ pinnedRowsCache.idLookup[id] = _extends$1({}, prevModel, update2);
41536
41536
  }
41537
41537
  } else {
41538
41538
  nonPinnedRowsUpdates.push(update2);
@@ -41593,7 +41593,7 @@ function GridBooleanCellRaw(props) {
41593
41593
  if (isServerSideRowGroupingRow && value === void 0) {
41594
41594
  return null;
41595
41595
  }
41596
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$2({
41596
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$1({
41597
41597
  fontSize: "small",
41598
41598
  className: classes2.root,
41599
41599
  titleAccess: apiRef.current.getLocaleText(value ? "booleanCellTrueLabel" : "booleanCellFalseLabel"),
@@ -41671,7 +41671,7 @@ const renderBooleanCell = (params) => {
41671
41671
  if (params.field !== GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD && isAutogeneratedRowNode(params.rowNode)) {
41672
41672
  return "";
41673
41673
  }
41674
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridBooleanCell, _extends$2({}, params));
41674
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridBooleanCell, _extends$1({}, params));
41675
41675
  };
41676
41676
  const _excluded$S = ["id", "value", "formattedValue", "api", "field", "row", "rowNode", "colDef", "cellMode", "isEditable", "tabIndex", "className", "hasFocus", "isValidating", "isProcessingProps", "error", "onValueChange"];
41677
41677
  const useUtilityClasses$F = (ownerState) => {
@@ -41722,11 +41722,11 @@ function GridEditBooleanCell(props) {
41722
41722
  inputRef.current.focus();
41723
41723
  }
41724
41724
  }, [hasFocus]);
41725
- return /* @__PURE__ */ jsxRuntimeExports.jsx("label", _extends$2({
41725
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("label", _extends$1({
41726
41726
  htmlFor: id,
41727
41727
  className: clsx(classes2.root, className)
41728
41728
  }, other, {
41729
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$2({
41729
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$1({
41730
41730
  id,
41731
41731
  inputRef,
41732
41732
  checked: Boolean(valueState),
@@ -41800,7 +41800,7 @@ GridEditBooleanCell.propTypes = {
41800
41800
  */
41801
41801
  value: PropTypes.any
41802
41802
  };
41803
- const renderEditBooleanCell = (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditBooleanCell, _extends$2({}, params));
41803
+ const renderEditBooleanCell = (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditBooleanCell, _extends$1({}, params));
41804
41804
  const _excluded$R = ["item", "applyValue", "apiRef", "focusElementRef", "isFilterActive", "headerFilterMenu", "clearButton", "tabIndex", "slotProps"];
41805
41805
  function GridFilterInputBoolean(props) {
41806
41806
  var _a, _b;
@@ -41824,7 +41824,7 @@ function GridFilterInputBoolean(props) {
41824
41824
  const onFilterChange = React.useCallback((event) => {
41825
41825
  const value = sanitizeFilterItemValue(event.target.value);
41826
41826
  setFilterValueState(value);
41827
- applyValue(_extends$2({}, item, {
41827
+ applyValue(_extends$1({}, item, {
41828
41828
  value
41829
41829
  }));
41830
41830
  }, [applyValue, item]);
@@ -41834,7 +41834,7 @@ function GridFilterInputBoolean(props) {
41834
41834
  const label = (slotProps == null ? void 0 : slotProps.root.label) ?? apiRef.current.getLocaleText("filterPanelInputLabel");
41835
41835
  const rootSlotProps = slotProps == null ? void 0 : slotProps.root.slotProps;
41836
41836
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
41837
- children: [/* @__PURE__ */ jsxRuntimeExports.jsxs(rootProps.slots.baseSelect, _extends$2({
41837
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsxs(rootProps.slots.baseSelect, _extends$1({
41838
41838
  fullWidth: true,
41839
41839
  labelId,
41840
41840
  id: selectId,
@@ -41843,21 +41843,21 @@ function GridFilterInputBoolean(props) {
41843
41843
  onChange: onFilterChange,
41844
41844
  native: isSelectNative,
41845
41845
  slotProps: {
41846
- htmlInput: _extends$2({
41846
+ htmlInput: _extends$1({
41847
41847
  ref: focusElementRef,
41848
41848
  tabIndex
41849
41849
  }, rootSlotProps == null ? void 0 : rootSlotProps.htmlInput)
41850
41850
  }
41851
41851
  }, baseSelectProps, others, slotProps == null ? void 0 : slotProps.root, {
41852
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$2({}, baseSelectOptionProps, {
41852
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$1({}, baseSelectOptionProps, {
41853
41853
  native: isSelectNative,
41854
41854
  value: "",
41855
41855
  children: apiRef.current.getLocaleText("filterValueAny")
41856
- })), /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$2({}, baseSelectOptionProps, {
41856
+ })), /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$1({}, baseSelectOptionProps, {
41857
41857
  native: isSelectNative,
41858
41858
  value: "true",
41859
41859
  children: apiRef.current.getLocaleText("filterValueTrue")
41860
- })), /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$2({}, baseSelectOptionProps, {
41860
+ })), /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$1({}, baseSelectOptionProps, {
41861
41861
  native: isSelectNative,
41862
41862
  value: "false",
41863
41863
  children: apiRef.current.getLocaleText("filterValueFalse")
@@ -41945,7 +41945,7 @@ const stringToBoolean = (value) => {
41945
41945
  return void 0;
41946
41946
  }
41947
41947
  };
41948
- const GRID_BOOLEAN_COL_DEF = _extends$2({}, GRID_STRING_COL_DEF, {
41948
+ const GRID_BOOLEAN_COL_DEF = _extends$1({}, GRID_STRING_COL_DEF, {
41949
41949
  type: "boolean",
41950
41950
  display: "flex",
41951
41951
  align: "center",
@@ -42312,7 +42312,7 @@ const GridCellCheckboxForwardRef = forwardRef(function GridCellCheckboxRenderer2
42312
42312
  return null;
42313
42313
  }
42314
42314
  const label = apiRef.current.getLocaleText(isChecked && !isIndeterminate ? "checkboxSelectionUnselectRow" : "checkboxSelectionSelectRow");
42315
- return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$2({
42315
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$1({
42316
42316
  tabIndex,
42317
42317
  checked: isChecked && !isIndeterminate,
42318
42318
  onChange: handleChange,
@@ -42627,7 +42627,7 @@ const GridHeaderCheckbox = forwardRef(function GridHeaderCheckbox2(props, ref) {
42627
42627
  return apiRef.current.subscribeEvent("rowSelectionChange", handleSelectionChange);
42628
42628
  }, [apiRef, handleSelectionChange]);
42629
42629
  const label = apiRef.current.getLocaleText(isChecked && !isIndeterminate ? "checkboxSelectionUnselectAllRows" : "checkboxSelectionSelectAllRows");
42630
- return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$2({
42630
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$1({
42631
42631
  indeterminate: isIndeterminate,
42632
42632
  checked: isChecked && !isIndeterminate,
42633
42633
  onChange: handleChange,
@@ -42666,7 +42666,7 @@ const gridRowIdSelector = createRootSelector((state, row) => {
42666
42666
  return state.props.getRowId ? state.props.getRowId(row) : row.id;
42667
42667
  });
42668
42668
  const GRID_CHECKBOX_SELECTION_FIELD = "__check__";
42669
- const GRID_CHECKBOX_SELECTION_COL_DEF = _extends$2({}, GRID_BOOLEAN_COL_DEF, {
42669
+ const GRID_CHECKBOX_SELECTION_COL_DEF = _extends$1({}, GRID_BOOLEAN_COL_DEF, {
42670
42670
  type: "custom",
42671
42671
  field: GRID_CHECKBOX_SELECTION_FIELD,
42672
42672
  width: 50,
@@ -42684,8 +42684,8 @@ const GRID_CHECKBOX_SELECTION_COL_DEF = _extends$2({}, GRID_BOOLEAN_COL_DEF, {
42684
42684
  const rowId = gridRowIdSelector(apiRef, row);
42685
42685
  return apiRef.current.isRowSelected(rowId);
42686
42686
  },
42687
- renderHeader: (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridHeaderCheckbox, _extends$2({}, params)),
42688
- renderCell: (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridCellCheckboxRenderer, _extends$2({}, params))
42687
+ renderHeader: (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridHeaderCheckbox, _extends$1({}, params)),
42688
+ renderCell: (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridCellCheckboxRenderer, _extends$1({}, params))
42689
42689
  });
42690
42690
  const _excluded$O = ["item", "applyValue", "type", "apiRef", "focusElementRef", "slotProps", "isFilterActive", "headerFilterMenu", "clearButton", "tabIndex", "disabled"];
42691
42691
  function convertFilterItemValueToInputValue(itemValue, inputType) {
@@ -42732,7 +42732,7 @@ function GridFilterInputDate(props) {
42732
42732
  setIsApplying(true);
42733
42733
  filterTimeout.start(rootProps.filterDebounceMs, () => {
42734
42734
  const date = new Date(value);
42735
- applyValue(_extends$2({}, item, {
42735
+ applyValue(_extends$1({}, item, {
42736
42736
  value: Number.isNaN(date.getTime()) ? void 0 : date
42737
42737
  }));
42738
42738
  setIsApplying(false);
@@ -42743,7 +42743,7 @@ function GridFilterInputDate(props) {
42743
42743
  setFilterValueState(value);
42744
42744
  }, [item.value, type]);
42745
42745
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
42746
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTextField, _extends$2({
42746
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTextField, _extends$1({
42747
42747
  fullWidth: true,
42748
42748
  id,
42749
42749
  label: apiRef.current.getLocaleText("filterPanelInputLabel"),
@@ -42753,14 +42753,14 @@ function GridFilterInputDate(props) {
42753
42753
  type: type || "text",
42754
42754
  disabled,
42755
42755
  inputRef: focusElementRef,
42756
- slotProps: _extends$2({}, rootSlotProps, {
42757
- input: _extends$2({
42756
+ slotProps: _extends$1({}, rootSlotProps, {
42757
+ input: _extends$1({
42758
42758
  endAdornment: applying ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.loadIcon, {
42759
42759
  fontSize: "small",
42760
42760
  color: "action"
42761
42761
  }) : null
42762
42762
  }, rootSlotProps == null ? void 0 : rootSlotProps.input),
42763
- htmlInput: _extends$2({
42763
+ htmlInput: _extends$1({
42764
42764
  max: type === "datetime-local" ? "9999-12-31T23:59" : "9999-12-31",
42765
42765
  tabIndex
42766
42766
  }, rootSlotProps == null ? void 0 : rootSlotProps.htmlInput)
@@ -43008,7 +43008,7 @@ function GridEditDateCell(props) {
43008
43008
  inputRef.current.focus();
43009
43009
  }
43010
43010
  }, [hasFocus]);
43011
- return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledInputBase, _extends$2({
43011
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledInputBase, _extends$1({
43012
43012
  as: rootProps.slots.baseInput,
43013
43013
  inputRef,
43014
43014
  fullWidth: true,
@@ -43018,7 +43018,7 @@ function GridEditDateCell(props) {
43018
43018
  onChange: handleChange
43019
43019
  }, other, slotProps == null ? void 0 : slotProps.root, {
43020
43020
  slotProps: {
43021
- htmlInput: _extends$2({
43021
+ htmlInput: _extends$1({
43022
43022
  max: isDateTime ? "9999-12-31T23:59" : "9999-12-31"
43023
43023
  }, (_b = (_a = slotProps == null ? void 0 : slotProps.root) == null ? void 0 : _a.slotProps) == null ? void 0 : _b.htmlInput)
43024
43024
  }
@@ -43090,7 +43090,7 @@ GridEditDateCell.propTypes = {
43090
43090
  */
43091
43091
  value: PropTypes.any
43092
43092
  };
43093
- const renderEditDateCell = (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditDateCell, _extends$2({}, params));
43093
+ const renderEditDateCell = (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditDateCell, _extends$1({}, params));
43094
43094
  function throwIfNotDateObject({
43095
43095
  value,
43096
43096
  columnType,
@@ -43127,7 +43127,7 @@ const gridDateTimeFormatter = (value, row, column2, apiRef) => {
43127
43127
  });
43128
43128
  return value.toLocaleString();
43129
43129
  };
43130
- const GRID_DATE_COL_DEF = _extends$2({}, GRID_STRING_COL_DEF, {
43130
+ const GRID_DATE_COL_DEF = _extends$1({}, GRID_STRING_COL_DEF, {
43131
43131
  type: "date",
43132
43132
  sortComparator: gridDateComparator,
43133
43133
  valueFormatter: gridDateFormatter,
@@ -43136,7 +43136,7 @@ const GRID_DATE_COL_DEF = _extends$2({}, GRID_STRING_COL_DEF, {
43136
43136
  // @ts-ignore
43137
43137
  pastedValueParser: (value) => new Date(value)
43138
43138
  });
43139
- const GRID_DATETIME_COL_DEF = _extends$2({}, GRID_STRING_COL_DEF, {
43139
+ const GRID_DATETIME_COL_DEF = _extends$1({}, GRID_STRING_COL_DEF, {
43140
43140
  type: "dateTime",
43141
43141
  sortComparator: gridDateComparator,
43142
43142
  valueFormatter: gridDateTimeFormatter,
@@ -43286,7 +43286,7 @@ const getGridNumericOperators = () => [{
43286
43286
  type: "number"
43287
43287
  }
43288
43288
  }];
43289
- const GRID_NUMERIC_COL_DEF = _extends$2({}, GRID_STRING_COL_DEF, {
43289
+ const GRID_NUMERIC_COL_DEF = _extends$1({}, GRID_STRING_COL_DEF, {
43290
43290
  type: "number",
43291
43291
  align: "right",
43292
43292
  headerAlign: "right",
@@ -43303,7 +43303,7 @@ function getValueOptions(column2, additionalParams) {
43303
43303
  if (!column2) {
43304
43304
  return void 0;
43305
43305
  }
43306
- return typeof column2.valueOptions === "function" ? column2.valueOptions(_extends$2({
43306
+ return typeof column2.valueOptions === "function" ? column2.valueOptions(_extends$1({
43307
43307
  field: column2.field
43308
43308
  }, additionalParams)) : column2.valueOptions;
43309
43309
  }
@@ -43383,7 +43383,7 @@ function GridEditSingleSelectCell(props) {
43383
43383
  }
43384
43384
  if (reason === "backdropClick" || event.key === "Escape") {
43385
43385
  const params = apiRef.current.getCellParams(id, field);
43386
- apiRef.current.publishEvent("cellEditStop", _extends$2({}, params, {
43386
+ apiRef.current.publishEvent("cellEditStop", _extends$1({}, params, {
43387
43387
  reason: event.key === "Escape" ? GridCellEditStopReasons.escapeKeyDown : GridCellEditStopReasons.cellFocusOut
43388
43388
  }));
43389
43389
  }
@@ -43397,7 +43397,7 @@ function GridEditSingleSelectCell(props) {
43397
43397
  if (!valueOptions || !colDef) {
43398
43398
  return null;
43399
43399
  }
43400
- return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelect, _extends$2({
43400
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelect, _extends$1({
43401
43401
  ref,
43402
43402
  value: valueProp,
43403
43403
  onChange: handleChange,
@@ -43416,7 +43416,7 @@ function GridEditSingleSelectCell(props) {
43416
43416
  children: valueOptions.map((valueOption) => {
43417
43417
  var _a2;
43418
43418
  const value = getOptionValue(valueOption);
43419
- return /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$2({}, ((_a2 = rootProps.slotProps) == null ? void 0 : _a2.baseSelectOption) || {}, {
43419
+ return /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$1({}, ((_a2 = rootProps.slotProps) == null ? void 0 : _a2.baseSelectOption) || {}, {
43420
43420
  native: isSelectNative,
43421
43421
  key: value,
43422
43422
  value
@@ -43493,7 +43493,7 @@ GridEditSingleSelectCell.propTypes = {
43493
43493
  */
43494
43494
  value: PropTypes.any
43495
43495
  };
43496
- const renderEditSingleSelectCell = (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditSingleSelectCell, _extends$2({}, params));
43496
+ const renderEditSingleSelectCell = (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditSingleSelectCell, _extends$1({}, params));
43497
43497
  const _excluded$L = ["item", "applyValue", "type", "apiRef", "focusElementRef", "tabIndex", "isFilterActive", "clearButton", "headerFilterMenu", "slotProps"];
43498
43498
  const renderSingleSelectOptions = ({
43499
43499
  column: column2,
@@ -43510,7 +43510,7 @@ const renderSingleSelectOptions = ({
43510
43510
  if (label === "") {
43511
43511
  label = " ";
43512
43512
  }
43513
- return /* @__PURE__ */ createElement(OptionComponent, _extends$2({}, baseSelectOptionProps, {
43513
+ return /* @__PURE__ */ createElement(OptionComponent, _extends$1({}, baseSelectOptionProps, {
43514
43514
  native: isSelectNative,
43515
43515
  key: value,
43516
43516
  value
@@ -43550,7 +43550,7 @@ function GridFilterInputSingleSelect(props) {
43550
43550
  const onFilterChange = React.useCallback((event) => {
43551
43551
  let value = event.target.value;
43552
43552
  value = getValueFromValueOptions(value, currentValueOptions, getOptionValue);
43553
- applyValue(_extends$2({}, item, {
43553
+ applyValue(_extends$1({}, item, {
43554
43554
  value
43555
43555
  }));
43556
43556
  }, [currentValueOptions, getOptionValue, applyValue, item]);
@@ -43559,7 +43559,7 @@ function GridFilterInputSingleSelect(props) {
43559
43559
  }
43560
43560
  const label = (slotProps == null ? void 0 : slotProps.root.label) ?? apiRef.current.getLocaleText("filterPanelInputLabel");
43561
43561
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
43562
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelect, _extends$2({
43562
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelect, _extends$1({
43563
43563
  fullWidth: true,
43564
43564
  id,
43565
43565
  label,
@@ -43567,7 +43567,7 @@ function GridFilterInputSingleSelect(props) {
43567
43567
  value: filterValue,
43568
43568
  onChange: onFilterChange,
43569
43569
  slotProps: {
43570
- htmlInput: _extends$2({
43570
+ htmlInput: _extends$1({
43571
43571
  tabIndex,
43572
43572
  ref: focusElementRef,
43573
43573
  type: type || "text",
@@ -43667,12 +43667,12 @@ function GridFilterInputMultipleSingleSelect(props) {
43667
43667
  }, []);
43668
43668
  }, [getOptionValue, item.value, resolvedValueOptions]);
43669
43669
  const handleChange = React.useCallback((event, value) => {
43670
- applyValue(_extends$2({}, item, {
43670
+ applyValue(_extends$1({}, item, {
43671
43671
  value: value.map(getOptionValue)
43672
43672
  }));
43673
43673
  }, [applyValue, item, getOptionValue]);
43674
43674
  const BaseAutocomplete2 = rootProps.slots.baseAutocomplete;
43675
- return /* @__PURE__ */ jsxRuntimeExports.jsx(BaseAutocomplete2, _extends$2({
43675
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(BaseAutocomplete2, _extends$1({
43676
43676
  multiple: true,
43677
43677
  options: resolvedValueOptions,
43678
43678
  isOptionEqualToValue,
@@ -43776,7 +43776,7 @@ const defaultGetOptionValue = (value) => {
43776
43776
  const defaultGetOptionLabel = (value) => {
43777
43777
  return isObject(value) ? value.label : String(value);
43778
43778
  };
43779
- const GRID_SINGLE_SELECT_COL_DEF = _extends$2({}, GRID_STRING_COL_DEF, {
43779
+ const GRID_SINGLE_SELECT_COL_DEF = _extends$1({}, GRID_STRING_COL_DEF, {
43780
43780
  type: "singleSelect",
43781
43781
  getOptionLabel: defaultGetOptionLabel,
43782
43782
  getOptionValue: defaultGetOptionValue,
@@ -43942,7 +43942,7 @@ const hydrateColumnsWidth = (rawState, dimensions) => {
43942
43942
  widthAllocatedBeforeFlex += computedWidth;
43943
43943
  }
43944
43944
  if (column2.computedWidth !== computedWidth) {
43945
- column2 = _extends$2({}, column2, {
43945
+ column2 = _extends$1({}, column2, {
43946
43946
  computedWidth
43947
43947
  });
43948
43948
  }
@@ -43963,7 +43963,7 @@ const hydrateColumnsWidth = (rawState, dimensions) => {
43963
43963
  columnsLookup[field].computedWidth = computedColumnWidths[field].computedWidth;
43964
43964
  });
43965
43965
  }
43966
- return _extends$2({}, rawState, {
43966
+ return _extends$1({}, rawState, {
43967
43967
  lookup: columnsLookup
43968
43968
  });
43969
43969
  };
@@ -43989,10 +43989,10 @@ const applyInitialState = (columnsState, initialState) => {
43989
43989
  }
43990
43990
  }
43991
43991
  const newOrderedFields = cleanOrderedFields.length === 0 ? columnsState.orderedFields : [...cleanOrderedFields, ...columnsState.orderedFields.filter((field) => !orderedFieldsLookup[field])];
43992
- const newColumnLookup = _extends$2({}, columnsState.lookup);
43992
+ const newColumnLookup = _extends$1({}, columnsState.lookup);
43993
43993
  for (let i = 0; i < columnsWithUpdatedDimensions.length; i += 1) {
43994
43994
  const field = columnsWithUpdatedDimensions[i];
43995
- const newColDef = _extends$2({}, newColumnLookup[field], {
43995
+ const newColDef = _extends$1({}, newColumnLookup[field], {
43996
43996
  hasBeenResized: true
43997
43997
  });
43998
43998
  Object.entries(dimensions[field]).forEach(([key, value]) => {
@@ -44000,7 +44000,7 @@ const applyInitialState = (columnsState, initialState) => {
44000
44000
  });
44001
44001
  newColumnLookup[field] = newColDef;
44002
44002
  }
44003
- const newColumnsState = _extends$2({}, columnsState, {
44003
+ const newColumnsState = _extends$1({}, columnsState, {
44004
44004
  orderedFields: newOrderedFields,
44005
44005
  lookup: newColumnLookup
44006
44006
  });
@@ -44035,7 +44035,7 @@ const createColumnsState = ({
44035
44035
  const currentState = gridColumnsStateSelector(apiRef);
44036
44036
  columnsState = {
44037
44037
  orderedFields: keepOnlyColumnsToUpsert ? [] : [...currentState.orderedFields],
44038
- lookup: _extends$2({}, currentState.lookup),
44038
+ lookup: _extends$1({}, currentState.lookup),
44039
44039
  // Will be cleaned later if keepOnlyColumnsToUpsert=true
44040
44040
  columnVisibilityModel,
44041
44041
  initialColumnVisibilityModel: updateInitialVisibilityModel ? columnVisibilityModel : currentState.initialColumnVisibilityModel
@@ -44043,7 +44043,7 @@ const createColumnsState = ({
44043
44043
  }
44044
44044
  let columnsToKeep = {};
44045
44045
  if (keepOnlyColumnsToUpsert && !isInsideStateInitializer) {
44046
- columnsToKeep = Object.keys(columnsState.lookup).reduce((acc, key) => _extends$2({}, acc, {
44046
+ columnsToKeep = Object.keys(columnsState.lookup).reduce((acc, key) => _extends$1({}, acc, {
44047
44047
  [key]: false
44048
44048
  }), {});
44049
44049
  }
@@ -44054,7 +44054,7 @@ const createColumnsState = ({
44054
44054
  columnsToKeep[field] = true;
44055
44055
  let existingState = columnsState.lookup[field];
44056
44056
  if (existingState == null) {
44057
- existingState = _extends$2({}, getDefaultColTypeDef(newColumn.type), {
44057
+ existingState = _extends$1({}, getDefaultColTypeDef(newColumn.type), {
44058
44058
  field,
44059
44059
  hasBeenResized: false
44060
44060
  });
@@ -44063,7 +44063,7 @@ const createColumnsState = ({
44063
44063
  columnsState.orderedFields.push(field);
44064
44064
  }
44065
44065
  if (existingState && existingState.type !== newColumn.type) {
44066
- existingState = _extends$2({}, getDefaultColTypeDef(newColumn.type), {
44066
+ existingState = _extends$1({}, getDefaultColTypeDef(newColumn.type), {
44067
44067
  field
44068
44068
  });
44069
44069
  }
@@ -44076,7 +44076,7 @@ const createColumnsState = ({
44076
44076
  }
44077
44077
  }
44078
44078
  });
44079
- columnsState.lookup[field] = resolveProps(existingState, _extends$2({}, getDefaultColTypeDef(newColumn.type), newColumn, {
44079
+ columnsState.lookup[field] = resolveProps(existingState, _extends$1({}, getDefaultColTypeDef(newColumn.type), newColumn, {
44080
44080
  hasBeenResized
44081
44081
  }));
44082
44082
  });
@@ -44173,7 +44173,7 @@ function GridScrollAreaWrapper(props) {
44173
44173
  if (!dragging) {
44174
44174
  return null;
44175
44175
  }
44176
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollAreaContent, _extends$2({}, props));
44176
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollAreaContent, _extends$1({}, props));
44177
44177
  }
44178
44178
  function GridScrollAreaContent(props) {
44179
44179
  const {
@@ -44199,7 +44199,7 @@ function GridScrollAreaContent(props) {
44199
44199
  };
44200
44200
  const [canScrollMore, setCanScrollMore] = React.useState(getCanScrollMore);
44201
44201
  const rootProps = useGridRootProps();
44202
- const ownerState = _extends$2({}, rootProps, {
44202
+ const ownerState = _extends$1({}, rootProps, {
44203
44203
  scrollDirection
44204
44204
  });
44205
44205
  const classes2 = useUtilityClasses$B(ownerState);
@@ -44347,14 +44347,14 @@ const virtualizationStateInitializer = (state, props) => {
44347
44347
  enabledForRows: !disableVirtualization && !autoHeight,
44348
44348
  renderContext: EMPTY_RENDER_CONTEXT
44349
44349
  };
44350
- return _extends$2({}, state, {
44350
+ return _extends$1({}, state, {
44351
44351
  virtualization
44352
44352
  });
44353
44353
  };
44354
44354
  function useGridVirtualization(apiRef, props) {
44355
44355
  const setVirtualization = (enabled) => {
44356
- apiRef.current.setState((state) => _extends$2({}, state, {
44357
- virtualization: _extends$2({}, state.virtualization, {
44356
+ apiRef.current.setState((state) => _extends$1({}, state, {
44357
+ virtualization: _extends$1({}, state.virtualization, {
44358
44358
  enabled,
44359
44359
  enabledForColumns: enabled,
44360
44360
  enabledForRows: enabled && !props.autoHeight
@@ -44362,8 +44362,8 @@ function useGridVirtualization(apiRef, props) {
44362
44362
  }));
44363
44363
  };
44364
44364
  const setColumnVirtualization = (enabled) => {
44365
- apiRef.current.setState((state) => _extends$2({}, state, {
44366
- virtualization: _extends$2({}, state.virtualization, {
44365
+ apiRef.current.setState((state) => _extends$1({}, state, {
44366
+ virtualization: _extends$1({}, state.virtualization, {
44367
44367
  enabledForColumns: enabled
44368
44368
  })
44369
44369
  }));
@@ -44403,7 +44403,7 @@ const gridFocusedVirtualCellSelector = createSelectorMemoized(gridIsFocusedCellO
44403
44403
  if (columnIndex === -1) {
44404
44404
  return null;
44405
44405
  }
44406
- return _extends$2({}, focusedCell, {
44406
+ return _extends$1({}, focusedCell, {
44407
44407
  rowIndex,
44408
44408
  columnIndex
44409
44409
  });
@@ -44517,8 +44517,8 @@ const useGridVirtualScroller = () => {
44517
44517
  }
44518
44518
  const didRowsIntervalChange = nextRenderContext.firstRowIndex !== previousRowContext.current.firstRowIndex || nextRenderContext.lastRowIndex !== previousRowContext.current.lastRowIndex;
44519
44519
  apiRef.current.setState((state) => {
44520
- return _extends$2({}, state, {
44521
- virtualization: _extends$2({}, state.virtualization, {
44520
+ return _extends$1({}, state, {
44521
+ virtualization: _extends$1({}, state.virtualization, {
44522
44522
  renderContext: nextRenderContext
44523
44523
  })
44524
44524
  });
@@ -44713,7 +44713,7 @@ const useGridVirtualScroller = () => {
44713
44713
  const showBottomBorder = isLastVisibleInSection && params.position === "top";
44714
44714
  const firstColumnIndex = currentRenderContext.firstColumnIndex;
44715
44715
  const lastColumnIndex = currentRenderContext.lastColumnIndex;
44716
- rows.push(/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.row, _extends$2({
44716
+ rows.push(/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.row, _extends$1({
44717
44717
  row: model,
44718
44718
  rowId: id,
44719
44719
  index: rowIndex,
@@ -44920,7 +44920,7 @@ function computeRenderContext(inputs, scrollPosition, scrollCache) {
44920
44920
  lastColumnIndex: inputs.visibleColumns.length
44921
44921
  };
44922
44922
  if (inputs.listView) {
44923
- return _extends$2({}, renderContext, {
44923
+ return _extends$1({}, renderContext, {
44924
44924
  lastColumnIndex: 1
44925
44925
  });
44926
44926
  }
@@ -45198,14 +45198,14 @@ function GridOverlayWrapper(props) {
45198
45198
  if (height2 === 0) {
45199
45199
  height2 = minimalContentHeight;
45200
45200
  }
45201
- const classes2 = useUtilityClasses$A(_extends$2({}, props, {
45201
+ const classes2 = useUtilityClasses$A(_extends$1({}, props, {
45202
45202
  classes: rootProps.classes
45203
45203
  }));
45204
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapperRoot, _extends$2({
45204
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapperRoot, _extends$1({
45205
45205
  className: clsx(classes2.root)
45206
45206
  }, props, {
45207
45207
  right: dimensions.columnsTotalWidth - dimensions.viewportOuterSize.width,
45208
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapperInner, _extends$2({
45208
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapperInner, _extends$1({
45209
45209
  className: clsx(classes2.inner),
45210
45210
  style: {
45211
45211
  height: height2,
@@ -45261,8 +45261,8 @@ const useGridOverlays = () => {
45261
45261
  }
45262
45262
  const Overlay = (_a2 = rootProps.slots) == null ? void 0 : _a2[overlayType];
45263
45263
  const overlayProps = (_b2 = rootProps.slotProps) == null ? void 0 : _b2[overlayType];
45264
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapper, _extends$2({}, overlaysProps, {
45265
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(Overlay, _extends$2({}, overlayProps))
45264
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapper, _extends$1({}, overlaysProps, {
45265
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Overlay, _extends$1({}, overlayProps))
45266
45266
  }));
45267
45267
  };
45268
45268
  return {
@@ -45289,7 +45289,7 @@ function GridHeaders() {
45289
45289
  const columnGroupsHeaderStructure = useGridSelector(apiRef, gridColumnGroupsHeaderStructureSelector);
45290
45290
  const hasOtherElementInTabSequence = !(columnGroupHeaderTabIndexState === null && columnHeaderTabIndexState === null && hasNoCellTabIndexState);
45291
45291
  const columnsContainerRef = apiRef.current.columnHeadersContainerRef;
45292
- return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaders, _extends$2({
45292
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaders, _extends$1({
45293
45293
  ref: columnsContainerRef,
45294
45294
  visibleColumns,
45295
45295
  filterColumnLookup,
@@ -45339,7 +45339,7 @@ const GridMainContainer = forwardRef((props, ref) => {
45339
45339
  const rootProps = useGridRootProps();
45340
45340
  const configuration2 = useGridConfiguration();
45341
45341
  const ariaAttributes = configuration2.hooks.useGridAriaAttributes();
45342
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(Element$3, _extends$2({
45342
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(Element$3, _extends$1({
45343
45343
  ownerState,
45344
45344
  className: props.className,
45345
45345
  tabIndex: -1
@@ -45364,7 +45364,7 @@ const Element$2 = styled$1("div")({
45364
45364
  });
45365
45365
  function GridTopContainer(props) {
45366
45366
  const classes2 = useUtilityClasses$z();
45367
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Element$2, _extends$2({}, props, {
45367
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Element$2, _extends$1({}, props, {
45368
45368
  className: clsx(classes2.root, gridClasses["container--top"]),
45369
45369
  role: "presentation"
45370
45370
  }));
@@ -45397,7 +45397,7 @@ const GridVirtualScrollerContent = forwardRef(function GridVirtualScrollerConten
45397
45397
  classes: rootProps.classes,
45398
45398
  overflowedContent
45399
45399
  };
45400
- return /* @__PURE__ */ jsxRuntimeExports.jsx(VirtualScrollerContentRoot, _extends$2({}, props, {
45400
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(VirtualScrollerContentRoot, _extends$1({}, props, {
45401
45401
  ownerState,
45402
45402
  className: clsx(classes2.root, props.className),
45403
45403
  ref
@@ -45499,7 +45499,7 @@ const GridVirtualScrollerRenderZone = forwardRef(function GridVirtualScrollerRen
45499
45499
  const rowsMeta = gridRowsMetaSelector(apiRef);
45500
45500
  return rowsMeta.positions[renderContext.firstRowIndex] ?? 0;
45501
45501
  });
45502
- return /* @__PURE__ */ jsxRuntimeExports.jsx(VirtualScrollerRenderZoneRoot, _extends$2({
45502
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(VirtualScrollerRenderZoneRoot, _extends$1({
45503
45503
  className: clsx(classes2.root, className),
45504
45504
  ownerState: rootProps,
45505
45505
  style: {
@@ -45775,7 +45775,7 @@ function GridVirtualScroller(props) {
45775
45775
  getOverlay,
45776
45776
  overlaysProps
45777
45777
  } = useGridOverlays();
45778
- const ownerState = _extends$2({
45778
+ const ownerState = _extends$1({
45779
45779
  classes: rootProps.classes,
45780
45780
  hasScrollX,
45781
45781
  hasPinnedRight
@@ -45793,15 +45793,15 @@ function GridVirtualScroller(props) {
45793
45793
  getScrollAreaProps
45794
45794
  } = virtualScroller;
45795
45795
  const rows = getRows();
45796
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridMainContainer, _extends$2({
45796
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridMainContainer, _extends$1({
45797
45797
  className: classes2.root
45798
45798
  }, getContainerProps(), {
45799
45799
  ownerState,
45800
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollArea, _extends$2({
45800
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollArea, _extends$1({
45801
45801
  scrollDirection: "left"
45802
- }, getScrollAreaProps())), /* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollArea, _extends$2({
45802
+ }, getScrollAreaProps())), /* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollArea, _extends$1({
45803
45803
  scrollDirection: "right"
45804
- }, getScrollAreaProps())), /* @__PURE__ */ jsxRuntimeExports.jsxs(Scroller, _extends$2({
45804
+ }, getScrollAreaProps())), /* @__PURE__ */ jsxRuntimeExports.jsxs(Scroller, _extends$1({
45805
45805
  className: classes2.scroller
45806
45806
  }, getScrollerProps(), {
45807
45807
  ownerState,
@@ -45810,8 +45810,8 @@ function GridVirtualScroller(props) {
45810
45810
  position: "top",
45811
45811
  virtualScroller
45812
45812
  })]
45813
- }), getOverlay(), /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollerContent, _extends$2({}, getContentProps(), {
45814
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridVirtualScrollerRenderZone, _extends$2({}, getRenderZoneProps(), {
45813
+ }), getOverlay(), /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollerContent, _extends$1({}, getContentProps(), {
45814
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridVirtualScrollerRenderZone, _extends$1({}, getRenderZoneProps(), {
45815
45815
  children: [rows, /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.detailPanels, {
45816
45816
  virtualScroller
45817
45817
  })]
@@ -45824,9 +45824,9 @@ function GridVirtualScroller(props) {
45824
45824
  virtualScroller
45825
45825
  })
45826
45826
  })]
45827
- })), hasScrollX && !rootProps.listView && /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollbar, _extends$2({
45827
+ })), hasScrollX && !rootProps.listView && /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollbar, _extends$1({
45828
45828
  position: "horizontal"
45829
- }, getScrollbarHorizontalProps())), hasScrollY && /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollbar, _extends$2({
45829
+ }, getScrollbarHorizontalProps())), hasScrollY && /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollbar, _extends$1({
45830
45830
  position: "vertical"
45831
45831
  }, getScrollbarVerticalProps())), props.children]
45832
45832
  }));
@@ -45837,7 +45837,7 @@ function GridFooterPlaceholder() {
45837
45837
  if (rootProps.hideFooter) {
45838
45838
  return null;
45839
45839
  }
45840
- return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.footer, _extends$2(
45840
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.footer, _extends$1(
45841
45841
  {},
45842
45842
  (_a = rootProps.slotProps) == null ? void 0 : _a.footer
45843
45843
  /* FIXME: typing error */
@@ -45863,7 +45863,7 @@ function computeSlots({
45863
45863
  if (!overrides || Object.keys(overrides).length === 0) {
45864
45864
  return defaultSlots2;
45865
45865
  }
45866
- const result = _extends$2({}, defaultSlots2);
45866
+ const result = _extends$1({}, defaultSlots2);
45867
45867
  Object.keys(overrides).forEach((key) => {
45868
45868
  const k = key;
45869
45869
  if (overrides[k] !== void 0) {
@@ -46076,7 +46076,7 @@ const GridCell = forwardRef(function GridCell2(props, ref) {
46076
46076
  border: 0
46077
46077
  };
46078
46078
  }
46079
- const cellStyle = attachPinnedStyle(_extends$2({
46079
+ const cellStyle = attachPinnedStyle(_extends$1({
46080
46080
  "--width": `${width2}px`
46081
46081
  }, styleProp), isRtl, pinnedPosition, pinnedOffset);
46082
46082
  const isLeftPinned = pinnedPosition === PinnedColumnPosition.LEFT;
@@ -46113,7 +46113,7 @@ const GridCell = forwardRef(function GridCell2(props, ref) {
46113
46113
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
46114
46114
  "data-colindex": colIndex,
46115
46115
  role: "presentation",
46116
- style: _extends$2({
46116
+ style: _extends$1({
46117
46117
  width: "var(--width)"
46118
46118
  }, style2)
46119
46119
  });
@@ -46128,7 +46128,7 @@ const GridCell = forwardRef(function GridCell2(props, ref) {
46128
46128
  const updatedRow = apiRef.current.getRowWithUpdatedValues(rowId, column2.field);
46129
46129
  const editCellStateRest = _objectWithoutPropertiesLoose(editCellState, _excluded2$7);
46130
46130
  const formattedValue = column2.valueFormatter ? column2.valueFormatter(editCellState.value, updatedRow, column2, apiRef) : cellParams.formattedValue;
46131
- const params = _extends$2({}, cellParams, {
46131
+ const params = _extends$1({}, cellParams, {
46132
46132
  row: updatedRow,
46133
46133
  formattedValue
46134
46134
  }, editCellStateRest);
@@ -46150,7 +46150,7 @@ const GridCell = forwardRef(function GridCell2(props, ref) {
46150
46150
  onDragEnter: publish("cellDragEnter", onDragEnter),
46151
46151
  onDragOver: publish("cellDragOver", onDragOver)
46152
46152
  };
46153
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$2({
46153
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$1({
46154
46154
  className: clsx(classes2.root, classNames, className),
46155
46155
  role: "gridcell",
46156
46156
  "data-field": field,
@@ -46252,16 +46252,16 @@ function GridSkeletonCell(props) {
46252
46252
  height: CONTENT_HEIGHT
46253
46253
  };
46254
46254
  }, [type]);
46255
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$2({
46255
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$1({
46256
46256
  "data-field": field,
46257
46257
  className: clsx(classes2.root, className),
46258
- style: _extends$2({
46258
+ style: _extends$1({
46259
46259
  height: height2,
46260
46260
  maxWidth: width2,
46261
46261
  minWidth: width2
46262
46262
  }, style2)
46263
46263
  }, other, {
46264
- children: !empty && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSkeleton, _extends$2({}, skeletonProps))
46264
+ children: !empty && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSkeleton, _extends$1({}, skeletonProps))
46265
46265
  }));
46266
46266
  }
46267
46267
  GridSkeletonCell.propTypes = {
@@ -47266,7 +47266,7 @@ function GridPreferencesPanel() {
47266
47266
  filterPanelTriggerRef
47267
47267
  } = useGridPreferencePanelContext();
47268
47268
  const panelContent = apiRef.current.unstable_applyPipeProcessors("preferencePanel", null, preferencePanelState.openedPanelValue ?? GridPreferencePanelsValue.filters);
47269
- return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.panel, _extends$2({
47269
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.panel, _extends$1({
47270
47270
  id: preferencePanelState.panelId,
47271
47271
  open: columns.length > 0 && preferencePanelState.open,
47272
47272
  "aria-labelledby": preferencePanelState.labelId,
@@ -47279,7 +47279,7 @@ function GridHeader() {
47279
47279
  var _a;
47280
47280
  const rootProps = useGridRootProps();
47281
47281
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
47282
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridPreferencesPanel, {}), rootProps.showToolbar && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.toolbar, _extends$2({}, (_a = rootProps.slotProps) == null ? void 0 : _a.toolbar))]
47282
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridPreferencesPanel, {}), rootProps.showToolbar && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.toolbar, _extends$1({}, (_a = rootProps.slotProps) == null ? void 0 : _a.toolbar))]
47283
47283
  });
47284
47284
  }
47285
47285
  const _excluded$G = ["className", "children"];
@@ -47317,7 +47317,7 @@ const GridRoot = forwardRef(function GridRoot2(props, ref) {
47317
47317
  if (isSSR2) {
47318
47318
  return null;
47319
47319
  }
47320
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridRootStyles, _extends$2({
47320
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridRootStyles, _extends$1({
47321
47321
  className: clsx(classes2.root, className, cssVariables.className),
47322
47322
  ownerState
47323
47323
  }, other, {
@@ -47365,7 +47365,7 @@ const GridFooterContainer = forwardRef(function GridFooterContainer2(props, ref)
47365
47365
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$F);
47366
47366
  const rootProps = useGridRootProps();
47367
47367
  const classes2 = useUtilityClasses$r(rootProps);
47368
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridFooterContainerRoot, _extends$2({
47368
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridFooterContainerRoot, _extends$1({
47369
47369
  className: clsx(classes2.root, className),
47370
47370
  ownerState: rootProps
47371
47371
  }, other, {
@@ -47409,7 +47409,7 @@ const GridOverlay = forwardRef(function GridOverlay2(props, ref) {
47409
47409
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$E);
47410
47410
  const rootProps = useGridRootProps();
47411
47411
  const classes2 = useUtilityClasses$q(rootProps);
47412
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayRoot, _extends$2({
47412
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayRoot, _extends$1({
47413
47413
  className: clsx(classes2.root, className),
47414
47414
  ownerState: rootProps
47415
47415
  }, other, {
@@ -47432,7 +47432,7 @@ function useGridComponentRenderer(defaultElement, render, props, state = {}) {
47432
47432
  props.className = clsx(render.props.className, props.className);
47433
47433
  }
47434
47434
  if (render.props.style || props.style) {
47435
- props.style = _extends$2({}, props.style, render.props.style);
47435
+ props.style = _extends$1({}, props.style, render.props.style);
47436
47436
  }
47437
47437
  if (render.props.sx || props.sx) {
47438
47438
  props.sx = mergeSx(props.sx, render.props.sx);
@@ -47572,7 +47572,7 @@ const Toolbar$1 = forwardRef(function Toolbar2(props, ref) {
47572
47572
  onItemFocus,
47573
47573
  onItemDisabled
47574
47574
  }), [focusableItemId, registerItem, unregisterItem, onItemKeyDown, onItemFocus, onItemDisabled]);
47575
- const element = useGridComponentRenderer(ToolbarRoot$1, render, _extends$2({
47575
+ const element = useGridComponentRenderer(ToolbarRoot$1, render, _extends$1({
47576
47576
  role: "toolbar",
47577
47577
  "aria-orientation": "horizontal",
47578
47578
  "aria-label": rootProps.label || void 0,
@@ -47649,7 +47649,7 @@ const ToolbarButton = forwardRef(function ToolbarButton2(props, ref) {
47649
47649
  }
47650
47650
  previousAriaDisabled.current = ariaDisabled;
47651
47651
  }, [ariaDisabled, id, onItemDisabled]);
47652
- const element = useGridComponentRenderer(rootProps.slots.baseIconButton, render, _extends$2({}, (_a = rootProps.slotProps) == null ? void 0 : _a.baseIconButton, {
47652
+ const element = useGridComponentRenderer(rootProps.slots.baseIconButton, render, _extends$1({}, (_a = rootProps.slotProps) == null ? void 0 : _a.baseIconButton, {
47653
47653
  tabIndex: focusableItemId === id ? 0 : -1
47654
47654
  }, other, {
47655
47655
  disabled,
@@ -47706,7 +47706,7 @@ const ColumnHeaderMenuIcon = /* @__PURE__ */ React.memo((props) => {
47706
47706
  } = props;
47707
47707
  const apiRef = useGridApiContext();
47708
47708
  const rootProps = useGridRootProps();
47709
- const ownerState = _extends$2({}, props, {
47709
+ const ownerState = _extends$1({}, props, {
47710
47710
  classes: rootProps.classes
47711
47711
  });
47712
47712
  const classes2 = useUtilityClasses$o(ownerState);
@@ -47718,11 +47718,11 @@ const ColumnHeaderMenuIcon = /* @__PURE__ */ React.memo((props) => {
47718
47718
  const columnName = colDef.headerName ?? colDef.field;
47719
47719
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
47720
47720
  className: classes2.root,
47721
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$2({
47721
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$1({
47722
47722
  title: apiRef.current.getLocaleText("columnMenuLabel"),
47723
47723
  enterDelay: 1e3
47724
47724
  }, (_a = rootProps.slotProps) == null ? void 0 : _a.baseTooltip, {
47725
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$2({
47725
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$1({
47726
47726
  ref: iconButtonRef,
47727
47727
  tabIndex: -1,
47728
47728
  className: classes2.button,
@@ -47771,7 +47771,7 @@ function GridColumnHeaderMenu({
47771
47771
  target,
47772
47772
  onClose: hideMenu,
47773
47773
  onExited,
47774
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(ContentComponent, _extends$2({
47774
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(ContentComponent, _extends$1({
47775
47775
  colDef,
47776
47776
  hideMenu,
47777
47777
  open,
@@ -48013,7 +48013,7 @@ const ColumnHeaderInnerTitle = forwardRef(function ColumnHeaderInnerTitle2(props
48013
48013
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$B);
48014
48014
  const rootProps = useGridRootProps();
48015
48015
  const classes2 = useUtilityClasses$n(rootProps);
48016
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderTitleRoot, _extends$2({
48016
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderTitleRoot, _extends$1({
48017
48017
  className: clsx(classes2.root, className),
48018
48018
  ownerState: rootProps
48019
48019
  }, other, {
@@ -48039,7 +48039,7 @@ function GridColumnHeaderTitle(props) {
48039
48039
  }
48040
48040
  }
48041
48041
  }, [description, label]);
48042
- return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$2({
48042
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$1({
48043
48043
  title: description || tooltip
48044
48044
  }, (_a = rootProps.slotProps) == null ? void 0 : _a.baseTooltip, {
48045
48045
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnHeaderInnerTitle, {
@@ -48083,7 +48083,7 @@ function GridColumnHeaderSeparatorRaw(props) {
48083
48083
  side = GridColumnHeaderSeparatorSides.Right
48084
48084
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$A);
48085
48085
  const rootProps = useGridRootProps();
48086
- const ownerState = _extends$2({}, props, {
48086
+ const ownerState = _extends$1({}, props, {
48087
48087
  side,
48088
48088
  classes: rootProps.classes
48089
48089
  });
@@ -48094,7 +48094,7 @@ function GridColumnHeaderSeparatorRaw(props) {
48094
48094
  }, []);
48095
48095
  return (
48096
48096
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
48097
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$2({
48097
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$1({
48098
48098
  className: classes2.root,
48099
48099
  style: {
48100
48100
  minHeight: height2
@@ -48163,9 +48163,9 @@ const GridGenericColumnHeaderItem = forwardRef(function GridGenericColumnHeaderI
48163
48163
  }
48164
48164
  }
48165
48165
  }, [apiRef, hasFocus]);
48166
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$2({
48166
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$1({
48167
48167
  className: clsx(classes2.root, headerClassName),
48168
- style: _extends$2({}, style2, {
48168
+ style: _extends$1({}, style2, {
48169
48169
  width: width2
48170
48170
  }),
48171
48171
  role: "columnheader",
@@ -48174,7 +48174,7 @@ const GridGenericColumnHeaderItem = forwardRef(function GridGenericColumnHeaderI
48174
48174
  "aria-sort": ariaSort
48175
48175
  }, other, {
48176
48176
  ref: handleRef,
48177
- children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$2({
48177
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$1({
48178
48178
  className: classes2.draggableContainer,
48179
48179
  draggable: isDraggable,
48180
48180
  role: "presentation"
@@ -48191,7 +48191,7 @@ const GridGenericColumnHeaderItem = forwardRef(function GridGenericColumnHeaderI
48191
48191
  })
48192
48192
  }), columnTitleIconButtons]
48193
48193
  }), columnMenuIconButton]
48194
- })), /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderSeparator, _extends$2({
48194
+ })), /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderSeparator, _extends$1({
48195
48195
  resizable: !rootProps.disableColumnResize && !!resizable,
48196
48196
  resizing: isResizing,
48197
48197
  height: height2,
@@ -48276,7 +48276,7 @@ function GridColumnHeaderItem(props) {
48276
48276
  if (colDef.renderHeader) {
48277
48277
  headerComponent = colDef.renderHeader(apiRef.current.getColumnHeaderParams(colDef.field));
48278
48278
  }
48279
- const ownerState = _extends$2({}, props, {
48279
+ const ownerState = _extends$1({}, props, {
48280
48280
  classes: rootProps.classes,
48281
48281
  showRightBorder,
48282
48282
  showLeftBorder
@@ -48342,10 +48342,10 @@ function GridColumnHeaderItem(props) {
48342
48342
  const sortingOrder = colDef.sortingOrder ?? rootProps.sortingOrder;
48343
48343
  const showSortIcon = (colDef.sortable || sortDirection != null) && !colDef.hideSortIcons && !rootProps.disableColumnSorting;
48344
48344
  const columnTitleIconButtons = /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
48345
- children: [!rootProps.disableColumnFilter && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaderFilterIconButton, _extends$2({
48345
+ children: [!rootProps.disableColumnFilter && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaderFilterIconButton, _extends$1({
48346
48346
  field: colDef.field,
48347
48347
  counter: filterItemsCounter
48348
- }, (_b = rootProps.slotProps) == null ? void 0 : _b.columnHeaderFilterIconButton)), showSortIcon && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaderSortIcon, _extends$2({
48348
+ }, (_b = rootProps.slotProps) == null ? void 0 : _b.columnHeaderFilterIconButton)), showSortIcon && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaderSortIcon, _extends$1({
48349
48349
  field: colDef.field,
48350
48350
  direction: sortDirection,
48351
48351
  index: sortIndex,
@@ -48370,8 +48370,8 @@ function GridColumnHeaderItem(props) {
48370
48370
  colDef
48371
48371
  }) : colDef.headerClassName;
48372
48372
  const label = colDef.headerName ?? colDef.field;
48373
- const style2 = React.useMemo(() => attachPinnedStyle(_extends$2({}, props.style), isRtl, pinnedPosition, pinnedOffset), [pinnedPosition, pinnedOffset, props.style, isRtl]);
48374
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnHeaderItem, _extends$2({
48373
+ const style2 = React.useMemo(() => attachPinnedStyle(_extends$1({}, props.style), isRtl, pinnedPosition, pinnedOffset), [pinnedPosition, pinnedOffset, props.style, isRtl]);
48374
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnHeaderItem, _extends$1({
48375
48375
  ref: headerCellRef,
48376
48376
  classes: classes2,
48377
48377
  columnMenuOpen,
@@ -48452,7 +48452,7 @@ const GridIconButtonContainer = forwardRef(function GridIconButtonContainer2(pro
48452
48452
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$y);
48453
48453
  const rootProps = useGridRootProps();
48454
48454
  const classes2 = useUtilityClasses$k(rootProps);
48455
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridIconButtonContainerRoot, _extends$2({
48455
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridIconButtonContainerRoot, _extends$1({
48456
48456
  className: clsx(classes2.root, className),
48457
48457
  ownerState: rootProps
48458
48458
  }, other, {
@@ -48480,7 +48480,7 @@ function getIcon(icons, direction, className, sortingOrder) {
48480
48480
  Icon = icons.columnUnsortedIcon;
48481
48481
  iconProps.sortingOrder = sortingOrder;
48482
48482
  }
48483
- return Icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$2({
48483
+ return Icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$1({
48484
48484
  fontSize: "small",
48485
48485
  className
48486
48486
  }, iconProps)) : null;
@@ -48495,7 +48495,7 @@ function GridColumnHeaderSortIconRaw(props) {
48495
48495
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$x);
48496
48496
  const apiRef = useGridApiContext();
48497
48497
  const rootProps = useGridRootProps();
48498
- const ownerState = _extends$2({}, props, {
48498
+ const ownerState = _extends$1({}, props, {
48499
48499
  classes: rootProps.classes
48500
48500
  });
48501
48501
  const classes2 = useUtilityClasses$j(ownerState);
@@ -48503,7 +48503,7 @@ function GridColumnHeaderSortIconRaw(props) {
48503
48503
  if (!iconElement) {
48504
48504
  return null;
48505
48505
  }
48506
- const iconButton = /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$2({
48506
+ const iconButton = /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$1({
48507
48507
  tabIndex: -1,
48508
48508
  "aria-label": apiRef.current.getLocaleText("columnHeaderSortIconLabel"),
48509
48509
  title: apiRef.current.getLocaleText("columnHeaderSortIconLabel"),
@@ -48546,7 +48546,7 @@ function GridColumnHeaderFilterIconButtonWrapped(props) {
48546
48546
  if (!props.counter) {
48547
48547
  return null;
48548
48548
  }
48549
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderFilterIconButton, _extends$2({}, props));
48549
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderFilterIconButton, _extends$1({}, props));
48550
48550
  }
48551
48551
  GridColumnHeaderFilterIconButtonWrapped.propTypes = {
48552
48552
  // ----------------------------- Warning --------------------------------
@@ -48566,7 +48566,7 @@ function GridColumnHeaderFilterIconButton(props) {
48566
48566
  } = props;
48567
48567
  const apiRef = useGridApiContext();
48568
48568
  const rootProps = useGridRootProps();
48569
- const ownerState = _extends$2({}, props, {
48569
+ const ownerState = _extends$1({}, props, {
48570
48570
  classes: rootProps.classes
48571
48571
  });
48572
48572
  const classes2 = useUtilityClasses$i(ownerState);
@@ -48592,7 +48592,7 @@ function GridColumnHeaderFilterIconButton(props) {
48592
48592
  if (!counter2) {
48593
48593
  return null;
48594
48594
  }
48595
- const iconButton = /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$2({
48595
+ const iconButton = /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$1({
48596
48596
  id: labelId,
48597
48597
  onClick: toggleFilter,
48598
48598
  "aria-label": apiRef.current.getLocaleText("columnHeaderFiltersLabel"),
@@ -48607,7 +48607,7 @@ function GridColumnHeaderFilterIconButton(props) {
48607
48607
  fontSize: "small"
48608
48608
  })
48609
48609
  }));
48610
- return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$2({
48610
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$1({
48611
48611
  title: apiRef.current.getLocaleText("columnHeaderFiltersTooltipActive")(counter2),
48612
48612
  enterDelay: 1e3
48613
48613
  }, (_b = rootProps.slotProps) == null ? void 0 : _b.baseTooltip, {
@@ -48757,7 +48757,7 @@ const GridColumnMenuContainer = forwardRef(function GridColumnMenuContainer2(pro
48757
48757
  hideMenu(event);
48758
48758
  }
48759
48759
  }, [hideMenu]);
48760
- return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledMenuList, _extends$2({
48760
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledMenuList, _extends$1({
48761
48761
  as: rootProps.slots.baseMenuList,
48762
48762
  id,
48763
48763
  className: clsx(gridClasses.menuList, className),
@@ -48793,14 +48793,14 @@ const useGridColumnMenuSlots = (props) => {
48793
48793
  colDef,
48794
48794
  addDividers = true
48795
48795
  } = props;
48796
- const processedComponents = React.useMemo(() => _extends$2({}, defaultSlots2, slots), [defaultSlots2, slots]);
48796
+ const processedComponents = React.useMemo(() => _extends$1({}, defaultSlots2, slots), [defaultSlots2, slots]);
48797
48797
  const processedSlotProps = React.useMemo(() => {
48798
48798
  if (!slotProps || Object.keys(slotProps).length === 0) {
48799
48799
  return defaultSlotProps;
48800
48800
  }
48801
- const mergedProps = _extends$2({}, slotProps);
48801
+ const mergedProps = _extends$1({}, slotProps);
48802
48802
  Object.entries(defaultSlotProps).forEach(([key, currentSlotProps]) => {
48803
- mergedProps[key] = _extends$2({}, currentSlotProps, slotProps[key] || {});
48803
+ mergedProps[key] = _extends$1({}, currentSlotProps, slotProps[key] || {});
48804
48804
  });
48805
48805
  return mergedProps;
48806
48806
  }, [defaultSlotProps, slotProps]);
@@ -48827,7 +48827,7 @@ const useGridColumnMenuSlots = (props) => {
48827
48827
  const processedComponentProps = processedSlotProps[key];
48828
48828
  if (processedComponentProps) {
48829
48829
  const customProps = _objectWithoutPropertiesLoose(processedComponentProps, _excluded$v);
48830
- itemProps = _extends$2({}, itemProps, customProps);
48830
+ itemProps = _extends$1({}, itemProps, customProps);
48831
48831
  }
48832
48832
  return addDividers && index !== sorted.length - 1 ? [...acc, [processedComponents[key], itemProps], [rootProps.slots.baseDivider, {}]] : [...acc, [processedComponents[key], itemProps]];
48833
48833
  }, []);
@@ -48904,7 +48904,7 @@ GridColumnMenuManageItem.propTypes = {
48904
48904
  };
48905
48905
  function GridColumnMenuColumnsItem(props) {
48906
48906
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
48907
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuHideItem, _extends$2({}, props)), /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuManageItem, _extends$2({}, props))]
48907
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuHideItem, _extends$1({}, props)), /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuManageItem, _extends$1({}, props))]
48908
48908
  });
48909
48909
  }
48910
48910
  GridColumnMenuColumnsItem.propTypes = {
@@ -49029,15 +49029,15 @@ const GridGenericColumnMenu = forwardRef(function GridGenericColumnMenu2(props,
49029
49029
  slots,
49030
49030
  slotProps
49031
49031
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$u);
49032
- const orderedSlots = useGridColumnMenuSlots(_extends$2({}, other, {
49032
+ const orderedSlots = useGridColumnMenuSlots(_extends$1({}, other, {
49033
49033
  defaultSlots: defaultSlots2,
49034
49034
  defaultSlotProps,
49035
49035
  slots,
49036
49036
  slotProps
49037
49037
  }));
49038
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuContainer, _extends$2({}, other, {
49038
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuContainer, _extends$1({}, other, {
49039
49039
  ref,
49040
- children: orderedSlots.map(([Component, otherProps], index) => /* @__PURE__ */ jsxRuntimeExports.jsx(Component, _extends$2({}, otherProps), index))
49040
+ children: orderedSlots.map(([Component, otherProps], index) => /* @__PURE__ */ jsxRuntimeExports.jsx(Component, _extends$1({}, otherProps), index))
49041
49041
  }));
49042
49042
  });
49043
49043
  GridGenericColumnMenu.propTypes = {
@@ -49073,7 +49073,7 @@ GridGenericColumnMenu.propTypes = {
49073
49073
  slots: PropTypes.object
49074
49074
  };
49075
49075
  const GridColumnMenu = forwardRef(function GridColumnMenu2(props, ref) {
49076
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnMenu, _extends$2({}, props, {
49076
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnMenu, _extends$1({}, props, {
49077
49077
  ref,
49078
49078
  defaultSlots: GRID_COLUMN_MENU_SLOTS,
49079
49079
  defaultSlotProps: GRID_COLUMN_MENU_SLOT_PROPS
@@ -49128,7 +49128,7 @@ const GridPanelWrapper = forwardRef(function GridPanelWrapper2(props, ref) {
49128
49128
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$t);
49129
49129
  const rootProps = useGridRootProps();
49130
49130
  const classes2 = useUtilityClasses$h(rootProps);
49131
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelWrapperRoot, _extends$2({
49131
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelWrapperRoot, _extends$1({
49132
49132
  tabIndex: -1,
49133
49133
  className: clsx(classes2.root, className),
49134
49134
  ownerState: rootProps
@@ -49139,8 +49139,8 @@ const GridPanelWrapper = forwardRef(function GridPanelWrapper2(props, ref) {
49139
49139
  function GridColumnsPanel(props) {
49140
49140
  var _a;
49141
49141
  const rootProps = useGridRootProps();
49142
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelWrapper, _extends$2({}, props, {
49143
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnsManagement, _extends$2({}, (_a = rootProps.slotProps) == null ? void 0 : _a.columnsManagement))
49142
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelWrapper, _extends$1({}, props, {
49143
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnsManagement, _extends$1({}, (_a = rootProps.slotProps) == null ? void 0 : _a.columnsManagement))
49144
49144
  }));
49145
49145
  }
49146
49146
  const _excluded$s = ["children", "className", "classes"];
@@ -49196,7 +49196,7 @@ const GridPanel = forwardRef((props, ref) => {
49196
49196
  if (!fallbackTarget) {
49197
49197
  return null;
49198
49198
  }
49199
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelRoot, _extends$2({
49199
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelRoot, _extends$1({
49200
49200
  as: rootProps.slots.basePopper,
49201
49201
  ownerState: rootProps,
49202
49202
  placement: "bottom-end",
@@ -49263,7 +49263,7 @@ function GridPanelContent(props) {
49263
49263
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$r);
49264
49264
  const rootProps = useGridRootProps();
49265
49265
  const classes2 = useUtilityClasses$g(rootProps);
49266
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelContentRoot, _extends$2({
49266
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelContentRoot, _extends$1({
49267
49267
  className: clsx(classes2.root, className),
49268
49268
  ownerState: rootProps
49269
49269
  }, other));
@@ -49301,7 +49301,7 @@ function GridPanelFooter(props) {
49301
49301
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$q);
49302
49302
  const rootProps = useGridRootProps();
49303
49303
  const classes2 = useUtilityClasses$f(rootProps);
49304
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelFooterRoot, _extends$2({
49304
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelFooterRoot, _extends$1({
49305
49305
  className: clsx(classes2.root, className),
49306
49306
  ownerState: rootProps
49307
49307
  }, other));
@@ -49503,7 +49503,7 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref) {
49503
49503
  filterValue = void 0;
49504
49504
  }
49505
49505
  }
49506
- applyFilterChanges(_extends$2({}, item, {
49506
+ applyFilterChanges(_extends$1({}, item, {
49507
49507
  field,
49508
49508
  operator: newOperator.value,
49509
49509
  value: filterValue
@@ -49513,7 +49513,7 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref) {
49513
49513
  const operator = event.target.value;
49514
49514
  const newOperator = currentColumn == null ? void 0 : currentColumn.filterOperators.find((op) => op.value === operator);
49515
49515
  const eraseItemValue = !(newOperator == null ? void 0 : newOperator.InputComponent) || (newOperator == null ? void 0 : newOperator.InputComponent) !== (currentOperator == null ? void 0 : currentOperator.InputComponent);
49516
- applyFilterChanges(_extends$2({}, item, {
49516
+ applyFilterChanges(_extends$1({}, item, {
49517
49517
  operator,
49518
49518
  value: eraseItemValue ? void 0 : item.value
49519
49519
  }));
@@ -49535,16 +49535,16 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref) {
49535
49535
  }
49536
49536
  }
49537
49537
  }), [currentOperator]);
49538
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridFilterFormRoot, _extends$2({
49538
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridFilterFormRoot, _extends$1({
49539
49539
  className: classes2.root,
49540
49540
  "data-id": item.id,
49541
49541
  ownerState: rootProps
49542
49542
  }, other, {
49543
49543
  ref,
49544
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormDeleteIcon, _extends$2({}, deleteIconProps, {
49544
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormDeleteIcon, _extends$1({}, deleteIconProps, {
49545
49545
  className: clsx(classes2.deleteIcon, deleteIconProps.className),
49546
49546
  ownerState: rootProps,
49547
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$2({
49547
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$1({
49548
49548
  "aria-label": apiRef.current.getLocaleText("filterPanelDeleteIconLabel"),
49549
49549
  title: apiRef.current.getLocaleText("filterPanelDeleteIconLabel"),
49550
49550
  onClick: handleDeleteFilter,
@@ -49555,7 +49555,7 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref) {
49555
49555
  fontSize: "small"
49556
49556
  })
49557
49557
  }))
49558
- })), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormLogicOperatorInput, _extends$2({
49558
+ })), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormLogicOperatorInput, _extends$1({
49559
49559
  as: rootProps.slots.baseSelect,
49560
49560
  sx: [hasLogicOperatorColumn ? {
49561
49561
  display: "flex"
@@ -49580,12 +49580,12 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref) {
49580
49580
  disabled: !!disableMultiFilterOperator || logicOperators.length === 1,
49581
49581
  native: isBaseSelectNative
49582
49582
  }, (_d = rootProps.slotProps) == null ? void 0 : _d.baseSelect, {
49583
- children: logicOperators.map((logicOperator) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$2({}, baseSelectOptionProps, {
49583
+ children: logicOperators.map((logicOperator) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$1({}, baseSelectOptionProps, {
49584
49584
  native: isBaseSelectNative,
49585
49585
  key: logicOperator.toString(),
49586
49586
  value: logicOperator.toString()
49587
49587
  }), apiRef.current.getLocaleText(getLogicOperatorLocaleKey(logicOperator))))
49588
- })), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormColumnInput, _extends$2({
49588
+ })), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormColumnInput, _extends$1({
49589
49589
  as: rootProps.slots.baseSelect
49590
49590
  }, columnInputProps, {
49591
49591
  className: clsx(classes2.columnInput, columnInputProps.className),
@@ -49599,12 +49599,12 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref) {
49599
49599
  native: isBaseSelectNative,
49600
49600
  disabled: readOnly
49601
49601
  }, (_e = rootProps.slotProps) == null ? void 0 : _e.baseSelect, {
49602
- children: sortedFilteredColumns.map((col) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$2({}, baseSelectOptionProps, {
49602
+ children: sortedFilteredColumns.map((col) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$1({}, baseSelectOptionProps, {
49603
49603
  native: isBaseSelectNative,
49604
49604
  key: col.field,
49605
49605
  value: col.field
49606
49606
  }), getColumnLabel(col)))
49607
- })), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormOperatorInput, _extends$2({
49607
+ })), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormOperatorInput, _extends$1({
49608
49608
  as: rootProps.slots.baseSelect,
49609
49609
  size: "small"
49610
49610
  }, operatorInputProps, {
@@ -49619,15 +49619,15 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref) {
49619
49619
  inputRef: filterSelectorRef,
49620
49620
  disabled: readOnly
49621
49621
  }, (_f = rootProps.slotProps) == null ? void 0 : _f.baseSelect, {
49622
- children: (_g = currentColumn == null ? void 0 : currentColumn.filterOperators) == null ? void 0 : _g.map((operator) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$2({}, baseSelectOptionProps, {
49622
+ children: (_g = currentColumn == null ? void 0 : currentColumn.filterOperators) == null ? void 0 : _g.map((operator) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$1({}, baseSelectOptionProps, {
49623
49623
  native: isBaseSelectNative,
49624
49624
  key: operator.value,
49625
49625
  value: operator.value
49626
49626
  }), operator.label || apiRef.current.getLocaleText(`filterOperator${capitalize(operator.value)}`)))
49627
- })), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormValueInput, _extends$2({}, valueInputPropsOther, {
49627
+ })), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormValueInput, _extends$1({}, valueInputPropsOther, {
49628
49628
  className: clsx(classes2.valueInput, valueInputPropsOther.className),
49629
49629
  ownerState: rootProps,
49630
- children: (currentOperator == null ? void 0 : currentOperator.InputComponent) ? /* @__PURE__ */ jsxRuntimeExports.jsx(currentOperator.InputComponent, _extends$2({
49630
+ children: (currentOperator == null ? void 0 : currentOperator.InputComponent) ? /* @__PURE__ */ jsxRuntimeExports.jsx(currentOperator.InputComponent, _extends$1({
49631
49631
  apiRef,
49632
49632
  item,
49633
49633
  applyValue: applyFilterChanges,
@@ -49855,7 +49855,7 @@ const GridFilterPanel = forwardRef(function GridFilterPanel2(props, ref) {
49855
49855
  apiRef.current.deleteFilterItem(validFilters[0]);
49856
49856
  return apiRef.current.hideFilterPanel();
49857
49857
  }
49858
- return apiRef.current.setFilterModel(_extends$2({}, filterModel, {
49858
+ return apiRef.current.setFilterModel(_extends$1({}, filterModel, {
49859
49859
  items: readOnlyFilters
49860
49860
  }), "removeAllFilterItems");
49861
49861
  }, [apiRef, readOnlyFilters, filterModel, validFilters]);
@@ -49869,10 +49869,10 @@ const GridFilterPanel = forwardRef(function GridFilterPanel2(props, ref) {
49869
49869
  lastFilterRef.current.focus();
49870
49870
  }
49871
49871
  }, [validFilters.length]);
49872
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridPanelWrapper, _extends$2({}, other, {
49872
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridPanelWrapper, _extends$1({}, other, {
49873
49873
  ref,
49874
49874
  children: [/* @__PURE__ */ jsxRuntimeExports.jsxs(GridPanelContent, {
49875
- children: [readOnlyFilters.map((item, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridFilterForm, _extends$2({
49875
+ children: [readOnlyFilters.map((item, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridFilterForm, _extends$1({
49876
49876
  item,
49877
49877
  applyFilterChanges: applyFilter,
49878
49878
  deleteFilter,
@@ -49884,7 +49884,7 @@ const GridFilterPanel = forwardRef(function GridFilterPanel2(props, ref) {
49884
49884
  readOnly: true,
49885
49885
  logicOperators,
49886
49886
  columnsSort
49887
- }, filterFormProps), item.id == null ? index : item.id)), validFilters.map((item, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridFilterForm, _extends$2({
49887
+ }, filterFormProps), item.id == null ? index : item.id)), validFilters.map((item, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridFilterForm, _extends$1({
49888
49888
  item,
49889
49889
  applyFilterChanges: applyFilter,
49890
49890
  deleteFilter,
@@ -49897,12 +49897,12 @@ const GridFilterPanel = forwardRef(function GridFilterPanel2(props, ref) {
49897
49897
  columnsSort
49898
49898
  }, filterFormProps), item.id == null ? index + readOnlyFilters.length : item.id))]
49899
49899
  }), !rootProps.disableMultipleColumnsFiltering && !(disableAddFilterButton && disableRemoveAllButton) ? /* @__PURE__ */ jsxRuntimeExports.jsxs(GridPanelFooter, {
49900
- children: [!disableAddFilterButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$2({
49900
+ children: [!disableAddFilterButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$1({
49901
49901
  onClick: addNewFilter,
49902
49902
  startIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.filterPanelAddIcon, {})
49903
49903
  }, (_a = rootProps.slotProps) == null ? void 0 : _a.baseButton, {
49904
49904
  children: apiRef.current.getLocaleText("filterPanelAddFilter")
49905
- })) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", {}), !disableRemoveAllButton && validFilters.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$2({
49905
+ })) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", {}), !disableRemoveAllButton && validFilters.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$1({
49906
49906
  onClick: handleRemoveAll,
49907
49907
  startIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.filterPanelRemoveAllIcon, {})
49908
49908
  }, (_b = rootProps.slotProps) == null ? void 0 : _b.baseButton, {
@@ -50043,7 +50043,7 @@ function GridShadowScrollArea(props) {
50043
50043
  const {
50044
50044
  children
50045
50045
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded$n);
50046
- return /* @__PURE__ */ jsxRuntimeExports.jsx(ShadowScrollArea, _extends$2({}, rest, {
50046
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(ShadowScrollArea, _extends$1({}, rest, {
50047
50047
  children
50048
50048
  }));
50049
50049
  }
@@ -50110,7 +50110,7 @@ function GridColumnsManagement(props) {
50110
50110
  }, [sortedColumns, searchValue, searchPredicate, getTogglableColumns]);
50111
50111
  const toggleAllColumns = React.useCallback((isVisible) => {
50112
50112
  const currentModel = gridColumnVisibilityModelSelector(apiRef);
50113
- const newModel = _extends$2({}, currentModel);
50113
+ const newModel = _extends$1({}, currentModel);
50114
50114
  const togglableColumns = getTogglableColumns ? getTogglableColumns(columns) : null;
50115
50115
  (toggleAllMode === "filteredOnly" ? currentColumns : columns).forEach((col) => {
50116
50116
  if (col.hideable && (togglableColumns == null || togglableColumns.includes(col.field))) {
@@ -50153,7 +50153,7 @@ function GridColumnsManagement(props) {
50153
50153
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnsManagementHeader, {
50154
50154
  className: classes2.header,
50155
50155
  ownerState: rootProps,
50156
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(SearchInput, _extends$2({
50156
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(SearchInput, _extends$1({
50157
50157
  as: rootProps.slots.baseTextField,
50158
50158
  ownerState: rootProps,
50159
50159
  placeholder: apiRef.current.getLocaleText("columnsManagementSearchTitle"),
@@ -50168,7 +50168,7 @@ function GridColumnsManagement(props) {
50168
50168
  startAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.quickFilterIcon, {
50169
50169
  fontSize: "small"
50170
50170
  }),
50171
- endAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$2({
50171
+ endAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$1({
50172
50172
  size: "small",
50173
50173
  "aria-label": apiRef.current.getLocaleText("columnsManagementDeleteIconLabel"),
50174
50174
  style: searchValue ? {
@@ -50199,7 +50199,7 @@ function GridColumnsManagement(props) {
50199
50199
  ownerState: rootProps,
50200
50200
  children: [currentColumns.map((column2) => {
50201
50201
  var _a2;
50202
- return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$2({
50202
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$1({
50203
50203
  className: classes2.row,
50204
50204
  disabled: column2.hideable === false,
50205
50205
  checked: columnVisibilityModel[column2.field] !== false,
@@ -50218,7 +50218,7 @@ function GridColumnsManagement(props) {
50218
50218
  }), !disableShowHideToggle || !disableResetButton ? /* @__PURE__ */ jsxRuntimeExports.jsxs(GridColumnsManagementFooter, {
50219
50219
  ownerState: rootProps,
50220
50220
  className: classes2.footer,
50221
- children: [!disableShowHideToggle ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$2({
50221
+ children: [!disableShowHideToggle ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$1({
50222
50222
  disabled: hideableColumns.length === 0,
50223
50223
  checked: allHideableColumnsVisible,
50224
50224
  indeterminate: !allHideableColumnsVisible && !allHideableColumnsHidden,
@@ -50226,7 +50226,7 @@ function GridColumnsManagement(props) {
50226
50226
  name: apiRef.current.getLocaleText("columnsManagementShowHideAllText"),
50227
50227
  label: apiRef.current.getLocaleText("columnsManagementShowHideAllText"),
50228
50228
  density: "compact"
50229
- }, (_c = rootProps.slotProps) == null ? void 0 : _c.baseCheckbox)) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", {}), !disableResetButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$2({
50229
+ }, (_c = rootProps.slotProps) == null ? void 0 : _c.baseCheckbox)) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", {}), !disableResetButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$1({
50230
50230
  onClick: () => apiRef.current.setColumnVisibilityModel(initialColumnVisibilityModel),
50231
50231
  disabled: isResetDisabled
50232
50232
  }, (_d = rootProps.slotProps) == null ? void 0 : _d.baseButton, {
@@ -50359,11 +50359,11 @@ const GridToolbarExportContainer = forwardRef(function GridToolbarExportContaine
50359
50359
  return null;
50360
50360
  }
50361
50361
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
50362
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$2({
50362
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$1({
50363
50363
  title: apiRef.current.getLocaleText("toolbarExportLabel"),
50364
50364
  enterDelay: 1e3
50365
50365
  }, (_a = rootProps.slotProps) == null ? void 0 : _a.baseTooltip, tooltipProps, {
50366
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$2({
50366
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$1({
50367
50367
  size: "small",
50368
50368
  startIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.exportIcon, {}),
50369
50369
  "aria-expanded": open,
@@ -50418,7 +50418,7 @@ function GridCsvExportMenuItem(props) {
50418
50418
  hideMenu,
50419
50419
  options
50420
50420
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$m);
50421
- return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$2({
50421
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$1({
50422
50422
  onClick: () => {
50423
50423
  apiRef.current.exportDataAsCsv(options);
50424
50424
  hideMenu == null ? void 0 : hideMenu();
@@ -50454,7 +50454,7 @@ function GridPrintExportMenuItem(props) {
50454
50454
  hideMenu,
50455
50455
  options
50456
50456
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded2$5);
50457
- return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$2({
50457
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$1({
50458
50458
  onClick: () => {
50459
50459
  apiRef.current.exportDataAsPrint(options);
50460
50460
  hideMenu == null ? void 0 : hideMenu();
@@ -50498,7 +50498,7 @@ const GridToolbarExport = forwardRef(function GridToolbarExport2(props, ref) {
50498
50498
  if (preProcessedButtons.length === 0) {
50499
50499
  return null;
50500
50500
  }
50501
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarExportContainer, _extends$2({}, other, {
50501
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarExportContainer, _extends$1({}, other, {
50502
50502
  ref,
50503
50503
  children: preProcessedButtons.map((button, index) => /* @__PURE__ */ React.cloneElement(button.component, {
50504
50504
  key: index
@@ -50717,7 +50717,7 @@ function QuickFilter(props) {
50717
50717
  ref.current.style.setProperty("--trigger-width", `${(_a = triggerRef.current) == null ? void 0 : _a.offsetWidth}px`);
50718
50718
  }
50719
50719
  }, []);
50720
- const element = useGridComponentRenderer("div", render, _extends$2({
50720
+ const element = useGridComponentRenderer("div", render, _extends$1({
50721
50721
  className: resolvedClassName
50722
50722
  }, other, {
50723
50723
  ref
@@ -50819,9 +50819,9 @@ const QuickFilterControl = forwardRef(function QuickFilterControl2(props, ref) {
50819
50819
  onValueChange(event);
50820
50820
  onChange == null ? void 0 : onChange(event);
50821
50821
  };
50822
- const element = useGridComponentRenderer(rootProps.slots.baseTextField, render, _extends$2({}, (_a = rootProps.slotProps) == null ? void 0 : _a.baseTextField, {
50823
- slotProps: _extends$2({
50824
- htmlInput: _extends$2({
50822
+ const element = useGridComponentRenderer(rootProps.slots.baseTextField, render, _extends$1({}, (_a = rootProps.slotProps) == null ? void 0 : _a.baseTextField, {
50823
+ slotProps: _extends$1({
50824
+ htmlInput: _extends$1({
50825
50825
  role: "searchbox",
50826
50826
  id: controlId,
50827
50827
  tabIndex: state.expanded ? void 0 : -1
@@ -50891,7 +50891,7 @@ const QuickFilterClear = forwardRef(function QuickFilterClear2(props, ref) {
50891
50891
  clearValue();
50892
50892
  onClick == null ? void 0 : onClick(event);
50893
50893
  };
50894
- const element = useGridComponentRenderer(rootProps.slots.baseIconButton, render, _extends$2({}, (_a = rootProps.slotProps) == null ? void 0 : _a.baseIconButton, {
50894
+ const element = useGridComponentRenderer(rootProps.slots.baseIconButton, render, _extends$1({}, (_a = rootProps.slotProps) == null ? void 0 : _a.baseIconButton, {
50895
50895
  className: resolvedClassName,
50896
50896
  tabIndex: -1
50897
50897
  }, other, {
@@ -50948,7 +50948,7 @@ const QuickFilterTrigger = forwardRef(function QuickFilterTrigger2(props, ref) {
50948
50948
  onExpandedChange(!state.expanded);
50949
50949
  onClick == null ? void 0 : onClick(event);
50950
50950
  };
50951
- const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$2({}, (_a = rootProps.slotProps) == null ? void 0 : _a.baseButton, {
50951
+ const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$1({}, (_a = rootProps.slotProps) == null ? void 0 : _a.baseButton, {
50952
50952
  className: resolvedClassName,
50953
50953
  "aria-controls": controlId,
50954
50954
  "aria-expanded": state.expanded
@@ -51050,16 +51050,16 @@ function GridToolbarQuickFilter(props) {
51050
51050
  formatter: quickFilterFormatter,
51051
51051
  debounceMs,
51052
51052
  render: (quickFilterProps, state) => {
51053
- const currentOwnerState = _extends$2({}, ownerState, {
51053
+ const currentOwnerState = _extends$1({}, ownerState, {
51054
51054
  expanded: state.expanded
51055
51055
  });
51056
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridQuickFilterRoot, _extends$2({}, quickFilterProps, {
51056
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridQuickFilterRoot, _extends$1({}, quickFilterProps, {
51057
51057
  className: clsx(classes2.root, className),
51058
51058
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx(QuickFilterTrigger, {
51059
51059
  render: (triggerProps) => /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, {
51060
51060
  title: apiRef.current.getLocaleText("toolbarQuickFilterLabel"),
51061
51061
  enterDelay: 0,
51062
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(GridQuickFilterTrigger, _extends$2({
51062
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(GridQuickFilterTrigger, _extends$1({
51063
51063
  className: classes2.trigger
51064
51064
  }, triggerProps, {
51065
51065
  ownerState: currentOwnerState,
@@ -51077,7 +51077,7 @@ function GridToolbarQuickFilter(props) {
51077
51077
  ref,
51078
51078
  slotProps: controlSlotProps
51079
51079
  } = _ref, controlProps = _objectWithoutPropertiesLoose(_ref, _excluded2$4);
51080
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridQuickFilterTextField, _extends$2({
51080
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridQuickFilterTextField, _extends$1({
51081
51081
  as: rootProps.slots.baseTextField,
51082
51082
  className: classes2.control,
51083
51083
  ownerState: currentOwnerState,
@@ -51085,8 +51085,8 @@ function GridToolbarQuickFilter(props) {
51085
51085
  "aria-label": apiRef.current.getLocaleText("toolbarQuickFilterLabel"),
51086
51086
  placeholder: apiRef.current.getLocaleText("toolbarQuickFilterPlaceholder"),
51087
51087
  size: "small",
51088
- slotProps: _extends$2({
51089
- input: _extends$2({
51088
+ slotProps: _extends$1({
51089
+ input: _extends$1({
51090
51090
  startAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.quickFilterIcon, {
51091
51091
  fontSize: "small"
51092
51092
  }),
@@ -51178,7 +51178,7 @@ const FilterPanelTrigger = forwardRef(function FilterPanelTrigger2(props, ref) {
51178
51178
  }
51179
51179
  onPointerUp == null ? void 0 : onPointerUp(event);
51180
51180
  };
51181
- const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$2({}, (_a = rootProps.slotProps) == null ? void 0 : _a.baseButton, {
51181
+ const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$1({}, (_a = rootProps.slotProps) == null ? void 0 : _a.baseButton, {
51182
51182
  id: buttonId,
51183
51183
  "aria-haspopup": "true",
51184
51184
  "aria-expanded": open ? "true" : void 0,
@@ -51253,7 +51253,7 @@ const ColumnsPanelTrigger = forwardRef(function ColumnsPanelTrigger2(props, ref)
51253
51253
  }
51254
51254
  onPointerUp == null ? void 0 : onPointerUp(event);
51255
51255
  };
51256
- const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$2({}, (_a = rootProps.slotProps) == null ? void 0 : _a.baseButton, {
51256
+ const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$1({}, (_a = rootProps.slotProps) == null ? void 0 : _a.baseButton, {
51257
51257
  id: buttonId,
51258
51258
  "aria-haspopup": "true",
51259
51259
  "aria-expanded": open ? "true" : void 0,
@@ -51305,7 +51305,7 @@ const ExportCsv = forwardRef(function ExportCsv2(props, ref) {
51305
51305
  apiRef.current.exportDataAsCsv(options);
51306
51306
  onClick == null ? void 0 : onClick(event);
51307
51307
  };
51308
- const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$2({}, (_a = rootProps.slotProps) == null ? void 0 : _a.baseButton, {
51308
+ const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$1({}, (_a = rootProps.slotProps) == null ? void 0 : _a.baseButton, {
51309
51309
  onClick: handleClick
51310
51310
  }, other, {
51311
51311
  ref
@@ -51365,7 +51365,7 @@ const ExportPrint = forwardRef(function ExportPrint2(props, ref) {
51365
51365
  apiRef.current.exportDataAsPrint(options);
51366
51366
  onClick == null ? void 0 : onClick(event);
51367
51367
  };
51368
- const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$2({}, (_a = rootProps.slotProps) == null ? void 0 : _a.baseButton, {
51368
+ const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$1({}, (_a = rootProps.slotProps) == null ? void 0 : _a.baseButton, {
51369
51369
  onClick: handleClick
51370
51370
  }, other, {
51371
51371
  ref
@@ -51445,7 +51445,7 @@ function GridToolbarDivider(props) {
51445
51445
  const other = _objectWithoutPropertiesLoose(props, _excluded$c);
51446
51446
  const rootProps = useGridRootProps();
51447
51447
  const classes2 = useUtilityClasses$b(rootProps);
51448
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, _extends$2({
51448
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, _extends$1({
51449
51449
  as: rootProps.slots.baseDivider,
51450
51450
  orientation: "vertical",
51451
51451
  className: classes2.divider
@@ -51463,7 +51463,7 @@ function GridToolbarLabel(props) {
51463
51463
  const other = _objectWithoutPropertiesLoose(props, _excluded2$3);
51464
51464
  const rootProps = useGridRootProps();
51465
51465
  const classes2 = useUtilityClasses$b(rootProps);
51466
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Label, _extends$2({
51466
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Label, _extends$1({
51467
51467
  className: classes2.label
51468
51468
  }, other));
51469
51469
  }
@@ -51498,7 +51498,7 @@ function GridToolbar(props) {
51498
51498
  }), !rootProps.disableColumnFilter && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, {
51499
51499
  title: apiRef.current.getLocaleText("toolbarFilters"),
51500
51500
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(FilterPanelTrigger, {
51501
- render: (triggerProps, state) => /* @__PURE__ */ jsxRuntimeExports.jsx(ToolbarButton, _extends$2({}, triggerProps, {
51501
+ render: (triggerProps, state) => /* @__PURE__ */ jsxRuntimeExports.jsx(ToolbarButton, _extends$1({}, triggerProps, {
51502
51502
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseBadge, {
51503
51503
  badgeContent: state.filterCount,
51504
51504
  color: "primary",
@@ -51528,18 +51528,18 @@ function GridToolbar(props) {
51528
51528
  open: exportMenuOpen,
51529
51529
  onClose: closeExportMenu,
51530
51530
  position: "bottom-end",
51531
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs(rootProps.slots.baseMenuList, _extends$2({
51531
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs(rootProps.slots.baseMenuList, _extends$1({
51532
51532
  id: exportMenuId,
51533
51533
  "aria-labelledby": exportMenuTriggerId,
51534
51534
  autoFocusItem: true
51535
51535
  }, (_a = rootProps.slotProps) == null ? void 0 : _a.baseMenuList, {
51536
51536
  children: [!(printOptions == null ? void 0 : printOptions.disableToolbarButton) && /* @__PURE__ */ jsxRuntimeExports.jsx(ExportPrint, {
51537
- render: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$2({}, (_b = rootProps.slotProps) == null ? void 0 : _b.baseMenuItem)),
51537
+ render: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$1({}, (_b = rootProps.slotProps) == null ? void 0 : _b.baseMenuItem)),
51538
51538
  options: printOptions,
51539
51539
  onClick: closeExportMenu,
51540
51540
  children: apiRef.current.getLocaleText("toolbarExportPrint")
51541
51541
  }), !(csvOptions == null ? void 0 : csvOptions.disableToolbarButton) && /* @__PURE__ */ jsxRuntimeExports.jsx(ExportCsv, {
51542
- render: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$2({}, (_c = rootProps.slotProps) == null ? void 0 : _c.baseMenuItem)),
51542
+ render: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$1({}, (_c = rootProps.slotProps) == null ? void 0 : _c.baseMenuItem)),
51543
51543
  options: csvOptions,
51544
51544
  onClick: closeExportMenu,
51545
51545
  children: apiRef.current.getLocaleText("toolbarExportCSV")
@@ -51547,7 +51547,7 @@ function GridToolbar(props) {
51547
51547
  }))
51548
51548
  })]
51549
51549
  }), showQuickFilter && /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
51550
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarDivider, {}), /* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarQuickFilter, _extends$2({}, quickFilterProps))]
51550
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarDivider, {}), /* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarQuickFilter, _extends$1({}, quickFilterProps))]
51551
51551
  })]
51552
51552
  });
51553
51553
  }
@@ -51617,7 +51617,7 @@ const GridSelectedRowCount = forwardRef(function GridSelectedRowCount2(props, re
51617
51617
  const ownerState = useGridRootProps();
51618
51618
  const classes2 = useUtilityClasses$a(ownerState);
51619
51619
  const rowSelectedText = apiRef.current.getLocaleText("footerRowSelected")(selectedRowCount);
51620
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridSelectedRowCountRoot, _extends$2({
51620
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridSelectedRowCountRoot, _extends$1({
51621
51621
  className: clsx(classes2.root, className),
51622
51622
  ownerState
51623
51623
  }, other, {
@@ -51643,12 +51643,12 @@ const GridFooter = forwardRef(function GridFooter2(props, ref) {
51643
51643
  const selectedRowCountElement = !rootProps.hideFooterSelectedRowCount && selectedRowCount > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(GridSelectedRowCount, {
51644
51644
  selectedRowCount
51645
51645
  }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", {});
51646
- const rowCountElement = !rootProps.hideFooterRowCount && !rootProps.pagination ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.footerRowCount, _extends$2({}, (_a = rootProps.slotProps) == null ? void 0 : _a.footerRowCount, {
51646
+ const rowCountElement = !rootProps.hideFooterRowCount && !rootProps.pagination ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.footerRowCount, _extends$1({}, (_a = rootProps.slotProps) == null ? void 0 : _a.footerRowCount, {
51647
51647
  rowCount: totalTopLevelRowCount,
51648
51648
  visibleRowCount: visibleTopLevelRowCount
51649
51649
  })) : null;
51650
51650
  const paginationElement = rootProps.pagination && !rootProps.hideFooterPagination && rootProps.slots.pagination && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.pagination, {});
51651
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridFooterContainer, _extends$2({}, props, {
51651
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridFooterContainer, _extends$1({}, props, {
51652
51652
  ref,
51653
51653
  children: [selectedRowCountElement, rowCountElement, paginationElement]
51654
51654
  }));
@@ -51808,7 +51808,7 @@ const GridSkeletonLoadingOverlayInner = forwardRef(function GridSkeletonLoadingO
51808
51808
  "data-colindex": colIndex,
51809
51809
  empty: visibleColumns && !visibleColumns.has(column2.field),
51810
51810
  className: clsx(isPinnedLeft && gridClasses["cell--pinnedLeft"], isPinnedRight && gridClasses["cell--pinnedRight"], showRightBorder && gridClasses["cell--withRightBorder"], showLeftBorder && gridClasses["cell--withLeftBorder"]),
51811
- style: _extends$2({
51811
+ style: _extends$1({
51812
51812
  "--width": `${column2.computedWidth}px`
51813
51813
  }, pinnedStyle)
51814
51814
  }, `skeleton-column-${i}-${column2.field}`));
@@ -51869,7 +51869,7 @@ const GridSkeletonLoadingOverlayInner = forwardRef(function GridSkeletonLoadingO
51869
51869
  }
51870
51870
  };
51871
51871
  useGridEvent(apiRef, "columnResize", handleColumnResize);
51872
- return /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonOverlay, _extends$2({
51872
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonOverlay, _extends$1({
51873
51873
  className: classes2.root
51874
51874
  }, rest, {
51875
51875
  ref: handleRef,
@@ -51881,7 +51881,7 @@ const GridSkeletonLoadingOverlay = forwardRef(function GridSkeletonLoadingOverla
51881
51881
  const dimensions = useGridSelector(apiRef, gridDimensionsSelector);
51882
51882
  const viewportHeight = (dimensions == null ? void 0 : dimensions.viewportInnerSize.height) ?? 0;
51883
51883
  const skeletonRowsCount = Math.ceil(viewportHeight / dimensions.rowHeight);
51884
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridSkeletonLoadingOverlayInner, _extends$2({}, props, {
51884
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridSkeletonLoadingOverlayInner, _extends$1({}, props, {
51885
51885
  skeletonRowsCount,
51886
51886
  ref: forwardedRef
51887
51887
  }));
@@ -51916,8 +51916,8 @@ const GridLoadingOverlay = forwardRef(function GridLoadingOverlay2(props, ref) {
51916
51916
  const rowsCount = useGridSelector(apiRef, gridRowCountSelector);
51917
51917
  const activeVariant = LOADING_VARIANTS[rowsCount === 0 ? noRowsVariant : variant];
51918
51918
  const Component = activeVariant.component(rootProps);
51919
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$2({
51920
- style: _extends$2({}, activeVariant.style, style2)
51919
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$1({
51920
+ style: _extends$1({}, activeVariant.style, style2)
51921
51921
  }, other, {
51922
51922
  ref,
51923
51923
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(Component, {})
@@ -51943,7 +51943,7 @@ GridLoadingOverlay.propTypes = {
51943
51943
  const GridNoRowsOverlay = forwardRef(function GridNoRowsOverlay2(props, ref) {
51944
51944
  const apiRef = useGridApiContext();
51945
51945
  const noRowsLabel = apiRef.current.getLocaleText("noRowsLabel");
51946
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$2({}, props, {
51946
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$1({}, props, {
51947
51947
  ref,
51948
51948
  children: noRowsLabel
51949
51949
  }));
@@ -51964,9 +51964,9 @@ const GridNoColumnsOverlay = forwardRef(function GridNoColumnsOverlay2(props, re
51964
51964
  apiRef.current.showPreferences(GridPreferencePanelsValue.columns);
51965
51965
  };
51966
51966
  const showManageColumnsButton = !rootProps.disableColumnSelector && columns.length > 0;
51967
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridOverlay, _extends$2({}, props, {
51967
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridOverlay, _extends$1({}, props, {
51968
51968
  ref,
51969
- children: [apiRef.current.getLocaleText("noColumnsOverlayLabel"), showManageColumnsButton && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$2({
51969
+ children: [apiRef.current.getLocaleText("noColumnsOverlayLabel"), showManageColumnsButton && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$1({
51970
51970
  size: "small"
51971
51971
  }, (_a = rootProps.slotProps) == null ? void 0 : _a.baseButton, {
51972
51972
  onClick: handleOpenManageColumns,
@@ -52083,7 +52083,7 @@ const GridRowCount = forwardRef(function GridRowCount2(props, ref) {
52083
52083
  return null;
52084
52084
  }
52085
52085
  const text = visibleRowCount < rowCount ? apiRef.current.getLocaleText("footerTotalVisibleRows")(visibleRowCount, rowCount) : rowCount.toLocaleString();
52086
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridRowCountRoot, _extends$2({
52086
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridRowCountRoot, _extends$1({
52087
52087
  className: clsx(classes2.root, className),
52088
52088
  ownerState
52089
52089
  }, other, {
@@ -52217,7 +52217,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
52217
52217
  slotProps,
52218
52218
  disableColumnReorder
52219
52219
  } = rootProps;
52220
- const heightEntry = useGridSelector(apiRef, () => _extends$2({}, apiRef.current.getRowHeightEntry(rowId)), void 0, objectShallowCompare);
52220
+ const heightEntry = useGridSelector(apiRef, () => _extends$1({}, apiRef.current.getRowHeightEntry(rowId)), void 0, objectShallowCompare);
52221
52221
  const style2 = React.useMemo(() => {
52222
52222
  if (isNotVisible) {
52223
52223
  return {
@@ -52226,7 +52226,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
52226
52226
  height: 0
52227
52227
  };
52228
52228
  }
52229
- const rowStyle = _extends$2({}, styleProp, {
52229
+ const rowStyle = _extends$1({}, styleProp, {
52230
52230
  maxHeight: rowHeight === "auto" ? "none" : rowHeight,
52231
52231
  // max-height doesn't support "auto"
52232
52232
  minHeight: rowHeight,
@@ -52251,7 +52251,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
52251
52251
  const ariaAttributes = getRowAriaAttributes(rowNode, index);
52252
52252
  if (typeof rootProps.getRowClassName === "function") {
52253
52253
  const indexRelativeToCurrentPage = index - (((_a = currentPage.range) == null ? void 0 : _a.firstRowIndex) || 0);
52254
- const rowParams = _extends$2({}, apiRef.current.getRowParams(rowId), {
52254
+ const rowParams = _extends$1({}, apiRef.current.getRowParams(rowId), {
52255
52255
  isFirstVisible: indexRelativeToCurrentPage === 0,
52256
52256
  isLastVisible: indexRelativeToCurrentPage === currentPage.rows.length - 1,
52257
52257
  indexRelativeToCurrentPage
@@ -52282,7 +52282,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
52282
52282
  const cellIsNotVisible = pinnedPosition === PinnedColumnPosition.VIRTUAL;
52283
52283
  const showLeftBorder = shouldCellShowLeftBorder(pinnedPosition, indexInSection);
52284
52284
  const showRightBorder = shouldCellShowRightBorder(pinnedPosition, indexInSection, sectionLength, rootProps.showCellVerticalBorder, gridHasFiller);
52285
- return /* @__PURE__ */ jsxRuntimeExports.jsx(slots.cell, _extends$2({
52285
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(slots.cell, _extends$1({
52286
52286
  column: column2,
52287
52287
  width: width2,
52288
52288
  rowId,
@@ -52331,7 +52331,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
52331
52331
  onMouseOut: publish("rowMouseOut", onMouseOut),
52332
52332
  onMouseOver: publish("rowMouseOver", onMouseOver)
52333
52333
  } : null;
52334
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$2({
52334
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$1({
52335
52335
  "data-id": rowId,
52336
52336
  "data-rowindex": index,
52337
52337
  role: "row",
@@ -52476,7 +52476,7 @@ const useGridIsRtl = (apiRef) => {
52476
52476
  if (isFirstEffect.current) {
52477
52477
  isFirstEffect.current = false;
52478
52478
  } else {
52479
- apiRef.current.setState((state) => _extends$2({}, state, {
52479
+ apiRef.current.setState((state) => _extends$1({}, state, {
52480
52480
  isRtl
52481
52481
  }));
52482
52482
  }
@@ -53031,7 +53031,7 @@ const useGridStateInitialization = (apiRef) => {
53031
53031
  }, [apiRef]);
53032
53032
  const updateControlState = React.useCallback((key, state, reason) => {
53033
53033
  return apiRef.current.setState((previousState) => {
53034
- return _extends$2({}, previousState, {
53034
+ return _extends$1({}, previousState, {
53035
53035
  [key]: state(previousState[key])
53036
53036
  });
53037
53037
  }, reason);
@@ -53047,7 +53047,7 @@ const useGridStateInitialization = (apiRef) => {
53047
53047
  useGridApiMethod(apiRef, privateStateApi, "private");
53048
53048
  };
53049
53049
  const propsStateInitializer = (state, props) => {
53050
- return _extends$2({}, state, {
53050
+ return _extends$1({}, state, {
53051
53051
  props: {
53052
53052
  getRowId: props.getRowId
53053
53053
  }
@@ -53055,7 +53055,7 @@ const propsStateInitializer = (state, props) => {
53055
53055
  };
53056
53056
  const useGridProps = (apiRef, props) => {
53057
53057
  React.useEffect(() => {
53058
- apiRef.current.setState((state) => _extends$2({}, state, {
53058
+ apiRef.current.setState((state) => _extends$1({}, state, {
53059
53059
  props: {
53060
53060
  getRowId: props.getRowId
53061
53061
  }
@@ -53307,7 +53307,7 @@ const useGridClipboard = (apiRef, props) => {
53307
53307
  useGridNativeEventListener(apiRef, () => apiRef.current.rootElementRef.current, "keydown", handleCopy);
53308
53308
  useGridEventPriority(apiRef, "clipboardCopy", props.onClipboardCopy);
53309
53309
  };
53310
- const columnMenuStateInitializer = (state) => _extends$2({}, state, {
53310
+ const columnMenuStateInitializer = (state) => _extends$1({}, state, {
53311
53311
  columnMenu: {
53312
53312
  open: false
53313
53313
  }
@@ -53327,7 +53327,7 @@ const useGridColumnMenu = (apiRef) => {
53327
53327
  return state;
53328
53328
  }
53329
53329
  logger.debug("Opening Column Menu");
53330
- return _extends$2({}, state, {
53330
+ return _extends$1({}, state, {
53331
53331
  columnMenu: {
53332
53332
  open: true,
53333
53333
  field
@@ -53367,7 +53367,7 @@ const useGridColumnMenu = (apiRef) => {
53367
53367
  if (shouldUpdate) {
53368
53368
  apiRef.current.setState((state) => {
53369
53369
  logger.debug("Hiding Column Menu");
53370
- return _extends$2({}, state, {
53370
+ return _extends$1({}, state, {
53371
53371
  columnMenu: newState
53372
53372
  });
53373
53373
  });
@@ -53401,7 +53401,7 @@ const columnsStateInitializer = (state, props, apiRef) => {
53401
53401
  columnVisibilityModel: props.columnVisibilityModel ?? ((_c = (_b = props.initialState) == null ? void 0 : _b.columns) == null ? void 0 : _c.columnVisibilityModel) ?? {},
53402
53402
  keepOnlyColumnsToUpsert: true
53403
53403
  });
53404
- return _extends$2({}, state, {
53404
+ return _extends$1({}, state, {
53405
53405
  columns: columnsState,
53406
53406
  // In pro/premium, this part of the state is defined. We give it an empty but defined value
53407
53407
  // for the community version.
@@ -53439,7 +53439,7 @@ function useGridColumns(apiRef, props) {
53439
53439
  var _a2, _b2;
53440
53440
  const currentModel = gridColumnVisibilityModelSelector(apiRef);
53441
53441
  if (currentModel !== model) {
53442
- apiRef.current.setState((state) => _extends$2({}, state, {
53442
+ apiRef.current.setState((state) => _extends$1({}, state, {
53443
53443
  columns: createColumnsState({
53444
53444
  apiRef,
53445
53445
  columnsToUpsert: [],
@@ -53465,7 +53465,7 @@ function useGridColumns(apiRef, props) {
53465
53465
  const columnVisibilityModel = gridColumnVisibilityModelSelector(apiRef);
53466
53466
  const isCurrentlyVisible = columnVisibilityModel[field] ?? true;
53467
53467
  if (isVisible !== isCurrentlyVisible) {
53468
- const newModel = _extends$2({}, columnVisibilityModel, {
53468
+ const newModel = _extends$1({}, columnVisibilityModel, {
53469
53469
  [field]: isVisible
53470
53470
  });
53471
53471
  apiRef.current.setColumnVisibilityModel(newModel);
@@ -53485,7 +53485,7 @@ function useGridColumns(apiRef, props) {
53485
53485
  const updatedColumns = [...allColumns];
53486
53486
  const fieldRemoved = updatedColumns.splice(oldIndexPosition, 1)[0];
53487
53487
  updatedColumns.splice(targetIndexPosition, 0, fieldRemoved);
53488
- setGridColumnsState(_extends$2({}, gridColumnsStateSelector(apiRef), {
53488
+ setGridColumnsState(_extends$1({}, gridColumnsStateSelector(apiRef), {
53489
53489
  orderedFields: updatedColumns
53490
53490
  }));
53491
53491
  const params = {
@@ -53499,12 +53499,12 @@ function useGridColumns(apiRef, props) {
53499
53499
  logger.debug(`Updating column ${field} width to ${width2}`);
53500
53500
  const columnsState = gridColumnsStateSelector(apiRef);
53501
53501
  const column2 = columnsState.lookup[field];
53502
- const newColumn = _extends$2({}, column2, {
53502
+ const newColumn = _extends$1({}, column2, {
53503
53503
  width: width2,
53504
53504
  hasBeenResized: true
53505
53505
  });
53506
- setGridColumnsState(hydrateColumnsWidth(_extends$2({}, columnsState, {
53507
- lookup: _extends$2({}, columnsState.lookup, {
53506
+ setGridColumnsState(hydrateColumnsWidth(_extends$1({}, columnsState, {
53507
+ lookup: _extends$1({}, columnsState.lookup, {
53508
53508
  [field]: newColumn
53509
53509
  })
53510
53510
  }), apiRef.current.getRootDimensions()));
@@ -53565,7 +53565,7 @@ function useGridColumns(apiRef, props) {
53565
53565
  if (Object.keys(dimensions).length > 0) {
53566
53566
  columnsStateToExport.dimensions = dimensions;
53567
53567
  }
53568
- return _extends$2({}, prevState, {
53568
+ return _extends$1({}, prevState, {
53569
53569
  columns: columnsStateToExport
53570
53570
  });
53571
53571
  }, [apiRef, props.columnVisibilityModel, (_a = props.initialState) == null ? void 0 : _a.columns]);
@@ -53593,7 +53593,7 @@ function useGridColumns(apiRef, props) {
53593
53593
  var _a2;
53594
53594
  if (value === GridPreferencePanelsValue.columns) {
53595
53595
  const ColumnsPanel = props.slots.columnsPanel;
53596
- return /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnsPanel, _extends$2({}, (_a2 = props.slotProps) == null ? void 0 : _a2.columnsPanel));
53596
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnsPanel, _extends$1({}, (_a2 = props.slotProps) == null ? void 0 : _a2.columnsPanel));
53597
53597
  }
53598
53598
  return initialValue;
53599
53599
  }, [props.slots.columnsPanel, (_b = props.slotProps) == null ? void 0 : _b.columnsPanel]);
@@ -53658,13 +53658,13 @@ function useGridColumns(apiRef, props) {
53658
53658
  }, [apiRef, logger, props.columnVisibilityModel]);
53659
53659
  }
53660
53660
  function mergeColumnsState(columnsState) {
53661
- return (state) => _extends$2({}, state, {
53661
+ return (state) => _extends$1({}, state, {
53662
53662
  columns: columnsState
53663
53663
  });
53664
53664
  }
53665
53665
  const densityStateInitializer = (state, props) => {
53666
53666
  var _a;
53667
- return _extends$2({}, state, {
53667
+ return _extends$1({}, state, {
53668
53668
  density: ((_a = props.initialState) == null ? void 0 : _a.density) ?? props.density ?? "standard"
53669
53669
  });
53670
53670
  };
@@ -53684,7 +53684,7 @@ const useGridDensity = (apiRef, props) => {
53684
53684
  return;
53685
53685
  }
53686
53686
  logger.debug(`Set grid density to ${newDensity}`);
53687
- apiRef.current.setState((state) => _extends$2({}, state, {
53687
+ apiRef.current.setState((state) => _extends$1({}, state, {
53688
53688
  density: newDensity
53689
53689
  }));
53690
53690
  });
@@ -53704,14 +53704,14 @@ const useGridDensity = (apiRef, props) => {
53704
53704
  if (!shouldExportRowCount) {
53705
53705
  return prevState;
53706
53706
  }
53707
- return _extends$2({}, prevState, {
53707
+ return _extends$1({}, prevState, {
53708
53708
  density: exportedDensity
53709
53709
  });
53710
53710
  }, [apiRef, props.density, (_a = props.initialState) == null ? void 0 : _a.density]);
53711
53711
  const stateRestorePreProcessing = React.useCallback((params, context) => {
53712
53712
  var _a2;
53713
53713
  const restoredDensity = ((_a2 = context.stateToRestore) == null ? void 0 : _a2.density) ? context.stateToRestore.density : gridDensitySelector(apiRef);
53714
- apiRef.current.setState((state) => _extends$2({}, state, {
53714
+ apiRef.current.setState((state) => _extends$1({}, state, {
53715
53715
  density: restoredDensity
53716
53716
  }));
53717
53717
  return params;
@@ -53841,7 +53841,7 @@ const getDerivedPaginationModel = (paginationState, signature, paginationModelPr
53841
53841
  }
53842
53842
  const validPage = pageSize2 === -1 ? 0 : getValidPage(paginationModel.page, pageCount);
53843
53843
  if (validPage !== paginationModel.page) {
53844
- paginationModel = _extends$2({}, paginationModel, {
53844
+ paginationModel = _extends$1({}, paginationModel, {
53845
53845
  page: validPage
53846
53846
  });
53847
53847
  }
@@ -53889,8 +53889,8 @@ const useGridPaginationModel = (apiRef, props) => {
53889
53889
  return;
53890
53890
  }
53891
53891
  logger.debug("Setting 'paginationModel' to", paginationModel);
53892
- apiRef.current.setState((state) => _extends$2({}, state, {
53893
- pagination: _extends$2({}, state.pagination, {
53892
+ apiRef.current.setState((state) => _extends$1({}, state, {
53893
+ pagination: _extends$1({}, state.pagination, {
53894
53894
  paginationModel: getDerivedPaginationModel(state.pagination, props.signature, paginationModel)
53895
53895
  })
53896
53896
  }), "setPaginationModel");
@@ -53914,17 +53914,17 @@ const useGridPaginationModel = (apiRef, props) => {
53914
53914
  if (!shouldExportPaginationModel) {
53915
53915
  return prevState;
53916
53916
  }
53917
- return _extends$2({}, prevState, {
53918
- pagination: _extends$2({}, prevState.pagination, {
53917
+ return _extends$1({}, prevState, {
53918
+ pagination: _extends$1({}, prevState.pagination, {
53919
53919
  paginationModel
53920
53920
  })
53921
53921
  });
53922
53922
  }, [apiRef, props.paginationModel, (_b = (_a = props.initialState) == null ? void 0 : _a.pagination) == null ? void 0 : _b.paginationModel, props.autoPageSize]);
53923
53923
  const stateRestorePreProcessing = React.useCallback((params, context) => {
53924
53924
  var _a2, _b2;
53925
- const paginationModel = ((_a2 = context.stateToRestore.pagination) == null ? void 0 : _a2.paginationModel) ? _extends$2({}, getDefaultGridPaginationModel(props.autoPageSize), (_b2 = context.stateToRestore.pagination) == null ? void 0 : _b2.paginationModel) : gridPaginationModelSelector(apiRef);
53926
- apiRef.current.setState((state) => _extends$2({}, state, {
53927
- pagination: _extends$2({}, state.pagination, {
53925
+ const paginationModel = ((_a2 = context.stateToRestore.pagination) == null ? void 0 : _a2.paginationModel) ? _extends$1({}, getDefaultGridPaginationModel(props.autoPageSize), (_b2 = context.stateToRestore.pagination) == null ? void 0 : _b2.paginationModel) : gridPaginationModelSelector(apiRef);
53926
+ apiRef.current.setState((state) => _extends$1({}, state, {
53927
+ pagination: _extends$1({}, state.pagination, {
53928
53928
  paginationModel: getDerivedPaginationModel(state.pagination, props.signature, paginationModel)
53929
53929
  })
53930
53930
  }), "stateRestorePreProcessing");
@@ -53975,7 +53975,7 @@ const useGridPaginationModel = (apiRef, props) => {
53975
53975
  }
53976
53976
  }, [apiRef]);
53977
53977
  const handleFilterModelChange = React.useCallback((filterModel) => {
53978
- const currentActiveFilters = _extends$2({}, filterModel, {
53978
+ const currentActiveFilters = _extends$1({}, filterModel, {
53979
53979
  // replace items with the active items
53980
53980
  items: gridFilterActiveItemsSelector(apiRef)
53981
53981
  });
@@ -53999,8 +53999,8 @@ const useGridPaginationModel = (apiRef, props) => {
53999
53999
  if (!props.pagination) {
54000
54000
  return;
54001
54001
  }
54002
- apiRef.current.setState((state) => _extends$2({}, state, {
54003
- pagination: _extends$2({}, state.pagination, {
54002
+ apiRef.current.setState((state) => _extends$1({}, state, {
54003
+ pagination: _extends$1({}, state.pagination, {
54004
54004
  paginationModel: getDerivedPaginationModel(state.pagination, props.signature, props.paginationModel)
54005
54005
  })
54006
54006
  }));
@@ -54011,8 +54011,8 @@ const useGridPaginationModel = (apiRef, props) => {
54011
54011
  if (state.pagination.paginationMode === props.paginationMode || state.pagination.enabled === isEnabled) {
54012
54012
  return state;
54013
54013
  }
54014
- return _extends$2({}, state, {
54015
- pagination: _extends$2({}, state.pagination, {
54014
+ return _extends$1({}, state, {
54015
+ pagination: _extends$1({}, state.pagination, {
54016
54016
  paginationMode: props.paginationMode,
54017
54017
  enabled: props.pagination === true
54018
54018
  })
@@ -54081,7 +54081,7 @@ const useGridPrintExport = (apiRef, props) => {
54081
54081
  }, [apiRef]);
54082
54082
  const handlePrintWindowLoad = React.useCallback((printWindow, options) => {
54083
54083
  var _a, _b, _c;
54084
- const normalizeOptions = _extends$2({
54084
+ const normalizeOptions = _extends$1({
54085
54085
  copyStyles: true,
54086
54086
  hideToolbar: false,
54087
54087
  hideFooter: false,
@@ -54178,7 +54178,7 @@ const useGridPrintExport = (apiRef, props) => {
54178
54178
  if (!((_b = (_a = previousGridState.current) == null ? void 0 : _a.columns) == null ? void 0 : _b.columnVisibilityModel)) {
54179
54179
  apiRef.current.setColumnVisibilityModel(previousColumnVisibility.current);
54180
54180
  }
54181
- apiRef.current.setState((state) => _extends$2({}, state, {
54181
+ apiRef.current.setState((state) => _extends$1({}, state, {
54182
54182
  virtualization: previousVirtualizationState.current
54183
54183
  }));
54184
54184
  apiRef.current.setRows(previousRows.current);
@@ -54200,8 +54200,8 @@ const useGridPrintExport = (apiRef, props) => {
54200
54200
  page: 0,
54201
54201
  pageSize: visibleRowCount
54202
54202
  };
54203
- apiRef.current.setState((state) => _extends$2({}, state, {
54204
- pagination: _extends$2({}, state.pagination, {
54203
+ apiRef.current.setState((state) => _extends$1({}, state, {
54204
+ pagination: _extends$1({}, state.pagination, {
54205
54205
  paginationModel: getDerivedPaginationModel(
54206
54206
  state.pagination,
54207
54207
  // Using signature `DataGridPro` to allow more than 100 rows in the print export
@@ -54212,8 +54212,8 @@ const useGridPrintExport = (apiRef, props) => {
54212
54212
  }));
54213
54213
  }
54214
54214
  previousVirtualizationState.current = apiRef.current.state.virtualization;
54215
- apiRef.current.setState((state) => _extends$2({}, state, {
54216
- virtualization: _extends$2({}, state.virtualization, {
54215
+ apiRef.current.setState((state) => _extends$1({}, state, {
54216
+ virtualization: _extends$1({}, state.virtualization, {
54217
54217
  enabled: false,
54218
54218
  enabledForColumns: false
54219
54219
  })
@@ -54257,8 +54257,8 @@ const useGridPrintExport = (apiRef, props) => {
54257
54257
  const filterStateInitializer = (state, props, apiRef) => {
54258
54258
  var _a, _b;
54259
54259
  const filterModel = props.filterModel ?? ((_b = (_a = props.initialState) == null ? void 0 : _a.filter) == null ? void 0 : _b.filterModel) ?? getDefaultGridFilterModel();
54260
- return _extends$2({}, state, {
54261
- filter: _extends$2({
54260
+ return _extends$1({}, state, {
54261
+ filter: _extends$1({
54262
54262
  filterModel: sanitizeFilterModel(filterModel, props.disableMultipleColumnsFiltering, apiRef)
54263
54263
  }, defaultGridFilterLookup),
54264
54264
  visibleRowsLookup: {}
@@ -54290,11 +54290,11 @@ const useGridFilter = (apiRef, props) => {
54290
54290
  apiRef.current.setState((state) => {
54291
54291
  const filterModel = gridFilterModelSelector(apiRef);
54292
54292
  const filterState = apiRef.current.getFilterState(filterModel);
54293
- const newState = _extends$2({}, state, {
54294
- filter: _extends$2({}, state.filter, filterState)
54293
+ const newState = _extends$1({}, state, {
54294
+ filter: _extends$1({}, state.filter, filterState)
54295
54295
  });
54296
54296
  const visibleRowsLookupState = getVisibleRowsLookupState(apiRef, newState);
54297
- return _extends$2({}, newState, {
54297
+ return _extends$1({}, newState, {
54298
54298
  visibleRowsLookup: visibleRowsLookupState
54299
54299
  });
54300
54300
  });
@@ -54315,7 +54315,7 @@ const useGridFilter = (apiRef, props) => {
54315
54315
  } else {
54316
54316
  items[itemIndex] = item;
54317
54317
  }
54318
- apiRef.current.setFilterModel(_extends$2({}, filterModel, {
54318
+ apiRef.current.setFilterModel(_extends$1({}, filterModel, {
54319
54319
  items
54320
54320
  }), "upsertFilterItem");
54321
54321
  }, [apiRef]);
@@ -54330,7 +54330,7 @@ const useGridFilter = (apiRef, props) => {
54330
54330
  existingItems[itemIndex] = item;
54331
54331
  }
54332
54332
  });
54333
- apiRef.current.setFilterModel(_extends$2({}, filterModel, {
54333
+ apiRef.current.setFilterModel(_extends$1({}, filterModel, {
54334
54334
  items: existingItems
54335
54335
  }), "upsertFilterItems");
54336
54336
  }, [apiRef]);
@@ -54340,7 +54340,7 @@ const useGridFilter = (apiRef, props) => {
54340
54340
  if (items.length === filterModel.items.length) {
54341
54341
  return;
54342
54342
  }
54343
- apiRef.current.setFilterModel(_extends$2({}, filterModel, {
54343
+ apiRef.current.setFilterModel(_extends$1({}, filterModel, {
54344
54344
  items
54345
54345
  }), "deleteFilterItem");
54346
54346
  }, [apiRef]);
@@ -54380,7 +54380,7 @@ const useGridFilter = (apiRef, props) => {
54380
54380
  operator: targetColumn.filterOperators[0].value
54381
54381
  }, apiRef)];
54382
54382
  }
54383
- apiRef.current.setFilterModel(_extends$2({}, filterModel, {
54383
+ apiRef.current.setFilterModel(_extends$1({}, filterModel, {
54384
54384
  items: newFilterItems
54385
54385
  }));
54386
54386
  }
@@ -54395,7 +54395,7 @@ const useGridFilter = (apiRef, props) => {
54395
54395
  if (filterModel.logicOperator === logicOperator) {
54396
54396
  return;
54397
54397
  }
54398
- apiRef.current.setFilterModel(_extends$2({}, filterModel, {
54398
+ apiRef.current.setFilterModel(_extends$1({}, filterModel, {
54399
54399
  logicOperator
54400
54400
  }), "changeLogicOperator");
54401
54401
  }, [apiRef]);
@@ -54404,7 +54404,7 @@ const useGridFilter = (apiRef, props) => {
54404
54404
  if (isDeepEqual(filterModel.quickFilterValues, values2)) {
54405
54405
  return;
54406
54406
  }
54407
- apiRef.current.setFilterModel(_extends$2({}, filterModel, {
54407
+ apiRef.current.setFilterModel(_extends$1({}, filterModel, {
54408
54408
  quickFilterValues: [...values2]
54409
54409
  }));
54410
54410
  }, [apiRef]);
@@ -54423,7 +54423,7 @@ const useGridFilter = (apiRef, props) => {
54423
54423
  isRowMatchingFilters,
54424
54424
  filterModel: filterModel ?? getDefaultGridFilterModel()
54425
54425
  });
54426
- return _extends$2({}, filterResult, {
54426
+ return _extends$1({}, filterResult, {
54427
54427
  filterModel
54428
54428
  });
54429
54429
  }, [props.disableMultipleColumnsFiltering, props.filterMode, props.disableEval, apiRef]);
@@ -54457,7 +54457,7 @@ const useGridFilter = (apiRef, props) => {
54457
54457
  if (!shouldExportFilterModel) {
54458
54458
  return prevState;
54459
54459
  }
54460
- return _extends$2({}, prevState, {
54460
+ return _extends$1({}, prevState, {
54461
54461
  filter: {
54462
54462
  filterModel: filterModelToExport
54463
54463
  }
@@ -54470,7 +54470,7 @@ const useGridFilter = (apiRef, props) => {
54470
54470
  return params;
54471
54471
  }
54472
54472
  apiRef.current.updateControlState("filter", mergeStateWithFilterModel(filterModel, props.disableMultipleColumnsFiltering, apiRef), "restoreState");
54473
- return _extends$2({}, params, {
54473
+ return _extends$1({}, params, {
54474
54474
  callbacks: [...params.callbacks, apiRef.current.unstable_applyFilters]
54475
54475
  });
54476
54476
  }, [apiRef, props.disableMultipleColumnsFiltering]);
@@ -54478,7 +54478,7 @@ const useGridFilter = (apiRef, props) => {
54478
54478
  var _a2;
54479
54479
  if (value === GridPreferencePanelsValue.filters) {
54480
54480
  const FilterPanel = props.slots.filterPanel;
54481
- return /* @__PURE__ */ jsxRuntimeExports.jsx(FilterPanel, _extends$2({}, (_a2 = props.slotProps) == null ? void 0 : _a2.filterPanel));
54481
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(FilterPanel, _extends$1({}, (_a2 = props.slotProps) == null ? void 0 : _a2.filterPanel));
54482
54482
  }
54483
54483
  return initialValue;
54484
54484
  }, [props.slots.filterPanel, (_c = props.slotProps) == null ? void 0 : _c.filterPanel]);
@@ -54534,7 +54534,7 @@ const useGridFilter = (apiRef, props) => {
54534
54534
  const columnsLookup = gridColumnLookupSelector(apiRef);
54535
54535
  const newFilterItems = filterModel.items.filter((item) => item.field && columnsLookup[item.field]);
54536
54536
  if (newFilterItems.length < filterModel.items.length) {
54537
- apiRef.current.setFilterModel(_extends$2({}, filterModel, {
54537
+ apiRef.current.setFilterModel(_extends$1({}, filterModel, {
54538
54538
  items: newFilterItems
54539
54539
  }));
54540
54540
  }
@@ -54546,7 +54546,7 @@ const useGridFilter = (apiRef, props) => {
54546
54546
  }, [apiRef]);
54547
54547
  const updateVisibleRowsLookupState = React.useCallback(() => {
54548
54548
  apiRef.current.setState((state) => {
54549
- return _extends$2({}, state, {
54549
+ return _extends$1({}, state, {
54550
54550
  visibleRowsLookup: getVisibleRowsLookupState(apiRef, state)
54551
54551
  });
54552
54552
  });
@@ -54570,7 +54570,7 @@ const useGridFilter = (apiRef, props) => {
54570
54570
  }
54571
54571
  }, [apiRef, logger, props.filterModel]);
54572
54572
  };
54573
- const focusStateInitializer = (state) => _extends$2({}, state, {
54573
+ const focusStateInitializer = (state) => _extends$1({}, state, {
54574
54574
  focus: {
54575
54575
  cell: null,
54576
54576
  columnHeader: null,
@@ -54602,7 +54602,7 @@ const useGridFocus = (apiRef, props) => {
54602
54602
  }
54603
54603
  apiRef.current.setState((state) => {
54604
54604
  logger.debug(`Focusing on cell with id=${id} and field=${field}`);
54605
- return _extends$2({}, state, {
54605
+ return _extends$1({}, state, {
54606
54606
  tabIndex: {
54607
54607
  cell: {
54608
54608
  id,
@@ -54636,7 +54636,7 @@ const useGridFocus = (apiRef, props) => {
54636
54636
  publishCellFocusOut(cell, event);
54637
54637
  apiRef.current.setState((state) => {
54638
54638
  logger.debug(`Focusing on column header with colIndex=${field}`);
54639
- return _extends$2({}, state, {
54639
+ return _extends$1({}, state, {
54640
54640
  tabIndex: {
54641
54641
  columnHeader: {
54642
54642
  field
@@ -54661,7 +54661,7 @@ const useGridFocus = (apiRef, props) => {
54661
54661
  publishCellFocusOut(cell, event);
54662
54662
  apiRef.current.setState((state) => {
54663
54663
  logger.debug(`Focusing on column header filter with colIndex=${field}`);
54664
- return _extends$2({}, state, {
54664
+ return _extends$1({}, state, {
54665
54665
  tabIndex: {
54666
54666
  columnHeader: null,
54667
54667
  columnHeaderFilter: {
@@ -54687,7 +54687,7 @@ const useGridFocus = (apiRef, props) => {
54687
54687
  apiRef.current.publishEvent("cellFocusOut", apiRef.current.getCellParams(cell.id, cell.field), event);
54688
54688
  }
54689
54689
  apiRef.current.setState((state) => {
54690
- return _extends$2({}, state, {
54690
+ return _extends$1({}, state, {
54691
54691
  tabIndex: {
54692
54692
  columnGroupHeader: {
54693
54693
  field,
@@ -54794,7 +54794,7 @@ const useGridFocus = (apiRef, props) => {
54794
54794
  return;
54795
54795
  }
54796
54796
  logger.debug(`Clearing focus`);
54797
- apiRef.current.setState((state) => _extends$2({}, state, {
54797
+ apiRef.current.setState((state) => _extends$1({}, state, {
54798
54798
  focus: {
54799
54799
  cell: null,
54800
54800
  columnHeader: null,
@@ -54833,7 +54833,7 @@ const useGridFocus = (apiRef, props) => {
54833
54833
  if (cellParams) {
54834
54834
  apiRef.current.setCellFocus(cellParams.id, cellParams.field);
54835
54835
  } else {
54836
- apiRef.current.setState((state) => _extends$2({}, state, {
54836
+ apiRef.current.setState((state) => _extends$1({}, state, {
54837
54837
  focus: {
54838
54838
  cell: null,
54839
54839
  columnHeader: null,
@@ -54868,7 +54868,7 @@ const useGridFocus = (apiRef, props) => {
54868
54868
  const nextRow = currentPage.rows[clamp(lastFocusedRowIndex, 0, currentPage.rows.length - 1)];
54869
54869
  nextRowId = (nextRow == null ? void 0 : nextRow.id) ?? null;
54870
54870
  }
54871
- apiRef.current.setState((state) => _extends$2({}, state, {
54871
+ apiRef.current.setState((state) => _extends$1({}, state, {
54872
54872
  focus: {
54873
54873
  cell: nextRowId === null ? null : {
54874
54874
  id: nextRowId,
@@ -54896,7 +54896,7 @@ const useGridFocus = (apiRef, props) => {
54896
54896
  }
54897
54897
  const visibleColumns = gridVisibleColumnDefinitionsSelector(apiRef);
54898
54898
  apiRef.current.setState((state) => {
54899
- return _extends$2({}, state, {
54899
+ return _extends$1({}, state, {
54900
54900
  tabIndex: {
54901
54901
  cell: {
54902
54902
  id: currentPage.rows[0].id,
@@ -55454,8 +55454,8 @@ const useGridRowCount = (apiRef, props) => {
55454
55454
  return;
55455
55455
  }
55456
55456
  logger.debug("Setting 'rowCount' to", newRowCount);
55457
- apiRef.current.setState((state) => _extends$2({}, state, {
55458
- pagination: _extends$2({}, state.pagination, {
55457
+ apiRef.current.setState((state) => _extends$1({}, state, {
55458
+ pagination: _extends$1({}, state.pagination, {
55459
55459
  rowCount: newRowCount
55460
55460
  })
55461
55461
  }));
@@ -55476,8 +55476,8 @@ const useGridRowCount = (apiRef, props) => {
55476
55476
  if (!shouldExportRowCount) {
55477
55477
  return prevState;
55478
55478
  }
55479
- return _extends$2({}, prevState, {
55480
- pagination: _extends$2({}, prevState.pagination, {
55479
+ return _extends$1({}, prevState, {
55480
+ pagination: _extends$1({}, prevState.pagination, {
55481
55481
  rowCount: exportedRowCount
55482
55482
  })
55483
55483
  });
@@ -55485,8 +55485,8 @@ const useGridRowCount = (apiRef, props) => {
55485
55485
  const stateRestorePreProcessing = React.useCallback((params, context) => {
55486
55486
  var _a2;
55487
55487
  const restoredRowCount = ((_a2 = context.stateToRestore.pagination) == null ? void 0 : _a2.rowCount) ? context.stateToRestore.pagination.rowCount : gridPaginationRowCountSelector(apiRef);
55488
- apiRef.current.setState((state) => _extends$2({}, state, {
55489
- pagination: _extends$2({}, state.pagination, {
55488
+ apiRef.current.setState((state) => _extends$1({}, state, {
55489
+ pagination: _extends$1({}, state.pagination, {
55490
55490
  rowCount: restoredRowCount
55491
55491
  })
55492
55492
  }));
@@ -55536,8 +55536,8 @@ const useGridPaginationMeta = (apiRef, props) => {
55536
55536
  return;
55537
55537
  }
55538
55538
  logger.debug("Setting 'paginationMeta' to", newPaginationMeta);
55539
- apiRef.current.setState((state) => _extends$2({}, state, {
55540
- pagination: _extends$2({}, state.pagination, {
55539
+ apiRef.current.setState((state) => _extends$1({}, state, {
55540
+ pagination: _extends$1({}, state.pagination, {
55541
55541
  meta: newPaginationMeta
55542
55542
  })
55543
55543
  }));
@@ -55558,8 +55558,8 @@ const useGridPaginationMeta = (apiRef, props) => {
55558
55558
  if (!shouldExportRowCount) {
55559
55559
  return prevState;
55560
55560
  }
55561
- return _extends$2({}, prevState, {
55562
- pagination: _extends$2({}, prevState.pagination, {
55561
+ return _extends$1({}, prevState, {
55562
+ pagination: _extends$1({}, prevState.pagination, {
55563
55563
  meta: exportedPaginationMeta
55564
55564
  })
55565
55565
  });
@@ -55567,8 +55567,8 @@ const useGridPaginationMeta = (apiRef, props) => {
55567
55567
  const stateRestorePreProcessing = React.useCallback((params, context) => {
55568
55568
  var _a2;
55569
55569
  const restoredPaginationMeta = ((_a2 = context.stateToRestore.pagination) == null ? void 0 : _a2.meta) ? context.stateToRestore.pagination.meta : gridPaginationMetaSelector(apiRef);
55570
- apiRef.current.setState((state) => _extends$2({}, state, {
55571
- pagination: _extends$2({}, state.pagination, {
55570
+ apiRef.current.setState((state) => _extends$1({}, state, {
55571
+ pagination: _extends$1({}, state.pagination, {
55572
55572
  meta: restoredPaginationMeta
55573
55573
  })
55574
55574
  }));
@@ -55584,12 +55584,12 @@ const useGridPaginationMeta = (apiRef, props) => {
55584
55584
  };
55585
55585
  const paginationStateInitializer = (state, props) => {
55586
55586
  var _a, _b, _c, _d, _e, _f, _g;
55587
- const paginationModel = _extends$2({}, getDefaultGridPaginationModel(props.autoPageSize), props.paginationModel ?? ((_b = (_a = props.initialState) == null ? void 0 : _a.pagination) == null ? void 0 : _b.paginationModel));
55587
+ const paginationModel = _extends$1({}, getDefaultGridPaginationModel(props.autoPageSize), props.paginationModel ?? ((_b = (_a = props.initialState) == null ? void 0 : _a.pagination) == null ? void 0 : _b.paginationModel));
55588
55588
  throwIfPageSizeExceedsTheLimit(paginationModel.pageSize, props.signature);
55589
55589
  const rowCount = props.rowCount ?? ((_d = (_c = props.initialState) == null ? void 0 : _c.pagination) == null ? void 0 : _d.rowCount) ?? (props.paginationMode === "client" ? (_e = state.rows) == null ? void 0 : _e.totalRowCount : void 0);
55590
55590
  const meta = props.paginationMeta ?? ((_g = (_f = props.initialState) == null ? void 0 : _f.pagination) == null ? void 0 : _g.meta) ?? {};
55591
- return _extends$2({}, state, {
55592
- pagination: _extends$2({}, state.pagination, {
55591
+ return _extends$1({}, state, {
55592
+ pagination: _extends$1({}, state.pagination, {
55593
55593
  paginationModel,
55594
55594
  rowCount,
55595
55595
  meta,
@@ -55605,7 +55605,7 @@ const useGridPagination = (apiRef, props) => {
55605
55605
  };
55606
55606
  const preferencePanelStateInitializer = (state, props) => {
55607
55607
  var _a;
55608
- return _extends$2({}, state, {
55608
+ return _extends$1({}, state, {
55609
55609
  preferencePanel: ((_a = props.initialState) == null ? void 0 : _a.preferencePanel) ?? {
55610
55610
  open: false
55611
55611
  }
@@ -55624,7 +55624,7 @@ const useGridPreferencesPanel = (apiRef, props) => {
55624
55624
  apiRef.current.publishEvent("preferencePanelClose", {
55625
55625
  openedPanelValue: preferencePanelState.openedPanelValue
55626
55626
  });
55627
- return _extends$2({}, state, {
55627
+ return _extends$1({}, state, {
55628
55628
  preferencePanel: {
55629
55629
  open: false
55630
55630
  }
@@ -55633,8 +55633,8 @@ const useGridPreferencesPanel = (apiRef, props) => {
55633
55633
  }, [apiRef, logger]);
55634
55634
  const showPreferences = React.useCallback((newValue, panelId, labelId) => {
55635
55635
  logger.debug("Opening Preferences Panel");
55636
- apiRef.current.setState((state) => _extends$2({}, state, {
55637
- preferencePanel: _extends$2({}, state.preferencePanel, {
55636
+ apiRef.current.setState((state) => _extends$1({}, state, {
55637
+ preferencePanel: _extends$1({}, state.preferencePanel, {
55638
55638
  open: true,
55639
55639
  openedPanelValue: newValue,
55640
55640
  panelId,
@@ -55661,14 +55661,14 @@ const useGridPreferencesPanel = (apiRef, props) => {
55661
55661
  if (!shouldExportPreferencePanel) {
55662
55662
  return prevState;
55663
55663
  }
55664
- return _extends$2({}, prevState, {
55664
+ return _extends$1({}, prevState, {
55665
55665
  preferencePanel: preferencePanelToExport
55666
55666
  });
55667
55667
  }, [apiRef, (_a = props.initialState) == null ? void 0 : _a.preferencePanel]);
55668
55668
  const stateRestorePreProcessing = React.useCallback((params, context) => {
55669
55669
  const preferencePanel = context.stateToRestore.preferencePanel;
55670
55670
  if (preferencePanel != null) {
55671
- apiRef.current.setState((state) => _extends$2({}, state, {
55671
+ apiRef.current.setState((state) => _extends$1({}, state, {
55672
55672
  preferencePanel
55673
55673
  }));
55674
55674
  }
@@ -55726,7 +55726,7 @@ const useGridCellEditing = (apiRef, props) => {
55726
55726
  if (params.cellMode === GridCellModes.Edit) {
55727
55727
  return;
55728
55728
  }
55729
- const newParams = _extends$2({}, params, {
55729
+ const newParams = _extends$1({}, params, {
55730
55730
  reason: GridCellEditStartReasons.cellDoubleClick
55731
55731
  });
55732
55732
  apiRef.current.publishEvent("cellEditStart", newParams, event);
@@ -55738,7 +55738,7 @@ const useGridCellEditing = (apiRef, props) => {
55738
55738
  if (apiRef.current.getCellMode(params.id, params.field) === GridCellModes.View) {
55739
55739
  return;
55740
55740
  }
55741
- const newParams = _extends$2({}, params, {
55741
+ const newParams = _extends$1({}, params, {
55742
55742
  reason: GridCellEditStopReasons.cellFocusOut
55743
55743
  });
55744
55744
  apiRef.current.publishEvent("cellEditStop", newParams, event);
@@ -55758,7 +55758,7 @@ const useGridCellEditing = (apiRef, props) => {
55758
55758
  event.preventDefault();
55759
55759
  }
55760
55760
  if (reason) {
55761
- const newParams = _extends$2({}, params, {
55761
+ const newParams = _extends$1({}, params, {
55762
55762
  reason
55763
55763
  });
55764
55764
  apiRef.current.publishEvent("cellEditStop", newParams, event);
@@ -55783,7 +55783,7 @@ const useGridCellEditing = (apiRef, props) => {
55783
55783
  reason = GridCellEditStartReasons.deleteKeyDown;
55784
55784
  }
55785
55785
  if (reason) {
55786
- const newParams = _extends$2({}, params, {
55786
+ const newParams = _extends$1({}, params, {
55787
55787
  reason,
55788
55788
  key: event.key
55789
55789
  });
@@ -55870,10 +55870,10 @@ const useGridCellEditing = (apiRef, props) => {
55870
55870
  apiRef.current.publishEvent("cellModesModelChange", newModel);
55871
55871
  });
55872
55872
  const updateFieldInCellModesModel = React.useCallback((id, field, newProps) => {
55873
- const newModel = _extends$2({}, cellModesModelRef.current);
55873
+ const newModel = _extends$1({}, cellModesModelRef.current);
55874
55874
  if (newProps !== null) {
55875
- newModel[id] = _extends$2({}, newModel[id], {
55876
- [field]: _extends$2({}, newProps)
55875
+ newModel[id] = _extends$1({}, newModel[id], {
55876
+ [field]: _extends$1({}, newProps)
55877
55877
  });
55878
55878
  } else {
55879
55879
  const _newModel$id = newModel[id], otherFields = _objectWithoutPropertiesLoose(_newModel$id, [field].map(toPropertyKey));
@@ -55886,10 +55886,10 @@ const useGridCellEditing = (apiRef, props) => {
55886
55886
  }, [updateCellModesModel]);
55887
55887
  const updateOrDeleteFieldState = React.useCallback((id, field, newProps) => {
55888
55888
  apiRef.current.setState((state) => {
55889
- const newEditingState = _extends$2({}, state.editRows);
55889
+ const newEditingState = _extends$1({}, state.editRows);
55890
55890
  if (newProps !== null) {
55891
- newEditingState[id] = _extends$2({}, newEditingState[id], {
55892
- [field]: _extends$2({}, newProps)
55891
+ newEditingState[id] = _extends$1({}, newEditingState[id], {
55892
+ [field]: _extends$1({}, newProps)
55893
55893
  });
55894
55894
  } else {
55895
55895
  delete newEditingState[id][field];
@@ -55897,7 +55897,7 @@ const useGridCellEditing = (apiRef, props) => {
55897
55897
  delete newEditingState[id];
55898
55898
  }
55899
55899
  }
55900
- return _extends$2({}, state, {
55900
+ return _extends$1({}, state, {
55901
55901
  editRows: newEditingState
55902
55902
  });
55903
55903
  });
@@ -55909,7 +55909,7 @@ const useGridCellEditing = (apiRef, props) => {
55909
55909
  } = params, other = _objectWithoutPropertiesLoose(params, _excluded$6);
55910
55910
  throwIfNotEditable(id, field);
55911
55911
  throwIfNotInMode(id, field, GridCellModes.View);
55912
- updateFieldInCellModesModel(id, field, _extends$2({
55912
+ updateFieldInCellModesModel(id, field, _extends$1({
55913
55913
  mode: GridCellModes.Edit
55914
55914
  }, other));
55915
55915
  }, [throwIfNotEditable, throwIfNotInMode, updateFieldInCellModesModel]);
@@ -55945,7 +55945,7 @@ const useGridCellEditing = (apiRef, props) => {
55945
55945
  }));
55946
55946
  if (apiRef.current.getCellMode(id, field) === GridCellModes.Edit) {
55947
55947
  const editingState = gridEditRowsStateSelector(apiRef);
55948
- updateOrDeleteFieldState(id, field, _extends$2({}, newProps, {
55948
+ updateOrDeleteFieldState(id, field, _extends$1({}, newProps, {
55949
55949
  value: editingState[id][field].value,
55950
55950
  isProcessingProps: false
55951
55951
  }));
@@ -55958,7 +55958,7 @@ const useGridCellEditing = (apiRef, props) => {
55958
55958
  field
55959
55959
  } = params, other = _objectWithoutPropertiesLoose(params, _excluded2$2);
55960
55960
  throwIfNotInMode(id, field, GridCellModes.Edit);
55961
- updateFieldInCellModesModel(id, field, _extends$2({
55961
+ updateFieldInCellModesModel(id, field, _extends$1({
55962
55962
  mode: GridCellModes.View
55963
55963
  }, other));
55964
55964
  }, [throwIfNotInMode, updateFieldInCellModesModel]);
@@ -56041,13 +56041,13 @@ const useGridCellEditing = (apiRef, props) => {
56041
56041
  parsedValue = column2.valueParser(value, row, column2, apiRef);
56042
56042
  }
56043
56043
  let editingState = gridEditRowsStateSelector(apiRef);
56044
- let newProps = _extends$2({}, editingState[id][field], {
56044
+ let newProps = _extends$1({}, editingState[id][field], {
56045
56045
  value: parsedValue,
56046
56046
  changeReason: debounceMs ? "debouncedSetEditCellValue" : "setEditCellValue"
56047
56047
  });
56048
56048
  if (column2.preProcessEditCellProps) {
56049
56049
  const hasChanged = value !== editingState[id][field].value;
56050
- newProps = _extends$2({}, newProps, {
56050
+ newProps = _extends$1({}, newProps, {
56051
56051
  isProcessingProps: true
56052
56052
  });
56053
56053
  updateOrDeleteFieldState(id, field, newProps);
@@ -56062,7 +56062,7 @@ const useGridCellEditing = (apiRef, props) => {
56062
56062
  return false;
56063
56063
  }
56064
56064
  editingState = gridEditRowsStateSelector(apiRef);
56065
- newProps = _extends$2({}, newProps, {
56065
+ newProps = _extends$1({}, newProps, {
56066
56066
  isProcessingProps: false
56067
56067
  });
56068
56068
  newProps.value = column2.preProcessEditCellProps ? editingState[id][field].value : parsedValue;
@@ -56080,7 +56080,7 @@ const useGridCellEditing = (apiRef, props) => {
56080
56080
  const {
56081
56081
  value
56082
56082
  } = editingState[id][field];
56083
- return column2.valueSetter ? column2.valueSetter(value, row, column2, apiRef) : _extends$2({}, row, {
56083
+ return column2.valueSetter ? column2.valueSetter(value, row, column2, apiRef) : _extends$1({}, row, {
56084
56084
  [field]: value
56085
56085
  });
56086
56086
  }, [apiRef]);
@@ -56110,12 +56110,12 @@ const useGridCellEditing = (apiRef, props) => {
56110
56110
  const prevMode = ((_b = (_a = copyOfPrevCellModes[id]) == null ? void 0 : _a[field]) == null ? void 0 : _b.mode) || GridCellModes.View;
56111
56111
  const originalId = rowsLookup[id] ? apiRef.current.getRowId(rowsLookup[id]) : id;
56112
56112
  if (params.mode === GridCellModes.Edit && prevMode === GridCellModes.View) {
56113
- updateStateToStartCellEditMode(_extends$2({
56113
+ updateStateToStartCellEditMode(_extends$1({
56114
56114
  id: originalId,
56115
56115
  field
56116
56116
  }, params));
56117
56117
  } else if (params.mode === GridCellModes.View && prevMode === GridCellModes.Edit) {
56118
- updateStateToStopCellEditMode(_extends$2({
56118
+ updateStateToStopCellEditMode(_extends$1({
56119
56119
  id: originalId,
56120
56120
  field
56121
56121
  }, params));
@@ -56166,7 +56166,7 @@ const useGridRowEditing = (apiRef, props) => {
56166
56166
  return;
56167
56167
  }
56168
56168
  const rowParams = apiRef.current.getRowParams(params.id);
56169
- const newParams = _extends$2({}, rowParams, {
56169
+ const newParams = _extends$1({}, rowParams, {
56170
56170
  field: params.field,
56171
56171
  reason: GridRowEditStartReasons.cellDoubleClick
56172
56172
  });
@@ -56196,7 +56196,7 @@ const useGridRowEditing = (apiRef, props) => {
56196
56196
  return;
56197
56197
  }
56198
56198
  const rowParams = apiRef.current.getRowParams(params.id);
56199
- const newParams = _extends$2({}, rowParams, {
56199
+ const newParams = _extends$1({}, rowParams, {
56200
56200
  field: params.field,
56201
56201
  reason: GridRowEditStopReasons.rowFocusOut
56202
56202
  });
@@ -56245,7 +56245,7 @@ const useGridRowEditing = (apiRef, props) => {
56245
56245
  if (reason !== GridRowEditStopReasons.escapeKeyDown && hasFieldsWithErrors(params.id)) {
56246
56246
  return;
56247
56247
  }
56248
- const newParams = _extends$2({}, apiRef.current.getRowParams(params.id), {
56248
+ const newParams = _extends$1({}, apiRef.current.getRowParams(params.id), {
56249
56249
  reason,
56250
56250
  field: params.field
56251
56251
  });
@@ -56272,7 +56272,7 @@ const useGridRowEditing = (apiRef, props) => {
56272
56272
  }
56273
56273
  if (reason) {
56274
56274
  const rowParams = apiRef.current.getRowParams(params.id);
56275
- const newParams = _extends$2({}, rowParams, {
56275
+ const newParams = _extends$1({}, rowParams, {
56276
56276
  field: params.field,
56277
56277
  reason
56278
56278
  });
@@ -56348,9 +56348,9 @@ const useGridRowEditing = (apiRef, props) => {
56348
56348
  apiRef.current.publishEvent("rowModesModelChange", newModel);
56349
56349
  });
56350
56350
  const updateRowInRowModesModel = React.useCallback((id, newProps) => {
56351
- const newModel = _extends$2({}, rowModesModelRef.current);
56351
+ const newModel = _extends$1({}, rowModesModelRef.current);
56352
56352
  if (newProps !== null) {
56353
- newModel[id] = _extends$2({}, newProps);
56353
+ newModel[id] = _extends$1({}, newProps);
56354
56354
  } else {
56355
56355
  delete newModel[id];
56356
56356
  }
@@ -56358,23 +56358,23 @@ const useGridRowEditing = (apiRef, props) => {
56358
56358
  }, [updateRowModesModel]);
56359
56359
  const updateOrDeleteRowState = React.useCallback((id, newProps) => {
56360
56360
  apiRef.current.setState((state) => {
56361
- const newEditingState = _extends$2({}, state.editRows);
56361
+ const newEditingState = _extends$1({}, state.editRows);
56362
56362
  if (newProps !== null) {
56363
56363
  newEditingState[id] = newProps;
56364
56364
  } else {
56365
56365
  delete newEditingState[id];
56366
56366
  }
56367
- return _extends$2({}, state, {
56367
+ return _extends$1({}, state, {
56368
56368
  editRows: newEditingState
56369
56369
  });
56370
56370
  });
56371
56371
  }, [apiRef]);
56372
56372
  const updateOrDeleteFieldState = React.useCallback((id, field, newProps) => {
56373
56373
  apiRef.current.setState((state) => {
56374
- const newEditingState = _extends$2({}, state.editRows);
56374
+ const newEditingState = _extends$1({}, state.editRows);
56375
56375
  if (newProps !== null) {
56376
- newEditingState[id] = _extends$2({}, newEditingState[id], {
56377
- [field]: _extends$2({}, newProps)
56376
+ newEditingState[id] = _extends$1({}, newEditingState[id], {
56377
+ [field]: _extends$1({}, newProps)
56378
56378
  });
56379
56379
  } else {
56380
56380
  delete newEditingState[id][field];
@@ -56382,7 +56382,7 @@ const useGridRowEditing = (apiRef, props) => {
56382
56382
  delete newEditingState[id];
56383
56383
  }
56384
56384
  }
56385
- return _extends$2({}, state, {
56385
+ return _extends$1({}, state, {
56386
56386
  editRows: newEditingState
56387
56387
  });
56388
56388
  });
@@ -56392,7 +56392,7 @@ const useGridRowEditing = (apiRef, props) => {
56392
56392
  id
56393
56393
  } = params, other = _objectWithoutPropertiesLoose(params, _excluded$5);
56394
56394
  throwIfNotInMode(id, GridRowModes.View);
56395
- updateRowInRowModesModel(id, _extends$2({
56395
+ updateRowInRowModesModel(id, _extends$1({
56396
56396
  mode: GridRowModes.Edit
56397
56397
  }, other));
56398
56398
  }, [throwIfNotInMode, updateRowInRowModesModel]);
@@ -56443,7 +56443,7 @@ const useGridRowEditing = (apiRef, props) => {
56443
56443
  })).then((processedProps) => {
56444
56444
  if (apiRef.current.getRowMode(id) === GridRowModes.Edit) {
56445
56445
  const editingState = gridEditRowsStateSelector(apiRef);
56446
- updateOrDeleteFieldState(id, field, _extends$2({}, processedProps, {
56446
+ updateOrDeleteFieldState(id, field, _extends$1({}, processedProps, {
56447
56447
  value: editingState[id][field].value,
56448
56448
  isProcessingProps: false
56449
56449
  }));
@@ -56456,7 +56456,7 @@ const useGridRowEditing = (apiRef, props) => {
56456
56456
  id
56457
56457
  } = params, other = _objectWithoutPropertiesLoose(params, _excluded2$1);
56458
56458
  throwIfNotInMode(id, GridRowModes.Edit);
56459
- updateRowInRowModesModel(id, _extends$2({
56459
+ updateRowInRowModesModel(id, _extends$1({
56460
56460
  mode: GridRowModes.View
56461
56461
  }, other));
56462
56462
  }, [throwIfNotInMode, updateRowInRowModesModel]);
@@ -56540,7 +56540,7 @@ const useGridRowEditing = (apiRef, props) => {
56540
56540
  parsedValue = column2.valueParser(value, row, column2, apiRef);
56541
56541
  }
56542
56542
  let editingState = gridEditRowsStateSelector(apiRef);
56543
- let newProps = _extends$2({}, editingState[id][field], {
56543
+ let newProps = _extends$1({}, editingState[id][field], {
56544
56544
  value: parsedValue,
56545
56545
  changeReason: debounceMs ? "debouncedSetEditCellValue" : "setEditCellValue"
56546
56546
  });
@@ -56551,7 +56551,7 @@ const useGridRowEditing = (apiRef, props) => {
56551
56551
  const promises = [];
56552
56552
  if (column2.preProcessEditCellProps) {
56553
56553
  const hasChanged = newProps.value !== editingState[id][field].value;
56554
- newProps = _extends$2({}, newProps, {
56554
+ newProps = _extends$1({}, newProps, {
56555
56555
  isProcessingProps: true
56556
56556
  });
56557
56557
  updateOrDeleteFieldState(id, field, newProps);
@@ -56568,7 +56568,7 @@ const useGridRowEditing = (apiRef, props) => {
56568
56568
  return;
56569
56569
  }
56570
56570
  editingState = gridEditRowsStateSelector(apiRef);
56571
- processedProps = _extends$2({}, processedProps, {
56571
+ processedProps = _extends$1({}, processedProps, {
56572
56572
  isProcessingProps: false
56573
56573
  });
56574
56574
  processedProps.value = column2.preProcessEditCellProps ? editingState[id][field].value : parsedValue;
@@ -56584,7 +56584,7 @@ const useGridRowEditing = (apiRef, props) => {
56584
56584
  if (!fieldColumn.preProcessEditCellProps) {
56585
56585
  return;
56586
56586
  }
56587
- fieldProps = _extends$2({}, fieldProps, {
56587
+ fieldProps = _extends$1({}, fieldProps, {
56588
56588
  isProcessingProps: true
56589
56589
  });
56590
56590
  updateOrDeleteFieldState(id, thisField, fieldProps);
@@ -56601,7 +56601,7 @@ const useGridRowEditing = (apiRef, props) => {
56601
56601
  resolve(false);
56602
56602
  return;
56603
56603
  }
56604
- processedProps = _extends$2({}, processedProps, {
56604
+ processedProps = _extends$1({}, processedProps, {
56605
56605
  isProcessingProps: false
56606
56606
  });
56607
56607
  updateOrDeleteFieldState(id, thisField, processedProps);
@@ -56624,7 +56624,7 @@ const useGridRowEditing = (apiRef, props) => {
56624
56624
  if (!editingState[id]) {
56625
56625
  return apiRef.current.getRow(id);
56626
56626
  }
56627
- let rowUpdate = _extends$2({}, prevRowValuesLookup.current[id], row);
56627
+ let rowUpdate = _extends$1({}, prevRowValuesLookup.current[id], row);
56628
56628
  Object.entries(editingState[id]).forEach(([field, fieldProps]) => {
56629
56629
  const column2 = apiRef.current.getColumn(field);
56630
56630
  if (column2 == null ? void 0 : column2.valueSetter) {
@@ -56664,18 +56664,18 @@ const useGridRowEditing = (apiRef, props) => {
56664
56664
  const prevMode = ((_a = copyOfPrevRowModesModel[id]) == null ? void 0 : _a.mode) || GridRowModes.View;
56665
56665
  const originalId = rowsLookup[id] ? apiRef.current.getRowId(rowsLookup[id]) : id;
56666
56666
  if (params.mode === GridRowModes.Edit && prevMode === GridRowModes.View) {
56667
- updateStateToStartRowEditMode(_extends$2({
56667
+ updateStateToStartRowEditMode(_extends$1({
56668
56668
  id: originalId
56669
56669
  }, params));
56670
56670
  } else if (params.mode === GridRowModes.View && prevMode === GridRowModes.Edit) {
56671
- updateStateToStopRowEditMode(_extends$2({
56671
+ updateStateToStopRowEditMode(_extends$1({
56672
56672
  id: originalId
56673
56673
  }, params));
56674
56674
  }
56675
56675
  });
56676
56676
  }, [apiRef, rowModesModel, updateStateToStartRowEditMode, updateStateToStopRowEditMode]);
56677
56677
  };
56678
- const editingStateInitializer = (state) => _extends$2({}, state, {
56678
+ const editingStateInitializer = (state) => _extends$1({}, state, {
56679
56679
  editRows: {}
56680
56680
  });
56681
56681
  const useGridEditing = (apiRef, props) => {
@@ -56794,7 +56794,7 @@ const rowsStateInitializer = (state, props, apiRef) => {
56794
56794
  loading: props.loading,
56795
56795
  rowCount: props.rowCount
56796
56796
  });
56797
- return _extends$2({}, state, {
56797
+ return _extends$1({}, state, {
56798
56798
  rows: getRowsStateFromCache({
56799
56799
  apiRef,
56800
56800
  rowCountProp: props.rowCount,
@@ -56835,7 +56835,7 @@ const useGridRows = (apiRef, props) => {
56835
56835
  }) => {
56836
56836
  const run = () => {
56837
56837
  lastUpdateMs.current = Date.now();
56838
- apiRef.current.setState((state) => _extends$2({}, state, {
56838
+ apiRef.current.setState((state) => _extends$1({}, state, {
56839
56839
  rows: getRowsStateFromCache({
56840
56840
  apiRef,
56841
56841
  rowCountProp: props.rowCount,
@@ -56908,8 +56908,8 @@ const useGridRows = (apiRef, props) => {
56908
56908
  return;
56909
56909
  }
56910
56910
  logger.debug(`Setting loading to ${loading}`);
56911
- apiRef.current.setState((state) => _extends$2({}, state, {
56912
- rows: _extends$2({}, state.rows, {
56911
+ apiRef.current.setState((state) => _extends$1({}, state, {
56912
+ rows: _extends$1({}, state.rows, {
56913
56913
  loading
56914
56914
  })
56915
56915
  }));
@@ -56936,13 +56936,13 @@ const useGridRows = (apiRef, props) => {
56936
56936
  if (currentNode.type !== "group") {
56937
56937
  throw new Error("MUI X: Only group nodes can be expanded or collapsed.");
56938
56938
  }
56939
- const newNode = _extends$2({}, currentNode, {
56939
+ const newNode = _extends$1({}, currentNode, {
56940
56940
  childrenExpanded: isExpanded
56941
56941
  });
56942
56942
  apiRef.current.setState((state) => {
56943
- return _extends$2({}, state, {
56944
- rows: _extends$2({}, state.rows, {
56945
- tree: _extends$2({}, state.rows.tree, {
56943
+ return _extends$1({}, state, {
56944
+ rows: _extends$1({}, state.rows, {
56945
+ tree: _extends$1({}, state.rows.tree, {
56946
56946
  [id]: newNode
56947
56947
  })
56948
56948
  })
@@ -57003,10 +57003,10 @@ const useGridRows = (apiRef, props) => {
57003
57003
  logger.debug(`Moving row ${rowId} to index ${targetIndex}`);
57004
57004
  const updatedRows = [...allRows];
57005
57005
  updatedRows.splice(targetIndex, 0, updatedRows.splice(oldIndex, 1)[0]);
57006
- return _extends$2({}, state, {
57007
- rows: _extends$2({}, state.rows, {
57008
- tree: _extends$2({}, state.rows.tree, {
57009
- [GRID_ROOT_GROUP_ID]: _extends$2({}, group, {
57006
+ return _extends$1({}, state, {
57007
+ rows: _extends$1({}, state.rows, {
57008
+ tree: _extends$1({}, state.rows.tree, {
57009
+ [GRID_ROOT_GROUP_ID]: _extends$1({}, group, {
57010
57010
  children: updatedRows
57011
57011
  })
57012
57012
  })
@@ -57026,8 +57026,8 @@ const useGridRows = (apiRef, props) => {
57026
57026
  if (treeDepth > 1) {
57027
57027
  throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");
57028
57028
  }
57029
- const tree = _extends$2({}, gridRowTreeSelector(apiRef));
57030
- const dataRowIdToModelLookup = _extends$2({}, gridRowsLookupSelector(apiRef));
57029
+ const tree = _extends$1({}, gridRowTreeSelector(apiRef));
57030
+ const dataRowIdToModelLookup = _extends$1({}, gridRowsLookupSelector(apiRef));
57031
57031
  const rootGroup = tree[GRID_ROOT_GROUP_ID];
57032
57032
  const rootGroupChildren = [...rootGroup.children];
57033
57033
  const seenIds = /* @__PURE__ */ new Set();
@@ -57050,7 +57050,7 @@ const useGridRows = (apiRef, props) => {
57050
57050
  tree[rowId] = rowTreeNodeConfig;
57051
57051
  seenIds.add(rowId);
57052
57052
  }
57053
- tree[GRID_ROOT_GROUP_ID] = _extends$2({}, rootGroup, {
57053
+ tree[GRID_ROOT_GROUP_ID] = _extends$1({}, rootGroup, {
57054
57054
  children: rootGroupChildren
57055
57055
  });
57056
57056
  const dataRowIds = rootGroupChildren.filter((childId) => {
@@ -57058,8 +57058,8 @@ const useGridRows = (apiRef, props) => {
57058
57058
  return ((_a = tree[childId]) == null ? void 0 : _a.type) === "leaf";
57059
57059
  });
57060
57060
  apiRef.current.caches.rows.dataRowIdToModelLookup = dataRowIdToModelLookup;
57061
- apiRef.current.setState((state) => _extends$2({}, state, {
57062
- rows: _extends$2({}, state.rows, {
57061
+ apiRef.current.setState((state) => _extends$1({}, state, {
57062
+ rows: _extends$1({}, state.rows, {
57063
57063
  loading: props.loading,
57064
57064
  totalRowCount: Math.max(props.rowCount || 0, rootGroupChildren.length),
57065
57065
  dataRowIdToModelLookup,
@@ -57094,7 +57094,7 @@ const useGridRows = (apiRef, props) => {
57094
57094
  logger.info(`Row grouping pre-processing have changed, regenerating the row tree`);
57095
57095
  let cache2;
57096
57096
  if (apiRef.current.caches.rows.rowsBeforePartialUpdates === props.rows) {
57097
- cache2 = _extends$2({}, apiRef.current.caches.rows, {
57097
+ cache2 = _extends$1({}, apiRef.current.caches.rows, {
57098
57098
  updates: {
57099
57099
  type: "full",
57100
57100
  rows: gridDataRowIdsSelector(apiRef)
@@ -57138,8 +57138,8 @@ const useGridRows = (apiRef, props) => {
57138
57138
  dataRowIds: gridDataRowIdsSelector(apiRef),
57139
57139
  dataRowIdToModelLookup: gridRowsLookupSelector(apiRef)
57140
57140
  });
57141
- return _extends$2({}, state, {
57142
- rows: _extends$2({}, state.rows, response, {
57141
+ return _extends$1({}, state, {
57142
+ rows: _extends$1({}, state.rows, response, {
57143
57143
  totalTopLevelRowCount: getTopLevelRowCount({
57144
57144
  tree: response.tree,
57145
57145
  rowCountProp: props.rowCount
@@ -57170,16 +57170,16 @@ const useGridRows = (apiRef, props) => {
57170
57170
  const isNewRowCountAlreadyInState = apiRef.current.caches.rows.rowCountPropBeforePartialUpdates === props.rowCount;
57171
57171
  if (areNewRowsAlreadyInState) {
57172
57172
  if (!isNewLoadingAlreadyInState) {
57173
- apiRef.current.setState((state) => _extends$2({}, state, {
57174
- rows: _extends$2({}, state.rows, {
57173
+ apiRef.current.setState((state) => _extends$1({}, state, {
57174
+ rows: _extends$1({}, state.rows, {
57175
57175
  loading: props.loading
57176
57176
  })
57177
57177
  }));
57178
57178
  apiRef.current.caches.rows.loadingPropBeforePartialUpdates = props.loading;
57179
57179
  }
57180
57180
  if (!isNewRowCountAlreadyInState) {
57181
- apiRef.current.setState((state) => _extends$2({}, state, {
57182
- rows: _extends$2({}, state.rows, {
57181
+ apiRef.current.setState((state) => _extends$1({}, state, {
57182
+ rows: _extends$1({}, state.rows, {
57183
57183
  totalRowCount: Math.max(props.rowCount || 0, state.rows.totalRowCount),
57184
57184
  totalTopLevelRowCount: Math.max(props.rowCount || 0, state.rows.totalTopLevelRowCount)
57185
57185
  })
@@ -57204,7 +57204,7 @@ const useGridRows = (apiRef, props) => {
57204
57204
  };
57205
57205
  const createFlatRowTree = (rows) => {
57206
57206
  const tree = {
57207
- [GRID_ROOT_GROUP_ID]: _extends$2({}, buildRootGroup(), {
57207
+ [GRID_ROOT_GROUP_ID]: _extends$1({}, buildRootGroup(), {
57208
57208
  children: rows
57209
57209
  })
57210
57210
  };
@@ -57231,7 +57231,7 @@ const updateFlatRowTree = ({
57231
57231
  previousTree,
57232
57232
  actions
57233
57233
  }) => {
57234
- const tree = _extends$2({}, previousTree);
57234
+ const tree = _extends$1({}, previousTree);
57235
57235
  const idsToRemoveFromRootGroup = {};
57236
57236
  for (let i = 0; i < actions.remove.length; i += 1) {
57237
57237
  const idToDelete = actions.remove[i];
@@ -57253,7 +57253,7 @@ const updateFlatRowTree = ({
57253
57253
  if (Object.values(idsToRemoveFromRootGroup).length) {
57254
57254
  rootGroupChildren = rootGroupChildren.filter((id) => !idsToRemoveFromRootGroup[id]);
57255
57255
  }
57256
- tree[GRID_ROOT_GROUP_ID] = _extends$2({}, rootGroup, {
57256
+ tree[GRID_ROOT_GROUP_ID] = _extends$1({}, rootGroup, {
57257
57257
  children: rootGroupChildren
57258
57258
  });
57259
57259
  return {
@@ -57405,7 +57405,7 @@ const emptyModel = {
57405
57405
  type: "include",
57406
57406
  ids: /* @__PURE__ */ new Set()
57407
57407
  };
57408
- const rowSelectionStateInitializer = (state, props) => _extends$2({}, state, {
57408
+ const rowSelectionStateInitializer = (state, props) => _extends$1({}, state, {
57409
57409
  rowSelection: props.rowSelection ? props.rowSelectionModel ?? emptyModel : emptyModel
57410
57410
  });
57411
57411
  const useGridRowSelection = (apiRef, props) => {
@@ -57470,7 +57470,7 @@ const useGridRowSelection = (apiRef, props) => {
57470
57470
  const currentModel = gridRowSelectionStateSelector(apiRef);
57471
57471
  if (currentModel !== model) {
57472
57472
  logger.debug(`Setting selection model`);
57473
- apiRef.current.setState((state) => _extends$2({}, state, {
57473
+ apiRef.current.setState((state) => _extends$1({}, state, {
57474
57474
  rowSelection: props.rowSelection ? model : emptyModel
57475
57475
  }));
57476
57476
  }
@@ -57939,7 +57939,7 @@ const useGridRowSelectionPreProcessors = (apiRef, props) => {
57939
57939
  };
57940
57940
  const classes2 = useUtilityClasses$7(ownerState);
57941
57941
  const updateSelectionColumn = React.useCallback((columnsState) => {
57942
- const selectionColumn = _extends$2({}, GRID_CHECKBOX_SELECTION_COL_DEF, {
57942
+ const selectionColumn = _extends$1({}, GRID_CHECKBOX_SELECTION_COL_DEF, {
57943
57943
  cellClassName: classes2.cellCheckbox,
57944
57944
  headerClassName: classes2.columnHeaderCheckbox,
57945
57945
  headerName: apiRef.current.getLocaleText("checkboxSelectionHeaderName")
@@ -57953,7 +57953,7 @@ const useGridRowSelectionPreProcessors = (apiRef, props) => {
57953
57953
  delete columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD];
57954
57954
  columnsState.orderedFields = columnsState.orderedFields.filter((field) => field !== GRID_CHECKBOX_SELECTION_FIELD);
57955
57955
  } else if (shouldHaveSelectionColumn && haveSelectionColumn) {
57956
- columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD] = _extends$2({}, selectionColumn, columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD]);
57956
+ columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD] = _extends$1({}, selectionColumn, columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD]);
57957
57957
  }
57958
57958
  return columnsState;
57959
57959
  }, [apiRef, classes2, props.checkboxSelection]);
@@ -57962,7 +57962,7 @@ const useGridRowSelectionPreProcessors = (apiRef, props) => {
57962
57962
  const sortingStateInitializer = (state, props) => {
57963
57963
  var _a, _b;
57964
57964
  const sortModel = props.sortModel ?? ((_b = (_a = props.initialState) == null ? void 0 : _a.sorting) == null ? void 0 : _b.sortModel) ?? [];
57965
- return _extends$2({}, state, {
57965
+ return _extends$1({}, state, {
57966
57966
  sorting: {
57967
57967
  sortModel: sanitizeSortModel(sortModel, props.disableMultipleColumnsSorting),
57968
57968
  sortedRows: []
@@ -57999,7 +57999,7 @@ const useGridSorting = (apiRef, props) => {
57999
57999
  const existing = sortModel.find((c) => c.field === col.field);
58000
58000
  if (existing) {
58001
58001
  const nextSort = directionOverride === void 0 ? getNextGridSortDirection(col.sortingOrder ?? props.sortingOrder, existing.sort) : directionOverride;
58002
- return nextSort === void 0 ? void 0 : _extends$2({}, existing, {
58002
+ return nextSort === void 0 ? void 0 : _extends$1({}, existing, {
58003
58003
  sort: nextSort
58004
58004
  });
58005
58005
  }
@@ -58022,8 +58022,8 @@ const useGridSorting = (apiRef, props) => {
58022
58022
  apiRef.current.setState((state) => {
58023
58023
  if (props.sortingMode === "server") {
58024
58024
  logger.debug("Skipping sorting rows as sortingMode = server");
58025
- return _extends$2({}, state, {
58026
- sorting: _extends$2({}, state.sorting, {
58025
+ return _extends$1({}, state, {
58026
+ sorting: _extends$1({}, state.sorting, {
58027
58027
  sortedRows: getTreeNodeDescendants(gridRowTreeSelector(apiRef), GRID_ROOT_GROUP_ID, false)
58028
58028
  })
58029
58029
  });
@@ -58033,8 +58033,8 @@ const useGridSorting = (apiRef, props) => {
58033
58033
  const sortedRows = apiRef.current.applyStrategyProcessor("sorting", {
58034
58034
  sortRowList
58035
58035
  });
58036
- return _extends$2({}, state, {
58037
- sorting: _extends$2({}, state.sorting, {
58036
+ return _extends$1({}, state, {
58037
+ sorting: _extends$1({}, state.sorting, {
58038
58038
  sortedRows
58039
58039
  })
58040
58040
  });
@@ -58090,7 +58090,7 @@ const useGridSorting = (apiRef, props) => {
58090
58090
  if (!shouldExportSortModel) {
58091
58091
  return prevState;
58092
58092
  }
58093
- return _extends$2({}, prevState, {
58093
+ return _extends$1({}, prevState, {
58094
58094
  sorting: {
58095
58095
  sortModel: sortModelToExport
58096
58096
  }
@@ -58103,7 +58103,7 @@ const useGridSorting = (apiRef, props) => {
58103
58103
  return params;
58104
58104
  }
58105
58105
  apiRef.current.setState(mergeStateWithSortModel(sortModel, props.disableMultipleColumnsSorting));
58106
- return _extends$2({}, params, {
58106
+ return _extends$1({}, params, {
58107
58107
  callbacks: [...params.callbacks, apiRef.current.applySorting]
58108
58108
  });
58109
58109
  }, [apiRef, props.disableMultipleColumnsSorting]);
@@ -58400,8 +58400,8 @@ const EMPTY_DIMENSIONS = {
58400
58400
  const dimensionsStateInitializer = (state, props, apiRef) => {
58401
58401
  const dimensions = EMPTY_DIMENSIONS;
58402
58402
  const density = gridDensityFactorSelector(apiRef);
58403
- return _extends$2({}, state, {
58404
- dimensions: _extends$2({}, dimensions, getStaticDimensions(props, apiRef, density, gridVisiblePinnedColumnDefinitionsSelector(apiRef)))
58403
+ return _extends$1({}, state, {
58404
+ dimensions: _extends$1({}, dimensions, getStaticDimensions(props, apiRef, density, gridVisiblePinnedColumnDefinitionsSelector(apiRef)))
58405
58405
  });
58406
58406
  };
58407
58407
  const columnsTotalWidthSelector = createSelector(gridVisibleColumnDefinitionsSelector, gridColumnPositionsSelector, (visibleColumns, positions) => {
@@ -58430,7 +58430,7 @@ function useGridDimensions(apiRef, props) {
58430
58430
  } = getStaticDimensions(props, apiRef, densityFactor, pinnedColumns);
58431
58431
  const getRootDimensions = React.useCallback(() => gridDimensionsSelector(apiRef), [apiRef]);
58432
58432
  const setDimensions = React.useCallback((dimensions) => {
58433
- apiRef.current.setState((state) => _extends$2({}, state, {
58433
+ apiRef.current.setState((state) => _extends$1({}, state, {
58434
58434
  dimensions
58435
58435
  }));
58436
58436
  if (apiRef.current.rootElementRef.current) {
@@ -58655,7 +58655,7 @@ const rowsMetaStateInitializer = (state, props, apiRef) => {
58655
58655
  const dataRowCount = gridRowCountSelector(apiRef);
58656
58656
  const pagination = gridPaginationSelector(apiRef);
58657
58657
  const rowCount = Math.min(pagination.enabled ? pagination.paginationModel.pageSize : dataRowCount, dataRowCount);
58658
- return _extends$2({}, state, {
58658
+ return _extends$1({}, state, {
58659
58659
  rowsMeta: {
58660
58660
  currentPageTotalHeight: rowCount * baseRowHeight,
58661
58661
  positions: Array.from({
@@ -58702,12 +58702,12 @@ const useGridRowsMeta = (apiRef, props) => {
58702
58702
  entry.content = baseRowHeight;
58703
58703
  entry.needsFirstMeasurement = false;
58704
58704
  } else {
58705
- const rowHeightFromUser = getRowHeightProp(_extends$2({}, row, {
58705
+ const rowHeightFromUser = getRowHeightProp(_extends$1({}, row, {
58706
58706
  densityFactor
58707
58707
  }));
58708
58708
  if (rowHeightFromUser === "auto") {
58709
58709
  if (entry.needsFirstMeasurement) {
58710
- const estimatedRowHeight = getEstimatedRowHeight ? getEstimatedRowHeight(_extends$2({}, row, {
58710
+ const estimatedRowHeight = getEstimatedRowHeight ? getEstimatedRowHeight(_extends$1({}, row, {
58711
58711
  densityFactor
58712
58712
  })) : baseRowHeight;
58713
58713
  entry.content = estimatedRowHeight ?? baseRowHeight;
@@ -58722,7 +58722,7 @@ const useGridRowsMeta = (apiRef, props) => {
58722
58722
  }
58723
58723
  if (getRowSpacing) {
58724
58724
  const indexRelativeToCurrentPage = apiRef.current.getRowIndexRelativeToVisibleRows(row.id);
58725
- const spacing2 = getRowSpacing(_extends$2({}, row, {
58725
+ const spacing2 = getRowSpacing(_extends$1({}, row, {
58726
58726
  isFirstVisible: indexRelativeToCurrentPage === 0,
58727
58727
  isLastVisible: indexRelativeToCurrentPage === currentPage.rows.length - 1,
58728
58728
  indexRelativeToCurrentPage
@@ -58764,7 +58764,7 @@ const useGridRowsMeta = (apiRef, props) => {
58764
58764
  pinnedBottomRowsTotalHeight
58765
58765
  };
58766
58766
  apiRef.current.setState((state) => {
58767
- return _extends$2({}, state, {
58767
+ return _extends$1({}, state, {
58768
58768
  rowsMeta
58769
58769
  });
58770
58770
  });
@@ -59047,18 +59047,18 @@ const createGroupLookup = (columnGroupingModel) => {
59047
59047
  console.warn(`MUI X: group groupId=${groupId} has no children.`);
59048
59048
  }
59049
59049
  }
59050
- const groupParam = _extends$2({}, other, {
59050
+ const groupParam = _extends$1({}, other, {
59051
59051
  groupId
59052
59052
  });
59053
59053
  const subTreeLookup = createGroupLookup(children);
59054
59054
  if (subTreeLookup[groupId] !== void 0 || groupLookup[groupId] !== void 0) {
59055
59055
  throw new Error(`MUI X: The groupId ${groupId} is used multiple times in the columnGroupingModel.`);
59056
59056
  }
59057
- groupLookup = _extends$2({}, groupLookup, subTreeLookup, {
59057
+ groupLookup = _extends$1({}, groupLookup, subTreeLookup, {
59058
59058
  [groupId]: groupParam
59059
59059
  });
59060
59060
  });
59061
- return _extends$2({}, groupLookup);
59061
+ return _extends$1({}, groupLookup);
59062
59062
  };
59063
59063
  const columnGroupsStateInitializer = (state, props, apiRef) => {
59064
59064
  if (!props.columnGroupingModel) {
@@ -59073,7 +59073,7 @@ const columnGroupsStateInitializer = (state, props, apiRef) => {
59073
59073
  var _a;
59074
59074
  return ((_a = unwrappedGroupingModel[field]) == null ? void 0 : _a.length) ?? 0;
59075
59075
  }));
59076
- return _extends$2({}, state, {
59076
+ return _extends$1({}, state, {
59077
59077
  columnGrouping: {
59078
59078
  lookup: groupLookup,
59079
59079
  unwrappedGroupingModel,
@@ -59103,8 +59103,8 @@ const useGridColumnGrouping = (apiRef, props) => {
59103
59103
  const orderedFields = ((_a = state.columns) == null ? void 0 : _a.orderedFields) ?? [];
59104
59104
  const pinnedColumns = state.pinnedColumns ?? {};
59105
59105
  const columnGroupsHeaderStructure = getColumnGroupsHeaderStructure(orderedFields, unwrappedGroupingModel, pinnedColumns);
59106
- return _extends$2({}, state, {
59107
- columnGrouping: _extends$2({}, state.columnGrouping, {
59106
+ return _extends$1({}, state, {
59107
+ columnGrouping: _extends$1({}, state.columnGrouping, {
59108
59108
  headerStructure: columnGroupsHeaderStructure
59109
59109
  })
59110
59110
  });
@@ -59123,7 +59123,7 @@ const useGridColumnGrouping = (apiRef, props) => {
59123
59123
  return ((_a2 = unwrappedGroupingModel[field]) == null ? void 0 : _a2.length) ?? 0;
59124
59124
  }));
59125
59125
  apiRef.current.setState((state) => {
59126
- return _extends$2({}, state, {
59126
+ return _extends$1({}, state, {
59127
59127
  columnGrouping: {
59128
59128
  lookup: groupLookup,
59129
59129
  unwrappedGroupingModel,
@@ -59273,7 +59273,7 @@ function extractColumnWidths(apiRef, options, columns) {
59273
59273
  root.classList.remove(gridClasses.autosizing);
59274
59274
  return widthByField;
59275
59275
  }
59276
- const columnResizeStateInitializer = (state) => _extends$2({}, state, {
59276
+ const columnResizeStateInitializer = (state) => _extends$1({}, state, {
59277
59277
  columnResize: {
59278
59278
  resizingColumnField: ""
59279
59279
  }
@@ -59499,15 +59499,15 @@ const useGridColumnResize = (apiRef, props) => {
59499
59499
  const handleResizeStart = React.useCallback(({
59500
59500
  field
59501
59501
  }) => {
59502
- apiRef.current.setState((state) => _extends$2({}, state, {
59503
- columnResize: _extends$2({}, state.columnResize, {
59502
+ apiRef.current.setState((state) => _extends$1({}, state, {
59503
+ columnResize: _extends$1({}, state.columnResize, {
59504
59504
  resizingColumnField: field
59505
59505
  })
59506
59506
  }));
59507
59507
  }, [apiRef]);
59508
59508
  const handleResizeStop = React.useCallback(() => {
59509
- apiRef.current.setState((state) => _extends$2({}, state, {
59510
- columnResize: _extends$2({}, state.columnResize, {
59509
+ apiRef.current.setState((state) => _extends$1({}, state, {
59510
+ columnResize: _extends$1({}, state.columnResize, {
59511
59511
  resizingColumnField: ""
59512
59512
  })
59513
59513
  }));
@@ -59545,7 +59545,7 @@ const useGridColumnResize = (apiRef, props) => {
59545
59545
  if (column2.resizable === false) {
59546
59546
  return;
59547
59547
  }
59548
- apiRef.current.autosizeColumns(_extends$2({}, props.autosizeOptions, {
59548
+ apiRef.current.autosizeColumns(_extends$1({}, props.autosizeOptions, {
59549
59549
  disableColumnVirtualization: false,
59550
59550
  columns: [column2.field]
59551
59551
  }));
@@ -59563,7 +59563,7 @@ const useGridColumnResize = (apiRef, props) => {
59563
59563
  }
59564
59564
  isAutosizingRef.current = true;
59565
59565
  const state = gridColumnsStateSelector(apiRef);
59566
- const options = _extends$2({}, DEFAULT_GRID_AUTOSIZE_OPTIONS, userOptions, {
59566
+ const options = _extends$1({}, DEFAULT_GRID_AUTOSIZE_OPTIONS, userOptions, {
59567
59567
  columns: (userOptions == null ? void 0 : userOptions.columns) ?? state.orderedFields
59568
59568
  });
59569
59569
  options.columns = options.columns.filter((c) => state.columnVisibilityModel[c] !== false);
@@ -59574,7 +59574,7 @@ const useGridColumnResize = (apiRef, props) => {
59574
59574
  await columnVirtualizationDisabled();
59575
59575
  }
59576
59576
  const widthByField = extractColumnWidths(apiRef, options, columns);
59577
- const newColumns = columns.map((column2) => _extends$2({}, column2, {
59577
+ const newColumns = columns.map((column2) => _extends$1({}, column2, {
59578
59578
  width: widthByField[column2.field],
59579
59579
  computedWidth: widthByField[column2.field],
59580
59580
  flex: 0
@@ -59685,9 +59685,9 @@ const EMPTY_RANGE = {
59685
59685
  const skippedFields = /* @__PURE__ */ new Set([GRID_CHECKBOX_SELECTION_FIELD, "__reorder__", GRID_DETAIL_PANEL_TOGGLE_FIELD]);
59686
59686
  const DEFAULT_ROWS_TO_PROCESS = 20;
59687
59687
  const computeRowSpanningState = (apiRef, colDefs, visibleRows, range2, rangeToProcess, resetState, processedRange) => {
59688
- const spannedCells = resetState ? {} : _extends$2({}, apiRef.current.state.rowSpanning.spannedCells);
59689
- const hiddenCells = resetState ? {} : _extends$2({}, apiRef.current.state.rowSpanning.hiddenCells);
59690
- const hiddenCellOriginMap = resetState ? {} : _extends$2({}, apiRef.current.state.rowSpanning.hiddenCellOriginMap);
59688
+ const spannedCells = resetState ? {} : _extends$1({}, apiRef.current.state.rowSpanning.spannedCells);
59689
+ const hiddenCells = resetState ? {} : _extends$1({}, apiRef.current.state.rowSpanning.hiddenCells);
59690
+ const hiddenCellOriginMap = resetState ? {} : _extends$1({}, apiRef.current.state.rowSpanning.hiddenCellOriginMap);
59691
59691
  if (resetState) {
59692
59692
  processedRange = EMPTY_RANGE;
59693
59693
  }
@@ -59801,7 +59801,7 @@ const getInitialRangeToProcess = (props, apiRef) => {
59801
59801
  const rowSpanningStateInitializer = (state, props, apiRef) => {
59802
59802
  var _a;
59803
59803
  if (!props.rowSpanning) {
59804
- return _extends$2({}, state, {
59804
+ return _extends$1({}, state, {
59805
59805
  rowSpanning: EMPTY_STATE
59806
59806
  });
59807
59807
  }
@@ -59811,7 +59811,7 @@ const rowSpanningStateInitializer = (state, props, apiRef) => {
59811
59811
  const columnsLookup = state.columns.lookup;
59812
59812
  const isFilteringPending = Boolean(state.filter.filterModel.items.length) || Boolean((_a = state.filter.filterModel.quickFilterValues) == null ? void 0 : _a.length);
59813
59813
  if (!rowIds.length || !orderedFields.length || !dataRowIdToModelLookup || !columnsLookup || isFilteringPending) {
59814
- return _extends$2({}, state, {
59814
+ return _extends$1({}, state, {
59815
59815
  rowSpanning: EMPTY_STATE
59816
59816
  });
59817
59817
  }
@@ -59826,7 +59826,7 @@ const rowSpanningStateInitializer = (state, props, apiRef) => {
59826
59826
  hiddenCells,
59827
59827
  hiddenCellOriginMap
59828
59828
  } = computeRowSpanningState(apiRef, colDefs, rows, rangeToProcess, rangeToProcess, true, EMPTY_RANGE);
59829
- return _extends$2({}, state, {
59829
+ return _extends$1({}, state, {
59830
59830
  rowSpanning: {
59831
59831
  spannedCells,
59832
59832
  hiddenCells,
@@ -59877,7 +59877,7 @@ const useGridRowSpanning = (apiRef, props) => {
59877
59877
  return;
59878
59878
  }
59879
59879
  apiRef.current.setState((state) => {
59880
- return _extends$2({}, state, {
59880
+ return _extends$1({}, state, {
59881
59881
  rowSpanning: {
59882
59882
  spannedCells,
59883
59883
  hiddenCells,
@@ -59901,7 +59901,7 @@ const useGridRowSpanning = (apiRef, props) => {
59901
59901
  React.useEffect(() => {
59902
59902
  if (!props.rowSpanning) {
59903
59903
  if (apiRef.current.state.rowSpanning !== EMPTY_STATE) {
59904
- apiRef.current.setState((state) => _extends$2({}, state, {
59904
+ apiRef.current.setState((state) => _extends$1({}, state, {
59905
59905
  rowSpanning: EMPTY_STATE
59906
59906
  }));
59907
59907
  }
@@ -59910,8 +59910,8 @@ const useGridRowSpanning = (apiRef, props) => {
59910
59910
  }
59911
59911
  }, [apiRef, resetRowSpanningState, props.rowSpanning]);
59912
59912
  };
59913
- const listViewStateInitializer = (state, props, apiRef) => _extends$2({}, state, {
59914
- listViewColumn: props.listViewColumn ? _extends$2({}, props.listViewColumn, {
59913
+ const listViewStateInitializer = (state, props, apiRef) => _extends$1({}, state, {
59914
+ listViewColumn: props.listViewColumn ? _extends$1({}, props.listViewColumn, {
59915
59915
  computedWidth: getListColumnWidth(apiRef)
59916
59916
  }) : void 0
59917
59917
  });
@@ -59921,8 +59921,8 @@ function useGridListView(apiRef, props) {
59921
59921
  if (!state.listViewColumn) {
59922
59922
  return state;
59923
59923
  }
59924
- return _extends$2({}, state, {
59925
- listViewColumn: _extends$2({}, state.listViewColumn, {
59924
+ return _extends$1({}, state, {
59925
+ listViewColumn: _extends$1({}, state.listViewColumn, {
59926
59926
  computedWidth: getListColumnWidth(apiRef)
59927
59927
  })
59928
59928
  });
@@ -59941,8 +59941,8 @@ function useGridListView(apiRef, props) {
59941
59941
  const listColumn = props.listViewColumn;
59942
59942
  if (listColumn) {
59943
59943
  apiRef.current.setState((state) => {
59944
- return _extends$2({}, state, {
59945
- listViewColumn: _extends$2({}, listColumn, {
59944
+ return _extends$1({}, state, {
59945
+ listViewColumn: _extends$1({}, listColumn, {
59946
59946
  computedWidth: getListColumnWidth(apiRef)
59947
59947
  })
59948
59948
  });
@@ -59987,7 +59987,7 @@ class CacheChunkManager {
59987
59987
  const chunkedKeys = [];
59988
59988
  for (let i = key.start; i < key.end; i += this.chunkSize) {
59989
59989
  const end2 = Math.min(i + this.chunkSize - 1, key.end);
59990
- chunkedKeys.push(_extends$2({}, key, {
59990
+ chunkedKeys.push(_extends$1({}, key, {
59991
59991
  start: i,
59992
59992
  end: end2
59993
59993
  }));
@@ -60000,8 +60000,8 @@ class CacheChunkManager {
60000
60000
  cacheKeys.forEach((chunkKey) => {
60001
60001
  var _a, _b, _c, _d;
60002
60002
  const isLastChunk = chunkKey.end === key.end;
60003
- const responseSlice = _extends$2({}, response, {
60004
- pageInfo: _extends$2({}, response.pageInfo, {
60003
+ const responseSlice = _extends$1({}, response, {
60004
+ pageInfo: _extends$1({}, response.pageInfo, {
60005
60005
  // If the original response had page info, update that information for all but last chunk and keep the original value for the last chunk
60006
60006
  hasNextPage: ((_a = response.pageInfo) == null ? void 0 : _a.hasNextPage) !== void 0 && !isLastChunk ? true : (_b = response.pageInfo) == null ? void 0 : _b.hasNextPage,
60007
60007
  nextCursor: ((_c = response.pageInfo) == null ? void 0 : _c.nextCursor) !== void 0 && !isLastChunk ? response.rows[chunkKey.end + 1].id : (_d = response.pageInfo) == null ? void 0 : _d.nextCursor
@@ -60068,7 +60068,7 @@ const useGridDataSourceBase = (apiRef, props, options = {}) => {
60068
60068
  return;
60069
60069
  }
60070
60070
  (_c = options.clearDataSourceState) == null ? void 0 : _c.call(options);
60071
- const fetchParams = _extends$2({}, gridGetRowsParamsSelector(apiRef), apiRef.current.unstable_applyPipeProcessors("getRowsParams", {}), params);
60071
+ const fetchParams = _extends$1({}, gridGetRowsParamsSelector(apiRef), apiRef.current.unstable_applyPipeProcessors("getRowsParams", {}), params);
60072
60072
  const cacheKeys = cacheChunkManager.getCacheKeys(fetchParams);
60073
60073
  const responses = cacheKeys.map((cacheKey) => cache2.get(cacheKey));
60074
60074
  if (responses.every((response) => response !== void 0)) {
@@ -60312,7 +60312,7 @@ function GridColumnGroupHeader(props) {
60312
60312
  if (groupId && render) {
60313
60313
  headerComponent = render(renderParams);
60314
60314
  }
60315
- const ownerState = _extends$2({}, props, {
60315
+ const ownerState = _extends$1({}, props, {
60316
60316
  classes: rootProps.classes,
60317
60317
  headerAlign,
60318
60318
  depth,
@@ -60346,8 +60346,8 @@ function GridColumnGroupHeader(props) {
60346
60346
  onBlur: publish("columnGroupHeaderBlur")
60347
60347
  }), [publish]);
60348
60348
  const headerClassName = typeof group.headerClassName === "function" ? group.headerClassName(renderParams) : group.headerClassName;
60349
- const style2 = React.useMemo(() => attachPinnedStyle(_extends$2({}, props.style), isRtl, pinnedPosition, pinnedOffset), [pinnedPosition, pinnedOffset, props.style, isRtl]);
60350
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnHeaderItem, _extends$2({
60349
+ const style2 = React.useMemo(() => attachPinnedStyle(_extends$1({}, props.style), isRtl, pinnedPosition, pinnedOffset), [pinnedPosition, pinnedOffset, props.style, isRtl]);
60350
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnHeaderItem, _extends$1({
60351
60351
  ref: headerCellRef,
60352
60352
  classes: classes2,
60353
60353
  columnMenuOpen: false,
@@ -60486,7 +60486,7 @@ const useGridColumnHeaders = (props) => {
60486
60486
  const sectionLength = renderedColumns.length;
60487
60487
  const showLeftBorder = shouldCellShowLeftBorder(pinnedPosition, indexInSection);
60488
60488
  const showRightBorder = shouldCellShowRightBorder(pinnedPosition, indexInSection, sectionLength, rootProps.showColumnVerticalBorder, gridHasFiller);
60489
- columns.push(/* @__PURE__ */ jsxRuntimeExports.jsx(Memoized, _extends$2({}, sortColumnLookup[colDef.field], {
60489
+ columns.push(/* @__PURE__ */ jsxRuntimeExports.jsx(Memoized, _extends$1({}, sortColumnLookup[colDef.field], {
60490
60490
  columnMenuOpen: open,
60491
60491
  filterItemsCounter: filterColumnLookup[colDef.field] && filterColumnLookup[colDef.field].length,
60492
60492
  headerHeight,
@@ -60559,7 +60559,7 @@ const useGridColumnHeaders = (props) => {
60559
60559
  columnFields
60560
60560
  }) => groupId === lastGroupToRender && columnFields.includes(lastColumnFieldToRender));
60561
60561
  const visibleColumnGroupHeader = rowStructure.slice(firstGroupIndex, lastGroupIndex + 1).map((groupStructure) => {
60562
- return _extends$2({}, groupStructure, {
60562
+ return _extends$1({}, groupStructure, {
60563
60563
  columnFields: groupStructure.columnFields.filter((field) => columnVisibility[field] !== false)
60564
60564
  });
60565
60565
  }).filter((groupStructure) => groupStructure.columnFields.length > 0);
@@ -60688,7 +60688,7 @@ const GridBaseColumnHeaders = forwardRef(function GridColumnHeaders(props, ref)
60688
60688
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$3);
60689
60689
  const rootProps = useGridRootProps();
60690
60690
  const classes2 = useUtilityClasses$5(rootProps);
60691
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeadersRoot, _extends$2({
60691
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeadersRoot, _extends$1({
60692
60692
  className: clsx(classes2.root, className),
60693
60693
  ownerState: rootProps
60694
60694
  }, other, {
@@ -60730,7 +60730,7 @@ const GridColumnHeaders2 = forwardRef(function GridColumnHeaders22(props, ref) {
60730
60730
  columnGroupsHeaderStructure,
60731
60731
  hasOtherElementInTabSequence
60732
60732
  });
60733
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridBaseColumnHeaders, _extends$2({}, other, getInnerProps(), {
60733
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridBaseColumnHeaders, _extends$1({}, other, getInnerProps(), {
60734
60734
  ref,
60735
60735
  children: [getColumnGroupHeadersRows(), getColumnHeadersRow()]
60736
60736
  }));
@@ -60779,7 +60779,7 @@ function GridPinnedRows(_) {
60779
60779
  const GridNoResultsOverlay = forwardRef(function GridNoResultsOverlay2(props, ref) {
60780
60780
  const apiRef = useGridApiContext();
60781
60781
  const noResultsOverlayLabel = apiRef.current.getLocaleText("noResultsOverlayLabel");
60782
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$2({}, props, {
60782
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$1({}, props, {
60783
60783
  ref,
60784
60784
  children: noResultsOverlayLabel
60785
60785
  }));
@@ -62304,7 +62304,7 @@ const GridColumnUnsortedIcon = /* @__PURE__ */ React.memo(function GridColumnHea
62304
62304
  const rootProps = useGridRootProps();
62305
62305
  const [nextSortDirection] = sortingOrder;
62306
62306
  const Icon = nextSortDirection === "asc" ? rootProps.slots.columnSortedAscendingIcon : rootProps.slots.columnSortedDescendingIcon;
62307
- return Icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$2({}, other)) : null;
62307
+ return Icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$1({}, other)) : null;
62308
62308
  });
62309
62309
  const encoder = new TextEncoder();
62310
62310
  let bufferLength = 2 * 1024;
@@ -62521,7 +62521,7 @@ const BaseSelect = forwardRef(function BaseSelect2(props, ref) {
62521
62521
  shrink: true,
62522
62522
  variant: "outlined",
62523
62523
  children: label
62524
- }), /* @__PURE__ */ jsxRuntimeExports.jsx(Select, _extends$2({
62524
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(Select, _extends$1({
62525
62525
  id,
62526
62526
  labelId,
62527
62527
  label,
@@ -62577,13 +62577,13 @@ const BasePagination = forwardRef(function BasePagination2(props, ref) {
62577
62577
  const {
62578
62578
  estimatedRowCount
62579
62579
  } = rootProps;
62580
- return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledPagination, _extends$2({
62580
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledPagination, _extends$1({
62581
62581
  component: "div",
62582
62582
  onRowsPerPageChange: useEventCallback((event) => {
62583
62583
  onRowsPerPageChange == null ? void 0 : onRowsPerPageChange(Number(event.target.value));
62584
62584
  }),
62585
62585
  labelRowsPerPage: apiRef.current.getLocaleText("paginationRowsPerPage"),
62586
- labelDisplayedRows: (params) => apiRef.current.getLocaleText("paginationDisplayedRows")(_extends$2({}, params, {
62586
+ labelDisplayedRows: (params) => apiRef.current.getLocaleText("paginationDisplayedRows")(_extends$1({}, params, {
62587
62587
  estimated: estimatedRowCount
62588
62588
  })),
62589
62589
  getItemAriaLabel: apiRef.current.getLocaleText("paginationItemAriaLabel")
@@ -62595,7 +62595,7 @@ const BaseBadge = forwardRef(function BaseBadge2(props, ref) {
62595
62595
  const {
62596
62596
  material
62597
62597
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded3);
62598
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, _extends$2({}, rest, material, {
62598
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, _extends$1({}, rest, material, {
62599
62599
  ref
62600
62600
  }));
62601
62601
  });
@@ -62623,7 +62623,7 @@ const BaseCheckbox = forwardRef(function BaseCheckbox2(props, ref) {
62623
62623
  }
62624
62624
  }, [autoFocus]);
62625
62625
  if (!label) {
62626
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, _extends$2({}, other, material, {
62626
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, _extends$1({}, other, material, {
62627
62627
  className: clsx(className, material == null ? void 0 : material.className),
62628
62628
  inputProps: slotProps == null ? void 0 : slotProps.htmlInput,
62629
62629
  ref: handleRef,
@@ -62632,7 +62632,7 @@ const BaseCheckbox = forwardRef(function BaseCheckbox2(props, ref) {
62632
62632
  }
62633
62633
  return /* @__PURE__ */ jsxRuntimeExports.jsx(FormControlLabel, {
62634
62634
  className,
62635
- control: /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, _extends$2({}, other, material, {
62635
+ control: /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, _extends$1({}, other, material, {
62636
62636
  inputProps: slotProps == null ? void 0 : slotProps.htmlInput,
62637
62637
  ref: handleRef,
62638
62638
  touchRippleRef: rippleRef
@@ -62645,7 +62645,7 @@ const BaseCircularProgress = forwardRef(function BaseCircularProgress2(props, re
62645
62645
  const {
62646
62646
  material
62647
62647
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded5);
62648
- return /* @__PURE__ */ jsxRuntimeExports.jsx(CircularProgress, _extends$2({}, rest, material, {
62648
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(CircularProgress, _extends$1({}, rest, material, {
62649
62649
  ref
62650
62650
  }));
62651
62651
  });
@@ -62653,7 +62653,7 @@ const BaseDivider = forwardRef(function BaseDivider2(props, ref) {
62653
62653
  const {
62654
62654
  material
62655
62655
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded6);
62656
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Divider$1, _extends$2({}, rest, material, {
62656
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Divider$1, _extends$1({}, rest, material, {
62657
62657
  ref
62658
62658
  }));
62659
62659
  });
@@ -62661,7 +62661,7 @@ const BaseLinearProgress = forwardRef(function BaseLinearProgress2(props, ref) {
62661
62661
  const {
62662
62662
  material
62663
62663
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded7);
62664
- return /* @__PURE__ */ jsxRuntimeExports.jsx(LinearProgress, _extends$2({}, rest, material, {
62664
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(LinearProgress, _extends$1({}, rest, material, {
62665
62665
  ref
62666
62666
  }));
62667
62667
  });
@@ -62669,7 +62669,7 @@ const BaseButton = forwardRef(function BaseButton2(props, ref) {
62669
62669
  const {
62670
62670
  material
62671
62671
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded8);
62672
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Button, _extends$2({}, rest, material, {
62672
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Button, _extends$1({}, rest, material, {
62673
62673
  ref
62674
62674
  }));
62675
62675
  });
@@ -62677,7 +62677,7 @@ const BaseIconButton = forwardRef(function BaseIconButton2(props, ref) {
62677
62677
  const {
62678
62678
  material
62679
62679
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded9);
62680
- return /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, _extends$2({}, rest, material, {
62680
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, _extends$1({}, rest, material, {
62681
62681
  ref
62682
62682
  }));
62683
62683
  });
@@ -62685,7 +62685,7 @@ const BaseTooltip = forwardRef(function BaseTooltip2(props, ref) {
62685
62685
  const {
62686
62686
  material
62687
62687
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded10);
62688
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, _extends$2({}, rest, material, {
62688
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, _extends$1({}, rest, material, {
62689
62689
  ref
62690
62690
  }));
62691
62691
  });
@@ -62693,7 +62693,7 @@ const BaseSkeleton = forwardRef(function BaseSkeleton2(props, ref) {
62693
62693
  const {
62694
62694
  material
62695
62695
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded11);
62696
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton, _extends$2({}, rest, material, {
62696
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton, _extends$1({}, rest, material, {
62697
62697
  ref
62698
62698
  }));
62699
62699
  });
@@ -62701,7 +62701,7 @@ const BaseSwitch = forwardRef(function BaseSwitch2(props, ref) {
62701
62701
  const {
62702
62702
  material
62703
62703
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded12);
62704
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Switch, _extends$2({}, rest, material, {
62704
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Switch, _extends$1({}, rest, material, {
62705
62705
  ref
62706
62706
  }));
62707
62707
  });
@@ -62709,7 +62709,7 @@ const BaseMenuList = forwardRef(function BaseMenuList2(props, ref) {
62709
62709
  const {
62710
62710
  material
62711
62711
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded13);
62712
- return /* @__PURE__ */ jsxRuntimeExports.jsx(MenuList, _extends$2({}, rest, material, {
62712
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(MenuList, _extends$1({}, rest, material, {
62713
62713
  ref
62714
62714
  }));
62715
62715
  });
@@ -62736,12 +62736,12 @@ function BaseTextField(props) {
62736
62736
  slotProps,
62737
62737
  material
62738
62738
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded15);
62739
- return /* @__PURE__ */ jsxRuntimeExports.jsx(TextField, _extends$2({
62739
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(TextField, _extends$1({
62740
62740
  variant: "outlined"
62741
62741
  }, rest, material, {
62742
62742
  inputProps: slotProps == null ? void 0 : slotProps.htmlInput,
62743
62743
  InputProps: transformInputProps(slotProps == null ? void 0 : slotProps.input),
62744
- InputLabelProps: _extends$2({
62744
+ InputLabelProps: _extends$1({
62745
62745
  shrink: true
62746
62746
  }, slotProps == null ? void 0 : slotProps.inputLabel)
62747
62747
  }));
@@ -62762,7 +62762,7 @@ function BaseAutocomplete(props) {
62762
62762
  slotProps,
62763
62763
  material
62764
62764
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded16);
62765
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Autocomplete, _extends$2({
62765
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Autocomplete, _extends$1({
62766
62766
  id,
62767
62767
  multiple,
62768
62768
  freeSolo,
@@ -62777,7 +62777,7 @@ function BaseAutocomplete(props) {
62777
62777
  }), {
62778
62778
  key
62779
62779
  } = _getTagProps, tagProps = _objectWithoutPropertiesLoose(_getTagProps, _excluded17);
62780
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Chip, _extends$2({
62780
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Chip, _extends$1({
62781
62781
  variant: "outlined",
62782
62782
  size: "small",
62783
62783
  label: typeof option === "string" ? option : getOptionLabel == null ? void 0 : getOptionLabel(option)
@@ -62790,12 +62790,12 @@ function BaseAutocomplete(props) {
62790
62790
  InputProps,
62791
62791
  InputLabelProps
62792
62792
  } = params, inputRest = _objectWithoutPropertiesLoose(params, _excluded18);
62793
- return /* @__PURE__ */ jsxRuntimeExports.jsx(TextField, _extends$2({}, inputRest, {
62793
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(TextField, _extends$1({}, inputRest, {
62794
62794
  label,
62795
62795
  placeholder,
62796
62796
  inputProps,
62797
62797
  InputProps: transformInputProps(InputProps, false),
62798
- InputLabelProps: _extends$2({
62798
+ InputLabelProps: _extends$1({
62799
62799
  shrink: true
62800
62800
  }, InputLabelProps)
62801
62801
  }, slotProps == null ? void 0 : slotProps.textField, (_a = rootProps.slotProps) == null ? void 0 : _a.baseTextField));
@@ -62803,7 +62803,7 @@ function BaseAutocomplete(props) {
62803
62803
  }, rest, material));
62804
62804
  }
62805
62805
  function BaseInput(props) {
62806
- return /* @__PURE__ */ jsxRuntimeExports.jsx(InputBase, _extends$2({}, transformInputProps(props)));
62806
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(InputBase, _extends$1({}, transformInputProps(props)));
62807
62807
  }
62808
62808
  function transformInputProps(props, wrapAdornments = true) {
62809
62809
  if (!props) {
@@ -62835,7 +62835,7 @@ function transformInputProps(props, wrapAdornments = true) {
62835
62835
  }
62836
62836
  if (slotProps == null ? void 0 : slotProps.htmlInput) {
62837
62837
  if (result.inputProps) {
62838
- result.inputProps = _extends$2({}, result.inputProps, slotProps == null ? void 0 : slotProps.htmlInput);
62838
+ result.inputProps = _extends$1({}, result.inputProps, slotProps == null ? void 0 : slotProps.htmlInput);
62839
62839
  } else {
62840
62840
  result.inputProps = slotProps == null ? void 0 : slotProps.htmlInput;
62841
62841
  }
@@ -62901,7 +62901,7 @@ function BasePopper(props) {
62901
62901
  };
62902
62902
  content = (p) => {
62903
62903
  var _a;
62904
- return wrappers(props, /* @__PURE__ */ jsxRuntimeExports.jsx(Grow, _extends$2({}, p.TransitionProps, {
62904
+ return wrappers(props, /* @__PURE__ */ jsxRuntimeExports.jsx(Grow, _extends$1({}, p.TransitionProps, {
62905
62905
  style: {
62906
62906
  transformOrigin: transformOrigin[p.placement]
62907
62907
  },
@@ -62912,7 +62912,7 @@ function BasePopper(props) {
62912
62912
  })));
62913
62913
  };
62914
62914
  }
62915
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Popper$2, _extends$2({
62915
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Popper$2, _extends$1({
62916
62916
  id,
62917
62917
  className,
62918
62918
  open,
@@ -62957,9 +62957,9 @@ function BaseSelectOption(_ref) {
62957
62957
  native
62958
62958
  } = _ref, props = _objectWithoutPropertiesLoose(_ref, _excluded21);
62959
62959
  if (native) {
62960
- return /* @__PURE__ */ jsxRuntimeExports.jsx("option", _extends$2({}, props));
62960
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("option", _extends$1({}, props));
62961
62961
  }
62962
- return /* @__PURE__ */ jsxRuntimeExports.jsx(MenuItem, _extends$2({}, props));
62962
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(MenuItem, _extends$1({}, props));
62963
62963
  }
62964
62964
  const iconSlots = {
62965
62965
  booleanCellTrueIcon: GridCheckIcon,
@@ -63021,7 +63021,7 @@ const baseSlots = {
63021
63021
  baseSkeleton: BaseSkeleton,
63022
63022
  baseSwitch: BaseSwitch
63023
63023
  };
63024
- const materialSlots = _extends$2({}, baseSlots, iconSlots);
63024
+ const materialSlots = _extends$1({}, baseSlots, iconSlots);
63025
63025
  const useUtilityClasses = () => {
63026
63026
  const slots = {
63027
63027
  root: ["bottomContainer"]
@@ -63035,12 +63035,12 @@ const Element$1 = styled$1("div")({
63035
63035
  });
63036
63036
  function GridBottomContainer(props) {
63037
63037
  const classes2 = useUtilityClasses();
63038
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Element$1, _extends$2({}, props, {
63038
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Element$1, _extends$1({}, props, {
63039
63039
  className: clsx(classes2.root, gridClasses["container--bottom"]),
63040
63040
  role: "presentation"
63041
63041
  }));
63042
63042
  }
63043
- const DATA_GRID_DEFAULT_SLOTS_COMPONENTS = _extends$2({}, materialSlots, {
63043
+ const DATA_GRID_DEFAULT_SLOTS_COMPONENTS = _extends$1({}, materialSlots, {
63044
63044
  cell: MemoizedGridCell,
63045
63045
  skeletonCell: Memoized$1,
63046
63046
  columnHeaderFilterIconButton: GridColumnHeaderFilterIconButtonWrapped,
@@ -63076,7 +63076,7 @@ const DATA_GRID_FORCED_PROPS = {
63076
63076
  signature: "DataGrid",
63077
63077
  listView: false
63078
63078
  };
63079
- const getDataGridForcedProps = (themedProps) => _extends$2({}, DATA_GRID_FORCED_PROPS, themedProps.dataSource ? {
63079
+ const getDataGridForcedProps = (themedProps) => _extends$1({}, DATA_GRID_FORCED_PROPS, themedProps.dataSource ? {
63080
63080
  filterMode: "server",
63081
63081
  sortingMode: "server",
63082
63082
  paginationMode: "server"
@@ -63090,7 +63090,7 @@ const useDataGridProps = (inProps) => {
63090
63090
  name: "MuiDataGrid"
63091
63091
  })
63092
63092
  );
63093
- const localeText = React.useMemo(() => _extends$2({}, GRID_DEFAULT_LOCALE_TEXT, themedProps.localeText), [themedProps.localeText]);
63093
+ const localeText = React.useMemo(() => _extends$1({}, GRID_DEFAULT_LOCALE_TEXT, themedProps.localeText), [themedProps.localeText]);
63094
63094
  const slots = React.useMemo(() => computeSlots({
63095
63095
  defaultSlots,
63096
63096
  slots: themedProps.slots
@@ -63101,7 +63101,7 @@ const useDataGridProps = (inProps) => {
63101
63101
  return acc;
63102
63102
  }, {});
63103
63103
  }, [themedProps]);
63104
- return React.useMemo(() => _extends$2({}, themedProps, injectDefaultProps, {
63104
+ return React.useMemo(() => _extends$1({}, themedProps, injectDefaultProps, {
63105
63105
  localeText,
63106
63106
  slots
63107
63107
  }, getDataGridForcedProps(themedProps)), [themedProps, localeText, slots, injectDefaultProps]);
@@ -63124,7 +63124,7 @@ const DataGridRaw = forwardRef(function DataGrid2(inProps, ref) {
63124
63124
  privateApiRef,
63125
63125
  configuration,
63126
63126
  props,
63127
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(MemoizedGridRoot, _extends$2({
63127
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(MemoizedGridRoot, _extends$1({
63128
63128
  className: props.className,
63129
63129
  style: props.style,
63130
63130
  sx: props.sx
@@ -64115,7 +64115,7 @@ var defineProperty = function(obj, key, value) {
64115
64115
  }
64116
64116
  return obj;
64117
64117
  };
64118
- var _extends$1 = Object.assign || function(target) {
64118
+ var _extends = Object.assign || function(target) {
64119
64119
  for (var i = 1; i < arguments.length; i++) {
64120
64120
  var source = arguments[i];
64121
64121
  for (var key in source) {
@@ -64127,7 +64127,7 @@ var _extends$1 = Object.assign || function(target) {
64127
64127
  return target;
64128
64128
  };
64129
64129
  function getClientRect(offsets) {
64130
- return _extends$1({}, offsets, {
64130
+ return _extends({}, offsets, {
64131
64131
  right: offsets.left + offsets.width,
64132
64132
  bottom: offsets.top + offsets.height
64133
64133
  });
@@ -64311,7 +64311,7 @@ function computeAutoPlacement(placement, refRect, popper2, reference2, boundarie
64311
64311
  }
64312
64312
  };
64313
64313
  var sortedAreas = Object.keys(rects).map(function(key) {
64314
- return _extends$1({
64314
+ return _extends({
64315
64315
  key
64316
64316
  }, rects[key], {
64317
64317
  area: getArea(rects[key])
@@ -64619,9 +64619,9 @@ function computeStyle(data, options) {
64619
64619
  var attributes = {
64620
64620
  "x-placement": data.placement
64621
64621
  };
64622
- data.attributes = _extends$1({}, attributes, data.attributes);
64623
- data.styles = _extends$1({}, styles2, data.styles);
64624
- data.arrowStyles = _extends$1({}, data.offsets.arrow, data.arrowStyles);
64622
+ data.attributes = _extends({}, attributes, data.attributes);
64623
+ data.styles = _extends({}, styles2, data.styles);
64624
+ data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles);
64625
64625
  return data;
64626
64626
  }
64627
64627
  function isModifierRequired(modifiers2, requestingName, requestedName) {
@@ -64756,7 +64756,7 @@ function flip(data, options) {
64756
64756
  variation = getOppositeVariation(variation);
64757
64757
  }
64758
64758
  data.placement = placement + (variation ? "-" + variation : "");
64759
- data.offsets.popper = _extends$1({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));
64759
+ data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));
64760
64760
  data = runModifiers(data.instance.modifiers, data, "flip");
64761
64761
  }
64762
64762
  });
@@ -64915,7 +64915,7 @@ function preventOverflow(data, options) {
64915
64915
  };
64916
64916
  order2.forEach(function(placement) {
64917
64917
  var side = ["left", "top"].indexOf(placement) !== -1 ? "primary" : "secondary";
64918
- popper2 = _extends$1({}, popper2, check[side](placement));
64918
+ popper2 = _extends({}, popper2, check[side](placement));
64919
64919
  });
64920
64920
  data.offsets.popper = popper2;
64921
64921
  return data;
@@ -64933,7 +64933,7 @@ function shift(data) {
64933
64933
  start: defineProperty({}, side, reference2[side]),
64934
64934
  end: defineProperty({}, side, reference2[side] + reference2[measurement] - popper2[measurement])
64935
64935
  };
64936
- data.offsets.popper = _extends$1({}, popper2, shiftOffsets[shiftvariation]);
64936
+ data.offsets.popper = _extends({}, popper2, shiftOffsets[shiftvariation]);
64937
64937
  }
64938
64938
  return data;
64939
64939
  }
@@ -65336,7 +65336,7 @@ var Popper$1 = function() {
65336
65336
  return requestAnimationFrame(_this.update);
65337
65337
  };
65338
65338
  this.update = debounce(this.update.bind(this));
65339
- this.options = _extends$1({}, Popper3.Defaults, options);
65339
+ this.options = _extends({}, Popper3.Defaults, options);
65340
65340
  this.state = {
65341
65341
  isDestroyed: false,
65342
65342
  isCreated: false,
@@ -65345,11 +65345,11 @@ var Popper$1 = function() {
65345
65345
  this.reference = reference2 && reference2.jquery ? reference2[0] : reference2;
65346
65346
  this.popper = popper2 && popper2.jquery ? popper2[0] : popper2;
65347
65347
  this.options.modifiers = {};
65348
- Object.keys(_extends$1({}, Popper3.Defaults.modifiers, options.modifiers)).forEach(function(name) {
65349
- _this.options.modifiers[name] = _extends$1({}, Popper3.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});
65348
+ Object.keys(_extends({}, Popper3.Defaults.modifiers, options.modifiers)).forEach(function(name) {
65349
+ _this.options.modifiers[name] = _extends({}, Popper3.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});
65350
65350
  });
65351
65351
  this.modifiers = Object.keys(this.options.modifiers).map(function(name) {
65352
- return _extends$1({
65352
+ return _extends({
65353
65353
  name
65354
65354
  }, _this.options.modifiers[name]);
65355
65355
  }).sort(function(a, b) {
@@ -65624,38 +65624,6 @@ function ScopedGlobalStyles(props) {
65624
65624
  }, [parentClassName, styles2]);
65625
65625
  return component;
65626
65626
  }
65627
- function _extends() {
65628
- _extends = Object.assign ? Object.assign.bind() : function(target) {
65629
- for (var i = 1; i < arguments.length; i++) {
65630
- var source = arguments[i];
65631
- for (var key in source) {
65632
- if (Object.prototype.hasOwnProperty.call(source, key)) {
65633
- target[key] = source[key];
65634
- }
65635
- }
65636
- }
65637
- return target;
65638
- };
65639
- return _extends.apply(this, arguments);
65640
- }
65641
- function _assertThisInitialized(self) {
65642
- if (self === void 0) {
65643
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
65644
- }
65645
- return self;
65646
- }
65647
- function _setPrototypeOf(o, p) {
65648
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
65649
- o2.__proto__ = p2;
65650
- return o2;
65651
- };
65652
- return _setPrototypeOf(o, p);
65653
- }
65654
- function _inheritsLoose(subClass, superClass) {
65655
- subClass.prototype = Object.create(superClass.prototype);
65656
- subClass.prototype.constructor = subClass;
65657
- _setPrototypeOf(subClass, superClass);
65658
- }
65659
65627
  var safeIsNaN = Number.isNaN || function ponyfill(value) {
65660
65628
  return typeof value === "number" && value !== value;
65661
65629
  };
@@ -66023,7 +65991,7 @@ function createListComponent(_ref) {
66023
65991
  className,
66024
65992
  onScroll,
66025
65993
  ref: this._outerRefSetter,
66026
- style: _extends({
65994
+ style: _extends$1({
66027
65995
  position: "relative",
66028
65996
  height: height2,
66029
65997
  width: width2,