@vitessce/biomarker-select 3.9.3 → 3.9.5

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 +5 -5
package/dist/index.js CHANGED
@@ -1653,14 +1653,14 @@ var createCache = function createCache2(options) {
1653
1653
  cache2.sheet.hydrate(nodesToHydrate);
1654
1654
  return cache2;
1655
1655
  };
1656
- function _extends$3() {
1657
- return _extends$3 = Object.assign ? Object.assign.bind() : function(n) {
1656
+ function _extends$2() {
1657
+ return _extends$2 = Object.assign ? Object.assign.bind() : function(n) {
1658
1658
  for (var e = 1; e < arguments.length; e++) {
1659
1659
  var t = arguments[e];
1660
1660
  for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n[r2] = t[r2]);
1661
1661
  }
1662
1662
  return n;
1663
- }, _extends$3.apply(null, arguments);
1663
+ }, _extends$2.apply(null, arguments);
1664
1664
  }
1665
1665
  function getDefaultExportFromCjs(x) {
1666
1666
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
@@ -3203,7 +3203,7 @@ var createStyled$1 = function createStyled(tag, options) {
3203
3203
  }
3204
3204
  });
3205
3205
  Styled.withComponent = function(nextTag, nextOptions) {
3206
- var newStyled2 = createStyled(nextTag, _extends$3({}, options, nextOptions, {
3206
+ var newStyled2 = createStyled(nextTag, _extends$2({}, options, nextOptions, {
3207
3207
  shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
3208
3208
  }));
3209
3209
  return newStyled2.apply(void 0, styles2);
@@ -9508,14 +9508,14 @@ function chainPropTypes(propType1, propType2) {
9508
9508
  return propType1(...args) || propType2(...args);
9509
9509
  };
9510
9510
  }
9511
- function _extends$2() {
9512
- return _extends$2 = Object.assign ? Object.assign.bind() : function(n) {
9511
+ function _extends$1() {
9512
+ return _extends$1 = Object.assign ? Object.assign.bind() : function(n) {
9513
9513
  for (var e = 1; e < arguments.length; e++) {
9514
9514
  var t = arguments[e];
9515
9515
  for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n[r2] = t[r2]);
9516
9516
  }
9517
9517
  return n;
9518
- }, _extends$2.apply(null, arguments);
9518
+ }, _extends$1.apply(null, arguments);
9519
9519
  }
9520
9520
  function _objectWithoutPropertiesLoose(r2, e) {
9521
9521
  if (null == r2) return {};
@@ -9526,13 +9526,13 @@ function _objectWithoutPropertiesLoose(r2, e) {
9526
9526
  }
9527
9527
  return t;
9528
9528
  }
9529
- function _setPrototypeOf$1(t, e) {
9530
- return _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
9529
+ function _setPrototypeOf(t, e) {
9530
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
9531
9531
  return t2.__proto__ = e2, t2;
9532
- }, _setPrototypeOf$1(t, e);
9532
+ }, _setPrototypeOf(t, e);
9533
9533
  }
9534
- function _inheritsLoose$1(t, o) {
9535
- t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf$1(t, o);
9534
+ function _inheritsLoose(t, o) {
9535
+ t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
9536
9536
  }
9537
9537
  const config = {
9538
9538
  disabled: false
@@ -9564,7 +9564,7 @@ var ENTERING = "entering";
9564
9564
  var ENTERED = "entered";
9565
9565
  var EXITING = "exiting";
9566
9566
  var Transition = /* @__PURE__ */ function(_React$Component) {
9567
- _inheritsLoose$1(Transition2, _React$Component);
9567
+ _inheritsLoose(Transition2, _React$Component);
9568
9568
  function Transition2(props, context) {
9569
9569
  var _this;
9570
9570
  _this = _React$Component.call(this, props, context) || this;
@@ -9980,7 +9980,7 @@ Transition.EXITED = EXITED;
9980
9980
  Transition.ENTERING = ENTERING;
9981
9981
  Transition.ENTERED = ENTERED;
9982
9982
  Transition.EXITING = EXITING;
9983
- function _assertThisInitialized$1(e) {
9983
+ function _assertThisInitialized(e) {
9984
9984
  if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
9985
9985
  return e;
9986
9986
  }
@@ -10088,11 +10088,11 @@ var defaultProps = {
10088
10088
  }
10089
10089
  };
10090
10090
  var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
10091
- _inheritsLoose$1(TransitionGroup2, _React$Component);
10091
+ _inheritsLoose(TransitionGroup2, _React$Component);
10092
10092
  function TransitionGroup2(props, context) {
10093
10093
  var _this;
10094
10094
  _this = _React$Component.call(this, props, context) || this;
10095
- var handleExited = _this.handleExited.bind(_assertThisInitialized$1(_this));
10095
+ var handleExited = _this.handleExited.bind(_assertThisInitialized(_this));
10096
10096
  _this.state = {
10097
10097
  contextValue: {
10098
10098
  isMounting: true
@@ -10129,7 +10129,7 @@ var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
10129
10129
  }
10130
10130
  if (this.mounted) {
10131
10131
  this.setState(function(state) {
10132
- var children = _extends$2({}, state.children);
10132
+ var children = _extends$1({}, state.children);
10133
10133
  delete children[child.key];
10134
10134
  return {
10135
10135
  children
@@ -34347,7 +34347,7 @@ const keys$1 = {
34347
34347
  }
34348
34348
  };
34349
34349
  const values = wrap(keys$1);
34350
- const vars = _extends$2({
34350
+ const vars = _extends$1({
34351
34351
  breakpoints,
34352
34352
  spacing,
34353
34353
  transition,
@@ -34462,7 +34462,7 @@ const GridEditInputCell = forwardRef((props, ref) => {
34462
34462
  inputRef.current.focus();
34463
34463
  }
34464
34464
  }, [hasFocus]);
34465
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditInputCellRoot, _extends$2({
34465
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditInputCellRoot, _extends$1({
34466
34466
  as: rootProps.slots.baseInput,
34467
34467
  inputRef,
34468
34468
  className: classes2.root,
@@ -34546,7 +34546,7 @@ GridEditInputCell.propTypes = {
34546
34546
  */
34547
34547
  value: PropTypes.any
34548
34548
  };
34549
- const renderEditInputCell = (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditInputCell, _extends$2({}, params));
34549
+ const renderEditInputCell = (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditInputCell, _extends$1({}, params));
34550
34550
  const gridRowsStateSelector = createRootSelector((state) => state.rows);
34551
34551
  const gridRowCountSelector = createSelector(gridRowsStateSelector, (rows) => rows.totalRowCount);
34552
34552
  const gridRowsLoadingSelector = createSelector(gridRowsStateSelector, (rows) => rows.loading);
@@ -34601,8 +34601,8 @@ const sanitizeSortModel = (model, disableMultipleColumnsSorting) => {
34601
34601
  }
34602
34602
  return model;
34603
34603
  };
34604
- const mergeStateWithSortModel = (sortModel, disableMultipleColumnsSorting) => (state) => _extends$2({}, state, {
34605
- sorting: _extends$2({}, state.sorting, {
34604
+ const mergeStateWithSortModel = (sortModel, disableMultipleColumnsSorting) => (state) => _extends$1({}, state, {
34605
+ sorting: _extends$1({}, state.sorting, {
34606
34606
  sortModel: sanitizeSortModel(sortModel, disableMultipleColumnsSorting)
34607
34607
  })
34608
34608
  });
@@ -34730,7 +34730,7 @@ function GridFilterInputValue(props) {
34730
34730
  setFilterValueState(value);
34731
34731
  setIsApplying(true);
34732
34732
  filterTimeout.start(rootProps.filterDebounceMs, () => {
34733
- const newItem = _extends$2({}, item, {
34733
+ const newItem = _extends$1({}, item, {
34734
34734
  value: type === "number" && !Number.isNaN(Number(value)) ? Number(value) : value,
34735
34735
  fromInput: id
34736
34736
  });
@@ -34745,7 +34745,7 @@ function GridFilterInputValue(props) {
34745
34745
  }
34746
34746
  }, [id, item]);
34747
34747
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
34748
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTextField, _extends$2({
34748
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTextField, _extends$1({
34749
34749
  id,
34750
34750
  label: apiRef.current.getLocaleText("filterPanelInputLabel"),
34751
34751
  placeholder: apiRef.current.getLocaleText("filterPanelInputPlaceholder"),
@@ -34753,14 +34753,14 @@ function GridFilterInputValue(props) {
34753
34753
  onChange: onFilterChange,
34754
34754
  type: type || "text",
34755
34755
  disabled,
34756
- slotProps: _extends$2({}, textFieldProps == null ? void 0 : textFieldProps.slotProps, {
34757
- input: _extends$2({
34756
+ slotProps: _extends$1({}, textFieldProps == null ? void 0 : textFieldProps.slotProps, {
34757
+ input: _extends$1({
34758
34758
  endAdornment: applying ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.loadIcon, {
34759
34759
  fontSize: "small",
34760
34760
  color: "action"
34761
34761
  }) : null
34762
34762
  }, (_a2 = textFieldProps == null ? void 0 : textFieldProps.slotProps) == null ? void 0 : _a2.input),
34763
- htmlInput: _extends$2({
34763
+ htmlInput: _extends$1({
34764
34764
  tabIndex
34765
34765
  }, (_b2 = textFieldProps == null ? void 0 : textFieldProps.slotProps) == null ? void 0 : _b2.htmlInput)
34766
34766
  }),
@@ -34886,7 +34886,7 @@ function GridFilterInputMultipleValue(props) {
34886
34886
  }, [item.value]);
34887
34887
  const handleChange = React.useCallback((event, value) => {
34888
34888
  setFilterValueState(value.map(String));
34889
- applyValue(_extends$2({}, item, {
34889
+ applyValue(_extends$1({}, item, {
34890
34890
  value: [...value.map((filterItemValue) => type === "number" ? Number(filterItemValue) : filterItemValue)]
34891
34891
  }));
34892
34892
  }, [applyValue, item, type]);
@@ -34898,7 +34898,7 @@ function GridFilterInputMultipleValue(props) {
34898
34898
  }
34899
34899
  }, [setOptions]);
34900
34900
  const BaseAutocomplete2 = rootProps.slots.baseAutocomplete;
34901
- return /* @__PURE__ */ jsxRuntimeExports.jsx(BaseAutocomplete2, _extends$2({
34901
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(BaseAutocomplete2, _extends$1({
34902
34902
  multiple: true,
34903
34903
  freeSolo: true,
34904
34904
  options,
@@ -35152,7 +35152,7 @@ function getHasEval() {
35152
35152
  return hasEval;
35153
35153
  }
35154
35154
  const cleanFilterItem = (item, apiRef) => {
35155
- const cleanItem = _extends$2({}, item);
35155
+ const cleanItem = _extends$1({}, item);
35156
35156
  if (cleanItem.id == null) {
35157
35157
  cleanItem.id = Math.round(Math.random() * 1e5);
35158
35158
  }
@@ -35186,18 +35186,18 @@ const sanitizeFilterModel = (model, disableMultipleColumnsFiltering, apiRef) =>
35186
35186
  }
35187
35187
  }
35188
35188
  if (hasItemWithoutOperator || hasItemsWithoutIds) {
35189
- return _extends$2({}, model, {
35189
+ return _extends$1({}, model, {
35190
35190
  items: items.map((item) => cleanFilterItem(item, apiRef))
35191
35191
  });
35192
35192
  }
35193
35193
  if (model.items !== items) {
35194
- return _extends$2({}, model, {
35194
+ return _extends$1({}, model, {
35195
35195
  items
35196
35196
  });
35197
35197
  }
35198
35198
  return model;
35199
35199
  };
35200
- const mergeStateWithFilterModel = (filterModel, disableMultipleColumnsFiltering, apiRef) => (filteringState) => _extends$2({}, filteringState, {
35200
+ const mergeStateWithFilterModel = (filterModel, disableMultipleColumnsFiltering, apiRef) => (filteringState) => _extends$1({}, filteringState, {
35201
35201
  filterModel: sanitizeFilterModel(filterModel, disableMultipleColumnsFiltering, apiRef)
35202
35202
  });
35203
35203
  const removeDiacritics = (value) => {
@@ -35228,7 +35228,7 @@ const getFilterCallbackFromItem = (filterItem, apiRef) => {
35228
35228
  if (ignoreDiacritics) {
35229
35229
  parsedValue = removeDiacritics(parsedValue);
35230
35230
  }
35231
- const newFilterItem = _extends$2({}, filterItem, {
35231
+ const newFilterItem = _extends$1({}, filterItem, {
35232
35232
  value: parsedValue
35233
35233
  });
35234
35234
  const filterOperators = column2.filterOperators;
@@ -35653,7 +35653,7 @@ function GridMenu(props) {
35653
35653
  }
35654
35654
  onClose(event);
35655
35655
  };
35656
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridMenuRoot, _extends$2({
35656
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridMenuRoot, _extends$1({
35657
35657
  as: rootProps.slots.basePopper,
35658
35658
  className: clsx$1(classes2.root, className, variablesClass),
35659
35659
  ownerState: rootProps,
@@ -35814,7 +35814,7 @@ function GridActionsCell(props) {
35814
35814
  hideMenu();
35815
35815
  }
35816
35816
  };
35817
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$2({
35817
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$1({
35818
35818
  role: "menu",
35819
35819
  ref: rootRef,
35820
35820
  tabIndex: -1,
@@ -35826,7 +35826,7 @@ function GridActionsCell(props) {
35826
35826
  touchRippleRef: handleTouchRippleRef(index),
35827
35827
  onClick: handleButtonClick(index, button.props.onClick),
35828
35828
  tabIndex: focusedButtonIndex === index ? tabIndex : -1
35829
- })), menuButtons.length > 0 && buttonId && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$2({
35829
+ })), menuButtons.length > 0 && buttonId && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$1({
35830
35830
  ref: buttonRef,
35831
35831
  id: buttonId,
35832
35832
  "aria-label": apiRef.current.getLocaleText("actionsCellMore"),
@@ -35924,9 +35924,9 @@ GridActionsCell.propTypes = {
35924
35924
  */
35925
35925
  value: PropTypes.any
35926
35926
  };
35927
- const renderActionsCell = (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridActionsCell, _extends$2({}, params));
35927
+ const renderActionsCell = (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridActionsCell, _extends$1({}, params));
35928
35928
  const GRID_ACTIONS_COLUMN_TYPE = "actions";
35929
- const GRID_ACTIONS_COL_DEF = _extends$2({}, GRID_STRING_COL_DEF, {
35929
+ const GRID_ACTIONS_COL_DEF = _extends$1({}, GRID_STRING_COL_DEF, {
35930
35930
  sortable: false,
35931
35931
  filterable: false,
35932
35932
  // @ts-ignore
@@ -36042,7 +36042,7 @@ const getRowsStateFromCache = ({
36042
36042
  },
36043
36043
  idToActionLookup: {}
36044
36044
  };
36045
- return _extends$2({}, groupingParamsWithHydrateRows, {
36045
+ return _extends$1({}, groupingParamsWithHydrateRows, {
36046
36046
  totalRowCount: Math.max(rowCountProp, groupingParamsWithHydrateRows.dataRowIds.length),
36047
36047
  totalTopLevelRowCount: getTopLevelRowCount({
36048
36048
  tree: groupingParamsWithHydrateRows.tree,
@@ -36088,7 +36088,7 @@ const updateCacheWithNewRows = ({
36088
36088
  updates.forEach((update2) => {
36089
36089
  const id = getRowIdFromRowModel(update2, getRowId, "A row was provided without id when calling updateRows():");
36090
36090
  if (uniqueUpdates.has(id)) {
36091
- uniqueUpdates.set(id, _extends$2({}, uniqueUpdates.get(id), update2));
36091
+ uniqueUpdates.set(id, _extends$1({}, uniqueUpdates.get(id), update2));
36092
36092
  } else {
36093
36093
  uniqueUpdates.set(id, update2);
36094
36094
  }
@@ -36100,10 +36100,10 @@ const updateCacheWithNewRows = ({
36100
36100
  modify: [...previousCache.updates.actions.modify ?? []],
36101
36101
  remove: [...previousCache.updates.actions.remove ?? []]
36102
36102
  },
36103
- idToActionLookup: _extends$2({}, previousCache.updates.idToActionLookup),
36103
+ idToActionLookup: _extends$1({}, previousCache.updates.idToActionLookup),
36104
36104
  groupKeys
36105
36105
  };
36106
- const dataRowIdToModelLookup = _extends$2({}, previousCache.dataRowIdToModelLookup);
36106
+ const dataRowIdToModelLookup = _extends$1({}, previousCache.dataRowIdToModelLookup);
36107
36107
  const alreadyAppliedActionsToRemove = {
36108
36108
  insert: {},
36109
36109
  modify: {},
@@ -36130,7 +36130,7 @@ const updateCacheWithNewRows = ({
36130
36130
  } else if (actionAlreadyAppliedToRow == null) {
36131
36131
  partialUpdates.actions.modify.push(id);
36132
36132
  }
36133
- dataRowIdToModelLookup[id] = _extends$2({}, oldRow, partialRow);
36133
+ dataRowIdToModelLookup[id] = _extends$1({}, oldRow, partialRow);
36134
36134
  return;
36135
36135
  }
36136
36136
  if (actionAlreadyAppliedToRow === "remove") {
@@ -36167,7 +36167,7 @@ function computeRowsUpdates(apiRef, updates, getRowId) {
36167
36167
  const pinnedRowsCache = apiRef.current.caches.pinnedRows;
36168
36168
  const prevModel = pinnedRowsCache.idLookup[id];
36169
36169
  if (prevModel) {
36170
- pinnedRowsCache.idLookup[id] = _extends$2({}, prevModel, update2);
36170
+ pinnedRowsCache.idLookup[id] = _extends$1({}, prevModel, update2);
36171
36171
  }
36172
36172
  } else {
36173
36173
  nonPinnedRowsUpdates.push(update2);
@@ -36228,7 +36228,7 @@ function GridBooleanCellRaw(props) {
36228
36228
  if (isServerSideRowGroupingRow && value === void 0) {
36229
36229
  return null;
36230
36230
  }
36231
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$2({
36231
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$1({
36232
36232
  fontSize: "small",
36233
36233
  className: classes2.root,
36234
36234
  titleAccess: apiRef.current.getLocaleText(value ? "booleanCellTrueLabel" : "booleanCellFalseLabel"),
@@ -36306,7 +36306,7 @@ const renderBooleanCell = (params) => {
36306
36306
  if (params.field !== GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD && isAutogeneratedRowNode(params.rowNode)) {
36307
36307
  return "";
36308
36308
  }
36309
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridBooleanCell, _extends$2({}, params));
36309
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridBooleanCell, _extends$1({}, params));
36310
36310
  };
36311
36311
  const _excluded$S = ["id", "value", "formattedValue", "api", "field", "row", "rowNode", "colDef", "cellMode", "isEditable", "tabIndex", "className", "hasFocus", "isValidating", "isProcessingProps", "error", "onValueChange"];
36312
36312
  const useUtilityClasses$F = (ownerState) => {
@@ -36357,11 +36357,11 @@ function GridEditBooleanCell(props) {
36357
36357
  inputRef.current.focus();
36358
36358
  }
36359
36359
  }, [hasFocus]);
36360
- return /* @__PURE__ */ jsxRuntimeExports.jsx("label", _extends$2({
36360
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("label", _extends$1({
36361
36361
  htmlFor: id,
36362
36362
  className: clsx$1(classes2.root, className)
36363
36363
  }, other, {
36364
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$2({
36364
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$1({
36365
36365
  id,
36366
36366
  inputRef,
36367
36367
  checked: Boolean(valueState),
@@ -36435,7 +36435,7 @@ GridEditBooleanCell.propTypes = {
36435
36435
  */
36436
36436
  value: PropTypes.any
36437
36437
  };
36438
- const renderEditBooleanCell = (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditBooleanCell, _extends$2({}, params));
36438
+ const renderEditBooleanCell = (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditBooleanCell, _extends$1({}, params));
36439
36439
  const _excluded$R = ["item", "applyValue", "apiRef", "focusElementRef", "isFilterActive", "headerFilterMenu", "clearButton", "tabIndex", "slotProps"];
36440
36440
  function GridFilterInputBoolean(props) {
36441
36441
  var _a2, _b2;
@@ -36459,7 +36459,7 @@ function GridFilterInputBoolean(props) {
36459
36459
  const onFilterChange = React.useCallback((event) => {
36460
36460
  const value = sanitizeFilterItemValue(event.target.value);
36461
36461
  setFilterValueState(value);
36462
- applyValue(_extends$2({}, item, {
36462
+ applyValue(_extends$1({}, item, {
36463
36463
  value
36464
36464
  }));
36465
36465
  }, [applyValue, item]);
@@ -36469,7 +36469,7 @@ function GridFilterInputBoolean(props) {
36469
36469
  const label = (slotProps == null ? void 0 : slotProps.root.label) ?? apiRef.current.getLocaleText("filterPanelInputLabel");
36470
36470
  const rootSlotProps = slotProps == null ? void 0 : slotProps.root.slotProps;
36471
36471
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
36472
- children: [/* @__PURE__ */ jsxRuntimeExports.jsxs(rootProps.slots.baseSelect, _extends$2({
36472
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsxs(rootProps.slots.baseSelect, _extends$1({
36473
36473
  fullWidth: true,
36474
36474
  labelId,
36475
36475
  id: selectId,
@@ -36478,21 +36478,21 @@ function GridFilterInputBoolean(props) {
36478
36478
  onChange: onFilterChange,
36479
36479
  native: isSelectNative,
36480
36480
  slotProps: {
36481
- htmlInput: _extends$2({
36481
+ htmlInput: _extends$1({
36482
36482
  ref: focusElementRef,
36483
36483
  tabIndex
36484
36484
  }, rootSlotProps == null ? void 0 : rootSlotProps.htmlInput)
36485
36485
  }
36486
36486
  }, baseSelectProps, others, slotProps == null ? void 0 : slotProps.root, {
36487
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$2({}, baseSelectOptionProps, {
36487
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$1({}, baseSelectOptionProps, {
36488
36488
  native: isSelectNative,
36489
36489
  value: "",
36490
36490
  children: apiRef.current.getLocaleText("filterValueAny")
36491
- })), /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$2({}, baseSelectOptionProps, {
36491
+ })), /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$1({}, baseSelectOptionProps, {
36492
36492
  native: isSelectNative,
36493
36493
  value: "true",
36494
36494
  children: apiRef.current.getLocaleText("filterValueTrue")
36495
- })), /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$2({}, baseSelectOptionProps, {
36495
+ })), /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$1({}, baseSelectOptionProps, {
36496
36496
  native: isSelectNative,
36497
36497
  value: "false",
36498
36498
  children: apiRef.current.getLocaleText("filterValueFalse")
@@ -36580,7 +36580,7 @@ const stringToBoolean = (value) => {
36580
36580
  return void 0;
36581
36581
  }
36582
36582
  };
36583
- const GRID_BOOLEAN_COL_DEF = _extends$2({}, GRID_STRING_COL_DEF, {
36583
+ const GRID_BOOLEAN_COL_DEF = _extends$1({}, GRID_STRING_COL_DEF, {
36584
36584
  type: "boolean",
36585
36585
  display: "flex",
36586
36586
  align: "center",
@@ -36947,7 +36947,7 @@ const GridCellCheckboxForwardRef = forwardRef(function GridCellCheckboxRenderer2
36947
36947
  return null;
36948
36948
  }
36949
36949
  const label = apiRef.current.getLocaleText(isChecked && !isIndeterminate ? "checkboxSelectionUnselectRow" : "checkboxSelectionSelectRow");
36950
- return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$2({
36950
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$1({
36951
36951
  tabIndex,
36952
36952
  checked: isChecked && !isIndeterminate,
36953
36953
  onChange: handleChange,
@@ -37262,7 +37262,7 @@ const GridHeaderCheckbox = forwardRef(function GridHeaderCheckbox2(props, ref) {
37262
37262
  return apiRef.current.subscribeEvent("rowSelectionChange", handleSelectionChange);
37263
37263
  }, [apiRef, handleSelectionChange]);
37264
37264
  const label = apiRef.current.getLocaleText(isChecked && !isIndeterminate ? "checkboxSelectionUnselectAllRows" : "checkboxSelectionSelectAllRows");
37265
- return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$2({
37265
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$1({
37266
37266
  indeterminate: isIndeterminate,
37267
37267
  checked: isChecked && !isIndeterminate,
37268
37268
  onChange: handleChange,
@@ -37301,7 +37301,7 @@ const gridRowIdSelector = createRootSelector((state, row) => {
37301
37301
  return state.props.getRowId ? state.props.getRowId(row) : row.id;
37302
37302
  });
37303
37303
  const GRID_CHECKBOX_SELECTION_FIELD = "__check__";
37304
- const GRID_CHECKBOX_SELECTION_COL_DEF = _extends$2({}, GRID_BOOLEAN_COL_DEF, {
37304
+ const GRID_CHECKBOX_SELECTION_COL_DEF = _extends$1({}, GRID_BOOLEAN_COL_DEF, {
37305
37305
  type: "custom",
37306
37306
  field: GRID_CHECKBOX_SELECTION_FIELD,
37307
37307
  width: 50,
@@ -37319,8 +37319,8 @@ const GRID_CHECKBOX_SELECTION_COL_DEF = _extends$2({}, GRID_BOOLEAN_COL_DEF, {
37319
37319
  const rowId = gridRowIdSelector(apiRef, row);
37320
37320
  return apiRef.current.isRowSelected(rowId);
37321
37321
  },
37322
- renderHeader: (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridHeaderCheckbox, _extends$2({}, params)),
37323
- renderCell: (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridCellCheckboxRenderer, _extends$2({}, params))
37322
+ renderHeader: (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridHeaderCheckbox, _extends$1({}, params)),
37323
+ renderCell: (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridCellCheckboxRenderer, _extends$1({}, params))
37324
37324
  });
37325
37325
  const _excluded$O = ["item", "applyValue", "type", "apiRef", "focusElementRef", "slotProps", "isFilterActive", "headerFilterMenu", "clearButton", "tabIndex", "disabled"];
37326
37326
  function convertFilterItemValueToInputValue(itemValue, inputType) {
@@ -37367,7 +37367,7 @@ function GridFilterInputDate(props) {
37367
37367
  setIsApplying(true);
37368
37368
  filterTimeout.start(rootProps.filterDebounceMs, () => {
37369
37369
  const date = new Date(value);
37370
- applyValue(_extends$2({}, item, {
37370
+ applyValue(_extends$1({}, item, {
37371
37371
  value: Number.isNaN(date.getTime()) ? void 0 : date
37372
37372
  }));
37373
37373
  setIsApplying(false);
@@ -37378,7 +37378,7 @@ function GridFilterInputDate(props) {
37378
37378
  setFilterValueState(value);
37379
37379
  }, [item.value, type]);
37380
37380
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
37381
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTextField, _extends$2({
37381
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTextField, _extends$1({
37382
37382
  fullWidth: true,
37383
37383
  id,
37384
37384
  label: apiRef.current.getLocaleText("filterPanelInputLabel"),
@@ -37388,14 +37388,14 @@ function GridFilterInputDate(props) {
37388
37388
  type: type || "text",
37389
37389
  disabled,
37390
37390
  inputRef: focusElementRef,
37391
- slotProps: _extends$2({}, rootSlotProps, {
37392
- input: _extends$2({
37391
+ slotProps: _extends$1({}, rootSlotProps, {
37392
+ input: _extends$1({
37393
37393
  endAdornment: applying ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.loadIcon, {
37394
37394
  fontSize: "small",
37395
37395
  color: "action"
37396
37396
  }) : null
37397
37397
  }, rootSlotProps == null ? void 0 : rootSlotProps.input),
37398
- htmlInput: _extends$2({
37398
+ htmlInput: _extends$1({
37399
37399
  max: type === "datetime-local" ? "9999-12-31T23:59" : "9999-12-31",
37400
37400
  tabIndex
37401
37401
  }, rootSlotProps == null ? void 0 : rootSlotProps.htmlInput)
@@ -37643,7 +37643,7 @@ function GridEditDateCell(props) {
37643
37643
  inputRef.current.focus();
37644
37644
  }
37645
37645
  }, [hasFocus]);
37646
- return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledInputBase, _extends$2({
37646
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledInputBase, _extends$1({
37647
37647
  as: rootProps.slots.baseInput,
37648
37648
  inputRef,
37649
37649
  fullWidth: true,
@@ -37653,7 +37653,7 @@ function GridEditDateCell(props) {
37653
37653
  onChange: handleChange
37654
37654
  }, other, slotProps == null ? void 0 : slotProps.root, {
37655
37655
  slotProps: {
37656
- htmlInput: _extends$2({
37656
+ htmlInput: _extends$1({
37657
37657
  max: isDateTime ? "9999-12-31T23:59" : "9999-12-31"
37658
37658
  }, (_b2 = (_a2 = slotProps == null ? void 0 : slotProps.root) == null ? void 0 : _a2.slotProps) == null ? void 0 : _b2.htmlInput)
37659
37659
  }
@@ -37725,7 +37725,7 @@ GridEditDateCell.propTypes = {
37725
37725
  */
37726
37726
  value: PropTypes.any
37727
37727
  };
37728
- const renderEditDateCell = (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditDateCell, _extends$2({}, params));
37728
+ const renderEditDateCell = (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditDateCell, _extends$1({}, params));
37729
37729
  function throwIfNotDateObject({
37730
37730
  value,
37731
37731
  columnType,
@@ -37762,7 +37762,7 @@ const gridDateTimeFormatter = (value, row, column2, apiRef) => {
37762
37762
  });
37763
37763
  return value.toLocaleString();
37764
37764
  };
37765
- const GRID_DATE_COL_DEF = _extends$2({}, GRID_STRING_COL_DEF, {
37765
+ const GRID_DATE_COL_DEF = _extends$1({}, GRID_STRING_COL_DEF, {
37766
37766
  type: "date",
37767
37767
  sortComparator: gridDateComparator,
37768
37768
  valueFormatter: gridDateFormatter,
@@ -37771,7 +37771,7 @@ const GRID_DATE_COL_DEF = _extends$2({}, GRID_STRING_COL_DEF, {
37771
37771
  // @ts-ignore
37772
37772
  pastedValueParser: (value) => new Date(value)
37773
37773
  });
37774
- const GRID_DATETIME_COL_DEF = _extends$2({}, GRID_STRING_COL_DEF, {
37774
+ const GRID_DATETIME_COL_DEF = _extends$1({}, GRID_STRING_COL_DEF, {
37775
37775
  type: "dateTime",
37776
37776
  sortComparator: gridDateComparator,
37777
37777
  valueFormatter: gridDateTimeFormatter,
@@ -37921,7 +37921,7 @@ const getGridNumericOperators = () => [{
37921
37921
  type: "number"
37922
37922
  }
37923
37923
  }];
37924
- const GRID_NUMERIC_COL_DEF = _extends$2({}, GRID_STRING_COL_DEF, {
37924
+ const GRID_NUMERIC_COL_DEF = _extends$1({}, GRID_STRING_COL_DEF, {
37925
37925
  type: "number",
37926
37926
  align: "right",
37927
37927
  headerAlign: "right",
@@ -37938,7 +37938,7 @@ function getValueOptions(column2, additionalParams) {
37938
37938
  if (!column2) {
37939
37939
  return void 0;
37940
37940
  }
37941
- return typeof column2.valueOptions === "function" ? column2.valueOptions(_extends$2({
37941
+ return typeof column2.valueOptions === "function" ? column2.valueOptions(_extends$1({
37942
37942
  field: column2.field
37943
37943
  }, additionalParams)) : column2.valueOptions;
37944
37944
  }
@@ -38018,7 +38018,7 @@ function GridEditSingleSelectCell(props) {
38018
38018
  }
38019
38019
  if (reason === "backdropClick" || event.key === "Escape") {
38020
38020
  const params = apiRef.current.getCellParams(id, field);
38021
- apiRef.current.publishEvent("cellEditStop", _extends$2({}, params, {
38021
+ apiRef.current.publishEvent("cellEditStop", _extends$1({}, params, {
38022
38022
  reason: event.key === "Escape" ? GridCellEditStopReasons.escapeKeyDown : GridCellEditStopReasons.cellFocusOut
38023
38023
  }));
38024
38024
  }
@@ -38032,7 +38032,7 @@ function GridEditSingleSelectCell(props) {
38032
38032
  if (!valueOptions || !colDef) {
38033
38033
  return null;
38034
38034
  }
38035
- return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelect, _extends$2({
38035
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelect, _extends$1({
38036
38036
  ref,
38037
38037
  value: valueProp,
38038
38038
  onChange: handleChange,
@@ -38051,7 +38051,7 @@ function GridEditSingleSelectCell(props) {
38051
38051
  children: valueOptions.map((valueOption) => {
38052
38052
  var _a3;
38053
38053
  const value = getOptionValue(valueOption);
38054
- return /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$2({}, ((_a3 = rootProps.slotProps) == null ? void 0 : _a3.baseSelectOption) || {}, {
38054
+ return /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$1({}, ((_a3 = rootProps.slotProps) == null ? void 0 : _a3.baseSelectOption) || {}, {
38055
38055
  native: isSelectNative,
38056
38056
  key: value,
38057
38057
  value
@@ -38128,7 +38128,7 @@ GridEditSingleSelectCell.propTypes = {
38128
38128
  */
38129
38129
  value: PropTypes.any
38130
38130
  };
38131
- const renderEditSingleSelectCell = (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditSingleSelectCell, _extends$2({}, params));
38131
+ const renderEditSingleSelectCell = (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditSingleSelectCell, _extends$1({}, params));
38132
38132
  const _excluded$L = ["item", "applyValue", "type", "apiRef", "focusElementRef", "tabIndex", "isFilterActive", "clearButton", "headerFilterMenu", "slotProps"];
38133
38133
  const renderSingleSelectOptions = ({
38134
38134
  column: column2,
@@ -38145,7 +38145,7 @@ const renderSingleSelectOptions = ({
38145
38145
  if (label === "") {
38146
38146
  label = " ";
38147
38147
  }
38148
- return /* @__PURE__ */ createElement(OptionComponent, _extends$2({}, baseSelectOptionProps, {
38148
+ return /* @__PURE__ */ createElement(OptionComponent, _extends$1({}, baseSelectOptionProps, {
38149
38149
  native: isSelectNative,
38150
38150
  key: value,
38151
38151
  value
@@ -38185,7 +38185,7 @@ function GridFilterInputSingleSelect(props) {
38185
38185
  const onFilterChange = React.useCallback((event) => {
38186
38186
  let value = event.target.value;
38187
38187
  value = getValueFromValueOptions(value, currentValueOptions, getOptionValue);
38188
- applyValue(_extends$2({}, item, {
38188
+ applyValue(_extends$1({}, item, {
38189
38189
  value
38190
38190
  }));
38191
38191
  }, [currentValueOptions, getOptionValue, applyValue, item]);
@@ -38194,7 +38194,7 @@ function GridFilterInputSingleSelect(props) {
38194
38194
  }
38195
38195
  const label = (slotProps == null ? void 0 : slotProps.root.label) ?? apiRef.current.getLocaleText("filterPanelInputLabel");
38196
38196
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
38197
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelect, _extends$2({
38197
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelect, _extends$1({
38198
38198
  fullWidth: true,
38199
38199
  id,
38200
38200
  label,
@@ -38202,7 +38202,7 @@ function GridFilterInputSingleSelect(props) {
38202
38202
  value: filterValue,
38203
38203
  onChange: onFilterChange,
38204
38204
  slotProps: {
38205
- htmlInput: _extends$2({
38205
+ htmlInput: _extends$1({
38206
38206
  tabIndex,
38207
38207
  ref: focusElementRef,
38208
38208
  type: type || "text",
@@ -38302,12 +38302,12 @@ function GridFilterInputMultipleSingleSelect(props) {
38302
38302
  }, []);
38303
38303
  }, [getOptionValue, item.value, resolvedValueOptions]);
38304
38304
  const handleChange = React.useCallback((event, value) => {
38305
- applyValue(_extends$2({}, item, {
38305
+ applyValue(_extends$1({}, item, {
38306
38306
  value: value.map(getOptionValue)
38307
38307
  }));
38308
38308
  }, [applyValue, item, getOptionValue]);
38309
38309
  const BaseAutocomplete2 = rootProps.slots.baseAutocomplete;
38310
- return /* @__PURE__ */ jsxRuntimeExports.jsx(BaseAutocomplete2, _extends$2({
38310
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(BaseAutocomplete2, _extends$1({
38311
38311
  multiple: true,
38312
38312
  options: resolvedValueOptions,
38313
38313
  isOptionEqualToValue,
@@ -38411,7 +38411,7 @@ const defaultGetOptionValue = (value) => {
38411
38411
  const defaultGetOptionLabel = (value) => {
38412
38412
  return isObject$2(value) ? value.label : String(value);
38413
38413
  };
38414
- const GRID_SINGLE_SELECT_COL_DEF = _extends$2({}, GRID_STRING_COL_DEF, {
38414
+ const GRID_SINGLE_SELECT_COL_DEF = _extends$1({}, GRID_STRING_COL_DEF, {
38415
38415
  type: "singleSelect",
38416
38416
  getOptionLabel: defaultGetOptionLabel,
38417
38417
  getOptionValue: defaultGetOptionValue,
@@ -38577,7 +38577,7 @@ const hydrateColumnsWidth = (rawState, dimensions) => {
38577
38577
  widthAllocatedBeforeFlex += computedWidth;
38578
38578
  }
38579
38579
  if (column2.computedWidth !== computedWidth) {
38580
- column2 = _extends$2({}, column2, {
38580
+ column2 = _extends$1({}, column2, {
38581
38581
  computedWidth
38582
38582
  });
38583
38583
  }
@@ -38598,7 +38598,7 @@ const hydrateColumnsWidth = (rawState, dimensions) => {
38598
38598
  columnsLookup[field].computedWidth = computedColumnWidths[field].computedWidth;
38599
38599
  });
38600
38600
  }
38601
- return _extends$2({}, rawState, {
38601
+ return _extends$1({}, rawState, {
38602
38602
  lookup: columnsLookup
38603
38603
  });
38604
38604
  };
@@ -38624,10 +38624,10 @@ const applyInitialState = (columnsState, initialState2) => {
38624
38624
  }
38625
38625
  }
38626
38626
  const newOrderedFields = cleanOrderedFields.length === 0 ? columnsState.orderedFields : [...cleanOrderedFields, ...columnsState.orderedFields.filter((field) => !orderedFieldsLookup[field])];
38627
- const newColumnLookup = _extends$2({}, columnsState.lookup);
38627
+ const newColumnLookup = _extends$1({}, columnsState.lookup);
38628
38628
  for (let i = 0; i < columnsWithUpdatedDimensions.length; i += 1) {
38629
38629
  const field = columnsWithUpdatedDimensions[i];
38630
- const newColDef = _extends$2({}, newColumnLookup[field], {
38630
+ const newColDef = _extends$1({}, newColumnLookup[field], {
38631
38631
  hasBeenResized: true
38632
38632
  });
38633
38633
  Object.entries(dimensions[field]).forEach(([key, value]) => {
@@ -38635,7 +38635,7 @@ const applyInitialState = (columnsState, initialState2) => {
38635
38635
  });
38636
38636
  newColumnLookup[field] = newColDef;
38637
38637
  }
38638
- const newColumnsState = _extends$2({}, columnsState, {
38638
+ const newColumnsState = _extends$1({}, columnsState, {
38639
38639
  orderedFields: newOrderedFields,
38640
38640
  lookup: newColumnLookup
38641
38641
  });
@@ -38670,7 +38670,7 @@ const createColumnsState = ({
38670
38670
  const currentState = gridColumnsStateSelector(apiRef);
38671
38671
  columnsState = {
38672
38672
  orderedFields: keepOnlyColumnsToUpsert ? [] : [...currentState.orderedFields],
38673
- lookup: _extends$2({}, currentState.lookup),
38673
+ lookup: _extends$1({}, currentState.lookup),
38674
38674
  // Will be cleaned later if keepOnlyColumnsToUpsert=true
38675
38675
  columnVisibilityModel,
38676
38676
  initialColumnVisibilityModel: updateInitialVisibilityModel ? columnVisibilityModel : currentState.initialColumnVisibilityModel
@@ -38678,7 +38678,7 @@ const createColumnsState = ({
38678
38678
  }
38679
38679
  let columnsToKeep = {};
38680
38680
  if (keepOnlyColumnsToUpsert && !isInsideStateInitializer) {
38681
- columnsToKeep = Object.keys(columnsState.lookup).reduce((acc, key) => _extends$2({}, acc, {
38681
+ columnsToKeep = Object.keys(columnsState.lookup).reduce((acc, key) => _extends$1({}, acc, {
38682
38682
  [key]: false
38683
38683
  }), {});
38684
38684
  }
@@ -38689,7 +38689,7 @@ const createColumnsState = ({
38689
38689
  columnsToKeep[field] = true;
38690
38690
  let existingState = columnsState.lookup[field];
38691
38691
  if (existingState == null) {
38692
- existingState = _extends$2({}, getDefaultColTypeDef(newColumn.type), {
38692
+ existingState = _extends$1({}, getDefaultColTypeDef(newColumn.type), {
38693
38693
  field,
38694
38694
  hasBeenResized: false
38695
38695
  });
@@ -38698,7 +38698,7 @@ const createColumnsState = ({
38698
38698
  columnsState.orderedFields.push(field);
38699
38699
  }
38700
38700
  if (existingState && existingState.type !== newColumn.type) {
38701
- existingState = _extends$2({}, getDefaultColTypeDef(newColumn.type), {
38701
+ existingState = _extends$1({}, getDefaultColTypeDef(newColumn.type), {
38702
38702
  field
38703
38703
  });
38704
38704
  }
@@ -38711,7 +38711,7 @@ const createColumnsState = ({
38711
38711
  }
38712
38712
  }
38713
38713
  });
38714
- columnsState.lookup[field] = resolveProps(existingState, _extends$2({}, getDefaultColTypeDef(newColumn.type), newColumn, {
38714
+ columnsState.lookup[field] = resolveProps(existingState, _extends$1({}, getDefaultColTypeDef(newColumn.type), newColumn, {
38715
38715
  hasBeenResized
38716
38716
  }));
38717
38717
  });
@@ -38808,7 +38808,7 @@ function GridScrollAreaWrapper(props) {
38808
38808
  if (!dragging) {
38809
38809
  return null;
38810
38810
  }
38811
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollAreaContent, _extends$2({}, props));
38811
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollAreaContent, _extends$1({}, props));
38812
38812
  }
38813
38813
  function GridScrollAreaContent(props) {
38814
38814
  const {
@@ -38834,7 +38834,7 @@ function GridScrollAreaContent(props) {
38834
38834
  };
38835
38835
  const [canScrollMore, setCanScrollMore] = React.useState(getCanScrollMore);
38836
38836
  const rootProps = useGridRootProps();
38837
- const ownerState = _extends$2({}, rootProps, {
38837
+ const ownerState = _extends$1({}, rootProps, {
38838
38838
  scrollDirection
38839
38839
  });
38840
38840
  const classes2 = useUtilityClasses$B(ownerState);
@@ -38982,14 +38982,14 @@ const virtualizationStateInitializer = (state, props) => {
38982
38982
  enabledForRows: !disableVirtualization && !autoHeight,
38983
38983
  renderContext: EMPTY_RENDER_CONTEXT
38984
38984
  };
38985
- return _extends$2({}, state, {
38985
+ return _extends$1({}, state, {
38986
38986
  virtualization
38987
38987
  });
38988
38988
  };
38989
38989
  function useGridVirtualization(apiRef, props) {
38990
38990
  const setVirtualization = (enabled) => {
38991
- apiRef.current.setState((state) => _extends$2({}, state, {
38992
- virtualization: _extends$2({}, state.virtualization, {
38991
+ apiRef.current.setState((state) => _extends$1({}, state, {
38992
+ virtualization: _extends$1({}, state.virtualization, {
38993
38993
  enabled,
38994
38994
  enabledForColumns: enabled,
38995
38995
  enabledForRows: enabled && !props.autoHeight
@@ -38997,8 +38997,8 @@ function useGridVirtualization(apiRef, props) {
38997
38997
  }));
38998
38998
  };
38999
38999
  const setColumnVirtualization = (enabled) => {
39000
- apiRef.current.setState((state) => _extends$2({}, state, {
39001
- virtualization: _extends$2({}, state.virtualization, {
39000
+ apiRef.current.setState((state) => _extends$1({}, state, {
39001
+ virtualization: _extends$1({}, state.virtualization, {
39002
39002
  enabledForColumns: enabled
39003
39003
  })
39004
39004
  }));
@@ -39038,7 +39038,7 @@ const gridFocusedVirtualCellSelector = createSelectorMemoized(gridIsFocusedCellO
39038
39038
  if (columnIndex === -1) {
39039
39039
  return null;
39040
39040
  }
39041
- return _extends$2({}, focusedCell, {
39041
+ return _extends$1({}, focusedCell, {
39042
39042
  rowIndex,
39043
39043
  columnIndex
39044
39044
  });
@@ -39152,8 +39152,8 @@ const useGridVirtualScroller = () => {
39152
39152
  }
39153
39153
  const didRowsIntervalChange = nextRenderContext.firstRowIndex !== previousRowContext.current.firstRowIndex || nextRenderContext.lastRowIndex !== previousRowContext.current.lastRowIndex;
39154
39154
  apiRef.current.setState((state) => {
39155
- return _extends$2({}, state, {
39156
- virtualization: _extends$2({}, state.virtualization, {
39155
+ return _extends$1({}, state, {
39156
+ virtualization: _extends$1({}, state.virtualization, {
39157
39157
  renderContext: nextRenderContext
39158
39158
  })
39159
39159
  });
@@ -39348,7 +39348,7 @@ const useGridVirtualScroller = () => {
39348
39348
  const showBottomBorder = isLastVisibleInSection && params.position === "top";
39349
39349
  const firstColumnIndex = currentRenderContext.firstColumnIndex;
39350
39350
  const lastColumnIndex = currentRenderContext.lastColumnIndex;
39351
- rows.push(/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.row, _extends$2({
39351
+ rows.push(/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.row, _extends$1({
39352
39352
  row: model,
39353
39353
  rowId: id,
39354
39354
  index: rowIndex,
@@ -39555,7 +39555,7 @@ function computeRenderContext(inputs, scrollPosition, scrollCache) {
39555
39555
  lastColumnIndex: inputs.visibleColumns.length
39556
39556
  };
39557
39557
  if (inputs.listView) {
39558
- return _extends$2({}, renderContext, {
39558
+ return _extends$1({}, renderContext, {
39559
39559
  lastColumnIndex: 1
39560
39560
  });
39561
39561
  }
@@ -39833,14 +39833,14 @@ function GridOverlayWrapper(props) {
39833
39833
  if (height2 === 0) {
39834
39834
  height2 = minimalContentHeight;
39835
39835
  }
39836
- const classes2 = useUtilityClasses$A(_extends$2({}, props, {
39836
+ const classes2 = useUtilityClasses$A(_extends$1({}, props, {
39837
39837
  classes: rootProps.classes
39838
39838
  }));
39839
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapperRoot, _extends$2({
39839
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapperRoot, _extends$1({
39840
39840
  className: clsx$1(classes2.root)
39841
39841
  }, props, {
39842
39842
  right: dimensions.columnsTotalWidth - dimensions.viewportOuterSize.width,
39843
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapperInner, _extends$2({
39843
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapperInner, _extends$1({
39844
39844
  className: clsx$1(classes2.inner),
39845
39845
  style: {
39846
39846
  height: height2,
@@ -39896,8 +39896,8 @@ const useGridOverlays = () => {
39896
39896
  }
39897
39897
  const Overlay = (_a3 = rootProps.slots) == null ? void 0 : _a3[overlayType];
39898
39898
  const overlayProps = (_b3 = rootProps.slotProps) == null ? void 0 : _b3[overlayType];
39899
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapper, _extends$2({}, overlaysProps, {
39900
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(Overlay, _extends$2({}, overlayProps))
39899
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapper, _extends$1({}, overlaysProps, {
39900
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Overlay, _extends$1({}, overlayProps))
39901
39901
  }));
39902
39902
  };
39903
39903
  return {
@@ -39924,7 +39924,7 @@ function GridHeaders() {
39924
39924
  const columnGroupsHeaderStructure = useGridSelector(apiRef, gridColumnGroupsHeaderStructureSelector);
39925
39925
  const hasOtherElementInTabSequence = !(columnGroupHeaderTabIndexState === null && columnHeaderTabIndexState === null && hasNoCellTabIndexState);
39926
39926
  const columnsContainerRef = apiRef.current.columnHeadersContainerRef;
39927
- return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaders, _extends$2({
39927
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaders, _extends$1({
39928
39928
  ref: columnsContainerRef,
39929
39929
  visibleColumns,
39930
39930
  filterColumnLookup,
@@ -39974,7 +39974,7 @@ const GridMainContainer = forwardRef((props, ref) => {
39974
39974
  const rootProps = useGridRootProps();
39975
39975
  const configuration2 = useGridConfiguration();
39976
39976
  const ariaAttributes = configuration2.hooks.useGridAriaAttributes();
39977
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(Element$3, _extends$2({
39977
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(Element$3, _extends$1({
39978
39978
  ownerState,
39979
39979
  className: props.className,
39980
39980
  tabIndex: -1
@@ -39999,7 +39999,7 @@ const Element$2 = styled$1("div")({
39999
39999
  });
40000
40000
  function GridTopContainer(props) {
40001
40001
  const classes2 = useUtilityClasses$z();
40002
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Element$2, _extends$2({}, props, {
40002
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Element$2, _extends$1({}, props, {
40003
40003
  className: clsx$1(classes2.root, gridClasses["container--top"]),
40004
40004
  role: "presentation"
40005
40005
  }));
@@ -40032,7 +40032,7 @@ const GridVirtualScrollerContent = forwardRef(function GridVirtualScrollerConten
40032
40032
  classes: rootProps.classes,
40033
40033
  overflowedContent
40034
40034
  };
40035
- return /* @__PURE__ */ jsxRuntimeExports.jsx(VirtualScrollerContentRoot, _extends$2({}, props, {
40035
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(VirtualScrollerContentRoot, _extends$1({}, props, {
40036
40036
  ownerState,
40037
40037
  className: clsx$1(classes2.root, props.className),
40038
40038
  ref
@@ -40134,7 +40134,7 @@ const GridVirtualScrollerRenderZone = forwardRef(function GridVirtualScrollerRen
40134
40134
  const rowsMeta = gridRowsMetaSelector(apiRef);
40135
40135
  return rowsMeta.positions[renderContext.firstRowIndex] ?? 0;
40136
40136
  });
40137
- return /* @__PURE__ */ jsxRuntimeExports.jsx(VirtualScrollerRenderZoneRoot, _extends$2({
40137
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(VirtualScrollerRenderZoneRoot, _extends$1({
40138
40138
  className: clsx$1(classes2.root, className),
40139
40139
  ownerState: rootProps,
40140
40140
  style: {
@@ -40410,7 +40410,7 @@ function GridVirtualScroller(props) {
40410
40410
  getOverlay,
40411
40411
  overlaysProps
40412
40412
  } = useGridOverlays();
40413
- const ownerState = _extends$2({
40413
+ const ownerState = _extends$1({
40414
40414
  classes: rootProps.classes,
40415
40415
  hasScrollX,
40416
40416
  hasPinnedRight
@@ -40428,15 +40428,15 @@ function GridVirtualScroller(props) {
40428
40428
  getScrollAreaProps
40429
40429
  } = virtualScroller;
40430
40430
  const rows = getRows();
40431
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridMainContainer, _extends$2({
40431
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridMainContainer, _extends$1({
40432
40432
  className: classes2.root
40433
40433
  }, getContainerProps(), {
40434
40434
  ownerState,
40435
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollArea, _extends$2({
40435
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollArea, _extends$1({
40436
40436
  scrollDirection: "left"
40437
- }, getScrollAreaProps())), /* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollArea, _extends$2({
40437
+ }, getScrollAreaProps())), /* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollArea, _extends$1({
40438
40438
  scrollDirection: "right"
40439
- }, getScrollAreaProps())), /* @__PURE__ */ jsxRuntimeExports.jsxs(Scroller, _extends$2({
40439
+ }, getScrollAreaProps())), /* @__PURE__ */ jsxRuntimeExports.jsxs(Scroller, _extends$1({
40440
40440
  className: classes2.scroller
40441
40441
  }, getScrollerProps(), {
40442
40442
  ownerState,
@@ -40445,8 +40445,8 @@ function GridVirtualScroller(props) {
40445
40445
  position: "top",
40446
40446
  virtualScroller
40447
40447
  })]
40448
- }), getOverlay(), /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollerContent, _extends$2({}, getContentProps(), {
40449
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridVirtualScrollerRenderZone, _extends$2({}, getRenderZoneProps(), {
40448
+ }), getOverlay(), /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollerContent, _extends$1({}, getContentProps(), {
40449
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridVirtualScrollerRenderZone, _extends$1({}, getRenderZoneProps(), {
40450
40450
  children: [rows, /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.detailPanels, {
40451
40451
  virtualScroller
40452
40452
  })]
@@ -40459,9 +40459,9 @@ function GridVirtualScroller(props) {
40459
40459
  virtualScroller
40460
40460
  })
40461
40461
  })]
40462
- })), hasScrollX && !rootProps.listView && /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollbar, _extends$2({
40462
+ })), hasScrollX && !rootProps.listView && /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollbar, _extends$1({
40463
40463
  position: "horizontal"
40464
- }, getScrollbarHorizontalProps())), hasScrollY && /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollbar, _extends$2({
40464
+ }, getScrollbarHorizontalProps())), hasScrollY && /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollbar, _extends$1({
40465
40465
  position: "vertical"
40466
40466
  }, getScrollbarVerticalProps())), props.children]
40467
40467
  }));
@@ -40472,7 +40472,7 @@ function GridFooterPlaceholder() {
40472
40472
  if (rootProps.hideFooter) {
40473
40473
  return null;
40474
40474
  }
40475
- return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.footer, _extends$2(
40475
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.footer, _extends$1(
40476
40476
  {},
40477
40477
  (_a2 = rootProps.slotProps) == null ? void 0 : _a2.footer
40478
40478
  /* FIXME: typing error */
@@ -40498,7 +40498,7 @@ function computeSlots({
40498
40498
  if (!overrides || Object.keys(overrides).length === 0) {
40499
40499
  return defaultSlots2;
40500
40500
  }
40501
- const result = _extends$2({}, defaultSlots2);
40501
+ const result = _extends$1({}, defaultSlots2);
40502
40502
  Object.keys(overrides).forEach((key) => {
40503
40503
  const k = key;
40504
40504
  if (overrides[k] !== void 0) {
@@ -40711,7 +40711,7 @@ const GridCell = forwardRef(function GridCell2(props, ref) {
40711
40711
  border: 0
40712
40712
  };
40713
40713
  }
40714
- const cellStyle = attachPinnedStyle(_extends$2({
40714
+ const cellStyle = attachPinnedStyle(_extends$1({
40715
40715
  "--width": `${width2}px`
40716
40716
  }, styleProp), isRtl, pinnedPosition, pinnedOffset);
40717
40717
  const isLeftPinned = pinnedPosition === PinnedColumnPosition.LEFT;
@@ -40748,7 +40748,7 @@ const GridCell = forwardRef(function GridCell2(props, ref) {
40748
40748
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
40749
40749
  "data-colindex": colIndex,
40750
40750
  role: "presentation",
40751
- style: _extends$2({
40751
+ style: _extends$1({
40752
40752
  width: "var(--width)"
40753
40753
  }, style2)
40754
40754
  });
@@ -40763,7 +40763,7 @@ const GridCell = forwardRef(function GridCell2(props, ref) {
40763
40763
  const updatedRow = apiRef.current.getRowWithUpdatedValues(rowId, column2.field);
40764
40764
  const editCellStateRest = _objectWithoutPropertiesLoose(editCellState, _excluded2$7);
40765
40765
  const formattedValue = column2.valueFormatter ? column2.valueFormatter(editCellState.value, updatedRow, column2, apiRef) : cellParams.formattedValue;
40766
- const params = _extends$2({}, cellParams, {
40766
+ const params = _extends$1({}, cellParams, {
40767
40767
  row: updatedRow,
40768
40768
  formattedValue
40769
40769
  }, editCellStateRest);
@@ -40785,7 +40785,7 @@ const GridCell = forwardRef(function GridCell2(props, ref) {
40785
40785
  onDragEnter: publish("cellDragEnter", onDragEnter),
40786
40786
  onDragOver: publish("cellDragOver", onDragOver)
40787
40787
  };
40788
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$2({
40788
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$1({
40789
40789
  className: clsx$1(classes2.root, classNames, className),
40790
40790
  role: "gridcell",
40791
40791
  "data-field": field,
@@ -40887,16 +40887,16 @@ function GridSkeletonCell(props) {
40887
40887
  height: CONTENT_HEIGHT
40888
40888
  };
40889
40889
  }, [type]);
40890
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$2({
40890
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$1({
40891
40891
  "data-field": field,
40892
40892
  className: clsx$1(classes2.root, className),
40893
- style: _extends$2({
40893
+ style: _extends$1({
40894
40894
  height: height2,
40895
40895
  maxWidth: width2,
40896
40896
  minWidth: width2
40897
40897
  }, style2)
40898
40898
  }, other, {
40899
- children: !empty && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSkeleton, _extends$2({}, skeletonProps))
40899
+ children: !empty && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSkeleton, _extends$1({}, skeletonProps))
40900
40900
  }));
40901
40901
  }
40902
40902
  GridSkeletonCell.propTypes = {
@@ -41901,7 +41901,7 @@ function GridPreferencesPanel() {
41901
41901
  filterPanelTriggerRef
41902
41902
  } = useGridPreferencePanelContext();
41903
41903
  const panelContent = apiRef.current.unstable_applyPipeProcessors("preferencePanel", null, preferencePanelState.openedPanelValue ?? GridPreferencePanelsValue.filters);
41904
- return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.panel, _extends$2({
41904
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.panel, _extends$1({
41905
41905
  id: preferencePanelState.panelId,
41906
41906
  open: columns2.length > 0 && preferencePanelState.open,
41907
41907
  "aria-labelledby": preferencePanelState.labelId,
@@ -41914,7 +41914,7 @@ function GridHeader() {
41914
41914
  var _a2;
41915
41915
  const rootProps = useGridRootProps();
41916
41916
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
41917
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridPreferencesPanel, {}), rootProps.showToolbar && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.toolbar, _extends$2({}, (_a2 = rootProps.slotProps) == null ? void 0 : _a2.toolbar))]
41917
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridPreferencesPanel, {}), rootProps.showToolbar && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.toolbar, _extends$1({}, (_a2 = rootProps.slotProps) == null ? void 0 : _a2.toolbar))]
41918
41918
  });
41919
41919
  }
41920
41920
  const _excluded$G = ["className", "children"];
@@ -41952,7 +41952,7 @@ const GridRoot = forwardRef(function GridRoot2(props, ref) {
41952
41952
  if (isSSR2) {
41953
41953
  return null;
41954
41954
  }
41955
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridRootStyles, _extends$2({
41955
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridRootStyles, _extends$1({
41956
41956
  className: clsx$1(classes2.root, className, cssVariables.className),
41957
41957
  ownerState
41958
41958
  }, other, {
@@ -42000,7 +42000,7 @@ const GridFooterContainer = forwardRef(function GridFooterContainer2(props, ref)
42000
42000
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$F);
42001
42001
  const rootProps = useGridRootProps();
42002
42002
  const classes2 = useUtilityClasses$r(rootProps);
42003
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridFooterContainerRoot, _extends$2({
42003
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridFooterContainerRoot, _extends$1({
42004
42004
  className: clsx$1(classes2.root, className),
42005
42005
  ownerState: rootProps
42006
42006
  }, other, {
@@ -42044,7 +42044,7 @@ const GridOverlay = forwardRef(function GridOverlay2(props, ref) {
42044
42044
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$E);
42045
42045
  const rootProps = useGridRootProps();
42046
42046
  const classes2 = useUtilityClasses$q(rootProps);
42047
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayRoot, _extends$2({
42047
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayRoot, _extends$1({
42048
42048
  className: clsx$1(classes2.root, className),
42049
42049
  ownerState: rootProps
42050
42050
  }, other, {
@@ -42067,7 +42067,7 @@ function useGridComponentRenderer(defaultElement, render, props, state = {}) {
42067
42067
  props.className = clsx$1(render.props.className, props.className);
42068
42068
  }
42069
42069
  if (render.props.style || props.style) {
42070
- props.style = _extends$2({}, props.style, render.props.style);
42070
+ props.style = _extends$1({}, props.style, render.props.style);
42071
42071
  }
42072
42072
  if (render.props.sx || props.sx) {
42073
42073
  props.sx = mergeSx(props.sx, render.props.sx);
@@ -42207,7 +42207,7 @@ const Toolbar$1 = forwardRef(function Toolbar2(props, ref) {
42207
42207
  onItemFocus,
42208
42208
  onItemDisabled
42209
42209
  }), [focusableItemId, registerItem, unregisterItem, onItemKeyDown, onItemFocus, onItemDisabled]);
42210
- const element = useGridComponentRenderer(ToolbarRoot$1, render, _extends$2({
42210
+ const element = useGridComponentRenderer(ToolbarRoot$1, render, _extends$1({
42211
42211
  role: "toolbar",
42212
42212
  "aria-orientation": "horizontal",
42213
42213
  "aria-label": rootProps.label || void 0,
@@ -42284,7 +42284,7 @@ const ToolbarButton = forwardRef(function ToolbarButton2(props, ref) {
42284
42284
  }
42285
42285
  previousAriaDisabled.current = ariaDisabled;
42286
42286
  }, [ariaDisabled, id, onItemDisabled]);
42287
- const element = useGridComponentRenderer(rootProps.slots.baseIconButton, render, _extends$2({}, (_a2 = rootProps.slotProps) == null ? void 0 : _a2.baseIconButton, {
42287
+ const element = useGridComponentRenderer(rootProps.slots.baseIconButton, render, _extends$1({}, (_a2 = rootProps.slotProps) == null ? void 0 : _a2.baseIconButton, {
42288
42288
  tabIndex: focusableItemId === id ? 0 : -1
42289
42289
  }, other, {
42290
42290
  disabled,
@@ -42341,7 +42341,7 @@ const ColumnHeaderMenuIcon = /* @__PURE__ */ React.memo((props) => {
42341
42341
  } = props;
42342
42342
  const apiRef = useGridApiContext();
42343
42343
  const rootProps = useGridRootProps();
42344
- const ownerState = _extends$2({}, props, {
42344
+ const ownerState = _extends$1({}, props, {
42345
42345
  classes: rootProps.classes
42346
42346
  });
42347
42347
  const classes2 = useUtilityClasses$o(ownerState);
@@ -42353,11 +42353,11 @@ const ColumnHeaderMenuIcon = /* @__PURE__ */ React.memo((props) => {
42353
42353
  const columnName = colDef.headerName ?? colDef.field;
42354
42354
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
42355
42355
  className: classes2.root,
42356
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$2({
42356
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$1({
42357
42357
  title: apiRef.current.getLocaleText("columnMenuLabel"),
42358
42358
  enterDelay: 1e3
42359
42359
  }, (_a2 = rootProps.slotProps) == null ? void 0 : _a2.baseTooltip, {
42360
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$2({
42360
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$1({
42361
42361
  ref: iconButtonRef,
42362
42362
  tabIndex: -1,
42363
42363
  className: classes2.button,
@@ -42406,7 +42406,7 @@ function GridColumnHeaderMenu({
42406
42406
  target,
42407
42407
  onClose: hideMenu,
42408
42408
  onExited,
42409
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(ContentComponent, _extends$2({
42409
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(ContentComponent, _extends$1({
42410
42410
  colDef,
42411
42411
  hideMenu,
42412
42412
  open,
@@ -42648,7 +42648,7 @@ const ColumnHeaderInnerTitle = forwardRef(function ColumnHeaderInnerTitle2(props
42648
42648
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$B);
42649
42649
  const rootProps = useGridRootProps();
42650
42650
  const classes2 = useUtilityClasses$n(rootProps);
42651
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderTitleRoot, _extends$2({
42651
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderTitleRoot, _extends$1({
42652
42652
  className: clsx$1(classes2.root, className),
42653
42653
  ownerState: rootProps
42654
42654
  }, other, {
@@ -42674,7 +42674,7 @@ function GridColumnHeaderTitle(props) {
42674
42674
  }
42675
42675
  }
42676
42676
  }, [description, label]);
42677
- return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$2({
42677
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$1({
42678
42678
  title: description || tooltip
42679
42679
  }, (_a2 = rootProps.slotProps) == null ? void 0 : _a2.baseTooltip, {
42680
42680
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnHeaderInnerTitle, {
@@ -42718,7 +42718,7 @@ function GridColumnHeaderSeparatorRaw(props) {
42718
42718
  side = GridColumnHeaderSeparatorSides.Right
42719
42719
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$A);
42720
42720
  const rootProps = useGridRootProps();
42721
- const ownerState = _extends$2({}, props, {
42721
+ const ownerState = _extends$1({}, props, {
42722
42722
  side,
42723
42723
  classes: rootProps.classes
42724
42724
  });
@@ -42729,7 +42729,7 @@ function GridColumnHeaderSeparatorRaw(props) {
42729
42729
  }, []);
42730
42730
  return (
42731
42731
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
42732
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$2({
42732
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$1({
42733
42733
  className: classes2.root,
42734
42734
  style: {
42735
42735
  minHeight: height2
@@ -42798,9 +42798,9 @@ const GridGenericColumnHeaderItem = forwardRef(function GridGenericColumnHeaderI
42798
42798
  }
42799
42799
  }
42800
42800
  }, [apiRef, hasFocus]);
42801
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$2({
42801
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$1({
42802
42802
  className: clsx$1(classes2.root, headerClassName),
42803
- style: _extends$2({}, style2, {
42803
+ style: _extends$1({}, style2, {
42804
42804
  width: width2
42805
42805
  }),
42806
42806
  role: "columnheader",
@@ -42809,7 +42809,7 @@ const GridGenericColumnHeaderItem = forwardRef(function GridGenericColumnHeaderI
42809
42809
  "aria-sort": ariaSort
42810
42810
  }, other, {
42811
42811
  ref: handleRef,
42812
- children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$2({
42812
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$1({
42813
42813
  className: classes2.draggableContainer,
42814
42814
  draggable: isDraggable,
42815
42815
  role: "presentation"
@@ -42826,7 +42826,7 @@ const GridGenericColumnHeaderItem = forwardRef(function GridGenericColumnHeaderI
42826
42826
  })
42827
42827
  }), columnTitleIconButtons]
42828
42828
  }), columnMenuIconButton]
42829
- })), /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderSeparator, _extends$2({
42829
+ })), /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderSeparator, _extends$1({
42830
42830
  resizable: !rootProps.disableColumnResize && !!resizable,
42831
42831
  resizing: isResizing,
42832
42832
  height: height2,
@@ -42911,7 +42911,7 @@ function GridColumnHeaderItem(props) {
42911
42911
  if (colDef.renderHeader) {
42912
42912
  headerComponent = colDef.renderHeader(apiRef.current.getColumnHeaderParams(colDef.field));
42913
42913
  }
42914
- const ownerState = _extends$2({}, props, {
42914
+ const ownerState = _extends$1({}, props, {
42915
42915
  classes: rootProps.classes,
42916
42916
  showRightBorder,
42917
42917
  showLeftBorder
@@ -42977,10 +42977,10 @@ function GridColumnHeaderItem(props) {
42977
42977
  const sortingOrder = colDef.sortingOrder ?? rootProps.sortingOrder;
42978
42978
  const showSortIcon = (colDef.sortable || sortDirection != null) && !colDef.hideSortIcons && !rootProps.disableColumnSorting;
42979
42979
  const columnTitleIconButtons = /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
42980
- children: [!rootProps.disableColumnFilter && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaderFilterIconButton, _extends$2({
42980
+ children: [!rootProps.disableColumnFilter && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaderFilterIconButton, _extends$1({
42981
42981
  field: colDef.field,
42982
42982
  counter: filterItemsCounter
42983
- }, (_b2 = rootProps.slotProps) == null ? void 0 : _b2.columnHeaderFilterIconButton)), showSortIcon && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaderSortIcon, _extends$2({
42983
+ }, (_b2 = rootProps.slotProps) == null ? void 0 : _b2.columnHeaderFilterIconButton)), showSortIcon && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaderSortIcon, _extends$1({
42984
42984
  field: colDef.field,
42985
42985
  direction: sortDirection,
42986
42986
  index: sortIndex,
@@ -43005,8 +43005,8 @@ function GridColumnHeaderItem(props) {
43005
43005
  colDef
43006
43006
  }) : colDef.headerClassName;
43007
43007
  const label = colDef.headerName ?? colDef.field;
43008
- const style2 = React.useMemo(() => attachPinnedStyle(_extends$2({}, props.style), isRtl, pinnedPosition, pinnedOffset), [pinnedPosition, pinnedOffset, props.style, isRtl]);
43009
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnHeaderItem, _extends$2({
43008
+ const style2 = React.useMemo(() => attachPinnedStyle(_extends$1({}, props.style), isRtl, pinnedPosition, pinnedOffset), [pinnedPosition, pinnedOffset, props.style, isRtl]);
43009
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnHeaderItem, _extends$1({
43010
43010
  ref: headerCellRef,
43011
43011
  classes: classes2,
43012
43012
  columnMenuOpen,
@@ -43087,7 +43087,7 @@ const GridIconButtonContainer = forwardRef(function GridIconButtonContainer2(pro
43087
43087
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$y);
43088
43088
  const rootProps = useGridRootProps();
43089
43089
  const classes2 = useUtilityClasses$k(rootProps);
43090
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridIconButtonContainerRoot, _extends$2({
43090
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridIconButtonContainerRoot, _extends$1({
43091
43091
  className: clsx$1(classes2.root, className),
43092
43092
  ownerState: rootProps
43093
43093
  }, other, {
@@ -43115,7 +43115,7 @@ function getIcon(icons, direction, className, sortingOrder) {
43115
43115
  Icon = icons.columnUnsortedIcon;
43116
43116
  iconProps.sortingOrder = sortingOrder;
43117
43117
  }
43118
- return Icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$2({
43118
+ return Icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$1({
43119
43119
  fontSize: "small",
43120
43120
  className
43121
43121
  }, iconProps)) : null;
@@ -43130,7 +43130,7 @@ function GridColumnHeaderSortIconRaw(props) {
43130
43130
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$x);
43131
43131
  const apiRef = useGridApiContext();
43132
43132
  const rootProps = useGridRootProps();
43133
- const ownerState = _extends$2({}, props, {
43133
+ const ownerState = _extends$1({}, props, {
43134
43134
  classes: rootProps.classes
43135
43135
  });
43136
43136
  const classes2 = useUtilityClasses$j(ownerState);
@@ -43138,7 +43138,7 @@ function GridColumnHeaderSortIconRaw(props) {
43138
43138
  if (!iconElement) {
43139
43139
  return null;
43140
43140
  }
43141
- const iconButton = /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$2({
43141
+ const iconButton = /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$1({
43142
43142
  tabIndex: -1,
43143
43143
  "aria-label": apiRef.current.getLocaleText("columnHeaderSortIconLabel"),
43144
43144
  title: apiRef.current.getLocaleText("columnHeaderSortIconLabel"),
@@ -43181,7 +43181,7 @@ function GridColumnHeaderFilterIconButtonWrapped(props) {
43181
43181
  if (!props.counter) {
43182
43182
  return null;
43183
43183
  }
43184
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderFilterIconButton, _extends$2({}, props));
43184
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderFilterIconButton, _extends$1({}, props));
43185
43185
  }
43186
43186
  GridColumnHeaderFilterIconButtonWrapped.propTypes = {
43187
43187
  // ----------------------------- Warning --------------------------------
@@ -43201,7 +43201,7 @@ function GridColumnHeaderFilterIconButton(props) {
43201
43201
  } = props;
43202
43202
  const apiRef = useGridApiContext();
43203
43203
  const rootProps = useGridRootProps();
43204
- const ownerState = _extends$2({}, props, {
43204
+ const ownerState = _extends$1({}, props, {
43205
43205
  classes: rootProps.classes
43206
43206
  });
43207
43207
  const classes2 = useUtilityClasses$i(ownerState);
@@ -43227,7 +43227,7 @@ function GridColumnHeaderFilterIconButton(props) {
43227
43227
  if (!counter2) {
43228
43228
  return null;
43229
43229
  }
43230
- const iconButton = /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$2({
43230
+ const iconButton = /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$1({
43231
43231
  id: labelId,
43232
43232
  onClick: toggleFilter,
43233
43233
  "aria-label": apiRef.current.getLocaleText("columnHeaderFiltersLabel"),
@@ -43242,7 +43242,7 @@ function GridColumnHeaderFilterIconButton(props) {
43242
43242
  fontSize: "small"
43243
43243
  })
43244
43244
  }));
43245
- return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$2({
43245
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$1({
43246
43246
  title: apiRef.current.getLocaleText("columnHeaderFiltersTooltipActive")(counter2),
43247
43247
  enterDelay: 1e3
43248
43248
  }, (_b2 = rootProps.slotProps) == null ? void 0 : _b2.baseTooltip, {
@@ -43392,7 +43392,7 @@ const GridColumnMenuContainer = forwardRef(function GridColumnMenuContainer2(pro
43392
43392
  hideMenu(event);
43393
43393
  }
43394
43394
  }, [hideMenu]);
43395
- return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledMenuList, _extends$2({
43395
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledMenuList, _extends$1({
43396
43396
  as: rootProps.slots.baseMenuList,
43397
43397
  id,
43398
43398
  className: clsx$1(gridClasses.menuList, className),
@@ -43428,14 +43428,14 @@ const useGridColumnMenuSlots = (props) => {
43428
43428
  colDef,
43429
43429
  addDividers = true
43430
43430
  } = props;
43431
- const processedComponents = React.useMemo(() => _extends$2({}, defaultSlots2, slots), [defaultSlots2, slots]);
43431
+ const processedComponents = React.useMemo(() => _extends$1({}, defaultSlots2, slots), [defaultSlots2, slots]);
43432
43432
  const processedSlotProps = React.useMemo(() => {
43433
43433
  if (!slotProps || Object.keys(slotProps).length === 0) {
43434
43434
  return defaultSlotProps;
43435
43435
  }
43436
- const mergedProps = _extends$2({}, slotProps);
43436
+ const mergedProps = _extends$1({}, slotProps);
43437
43437
  Object.entries(defaultSlotProps).forEach(([key, currentSlotProps]) => {
43438
- mergedProps[key] = _extends$2({}, currentSlotProps, slotProps[key] || {});
43438
+ mergedProps[key] = _extends$1({}, currentSlotProps, slotProps[key] || {});
43439
43439
  });
43440
43440
  return mergedProps;
43441
43441
  }, [defaultSlotProps, slotProps]);
@@ -43462,7 +43462,7 @@ const useGridColumnMenuSlots = (props) => {
43462
43462
  const processedComponentProps = processedSlotProps[key];
43463
43463
  if (processedComponentProps) {
43464
43464
  const customProps = _objectWithoutPropertiesLoose(processedComponentProps, _excluded$v);
43465
- itemProps = _extends$2({}, itemProps, customProps);
43465
+ itemProps = _extends$1({}, itemProps, customProps);
43466
43466
  }
43467
43467
  return addDividers && index !== sorted.length - 1 ? [...acc, [processedComponents[key], itemProps], [rootProps.slots.baseDivider, {}]] : [...acc, [processedComponents[key], itemProps]];
43468
43468
  }, []);
@@ -43539,7 +43539,7 @@ GridColumnMenuManageItem.propTypes = {
43539
43539
  };
43540
43540
  function GridColumnMenuColumnsItem(props) {
43541
43541
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
43542
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuHideItem, _extends$2({}, props)), /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuManageItem, _extends$2({}, props))]
43542
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuHideItem, _extends$1({}, props)), /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuManageItem, _extends$1({}, props))]
43543
43543
  });
43544
43544
  }
43545
43545
  GridColumnMenuColumnsItem.propTypes = {
@@ -43664,15 +43664,15 @@ const GridGenericColumnMenu = forwardRef(function GridGenericColumnMenu2(props,
43664
43664
  slots,
43665
43665
  slotProps
43666
43666
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$u);
43667
- const orderedSlots = useGridColumnMenuSlots(_extends$2({}, other, {
43667
+ const orderedSlots = useGridColumnMenuSlots(_extends$1({}, other, {
43668
43668
  defaultSlots: defaultSlots2,
43669
43669
  defaultSlotProps,
43670
43670
  slots,
43671
43671
  slotProps
43672
43672
  }));
43673
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuContainer, _extends$2({}, other, {
43673
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuContainer, _extends$1({}, other, {
43674
43674
  ref,
43675
- children: orderedSlots.map(([Component, otherProps], index) => /* @__PURE__ */ jsxRuntimeExports.jsx(Component, _extends$2({}, otherProps), index))
43675
+ children: orderedSlots.map(([Component, otherProps], index) => /* @__PURE__ */ jsxRuntimeExports.jsx(Component, _extends$1({}, otherProps), index))
43676
43676
  }));
43677
43677
  });
43678
43678
  GridGenericColumnMenu.propTypes = {
@@ -43708,7 +43708,7 @@ GridGenericColumnMenu.propTypes = {
43708
43708
  slots: PropTypes.object
43709
43709
  };
43710
43710
  const GridColumnMenu = forwardRef(function GridColumnMenu2(props, ref) {
43711
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnMenu, _extends$2({}, props, {
43711
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnMenu, _extends$1({}, props, {
43712
43712
  ref,
43713
43713
  defaultSlots: GRID_COLUMN_MENU_SLOTS,
43714
43714
  defaultSlotProps: GRID_COLUMN_MENU_SLOT_PROPS
@@ -43763,7 +43763,7 @@ const GridPanelWrapper = forwardRef(function GridPanelWrapper2(props, ref) {
43763
43763
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$t);
43764
43764
  const rootProps = useGridRootProps();
43765
43765
  const classes2 = useUtilityClasses$h(rootProps);
43766
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelWrapperRoot, _extends$2({
43766
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelWrapperRoot, _extends$1({
43767
43767
  tabIndex: -1,
43768
43768
  className: clsx$1(classes2.root, className),
43769
43769
  ownerState: rootProps
@@ -43774,8 +43774,8 @@ const GridPanelWrapper = forwardRef(function GridPanelWrapper2(props, ref) {
43774
43774
  function GridColumnsPanel(props) {
43775
43775
  var _a2;
43776
43776
  const rootProps = useGridRootProps();
43777
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelWrapper, _extends$2({}, props, {
43778
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnsManagement, _extends$2({}, (_a2 = rootProps.slotProps) == null ? void 0 : _a2.columnsManagement))
43777
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelWrapper, _extends$1({}, props, {
43778
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnsManagement, _extends$1({}, (_a2 = rootProps.slotProps) == null ? void 0 : _a2.columnsManagement))
43779
43779
  }));
43780
43780
  }
43781
43781
  const _excluded$s = ["children", "className", "classes"];
@@ -43831,7 +43831,7 @@ const GridPanel = forwardRef((props, ref) => {
43831
43831
  if (!fallbackTarget) {
43832
43832
  return null;
43833
43833
  }
43834
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelRoot, _extends$2({
43834
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelRoot, _extends$1({
43835
43835
  as: rootProps.slots.basePopper,
43836
43836
  ownerState: rootProps,
43837
43837
  placement: "bottom-end",
@@ -43898,7 +43898,7 @@ function GridPanelContent(props) {
43898
43898
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$r);
43899
43899
  const rootProps = useGridRootProps();
43900
43900
  const classes2 = useUtilityClasses$g(rootProps);
43901
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelContentRoot, _extends$2({
43901
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelContentRoot, _extends$1({
43902
43902
  className: clsx$1(classes2.root, className),
43903
43903
  ownerState: rootProps
43904
43904
  }, other));
@@ -43936,7 +43936,7 @@ function GridPanelFooter(props) {
43936
43936
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$q);
43937
43937
  const rootProps = useGridRootProps();
43938
43938
  const classes2 = useUtilityClasses$f(rootProps);
43939
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelFooterRoot, _extends$2({
43939
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelFooterRoot, _extends$1({
43940
43940
  className: clsx$1(classes2.root, className),
43941
43941
  ownerState: rootProps
43942
43942
  }, other));
@@ -44138,7 +44138,7 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref) {
44138
44138
  filterValue = void 0;
44139
44139
  }
44140
44140
  }
44141
- applyFilterChanges(_extends$2({}, item, {
44141
+ applyFilterChanges(_extends$1({}, item, {
44142
44142
  field,
44143
44143
  operator: newOperator.value,
44144
44144
  value: filterValue
@@ -44148,7 +44148,7 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref) {
44148
44148
  const operator = event.target.value;
44149
44149
  const newOperator = currentColumn == null ? void 0 : currentColumn.filterOperators.find((op) => op.value === operator);
44150
44150
  const eraseItemValue = !(newOperator == null ? void 0 : newOperator.InputComponent) || (newOperator == null ? void 0 : newOperator.InputComponent) !== (currentOperator == null ? void 0 : currentOperator.InputComponent);
44151
- applyFilterChanges(_extends$2({}, item, {
44151
+ applyFilterChanges(_extends$1({}, item, {
44152
44152
  operator,
44153
44153
  value: eraseItemValue ? void 0 : item.value
44154
44154
  }));
@@ -44170,16 +44170,16 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref) {
44170
44170
  }
44171
44171
  }
44172
44172
  }), [currentOperator]);
44173
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridFilterFormRoot, _extends$2({
44173
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridFilterFormRoot, _extends$1({
44174
44174
  className: classes2.root,
44175
44175
  "data-id": item.id,
44176
44176
  ownerState: rootProps
44177
44177
  }, other, {
44178
44178
  ref,
44179
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormDeleteIcon, _extends$2({}, deleteIconProps, {
44179
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormDeleteIcon, _extends$1({}, deleteIconProps, {
44180
44180
  className: clsx$1(classes2.deleteIcon, deleteIconProps.className),
44181
44181
  ownerState: rootProps,
44182
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$2({
44182
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$1({
44183
44183
  "aria-label": apiRef.current.getLocaleText("filterPanelDeleteIconLabel"),
44184
44184
  title: apiRef.current.getLocaleText("filterPanelDeleteIconLabel"),
44185
44185
  onClick: handleDeleteFilter,
@@ -44190,7 +44190,7 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref) {
44190
44190
  fontSize: "small"
44191
44191
  })
44192
44192
  }))
44193
- })), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormLogicOperatorInput, _extends$2({
44193
+ })), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormLogicOperatorInput, _extends$1({
44194
44194
  as: rootProps.slots.baseSelect,
44195
44195
  sx: [hasLogicOperatorColumn ? {
44196
44196
  display: "flex"
@@ -44215,12 +44215,12 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref) {
44215
44215
  disabled: !!disableMultiFilterOperator || logicOperators.length === 1,
44216
44216
  native: isBaseSelectNative
44217
44217
  }, (_d2 = rootProps.slotProps) == null ? void 0 : _d2.baseSelect, {
44218
- children: logicOperators.map((logicOperator) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$2({}, baseSelectOptionProps, {
44218
+ children: logicOperators.map((logicOperator) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$1({}, baseSelectOptionProps, {
44219
44219
  native: isBaseSelectNative,
44220
44220
  key: logicOperator.toString(),
44221
44221
  value: logicOperator.toString()
44222
44222
  }), apiRef.current.getLocaleText(getLogicOperatorLocaleKey(logicOperator))))
44223
- })), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormColumnInput, _extends$2({
44223
+ })), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormColumnInput, _extends$1({
44224
44224
  as: rootProps.slots.baseSelect
44225
44225
  }, columnInputProps, {
44226
44226
  className: clsx$1(classes2.columnInput, columnInputProps.className),
@@ -44234,12 +44234,12 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref) {
44234
44234
  native: isBaseSelectNative,
44235
44235
  disabled: readOnly
44236
44236
  }, (_e = rootProps.slotProps) == null ? void 0 : _e.baseSelect, {
44237
- children: sortedFilteredColumns.map((col) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$2({}, baseSelectOptionProps, {
44237
+ children: sortedFilteredColumns.map((col) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$1({}, baseSelectOptionProps, {
44238
44238
  native: isBaseSelectNative,
44239
44239
  key: col.field,
44240
44240
  value: col.field
44241
44241
  }), getColumnLabel(col)))
44242
- })), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormOperatorInput, _extends$2({
44242
+ })), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormOperatorInput, _extends$1({
44243
44243
  as: rootProps.slots.baseSelect,
44244
44244
  size: "small"
44245
44245
  }, operatorInputProps, {
@@ -44254,15 +44254,15 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref) {
44254
44254
  inputRef: filterSelectorRef,
44255
44255
  disabled: readOnly
44256
44256
  }, (_f = rootProps.slotProps) == null ? void 0 : _f.baseSelect, {
44257
- children: (_g = currentColumn == null ? void 0 : currentColumn.filterOperators) == null ? void 0 : _g.map((operator) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$2({}, baseSelectOptionProps, {
44257
+ children: (_g = currentColumn == null ? void 0 : currentColumn.filterOperators) == null ? void 0 : _g.map((operator) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$1({}, baseSelectOptionProps, {
44258
44258
  native: isBaseSelectNative,
44259
44259
  key: operator.value,
44260
44260
  value: operator.value
44261
44261
  }), operator.label || apiRef.current.getLocaleText(`filterOperator${capitalize(operator.value)}`)))
44262
- })), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormValueInput, _extends$2({}, valueInputPropsOther, {
44262
+ })), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormValueInput, _extends$1({}, valueInputPropsOther, {
44263
44263
  className: clsx$1(classes2.valueInput, valueInputPropsOther.className),
44264
44264
  ownerState: rootProps,
44265
- children: (currentOperator == null ? void 0 : currentOperator.InputComponent) ? /* @__PURE__ */ jsxRuntimeExports.jsx(currentOperator.InputComponent, _extends$2({
44265
+ children: (currentOperator == null ? void 0 : currentOperator.InputComponent) ? /* @__PURE__ */ jsxRuntimeExports.jsx(currentOperator.InputComponent, _extends$1({
44266
44266
  apiRef,
44267
44267
  item,
44268
44268
  applyValue: applyFilterChanges,
@@ -44490,7 +44490,7 @@ const GridFilterPanel = forwardRef(function GridFilterPanel2(props, ref) {
44490
44490
  apiRef.current.deleteFilterItem(validFilters[0]);
44491
44491
  return apiRef.current.hideFilterPanel();
44492
44492
  }
44493
- return apiRef.current.setFilterModel(_extends$2({}, filterModel, {
44493
+ return apiRef.current.setFilterModel(_extends$1({}, filterModel, {
44494
44494
  items: readOnlyFilters
44495
44495
  }), "removeAllFilterItems");
44496
44496
  }, [apiRef, readOnlyFilters, filterModel, validFilters]);
@@ -44504,10 +44504,10 @@ const GridFilterPanel = forwardRef(function GridFilterPanel2(props, ref) {
44504
44504
  lastFilterRef.current.focus();
44505
44505
  }
44506
44506
  }, [validFilters.length]);
44507
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridPanelWrapper, _extends$2({}, other, {
44507
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridPanelWrapper, _extends$1({}, other, {
44508
44508
  ref,
44509
44509
  children: [/* @__PURE__ */ jsxRuntimeExports.jsxs(GridPanelContent, {
44510
- children: [readOnlyFilters.map((item, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridFilterForm, _extends$2({
44510
+ children: [readOnlyFilters.map((item, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridFilterForm, _extends$1({
44511
44511
  item,
44512
44512
  applyFilterChanges: applyFilter,
44513
44513
  deleteFilter,
@@ -44519,7 +44519,7 @@ const GridFilterPanel = forwardRef(function GridFilterPanel2(props, ref) {
44519
44519
  readOnly: true,
44520
44520
  logicOperators,
44521
44521
  columnsSort
44522
- }, filterFormProps), item.id == null ? index : item.id)), validFilters.map((item, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridFilterForm, _extends$2({
44522
+ }, filterFormProps), item.id == null ? index : item.id)), validFilters.map((item, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridFilterForm, _extends$1({
44523
44523
  item,
44524
44524
  applyFilterChanges: applyFilter,
44525
44525
  deleteFilter,
@@ -44532,12 +44532,12 @@ const GridFilterPanel = forwardRef(function GridFilterPanel2(props, ref) {
44532
44532
  columnsSort
44533
44533
  }, filterFormProps), item.id == null ? index + readOnlyFilters.length : item.id))]
44534
44534
  }), !rootProps.disableMultipleColumnsFiltering && !(disableAddFilterButton && disableRemoveAllButton) ? /* @__PURE__ */ jsxRuntimeExports.jsxs(GridPanelFooter, {
44535
- children: [!disableAddFilterButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$2({
44535
+ children: [!disableAddFilterButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$1({
44536
44536
  onClick: addNewFilter,
44537
44537
  startIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.filterPanelAddIcon, {})
44538
44538
  }, (_a2 = rootProps.slotProps) == null ? void 0 : _a2.baseButton, {
44539
44539
  children: apiRef.current.getLocaleText("filterPanelAddFilter")
44540
- })) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", {}), !disableRemoveAllButton && validFilters.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$2({
44540
+ })) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", {}), !disableRemoveAllButton && validFilters.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$1({
44541
44541
  onClick: handleRemoveAll,
44542
44542
  startIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.filterPanelRemoveAllIcon, {})
44543
44543
  }, (_b2 = rootProps.slotProps) == null ? void 0 : _b2.baseButton, {
@@ -44678,7 +44678,7 @@ function GridShadowScrollArea(props) {
44678
44678
  const {
44679
44679
  children
44680
44680
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded$n);
44681
- return /* @__PURE__ */ jsxRuntimeExports.jsx(ShadowScrollArea, _extends$2({}, rest, {
44681
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(ShadowScrollArea, _extends$1({}, rest, {
44682
44682
  children
44683
44683
  }));
44684
44684
  }
@@ -44745,7 +44745,7 @@ function GridColumnsManagement(props) {
44745
44745
  }, [sortedColumns, searchValue, searchPredicate, getTogglableColumns]);
44746
44746
  const toggleAllColumns = React.useCallback((isVisible) => {
44747
44747
  const currentModel = gridColumnVisibilityModelSelector(apiRef);
44748
- const newModel = _extends$2({}, currentModel);
44748
+ const newModel = _extends$1({}, currentModel);
44749
44749
  const togglableColumns = getTogglableColumns ? getTogglableColumns(columns2) : null;
44750
44750
  (toggleAllMode === "filteredOnly" ? currentColumns : columns2).forEach((col) => {
44751
44751
  if (col.hideable && (togglableColumns == null || togglableColumns.includes(col.field))) {
@@ -44788,7 +44788,7 @@ function GridColumnsManagement(props) {
44788
44788
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnsManagementHeader, {
44789
44789
  className: classes2.header,
44790
44790
  ownerState: rootProps,
44791
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(SearchInput, _extends$2({
44791
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(SearchInput, _extends$1({
44792
44792
  as: rootProps.slots.baseTextField,
44793
44793
  ownerState: rootProps,
44794
44794
  placeholder: apiRef.current.getLocaleText("columnsManagementSearchTitle"),
@@ -44803,7 +44803,7 @@ function GridColumnsManagement(props) {
44803
44803
  startAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.quickFilterIcon, {
44804
44804
  fontSize: "small"
44805
44805
  }),
44806
- endAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$2({
44806
+ endAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$1({
44807
44807
  size: "small",
44808
44808
  "aria-label": apiRef.current.getLocaleText("columnsManagementDeleteIconLabel"),
44809
44809
  style: searchValue ? {
@@ -44834,7 +44834,7 @@ function GridColumnsManagement(props) {
44834
44834
  ownerState: rootProps,
44835
44835
  children: [currentColumns.map((column2) => {
44836
44836
  var _a3;
44837
- return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$2({
44837
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$1({
44838
44838
  className: classes2.row,
44839
44839
  disabled: column2.hideable === false,
44840
44840
  checked: columnVisibilityModel[column2.field] !== false,
@@ -44853,7 +44853,7 @@ function GridColumnsManagement(props) {
44853
44853
  }), !disableShowHideToggle || !disableResetButton ? /* @__PURE__ */ jsxRuntimeExports.jsxs(GridColumnsManagementFooter, {
44854
44854
  ownerState: rootProps,
44855
44855
  className: classes2.footer,
44856
- children: [!disableShowHideToggle ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$2({
44856
+ children: [!disableShowHideToggle ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$1({
44857
44857
  disabled: hideableColumns.length === 0,
44858
44858
  checked: allHideableColumnsVisible,
44859
44859
  indeterminate: !allHideableColumnsVisible && !allHideableColumnsHidden,
@@ -44861,7 +44861,7 @@ function GridColumnsManagement(props) {
44861
44861
  name: apiRef.current.getLocaleText("columnsManagementShowHideAllText"),
44862
44862
  label: apiRef.current.getLocaleText("columnsManagementShowHideAllText"),
44863
44863
  density: "compact"
44864
- }, (_c2 = rootProps.slotProps) == null ? void 0 : _c2.baseCheckbox)) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", {}), !disableResetButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$2({
44864
+ }, (_c2 = rootProps.slotProps) == null ? void 0 : _c2.baseCheckbox)) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", {}), !disableResetButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$1({
44865
44865
  onClick: () => apiRef.current.setColumnVisibilityModel(initialColumnVisibilityModel),
44866
44866
  disabled: isResetDisabled
44867
44867
  }, (_d2 = rootProps.slotProps) == null ? void 0 : _d2.baseButton, {
@@ -44994,11 +44994,11 @@ const GridToolbarExportContainer = forwardRef(function GridToolbarExportContaine
44994
44994
  return null;
44995
44995
  }
44996
44996
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
44997
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$2({
44997
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$1({
44998
44998
  title: apiRef.current.getLocaleText("toolbarExportLabel"),
44999
44999
  enterDelay: 1e3
45000
45000
  }, (_a2 = rootProps.slotProps) == null ? void 0 : _a2.baseTooltip, tooltipProps, {
45001
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$2({
45001
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$1({
45002
45002
  size: "small",
45003
45003
  startIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.exportIcon, {}),
45004
45004
  "aria-expanded": open,
@@ -45053,7 +45053,7 @@ function GridCsvExportMenuItem(props) {
45053
45053
  hideMenu,
45054
45054
  options
45055
45055
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$m);
45056
- return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$2({
45056
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$1({
45057
45057
  onClick: () => {
45058
45058
  apiRef.current.exportDataAsCsv(options);
45059
45059
  hideMenu == null ? void 0 : hideMenu();
@@ -45089,7 +45089,7 @@ function GridPrintExportMenuItem(props) {
45089
45089
  hideMenu,
45090
45090
  options
45091
45091
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded2$5);
45092
- return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$2({
45092
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$1({
45093
45093
  onClick: () => {
45094
45094
  apiRef.current.exportDataAsPrint(options);
45095
45095
  hideMenu == null ? void 0 : hideMenu();
@@ -45133,7 +45133,7 @@ const GridToolbarExport = forwardRef(function GridToolbarExport2(props, ref) {
45133
45133
  if (preProcessedButtons.length === 0) {
45134
45134
  return null;
45135
45135
  }
45136
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarExportContainer, _extends$2({}, other, {
45136
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarExportContainer, _extends$1({}, other, {
45137
45137
  ref,
45138
45138
  children: preProcessedButtons.map((button, index) => /* @__PURE__ */ React.cloneElement(button.component, {
45139
45139
  key: index
@@ -45352,7 +45352,7 @@ function QuickFilter(props) {
45352
45352
  ref.current.style.setProperty("--trigger-width", `${(_a2 = triggerRef.current) == null ? void 0 : _a2.offsetWidth}px`);
45353
45353
  }
45354
45354
  }, []);
45355
- const element = useGridComponentRenderer("div", render, _extends$2({
45355
+ const element = useGridComponentRenderer("div", render, _extends$1({
45356
45356
  className: resolvedClassName
45357
45357
  }, other, {
45358
45358
  ref
@@ -45454,9 +45454,9 @@ const QuickFilterControl = forwardRef(function QuickFilterControl2(props, ref) {
45454
45454
  onValueChange(event);
45455
45455
  onChange == null ? void 0 : onChange(event);
45456
45456
  };
45457
- const element = useGridComponentRenderer(rootProps.slots.baseTextField, render, _extends$2({}, (_a2 = rootProps.slotProps) == null ? void 0 : _a2.baseTextField, {
45458
- slotProps: _extends$2({
45459
- htmlInput: _extends$2({
45457
+ const element = useGridComponentRenderer(rootProps.slots.baseTextField, render, _extends$1({}, (_a2 = rootProps.slotProps) == null ? void 0 : _a2.baseTextField, {
45458
+ slotProps: _extends$1({
45459
+ htmlInput: _extends$1({
45460
45460
  role: "searchbox",
45461
45461
  id: controlId,
45462
45462
  tabIndex: state.expanded ? void 0 : -1
@@ -45526,7 +45526,7 @@ const QuickFilterClear = forwardRef(function QuickFilterClear2(props, ref) {
45526
45526
  clearValue();
45527
45527
  onClick == null ? void 0 : onClick(event);
45528
45528
  };
45529
- const element = useGridComponentRenderer(rootProps.slots.baseIconButton, render, _extends$2({}, (_a2 = rootProps.slotProps) == null ? void 0 : _a2.baseIconButton, {
45529
+ const element = useGridComponentRenderer(rootProps.slots.baseIconButton, render, _extends$1({}, (_a2 = rootProps.slotProps) == null ? void 0 : _a2.baseIconButton, {
45530
45530
  className: resolvedClassName,
45531
45531
  tabIndex: -1
45532
45532
  }, other, {
@@ -45583,7 +45583,7 @@ const QuickFilterTrigger = forwardRef(function QuickFilterTrigger2(props, ref) {
45583
45583
  onExpandedChange(!state.expanded);
45584
45584
  onClick == null ? void 0 : onClick(event);
45585
45585
  };
45586
- const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$2({}, (_a2 = rootProps.slotProps) == null ? void 0 : _a2.baseButton, {
45586
+ const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$1({}, (_a2 = rootProps.slotProps) == null ? void 0 : _a2.baseButton, {
45587
45587
  className: resolvedClassName,
45588
45588
  "aria-controls": controlId,
45589
45589
  "aria-expanded": state.expanded
@@ -45685,16 +45685,16 @@ function GridToolbarQuickFilter(props) {
45685
45685
  formatter: quickFilterFormatter,
45686
45686
  debounceMs,
45687
45687
  render: (quickFilterProps, state) => {
45688
- const currentOwnerState = _extends$2({}, ownerState, {
45688
+ const currentOwnerState = _extends$1({}, ownerState, {
45689
45689
  expanded: state.expanded
45690
45690
  });
45691
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridQuickFilterRoot, _extends$2({}, quickFilterProps, {
45691
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridQuickFilterRoot, _extends$1({}, quickFilterProps, {
45692
45692
  className: clsx$1(classes2.root, className),
45693
45693
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx(QuickFilterTrigger, {
45694
45694
  render: (triggerProps) => /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, {
45695
45695
  title: apiRef.current.getLocaleText("toolbarQuickFilterLabel"),
45696
45696
  enterDelay: 0,
45697
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(GridQuickFilterTrigger, _extends$2({
45697
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(GridQuickFilterTrigger, _extends$1({
45698
45698
  className: classes2.trigger
45699
45699
  }, triggerProps, {
45700
45700
  ownerState: currentOwnerState,
@@ -45712,7 +45712,7 @@ function GridToolbarQuickFilter(props) {
45712
45712
  ref,
45713
45713
  slotProps: controlSlotProps
45714
45714
  } = _ref, controlProps = _objectWithoutPropertiesLoose(_ref, _excluded2$4);
45715
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridQuickFilterTextField, _extends$2({
45715
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridQuickFilterTextField, _extends$1({
45716
45716
  as: rootProps.slots.baseTextField,
45717
45717
  className: classes2.control,
45718
45718
  ownerState: currentOwnerState,
@@ -45720,8 +45720,8 @@ function GridToolbarQuickFilter(props) {
45720
45720
  "aria-label": apiRef.current.getLocaleText("toolbarQuickFilterLabel"),
45721
45721
  placeholder: apiRef.current.getLocaleText("toolbarQuickFilterPlaceholder"),
45722
45722
  size: "small",
45723
- slotProps: _extends$2({
45724
- input: _extends$2({
45723
+ slotProps: _extends$1({
45724
+ input: _extends$1({
45725
45725
  startAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.quickFilterIcon, {
45726
45726
  fontSize: "small"
45727
45727
  }),
@@ -45813,7 +45813,7 @@ const FilterPanelTrigger = forwardRef(function FilterPanelTrigger2(props, ref) {
45813
45813
  }
45814
45814
  onPointerUp == null ? void 0 : onPointerUp(event);
45815
45815
  };
45816
- const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$2({}, (_a2 = rootProps.slotProps) == null ? void 0 : _a2.baseButton, {
45816
+ const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$1({}, (_a2 = rootProps.slotProps) == null ? void 0 : _a2.baseButton, {
45817
45817
  id: buttonId,
45818
45818
  "aria-haspopup": "true",
45819
45819
  "aria-expanded": open ? "true" : void 0,
@@ -45888,7 +45888,7 @@ const ColumnsPanelTrigger = forwardRef(function ColumnsPanelTrigger2(props, ref)
45888
45888
  }
45889
45889
  onPointerUp == null ? void 0 : onPointerUp(event);
45890
45890
  };
45891
- const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$2({}, (_a2 = rootProps.slotProps) == null ? void 0 : _a2.baseButton, {
45891
+ const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$1({}, (_a2 = rootProps.slotProps) == null ? void 0 : _a2.baseButton, {
45892
45892
  id: buttonId,
45893
45893
  "aria-haspopup": "true",
45894
45894
  "aria-expanded": open ? "true" : void 0,
@@ -45940,7 +45940,7 @@ const ExportCsv = forwardRef(function ExportCsv2(props, ref) {
45940
45940
  apiRef.current.exportDataAsCsv(options);
45941
45941
  onClick == null ? void 0 : onClick(event);
45942
45942
  };
45943
- const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$2({}, (_a2 = rootProps.slotProps) == null ? void 0 : _a2.baseButton, {
45943
+ const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$1({}, (_a2 = rootProps.slotProps) == null ? void 0 : _a2.baseButton, {
45944
45944
  onClick: handleClick
45945
45945
  }, other, {
45946
45946
  ref
@@ -46000,7 +46000,7 @@ const ExportPrint = forwardRef(function ExportPrint2(props, ref) {
46000
46000
  apiRef.current.exportDataAsPrint(options);
46001
46001
  onClick == null ? void 0 : onClick(event);
46002
46002
  };
46003
- const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$2({}, (_a2 = rootProps.slotProps) == null ? void 0 : _a2.baseButton, {
46003
+ const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$1({}, (_a2 = rootProps.slotProps) == null ? void 0 : _a2.baseButton, {
46004
46004
  onClick: handleClick
46005
46005
  }, other, {
46006
46006
  ref
@@ -46080,7 +46080,7 @@ function GridToolbarDivider(props) {
46080
46080
  const other = _objectWithoutPropertiesLoose(props, _excluded$c);
46081
46081
  const rootProps = useGridRootProps();
46082
46082
  const classes2 = useUtilityClasses$b(rootProps);
46083
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, _extends$2({
46083
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, _extends$1({
46084
46084
  as: rootProps.slots.baseDivider,
46085
46085
  orientation: "vertical",
46086
46086
  className: classes2.divider
@@ -46098,7 +46098,7 @@ function GridToolbarLabel(props) {
46098
46098
  const other = _objectWithoutPropertiesLoose(props, _excluded2$3);
46099
46099
  const rootProps = useGridRootProps();
46100
46100
  const classes2 = useUtilityClasses$b(rootProps);
46101
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Label, _extends$2({
46101
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Label, _extends$1({
46102
46102
  className: classes2.label
46103
46103
  }, other));
46104
46104
  }
@@ -46133,7 +46133,7 @@ function GridToolbar(props) {
46133
46133
  }), !rootProps.disableColumnFilter && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, {
46134
46134
  title: apiRef.current.getLocaleText("toolbarFilters"),
46135
46135
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(FilterPanelTrigger, {
46136
- render: (triggerProps, state) => /* @__PURE__ */ jsxRuntimeExports.jsx(ToolbarButton, _extends$2({}, triggerProps, {
46136
+ render: (triggerProps, state) => /* @__PURE__ */ jsxRuntimeExports.jsx(ToolbarButton, _extends$1({}, triggerProps, {
46137
46137
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseBadge, {
46138
46138
  badgeContent: state.filterCount,
46139
46139
  color: "primary",
@@ -46163,18 +46163,18 @@ function GridToolbar(props) {
46163
46163
  open: exportMenuOpen,
46164
46164
  onClose: closeExportMenu,
46165
46165
  position: "bottom-end",
46166
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs(rootProps.slots.baseMenuList, _extends$2({
46166
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs(rootProps.slots.baseMenuList, _extends$1({
46167
46167
  id: exportMenuId,
46168
46168
  "aria-labelledby": exportMenuTriggerId,
46169
46169
  autoFocusItem: true
46170
46170
  }, (_a2 = rootProps.slotProps) == null ? void 0 : _a2.baseMenuList, {
46171
46171
  children: [!(printOptions == null ? void 0 : printOptions.disableToolbarButton) && /* @__PURE__ */ jsxRuntimeExports.jsx(ExportPrint, {
46172
- render: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$2({}, (_b2 = rootProps.slotProps) == null ? void 0 : _b2.baseMenuItem)),
46172
+ render: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$1({}, (_b2 = rootProps.slotProps) == null ? void 0 : _b2.baseMenuItem)),
46173
46173
  options: printOptions,
46174
46174
  onClick: closeExportMenu,
46175
46175
  children: apiRef.current.getLocaleText("toolbarExportPrint")
46176
46176
  }), !(csvOptions == null ? void 0 : csvOptions.disableToolbarButton) && /* @__PURE__ */ jsxRuntimeExports.jsx(ExportCsv, {
46177
- render: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$2({}, (_c2 = rootProps.slotProps) == null ? void 0 : _c2.baseMenuItem)),
46177
+ render: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$1({}, (_c2 = rootProps.slotProps) == null ? void 0 : _c2.baseMenuItem)),
46178
46178
  options: csvOptions,
46179
46179
  onClick: closeExportMenu,
46180
46180
  children: apiRef.current.getLocaleText("toolbarExportCSV")
@@ -46182,7 +46182,7 @@ function GridToolbar(props) {
46182
46182
  }))
46183
46183
  })]
46184
46184
  }), showQuickFilter && /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
46185
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarDivider, {}), /* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarQuickFilter, _extends$2({}, quickFilterProps))]
46185
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarDivider, {}), /* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarQuickFilter, _extends$1({}, quickFilterProps))]
46186
46186
  })]
46187
46187
  });
46188
46188
  }
@@ -46252,7 +46252,7 @@ const GridSelectedRowCount = forwardRef(function GridSelectedRowCount2(props, re
46252
46252
  const ownerState = useGridRootProps();
46253
46253
  const classes2 = useUtilityClasses$a(ownerState);
46254
46254
  const rowSelectedText = apiRef.current.getLocaleText("footerRowSelected")(selectedRowCount);
46255
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridSelectedRowCountRoot, _extends$2({
46255
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridSelectedRowCountRoot, _extends$1({
46256
46256
  className: clsx$1(classes2.root, className),
46257
46257
  ownerState
46258
46258
  }, other, {
@@ -46278,12 +46278,12 @@ const GridFooter = forwardRef(function GridFooter2(props, ref) {
46278
46278
  const selectedRowCountElement = !rootProps.hideFooterSelectedRowCount && selectedRowCount > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(GridSelectedRowCount, {
46279
46279
  selectedRowCount
46280
46280
  }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", {});
46281
- const rowCountElement = !rootProps.hideFooterRowCount && !rootProps.pagination ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.footerRowCount, _extends$2({}, (_a2 = rootProps.slotProps) == null ? void 0 : _a2.footerRowCount, {
46281
+ const rowCountElement = !rootProps.hideFooterRowCount && !rootProps.pagination ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.footerRowCount, _extends$1({}, (_a2 = rootProps.slotProps) == null ? void 0 : _a2.footerRowCount, {
46282
46282
  rowCount: totalTopLevelRowCount,
46283
46283
  visibleRowCount: visibleTopLevelRowCount
46284
46284
  })) : null;
46285
46285
  const paginationElement = rootProps.pagination && !rootProps.hideFooterPagination && rootProps.slots.pagination && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.pagination, {});
46286
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridFooterContainer, _extends$2({}, props, {
46286
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridFooterContainer, _extends$1({}, props, {
46287
46287
  ref,
46288
46288
  children: [selectedRowCountElement, rowCountElement, paginationElement]
46289
46289
  }));
@@ -46443,7 +46443,7 @@ const GridSkeletonLoadingOverlayInner = forwardRef(function GridSkeletonLoadingO
46443
46443
  "data-colindex": colIndex,
46444
46444
  empty: visibleColumns && !visibleColumns.has(column2.field),
46445
46445
  className: clsx$1(isPinnedLeft && gridClasses["cell--pinnedLeft"], isPinnedRight && gridClasses["cell--pinnedRight"], showRightBorder && gridClasses["cell--withRightBorder"], showLeftBorder && gridClasses["cell--withLeftBorder"]),
46446
- style: _extends$2({
46446
+ style: _extends$1({
46447
46447
  "--width": `${column2.computedWidth}px`
46448
46448
  }, pinnedStyle)
46449
46449
  }, `skeleton-column-${i}-${column2.field}`));
@@ -46504,7 +46504,7 @@ const GridSkeletonLoadingOverlayInner = forwardRef(function GridSkeletonLoadingO
46504
46504
  }
46505
46505
  };
46506
46506
  useGridEvent(apiRef, "columnResize", handleColumnResize);
46507
- return /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonOverlay, _extends$2({
46507
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonOverlay, _extends$1({
46508
46508
  className: classes2.root
46509
46509
  }, rest, {
46510
46510
  ref: handleRef,
@@ -46516,7 +46516,7 @@ const GridSkeletonLoadingOverlay = forwardRef(function GridSkeletonLoadingOverla
46516
46516
  const dimensions = useGridSelector(apiRef, gridDimensionsSelector);
46517
46517
  const viewportHeight = (dimensions == null ? void 0 : dimensions.viewportInnerSize.height) ?? 0;
46518
46518
  const skeletonRowsCount = Math.ceil(viewportHeight / dimensions.rowHeight);
46519
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridSkeletonLoadingOverlayInner, _extends$2({}, props, {
46519
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridSkeletonLoadingOverlayInner, _extends$1({}, props, {
46520
46520
  skeletonRowsCount,
46521
46521
  ref: forwardedRef
46522
46522
  }));
@@ -46551,8 +46551,8 @@ const GridLoadingOverlay = forwardRef(function GridLoadingOverlay2(props, ref) {
46551
46551
  const rowsCount = useGridSelector(apiRef, gridRowCountSelector);
46552
46552
  const activeVariant = LOADING_VARIANTS[rowsCount === 0 ? noRowsVariant : variant];
46553
46553
  const Component = activeVariant.component(rootProps);
46554
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$2({
46555
- style: _extends$2({}, activeVariant.style, style2)
46554
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$1({
46555
+ style: _extends$1({}, activeVariant.style, style2)
46556
46556
  }, other, {
46557
46557
  ref,
46558
46558
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(Component, {})
@@ -46578,7 +46578,7 @@ GridLoadingOverlay.propTypes = {
46578
46578
  const GridNoRowsOverlay = forwardRef(function GridNoRowsOverlay2(props, ref) {
46579
46579
  const apiRef = useGridApiContext();
46580
46580
  const noRowsLabel = apiRef.current.getLocaleText("noRowsLabel");
46581
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$2({}, props, {
46581
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$1({}, props, {
46582
46582
  ref,
46583
46583
  children: noRowsLabel
46584
46584
  }));
@@ -46599,9 +46599,9 @@ const GridNoColumnsOverlay = forwardRef(function GridNoColumnsOverlay2(props, re
46599
46599
  apiRef.current.showPreferences(GridPreferencePanelsValue.columns);
46600
46600
  };
46601
46601
  const showManageColumnsButton = !rootProps.disableColumnSelector && columns2.length > 0;
46602
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridOverlay, _extends$2({}, props, {
46602
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridOverlay, _extends$1({}, props, {
46603
46603
  ref,
46604
- children: [apiRef.current.getLocaleText("noColumnsOverlayLabel"), showManageColumnsButton && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$2({
46604
+ children: [apiRef.current.getLocaleText("noColumnsOverlayLabel"), showManageColumnsButton && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$1({
46605
46605
  size: "small"
46606
46606
  }, (_a2 = rootProps.slotProps) == null ? void 0 : _a2.baseButton, {
46607
46607
  onClick: handleOpenManageColumns,
@@ -46718,7 +46718,7 @@ const GridRowCount = forwardRef(function GridRowCount2(props, ref) {
46718
46718
  return null;
46719
46719
  }
46720
46720
  const text = visibleRowCount < rowCount ? apiRef.current.getLocaleText("footerTotalVisibleRows")(visibleRowCount, rowCount) : rowCount.toLocaleString();
46721
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridRowCountRoot, _extends$2({
46721
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridRowCountRoot, _extends$1({
46722
46722
  className: clsx$1(classes2.root, className),
46723
46723
  ownerState
46724
46724
  }, other, {
@@ -46852,7 +46852,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
46852
46852
  slotProps,
46853
46853
  disableColumnReorder
46854
46854
  } = rootProps;
46855
- const heightEntry = useGridSelector(apiRef, () => _extends$2({}, apiRef.current.getRowHeightEntry(rowId)), void 0, objectShallowCompare);
46855
+ const heightEntry = useGridSelector(apiRef, () => _extends$1({}, apiRef.current.getRowHeightEntry(rowId)), void 0, objectShallowCompare);
46856
46856
  const style2 = React.useMemo(() => {
46857
46857
  if (isNotVisible) {
46858
46858
  return {
@@ -46861,7 +46861,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
46861
46861
  height: 0
46862
46862
  };
46863
46863
  }
46864
- const rowStyle = _extends$2({}, styleProp, {
46864
+ const rowStyle = _extends$1({}, styleProp, {
46865
46865
  maxHeight: rowHeight === "auto" ? "none" : rowHeight,
46866
46866
  // max-height doesn't support "auto"
46867
46867
  minHeight: rowHeight,
@@ -46886,7 +46886,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
46886
46886
  const ariaAttributes = getRowAriaAttributes(rowNode, index);
46887
46887
  if (typeof rootProps.getRowClassName === "function") {
46888
46888
  const indexRelativeToCurrentPage = index - (((_a2 = currentPage.range) == null ? void 0 : _a2.firstRowIndex) || 0);
46889
- const rowParams = _extends$2({}, apiRef.current.getRowParams(rowId), {
46889
+ const rowParams = _extends$1({}, apiRef.current.getRowParams(rowId), {
46890
46890
  isFirstVisible: indexRelativeToCurrentPage === 0,
46891
46891
  isLastVisible: indexRelativeToCurrentPage === currentPage.rows.length - 1,
46892
46892
  indexRelativeToCurrentPage
@@ -46917,7 +46917,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
46917
46917
  const cellIsNotVisible = pinnedPosition === PinnedColumnPosition.VIRTUAL;
46918
46918
  const showLeftBorder = shouldCellShowLeftBorder(pinnedPosition, indexInSection);
46919
46919
  const showRightBorder = shouldCellShowRightBorder(pinnedPosition, indexInSection, sectionLength, rootProps.showCellVerticalBorder, gridHasFiller);
46920
- return /* @__PURE__ */ jsxRuntimeExports.jsx(slots.cell, _extends$2({
46920
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(slots.cell, _extends$1({
46921
46921
  column: column2,
46922
46922
  width: width2,
46923
46923
  rowId,
@@ -46966,7 +46966,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
46966
46966
  onMouseOut: publish("rowMouseOut", onMouseOut),
46967
46967
  onMouseOver: publish("rowMouseOver", onMouseOver)
46968
46968
  } : null;
46969
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$2({
46969
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$1({
46970
46970
  "data-id": rowId,
46971
46971
  "data-rowindex": index,
46972
46972
  role: "row",
@@ -47111,7 +47111,7 @@ const useGridIsRtl = (apiRef) => {
47111
47111
  if (isFirstEffect.current) {
47112
47112
  isFirstEffect.current = false;
47113
47113
  } else {
47114
- apiRef.current.setState((state) => _extends$2({}, state, {
47114
+ apiRef.current.setState((state) => _extends$1({}, state, {
47115
47115
  isRtl
47116
47116
  }));
47117
47117
  }
@@ -47666,7 +47666,7 @@ const useGridStateInitialization = (apiRef) => {
47666
47666
  }, [apiRef]);
47667
47667
  const updateControlState = React.useCallback((key, state, reason) => {
47668
47668
  return apiRef.current.setState((previousState) => {
47669
- return _extends$2({}, previousState, {
47669
+ return _extends$1({}, previousState, {
47670
47670
  [key]: state(previousState[key])
47671
47671
  });
47672
47672
  }, reason);
@@ -47682,7 +47682,7 @@ const useGridStateInitialization = (apiRef) => {
47682
47682
  useGridApiMethod(apiRef, privateStateApi, "private");
47683
47683
  };
47684
47684
  const propsStateInitializer = (state, props) => {
47685
- return _extends$2({}, state, {
47685
+ return _extends$1({}, state, {
47686
47686
  props: {
47687
47687
  getRowId: props.getRowId
47688
47688
  }
@@ -47690,7 +47690,7 @@ const propsStateInitializer = (state, props) => {
47690
47690
  };
47691
47691
  const useGridProps = (apiRef, props) => {
47692
47692
  React.useEffect(() => {
47693
- apiRef.current.setState((state) => _extends$2({}, state, {
47693
+ apiRef.current.setState((state) => _extends$1({}, state, {
47694
47694
  props: {
47695
47695
  getRowId: props.getRowId
47696
47696
  }
@@ -47942,7 +47942,7 @@ const useGridClipboard = (apiRef, props) => {
47942
47942
  useGridNativeEventListener(apiRef, () => apiRef.current.rootElementRef.current, "keydown", handleCopy);
47943
47943
  useGridEventPriority(apiRef, "clipboardCopy", props.onClipboardCopy);
47944
47944
  };
47945
- const columnMenuStateInitializer = (state) => _extends$2({}, state, {
47945
+ const columnMenuStateInitializer = (state) => _extends$1({}, state, {
47946
47946
  columnMenu: {
47947
47947
  open: false
47948
47948
  }
@@ -47962,7 +47962,7 @@ const useGridColumnMenu = (apiRef) => {
47962
47962
  return state;
47963
47963
  }
47964
47964
  logger.debug("Opening Column Menu");
47965
- return _extends$2({}, state, {
47965
+ return _extends$1({}, state, {
47966
47966
  columnMenu: {
47967
47967
  open: true,
47968
47968
  field
@@ -48002,7 +48002,7 @@ const useGridColumnMenu = (apiRef) => {
48002
48002
  if (shouldUpdate) {
48003
48003
  apiRef.current.setState((state) => {
48004
48004
  logger.debug("Hiding Column Menu");
48005
- return _extends$2({}, state, {
48005
+ return _extends$1({}, state, {
48006
48006
  columnMenu: newState
48007
48007
  });
48008
48008
  });
@@ -48036,7 +48036,7 @@ const columnsStateInitializer = (state, props, apiRef) => {
48036
48036
  columnVisibilityModel: props.columnVisibilityModel ?? ((_c2 = (_b2 = props.initialState) == null ? void 0 : _b2.columns) == null ? void 0 : _c2.columnVisibilityModel) ?? {},
48037
48037
  keepOnlyColumnsToUpsert: true
48038
48038
  });
48039
- return _extends$2({}, state, {
48039
+ return _extends$1({}, state, {
48040
48040
  columns: columnsState,
48041
48041
  // In pro/premium, this part of the state is defined. We give it an empty but defined value
48042
48042
  // for the community version.
@@ -48074,7 +48074,7 @@ function useGridColumns(apiRef, props) {
48074
48074
  var _a3, _b3;
48075
48075
  const currentModel = gridColumnVisibilityModelSelector(apiRef);
48076
48076
  if (currentModel !== model) {
48077
- apiRef.current.setState((state) => _extends$2({}, state, {
48077
+ apiRef.current.setState((state) => _extends$1({}, state, {
48078
48078
  columns: createColumnsState({
48079
48079
  apiRef,
48080
48080
  columnsToUpsert: [],
@@ -48100,7 +48100,7 @@ function useGridColumns(apiRef, props) {
48100
48100
  const columnVisibilityModel = gridColumnVisibilityModelSelector(apiRef);
48101
48101
  const isCurrentlyVisible = columnVisibilityModel[field] ?? true;
48102
48102
  if (isVisible !== isCurrentlyVisible) {
48103
- const newModel = _extends$2({}, columnVisibilityModel, {
48103
+ const newModel = _extends$1({}, columnVisibilityModel, {
48104
48104
  [field]: isVisible
48105
48105
  });
48106
48106
  apiRef.current.setColumnVisibilityModel(newModel);
@@ -48120,7 +48120,7 @@ function useGridColumns(apiRef, props) {
48120
48120
  const updatedColumns = [...allColumns];
48121
48121
  const fieldRemoved = updatedColumns.splice(oldIndexPosition, 1)[0];
48122
48122
  updatedColumns.splice(targetIndexPosition, 0, fieldRemoved);
48123
- setGridColumnsState(_extends$2({}, gridColumnsStateSelector(apiRef), {
48123
+ setGridColumnsState(_extends$1({}, gridColumnsStateSelector(apiRef), {
48124
48124
  orderedFields: updatedColumns
48125
48125
  }));
48126
48126
  const params = {
@@ -48134,12 +48134,12 @@ function useGridColumns(apiRef, props) {
48134
48134
  logger.debug(`Updating column ${field} width to ${width2}`);
48135
48135
  const columnsState = gridColumnsStateSelector(apiRef);
48136
48136
  const column2 = columnsState.lookup[field];
48137
- const newColumn = _extends$2({}, column2, {
48137
+ const newColumn = _extends$1({}, column2, {
48138
48138
  width: width2,
48139
48139
  hasBeenResized: true
48140
48140
  });
48141
- setGridColumnsState(hydrateColumnsWidth(_extends$2({}, columnsState, {
48142
- lookup: _extends$2({}, columnsState.lookup, {
48141
+ setGridColumnsState(hydrateColumnsWidth(_extends$1({}, columnsState, {
48142
+ lookup: _extends$1({}, columnsState.lookup, {
48143
48143
  [field]: newColumn
48144
48144
  })
48145
48145
  }), apiRef.current.getRootDimensions()));
@@ -48200,7 +48200,7 @@ function useGridColumns(apiRef, props) {
48200
48200
  if (Object.keys(dimensions).length > 0) {
48201
48201
  columnsStateToExport.dimensions = dimensions;
48202
48202
  }
48203
- return _extends$2({}, prevState, {
48203
+ return _extends$1({}, prevState, {
48204
48204
  columns: columnsStateToExport
48205
48205
  });
48206
48206
  }, [apiRef, props.columnVisibilityModel, (_a2 = props.initialState) == null ? void 0 : _a2.columns]);
@@ -48228,7 +48228,7 @@ function useGridColumns(apiRef, props) {
48228
48228
  var _a3;
48229
48229
  if (value === GridPreferencePanelsValue.columns) {
48230
48230
  const ColumnsPanel = props.slots.columnsPanel;
48231
- return /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnsPanel, _extends$2({}, (_a3 = props.slotProps) == null ? void 0 : _a3.columnsPanel));
48231
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnsPanel, _extends$1({}, (_a3 = props.slotProps) == null ? void 0 : _a3.columnsPanel));
48232
48232
  }
48233
48233
  return initialValue;
48234
48234
  }, [props.slots.columnsPanel, (_b2 = props.slotProps) == null ? void 0 : _b2.columnsPanel]);
@@ -48293,13 +48293,13 @@ function useGridColumns(apiRef, props) {
48293
48293
  }, [apiRef, logger, props.columnVisibilityModel]);
48294
48294
  }
48295
48295
  function mergeColumnsState(columnsState) {
48296
- return (state) => _extends$2({}, state, {
48296
+ return (state) => _extends$1({}, state, {
48297
48297
  columns: columnsState
48298
48298
  });
48299
48299
  }
48300
48300
  const densityStateInitializer = (state, props) => {
48301
48301
  var _a2;
48302
- return _extends$2({}, state, {
48302
+ return _extends$1({}, state, {
48303
48303
  density: ((_a2 = props.initialState) == null ? void 0 : _a2.density) ?? props.density ?? "standard"
48304
48304
  });
48305
48305
  };
@@ -48319,7 +48319,7 @@ const useGridDensity = (apiRef, props) => {
48319
48319
  return;
48320
48320
  }
48321
48321
  logger.debug(`Set grid density to ${newDensity}`);
48322
- apiRef.current.setState((state) => _extends$2({}, state, {
48322
+ apiRef.current.setState((state) => _extends$1({}, state, {
48323
48323
  density: newDensity
48324
48324
  }));
48325
48325
  });
@@ -48339,14 +48339,14 @@ const useGridDensity = (apiRef, props) => {
48339
48339
  if (!shouldExportRowCount) {
48340
48340
  return prevState;
48341
48341
  }
48342
- return _extends$2({}, prevState, {
48342
+ return _extends$1({}, prevState, {
48343
48343
  density: exportedDensity
48344
48344
  });
48345
48345
  }, [apiRef, props.density, (_a2 = props.initialState) == null ? void 0 : _a2.density]);
48346
48346
  const stateRestorePreProcessing = React.useCallback((params, context) => {
48347
48347
  var _a3;
48348
48348
  const restoredDensity = ((_a3 = context.stateToRestore) == null ? void 0 : _a3.density) ? context.stateToRestore.density : gridDensitySelector(apiRef);
48349
- apiRef.current.setState((state) => _extends$2({}, state, {
48349
+ apiRef.current.setState((state) => _extends$1({}, state, {
48350
48350
  density: restoredDensity
48351
48351
  }));
48352
48352
  return params;
@@ -48476,7 +48476,7 @@ const getDerivedPaginationModel = (paginationState, signature, paginationModelPr
48476
48476
  }
48477
48477
  const validPage = pageSize2 === -1 ? 0 : getValidPage(paginationModel.page, pageCount);
48478
48478
  if (validPage !== paginationModel.page) {
48479
- paginationModel = _extends$2({}, paginationModel, {
48479
+ paginationModel = _extends$1({}, paginationModel, {
48480
48480
  page: validPage
48481
48481
  });
48482
48482
  }
@@ -48524,8 +48524,8 @@ const useGridPaginationModel = (apiRef, props) => {
48524
48524
  return;
48525
48525
  }
48526
48526
  logger.debug("Setting 'paginationModel' to", paginationModel);
48527
- apiRef.current.setState((state) => _extends$2({}, state, {
48528
- pagination: _extends$2({}, state.pagination, {
48527
+ apiRef.current.setState((state) => _extends$1({}, state, {
48528
+ pagination: _extends$1({}, state.pagination, {
48529
48529
  paginationModel: getDerivedPaginationModel(state.pagination, props.signature, paginationModel)
48530
48530
  })
48531
48531
  }), "setPaginationModel");
@@ -48549,17 +48549,17 @@ const useGridPaginationModel = (apiRef, props) => {
48549
48549
  if (!shouldExportPaginationModel) {
48550
48550
  return prevState;
48551
48551
  }
48552
- return _extends$2({}, prevState, {
48553
- pagination: _extends$2({}, prevState.pagination, {
48552
+ return _extends$1({}, prevState, {
48553
+ pagination: _extends$1({}, prevState.pagination, {
48554
48554
  paginationModel
48555
48555
  })
48556
48556
  });
48557
48557
  }, [apiRef, props.paginationModel, (_b2 = (_a2 = props.initialState) == null ? void 0 : _a2.pagination) == null ? void 0 : _b2.paginationModel, props.autoPageSize]);
48558
48558
  const stateRestorePreProcessing = React.useCallback((params, context) => {
48559
48559
  var _a3, _b3;
48560
- const paginationModel = ((_a3 = context.stateToRestore.pagination) == null ? void 0 : _a3.paginationModel) ? _extends$2({}, getDefaultGridPaginationModel(props.autoPageSize), (_b3 = context.stateToRestore.pagination) == null ? void 0 : _b3.paginationModel) : gridPaginationModelSelector(apiRef);
48561
- apiRef.current.setState((state) => _extends$2({}, state, {
48562
- pagination: _extends$2({}, state.pagination, {
48560
+ const paginationModel = ((_a3 = context.stateToRestore.pagination) == null ? void 0 : _a3.paginationModel) ? _extends$1({}, getDefaultGridPaginationModel(props.autoPageSize), (_b3 = context.stateToRestore.pagination) == null ? void 0 : _b3.paginationModel) : gridPaginationModelSelector(apiRef);
48561
+ apiRef.current.setState((state) => _extends$1({}, state, {
48562
+ pagination: _extends$1({}, state.pagination, {
48563
48563
  paginationModel: getDerivedPaginationModel(state.pagination, props.signature, paginationModel)
48564
48564
  })
48565
48565
  }), "stateRestorePreProcessing");
@@ -48610,7 +48610,7 @@ const useGridPaginationModel = (apiRef, props) => {
48610
48610
  }
48611
48611
  }, [apiRef]);
48612
48612
  const handleFilterModelChange = React.useCallback((filterModel) => {
48613
- const currentActiveFilters = _extends$2({}, filterModel, {
48613
+ const currentActiveFilters = _extends$1({}, filterModel, {
48614
48614
  // replace items with the active items
48615
48615
  items: gridFilterActiveItemsSelector(apiRef)
48616
48616
  });
@@ -48634,8 +48634,8 @@ const useGridPaginationModel = (apiRef, props) => {
48634
48634
  if (!props.pagination) {
48635
48635
  return;
48636
48636
  }
48637
- apiRef.current.setState((state) => _extends$2({}, state, {
48638
- pagination: _extends$2({}, state.pagination, {
48637
+ apiRef.current.setState((state) => _extends$1({}, state, {
48638
+ pagination: _extends$1({}, state.pagination, {
48639
48639
  paginationModel: getDerivedPaginationModel(state.pagination, props.signature, props.paginationModel)
48640
48640
  })
48641
48641
  }));
@@ -48646,8 +48646,8 @@ const useGridPaginationModel = (apiRef, props) => {
48646
48646
  if (state.pagination.paginationMode === props.paginationMode || state.pagination.enabled === isEnabled) {
48647
48647
  return state;
48648
48648
  }
48649
- return _extends$2({}, state, {
48650
- pagination: _extends$2({}, state.pagination, {
48649
+ return _extends$1({}, state, {
48650
+ pagination: _extends$1({}, state.pagination, {
48651
48651
  paginationMode: props.paginationMode,
48652
48652
  enabled: props.pagination === true
48653
48653
  })
@@ -48716,7 +48716,7 @@ const useGridPrintExport = (apiRef, props) => {
48716
48716
  }, [apiRef]);
48717
48717
  const handlePrintWindowLoad = React.useCallback((printWindow, options) => {
48718
48718
  var _a2, _b2, _c2;
48719
- const normalizeOptions = _extends$2({
48719
+ const normalizeOptions = _extends$1({
48720
48720
  copyStyles: true,
48721
48721
  hideToolbar: false,
48722
48722
  hideFooter: false,
@@ -48813,7 +48813,7 @@ const useGridPrintExport = (apiRef, props) => {
48813
48813
  if (!((_b2 = (_a2 = previousGridState.current) == null ? void 0 : _a2.columns) == null ? void 0 : _b2.columnVisibilityModel)) {
48814
48814
  apiRef.current.setColumnVisibilityModel(previousColumnVisibility.current);
48815
48815
  }
48816
- apiRef.current.setState((state) => _extends$2({}, state, {
48816
+ apiRef.current.setState((state) => _extends$1({}, state, {
48817
48817
  virtualization: previousVirtualizationState.current
48818
48818
  }));
48819
48819
  apiRef.current.setRows(previousRows.current);
@@ -48835,8 +48835,8 @@ const useGridPrintExport = (apiRef, props) => {
48835
48835
  page: 0,
48836
48836
  pageSize: visibleRowCount
48837
48837
  };
48838
- apiRef.current.setState((state) => _extends$2({}, state, {
48839
- pagination: _extends$2({}, state.pagination, {
48838
+ apiRef.current.setState((state) => _extends$1({}, state, {
48839
+ pagination: _extends$1({}, state.pagination, {
48840
48840
  paginationModel: getDerivedPaginationModel(
48841
48841
  state.pagination,
48842
48842
  // Using signature `DataGridPro` to allow more than 100 rows in the print export
@@ -48847,8 +48847,8 @@ const useGridPrintExport = (apiRef, props) => {
48847
48847
  }));
48848
48848
  }
48849
48849
  previousVirtualizationState.current = apiRef.current.state.virtualization;
48850
- apiRef.current.setState((state) => _extends$2({}, state, {
48851
- virtualization: _extends$2({}, state.virtualization, {
48850
+ apiRef.current.setState((state) => _extends$1({}, state, {
48851
+ virtualization: _extends$1({}, state.virtualization, {
48852
48852
  enabled: false,
48853
48853
  enabledForColumns: false
48854
48854
  })
@@ -48892,8 +48892,8 @@ const useGridPrintExport = (apiRef, props) => {
48892
48892
  const filterStateInitializer = (state, props, apiRef) => {
48893
48893
  var _a2, _b2;
48894
48894
  const filterModel = props.filterModel ?? ((_b2 = (_a2 = props.initialState) == null ? void 0 : _a2.filter) == null ? void 0 : _b2.filterModel) ?? getDefaultGridFilterModel();
48895
- return _extends$2({}, state, {
48896
- filter: _extends$2({
48895
+ return _extends$1({}, state, {
48896
+ filter: _extends$1({
48897
48897
  filterModel: sanitizeFilterModel(filterModel, props.disableMultipleColumnsFiltering, apiRef)
48898
48898
  }, defaultGridFilterLookup),
48899
48899
  visibleRowsLookup: {}
@@ -48925,11 +48925,11 @@ const useGridFilter = (apiRef, props) => {
48925
48925
  apiRef.current.setState((state) => {
48926
48926
  const filterModel = gridFilterModelSelector(apiRef);
48927
48927
  const filterState = apiRef.current.getFilterState(filterModel);
48928
- const newState = _extends$2({}, state, {
48929
- filter: _extends$2({}, state.filter, filterState)
48928
+ const newState = _extends$1({}, state, {
48929
+ filter: _extends$1({}, state.filter, filterState)
48930
48930
  });
48931
48931
  const visibleRowsLookupState = getVisibleRowsLookupState(apiRef, newState);
48932
- return _extends$2({}, newState, {
48932
+ return _extends$1({}, newState, {
48933
48933
  visibleRowsLookup: visibleRowsLookupState
48934
48934
  });
48935
48935
  });
@@ -48950,7 +48950,7 @@ const useGridFilter = (apiRef, props) => {
48950
48950
  } else {
48951
48951
  items[itemIndex] = item;
48952
48952
  }
48953
- apiRef.current.setFilterModel(_extends$2({}, filterModel, {
48953
+ apiRef.current.setFilterModel(_extends$1({}, filterModel, {
48954
48954
  items
48955
48955
  }), "upsertFilterItem");
48956
48956
  }, [apiRef]);
@@ -48965,7 +48965,7 @@ const useGridFilter = (apiRef, props) => {
48965
48965
  existingItems[itemIndex] = item;
48966
48966
  }
48967
48967
  });
48968
- apiRef.current.setFilterModel(_extends$2({}, filterModel, {
48968
+ apiRef.current.setFilterModel(_extends$1({}, filterModel, {
48969
48969
  items: existingItems
48970
48970
  }), "upsertFilterItems");
48971
48971
  }, [apiRef]);
@@ -48975,7 +48975,7 @@ const useGridFilter = (apiRef, props) => {
48975
48975
  if (items.length === filterModel.items.length) {
48976
48976
  return;
48977
48977
  }
48978
- apiRef.current.setFilterModel(_extends$2({}, filterModel, {
48978
+ apiRef.current.setFilterModel(_extends$1({}, filterModel, {
48979
48979
  items
48980
48980
  }), "deleteFilterItem");
48981
48981
  }, [apiRef]);
@@ -49015,7 +49015,7 @@ const useGridFilter = (apiRef, props) => {
49015
49015
  operator: targetColumn.filterOperators[0].value
49016
49016
  }, apiRef)];
49017
49017
  }
49018
- apiRef.current.setFilterModel(_extends$2({}, filterModel, {
49018
+ apiRef.current.setFilterModel(_extends$1({}, filterModel, {
49019
49019
  items: newFilterItems
49020
49020
  }));
49021
49021
  }
@@ -49030,7 +49030,7 @@ const useGridFilter = (apiRef, props) => {
49030
49030
  if (filterModel.logicOperator === logicOperator) {
49031
49031
  return;
49032
49032
  }
49033
- apiRef.current.setFilterModel(_extends$2({}, filterModel, {
49033
+ apiRef.current.setFilterModel(_extends$1({}, filterModel, {
49034
49034
  logicOperator
49035
49035
  }), "changeLogicOperator");
49036
49036
  }, [apiRef]);
@@ -49039,7 +49039,7 @@ const useGridFilter = (apiRef, props) => {
49039
49039
  if (isDeepEqual(filterModel.quickFilterValues, values2)) {
49040
49040
  return;
49041
49041
  }
49042
- apiRef.current.setFilterModel(_extends$2({}, filterModel, {
49042
+ apiRef.current.setFilterModel(_extends$1({}, filterModel, {
49043
49043
  quickFilterValues: [...values2]
49044
49044
  }));
49045
49045
  }, [apiRef]);
@@ -49058,7 +49058,7 @@ const useGridFilter = (apiRef, props) => {
49058
49058
  isRowMatchingFilters,
49059
49059
  filterModel: filterModel ?? getDefaultGridFilterModel()
49060
49060
  });
49061
- return _extends$2({}, filterResult, {
49061
+ return _extends$1({}, filterResult, {
49062
49062
  filterModel
49063
49063
  });
49064
49064
  }, [props.disableMultipleColumnsFiltering, props.filterMode, props.disableEval, apiRef]);
@@ -49092,7 +49092,7 @@ const useGridFilter = (apiRef, props) => {
49092
49092
  if (!shouldExportFilterModel) {
49093
49093
  return prevState;
49094
49094
  }
49095
- return _extends$2({}, prevState, {
49095
+ return _extends$1({}, prevState, {
49096
49096
  filter: {
49097
49097
  filterModel: filterModelToExport
49098
49098
  }
@@ -49105,7 +49105,7 @@ const useGridFilter = (apiRef, props) => {
49105
49105
  return params;
49106
49106
  }
49107
49107
  apiRef.current.updateControlState("filter", mergeStateWithFilterModel(filterModel, props.disableMultipleColumnsFiltering, apiRef), "restoreState");
49108
- return _extends$2({}, params, {
49108
+ return _extends$1({}, params, {
49109
49109
  callbacks: [...params.callbacks, apiRef.current.unstable_applyFilters]
49110
49110
  });
49111
49111
  }, [apiRef, props.disableMultipleColumnsFiltering]);
@@ -49113,7 +49113,7 @@ const useGridFilter = (apiRef, props) => {
49113
49113
  var _a3;
49114
49114
  if (value === GridPreferencePanelsValue.filters) {
49115
49115
  const FilterPanel = props.slots.filterPanel;
49116
- return /* @__PURE__ */ jsxRuntimeExports.jsx(FilterPanel, _extends$2({}, (_a3 = props.slotProps) == null ? void 0 : _a3.filterPanel));
49116
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(FilterPanel, _extends$1({}, (_a3 = props.slotProps) == null ? void 0 : _a3.filterPanel));
49117
49117
  }
49118
49118
  return initialValue;
49119
49119
  }, [props.slots.filterPanel, (_c2 = props.slotProps) == null ? void 0 : _c2.filterPanel]);
@@ -49169,7 +49169,7 @@ const useGridFilter = (apiRef, props) => {
49169
49169
  const columnsLookup = gridColumnLookupSelector(apiRef);
49170
49170
  const newFilterItems = filterModel.items.filter((item) => item.field && columnsLookup[item.field]);
49171
49171
  if (newFilterItems.length < filterModel.items.length) {
49172
- apiRef.current.setFilterModel(_extends$2({}, filterModel, {
49172
+ apiRef.current.setFilterModel(_extends$1({}, filterModel, {
49173
49173
  items: newFilterItems
49174
49174
  }));
49175
49175
  }
@@ -49181,7 +49181,7 @@ const useGridFilter = (apiRef, props) => {
49181
49181
  }, [apiRef]);
49182
49182
  const updateVisibleRowsLookupState = React.useCallback(() => {
49183
49183
  apiRef.current.setState((state) => {
49184
- return _extends$2({}, state, {
49184
+ return _extends$1({}, state, {
49185
49185
  visibleRowsLookup: getVisibleRowsLookupState(apiRef, state)
49186
49186
  });
49187
49187
  });
@@ -49205,7 +49205,7 @@ const useGridFilter = (apiRef, props) => {
49205
49205
  }
49206
49206
  }, [apiRef, logger, props.filterModel]);
49207
49207
  };
49208
- const focusStateInitializer = (state) => _extends$2({}, state, {
49208
+ const focusStateInitializer = (state) => _extends$1({}, state, {
49209
49209
  focus: {
49210
49210
  cell: null,
49211
49211
  columnHeader: null,
@@ -49237,7 +49237,7 @@ const useGridFocus = (apiRef, props) => {
49237
49237
  }
49238
49238
  apiRef.current.setState((state) => {
49239
49239
  logger.debug(`Focusing on cell with id=${id} and field=${field}`);
49240
- return _extends$2({}, state, {
49240
+ return _extends$1({}, state, {
49241
49241
  tabIndex: {
49242
49242
  cell: {
49243
49243
  id,
@@ -49271,7 +49271,7 @@ const useGridFocus = (apiRef, props) => {
49271
49271
  publishCellFocusOut(cell, event);
49272
49272
  apiRef.current.setState((state) => {
49273
49273
  logger.debug(`Focusing on column header with colIndex=${field}`);
49274
- return _extends$2({}, state, {
49274
+ return _extends$1({}, state, {
49275
49275
  tabIndex: {
49276
49276
  columnHeader: {
49277
49277
  field
@@ -49296,7 +49296,7 @@ const useGridFocus = (apiRef, props) => {
49296
49296
  publishCellFocusOut(cell, event);
49297
49297
  apiRef.current.setState((state) => {
49298
49298
  logger.debug(`Focusing on column header filter with colIndex=${field}`);
49299
- return _extends$2({}, state, {
49299
+ return _extends$1({}, state, {
49300
49300
  tabIndex: {
49301
49301
  columnHeader: null,
49302
49302
  columnHeaderFilter: {
@@ -49322,7 +49322,7 @@ const useGridFocus = (apiRef, props) => {
49322
49322
  apiRef.current.publishEvent("cellFocusOut", apiRef.current.getCellParams(cell.id, cell.field), event);
49323
49323
  }
49324
49324
  apiRef.current.setState((state) => {
49325
- return _extends$2({}, state, {
49325
+ return _extends$1({}, state, {
49326
49326
  tabIndex: {
49327
49327
  columnGroupHeader: {
49328
49328
  field,
@@ -49429,7 +49429,7 @@ const useGridFocus = (apiRef, props) => {
49429
49429
  return;
49430
49430
  }
49431
49431
  logger.debug(`Clearing focus`);
49432
- apiRef.current.setState((state) => _extends$2({}, state, {
49432
+ apiRef.current.setState((state) => _extends$1({}, state, {
49433
49433
  focus: {
49434
49434
  cell: null,
49435
49435
  columnHeader: null,
@@ -49468,7 +49468,7 @@ const useGridFocus = (apiRef, props) => {
49468
49468
  if (cellParams) {
49469
49469
  apiRef.current.setCellFocus(cellParams.id, cellParams.field);
49470
49470
  } else {
49471
- apiRef.current.setState((state) => _extends$2({}, state, {
49471
+ apiRef.current.setState((state) => _extends$1({}, state, {
49472
49472
  focus: {
49473
49473
  cell: null,
49474
49474
  columnHeader: null,
@@ -49503,7 +49503,7 @@ const useGridFocus = (apiRef, props) => {
49503
49503
  const nextRow = currentPage.rows[clamp(lastFocusedRowIndex, 0, currentPage.rows.length - 1)];
49504
49504
  nextRowId = (nextRow == null ? void 0 : nextRow.id) ?? null;
49505
49505
  }
49506
- apiRef.current.setState((state) => _extends$2({}, state, {
49506
+ apiRef.current.setState((state) => _extends$1({}, state, {
49507
49507
  focus: {
49508
49508
  cell: nextRowId === null ? null : {
49509
49509
  id: nextRowId,
@@ -49531,7 +49531,7 @@ const useGridFocus = (apiRef, props) => {
49531
49531
  }
49532
49532
  const visibleColumns = gridVisibleColumnDefinitionsSelector(apiRef);
49533
49533
  apiRef.current.setState((state) => {
49534
- return _extends$2({}, state, {
49534
+ return _extends$1({}, state, {
49535
49535
  tabIndex: {
49536
49536
  cell: {
49537
49537
  id: currentPage.rows[0].id,
@@ -50089,8 +50089,8 @@ const useGridRowCount = (apiRef, props) => {
50089
50089
  return;
50090
50090
  }
50091
50091
  logger.debug("Setting 'rowCount' to", newRowCount);
50092
- apiRef.current.setState((state) => _extends$2({}, state, {
50093
- pagination: _extends$2({}, state.pagination, {
50092
+ apiRef.current.setState((state) => _extends$1({}, state, {
50093
+ pagination: _extends$1({}, state.pagination, {
50094
50094
  rowCount: newRowCount
50095
50095
  })
50096
50096
  }));
@@ -50111,8 +50111,8 @@ const useGridRowCount = (apiRef, props) => {
50111
50111
  if (!shouldExportRowCount) {
50112
50112
  return prevState;
50113
50113
  }
50114
- return _extends$2({}, prevState, {
50115
- pagination: _extends$2({}, prevState.pagination, {
50114
+ return _extends$1({}, prevState, {
50115
+ pagination: _extends$1({}, prevState.pagination, {
50116
50116
  rowCount: exportedRowCount
50117
50117
  })
50118
50118
  });
@@ -50120,8 +50120,8 @@ const useGridRowCount = (apiRef, props) => {
50120
50120
  const stateRestorePreProcessing = React.useCallback((params, context) => {
50121
50121
  var _a3;
50122
50122
  const restoredRowCount = ((_a3 = context.stateToRestore.pagination) == null ? void 0 : _a3.rowCount) ? context.stateToRestore.pagination.rowCount : gridPaginationRowCountSelector(apiRef);
50123
- apiRef.current.setState((state) => _extends$2({}, state, {
50124
- pagination: _extends$2({}, state.pagination, {
50123
+ apiRef.current.setState((state) => _extends$1({}, state, {
50124
+ pagination: _extends$1({}, state.pagination, {
50125
50125
  rowCount: restoredRowCount
50126
50126
  })
50127
50127
  }));
@@ -50171,8 +50171,8 @@ const useGridPaginationMeta = (apiRef, props) => {
50171
50171
  return;
50172
50172
  }
50173
50173
  logger.debug("Setting 'paginationMeta' to", newPaginationMeta);
50174
- apiRef.current.setState((state) => _extends$2({}, state, {
50175
- pagination: _extends$2({}, state.pagination, {
50174
+ apiRef.current.setState((state) => _extends$1({}, state, {
50175
+ pagination: _extends$1({}, state.pagination, {
50176
50176
  meta: newPaginationMeta
50177
50177
  })
50178
50178
  }));
@@ -50193,8 +50193,8 @@ const useGridPaginationMeta = (apiRef, props) => {
50193
50193
  if (!shouldExportRowCount) {
50194
50194
  return prevState;
50195
50195
  }
50196
- return _extends$2({}, prevState, {
50197
- pagination: _extends$2({}, prevState.pagination, {
50196
+ return _extends$1({}, prevState, {
50197
+ pagination: _extends$1({}, prevState.pagination, {
50198
50198
  meta: exportedPaginationMeta
50199
50199
  })
50200
50200
  });
@@ -50202,8 +50202,8 @@ const useGridPaginationMeta = (apiRef, props) => {
50202
50202
  const stateRestorePreProcessing = React.useCallback((params, context) => {
50203
50203
  var _a3;
50204
50204
  const restoredPaginationMeta = ((_a3 = context.stateToRestore.pagination) == null ? void 0 : _a3.meta) ? context.stateToRestore.pagination.meta : gridPaginationMetaSelector(apiRef);
50205
- apiRef.current.setState((state) => _extends$2({}, state, {
50206
- pagination: _extends$2({}, state.pagination, {
50205
+ apiRef.current.setState((state) => _extends$1({}, state, {
50206
+ pagination: _extends$1({}, state.pagination, {
50207
50207
  meta: restoredPaginationMeta
50208
50208
  })
50209
50209
  }));
@@ -50219,12 +50219,12 @@ const useGridPaginationMeta = (apiRef, props) => {
50219
50219
  };
50220
50220
  const paginationStateInitializer = (state, props) => {
50221
50221
  var _a2, _b2, _c2, _d2, _e, _f, _g;
50222
- const paginationModel = _extends$2({}, getDefaultGridPaginationModel(props.autoPageSize), props.paginationModel ?? ((_b2 = (_a2 = props.initialState) == null ? void 0 : _a2.pagination) == null ? void 0 : _b2.paginationModel));
50222
+ const paginationModel = _extends$1({}, getDefaultGridPaginationModel(props.autoPageSize), props.paginationModel ?? ((_b2 = (_a2 = props.initialState) == null ? void 0 : _a2.pagination) == null ? void 0 : _b2.paginationModel));
50223
50223
  throwIfPageSizeExceedsTheLimit(paginationModel.pageSize, props.signature);
50224
50224
  const rowCount = props.rowCount ?? ((_d2 = (_c2 = props.initialState) == null ? void 0 : _c2.pagination) == null ? void 0 : _d2.rowCount) ?? (props.paginationMode === "client" ? (_e = state.rows) == null ? void 0 : _e.totalRowCount : void 0);
50225
50225
  const meta = props.paginationMeta ?? ((_g = (_f = props.initialState) == null ? void 0 : _f.pagination) == null ? void 0 : _g.meta) ?? {};
50226
- return _extends$2({}, state, {
50227
- pagination: _extends$2({}, state.pagination, {
50226
+ return _extends$1({}, state, {
50227
+ pagination: _extends$1({}, state.pagination, {
50228
50228
  paginationModel,
50229
50229
  rowCount,
50230
50230
  meta,
@@ -50240,7 +50240,7 @@ const useGridPagination = (apiRef, props) => {
50240
50240
  };
50241
50241
  const preferencePanelStateInitializer = (state, props) => {
50242
50242
  var _a2;
50243
- return _extends$2({}, state, {
50243
+ return _extends$1({}, state, {
50244
50244
  preferencePanel: ((_a2 = props.initialState) == null ? void 0 : _a2.preferencePanel) ?? {
50245
50245
  open: false
50246
50246
  }
@@ -50259,7 +50259,7 @@ const useGridPreferencesPanel = (apiRef, props) => {
50259
50259
  apiRef.current.publishEvent("preferencePanelClose", {
50260
50260
  openedPanelValue: preferencePanelState.openedPanelValue
50261
50261
  });
50262
- return _extends$2({}, state, {
50262
+ return _extends$1({}, state, {
50263
50263
  preferencePanel: {
50264
50264
  open: false
50265
50265
  }
@@ -50268,8 +50268,8 @@ const useGridPreferencesPanel = (apiRef, props) => {
50268
50268
  }, [apiRef, logger]);
50269
50269
  const showPreferences = React.useCallback((newValue, panelId, labelId) => {
50270
50270
  logger.debug("Opening Preferences Panel");
50271
- apiRef.current.setState((state) => _extends$2({}, state, {
50272
- preferencePanel: _extends$2({}, state.preferencePanel, {
50271
+ apiRef.current.setState((state) => _extends$1({}, state, {
50272
+ preferencePanel: _extends$1({}, state.preferencePanel, {
50273
50273
  open: true,
50274
50274
  openedPanelValue: newValue,
50275
50275
  panelId,
@@ -50296,14 +50296,14 @@ const useGridPreferencesPanel = (apiRef, props) => {
50296
50296
  if (!shouldExportPreferencePanel) {
50297
50297
  return prevState;
50298
50298
  }
50299
- return _extends$2({}, prevState, {
50299
+ return _extends$1({}, prevState, {
50300
50300
  preferencePanel: preferencePanelToExport
50301
50301
  });
50302
50302
  }, [apiRef, (_a2 = props.initialState) == null ? void 0 : _a2.preferencePanel]);
50303
50303
  const stateRestorePreProcessing = React.useCallback((params, context) => {
50304
50304
  const preferencePanel = context.stateToRestore.preferencePanel;
50305
50305
  if (preferencePanel != null) {
50306
- apiRef.current.setState((state) => _extends$2({}, state, {
50306
+ apiRef.current.setState((state) => _extends$1({}, state, {
50307
50307
  preferencePanel
50308
50308
  }));
50309
50309
  }
@@ -50361,7 +50361,7 @@ const useGridCellEditing = (apiRef, props) => {
50361
50361
  if (params.cellMode === GridCellModes.Edit) {
50362
50362
  return;
50363
50363
  }
50364
- const newParams = _extends$2({}, params, {
50364
+ const newParams = _extends$1({}, params, {
50365
50365
  reason: GridCellEditStartReasons.cellDoubleClick
50366
50366
  });
50367
50367
  apiRef.current.publishEvent("cellEditStart", newParams, event);
@@ -50373,7 +50373,7 @@ const useGridCellEditing = (apiRef, props) => {
50373
50373
  if (apiRef.current.getCellMode(params.id, params.field) === GridCellModes.View) {
50374
50374
  return;
50375
50375
  }
50376
- const newParams = _extends$2({}, params, {
50376
+ const newParams = _extends$1({}, params, {
50377
50377
  reason: GridCellEditStopReasons.cellFocusOut
50378
50378
  });
50379
50379
  apiRef.current.publishEvent("cellEditStop", newParams, event);
@@ -50393,7 +50393,7 @@ const useGridCellEditing = (apiRef, props) => {
50393
50393
  event.preventDefault();
50394
50394
  }
50395
50395
  if (reason) {
50396
- const newParams = _extends$2({}, params, {
50396
+ const newParams = _extends$1({}, params, {
50397
50397
  reason
50398
50398
  });
50399
50399
  apiRef.current.publishEvent("cellEditStop", newParams, event);
@@ -50418,7 +50418,7 @@ const useGridCellEditing = (apiRef, props) => {
50418
50418
  reason = GridCellEditStartReasons.deleteKeyDown;
50419
50419
  }
50420
50420
  if (reason) {
50421
- const newParams = _extends$2({}, params, {
50421
+ const newParams = _extends$1({}, params, {
50422
50422
  reason,
50423
50423
  key: event.key
50424
50424
  });
@@ -50505,10 +50505,10 @@ const useGridCellEditing = (apiRef, props) => {
50505
50505
  apiRef.current.publishEvent("cellModesModelChange", newModel);
50506
50506
  });
50507
50507
  const updateFieldInCellModesModel = React.useCallback((id, field, newProps) => {
50508
- const newModel = _extends$2({}, cellModesModelRef.current);
50508
+ const newModel = _extends$1({}, cellModesModelRef.current);
50509
50509
  if (newProps !== null) {
50510
- newModel[id] = _extends$2({}, newModel[id], {
50511
- [field]: _extends$2({}, newProps)
50510
+ newModel[id] = _extends$1({}, newModel[id], {
50511
+ [field]: _extends$1({}, newProps)
50512
50512
  });
50513
50513
  } else {
50514
50514
  const _newModel$id = newModel[id], otherFields = _objectWithoutPropertiesLoose(_newModel$id, [field].map(toPropertyKey));
@@ -50521,10 +50521,10 @@ const useGridCellEditing = (apiRef, props) => {
50521
50521
  }, [updateCellModesModel]);
50522
50522
  const updateOrDeleteFieldState = React.useCallback((id, field, newProps) => {
50523
50523
  apiRef.current.setState((state) => {
50524
- const newEditingState = _extends$2({}, state.editRows);
50524
+ const newEditingState = _extends$1({}, state.editRows);
50525
50525
  if (newProps !== null) {
50526
- newEditingState[id] = _extends$2({}, newEditingState[id], {
50527
- [field]: _extends$2({}, newProps)
50526
+ newEditingState[id] = _extends$1({}, newEditingState[id], {
50527
+ [field]: _extends$1({}, newProps)
50528
50528
  });
50529
50529
  } else {
50530
50530
  delete newEditingState[id][field];
@@ -50532,7 +50532,7 @@ const useGridCellEditing = (apiRef, props) => {
50532
50532
  delete newEditingState[id];
50533
50533
  }
50534
50534
  }
50535
- return _extends$2({}, state, {
50535
+ return _extends$1({}, state, {
50536
50536
  editRows: newEditingState
50537
50537
  });
50538
50538
  });
@@ -50544,7 +50544,7 @@ const useGridCellEditing = (apiRef, props) => {
50544
50544
  } = params, other = _objectWithoutPropertiesLoose(params, _excluded$6);
50545
50545
  throwIfNotEditable(id, field);
50546
50546
  throwIfNotInMode(id, field, GridCellModes.View);
50547
- updateFieldInCellModesModel(id, field, _extends$2({
50547
+ updateFieldInCellModesModel(id, field, _extends$1({
50548
50548
  mode: GridCellModes.Edit
50549
50549
  }, other));
50550
50550
  }, [throwIfNotEditable, throwIfNotInMode, updateFieldInCellModesModel]);
@@ -50580,7 +50580,7 @@ const useGridCellEditing = (apiRef, props) => {
50580
50580
  }));
50581
50581
  if (apiRef.current.getCellMode(id, field) === GridCellModes.Edit) {
50582
50582
  const editingState = gridEditRowsStateSelector(apiRef);
50583
- updateOrDeleteFieldState(id, field, _extends$2({}, newProps, {
50583
+ updateOrDeleteFieldState(id, field, _extends$1({}, newProps, {
50584
50584
  value: editingState[id][field].value,
50585
50585
  isProcessingProps: false
50586
50586
  }));
@@ -50593,7 +50593,7 @@ const useGridCellEditing = (apiRef, props) => {
50593
50593
  field
50594
50594
  } = params, other = _objectWithoutPropertiesLoose(params, _excluded2$2);
50595
50595
  throwIfNotInMode(id, field, GridCellModes.Edit);
50596
- updateFieldInCellModesModel(id, field, _extends$2({
50596
+ updateFieldInCellModesModel(id, field, _extends$1({
50597
50597
  mode: GridCellModes.View
50598
50598
  }, other));
50599
50599
  }, [throwIfNotInMode, updateFieldInCellModesModel]);
@@ -50676,13 +50676,13 @@ const useGridCellEditing = (apiRef, props) => {
50676
50676
  parsedValue = column2.valueParser(value, row, column2, apiRef);
50677
50677
  }
50678
50678
  let editingState = gridEditRowsStateSelector(apiRef);
50679
- let newProps = _extends$2({}, editingState[id][field], {
50679
+ let newProps = _extends$1({}, editingState[id][field], {
50680
50680
  value: parsedValue,
50681
50681
  changeReason: debounceMs ? "debouncedSetEditCellValue" : "setEditCellValue"
50682
50682
  });
50683
50683
  if (column2.preProcessEditCellProps) {
50684
50684
  const hasChanged = value !== editingState[id][field].value;
50685
- newProps = _extends$2({}, newProps, {
50685
+ newProps = _extends$1({}, newProps, {
50686
50686
  isProcessingProps: true
50687
50687
  });
50688
50688
  updateOrDeleteFieldState(id, field, newProps);
@@ -50697,7 +50697,7 @@ const useGridCellEditing = (apiRef, props) => {
50697
50697
  return false;
50698
50698
  }
50699
50699
  editingState = gridEditRowsStateSelector(apiRef);
50700
- newProps = _extends$2({}, newProps, {
50700
+ newProps = _extends$1({}, newProps, {
50701
50701
  isProcessingProps: false
50702
50702
  });
50703
50703
  newProps.value = column2.preProcessEditCellProps ? editingState[id][field].value : parsedValue;
@@ -50715,7 +50715,7 @@ const useGridCellEditing = (apiRef, props) => {
50715
50715
  const {
50716
50716
  value
50717
50717
  } = editingState[id][field];
50718
- return column2.valueSetter ? column2.valueSetter(value, row, column2, apiRef) : _extends$2({}, row, {
50718
+ return column2.valueSetter ? column2.valueSetter(value, row, column2, apiRef) : _extends$1({}, row, {
50719
50719
  [field]: value
50720
50720
  });
50721
50721
  }, [apiRef]);
@@ -50745,12 +50745,12 @@ const useGridCellEditing = (apiRef, props) => {
50745
50745
  const prevMode = ((_b2 = (_a2 = copyOfPrevCellModes[id]) == null ? void 0 : _a2[field]) == null ? void 0 : _b2.mode) || GridCellModes.View;
50746
50746
  const originalId = rowsLookup[id] ? apiRef.current.getRowId(rowsLookup[id]) : id;
50747
50747
  if (params.mode === GridCellModes.Edit && prevMode === GridCellModes.View) {
50748
- updateStateToStartCellEditMode(_extends$2({
50748
+ updateStateToStartCellEditMode(_extends$1({
50749
50749
  id: originalId,
50750
50750
  field
50751
50751
  }, params));
50752
50752
  } else if (params.mode === GridCellModes.View && prevMode === GridCellModes.Edit) {
50753
- updateStateToStopCellEditMode(_extends$2({
50753
+ updateStateToStopCellEditMode(_extends$1({
50754
50754
  id: originalId,
50755
50755
  field
50756
50756
  }, params));
@@ -50801,7 +50801,7 @@ const useGridRowEditing = (apiRef, props) => {
50801
50801
  return;
50802
50802
  }
50803
50803
  const rowParams = apiRef.current.getRowParams(params.id);
50804
- const newParams = _extends$2({}, rowParams, {
50804
+ const newParams = _extends$1({}, rowParams, {
50805
50805
  field: params.field,
50806
50806
  reason: GridRowEditStartReasons.cellDoubleClick
50807
50807
  });
@@ -50831,7 +50831,7 @@ const useGridRowEditing = (apiRef, props) => {
50831
50831
  return;
50832
50832
  }
50833
50833
  const rowParams = apiRef.current.getRowParams(params.id);
50834
- const newParams = _extends$2({}, rowParams, {
50834
+ const newParams = _extends$1({}, rowParams, {
50835
50835
  field: params.field,
50836
50836
  reason: GridRowEditStopReasons.rowFocusOut
50837
50837
  });
@@ -50880,7 +50880,7 @@ const useGridRowEditing = (apiRef, props) => {
50880
50880
  if (reason !== GridRowEditStopReasons.escapeKeyDown && hasFieldsWithErrors(params.id)) {
50881
50881
  return;
50882
50882
  }
50883
- const newParams = _extends$2({}, apiRef.current.getRowParams(params.id), {
50883
+ const newParams = _extends$1({}, apiRef.current.getRowParams(params.id), {
50884
50884
  reason,
50885
50885
  field: params.field
50886
50886
  });
@@ -50907,7 +50907,7 @@ const useGridRowEditing = (apiRef, props) => {
50907
50907
  }
50908
50908
  if (reason) {
50909
50909
  const rowParams = apiRef.current.getRowParams(params.id);
50910
- const newParams = _extends$2({}, rowParams, {
50910
+ const newParams = _extends$1({}, rowParams, {
50911
50911
  field: params.field,
50912
50912
  reason
50913
50913
  });
@@ -50983,9 +50983,9 @@ const useGridRowEditing = (apiRef, props) => {
50983
50983
  apiRef.current.publishEvent("rowModesModelChange", newModel);
50984
50984
  });
50985
50985
  const updateRowInRowModesModel = React.useCallback((id, newProps) => {
50986
- const newModel = _extends$2({}, rowModesModelRef.current);
50986
+ const newModel = _extends$1({}, rowModesModelRef.current);
50987
50987
  if (newProps !== null) {
50988
- newModel[id] = _extends$2({}, newProps);
50988
+ newModel[id] = _extends$1({}, newProps);
50989
50989
  } else {
50990
50990
  delete newModel[id];
50991
50991
  }
@@ -50993,23 +50993,23 @@ const useGridRowEditing = (apiRef, props) => {
50993
50993
  }, [updateRowModesModel]);
50994
50994
  const updateOrDeleteRowState = React.useCallback((id, newProps) => {
50995
50995
  apiRef.current.setState((state) => {
50996
- const newEditingState = _extends$2({}, state.editRows);
50996
+ const newEditingState = _extends$1({}, state.editRows);
50997
50997
  if (newProps !== null) {
50998
50998
  newEditingState[id] = newProps;
50999
50999
  } else {
51000
51000
  delete newEditingState[id];
51001
51001
  }
51002
- return _extends$2({}, state, {
51002
+ return _extends$1({}, state, {
51003
51003
  editRows: newEditingState
51004
51004
  });
51005
51005
  });
51006
51006
  }, [apiRef]);
51007
51007
  const updateOrDeleteFieldState = React.useCallback((id, field, newProps) => {
51008
51008
  apiRef.current.setState((state) => {
51009
- const newEditingState = _extends$2({}, state.editRows);
51009
+ const newEditingState = _extends$1({}, state.editRows);
51010
51010
  if (newProps !== null) {
51011
- newEditingState[id] = _extends$2({}, newEditingState[id], {
51012
- [field]: _extends$2({}, newProps)
51011
+ newEditingState[id] = _extends$1({}, newEditingState[id], {
51012
+ [field]: _extends$1({}, newProps)
51013
51013
  });
51014
51014
  } else {
51015
51015
  delete newEditingState[id][field];
@@ -51017,7 +51017,7 @@ const useGridRowEditing = (apiRef, props) => {
51017
51017
  delete newEditingState[id];
51018
51018
  }
51019
51019
  }
51020
- return _extends$2({}, state, {
51020
+ return _extends$1({}, state, {
51021
51021
  editRows: newEditingState
51022
51022
  });
51023
51023
  });
@@ -51027,7 +51027,7 @@ const useGridRowEditing = (apiRef, props) => {
51027
51027
  id
51028
51028
  } = params, other = _objectWithoutPropertiesLoose(params, _excluded$5);
51029
51029
  throwIfNotInMode(id, GridRowModes.View);
51030
- updateRowInRowModesModel(id, _extends$2({
51030
+ updateRowInRowModesModel(id, _extends$1({
51031
51031
  mode: GridRowModes.Edit
51032
51032
  }, other));
51033
51033
  }, [throwIfNotInMode, updateRowInRowModesModel]);
@@ -51078,7 +51078,7 @@ const useGridRowEditing = (apiRef, props) => {
51078
51078
  })).then((processedProps) => {
51079
51079
  if (apiRef.current.getRowMode(id) === GridRowModes.Edit) {
51080
51080
  const editingState = gridEditRowsStateSelector(apiRef);
51081
- updateOrDeleteFieldState(id, field, _extends$2({}, processedProps, {
51081
+ updateOrDeleteFieldState(id, field, _extends$1({}, processedProps, {
51082
51082
  value: editingState[id][field].value,
51083
51083
  isProcessingProps: false
51084
51084
  }));
@@ -51091,7 +51091,7 @@ const useGridRowEditing = (apiRef, props) => {
51091
51091
  id
51092
51092
  } = params, other = _objectWithoutPropertiesLoose(params, _excluded2$1);
51093
51093
  throwIfNotInMode(id, GridRowModes.Edit);
51094
- updateRowInRowModesModel(id, _extends$2({
51094
+ updateRowInRowModesModel(id, _extends$1({
51095
51095
  mode: GridRowModes.View
51096
51096
  }, other));
51097
51097
  }, [throwIfNotInMode, updateRowInRowModesModel]);
@@ -51175,7 +51175,7 @@ const useGridRowEditing = (apiRef, props) => {
51175
51175
  parsedValue = column2.valueParser(value, row, column2, apiRef);
51176
51176
  }
51177
51177
  let editingState = gridEditRowsStateSelector(apiRef);
51178
- let newProps = _extends$2({}, editingState[id][field], {
51178
+ let newProps = _extends$1({}, editingState[id][field], {
51179
51179
  value: parsedValue,
51180
51180
  changeReason: debounceMs ? "debouncedSetEditCellValue" : "setEditCellValue"
51181
51181
  });
@@ -51186,7 +51186,7 @@ const useGridRowEditing = (apiRef, props) => {
51186
51186
  const promises = [];
51187
51187
  if (column2.preProcessEditCellProps) {
51188
51188
  const hasChanged = newProps.value !== editingState[id][field].value;
51189
- newProps = _extends$2({}, newProps, {
51189
+ newProps = _extends$1({}, newProps, {
51190
51190
  isProcessingProps: true
51191
51191
  });
51192
51192
  updateOrDeleteFieldState(id, field, newProps);
@@ -51203,7 +51203,7 @@ const useGridRowEditing = (apiRef, props) => {
51203
51203
  return;
51204
51204
  }
51205
51205
  editingState = gridEditRowsStateSelector(apiRef);
51206
- processedProps = _extends$2({}, processedProps, {
51206
+ processedProps = _extends$1({}, processedProps, {
51207
51207
  isProcessingProps: false
51208
51208
  });
51209
51209
  processedProps.value = column2.preProcessEditCellProps ? editingState[id][field].value : parsedValue;
@@ -51219,7 +51219,7 @@ const useGridRowEditing = (apiRef, props) => {
51219
51219
  if (!fieldColumn.preProcessEditCellProps) {
51220
51220
  return;
51221
51221
  }
51222
- fieldProps = _extends$2({}, fieldProps, {
51222
+ fieldProps = _extends$1({}, fieldProps, {
51223
51223
  isProcessingProps: true
51224
51224
  });
51225
51225
  updateOrDeleteFieldState(id, thisField, fieldProps);
@@ -51236,7 +51236,7 @@ const useGridRowEditing = (apiRef, props) => {
51236
51236
  resolve(false);
51237
51237
  return;
51238
51238
  }
51239
- processedProps = _extends$2({}, processedProps, {
51239
+ processedProps = _extends$1({}, processedProps, {
51240
51240
  isProcessingProps: false
51241
51241
  });
51242
51242
  updateOrDeleteFieldState(id, thisField, processedProps);
@@ -51259,7 +51259,7 @@ const useGridRowEditing = (apiRef, props) => {
51259
51259
  if (!editingState[id]) {
51260
51260
  return apiRef.current.getRow(id);
51261
51261
  }
51262
- let rowUpdate = _extends$2({}, prevRowValuesLookup.current[id], row);
51262
+ let rowUpdate = _extends$1({}, prevRowValuesLookup.current[id], row);
51263
51263
  Object.entries(editingState[id]).forEach(([field, fieldProps]) => {
51264
51264
  const column2 = apiRef.current.getColumn(field);
51265
51265
  if (column2 == null ? void 0 : column2.valueSetter) {
@@ -51299,18 +51299,18 @@ const useGridRowEditing = (apiRef, props) => {
51299
51299
  const prevMode = ((_a2 = copyOfPrevRowModesModel[id]) == null ? void 0 : _a2.mode) || GridRowModes.View;
51300
51300
  const originalId = rowsLookup[id] ? apiRef.current.getRowId(rowsLookup[id]) : id;
51301
51301
  if (params.mode === GridRowModes.Edit && prevMode === GridRowModes.View) {
51302
- updateStateToStartRowEditMode(_extends$2({
51302
+ updateStateToStartRowEditMode(_extends$1({
51303
51303
  id: originalId
51304
51304
  }, params));
51305
51305
  } else if (params.mode === GridRowModes.View && prevMode === GridRowModes.Edit) {
51306
- updateStateToStopRowEditMode(_extends$2({
51306
+ updateStateToStopRowEditMode(_extends$1({
51307
51307
  id: originalId
51308
51308
  }, params));
51309
51309
  }
51310
51310
  });
51311
51311
  }, [apiRef, rowModesModel, updateStateToStartRowEditMode, updateStateToStopRowEditMode]);
51312
51312
  };
51313
- const editingStateInitializer = (state) => _extends$2({}, state, {
51313
+ const editingStateInitializer = (state) => _extends$1({}, state, {
51314
51314
  editRows: {}
51315
51315
  });
51316
51316
  const useGridEditing = (apiRef, props) => {
@@ -51429,7 +51429,7 @@ const rowsStateInitializer = (state, props, apiRef) => {
51429
51429
  loading: props.loading,
51430
51430
  rowCount: props.rowCount
51431
51431
  });
51432
- return _extends$2({}, state, {
51432
+ return _extends$1({}, state, {
51433
51433
  rows: getRowsStateFromCache({
51434
51434
  apiRef,
51435
51435
  rowCountProp: props.rowCount,
@@ -51470,7 +51470,7 @@ const useGridRows = (apiRef, props) => {
51470
51470
  }) => {
51471
51471
  const run = () => {
51472
51472
  lastUpdateMs.current = Date.now();
51473
- apiRef.current.setState((state) => _extends$2({}, state, {
51473
+ apiRef.current.setState((state) => _extends$1({}, state, {
51474
51474
  rows: getRowsStateFromCache({
51475
51475
  apiRef,
51476
51476
  rowCountProp: props.rowCount,
@@ -51543,8 +51543,8 @@ const useGridRows = (apiRef, props) => {
51543
51543
  return;
51544
51544
  }
51545
51545
  logger.debug(`Setting loading to ${loading}`);
51546
- apiRef.current.setState((state) => _extends$2({}, state, {
51547
- rows: _extends$2({}, state.rows, {
51546
+ apiRef.current.setState((state) => _extends$1({}, state, {
51547
+ rows: _extends$1({}, state.rows, {
51548
51548
  loading
51549
51549
  })
51550
51550
  }));
@@ -51571,13 +51571,13 @@ const useGridRows = (apiRef, props) => {
51571
51571
  if (currentNode.type !== "group") {
51572
51572
  throw new Error("MUI X: Only group nodes can be expanded or collapsed.");
51573
51573
  }
51574
- const newNode = _extends$2({}, currentNode, {
51574
+ const newNode = _extends$1({}, currentNode, {
51575
51575
  childrenExpanded: isExpanded
51576
51576
  });
51577
51577
  apiRef.current.setState((state) => {
51578
- return _extends$2({}, state, {
51579
- rows: _extends$2({}, state.rows, {
51580
- tree: _extends$2({}, state.rows.tree, {
51578
+ return _extends$1({}, state, {
51579
+ rows: _extends$1({}, state.rows, {
51580
+ tree: _extends$1({}, state.rows.tree, {
51581
51581
  [id]: newNode
51582
51582
  })
51583
51583
  })
@@ -51638,10 +51638,10 @@ const useGridRows = (apiRef, props) => {
51638
51638
  logger.debug(`Moving row ${rowId} to index ${targetIndex}`);
51639
51639
  const updatedRows = [...allRows];
51640
51640
  updatedRows.splice(targetIndex, 0, updatedRows.splice(oldIndex, 1)[0]);
51641
- return _extends$2({}, state, {
51642
- rows: _extends$2({}, state.rows, {
51643
- tree: _extends$2({}, state.rows.tree, {
51644
- [GRID_ROOT_GROUP_ID]: _extends$2({}, group, {
51641
+ return _extends$1({}, state, {
51642
+ rows: _extends$1({}, state.rows, {
51643
+ tree: _extends$1({}, state.rows.tree, {
51644
+ [GRID_ROOT_GROUP_ID]: _extends$1({}, group, {
51645
51645
  children: updatedRows
51646
51646
  })
51647
51647
  })
@@ -51661,8 +51661,8 @@ const useGridRows = (apiRef, props) => {
51661
51661
  if (treeDepth > 1) {
51662
51662
  throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");
51663
51663
  }
51664
- const tree = _extends$2({}, gridRowTreeSelector(apiRef));
51665
- const dataRowIdToModelLookup = _extends$2({}, gridRowsLookupSelector(apiRef));
51664
+ const tree = _extends$1({}, gridRowTreeSelector(apiRef));
51665
+ const dataRowIdToModelLookup = _extends$1({}, gridRowsLookupSelector(apiRef));
51666
51666
  const rootGroup = tree[GRID_ROOT_GROUP_ID];
51667
51667
  const rootGroupChildren = [...rootGroup.children];
51668
51668
  const seenIds = /* @__PURE__ */ new Set();
@@ -51685,7 +51685,7 @@ const useGridRows = (apiRef, props) => {
51685
51685
  tree[rowId] = rowTreeNodeConfig;
51686
51686
  seenIds.add(rowId);
51687
51687
  }
51688
- tree[GRID_ROOT_GROUP_ID] = _extends$2({}, rootGroup, {
51688
+ tree[GRID_ROOT_GROUP_ID] = _extends$1({}, rootGroup, {
51689
51689
  children: rootGroupChildren
51690
51690
  });
51691
51691
  const dataRowIds = rootGroupChildren.filter((childId) => {
@@ -51693,8 +51693,8 @@ const useGridRows = (apiRef, props) => {
51693
51693
  return ((_a2 = tree[childId]) == null ? void 0 : _a2.type) === "leaf";
51694
51694
  });
51695
51695
  apiRef.current.caches.rows.dataRowIdToModelLookup = dataRowIdToModelLookup;
51696
- apiRef.current.setState((state) => _extends$2({}, state, {
51697
- rows: _extends$2({}, state.rows, {
51696
+ apiRef.current.setState((state) => _extends$1({}, state, {
51697
+ rows: _extends$1({}, state.rows, {
51698
51698
  loading: props.loading,
51699
51699
  totalRowCount: Math.max(props.rowCount || 0, rootGroupChildren.length),
51700
51700
  dataRowIdToModelLookup,
@@ -51729,7 +51729,7 @@ const useGridRows = (apiRef, props) => {
51729
51729
  logger.info(`Row grouping pre-processing have changed, regenerating the row tree`);
51730
51730
  let cache2;
51731
51731
  if (apiRef.current.caches.rows.rowsBeforePartialUpdates === props.rows) {
51732
- cache2 = _extends$2({}, apiRef.current.caches.rows, {
51732
+ cache2 = _extends$1({}, apiRef.current.caches.rows, {
51733
51733
  updates: {
51734
51734
  type: "full",
51735
51735
  rows: gridDataRowIdsSelector(apiRef)
@@ -51773,8 +51773,8 @@ const useGridRows = (apiRef, props) => {
51773
51773
  dataRowIds: gridDataRowIdsSelector(apiRef),
51774
51774
  dataRowIdToModelLookup: gridRowsLookupSelector(apiRef)
51775
51775
  });
51776
- return _extends$2({}, state, {
51777
- rows: _extends$2({}, state.rows, response, {
51776
+ return _extends$1({}, state, {
51777
+ rows: _extends$1({}, state.rows, response, {
51778
51778
  totalTopLevelRowCount: getTopLevelRowCount({
51779
51779
  tree: response.tree,
51780
51780
  rowCountProp: props.rowCount
@@ -51805,16 +51805,16 @@ const useGridRows = (apiRef, props) => {
51805
51805
  const isNewRowCountAlreadyInState = apiRef.current.caches.rows.rowCountPropBeforePartialUpdates === props.rowCount;
51806
51806
  if (areNewRowsAlreadyInState) {
51807
51807
  if (!isNewLoadingAlreadyInState) {
51808
- apiRef.current.setState((state) => _extends$2({}, state, {
51809
- rows: _extends$2({}, state.rows, {
51808
+ apiRef.current.setState((state) => _extends$1({}, state, {
51809
+ rows: _extends$1({}, state.rows, {
51810
51810
  loading: props.loading
51811
51811
  })
51812
51812
  }));
51813
51813
  apiRef.current.caches.rows.loadingPropBeforePartialUpdates = props.loading;
51814
51814
  }
51815
51815
  if (!isNewRowCountAlreadyInState) {
51816
- apiRef.current.setState((state) => _extends$2({}, state, {
51817
- rows: _extends$2({}, state.rows, {
51816
+ apiRef.current.setState((state) => _extends$1({}, state, {
51817
+ rows: _extends$1({}, state.rows, {
51818
51818
  totalRowCount: Math.max(props.rowCount || 0, state.rows.totalRowCount),
51819
51819
  totalTopLevelRowCount: Math.max(props.rowCount || 0, state.rows.totalTopLevelRowCount)
51820
51820
  })
@@ -51839,7 +51839,7 @@ const useGridRows = (apiRef, props) => {
51839
51839
  };
51840
51840
  const createFlatRowTree = (rows) => {
51841
51841
  const tree = {
51842
- [GRID_ROOT_GROUP_ID]: _extends$2({}, buildRootGroup(), {
51842
+ [GRID_ROOT_GROUP_ID]: _extends$1({}, buildRootGroup(), {
51843
51843
  children: rows
51844
51844
  })
51845
51845
  };
@@ -51866,7 +51866,7 @@ const updateFlatRowTree = ({
51866
51866
  previousTree,
51867
51867
  actions
51868
51868
  }) => {
51869
- const tree = _extends$2({}, previousTree);
51869
+ const tree = _extends$1({}, previousTree);
51870
51870
  const idsToRemoveFromRootGroup = {};
51871
51871
  for (let i = 0; i < actions.remove.length; i += 1) {
51872
51872
  const idToDelete = actions.remove[i];
@@ -51888,7 +51888,7 @@ const updateFlatRowTree = ({
51888
51888
  if (Object.values(idsToRemoveFromRootGroup).length) {
51889
51889
  rootGroupChildren = rootGroupChildren.filter((id) => !idsToRemoveFromRootGroup[id]);
51890
51890
  }
51891
- tree[GRID_ROOT_GROUP_ID] = _extends$2({}, rootGroup, {
51891
+ tree[GRID_ROOT_GROUP_ID] = _extends$1({}, rootGroup, {
51892
51892
  children: rootGroupChildren
51893
51893
  });
51894
51894
  return {
@@ -52040,7 +52040,7 @@ const emptyModel = {
52040
52040
  type: "include",
52041
52041
  ids: /* @__PURE__ */ new Set()
52042
52042
  };
52043
- const rowSelectionStateInitializer = (state, props) => _extends$2({}, state, {
52043
+ const rowSelectionStateInitializer = (state, props) => _extends$1({}, state, {
52044
52044
  rowSelection: props.rowSelection ? props.rowSelectionModel ?? emptyModel : emptyModel
52045
52045
  });
52046
52046
  const useGridRowSelection = (apiRef, props) => {
@@ -52105,7 +52105,7 @@ const useGridRowSelection = (apiRef, props) => {
52105
52105
  const currentModel = gridRowSelectionStateSelector(apiRef);
52106
52106
  if (currentModel !== model) {
52107
52107
  logger.debug(`Setting selection model`);
52108
- apiRef.current.setState((state) => _extends$2({}, state, {
52108
+ apiRef.current.setState((state) => _extends$1({}, state, {
52109
52109
  rowSelection: props.rowSelection ? model : emptyModel
52110
52110
  }));
52111
52111
  }
@@ -52574,7 +52574,7 @@ const useGridRowSelectionPreProcessors = (apiRef, props) => {
52574
52574
  };
52575
52575
  const classes2 = useUtilityClasses$7(ownerState);
52576
52576
  const updateSelectionColumn = React.useCallback((columnsState) => {
52577
- const selectionColumn = _extends$2({}, GRID_CHECKBOX_SELECTION_COL_DEF, {
52577
+ const selectionColumn = _extends$1({}, GRID_CHECKBOX_SELECTION_COL_DEF, {
52578
52578
  cellClassName: classes2.cellCheckbox,
52579
52579
  headerClassName: classes2.columnHeaderCheckbox,
52580
52580
  headerName: apiRef.current.getLocaleText("checkboxSelectionHeaderName")
@@ -52588,7 +52588,7 @@ const useGridRowSelectionPreProcessors = (apiRef, props) => {
52588
52588
  delete columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD];
52589
52589
  columnsState.orderedFields = columnsState.orderedFields.filter((field) => field !== GRID_CHECKBOX_SELECTION_FIELD);
52590
52590
  } else if (shouldHaveSelectionColumn && haveSelectionColumn) {
52591
- columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD] = _extends$2({}, selectionColumn, columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD]);
52591
+ columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD] = _extends$1({}, selectionColumn, columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD]);
52592
52592
  }
52593
52593
  return columnsState;
52594
52594
  }, [apiRef, classes2, props.checkboxSelection]);
@@ -52597,7 +52597,7 @@ const useGridRowSelectionPreProcessors = (apiRef, props) => {
52597
52597
  const sortingStateInitializer = (state, props) => {
52598
52598
  var _a2, _b2;
52599
52599
  const sortModel = props.sortModel ?? ((_b2 = (_a2 = props.initialState) == null ? void 0 : _a2.sorting) == null ? void 0 : _b2.sortModel) ?? [];
52600
- return _extends$2({}, state, {
52600
+ return _extends$1({}, state, {
52601
52601
  sorting: {
52602
52602
  sortModel: sanitizeSortModel(sortModel, props.disableMultipleColumnsSorting),
52603
52603
  sortedRows: []
@@ -52634,7 +52634,7 @@ const useGridSorting = (apiRef, props) => {
52634
52634
  const existing = sortModel.find((c) => c.field === col.field);
52635
52635
  if (existing) {
52636
52636
  const nextSort = directionOverride === void 0 ? getNextGridSortDirection(col.sortingOrder ?? props.sortingOrder, existing.sort) : directionOverride;
52637
- return nextSort === void 0 ? void 0 : _extends$2({}, existing, {
52637
+ return nextSort === void 0 ? void 0 : _extends$1({}, existing, {
52638
52638
  sort: nextSort
52639
52639
  });
52640
52640
  }
@@ -52657,8 +52657,8 @@ const useGridSorting = (apiRef, props) => {
52657
52657
  apiRef.current.setState((state) => {
52658
52658
  if (props.sortingMode === "server") {
52659
52659
  logger.debug("Skipping sorting rows as sortingMode = server");
52660
- return _extends$2({}, state, {
52661
- sorting: _extends$2({}, state.sorting, {
52660
+ return _extends$1({}, state, {
52661
+ sorting: _extends$1({}, state.sorting, {
52662
52662
  sortedRows: getTreeNodeDescendants(gridRowTreeSelector(apiRef), GRID_ROOT_GROUP_ID, false)
52663
52663
  })
52664
52664
  });
@@ -52668,8 +52668,8 @@ const useGridSorting = (apiRef, props) => {
52668
52668
  const sortedRows = apiRef.current.applyStrategyProcessor("sorting", {
52669
52669
  sortRowList
52670
52670
  });
52671
- return _extends$2({}, state, {
52672
- sorting: _extends$2({}, state.sorting, {
52671
+ return _extends$1({}, state, {
52672
+ sorting: _extends$1({}, state.sorting, {
52673
52673
  sortedRows
52674
52674
  })
52675
52675
  });
@@ -52725,7 +52725,7 @@ const useGridSorting = (apiRef, props) => {
52725
52725
  if (!shouldExportSortModel) {
52726
52726
  return prevState;
52727
52727
  }
52728
- return _extends$2({}, prevState, {
52728
+ return _extends$1({}, prevState, {
52729
52729
  sorting: {
52730
52730
  sortModel: sortModelToExport
52731
52731
  }
@@ -52738,7 +52738,7 @@ const useGridSorting = (apiRef, props) => {
52738
52738
  return params;
52739
52739
  }
52740
52740
  apiRef.current.setState(mergeStateWithSortModel(sortModel, props.disableMultipleColumnsSorting));
52741
- return _extends$2({}, params, {
52741
+ return _extends$1({}, params, {
52742
52742
  callbacks: [...params.callbacks, apiRef.current.applySorting]
52743
52743
  });
52744
52744
  }, [apiRef, props.disableMultipleColumnsSorting]);
@@ -53035,8 +53035,8 @@ const EMPTY_DIMENSIONS = {
53035
53035
  const dimensionsStateInitializer = (state, props, apiRef) => {
53036
53036
  const dimensions = EMPTY_DIMENSIONS;
53037
53037
  const density = gridDensityFactorSelector(apiRef);
53038
- return _extends$2({}, state, {
53039
- dimensions: _extends$2({}, dimensions, getStaticDimensions(props, apiRef, density, gridVisiblePinnedColumnDefinitionsSelector(apiRef)))
53038
+ return _extends$1({}, state, {
53039
+ dimensions: _extends$1({}, dimensions, getStaticDimensions(props, apiRef, density, gridVisiblePinnedColumnDefinitionsSelector(apiRef)))
53040
53040
  });
53041
53041
  };
53042
53042
  const columnsTotalWidthSelector = createSelector(gridVisibleColumnDefinitionsSelector, gridColumnPositionsSelector, (visibleColumns, positions) => {
@@ -53065,7 +53065,7 @@ function useGridDimensions(apiRef, props) {
53065
53065
  } = getStaticDimensions(props, apiRef, densityFactor, pinnedColumns);
53066
53066
  const getRootDimensions = React.useCallback(() => gridDimensionsSelector(apiRef), [apiRef]);
53067
53067
  const setDimensions = React.useCallback((dimensions) => {
53068
- apiRef.current.setState((state) => _extends$2({}, state, {
53068
+ apiRef.current.setState((state) => _extends$1({}, state, {
53069
53069
  dimensions
53070
53070
  }));
53071
53071
  if (apiRef.current.rootElementRef.current) {
@@ -53290,7 +53290,7 @@ const rowsMetaStateInitializer = (state, props, apiRef) => {
53290
53290
  const dataRowCount = gridRowCountSelector(apiRef);
53291
53291
  const pagination = gridPaginationSelector(apiRef);
53292
53292
  const rowCount = Math.min(pagination.enabled ? pagination.paginationModel.pageSize : dataRowCount, dataRowCount);
53293
- return _extends$2({}, state, {
53293
+ return _extends$1({}, state, {
53294
53294
  rowsMeta: {
53295
53295
  currentPageTotalHeight: rowCount * baseRowHeight,
53296
53296
  positions: Array.from({
@@ -53337,12 +53337,12 @@ const useGridRowsMeta = (apiRef, props) => {
53337
53337
  entry.content = baseRowHeight;
53338
53338
  entry.needsFirstMeasurement = false;
53339
53339
  } else {
53340
- const rowHeightFromUser = getRowHeightProp(_extends$2({}, row, {
53340
+ const rowHeightFromUser = getRowHeightProp(_extends$1({}, row, {
53341
53341
  densityFactor
53342
53342
  }));
53343
53343
  if (rowHeightFromUser === "auto") {
53344
53344
  if (entry.needsFirstMeasurement) {
53345
- const estimatedRowHeight = getEstimatedRowHeight ? getEstimatedRowHeight(_extends$2({}, row, {
53345
+ const estimatedRowHeight = getEstimatedRowHeight ? getEstimatedRowHeight(_extends$1({}, row, {
53346
53346
  densityFactor
53347
53347
  })) : baseRowHeight;
53348
53348
  entry.content = estimatedRowHeight ?? baseRowHeight;
@@ -53357,7 +53357,7 @@ const useGridRowsMeta = (apiRef, props) => {
53357
53357
  }
53358
53358
  if (getRowSpacing) {
53359
53359
  const indexRelativeToCurrentPage = apiRef.current.getRowIndexRelativeToVisibleRows(row.id);
53360
- const spacing2 = getRowSpacing(_extends$2({}, row, {
53360
+ const spacing2 = getRowSpacing(_extends$1({}, row, {
53361
53361
  isFirstVisible: indexRelativeToCurrentPage === 0,
53362
53362
  isLastVisible: indexRelativeToCurrentPage === currentPage.rows.length - 1,
53363
53363
  indexRelativeToCurrentPage
@@ -53399,7 +53399,7 @@ const useGridRowsMeta = (apiRef, props) => {
53399
53399
  pinnedBottomRowsTotalHeight
53400
53400
  };
53401
53401
  apiRef.current.setState((state) => {
53402
- return _extends$2({}, state, {
53402
+ return _extends$1({}, state, {
53403
53403
  rowsMeta
53404
53404
  });
53405
53405
  });
@@ -53682,18 +53682,18 @@ const createGroupLookup = (columnGroupingModel) => {
53682
53682
  console.warn(`MUI X: group groupId=${groupId} has no children.`);
53683
53683
  }
53684
53684
  }
53685
- const groupParam = _extends$2({}, other, {
53685
+ const groupParam = _extends$1({}, other, {
53686
53686
  groupId
53687
53687
  });
53688
53688
  const subTreeLookup = createGroupLookup(children);
53689
53689
  if (subTreeLookup[groupId] !== void 0 || groupLookup[groupId] !== void 0) {
53690
53690
  throw new Error(`MUI X: The groupId ${groupId} is used multiple times in the columnGroupingModel.`);
53691
53691
  }
53692
- groupLookup = _extends$2({}, groupLookup, subTreeLookup, {
53692
+ groupLookup = _extends$1({}, groupLookup, subTreeLookup, {
53693
53693
  [groupId]: groupParam
53694
53694
  });
53695
53695
  });
53696
- return _extends$2({}, groupLookup);
53696
+ return _extends$1({}, groupLookup);
53697
53697
  };
53698
53698
  const columnGroupsStateInitializer = (state, props, apiRef) => {
53699
53699
  if (!props.columnGroupingModel) {
@@ -53708,7 +53708,7 @@ const columnGroupsStateInitializer = (state, props, apiRef) => {
53708
53708
  var _a2;
53709
53709
  return ((_a2 = unwrappedGroupingModel[field]) == null ? void 0 : _a2.length) ?? 0;
53710
53710
  }));
53711
- return _extends$2({}, state, {
53711
+ return _extends$1({}, state, {
53712
53712
  columnGrouping: {
53713
53713
  lookup: groupLookup,
53714
53714
  unwrappedGroupingModel,
@@ -53738,8 +53738,8 @@ const useGridColumnGrouping = (apiRef, props) => {
53738
53738
  const orderedFields = ((_a2 = state.columns) == null ? void 0 : _a2.orderedFields) ?? [];
53739
53739
  const pinnedColumns = state.pinnedColumns ?? {};
53740
53740
  const columnGroupsHeaderStructure = getColumnGroupsHeaderStructure(orderedFields, unwrappedGroupingModel, pinnedColumns);
53741
- return _extends$2({}, state, {
53742
- columnGrouping: _extends$2({}, state.columnGrouping, {
53741
+ return _extends$1({}, state, {
53742
+ columnGrouping: _extends$1({}, state.columnGrouping, {
53743
53743
  headerStructure: columnGroupsHeaderStructure
53744
53744
  })
53745
53745
  });
@@ -53758,7 +53758,7 @@ const useGridColumnGrouping = (apiRef, props) => {
53758
53758
  return ((_a3 = unwrappedGroupingModel[field]) == null ? void 0 : _a3.length) ?? 0;
53759
53759
  }));
53760
53760
  apiRef.current.setState((state) => {
53761
- return _extends$2({}, state, {
53761
+ return _extends$1({}, state, {
53762
53762
  columnGrouping: {
53763
53763
  lookup: groupLookup,
53764
53764
  unwrappedGroupingModel,
@@ -53908,7 +53908,7 @@ function extractColumnWidths(apiRef, options, columns2) {
53908
53908
  root2.classList.remove(gridClasses.autosizing);
53909
53909
  return widthByField;
53910
53910
  }
53911
- const columnResizeStateInitializer = (state) => _extends$2({}, state, {
53911
+ const columnResizeStateInitializer = (state) => _extends$1({}, state, {
53912
53912
  columnResize: {
53913
53913
  resizingColumnField: ""
53914
53914
  }
@@ -54134,15 +54134,15 @@ const useGridColumnResize = (apiRef, props) => {
54134
54134
  const handleResizeStart = React.useCallback(({
54135
54135
  field
54136
54136
  }) => {
54137
- apiRef.current.setState((state) => _extends$2({}, state, {
54138
- columnResize: _extends$2({}, state.columnResize, {
54137
+ apiRef.current.setState((state) => _extends$1({}, state, {
54138
+ columnResize: _extends$1({}, state.columnResize, {
54139
54139
  resizingColumnField: field
54140
54140
  })
54141
54141
  }));
54142
54142
  }, [apiRef]);
54143
54143
  const handleResizeStop = React.useCallback(() => {
54144
- apiRef.current.setState((state) => _extends$2({}, state, {
54145
- columnResize: _extends$2({}, state.columnResize, {
54144
+ apiRef.current.setState((state) => _extends$1({}, state, {
54145
+ columnResize: _extends$1({}, state.columnResize, {
54146
54146
  resizingColumnField: ""
54147
54147
  })
54148
54148
  }));
@@ -54180,7 +54180,7 @@ const useGridColumnResize = (apiRef, props) => {
54180
54180
  if (column2.resizable === false) {
54181
54181
  return;
54182
54182
  }
54183
- apiRef.current.autosizeColumns(_extends$2({}, props.autosizeOptions, {
54183
+ apiRef.current.autosizeColumns(_extends$1({}, props.autosizeOptions, {
54184
54184
  disableColumnVirtualization: false,
54185
54185
  columns: [column2.field]
54186
54186
  }));
@@ -54198,7 +54198,7 @@ const useGridColumnResize = (apiRef, props) => {
54198
54198
  }
54199
54199
  isAutosizingRef.current = true;
54200
54200
  const state = gridColumnsStateSelector(apiRef);
54201
- const options = _extends$2({}, DEFAULT_GRID_AUTOSIZE_OPTIONS, userOptions, {
54201
+ const options = _extends$1({}, DEFAULT_GRID_AUTOSIZE_OPTIONS, userOptions, {
54202
54202
  columns: (userOptions == null ? void 0 : userOptions.columns) ?? state.orderedFields
54203
54203
  });
54204
54204
  options.columns = options.columns.filter((c) => state.columnVisibilityModel[c] !== false);
@@ -54209,7 +54209,7 @@ const useGridColumnResize = (apiRef, props) => {
54209
54209
  await columnVirtualizationDisabled();
54210
54210
  }
54211
54211
  const widthByField = extractColumnWidths(apiRef, options, columns2);
54212
- const newColumns = columns2.map((column2) => _extends$2({}, column2, {
54212
+ const newColumns = columns2.map((column2) => _extends$1({}, column2, {
54213
54213
  width: widthByField[column2.field],
54214
54214
  computedWidth: widthByField[column2.field],
54215
54215
  flex: 0
@@ -54320,9 +54320,9 @@ const EMPTY_RANGE = {
54320
54320
  const skippedFields = /* @__PURE__ */ new Set([GRID_CHECKBOX_SELECTION_FIELD, "__reorder__", GRID_DETAIL_PANEL_TOGGLE_FIELD]);
54321
54321
  const DEFAULT_ROWS_TO_PROCESS = 20;
54322
54322
  const computeRowSpanningState = (apiRef, colDefs, visibleRows, range2, rangeToProcess, resetState, processedRange) => {
54323
- const spannedCells = resetState ? {} : _extends$2({}, apiRef.current.state.rowSpanning.spannedCells);
54324
- const hiddenCells = resetState ? {} : _extends$2({}, apiRef.current.state.rowSpanning.hiddenCells);
54325
- const hiddenCellOriginMap = resetState ? {} : _extends$2({}, apiRef.current.state.rowSpanning.hiddenCellOriginMap);
54323
+ const spannedCells = resetState ? {} : _extends$1({}, apiRef.current.state.rowSpanning.spannedCells);
54324
+ const hiddenCells = resetState ? {} : _extends$1({}, apiRef.current.state.rowSpanning.hiddenCells);
54325
+ const hiddenCellOriginMap = resetState ? {} : _extends$1({}, apiRef.current.state.rowSpanning.hiddenCellOriginMap);
54326
54326
  if (resetState) {
54327
54327
  processedRange = EMPTY_RANGE;
54328
54328
  }
@@ -54436,7 +54436,7 @@ const getInitialRangeToProcess = (props, apiRef) => {
54436
54436
  const rowSpanningStateInitializer = (state, props, apiRef) => {
54437
54437
  var _a2;
54438
54438
  if (!props.rowSpanning) {
54439
- return _extends$2({}, state, {
54439
+ return _extends$1({}, state, {
54440
54440
  rowSpanning: EMPTY_STATE
54441
54441
  });
54442
54442
  }
@@ -54446,7 +54446,7 @@ const rowSpanningStateInitializer = (state, props, apiRef) => {
54446
54446
  const columnsLookup = state.columns.lookup;
54447
54447
  const isFilteringPending = Boolean(state.filter.filterModel.items.length) || Boolean((_a2 = state.filter.filterModel.quickFilterValues) == null ? void 0 : _a2.length);
54448
54448
  if (!rowIds.length || !orderedFields.length || !dataRowIdToModelLookup || !columnsLookup || isFilteringPending) {
54449
- return _extends$2({}, state, {
54449
+ return _extends$1({}, state, {
54450
54450
  rowSpanning: EMPTY_STATE
54451
54451
  });
54452
54452
  }
@@ -54461,7 +54461,7 @@ const rowSpanningStateInitializer = (state, props, apiRef) => {
54461
54461
  hiddenCells,
54462
54462
  hiddenCellOriginMap
54463
54463
  } = computeRowSpanningState(apiRef, colDefs, rows, rangeToProcess, rangeToProcess, true, EMPTY_RANGE);
54464
- return _extends$2({}, state, {
54464
+ return _extends$1({}, state, {
54465
54465
  rowSpanning: {
54466
54466
  spannedCells,
54467
54467
  hiddenCells,
@@ -54512,7 +54512,7 @@ const useGridRowSpanning = (apiRef, props) => {
54512
54512
  return;
54513
54513
  }
54514
54514
  apiRef.current.setState((state) => {
54515
- return _extends$2({}, state, {
54515
+ return _extends$1({}, state, {
54516
54516
  rowSpanning: {
54517
54517
  spannedCells,
54518
54518
  hiddenCells,
@@ -54536,7 +54536,7 @@ const useGridRowSpanning = (apiRef, props) => {
54536
54536
  React.useEffect(() => {
54537
54537
  if (!props.rowSpanning) {
54538
54538
  if (apiRef.current.state.rowSpanning !== EMPTY_STATE) {
54539
- apiRef.current.setState((state) => _extends$2({}, state, {
54539
+ apiRef.current.setState((state) => _extends$1({}, state, {
54540
54540
  rowSpanning: EMPTY_STATE
54541
54541
  }));
54542
54542
  }
@@ -54545,8 +54545,8 @@ const useGridRowSpanning = (apiRef, props) => {
54545
54545
  }
54546
54546
  }, [apiRef, resetRowSpanningState, props.rowSpanning]);
54547
54547
  };
54548
- const listViewStateInitializer = (state, props, apiRef) => _extends$2({}, state, {
54549
- listViewColumn: props.listViewColumn ? _extends$2({}, props.listViewColumn, {
54548
+ const listViewStateInitializer = (state, props, apiRef) => _extends$1({}, state, {
54549
+ listViewColumn: props.listViewColumn ? _extends$1({}, props.listViewColumn, {
54550
54550
  computedWidth: getListColumnWidth(apiRef)
54551
54551
  }) : void 0
54552
54552
  });
@@ -54556,8 +54556,8 @@ function useGridListView(apiRef, props) {
54556
54556
  if (!state.listViewColumn) {
54557
54557
  return state;
54558
54558
  }
54559
- return _extends$2({}, state, {
54560
- listViewColumn: _extends$2({}, state.listViewColumn, {
54559
+ return _extends$1({}, state, {
54560
+ listViewColumn: _extends$1({}, state.listViewColumn, {
54561
54561
  computedWidth: getListColumnWidth(apiRef)
54562
54562
  })
54563
54563
  });
@@ -54576,8 +54576,8 @@ function useGridListView(apiRef, props) {
54576
54576
  const listColumn = props.listViewColumn;
54577
54577
  if (listColumn) {
54578
54578
  apiRef.current.setState((state) => {
54579
- return _extends$2({}, state, {
54580
- listViewColumn: _extends$2({}, listColumn, {
54579
+ return _extends$1({}, state, {
54580
+ listViewColumn: _extends$1({}, listColumn, {
54581
54581
  computedWidth: getListColumnWidth(apiRef)
54582
54582
  })
54583
54583
  });
@@ -54622,7 +54622,7 @@ class CacheChunkManager {
54622
54622
  const chunkedKeys = [];
54623
54623
  for (let i = key.start; i < key.end; i += this.chunkSize) {
54624
54624
  const end2 = Math.min(i + this.chunkSize - 1, key.end);
54625
- chunkedKeys.push(_extends$2({}, key, {
54625
+ chunkedKeys.push(_extends$1({}, key, {
54626
54626
  start: i,
54627
54627
  end: end2
54628
54628
  }));
@@ -54635,8 +54635,8 @@ class CacheChunkManager {
54635
54635
  cacheKeys.forEach((chunkKey) => {
54636
54636
  var _a2, _b2, _c2, _d2;
54637
54637
  const isLastChunk = chunkKey.end === key.end;
54638
- const responseSlice = _extends$2({}, response, {
54639
- pageInfo: _extends$2({}, response.pageInfo, {
54638
+ const responseSlice = _extends$1({}, response, {
54639
+ pageInfo: _extends$1({}, response.pageInfo, {
54640
54640
  // If the original response had page info, update that information for all but last chunk and keep the original value for the last chunk
54641
54641
  hasNextPage: ((_a2 = response.pageInfo) == null ? void 0 : _a2.hasNextPage) !== void 0 && !isLastChunk ? true : (_b2 = response.pageInfo) == null ? void 0 : _b2.hasNextPage,
54642
54642
  nextCursor: ((_c2 = response.pageInfo) == null ? void 0 : _c2.nextCursor) !== void 0 && !isLastChunk ? response.rows[chunkKey.end + 1].id : (_d2 = response.pageInfo) == null ? void 0 : _d2.nextCursor
@@ -54703,7 +54703,7 @@ const useGridDataSourceBase = (apiRef, props, options = {}) => {
54703
54703
  return;
54704
54704
  }
54705
54705
  (_c2 = options.clearDataSourceState) == null ? void 0 : _c2.call(options);
54706
- const fetchParams = _extends$2({}, gridGetRowsParamsSelector(apiRef), apiRef.current.unstable_applyPipeProcessors("getRowsParams", {}), params);
54706
+ const fetchParams = _extends$1({}, gridGetRowsParamsSelector(apiRef), apiRef.current.unstable_applyPipeProcessors("getRowsParams", {}), params);
54707
54707
  const cacheKeys = cacheChunkManager.getCacheKeys(fetchParams);
54708
54708
  const responses = cacheKeys.map((cacheKey) => cache2.get(cacheKey));
54709
54709
  if (responses.every((response) => response !== void 0)) {
@@ -54947,7 +54947,7 @@ function GridColumnGroupHeader(props) {
54947
54947
  if (groupId && render) {
54948
54948
  headerComponent = render(renderParams);
54949
54949
  }
54950
- const ownerState = _extends$2({}, props, {
54950
+ const ownerState = _extends$1({}, props, {
54951
54951
  classes: rootProps.classes,
54952
54952
  headerAlign,
54953
54953
  depth,
@@ -54981,8 +54981,8 @@ function GridColumnGroupHeader(props) {
54981
54981
  onBlur: publish("columnGroupHeaderBlur")
54982
54982
  }), [publish]);
54983
54983
  const headerClassName = typeof group.headerClassName === "function" ? group.headerClassName(renderParams) : group.headerClassName;
54984
- const style2 = React.useMemo(() => attachPinnedStyle(_extends$2({}, props.style), isRtl, pinnedPosition, pinnedOffset), [pinnedPosition, pinnedOffset, props.style, isRtl]);
54985
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnHeaderItem, _extends$2({
54984
+ const style2 = React.useMemo(() => attachPinnedStyle(_extends$1({}, props.style), isRtl, pinnedPosition, pinnedOffset), [pinnedPosition, pinnedOffset, props.style, isRtl]);
54985
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnHeaderItem, _extends$1({
54986
54986
  ref: headerCellRef,
54987
54987
  classes: classes2,
54988
54988
  columnMenuOpen: false,
@@ -55121,7 +55121,7 @@ const useGridColumnHeaders = (props) => {
55121
55121
  const sectionLength = renderedColumns.length;
55122
55122
  const showLeftBorder = shouldCellShowLeftBorder(pinnedPosition, indexInSection);
55123
55123
  const showRightBorder = shouldCellShowRightBorder(pinnedPosition, indexInSection, sectionLength, rootProps.showColumnVerticalBorder, gridHasFiller);
55124
- columns2.push(/* @__PURE__ */ jsxRuntimeExports.jsx(Memoized, _extends$2({}, sortColumnLookup[colDef.field], {
55124
+ columns2.push(/* @__PURE__ */ jsxRuntimeExports.jsx(Memoized, _extends$1({}, sortColumnLookup[colDef.field], {
55125
55125
  columnMenuOpen: open,
55126
55126
  filterItemsCounter: filterColumnLookup[colDef.field] && filterColumnLookup[colDef.field].length,
55127
55127
  headerHeight,
@@ -55194,7 +55194,7 @@ const useGridColumnHeaders = (props) => {
55194
55194
  columnFields
55195
55195
  }) => groupId === lastGroupToRender && columnFields.includes(lastColumnFieldToRender));
55196
55196
  const visibleColumnGroupHeader = rowStructure.slice(firstGroupIndex, lastGroupIndex + 1).map((groupStructure) => {
55197
- return _extends$2({}, groupStructure, {
55197
+ return _extends$1({}, groupStructure, {
55198
55198
  columnFields: groupStructure.columnFields.filter((field) => columnVisibility[field] !== false)
55199
55199
  });
55200
55200
  }).filter((groupStructure) => groupStructure.columnFields.length > 0);
@@ -55323,7 +55323,7 @@ const GridBaseColumnHeaders = forwardRef(function GridColumnHeaders(props, ref)
55323
55323
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$3);
55324
55324
  const rootProps = useGridRootProps();
55325
55325
  const classes2 = useUtilityClasses$5(rootProps);
55326
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeadersRoot, _extends$2({
55326
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeadersRoot, _extends$1({
55327
55327
  className: clsx$1(classes2.root, className),
55328
55328
  ownerState: rootProps
55329
55329
  }, other, {
@@ -55365,7 +55365,7 @@ const GridColumnHeaders2 = forwardRef(function GridColumnHeaders22(props, ref) {
55365
55365
  columnGroupsHeaderStructure,
55366
55366
  hasOtherElementInTabSequence
55367
55367
  });
55368
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridBaseColumnHeaders, _extends$2({}, other, getInnerProps(), {
55368
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridBaseColumnHeaders, _extends$1({}, other, getInnerProps(), {
55369
55369
  ref,
55370
55370
  children: [getColumnGroupHeadersRows(), getColumnHeadersRow()]
55371
55371
  }));
@@ -55414,7 +55414,7 @@ function GridPinnedRows(_) {
55414
55414
  const GridNoResultsOverlay = forwardRef(function GridNoResultsOverlay2(props, ref) {
55415
55415
  const apiRef = useGridApiContext();
55416
55416
  const noResultsOverlayLabel = apiRef.current.getLocaleText("noResultsOverlayLabel");
55417
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$2({}, props, {
55417
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$1({}, props, {
55418
55418
  ref,
55419
55419
  children: noResultsOverlayLabel
55420
55420
  }));
@@ -56939,7 +56939,7 @@ const GridColumnUnsortedIcon = /* @__PURE__ */ React.memo(function GridColumnHea
56939
56939
  const rootProps = useGridRootProps();
56940
56940
  const [nextSortDirection] = sortingOrder;
56941
56941
  const Icon = nextSortDirection === "asc" ? rootProps.slots.columnSortedAscendingIcon : rootProps.slots.columnSortedDescendingIcon;
56942
- return Icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$2({}, other)) : null;
56942
+ return Icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$1({}, other)) : null;
56943
56943
  });
56944
56944
  const encoder = new TextEncoder();
56945
56945
  let bufferLength = 2 * 1024;
@@ -57156,7 +57156,7 @@ const BaseSelect = forwardRef(function BaseSelect2(props, ref) {
57156
57156
  shrink: true,
57157
57157
  variant: "outlined",
57158
57158
  children: label
57159
- }), /* @__PURE__ */ jsxRuntimeExports.jsx(Select, _extends$2({
57159
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(Select, _extends$1({
57160
57160
  id,
57161
57161
  labelId,
57162
57162
  label,
@@ -57212,13 +57212,13 @@ const BasePagination = forwardRef(function BasePagination2(props, ref) {
57212
57212
  const {
57213
57213
  estimatedRowCount
57214
57214
  } = rootProps;
57215
- return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledPagination, _extends$2({
57215
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledPagination, _extends$1({
57216
57216
  component: "div",
57217
57217
  onRowsPerPageChange: useEventCallback((event) => {
57218
57218
  onRowsPerPageChange == null ? void 0 : onRowsPerPageChange(Number(event.target.value));
57219
57219
  }),
57220
57220
  labelRowsPerPage: apiRef.current.getLocaleText("paginationRowsPerPage"),
57221
- labelDisplayedRows: (params) => apiRef.current.getLocaleText("paginationDisplayedRows")(_extends$2({}, params, {
57221
+ labelDisplayedRows: (params) => apiRef.current.getLocaleText("paginationDisplayedRows")(_extends$1({}, params, {
57222
57222
  estimated: estimatedRowCount
57223
57223
  })),
57224
57224
  getItemAriaLabel: apiRef.current.getLocaleText("paginationItemAriaLabel")
@@ -57230,7 +57230,7 @@ const BaseBadge = forwardRef(function BaseBadge2(props, ref) {
57230
57230
  const {
57231
57231
  material
57232
57232
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded3);
57233
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, _extends$2({}, rest, material, {
57233
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, _extends$1({}, rest, material, {
57234
57234
  ref
57235
57235
  }));
57236
57236
  });
@@ -57258,7 +57258,7 @@ const BaseCheckbox = forwardRef(function BaseCheckbox2(props, ref) {
57258
57258
  }
57259
57259
  }, [autoFocus]);
57260
57260
  if (!label) {
57261
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, _extends$2({}, other, material, {
57261
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, _extends$1({}, other, material, {
57262
57262
  className: clsx$1(className, material == null ? void 0 : material.className),
57263
57263
  inputProps: slotProps == null ? void 0 : slotProps.htmlInput,
57264
57264
  ref: handleRef,
@@ -57267,7 +57267,7 @@ const BaseCheckbox = forwardRef(function BaseCheckbox2(props, ref) {
57267
57267
  }
57268
57268
  return /* @__PURE__ */ jsxRuntimeExports.jsx(FormControlLabel, {
57269
57269
  className,
57270
- control: /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, _extends$2({}, other, material, {
57270
+ control: /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, _extends$1({}, other, material, {
57271
57271
  inputProps: slotProps == null ? void 0 : slotProps.htmlInput,
57272
57272
  ref: handleRef,
57273
57273
  touchRippleRef: rippleRef
@@ -57280,7 +57280,7 @@ const BaseCircularProgress = forwardRef(function BaseCircularProgress2(props, re
57280
57280
  const {
57281
57281
  material
57282
57282
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded5);
57283
- return /* @__PURE__ */ jsxRuntimeExports.jsx(CircularProgress, _extends$2({}, rest, material, {
57283
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(CircularProgress, _extends$1({}, rest, material, {
57284
57284
  ref
57285
57285
  }));
57286
57286
  });
@@ -57288,7 +57288,7 @@ const BaseDivider = forwardRef(function BaseDivider2(props, ref) {
57288
57288
  const {
57289
57289
  material
57290
57290
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded6);
57291
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Divider$1, _extends$2({}, rest, material, {
57291
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Divider$1, _extends$1({}, rest, material, {
57292
57292
  ref
57293
57293
  }));
57294
57294
  });
@@ -57296,7 +57296,7 @@ const BaseLinearProgress = forwardRef(function BaseLinearProgress2(props, ref) {
57296
57296
  const {
57297
57297
  material
57298
57298
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded7);
57299
- return /* @__PURE__ */ jsxRuntimeExports.jsx(LinearProgress, _extends$2({}, rest, material, {
57299
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(LinearProgress, _extends$1({}, rest, material, {
57300
57300
  ref
57301
57301
  }));
57302
57302
  });
@@ -57304,7 +57304,7 @@ const BaseButton = forwardRef(function BaseButton2(props, ref) {
57304
57304
  const {
57305
57305
  material
57306
57306
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded8);
57307
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Button, _extends$2({}, rest, material, {
57307
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Button, _extends$1({}, rest, material, {
57308
57308
  ref
57309
57309
  }));
57310
57310
  });
@@ -57312,7 +57312,7 @@ const BaseIconButton = forwardRef(function BaseIconButton2(props, ref) {
57312
57312
  const {
57313
57313
  material
57314
57314
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded9);
57315
- return /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, _extends$2({}, rest, material, {
57315
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, _extends$1({}, rest, material, {
57316
57316
  ref
57317
57317
  }));
57318
57318
  });
@@ -57320,7 +57320,7 @@ const BaseTooltip = forwardRef(function BaseTooltip2(props, ref) {
57320
57320
  const {
57321
57321
  material
57322
57322
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded10);
57323
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, _extends$2({}, rest, material, {
57323
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, _extends$1({}, rest, material, {
57324
57324
  ref
57325
57325
  }));
57326
57326
  });
@@ -57328,7 +57328,7 @@ const BaseSkeleton = forwardRef(function BaseSkeleton2(props, ref) {
57328
57328
  const {
57329
57329
  material
57330
57330
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded11);
57331
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton, _extends$2({}, rest, material, {
57331
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton, _extends$1({}, rest, material, {
57332
57332
  ref
57333
57333
  }));
57334
57334
  });
@@ -57336,7 +57336,7 @@ const BaseSwitch = forwardRef(function BaseSwitch2(props, ref) {
57336
57336
  const {
57337
57337
  material
57338
57338
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded12);
57339
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Switch, _extends$2({}, rest, material, {
57339
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Switch, _extends$1({}, rest, material, {
57340
57340
  ref
57341
57341
  }));
57342
57342
  });
@@ -57344,7 +57344,7 @@ const BaseMenuList = forwardRef(function BaseMenuList2(props, ref) {
57344
57344
  const {
57345
57345
  material
57346
57346
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded13);
57347
- return /* @__PURE__ */ jsxRuntimeExports.jsx(MenuList, _extends$2({}, rest, material, {
57347
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(MenuList, _extends$1({}, rest, material, {
57348
57348
  ref
57349
57349
  }));
57350
57350
  });
@@ -57371,12 +57371,12 @@ function BaseTextField(props) {
57371
57371
  slotProps,
57372
57372
  material
57373
57373
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded15);
57374
- return /* @__PURE__ */ jsxRuntimeExports.jsx(TextField, _extends$2({
57374
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(TextField, _extends$1({
57375
57375
  variant: "outlined"
57376
57376
  }, rest, material, {
57377
57377
  inputProps: slotProps == null ? void 0 : slotProps.htmlInput,
57378
57378
  InputProps: transformInputProps(slotProps == null ? void 0 : slotProps.input),
57379
- InputLabelProps: _extends$2({
57379
+ InputLabelProps: _extends$1({
57380
57380
  shrink: true
57381
57381
  }, slotProps == null ? void 0 : slotProps.inputLabel)
57382
57382
  }));
@@ -57397,7 +57397,7 @@ function BaseAutocomplete(props) {
57397
57397
  slotProps,
57398
57398
  material
57399
57399
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded16);
57400
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Autocomplete, _extends$2({
57400
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Autocomplete, _extends$1({
57401
57401
  id,
57402
57402
  multiple,
57403
57403
  freeSolo,
@@ -57412,7 +57412,7 @@ function BaseAutocomplete(props) {
57412
57412
  }), {
57413
57413
  key
57414
57414
  } = _getTagProps, tagProps = _objectWithoutPropertiesLoose(_getTagProps, _excluded17);
57415
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Chip, _extends$2({
57415
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Chip, _extends$1({
57416
57416
  variant: "outlined",
57417
57417
  size: "small",
57418
57418
  label: typeof option === "string" ? option : getOptionLabel == null ? void 0 : getOptionLabel(option)
@@ -57425,12 +57425,12 @@ function BaseAutocomplete(props) {
57425
57425
  InputProps,
57426
57426
  InputLabelProps
57427
57427
  } = params, inputRest = _objectWithoutPropertiesLoose(params, _excluded18);
57428
- return /* @__PURE__ */ jsxRuntimeExports.jsx(TextField, _extends$2({}, inputRest, {
57428
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(TextField, _extends$1({}, inputRest, {
57429
57429
  label,
57430
57430
  placeholder,
57431
57431
  inputProps,
57432
57432
  InputProps: transformInputProps(InputProps, false),
57433
- InputLabelProps: _extends$2({
57433
+ InputLabelProps: _extends$1({
57434
57434
  shrink: true
57435
57435
  }, InputLabelProps)
57436
57436
  }, slotProps == null ? void 0 : slotProps.textField, (_a2 = rootProps.slotProps) == null ? void 0 : _a2.baseTextField));
@@ -57438,7 +57438,7 @@ function BaseAutocomplete(props) {
57438
57438
  }, rest, material));
57439
57439
  }
57440
57440
  function BaseInput(props) {
57441
- return /* @__PURE__ */ jsxRuntimeExports.jsx(InputBase, _extends$2({}, transformInputProps(props)));
57441
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(InputBase, _extends$1({}, transformInputProps(props)));
57442
57442
  }
57443
57443
  function transformInputProps(props, wrapAdornments = true) {
57444
57444
  if (!props) {
@@ -57470,7 +57470,7 @@ function transformInputProps(props, wrapAdornments = true) {
57470
57470
  }
57471
57471
  if (slotProps == null ? void 0 : slotProps.htmlInput) {
57472
57472
  if (result.inputProps) {
57473
- result.inputProps = _extends$2({}, result.inputProps, slotProps == null ? void 0 : slotProps.htmlInput);
57473
+ result.inputProps = _extends$1({}, result.inputProps, slotProps == null ? void 0 : slotProps.htmlInput);
57474
57474
  } else {
57475
57475
  result.inputProps = slotProps == null ? void 0 : slotProps.htmlInput;
57476
57476
  }
@@ -57536,7 +57536,7 @@ function BasePopper(props) {
57536
57536
  };
57537
57537
  content = (p) => {
57538
57538
  var _a2;
57539
- return wrappers(props, /* @__PURE__ */ jsxRuntimeExports.jsx(Grow, _extends$2({}, p.TransitionProps, {
57539
+ return wrappers(props, /* @__PURE__ */ jsxRuntimeExports.jsx(Grow, _extends$1({}, p.TransitionProps, {
57540
57540
  style: {
57541
57541
  transformOrigin: transformOrigin[p.placement]
57542
57542
  },
@@ -57547,7 +57547,7 @@ function BasePopper(props) {
57547
57547
  })));
57548
57548
  };
57549
57549
  }
57550
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Popper$1, _extends$2({
57550
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Popper$1, _extends$1({
57551
57551
  id,
57552
57552
  className,
57553
57553
  open,
@@ -57592,9 +57592,9 @@ function BaseSelectOption(_ref) {
57592
57592
  native
57593
57593
  } = _ref, props = _objectWithoutPropertiesLoose(_ref, _excluded21);
57594
57594
  if (native) {
57595
- return /* @__PURE__ */ jsxRuntimeExports.jsx("option", _extends$2({}, props));
57595
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("option", _extends$1({}, props));
57596
57596
  }
57597
- return /* @__PURE__ */ jsxRuntimeExports.jsx(MenuItem, _extends$2({}, props));
57597
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(MenuItem, _extends$1({}, props));
57598
57598
  }
57599
57599
  const iconSlots = {
57600
57600
  booleanCellTrueIcon: GridCheckIcon,
@@ -57656,7 +57656,7 @@ const baseSlots = {
57656
57656
  baseSkeleton: BaseSkeleton,
57657
57657
  baseSwitch: BaseSwitch
57658
57658
  };
57659
- const materialSlots = _extends$2({}, baseSlots, iconSlots);
57659
+ const materialSlots = _extends$1({}, baseSlots, iconSlots);
57660
57660
  const useUtilityClasses = () => {
57661
57661
  const slots = {
57662
57662
  root: ["bottomContainer"]
@@ -57670,12 +57670,12 @@ const Element$1 = styled$1("div")({
57670
57670
  });
57671
57671
  function GridBottomContainer(props) {
57672
57672
  const classes2 = useUtilityClasses();
57673
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Element$1, _extends$2({}, props, {
57673
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Element$1, _extends$1({}, props, {
57674
57674
  className: clsx$1(classes2.root, gridClasses["container--bottom"]),
57675
57675
  role: "presentation"
57676
57676
  }));
57677
57677
  }
57678
- const DATA_GRID_DEFAULT_SLOTS_COMPONENTS = _extends$2({}, materialSlots, {
57678
+ const DATA_GRID_DEFAULT_SLOTS_COMPONENTS = _extends$1({}, materialSlots, {
57679
57679
  cell: MemoizedGridCell,
57680
57680
  skeletonCell: Memoized$1,
57681
57681
  columnHeaderFilterIconButton: GridColumnHeaderFilterIconButtonWrapped,
@@ -57711,7 +57711,7 @@ const DATA_GRID_FORCED_PROPS = {
57711
57711
  signature: "DataGrid",
57712
57712
  listView: false
57713
57713
  };
57714
- const getDataGridForcedProps = (themedProps) => _extends$2({}, DATA_GRID_FORCED_PROPS, themedProps.dataSource ? {
57714
+ const getDataGridForcedProps = (themedProps) => _extends$1({}, DATA_GRID_FORCED_PROPS, themedProps.dataSource ? {
57715
57715
  filterMode: "server",
57716
57716
  sortingMode: "server",
57717
57717
  paginationMode: "server"
@@ -57725,7 +57725,7 @@ const useDataGridProps = (inProps) => {
57725
57725
  name: "MuiDataGrid"
57726
57726
  })
57727
57727
  );
57728
- const localeText = React.useMemo(() => _extends$2({}, GRID_DEFAULT_LOCALE_TEXT, themedProps.localeText), [themedProps.localeText]);
57728
+ const localeText = React.useMemo(() => _extends$1({}, GRID_DEFAULT_LOCALE_TEXT, themedProps.localeText), [themedProps.localeText]);
57729
57729
  const slots = React.useMemo(() => computeSlots({
57730
57730
  defaultSlots,
57731
57731
  slots: themedProps.slots
@@ -57736,7 +57736,7 @@ const useDataGridProps = (inProps) => {
57736
57736
  return acc;
57737
57737
  }, {});
57738
57738
  }, [themedProps]);
57739
- return React.useMemo(() => _extends$2({}, themedProps, injectDefaultProps, {
57739
+ return React.useMemo(() => _extends$1({}, themedProps, injectDefaultProps, {
57740
57740
  localeText,
57741
57741
  slots
57742
57742
  }, getDataGridForcedProps(themedProps)), [themedProps, localeText, slots, injectDefaultProps]);
@@ -57759,7 +57759,7 @@ const DataGridRaw = forwardRef(function DataGrid2(inProps, ref) {
57759
57759
  privateApiRef,
57760
57760
  configuration,
57761
57761
  props,
57762
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(MemoizedGridRoot, _extends$2({
57762
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(MemoizedGridRoot, _extends$1({
57763
57763
  className: props.className,
57764
57764
  style: props.style,
57765
57765
  sx: props.sx
@@ -58750,7 +58750,7 @@ var defineProperty = function(obj, key, value) {
58750
58750
  }
58751
58751
  return obj;
58752
58752
  };
58753
- var _extends$1 = Object.assign || function(target) {
58753
+ var _extends = Object.assign || function(target) {
58754
58754
  for (var i = 1; i < arguments.length; i++) {
58755
58755
  var source = arguments[i];
58756
58756
  for (var key in source) {
@@ -58762,7 +58762,7 @@ var _extends$1 = Object.assign || function(target) {
58762
58762
  return target;
58763
58763
  };
58764
58764
  function getClientRect(offsets) {
58765
- return _extends$1({}, offsets, {
58765
+ return _extends({}, offsets, {
58766
58766
  right: offsets.left + offsets.width,
58767
58767
  bottom: offsets.top + offsets.height
58768
58768
  });
@@ -58946,7 +58946,7 @@ function computeAutoPlacement(placement, refRect, popper2, reference2, boundarie
58946
58946
  }
58947
58947
  };
58948
58948
  var sortedAreas = Object.keys(rects).map(function(key) {
58949
- return _extends$1({
58949
+ return _extends({
58950
58950
  key
58951
58951
  }, rects[key], {
58952
58952
  area: getArea(rects[key])
@@ -59254,9 +59254,9 @@ function computeStyle(data, options) {
59254
59254
  var attributes = {
59255
59255
  "x-placement": data.placement
59256
59256
  };
59257
- data.attributes = _extends$1({}, attributes, data.attributes);
59258
- data.styles = _extends$1({}, styles2, data.styles);
59259
- data.arrowStyles = _extends$1({}, data.offsets.arrow, data.arrowStyles);
59257
+ data.attributes = _extends({}, attributes, data.attributes);
59258
+ data.styles = _extends({}, styles2, data.styles);
59259
+ data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles);
59260
59260
  return data;
59261
59261
  }
59262
59262
  function isModifierRequired(modifiers2, requestingName, requestedName) {
@@ -59391,7 +59391,7 @@ function flip(data, options) {
59391
59391
  variation = getOppositeVariation(variation);
59392
59392
  }
59393
59393
  data.placement = placement + (variation ? "-" + variation : "");
59394
- data.offsets.popper = _extends$1({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));
59394
+ data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));
59395
59395
  data = runModifiers(data.instance.modifiers, data, "flip");
59396
59396
  }
59397
59397
  });
@@ -59550,7 +59550,7 @@ function preventOverflow(data, options) {
59550
59550
  };
59551
59551
  order2.forEach(function(placement) {
59552
59552
  var side = ["left", "top"].indexOf(placement) !== -1 ? "primary" : "secondary";
59553
- popper2 = _extends$1({}, popper2, check[side](placement));
59553
+ popper2 = _extends({}, popper2, check[side](placement));
59554
59554
  });
59555
59555
  data.offsets.popper = popper2;
59556
59556
  return data;
@@ -59568,7 +59568,7 @@ function shift(data) {
59568
59568
  start: defineProperty({}, side, reference2[side]),
59569
59569
  end: defineProperty({}, side, reference2[side] + reference2[measurement] - popper2[measurement])
59570
59570
  };
59571
- data.offsets.popper = _extends$1({}, popper2, shiftOffsets[shiftvariation]);
59571
+ data.offsets.popper = _extends({}, popper2, shiftOffsets[shiftvariation]);
59572
59572
  }
59573
59573
  return data;
59574
59574
  }
@@ -59971,7 +59971,7 @@ var Popper = function() {
59971
59971
  return requestAnimationFrame(_this.update);
59972
59972
  };
59973
59973
  this.update = debounce(this.update.bind(this));
59974
- this.options = _extends$1({}, Popper3.Defaults, options);
59974
+ this.options = _extends({}, Popper3.Defaults, options);
59975
59975
  this.state = {
59976
59976
  isDestroyed: false,
59977
59977
  isCreated: false,
@@ -59980,11 +59980,11 @@ var Popper = function() {
59980
59980
  this.reference = reference2 && reference2.jquery ? reference2[0] : reference2;
59981
59981
  this.popper = popper2 && popper2.jquery ? popper2[0] : popper2;
59982
59982
  this.options.modifiers = {};
59983
- Object.keys(_extends$1({}, Popper3.Defaults.modifiers, options.modifiers)).forEach(function(name) {
59984
- _this.options.modifiers[name] = _extends$1({}, Popper3.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});
59983
+ Object.keys(_extends({}, Popper3.Defaults.modifiers, options.modifiers)).forEach(function(name) {
59984
+ _this.options.modifiers[name] = _extends({}, Popper3.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});
59985
59985
  });
59986
59986
  this.modifiers = Object.keys(this.options.modifiers).map(function(name) {
59987
- return _extends$1({
59987
+ return _extends({
59988
59988
  name
59989
59989
  }, _this.options.modifiers[name]);
59990
59990
  }).sort(function(a, b) {
@@ -60214,38 +60214,6 @@ React.forwardRef((props, ref) => {
60214
60214
  ...style2
60215
60215
  }, children: typeof children === "function" ? children(childProps) : children }) });
60216
60216
  });
60217
- function _extends() {
60218
- _extends = Object.assign ? Object.assign.bind() : function(target) {
60219
- for (var i = 1; i < arguments.length; i++) {
60220
- var source = arguments[i];
60221
- for (var key in source) {
60222
- if (Object.prototype.hasOwnProperty.call(source, key)) {
60223
- target[key] = source[key];
60224
- }
60225
- }
60226
- }
60227
- return target;
60228
- };
60229
- return _extends.apply(this, arguments);
60230
- }
60231
- function _assertThisInitialized(self2) {
60232
- if (self2 === void 0) {
60233
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
60234
- }
60235
- return self2;
60236
- }
60237
- function _setPrototypeOf(o, p) {
60238
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
60239
- o2.__proto__ = p2;
60240
- return o2;
60241
- };
60242
- return _setPrototypeOf(o, p);
60243
- }
60244
- function _inheritsLoose(subClass, superClass) {
60245
- subClass.prototype = Object.create(superClass.prototype);
60246
- subClass.prototype.constructor = subClass;
60247
- _setPrototypeOf(subClass, superClass);
60248
- }
60249
60217
  var safeIsNaN = Number.isNaN || function ponyfill(value) {
60250
60218
  return typeof value === "number" && value !== value;
60251
60219
  };
@@ -60613,7 +60581,7 @@ function createListComponent(_ref) {
60613
60581
  className,
60614
60582
  onScroll,
60615
60583
  ref: this._outerRefSetter,
60616
- style: _extends({
60584
+ style: _extends$1({
60617
60585
  position: "relative",
60618
60586
  height: height2,
60619
60587
  width: width2,