@vitessce/styles 3.6.0 → 3.6.2

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 +510 -504
  2. package/package.json +2 -1
package/dist/index.js CHANGED
@@ -3903,6 +3903,7 @@ function requireReactJsxRuntime_development() {
3903
3903
  }
3904
3904
  }
3905
3905
  }
3906
+ var didWarnAboutKeySpread = {};
3906
3907
  function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
3907
3908
  {
3908
3909
  var validType = isValidElementType(type);
@@ -3953,6 +3954,20 @@ function requireReactJsxRuntime_development() {
3953
3954
  }
3954
3955
  }
3955
3956
  }
3957
+ {
3958
+ if (hasOwnProperty.call(props, "key")) {
3959
+ var componentName = getComponentNameFromType(type);
3960
+ var keys2 = Object.keys(props).filter(function(k) {
3961
+ return k !== "key";
3962
+ });
3963
+ var beforeExample = keys2.length > 0 ? "{key: someKey, " + keys2.join(": ..., ") + ": ...}" : "{key: someKey}";
3964
+ if (!didWarnAboutKeySpread[componentName + beforeExample]) {
3965
+ var afterExample = keys2.length > 0 ? "{" + keys2.join(": ..., ") + ": ...}" : "{}";
3966
+ error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
3967
+ didWarnAboutKeySpread[componentName + beforeExample] = true;
3968
+ }
3969
+ }
3970
+ }
3956
3971
  if (type === REACT_FRAGMENT_TYPE) {
3957
3972
  validateFragmentProps(element);
3958
3973
  } else {
@@ -9075,7 +9090,7 @@ function _extends$1() {
9075
9090
  return n;
9076
9091
  }, _extends$1.apply(null, arguments);
9077
9092
  }
9078
- function _objectWithoutPropertiesLoose$1(r2, e) {
9093
+ function _objectWithoutPropertiesLoose(r2, e) {
9079
9094
  if (null == r2) return {};
9080
9095
  var t = {};
9081
9096
  for (var n in r2) if ({}.hasOwnProperty.call(r2, n)) {
@@ -9336,7 +9351,7 @@ var Transition = /* @__PURE__ */ function(_React$Component) {
9336
9351
  _this$props.onExiting;
9337
9352
  _this$props.onExited;
9338
9353
  _this$props.nodeRef;
9339
- var childProps = _objectWithoutPropertiesLoose$1(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
9354
+ var childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
9340
9355
  return (
9341
9356
  // allows for nested Transitions
9342
9357
  /* @__PURE__ */ React__default.createElement(TransitionGroupContext.Provider, {
@@ -9696,7 +9711,7 @@ var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
9696
9711
  }
9697
9712
  };
9698
9713
  _proto.render = function render() {
9699
- var _this$props = this.props, Component = _this$props.component, childFactory2 = _this$props.childFactory, props = _objectWithoutPropertiesLoose$1(_this$props, ["component", "childFactory"]);
9714
+ var _this$props = this.props, Component = _this$props.component, childFactory2 = _this$props.childFactory, props = _objectWithoutPropertiesLoose(_this$props, ["component", "childFactory"]);
9700
9715
  var contextValue = this.state.contextValue;
9701
9716
  var children = values$1(this.state.children).map(childFactory2);
9702
9717
  delete props.appear;
@@ -37598,15 +37613,6 @@ const DENSITY_FACTORS = {
37598
37613
  };
37599
37614
  const gridDensitySelector = createRootSelector((state) => state.density);
37600
37615
  const gridDensityFactorSelector = createSelector(gridDensitySelector, (density) => DENSITY_FACTORS[density]);
37601
- function _objectWithoutPropertiesLoose(r2, e) {
37602
- if (null == r2) return {};
37603
- var t = {};
37604
- for (var n in r2) if ({}.hasOwnProperty.call(r2, n)) {
37605
- if (-1 !== e.indexOf(n)) continue;
37606
- t[n] = r2[n];
37607
- }
37608
- return t;
37609
- }
37610
37616
  function NotRendered(_props) {
37611
37617
  throw new Error("Failed assertion: should not be rendered");
37612
37618
  }
@@ -37709,7 +37715,7 @@ const keys = {
37709
37715
  }
37710
37716
  };
37711
37717
  const values = wrap(keys);
37712
- const vars = _extends$2({
37718
+ const vars = _extends$1({
37713
37719
  breakpoints,
37714
37720
  spacing,
37715
37721
  transition,
@@ -37824,7 +37830,7 @@ const GridEditInputCell = forwardRef((props, ref) => {
37824
37830
  inputRef.current.focus();
37825
37831
  }
37826
37832
  }, [hasFocus]);
37827
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditInputCellRoot, _extends$2({
37833
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditInputCellRoot, _extends$1({
37828
37834
  as: rootProps.slots.baseInput,
37829
37835
  inputRef,
37830
37836
  className: classes2.root,
@@ -37908,7 +37914,7 @@ GridEditInputCell.propTypes = {
37908
37914
  */
37909
37915
  value: PropTypes.any
37910
37916
  };
37911
- const renderEditInputCell = (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditInputCell, _extends$2({}, params));
37917
+ const renderEditInputCell = (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditInputCell, _extends$1({}, params));
37912
37918
  const gridRowsStateSelector = createRootSelector((state) => state.rows);
37913
37919
  const gridRowCountSelector = createSelector(gridRowsStateSelector, (rows) => rows.totalRowCount);
37914
37920
  const gridRowsLoadingSelector = createSelector(gridRowsStateSelector, (rows) => rows.loading);
@@ -37963,8 +37969,8 @@ const sanitizeSortModel = (model, disableMultipleColumnsSorting) => {
37963
37969
  }
37964
37970
  return model;
37965
37971
  };
37966
- const mergeStateWithSortModel = (sortModel, disableMultipleColumnsSorting) => (state) => _extends$2({}, state, {
37967
- sorting: _extends$2({}, state.sorting, {
37972
+ const mergeStateWithSortModel = (sortModel, disableMultipleColumnsSorting) => (state) => _extends$1({}, state, {
37973
+ sorting: _extends$1({}, state.sorting, {
37968
37974
  sortModel: sanitizeSortModel(sortModel, disableMultipleColumnsSorting)
37969
37975
  })
37970
37976
  });
@@ -38092,7 +38098,7 @@ function GridFilterInputValue(props) {
38092
38098
  setFilterValueState(value);
38093
38099
  setIsApplying(true);
38094
38100
  filterTimeout.start(rootProps.filterDebounceMs, () => {
38095
- const newItem = _extends$2({}, item, {
38101
+ const newItem = _extends$1({}, item, {
38096
38102
  value: type === "number" && !Number.isNaN(Number(value)) ? Number(value) : value,
38097
38103
  fromInput: id
38098
38104
  });
@@ -38107,7 +38113,7 @@ function GridFilterInputValue(props) {
38107
38113
  }
38108
38114
  }, [id, item]);
38109
38115
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
38110
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTextField, _extends$2({
38116
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTextField, _extends$1({
38111
38117
  id,
38112
38118
  label: apiRef.current.getLocaleText("filterPanelInputLabel"),
38113
38119
  placeholder: apiRef.current.getLocaleText("filterPanelInputPlaceholder"),
@@ -38115,14 +38121,14 @@ function GridFilterInputValue(props) {
38115
38121
  onChange: onFilterChange,
38116
38122
  type: type || "text",
38117
38123
  disabled,
38118
- slotProps: _extends$2({}, textFieldProps == null ? void 0 : textFieldProps.slotProps, {
38119
- input: _extends$2({
38124
+ slotProps: _extends$1({}, textFieldProps == null ? void 0 : textFieldProps.slotProps, {
38125
+ input: _extends$1({
38120
38126
  endAdornment: applying ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.loadIcon, {
38121
38127
  fontSize: "small",
38122
38128
  color: "action"
38123
38129
  }) : null
38124
38130
  }, (_a = textFieldProps == null ? void 0 : textFieldProps.slotProps) == null ? void 0 : _a.input),
38125
- htmlInput: _extends$2({
38131
+ htmlInput: _extends$1({
38126
38132
  tabIndex
38127
38133
  }, (_b = textFieldProps == null ? void 0 : textFieldProps.slotProps) == null ? void 0 : _b.htmlInput)
38128
38134
  }),
@@ -38248,7 +38254,7 @@ function GridFilterInputMultipleValue(props) {
38248
38254
  }, [item.value]);
38249
38255
  const handleChange = React.useCallback((event, value) => {
38250
38256
  setFilterValueState(value.map(String));
38251
- applyValue(_extends$2({}, item, {
38257
+ applyValue(_extends$1({}, item, {
38252
38258
  value: [...value.map((filterItemValue) => type === "number" ? Number(filterItemValue) : filterItemValue)]
38253
38259
  }));
38254
38260
  }, [applyValue, item, type]);
@@ -38260,7 +38266,7 @@ function GridFilterInputMultipleValue(props) {
38260
38266
  }
38261
38267
  }, [setOptions]);
38262
38268
  const BaseAutocomplete2 = rootProps.slots.baseAutocomplete;
38263
- return /* @__PURE__ */ jsxRuntimeExports.jsx(BaseAutocomplete2, _extends$2({
38269
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(BaseAutocomplete2, _extends$1({
38264
38270
  multiple: true,
38265
38271
  freeSolo: true,
38266
38272
  options,
@@ -38514,7 +38520,7 @@ function getHasEval() {
38514
38520
  return hasEval;
38515
38521
  }
38516
38522
  const cleanFilterItem = (item, apiRef) => {
38517
- const cleanItem = _extends$2({}, item);
38523
+ const cleanItem = _extends$1({}, item);
38518
38524
  if (cleanItem.id == null) {
38519
38525
  cleanItem.id = Math.round(Math.random() * 1e5);
38520
38526
  }
@@ -38548,18 +38554,18 @@ const sanitizeFilterModel = (model, disableMultipleColumnsFiltering, apiRef) =>
38548
38554
  }
38549
38555
  }
38550
38556
  if (hasItemWithoutOperator || hasItemsWithoutIds) {
38551
- return _extends$2({}, model, {
38557
+ return _extends$1({}, model, {
38552
38558
  items: items.map((item) => cleanFilterItem(item, apiRef))
38553
38559
  });
38554
38560
  }
38555
38561
  if (model.items !== items) {
38556
- return _extends$2({}, model, {
38562
+ return _extends$1({}, model, {
38557
38563
  items
38558
38564
  });
38559
38565
  }
38560
38566
  return model;
38561
38567
  };
38562
- const mergeStateWithFilterModel = (filterModel, disableMultipleColumnsFiltering, apiRef) => (filteringState) => _extends$2({}, filteringState, {
38568
+ const mergeStateWithFilterModel = (filterModel, disableMultipleColumnsFiltering, apiRef) => (filteringState) => _extends$1({}, filteringState, {
38563
38569
  filterModel: sanitizeFilterModel(filterModel, disableMultipleColumnsFiltering, apiRef)
38564
38570
  });
38565
38571
  const removeDiacritics = (value) => {
@@ -38590,7 +38596,7 @@ const getFilterCallbackFromItem = (filterItem, apiRef) => {
38590
38596
  if (ignoreDiacritics) {
38591
38597
  parsedValue = removeDiacritics(parsedValue);
38592
38598
  }
38593
- const newFilterItem = _extends$2({}, filterItem, {
38599
+ const newFilterItem = _extends$1({}, filterItem, {
38594
38600
  value: parsedValue
38595
38601
  });
38596
38602
  const filterOperators = column2.filterOperators;
@@ -39015,7 +39021,7 @@ function GridMenu(props) {
39015
39021
  }
39016
39022
  onClose(event);
39017
39023
  };
39018
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridMenuRoot, _extends$2({
39024
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridMenuRoot, _extends$1({
39019
39025
  as: rootProps.slots.basePopper,
39020
39026
  className: clsx(classes2.root, className, variablesClass),
39021
39027
  ownerState: rootProps,
@@ -39176,7 +39182,7 @@ function GridActionsCell(props) {
39176
39182
  hideMenu();
39177
39183
  }
39178
39184
  };
39179
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$2({
39185
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$1({
39180
39186
  role: "menu",
39181
39187
  ref: rootRef,
39182
39188
  tabIndex: -1,
@@ -39188,7 +39194,7 @@ function GridActionsCell(props) {
39188
39194
  touchRippleRef: handleTouchRippleRef(index),
39189
39195
  onClick: handleButtonClick(index, button.props.onClick),
39190
39196
  tabIndex: focusedButtonIndex === index ? tabIndex : -1
39191
- })), menuButtons.length > 0 && buttonId && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$2({
39197
+ })), menuButtons.length > 0 && buttonId && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$1({
39192
39198
  ref: buttonRef,
39193
39199
  id: buttonId,
39194
39200
  "aria-label": apiRef.current.getLocaleText("actionsCellMore"),
@@ -39286,9 +39292,9 @@ GridActionsCell.propTypes = {
39286
39292
  */
39287
39293
  value: PropTypes.any
39288
39294
  };
39289
- const renderActionsCell = (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridActionsCell, _extends$2({}, params));
39295
+ const renderActionsCell = (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridActionsCell, _extends$1({}, params));
39290
39296
  const GRID_ACTIONS_COLUMN_TYPE = "actions";
39291
- const GRID_ACTIONS_COL_DEF = _extends$2({}, GRID_STRING_COL_DEF, {
39297
+ const GRID_ACTIONS_COL_DEF = _extends$1({}, GRID_STRING_COL_DEF, {
39292
39298
  sortable: false,
39293
39299
  filterable: false,
39294
39300
  // @ts-ignore
@@ -39404,7 +39410,7 @@ const getRowsStateFromCache = ({
39404
39410
  },
39405
39411
  idToActionLookup: {}
39406
39412
  };
39407
- return _extends$2({}, groupingParamsWithHydrateRows, {
39413
+ return _extends$1({}, groupingParamsWithHydrateRows, {
39408
39414
  totalRowCount: Math.max(rowCountProp, groupingParamsWithHydrateRows.dataRowIds.length),
39409
39415
  totalTopLevelRowCount: getTopLevelRowCount({
39410
39416
  tree: groupingParamsWithHydrateRows.tree,
@@ -39450,7 +39456,7 @@ const updateCacheWithNewRows = ({
39450
39456
  updates.forEach((update2) => {
39451
39457
  const id = getRowIdFromRowModel(update2, getRowId, "A row was provided without id when calling updateRows():");
39452
39458
  if (uniqueUpdates.has(id)) {
39453
- uniqueUpdates.set(id, _extends$2({}, uniqueUpdates.get(id), update2));
39459
+ uniqueUpdates.set(id, _extends$1({}, uniqueUpdates.get(id), update2));
39454
39460
  } else {
39455
39461
  uniqueUpdates.set(id, update2);
39456
39462
  }
@@ -39462,10 +39468,10 @@ const updateCacheWithNewRows = ({
39462
39468
  modify: [...previousCache.updates.actions.modify ?? []],
39463
39469
  remove: [...previousCache.updates.actions.remove ?? []]
39464
39470
  },
39465
- idToActionLookup: _extends$2({}, previousCache.updates.idToActionLookup),
39471
+ idToActionLookup: _extends$1({}, previousCache.updates.idToActionLookup),
39466
39472
  groupKeys
39467
39473
  };
39468
- const dataRowIdToModelLookup = _extends$2({}, previousCache.dataRowIdToModelLookup);
39474
+ const dataRowIdToModelLookup = _extends$1({}, previousCache.dataRowIdToModelLookup);
39469
39475
  const alreadyAppliedActionsToRemove = {
39470
39476
  insert: {},
39471
39477
  modify: {},
@@ -39492,7 +39498,7 @@ const updateCacheWithNewRows = ({
39492
39498
  } else if (actionAlreadyAppliedToRow == null) {
39493
39499
  partialUpdates.actions.modify.push(id);
39494
39500
  }
39495
- dataRowIdToModelLookup[id] = _extends$2({}, oldRow, partialRow);
39501
+ dataRowIdToModelLookup[id] = _extends$1({}, oldRow, partialRow);
39496
39502
  return;
39497
39503
  }
39498
39504
  if (actionAlreadyAppliedToRow === "remove") {
@@ -39529,7 +39535,7 @@ function computeRowsUpdates(apiRef, updates, getRowId) {
39529
39535
  const pinnedRowsCache = apiRef.current.caches.pinnedRows;
39530
39536
  const prevModel = pinnedRowsCache.idLookup[id];
39531
39537
  if (prevModel) {
39532
- pinnedRowsCache.idLookup[id] = _extends$2({}, prevModel, update2);
39538
+ pinnedRowsCache.idLookup[id] = _extends$1({}, prevModel, update2);
39533
39539
  }
39534
39540
  } else {
39535
39541
  nonPinnedRowsUpdates.push(update2);
@@ -39590,7 +39596,7 @@ function GridBooleanCellRaw(props) {
39590
39596
  if (isServerSideRowGroupingRow && value === void 0) {
39591
39597
  return null;
39592
39598
  }
39593
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$2({
39599
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$1({
39594
39600
  fontSize: "small",
39595
39601
  className: classes2.root,
39596
39602
  titleAccess: apiRef.current.getLocaleText(value ? "booleanCellTrueLabel" : "booleanCellFalseLabel"),
@@ -39668,7 +39674,7 @@ const renderBooleanCell = (params) => {
39668
39674
  if (params.field !== GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD && isAutogeneratedRowNode(params.rowNode)) {
39669
39675
  return "";
39670
39676
  }
39671
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridBooleanCell, _extends$2({}, params));
39677
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridBooleanCell, _extends$1({}, params));
39672
39678
  };
39673
39679
  const _excluded$S = ["id", "value", "formattedValue", "api", "field", "row", "rowNode", "colDef", "cellMode", "isEditable", "tabIndex", "className", "hasFocus", "isValidating", "isProcessingProps", "error", "onValueChange"];
39674
39680
  const useUtilityClasses$H = (ownerState) => {
@@ -39719,11 +39725,11 @@ function GridEditBooleanCell(props) {
39719
39725
  inputRef.current.focus();
39720
39726
  }
39721
39727
  }, [hasFocus]);
39722
- return /* @__PURE__ */ jsxRuntimeExports.jsx("label", _extends$2({
39728
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("label", _extends$1({
39723
39729
  htmlFor: id,
39724
39730
  className: clsx(classes2.root, className)
39725
39731
  }, other, {
39726
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$2({
39732
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$1({
39727
39733
  id,
39728
39734
  inputRef,
39729
39735
  checked: Boolean(valueState),
@@ -39797,7 +39803,7 @@ GridEditBooleanCell.propTypes = {
39797
39803
  */
39798
39804
  value: PropTypes.any
39799
39805
  };
39800
- const renderEditBooleanCell = (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditBooleanCell, _extends$2({}, params));
39806
+ const renderEditBooleanCell = (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditBooleanCell, _extends$1({}, params));
39801
39807
  const _excluded$R = ["item", "applyValue", "apiRef", "focusElementRef", "isFilterActive", "headerFilterMenu", "clearButton", "tabIndex", "slotProps"];
39802
39808
  function GridFilterInputBoolean(props) {
39803
39809
  var _a, _b;
@@ -39821,7 +39827,7 @@ function GridFilterInputBoolean(props) {
39821
39827
  const onFilterChange = React.useCallback((event) => {
39822
39828
  const value = sanitizeFilterItemValue(event.target.value);
39823
39829
  setFilterValueState(value);
39824
- applyValue(_extends$2({}, item, {
39830
+ applyValue(_extends$1({}, item, {
39825
39831
  value
39826
39832
  }));
39827
39833
  }, [applyValue, item]);
@@ -39831,7 +39837,7 @@ function GridFilterInputBoolean(props) {
39831
39837
  const label = (slotProps == null ? void 0 : slotProps.root.label) ?? apiRef.current.getLocaleText("filterPanelInputLabel");
39832
39838
  const rootSlotProps = slotProps == null ? void 0 : slotProps.root.slotProps;
39833
39839
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
39834
- children: [/* @__PURE__ */ jsxRuntimeExports.jsxs(rootProps.slots.baseSelect, _extends$2({
39840
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsxs(rootProps.slots.baseSelect, _extends$1({
39835
39841
  fullWidth: true,
39836
39842
  labelId,
39837
39843
  id: selectId,
@@ -39840,21 +39846,21 @@ function GridFilterInputBoolean(props) {
39840
39846
  onChange: onFilterChange,
39841
39847
  native: isSelectNative,
39842
39848
  slotProps: {
39843
- htmlInput: _extends$2({
39849
+ htmlInput: _extends$1({
39844
39850
  ref: focusElementRef,
39845
39851
  tabIndex
39846
39852
  }, rootSlotProps == null ? void 0 : rootSlotProps.htmlInput)
39847
39853
  }
39848
39854
  }, baseSelectProps, others, slotProps == null ? void 0 : slotProps.root, {
39849
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$2({}, baseSelectOptionProps, {
39855
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$1({}, baseSelectOptionProps, {
39850
39856
  native: isSelectNative,
39851
39857
  value: "",
39852
39858
  children: apiRef.current.getLocaleText("filterValueAny")
39853
- })), /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$2({}, baseSelectOptionProps, {
39859
+ })), /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$1({}, baseSelectOptionProps, {
39854
39860
  native: isSelectNative,
39855
39861
  value: "true",
39856
39862
  children: apiRef.current.getLocaleText("filterValueTrue")
39857
- })), /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$2({}, baseSelectOptionProps, {
39863
+ })), /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$1({}, baseSelectOptionProps, {
39858
39864
  native: isSelectNative,
39859
39865
  value: "false",
39860
39866
  children: apiRef.current.getLocaleText("filterValueFalse")
@@ -39942,7 +39948,7 @@ const stringToBoolean = (value) => {
39942
39948
  return void 0;
39943
39949
  }
39944
39950
  };
39945
- const GRID_BOOLEAN_COL_DEF = _extends$2({}, GRID_STRING_COL_DEF, {
39951
+ const GRID_BOOLEAN_COL_DEF = _extends$1({}, GRID_STRING_COL_DEF, {
39946
39952
  type: "boolean",
39947
39953
  display: "flex",
39948
39954
  align: "center",
@@ -40309,7 +40315,7 @@ const GridCellCheckboxForwardRef = forwardRef(function GridCellCheckboxRenderer2
40309
40315
  return null;
40310
40316
  }
40311
40317
  const label = apiRef.current.getLocaleText(isChecked && !isIndeterminate ? "checkboxSelectionUnselectRow" : "checkboxSelectionSelectRow");
40312
- return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$2({
40318
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$1({
40313
40319
  tabIndex,
40314
40320
  checked: isChecked && !isIndeterminate,
40315
40321
  onChange: handleChange,
@@ -40624,7 +40630,7 @@ const GridHeaderCheckbox = forwardRef(function GridHeaderCheckbox2(props, ref) {
40624
40630
  return apiRef.current.subscribeEvent("rowSelectionChange", handleSelectionChange);
40625
40631
  }, [apiRef, handleSelectionChange]);
40626
40632
  const label = apiRef.current.getLocaleText(isChecked && !isIndeterminate ? "checkboxSelectionUnselectAllRows" : "checkboxSelectionSelectAllRows");
40627
- return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$2({
40633
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$1({
40628
40634
  indeterminate: isIndeterminate,
40629
40635
  checked: isChecked && !isIndeterminate,
40630
40636
  onChange: handleChange,
@@ -40663,7 +40669,7 @@ const gridRowIdSelector = createRootSelector((state, row) => {
40663
40669
  return state.props.getRowId ? state.props.getRowId(row) : row.id;
40664
40670
  });
40665
40671
  const GRID_CHECKBOX_SELECTION_FIELD = "__check__";
40666
- const GRID_CHECKBOX_SELECTION_COL_DEF = _extends$2({}, GRID_BOOLEAN_COL_DEF, {
40672
+ const GRID_CHECKBOX_SELECTION_COL_DEF = _extends$1({}, GRID_BOOLEAN_COL_DEF, {
40667
40673
  type: "custom",
40668
40674
  field: GRID_CHECKBOX_SELECTION_FIELD,
40669
40675
  width: 50,
@@ -40681,8 +40687,8 @@ const GRID_CHECKBOX_SELECTION_COL_DEF = _extends$2({}, GRID_BOOLEAN_COL_DEF, {
40681
40687
  const rowId = gridRowIdSelector(apiRef, row);
40682
40688
  return apiRef.current.isRowSelected(rowId);
40683
40689
  },
40684
- renderHeader: (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridHeaderCheckbox, _extends$2({}, params)),
40685
- renderCell: (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridCellCheckboxRenderer, _extends$2({}, params))
40690
+ renderHeader: (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridHeaderCheckbox, _extends$1({}, params)),
40691
+ renderCell: (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridCellCheckboxRenderer, _extends$1({}, params))
40686
40692
  });
40687
40693
  const _excluded$O = ["item", "applyValue", "type", "apiRef", "focusElementRef", "slotProps", "isFilterActive", "headerFilterMenu", "clearButton", "tabIndex", "disabled"];
40688
40694
  function convertFilterItemValueToInputValue(itemValue, inputType) {
@@ -40729,7 +40735,7 @@ function GridFilterInputDate(props) {
40729
40735
  setIsApplying(true);
40730
40736
  filterTimeout.start(rootProps.filterDebounceMs, () => {
40731
40737
  const date = new Date(value);
40732
- applyValue(_extends$2({}, item, {
40738
+ applyValue(_extends$1({}, item, {
40733
40739
  value: Number.isNaN(date.getTime()) ? void 0 : date
40734
40740
  }));
40735
40741
  setIsApplying(false);
@@ -40740,7 +40746,7 @@ function GridFilterInputDate(props) {
40740
40746
  setFilterValueState(value);
40741
40747
  }, [item.value, type]);
40742
40748
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
40743
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTextField, _extends$2({
40749
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTextField, _extends$1({
40744
40750
  fullWidth: true,
40745
40751
  id,
40746
40752
  label: apiRef.current.getLocaleText("filterPanelInputLabel"),
@@ -40750,14 +40756,14 @@ function GridFilterInputDate(props) {
40750
40756
  type: type || "text",
40751
40757
  disabled,
40752
40758
  inputRef: focusElementRef,
40753
- slotProps: _extends$2({}, rootSlotProps, {
40754
- input: _extends$2({
40759
+ slotProps: _extends$1({}, rootSlotProps, {
40760
+ input: _extends$1({
40755
40761
  endAdornment: applying ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.loadIcon, {
40756
40762
  fontSize: "small",
40757
40763
  color: "action"
40758
40764
  }) : null
40759
40765
  }, rootSlotProps == null ? void 0 : rootSlotProps.input),
40760
- htmlInput: _extends$2({
40766
+ htmlInput: _extends$1({
40761
40767
  max: type === "datetime-local" ? "9999-12-31T23:59" : "9999-12-31",
40762
40768
  tabIndex
40763
40769
  }, rootSlotProps == null ? void 0 : rootSlotProps.htmlInput)
@@ -41005,7 +41011,7 @@ function GridEditDateCell(props) {
41005
41011
  inputRef.current.focus();
41006
41012
  }
41007
41013
  }, [hasFocus]);
41008
- return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledInputBase, _extends$2({
41014
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledInputBase, _extends$1({
41009
41015
  as: rootProps.slots.baseInput,
41010
41016
  inputRef,
41011
41017
  fullWidth: true,
@@ -41015,7 +41021,7 @@ function GridEditDateCell(props) {
41015
41021
  onChange: handleChange
41016
41022
  }, other, slotProps == null ? void 0 : slotProps.root, {
41017
41023
  slotProps: {
41018
- htmlInput: _extends$2({
41024
+ htmlInput: _extends$1({
41019
41025
  max: isDateTime ? "9999-12-31T23:59" : "9999-12-31"
41020
41026
  }, (_b = (_a = slotProps == null ? void 0 : slotProps.root) == null ? void 0 : _a.slotProps) == null ? void 0 : _b.htmlInput)
41021
41027
  }
@@ -41087,7 +41093,7 @@ GridEditDateCell.propTypes = {
41087
41093
  */
41088
41094
  value: PropTypes.any
41089
41095
  };
41090
- const renderEditDateCell = (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditDateCell, _extends$2({}, params));
41096
+ const renderEditDateCell = (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditDateCell, _extends$1({}, params));
41091
41097
  function throwIfNotDateObject({
41092
41098
  value,
41093
41099
  columnType,
@@ -41124,7 +41130,7 @@ const gridDateTimeFormatter = (value, row, column2, apiRef) => {
41124
41130
  });
41125
41131
  return value.toLocaleString();
41126
41132
  };
41127
- const GRID_DATE_COL_DEF = _extends$2({}, GRID_STRING_COL_DEF, {
41133
+ const GRID_DATE_COL_DEF = _extends$1({}, GRID_STRING_COL_DEF, {
41128
41134
  type: "date",
41129
41135
  sortComparator: gridDateComparator,
41130
41136
  valueFormatter: gridDateFormatter,
@@ -41133,7 +41139,7 @@ const GRID_DATE_COL_DEF = _extends$2({}, GRID_STRING_COL_DEF, {
41133
41139
  // @ts-ignore
41134
41140
  pastedValueParser: (value) => new Date(value)
41135
41141
  });
41136
- const GRID_DATETIME_COL_DEF = _extends$2({}, GRID_STRING_COL_DEF, {
41142
+ const GRID_DATETIME_COL_DEF = _extends$1({}, GRID_STRING_COL_DEF, {
41137
41143
  type: "dateTime",
41138
41144
  sortComparator: gridDateComparator,
41139
41145
  valueFormatter: gridDateTimeFormatter,
@@ -41283,7 +41289,7 @@ const getGridNumericOperators = () => [{
41283
41289
  type: "number"
41284
41290
  }
41285
41291
  }];
41286
- const GRID_NUMERIC_COL_DEF = _extends$2({}, GRID_STRING_COL_DEF, {
41292
+ const GRID_NUMERIC_COL_DEF = _extends$1({}, GRID_STRING_COL_DEF, {
41287
41293
  type: "number",
41288
41294
  align: "right",
41289
41295
  headerAlign: "right",
@@ -41300,7 +41306,7 @@ function getValueOptions(column2, additionalParams) {
41300
41306
  if (!column2) {
41301
41307
  return void 0;
41302
41308
  }
41303
- return typeof column2.valueOptions === "function" ? column2.valueOptions(_extends$2({
41309
+ return typeof column2.valueOptions === "function" ? column2.valueOptions(_extends$1({
41304
41310
  field: column2.field
41305
41311
  }, additionalParams)) : column2.valueOptions;
41306
41312
  }
@@ -41380,7 +41386,7 @@ function GridEditSingleSelectCell(props) {
41380
41386
  }
41381
41387
  if (reason === "backdropClick" || event.key === "Escape") {
41382
41388
  const params = apiRef.current.getCellParams(id, field);
41383
- apiRef.current.publishEvent("cellEditStop", _extends$2({}, params, {
41389
+ apiRef.current.publishEvent("cellEditStop", _extends$1({}, params, {
41384
41390
  reason: event.key === "Escape" ? GridCellEditStopReasons.escapeKeyDown : GridCellEditStopReasons.cellFocusOut
41385
41391
  }));
41386
41392
  }
@@ -41394,7 +41400,7 @@ function GridEditSingleSelectCell(props) {
41394
41400
  if (!valueOptions || !colDef) {
41395
41401
  return null;
41396
41402
  }
41397
- return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelect, _extends$2({
41403
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelect, _extends$1({
41398
41404
  ref,
41399
41405
  value: valueProp,
41400
41406
  onChange: handleChange,
@@ -41413,7 +41419,7 @@ function GridEditSingleSelectCell(props) {
41413
41419
  children: valueOptions.map((valueOption) => {
41414
41420
  var _a2;
41415
41421
  const value = getOptionValue(valueOption);
41416
- return /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$2({}, ((_a2 = rootProps.slotProps) == null ? void 0 : _a2.baseSelectOption) || {}, {
41422
+ return /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$1({}, ((_a2 = rootProps.slotProps) == null ? void 0 : _a2.baseSelectOption) || {}, {
41417
41423
  native: isSelectNative,
41418
41424
  key: value,
41419
41425
  value
@@ -41490,7 +41496,7 @@ GridEditSingleSelectCell.propTypes = {
41490
41496
  */
41491
41497
  value: PropTypes.any
41492
41498
  };
41493
- const renderEditSingleSelectCell = (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditSingleSelectCell, _extends$2({}, params));
41499
+ const renderEditSingleSelectCell = (params) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditSingleSelectCell, _extends$1({}, params));
41494
41500
  const _excluded$L = ["item", "applyValue", "type", "apiRef", "focusElementRef", "tabIndex", "isFilterActive", "clearButton", "headerFilterMenu", "slotProps"];
41495
41501
  const renderSingleSelectOptions = ({
41496
41502
  column: column2,
@@ -41507,7 +41513,7 @@ const renderSingleSelectOptions = ({
41507
41513
  if (label === "") {
41508
41514
  label = " ";
41509
41515
  }
41510
- return /* @__PURE__ */ createElement(OptionComponent, _extends$2({}, baseSelectOptionProps, {
41516
+ return /* @__PURE__ */ createElement(OptionComponent, _extends$1({}, baseSelectOptionProps, {
41511
41517
  native: isSelectNative,
41512
41518
  key: value,
41513
41519
  value
@@ -41547,7 +41553,7 @@ function GridFilterInputSingleSelect(props) {
41547
41553
  const onFilterChange = React.useCallback((event) => {
41548
41554
  let value = event.target.value;
41549
41555
  value = getValueFromValueOptions(value, currentValueOptions, getOptionValue);
41550
- applyValue(_extends$2({}, item, {
41556
+ applyValue(_extends$1({}, item, {
41551
41557
  value
41552
41558
  }));
41553
41559
  }, [currentValueOptions, getOptionValue, applyValue, item]);
@@ -41556,7 +41562,7 @@ function GridFilterInputSingleSelect(props) {
41556
41562
  }
41557
41563
  const label = (slotProps == null ? void 0 : slotProps.root.label) ?? apiRef.current.getLocaleText("filterPanelInputLabel");
41558
41564
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
41559
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelect, _extends$2({
41565
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelect, _extends$1({
41560
41566
  fullWidth: true,
41561
41567
  id,
41562
41568
  label,
@@ -41564,7 +41570,7 @@ function GridFilterInputSingleSelect(props) {
41564
41570
  value: filterValue,
41565
41571
  onChange: onFilterChange,
41566
41572
  slotProps: {
41567
- htmlInput: _extends$2({
41573
+ htmlInput: _extends$1({
41568
41574
  tabIndex,
41569
41575
  ref: focusElementRef,
41570
41576
  type: type || "text",
@@ -41664,12 +41670,12 @@ function GridFilterInputMultipleSingleSelect(props) {
41664
41670
  }, []);
41665
41671
  }, [getOptionValue, item.value, resolvedValueOptions]);
41666
41672
  const handleChange = React.useCallback((event, value) => {
41667
- applyValue(_extends$2({}, item, {
41673
+ applyValue(_extends$1({}, item, {
41668
41674
  value: value.map(getOptionValue)
41669
41675
  }));
41670
41676
  }, [applyValue, item, getOptionValue]);
41671
41677
  const BaseAutocomplete2 = rootProps.slots.baseAutocomplete;
41672
- return /* @__PURE__ */ jsxRuntimeExports.jsx(BaseAutocomplete2, _extends$2({
41678
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(BaseAutocomplete2, _extends$1({
41673
41679
  multiple: true,
41674
41680
  options: resolvedValueOptions,
41675
41681
  isOptionEqualToValue,
@@ -41773,7 +41779,7 @@ const defaultGetOptionValue = (value) => {
41773
41779
  const defaultGetOptionLabel = (value) => {
41774
41780
  return isObject(value) ? value.label : String(value);
41775
41781
  };
41776
- const GRID_SINGLE_SELECT_COL_DEF = _extends$2({}, GRID_STRING_COL_DEF, {
41782
+ const GRID_SINGLE_SELECT_COL_DEF = _extends$1({}, GRID_STRING_COL_DEF, {
41777
41783
  type: "singleSelect",
41778
41784
  getOptionLabel: defaultGetOptionLabel,
41779
41785
  getOptionValue: defaultGetOptionValue,
@@ -41939,7 +41945,7 @@ const hydrateColumnsWidth = (rawState, dimensions) => {
41939
41945
  widthAllocatedBeforeFlex += computedWidth;
41940
41946
  }
41941
41947
  if (column2.computedWidth !== computedWidth) {
41942
- column2 = _extends$2({}, column2, {
41948
+ column2 = _extends$1({}, column2, {
41943
41949
  computedWidth
41944
41950
  });
41945
41951
  }
@@ -41960,7 +41966,7 @@ const hydrateColumnsWidth = (rawState, dimensions) => {
41960
41966
  columnsLookup[field].computedWidth = computedColumnWidths[field].computedWidth;
41961
41967
  });
41962
41968
  }
41963
- return _extends$2({}, rawState, {
41969
+ return _extends$1({}, rawState, {
41964
41970
  lookup: columnsLookup
41965
41971
  });
41966
41972
  };
@@ -41986,10 +41992,10 @@ const applyInitialState = (columnsState, initialState) => {
41986
41992
  }
41987
41993
  }
41988
41994
  const newOrderedFields = cleanOrderedFields.length === 0 ? columnsState.orderedFields : [...cleanOrderedFields, ...columnsState.orderedFields.filter((field) => !orderedFieldsLookup[field])];
41989
- const newColumnLookup = _extends$2({}, columnsState.lookup);
41995
+ const newColumnLookup = _extends$1({}, columnsState.lookup);
41990
41996
  for (let i = 0; i < columnsWithUpdatedDimensions.length; i += 1) {
41991
41997
  const field = columnsWithUpdatedDimensions[i];
41992
- const newColDef = _extends$2({}, newColumnLookup[field], {
41998
+ const newColDef = _extends$1({}, newColumnLookup[field], {
41993
41999
  hasBeenResized: true
41994
42000
  });
41995
42001
  Object.entries(dimensions[field]).forEach(([key, value]) => {
@@ -41997,7 +42003,7 @@ const applyInitialState = (columnsState, initialState) => {
41997
42003
  });
41998
42004
  newColumnLookup[field] = newColDef;
41999
42005
  }
42000
- const newColumnsState = _extends$2({}, columnsState, {
42006
+ const newColumnsState = _extends$1({}, columnsState, {
42001
42007
  orderedFields: newOrderedFields,
42002
42008
  lookup: newColumnLookup
42003
42009
  });
@@ -42032,7 +42038,7 @@ const createColumnsState = ({
42032
42038
  const currentState = gridColumnsStateSelector(apiRef);
42033
42039
  columnsState = {
42034
42040
  orderedFields: keepOnlyColumnsToUpsert ? [] : [...currentState.orderedFields],
42035
- lookup: _extends$2({}, currentState.lookup),
42041
+ lookup: _extends$1({}, currentState.lookup),
42036
42042
  // Will be cleaned later if keepOnlyColumnsToUpsert=true
42037
42043
  columnVisibilityModel,
42038
42044
  initialColumnVisibilityModel: updateInitialVisibilityModel ? columnVisibilityModel : currentState.initialColumnVisibilityModel
@@ -42040,7 +42046,7 @@ const createColumnsState = ({
42040
42046
  }
42041
42047
  let columnsToKeep = {};
42042
42048
  if (keepOnlyColumnsToUpsert && !isInsideStateInitializer) {
42043
- columnsToKeep = Object.keys(columnsState.lookup).reduce((acc, key) => _extends$2({}, acc, {
42049
+ columnsToKeep = Object.keys(columnsState.lookup).reduce((acc, key) => _extends$1({}, acc, {
42044
42050
  [key]: false
42045
42051
  }), {});
42046
42052
  }
@@ -42051,7 +42057,7 @@ const createColumnsState = ({
42051
42057
  columnsToKeep[field] = true;
42052
42058
  let existingState = columnsState.lookup[field];
42053
42059
  if (existingState == null) {
42054
- existingState = _extends$2({}, getDefaultColTypeDef(newColumn.type), {
42060
+ existingState = _extends$1({}, getDefaultColTypeDef(newColumn.type), {
42055
42061
  field,
42056
42062
  hasBeenResized: false
42057
42063
  });
@@ -42060,7 +42066,7 @@ const createColumnsState = ({
42060
42066
  columnsState.orderedFields.push(field);
42061
42067
  }
42062
42068
  if (existingState && existingState.type !== newColumn.type) {
42063
- existingState = _extends$2({}, getDefaultColTypeDef(newColumn.type), {
42069
+ existingState = _extends$1({}, getDefaultColTypeDef(newColumn.type), {
42064
42070
  field
42065
42071
  });
42066
42072
  }
@@ -42073,7 +42079,7 @@ const createColumnsState = ({
42073
42079
  }
42074
42080
  }
42075
42081
  });
42076
- columnsState.lookup[field] = resolveProps(existingState, _extends$2({}, getDefaultColTypeDef(newColumn.type), newColumn, {
42082
+ columnsState.lookup[field] = resolveProps(existingState, _extends$1({}, getDefaultColTypeDef(newColumn.type), newColumn, {
42077
42083
  hasBeenResized
42078
42084
  }));
42079
42085
  });
@@ -42170,7 +42176,7 @@ function GridScrollAreaWrapper(props) {
42170
42176
  if (!dragging) {
42171
42177
  return null;
42172
42178
  }
42173
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollAreaContent, _extends$2({}, props));
42179
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollAreaContent, _extends$1({}, props));
42174
42180
  }
42175
42181
  function GridScrollAreaContent(props) {
42176
42182
  const {
@@ -42196,7 +42202,7 @@ function GridScrollAreaContent(props) {
42196
42202
  };
42197
42203
  const [canScrollMore, setCanScrollMore] = React.useState(getCanScrollMore);
42198
42204
  const rootProps = useGridRootProps();
42199
- const ownerState = _extends$2({}, rootProps, {
42205
+ const ownerState = _extends$1({}, rootProps, {
42200
42206
  scrollDirection
42201
42207
  });
42202
42208
  const classes2 = useUtilityClasses$D(ownerState);
@@ -42344,14 +42350,14 @@ const virtualizationStateInitializer = (state, props) => {
42344
42350
  enabledForRows: !disableVirtualization && !autoHeight,
42345
42351
  renderContext: EMPTY_RENDER_CONTEXT
42346
42352
  };
42347
- return _extends$2({}, state, {
42353
+ return _extends$1({}, state, {
42348
42354
  virtualization
42349
42355
  });
42350
42356
  };
42351
42357
  function useGridVirtualization(apiRef, props) {
42352
42358
  const setVirtualization = (enabled) => {
42353
- apiRef.current.setState((state) => _extends$2({}, state, {
42354
- virtualization: _extends$2({}, state.virtualization, {
42359
+ apiRef.current.setState((state) => _extends$1({}, state, {
42360
+ virtualization: _extends$1({}, state.virtualization, {
42355
42361
  enabled,
42356
42362
  enabledForColumns: enabled,
42357
42363
  enabledForRows: enabled && !props.autoHeight
@@ -42359,8 +42365,8 @@ function useGridVirtualization(apiRef, props) {
42359
42365
  }));
42360
42366
  };
42361
42367
  const setColumnVirtualization = (enabled) => {
42362
- apiRef.current.setState((state) => _extends$2({}, state, {
42363
- virtualization: _extends$2({}, state.virtualization, {
42368
+ apiRef.current.setState((state) => _extends$1({}, state, {
42369
+ virtualization: _extends$1({}, state.virtualization, {
42364
42370
  enabledForColumns: enabled
42365
42371
  })
42366
42372
  }));
@@ -42400,7 +42406,7 @@ const gridFocusedVirtualCellSelector = createSelectorMemoized(gridIsFocusedCellO
42400
42406
  if (columnIndex === -1) {
42401
42407
  return null;
42402
42408
  }
42403
- return _extends$2({}, focusedCell, {
42409
+ return _extends$1({}, focusedCell, {
42404
42410
  rowIndex,
42405
42411
  columnIndex
42406
42412
  });
@@ -42514,8 +42520,8 @@ const useGridVirtualScroller = () => {
42514
42520
  }
42515
42521
  const didRowsIntervalChange = nextRenderContext.firstRowIndex !== previousRowContext.current.firstRowIndex || nextRenderContext.lastRowIndex !== previousRowContext.current.lastRowIndex;
42516
42522
  apiRef.current.setState((state) => {
42517
- return _extends$2({}, state, {
42518
- virtualization: _extends$2({}, state.virtualization, {
42523
+ return _extends$1({}, state, {
42524
+ virtualization: _extends$1({}, state.virtualization, {
42519
42525
  renderContext: nextRenderContext
42520
42526
  })
42521
42527
  });
@@ -42710,7 +42716,7 @@ const useGridVirtualScroller = () => {
42710
42716
  const showBottomBorder = isLastVisibleInSection && params.position === "top";
42711
42717
  const firstColumnIndex = currentRenderContext.firstColumnIndex;
42712
42718
  const lastColumnIndex = currentRenderContext.lastColumnIndex;
42713
- rows.push(/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.row, _extends$2({
42719
+ rows.push(/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.row, _extends$1({
42714
42720
  row: model,
42715
42721
  rowId: id,
42716
42722
  index: rowIndex,
@@ -42917,7 +42923,7 @@ function computeRenderContext(inputs, scrollPosition, scrollCache) {
42917
42923
  lastColumnIndex: inputs.visibleColumns.length
42918
42924
  };
42919
42925
  if (inputs.listView) {
42920
- return _extends$2({}, renderContext, {
42926
+ return _extends$1({}, renderContext, {
42921
42927
  lastColumnIndex: 1
42922
42928
  });
42923
42929
  }
@@ -43195,14 +43201,14 @@ function GridOverlayWrapper(props) {
43195
43201
  if (height2 === 0) {
43196
43202
  height2 = minimalContentHeight;
43197
43203
  }
43198
- const classes2 = useUtilityClasses$C(_extends$2({}, props, {
43204
+ const classes2 = useUtilityClasses$C(_extends$1({}, props, {
43199
43205
  classes: rootProps.classes
43200
43206
  }));
43201
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapperRoot, _extends$2({
43207
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapperRoot, _extends$1({
43202
43208
  className: clsx(classes2.root)
43203
43209
  }, props, {
43204
43210
  right: dimensions.columnsTotalWidth - dimensions.viewportOuterSize.width,
43205
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapperInner, _extends$2({
43211
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapperInner, _extends$1({
43206
43212
  className: clsx(classes2.inner),
43207
43213
  style: {
43208
43214
  height: height2,
@@ -43258,8 +43264,8 @@ const useGridOverlays = () => {
43258
43264
  }
43259
43265
  const Overlay = (_a2 = rootProps.slots) == null ? void 0 : _a2[overlayType];
43260
43266
  const overlayProps = (_b2 = rootProps.slotProps) == null ? void 0 : _b2[overlayType];
43261
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapper, _extends$2({}, overlaysProps, {
43262
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(Overlay, _extends$2({}, overlayProps))
43267
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapper, _extends$1({}, overlaysProps, {
43268
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Overlay, _extends$1({}, overlayProps))
43263
43269
  }));
43264
43270
  };
43265
43271
  return {
@@ -43286,7 +43292,7 @@ function GridHeaders() {
43286
43292
  const columnGroupsHeaderStructure = useGridSelector(apiRef, gridColumnGroupsHeaderStructureSelector);
43287
43293
  const hasOtherElementInTabSequence = !(columnGroupHeaderTabIndexState === null && columnHeaderTabIndexState === null && hasNoCellTabIndexState);
43288
43294
  const columnsContainerRef = apiRef.current.columnHeadersContainerRef;
43289
- return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaders, _extends$2({
43295
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaders, _extends$1({
43290
43296
  ref: columnsContainerRef,
43291
43297
  visibleColumns,
43292
43298
  filterColumnLookup,
@@ -43336,7 +43342,7 @@ const GridMainContainer = forwardRef((props, ref) => {
43336
43342
  const rootProps = useGridRootProps();
43337
43343
  const configuration2 = useGridConfiguration();
43338
43344
  const ariaAttributes = configuration2.hooks.useGridAriaAttributes();
43339
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(Element$3, _extends$2({
43345
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(Element$3, _extends$1({
43340
43346
  ownerState,
43341
43347
  className: props.className,
43342
43348
  tabIndex: -1
@@ -43361,7 +43367,7 @@ const Element$2 = styled$1("div")({
43361
43367
  });
43362
43368
  function GridTopContainer(props) {
43363
43369
  const classes2 = useUtilityClasses$B();
43364
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Element$2, _extends$2({}, props, {
43370
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Element$2, _extends$1({}, props, {
43365
43371
  className: clsx(classes2.root, gridClasses["container--top"]),
43366
43372
  role: "presentation"
43367
43373
  }));
@@ -43394,7 +43400,7 @@ const GridVirtualScrollerContent = forwardRef(function GridVirtualScrollerConten
43394
43400
  classes: rootProps.classes,
43395
43401
  overflowedContent
43396
43402
  };
43397
- return /* @__PURE__ */ jsxRuntimeExports.jsx(VirtualScrollerContentRoot, _extends$2({}, props, {
43403
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(VirtualScrollerContentRoot, _extends$1({}, props, {
43398
43404
  ownerState,
43399
43405
  className: clsx(classes2.root, props.className),
43400
43406
  ref
@@ -43496,7 +43502,7 @@ const GridVirtualScrollerRenderZone = forwardRef(function GridVirtualScrollerRen
43496
43502
  const rowsMeta = gridRowsMetaSelector(apiRef);
43497
43503
  return rowsMeta.positions[renderContext.firstRowIndex] ?? 0;
43498
43504
  });
43499
- return /* @__PURE__ */ jsxRuntimeExports.jsx(VirtualScrollerRenderZoneRoot, _extends$2({
43505
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(VirtualScrollerRenderZoneRoot, _extends$1({
43500
43506
  className: clsx(classes2.root, className),
43501
43507
  ownerState: rootProps,
43502
43508
  style: {
@@ -43772,7 +43778,7 @@ function GridVirtualScroller(props) {
43772
43778
  getOverlay,
43773
43779
  overlaysProps
43774
43780
  } = useGridOverlays();
43775
- const ownerState = _extends$2({
43781
+ const ownerState = _extends$1({
43776
43782
  classes: rootProps.classes,
43777
43783
  hasScrollX,
43778
43784
  hasPinnedRight
@@ -43790,15 +43796,15 @@ function GridVirtualScroller(props) {
43790
43796
  getScrollAreaProps
43791
43797
  } = virtualScroller;
43792
43798
  const rows = getRows();
43793
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridMainContainer, _extends$2({
43799
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridMainContainer, _extends$1({
43794
43800
  className: classes2.root
43795
43801
  }, getContainerProps(), {
43796
43802
  ownerState,
43797
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollArea, _extends$2({
43803
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollArea, _extends$1({
43798
43804
  scrollDirection: "left"
43799
- }, getScrollAreaProps())), /* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollArea, _extends$2({
43805
+ }, getScrollAreaProps())), /* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollArea, _extends$1({
43800
43806
  scrollDirection: "right"
43801
- }, getScrollAreaProps())), /* @__PURE__ */ jsxRuntimeExports.jsxs(Scroller, _extends$2({
43807
+ }, getScrollAreaProps())), /* @__PURE__ */ jsxRuntimeExports.jsxs(Scroller, _extends$1({
43802
43808
  className: classes2.scroller
43803
43809
  }, getScrollerProps(), {
43804
43810
  ownerState,
@@ -43807,8 +43813,8 @@ function GridVirtualScroller(props) {
43807
43813
  position: "top",
43808
43814
  virtualScroller
43809
43815
  })]
43810
- }), getOverlay(), /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollerContent, _extends$2({}, getContentProps(), {
43811
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridVirtualScrollerRenderZone, _extends$2({}, getRenderZoneProps(), {
43816
+ }), getOverlay(), /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollerContent, _extends$1({}, getContentProps(), {
43817
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridVirtualScrollerRenderZone, _extends$1({}, getRenderZoneProps(), {
43812
43818
  children: [rows, /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.detailPanels, {
43813
43819
  virtualScroller
43814
43820
  })]
@@ -43821,9 +43827,9 @@ function GridVirtualScroller(props) {
43821
43827
  virtualScroller
43822
43828
  })
43823
43829
  })]
43824
- })), hasScrollX && !rootProps.listView && /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollbar, _extends$2({
43830
+ })), hasScrollX && !rootProps.listView && /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollbar, _extends$1({
43825
43831
  position: "horizontal"
43826
- }, getScrollbarHorizontalProps())), hasScrollY && /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollbar, _extends$2({
43832
+ }, getScrollbarHorizontalProps())), hasScrollY && /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollbar, _extends$1({
43827
43833
  position: "vertical"
43828
43834
  }, getScrollbarVerticalProps())), props.children]
43829
43835
  }));
@@ -43834,7 +43840,7 @@ function GridFooterPlaceholder() {
43834
43840
  if (rootProps.hideFooter) {
43835
43841
  return null;
43836
43842
  }
43837
- return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.footer, _extends$2(
43843
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.footer, _extends$1(
43838
43844
  {},
43839
43845
  (_a = rootProps.slotProps) == null ? void 0 : _a.footer
43840
43846
  /* FIXME: typing error */
@@ -43860,7 +43866,7 @@ function computeSlots({
43860
43866
  if (!overrides || Object.keys(overrides).length === 0) {
43861
43867
  return defaultSlots2;
43862
43868
  }
43863
- const result = _extends$2({}, defaultSlots2);
43869
+ const result = _extends$1({}, defaultSlots2);
43864
43870
  Object.keys(overrides).forEach((key) => {
43865
43871
  const k = key;
43866
43872
  if (overrides[k] !== void 0) {
@@ -44073,7 +44079,7 @@ const GridCell = forwardRef(function GridCell2(props, ref) {
44073
44079
  border: 0
44074
44080
  };
44075
44081
  }
44076
- const cellStyle = attachPinnedStyle(_extends$2({
44082
+ const cellStyle = attachPinnedStyle(_extends$1({
44077
44083
  "--width": `${width2}px`
44078
44084
  }, styleProp), isRtl, pinnedPosition, pinnedOffset);
44079
44085
  const isLeftPinned = pinnedPosition === PinnedColumnPosition.LEFT;
@@ -44110,7 +44116,7 @@ const GridCell = forwardRef(function GridCell2(props, ref) {
44110
44116
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
44111
44117
  "data-colindex": colIndex,
44112
44118
  role: "presentation",
44113
- style: _extends$2({
44119
+ style: _extends$1({
44114
44120
  width: "var(--width)"
44115
44121
  }, style2)
44116
44122
  });
@@ -44125,7 +44131,7 @@ const GridCell = forwardRef(function GridCell2(props, ref) {
44125
44131
  const updatedRow = apiRef.current.getRowWithUpdatedValues(rowId, column2.field);
44126
44132
  const editCellStateRest = _objectWithoutPropertiesLoose(editCellState, _excluded2$7);
44127
44133
  const formattedValue = column2.valueFormatter ? column2.valueFormatter(editCellState.value, updatedRow, column2, apiRef) : cellParams.formattedValue;
44128
- const params = _extends$2({}, cellParams, {
44134
+ const params = _extends$1({}, cellParams, {
44129
44135
  row: updatedRow,
44130
44136
  formattedValue
44131
44137
  }, editCellStateRest);
@@ -44147,7 +44153,7 @@ const GridCell = forwardRef(function GridCell2(props, ref) {
44147
44153
  onDragEnter: publish("cellDragEnter", onDragEnter),
44148
44154
  onDragOver: publish("cellDragOver", onDragOver)
44149
44155
  };
44150
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$2({
44156
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$1({
44151
44157
  className: clsx(classes2.root, classNames, className),
44152
44158
  role: "gridcell",
44153
44159
  "data-field": field,
@@ -44249,16 +44255,16 @@ function GridSkeletonCell(props) {
44249
44255
  height: CONTENT_HEIGHT
44250
44256
  };
44251
44257
  }, [type]);
44252
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$2({
44258
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$1({
44253
44259
  "data-field": field,
44254
44260
  className: clsx(classes2.root, className),
44255
- style: _extends$2({
44261
+ style: _extends$1({
44256
44262
  height: height2,
44257
44263
  maxWidth: width2,
44258
44264
  minWidth: width2
44259
44265
  }, style2)
44260
44266
  }, other, {
44261
- children: !empty && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSkeleton, _extends$2({}, skeletonProps))
44267
+ children: !empty && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSkeleton, _extends$1({}, skeletonProps))
44262
44268
  }));
44263
44269
  }
44264
44270
  GridSkeletonCell.propTypes = {
@@ -45263,7 +45269,7 @@ function GridPreferencesPanel() {
45263
45269
  filterPanelTriggerRef
45264
45270
  } = useGridPreferencePanelContext();
45265
45271
  const panelContent = apiRef.current.unstable_applyPipeProcessors("preferencePanel", null, preferencePanelState.openedPanelValue ?? GridPreferencePanelsValue.filters);
45266
- return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.panel, _extends$2({
45272
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.panel, _extends$1({
45267
45273
  id: preferencePanelState.panelId,
45268
45274
  open: columns.length > 0 && preferencePanelState.open,
45269
45275
  "aria-labelledby": preferencePanelState.labelId,
@@ -45276,7 +45282,7 @@ function GridHeader() {
45276
45282
  var _a;
45277
45283
  const rootProps = useGridRootProps();
45278
45284
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
45279
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridPreferencesPanel, {}), rootProps.showToolbar && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.toolbar, _extends$2({}, (_a = rootProps.slotProps) == null ? void 0 : _a.toolbar))]
45285
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridPreferencesPanel, {}), rootProps.showToolbar && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.toolbar, _extends$1({}, (_a = rootProps.slotProps) == null ? void 0 : _a.toolbar))]
45280
45286
  });
45281
45287
  }
45282
45288
  const _excluded$G = ["className", "children"];
@@ -45314,7 +45320,7 @@ const GridRoot = forwardRef(function GridRoot2(props, ref) {
45314
45320
  if (isSSR2) {
45315
45321
  return null;
45316
45322
  }
45317
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridRootStyles, _extends$2({
45323
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridRootStyles, _extends$1({
45318
45324
  className: clsx(classes2.root, className, cssVariables.className),
45319
45325
  ownerState
45320
45326
  }, other, {
@@ -45362,7 +45368,7 @@ const GridFooterContainer = forwardRef(function GridFooterContainer2(props, ref)
45362
45368
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$F);
45363
45369
  const rootProps = useGridRootProps();
45364
45370
  const classes2 = useUtilityClasses$t(rootProps);
45365
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridFooterContainerRoot, _extends$2({
45371
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridFooterContainerRoot, _extends$1({
45366
45372
  className: clsx(classes2.root, className),
45367
45373
  ownerState: rootProps
45368
45374
  }, other, {
@@ -45406,7 +45412,7 @@ const GridOverlay = forwardRef(function GridOverlay2(props, ref) {
45406
45412
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$E);
45407
45413
  const rootProps = useGridRootProps();
45408
45414
  const classes2 = useUtilityClasses$s(rootProps);
45409
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayRoot, _extends$2({
45415
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayRoot, _extends$1({
45410
45416
  className: clsx(classes2.root, className),
45411
45417
  ownerState: rootProps
45412
45418
  }, other, {
@@ -45429,7 +45435,7 @@ function useGridComponentRenderer(defaultElement, render, props, state = {}) {
45429
45435
  props.className = clsx(render.props.className, props.className);
45430
45436
  }
45431
45437
  if (render.props.style || props.style) {
45432
- props.style = _extends$2({}, props.style, render.props.style);
45438
+ props.style = _extends$1({}, props.style, render.props.style);
45433
45439
  }
45434
45440
  if (render.props.sx || props.sx) {
45435
45441
  props.sx = mergeSx(props.sx, render.props.sx);
@@ -45569,7 +45575,7 @@ const Toolbar$1 = forwardRef(function Toolbar2(props, ref) {
45569
45575
  onItemFocus,
45570
45576
  onItemDisabled
45571
45577
  }), [focusableItemId, registerItem, unregisterItem, onItemKeyDown, onItemFocus, onItemDisabled]);
45572
- const element = useGridComponentRenderer(ToolbarRoot$1, render, _extends$2({
45578
+ const element = useGridComponentRenderer(ToolbarRoot$1, render, _extends$1({
45573
45579
  role: "toolbar",
45574
45580
  "aria-orientation": "horizontal",
45575
45581
  "aria-label": rootProps.label || void 0,
@@ -45646,7 +45652,7 @@ const ToolbarButton = forwardRef(function ToolbarButton2(props, ref) {
45646
45652
  }
45647
45653
  previousAriaDisabled.current = ariaDisabled;
45648
45654
  }, [ariaDisabled, id, onItemDisabled]);
45649
- const element = useGridComponentRenderer(rootProps.slots.baseIconButton, render, _extends$2({}, (_a = rootProps.slotProps) == null ? void 0 : _a.baseIconButton, {
45655
+ const element = useGridComponentRenderer(rootProps.slots.baseIconButton, render, _extends$1({}, (_a = rootProps.slotProps) == null ? void 0 : _a.baseIconButton, {
45650
45656
  tabIndex: focusableItemId === id ? 0 : -1
45651
45657
  }, other, {
45652
45658
  disabled,
@@ -45703,7 +45709,7 @@ const ColumnHeaderMenuIcon = /* @__PURE__ */ React.memo((props) => {
45703
45709
  } = props;
45704
45710
  const apiRef = useGridApiContext();
45705
45711
  const rootProps = useGridRootProps();
45706
- const ownerState = _extends$2({}, props, {
45712
+ const ownerState = _extends$1({}, props, {
45707
45713
  classes: rootProps.classes
45708
45714
  });
45709
45715
  const classes2 = useUtilityClasses$q(ownerState);
@@ -45715,11 +45721,11 @@ const ColumnHeaderMenuIcon = /* @__PURE__ */ React.memo((props) => {
45715
45721
  const columnName = colDef.headerName ?? colDef.field;
45716
45722
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
45717
45723
  className: classes2.root,
45718
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$2({
45724
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$1({
45719
45725
  title: apiRef.current.getLocaleText("columnMenuLabel"),
45720
45726
  enterDelay: 1e3
45721
45727
  }, (_a = rootProps.slotProps) == null ? void 0 : _a.baseTooltip, {
45722
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$2({
45728
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$1({
45723
45729
  ref: iconButtonRef,
45724
45730
  tabIndex: -1,
45725
45731
  className: classes2.button,
@@ -45768,7 +45774,7 @@ function GridColumnHeaderMenu({
45768
45774
  target,
45769
45775
  onClose: hideMenu,
45770
45776
  onExited,
45771
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(ContentComponent, _extends$2({
45777
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(ContentComponent, _extends$1({
45772
45778
  colDef,
45773
45779
  hideMenu,
45774
45780
  open,
@@ -46010,7 +46016,7 @@ const ColumnHeaderInnerTitle = forwardRef(function ColumnHeaderInnerTitle2(props
46010
46016
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$B);
46011
46017
  const rootProps = useGridRootProps();
46012
46018
  const classes2 = useUtilityClasses$p(rootProps);
46013
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderTitleRoot, _extends$2({
46019
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderTitleRoot, _extends$1({
46014
46020
  className: clsx(classes2.root, className),
46015
46021
  ownerState: rootProps
46016
46022
  }, other, {
@@ -46036,7 +46042,7 @@ function GridColumnHeaderTitle(props) {
46036
46042
  }
46037
46043
  }
46038
46044
  }, [description, label]);
46039
- return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$2({
46045
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$1({
46040
46046
  title: description || tooltip
46041
46047
  }, (_a = rootProps.slotProps) == null ? void 0 : _a.baseTooltip, {
46042
46048
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnHeaderInnerTitle, {
@@ -46080,7 +46086,7 @@ function GridColumnHeaderSeparatorRaw(props) {
46080
46086
  side = GridColumnHeaderSeparatorSides.Right
46081
46087
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$A);
46082
46088
  const rootProps = useGridRootProps();
46083
- const ownerState = _extends$2({}, props, {
46089
+ const ownerState = _extends$1({}, props, {
46084
46090
  side,
46085
46091
  classes: rootProps.classes
46086
46092
  });
@@ -46091,7 +46097,7 @@ function GridColumnHeaderSeparatorRaw(props) {
46091
46097
  }, []);
46092
46098
  return (
46093
46099
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
46094
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$2({
46100
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$1({
46095
46101
  className: classes2.root,
46096
46102
  style: {
46097
46103
  minHeight: height2
@@ -46160,9 +46166,9 @@ const GridGenericColumnHeaderItem = forwardRef(function GridGenericColumnHeaderI
46160
46166
  }
46161
46167
  }
46162
46168
  }, [apiRef, hasFocus]);
46163
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$2({
46169
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$1({
46164
46170
  className: clsx(classes2.root, headerClassName),
46165
- style: _extends$2({}, style2, {
46171
+ style: _extends$1({}, style2, {
46166
46172
  width: width2
46167
46173
  }),
46168
46174
  role: "columnheader",
@@ -46171,7 +46177,7 @@ const GridGenericColumnHeaderItem = forwardRef(function GridGenericColumnHeaderI
46171
46177
  "aria-sort": ariaSort
46172
46178
  }, other, {
46173
46179
  ref: handleRef,
46174
- children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$2({
46180
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$1({
46175
46181
  className: classes2.draggableContainer,
46176
46182
  draggable: isDraggable,
46177
46183
  role: "presentation"
@@ -46188,7 +46194,7 @@ const GridGenericColumnHeaderItem = forwardRef(function GridGenericColumnHeaderI
46188
46194
  })
46189
46195
  }), columnTitleIconButtons]
46190
46196
  }), columnMenuIconButton]
46191
- })), /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderSeparator, _extends$2({
46197
+ })), /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderSeparator, _extends$1({
46192
46198
  resizable: !rootProps.disableColumnResize && !!resizable,
46193
46199
  resizing: isResizing,
46194
46200
  height: height2,
@@ -46273,7 +46279,7 @@ function GridColumnHeaderItem(props) {
46273
46279
  if (colDef.renderHeader) {
46274
46280
  headerComponent = colDef.renderHeader(apiRef.current.getColumnHeaderParams(colDef.field));
46275
46281
  }
46276
- const ownerState = _extends$2({}, props, {
46282
+ const ownerState = _extends$1({}, props, {
46277
46283
  classes: rootProps.classes,
46278
46284
  showRightBorder,
46279
46285
  showLeftBorder
@@ -46339,10 +46345,10 @@ function GridColumnHeaderItem(props) {
46339
46345
  const sortingOrder = colDef.sortingOrder ?? rootProps.sortingOrder;
46340
46346
  const showSortIcon = (colDef.sortable || sortDirection != null) && !colDef.hideSortIcons && !rootProps.disableColumnSorting;
46341
46347
  const columnTitleIconButtons = /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
46342
- children: [!rootProps.disableColumnFilter && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaderFilterIconButton, _extends$2({
46348
+ children: [!rootProps.disableColumnFilter && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaderFilterIconButton, _extends$1({
46343
46349
  field: colDef.field,
46344
46350
  counter: filterItemsCounter
46345
- }, (_b = rootProps.slotProps) == null ? void 0 : _b.columnHeaderFilterIconButton)), showSortIcon && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaderSortIcon, _extends$2({
46351
+ }, (_b = rootProps.slotProps) == null ? void 0 : _b.columnHeaderFilterIconButton)), showSortIcon && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaderSortIcon, _extends$1({
46346
46352
  field: colDef.field,
46347
46353
  direction: sortDirection,
46348
46354
  index: sortIndex,
@@ -46367,8 +46373,8 @@ function GridColumnHeaderItem(props) {
46367
46373
  colDef
46368
46374
  }) : colDef.headerClassName;
46369
46375
  const label = colDef.headerName ?? colDef.field;
46370
- const style2 = React.useMemo(() => attachPinnedStyle(_extends$2({}, props.style), isRtl, pinnedPosition, pinnedOffset), [pinnedPosition, pinnedOffset, props.style, isRtl]);
46371
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnHeaderItem, _extends$2({
46376
+ const style2 = React.useMemo(() => attachPinnedStyle(_extends$1({}, props.style), isRtl, pinnedPosition, pinnedOffset), [pinnedPosition, pinnedOffset, props.style, isRtl]);
46377
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnHeaderItem, _extends$1({
46372
46378
  ref: headerCellRef,
46373
46379
  classes: classes2,
46374
46380
  columnMenuOpen,
@@ -46449,7 +46455,7 @@ const GridIconButtonContainer = forwardRef(function GridIconButtonContainer2(pro
46449
46455
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$y);
46450
46456
  const rootProps = useGridRootProps();
46451
46457
  const classes2 = useUtilityClasses$m(rootProps);
46452
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridIconButtonContainerRoot, _extends$2({
46458
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridIconButtonContainerRoot, _extends$1({
46453
46459
  className: clsx(classes2.root, className),
46454
46460
  ownerState: rootProps
46455
46461
  }, other, {
@@ -46477,7 +46483,7 @@ function getIcon(icons, direction, className, sortingOrder) {
46477
46483
  Icon = icons.columnUnsortedIcon;
46478
46484
  iconProps.sortingOrder = sortingOrder;
46479
46485
  }
46480
- return Icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$2({
46486
+ return Icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$1({
46481
46487
  fontSize: "small",
46482
46488
  className
46483
46489
  }, iconProps)) : null;
@@ -46492,7 +46498,7 @@ function GridColumnHeaderSortIconRaw(props) {
46492
46498
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$x);
46493
46499
  const apiRef = useGridApiContext();
46494
46500
  const rootProps = useGridRootProps();
46495
- const ownerState = _extends$2({}, props, {
46501
+ const ownerState = _extends$1({}, props, {
46496
46502
  classes: rootProps.classes
46497
46503
  });
46498
46504
  const classes2 = useUtilityClasses$l(ownerState);
@@ -46500,7 +46506,7 @@ function GridColumnHeaderSortIconRaw(props) {
46500
46506
  if (!iconElement) {
46501
46507
  return null;
46502
46508
  }
46503
- const iconButton = /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$2({
46509
+ const iconButton = /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$1({
46504
46510
  tabIndex: -1,
46505
46511
  "aria-label": apiRef.current.getLocaleText("columnHeaderSortIconLabel"),
46506
46512
  title: apiRef.current.getLocaleText("columnHeaderSortIconLabel"),
@@ -46543,7 +46549,7 @@ function GridColumnHeaderFilterIconButtonWrapped(props) {
46543
46549
  if (!props.counter) {
46544
46550
  return null;
46545
46551
  }
46546
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderFilterIconButton, _extends$2({}, props));
46552
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderFilterIconButton, _extends$1({}, props));
46547
46553
  }
46548
46554
  GridColumnHeaderFilterIconButtonWrapped.propTypes = {
46549
46555
  // ----------------------------- Warning --------------------------------
@@ -46563,7 +46569,7 @@ function GridColumnHeaderFilterIconButton(props) {
46563
46569
  } = props;
46564
46570
  const apiRef = useGridApiContext();
46565
46571
  const rootProps = useGridRootProps();
46566
- const ownerState = _extends$2({}, props, {
46572
+ const ownerState = _extends$1({}, props, {
46567
46573
  classes: rootProps.classes
46568
46574
  });
46569
46575
  const classes2 = useUtilityClasses$k(ownerState);
@@ -46589,7 +46595,7 @@ function GridColumnHeaderFilterIconButton(props) {
46589
46595
  if (!counter2) {
46590
46596
  return null;
46591
46597
  }
46592
- const iconButton = /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$2({
46598
+ const iconButton = /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$1({
46593
46599
  id: labelId,
46594
46600
  onClick: toggleFilter,
46595
46601
  "aria-label": apiRef.current.getLocaleText("columnHeaderFiltersLabel"),
@@ -46604,7 +46610,7 @@ function GridColumnHeaderFilterIconButton(props) {
46604
46610
  fontSize: "small"
46605
46611
  })
46606
46612
  }));
46607
- return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$2({
46613
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$1({
46608
46614
  title: apiRef.current.getLocaleText("columnHeaderFiltersTooltipActive")(counter2),
46609
46615
  enterDelay: 1e3
46610
46616
  }, (_b = rootProps.slotProps) == null ? void 0 : _b.baseTooltip, {
@@ -46754,7 +46760,7 @@ const GridColumnMenuContainer = forwardRef(function GridColumnMenuContainer2(pro
46754
46760
  hideMenu(event);
46755
46761
  }
46756
46762
  }, [hideMenu]);
46757
- return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledMenuList, _extends$2({
46763
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledMenuList, _extends$1({
46758
46764
  as: rootProps.slots.baseMenuList,
46759
46765
  id,
46760
46766
  className: clsx(gridClasses.menuList, className),
@@ -46790,14 +46796,14 @@ const useGridColumnMenuSlots = (props) => {
46790
46796
  colDef,
46791
46797
  addDividers = true
46792
46798
  } = props;
46793
- const processedComponents = React.useMemo(() => _extends$2({}, defaultSlots2, slots), [defaultSlots2, slots]);
46799
+ const processedComponents = React.useMemo(() => _extends$1({}, defaultSlots2, slots), [defaultSlots2, slots]);
46794
46800
  const processedSlotProps = React.useMemo(() => {
46795
46801
  if (!slotProps || Object.keys(slotProps).length === 0) {
46796
46802
  return defaultSlotProps;
46797
46803
  }
46798
- const mergedProps = _extends$2({}, slotProps);
46804
+ const mergedProps = _extends$1({}, slotProps);
46799
46805
  Object.entries(defaultSlotProps).forEach(([key, currentSlotProps]) => {
46800
- mergedProps[key] = _extends$2({}, currentSlotProps, slotProps[key] || {});
46806
+ mergedProps[key] = _extends$1({}, currentSlotProps, slotProps[key] || {});
46801
46807
  });
46802
46808
  return mergedProps;
46803
46809
  }, [defaultSlotProps, slotProps]);
@@ -46824,7 +46830,7 @@ const useGridColumnMenuSlots = (props) => {
46824
46830
  const processedComponentProps = processedSlotProps[key];
46825
46831
  if (processedComponentProps) {
46826
46832
  const customProps = _objectWithoutPropertiesLoose(processedComponentProps, _excluded$v);
46827
- itemProps = _extends$2({}, itemProps, customProps);
46833
+ itemProps = _extends$1({}, itemProps, customProps);
46828
46834
  }
46829
46835
  return addDividers && index !== sorted.length - 1 ? [...acc, [processedComponents[key], itemProps], [rootProps.slots.baseDivider, {}]] : [...acc, [processedComponents[key], itemProps]];
46830
46836
  }, []);
@@ -46901,7 +46907,7 @@ GridColumnMenuManageItem.propTypes = {
46901
46907
  };
46902
46908
  function GridColumnMenuColumnsItem(props) {
46903
46909
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
46904
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuHideItem, _extends$2({}, props)), /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuManageItem, _extends$2({}, props))]
46910
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuHideItem, _extends$1({}, props)), /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuManageItem, _extends$1({}, props))]
46905
46911
  });
46906
46912
  }
46907
46913
  GridColumnMenuColumnsItem.propTypes = {
@@ -47026,15 +47032,15 @@ const GridGenericColumnMenu = forwardRef(function GridGenericColumnMenu2(props,
47026
47032
  slots,
47027
47033
  slotProps
47028
47034
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$u);
47029
- const orderedSlots = useGridColumnMenuSlots(_extends$2({}, other, {
47035
+ const orderedSlots = useGridColumnMenuSlots(_extends$1({}, other, {
47030
47036
  defaultSlots: defaultSlots2,
47031
47037
  defaultSlotProps,
47032
47038
  slots,
47033
47039
  slotProps
47034
47040
  }));
47035
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuContainer, _extends$2({}, other, {
47041
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuContainer, _extends$1({}, other, {
47036
47042
  ref,
47037
- children: orderedSlots.map(([Component, otherProps], index) => /* @__PURE__ */ jsxRuntimeExports.jsx(Component, _extends$2({}, otherProps), index))
47043
+ children: orderedSlots.map(([Component, otherProps], index) => /* @__PURE__ */ jsxRuntimeExports.jsx(Component, _extends$1({}, otherProps), index))
47038
47044
  }));
47039
47045
  });
47040
47046
  GridGenericColumnMenu.propTypes = {
@@ -47070,7 +47076,7 @@ GridGenericColumnMenu.propTypes = {
47070
47076
  slots: PropTypes.object
47071
47077
  };
47072
47078
  const GridColumnMenu = forwardRef(function GridColumnMenu2(props, ref) {
47073
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnMenu, _extends$2({}, props, {
47079
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnMenu, _extends$1({}, props, {
47074
47080
  ref,
47075
47081
  defaultSlots: GRID_COLUMN_MENU_SLOTS,
47076
47082
  defaultSlotProps: GRID_COLUMN_MENU_SLOT_PROPS
@@ -47125,7 +47131,7 @@ const GridPanelWrapper = forwardRef(function GridPanelWrapper2(props, ref) {
47125
47131
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$t);
47126
47132
  const rootProps = useGridRootProps();
47127
47133
  const classes2 = useUtilityClasses$j(rootProps);
47128
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelWrapperRoot, _extends$2({
47134
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelWrapperRoot, _extends$1({
47129
47135
  tabIndex: -1,
47130
47136
  className: clsx(classes2.root, className),
47131
47137
  ownerState: rootProps
@@ -47136,8 +47142,8 @@ const GridPanelWrapper = forwardRef(function GridPanelWrapper2(props, ref) {
47136
47142
  function GridColumnsPanel(props) {
47137
47143
  var _a;
47138
47144
  const rootProps = useGridRootProps();
47139
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelWrapper, _extends$2({}, props, {
47140
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnsManagement, _extends$2({}, (_a = rootProps.slotProps) == null ? void 0 : _a.columnsManagement))
47145
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelWrapper, _extends$1({}, props, {
47146
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnsManagement, _extends$1({}, (_a = rootProps.slotProps) == null ? void 0 : _a.columnsManagement))
47141
47147
  }));
47142
47148
  }
47143
47149
  const _excluded$s = ["children", "className", "classes"];
@@ -47193,7 +47199,7 @@ const GridPanel = forwardRef((props, ref) => {
47193
47199
  if (!fallbackTarget) {
47194
47200
  return null;
47195
47201
  }
47196
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelRoot, _extends$2({
47202
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelRoot, _extends$1({
47197
47203
  as: rootProps.slots.basePopper,
47198
47204
  ownerState: rootProps,
47199
47205
  placement: "bottom-end",
@@ -47260,7 +47266,7 @@ function GridPanelContent(props) {
47260
47266
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$r);
47261
47267
  const rootProps = useGridRootProps();
47262
47268
  const classes2 = useUtilityClasses$i(rootProps);
47263
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelContentRoot, _extends$2({
47269
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelContentRoot, _extends$1({
47264
47270
  className: clsx(classes2.root, className),
47265
47271
  ownerState: rootProps
47266
47272
  }, other));
@@ -47298,7 +47304,7 @@ function GridPanelFooter(props) {
47298
47304
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$q);
47299
47305
  const rootProps = useGridRootProps();
47300
47306
  const classes2 = useUtilityClasses$h(rootProps);
47301
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelFooterRoot, _extends$2({
47307
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelFooterRoot, _extends$1({
47302
47308
  className: clsx(classes2.root, className),
47303
47309
  ownerState: rootProps
47304
47310
  }, other));
@@ -47500,7 +47506,7 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref) {
47500
47506
  filterValue = void 0;
47501
47507
  }
47502
47508
  }
47503
- applyFilterChanges(_extends$2({}, item, {
47509
+ applyFilterChanges(_extends$1({}, item, {
47504
47510
  field,
47505
47511
  operator: newOperator.value,
47506
47512
  value: filterValue
@@ -47510,7 +47516,7 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref) {
47510
47516
  const operator = event.target.value;
47511
47517
  const newOperator = currentColumn == null ? void 0 : currentColumn.filterOperators.find((op) => op.value === operator);
47512
47518
  const eraseItemValue = !(newOperator == null ? void 0 : newOperator.InputComponent) || (newOperator == null ? void 0 : newOperator.InputComponent) !== (currentOperator == null ? void 0 : currentOperator.InputComponent);
47513
- applyFilterChanges(_extends$2({}, item, {
47519
+ applyFilterChanges(_extends$1({}, item, {
47514
47520
  operator,
47515
47521
  value: eraseItemValue ? void 0 : item.value
47516
47522
  }));
@@ -47532,16 +47538,16 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref) {
47532
47538
  }
47533
47539
  }
47534
47540
  }), [currentOperator]);
47535
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridFilterFormRoot, _extends$2({
47541
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridFilterFormRoot, _extends$1({
47536
47542
  className: classes2.root,
47537
47543
  "data-id": item.id,
47538
47544
  ownerState: rootProps
47539
47545
  }, other, {
47540
47546
  ref,
47541
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormDeleteIcon, _extends$2({}, deleteIconProps, {
47547
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormDeleteIcon, _extends$1({}, deleteIconProps, {
47542
47548
  className: clsx(classes2.deleteIcon, deleteIconProps.className),
47543
47549
  ownerState: rootProps,
47544
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$2({
47550
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$1({
47545
47551
  "aria-label": apiRef.current.getLocaleText("filterPanelDeleteIconLabel"),
47546
47552
  title: apiRef.current.getLocaleText("filterPanelDeleteIconLabel"),
47547
47553
  onClick: handleDeleteFilter,
@@ -47552,7 +47558,7 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref) {
47552
47558
  fontSize: "small"
47553
47559
  })
47554
47560
  }))
47555
- })), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormLogicOperatorInput, _extends$2({
47561
+ })), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormLogicOperatorInput, _extends$1({
47556
47562
  as: rootProps.slots.baseSelect,
47557
47563
  sx: [hasLogicOperatorColumn ? {
47558
47564
  display: "flex"
@@ -47577,12 +47583,12 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref) {
47577
47583
  disabled: !!disableMultiFilterOperator || logicOperators.length === 1,
47578
47584
  native: isBaseSelectNative
47579
47585
  }, (_d = rootProps.slotProps) == null ? void 0 : _d.baseSelect, {
47580
- children: logicOperators.map((logicOperator) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$2({}, baseSelectOptionProps, {
47586
+ children: logicOperators.map((logicOperator) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$1({}, baseSelectOptionProps, {
47581
47587
  native: isBaseSelectNative,
47582
47588
  key: logicOperator.toString(),
47583
47589
  value: logicOperator.toString()
47584
47590
  }), apiRef.current.getLocaleText(getLogicOperatorLocaleKey(logicOperator))))
47585
- })), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormColumnInput, _extends$2({
47591
+ })), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormColumnInput, _extends$1({
47586
47592
  as: rootProps.slots.baseSelect
47587
47593
  }, columnInputProps, {
47588
47594
  className: clsx(classes2.columnInput, columnInputProps.className),
@@ -47596,12 +47602,12 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref) {
47596
47602
  native: isBaseSelectNative,
47597
47603
  disabled: readOnly
47598
47604
  }, (_e = rootProps.slotProps) == null ? void 0 : _e.baseSelect, {
47599
- children: sortedFilteredColumns.map((col) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$2({}, baseSelectOptionProps, {
47605
+ children: sortedFilteredColumns.map((col) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$1({}, baseSelectOptionProps, {
47600
47606
  native: isBaseSelectNative,
47601
47607
  key: col.field,
47602
47608
  value: col.field
47603
47609
  }), getColumnLabel(col)))
47604
- })), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormOperatorInput, _extends$2({
47610
+ })), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormOperatorInput, _extends$1({
47605
47611
  as: rootProps.slots.baseSelect,
47606
47612
  size: "small"
47607
47613
  }, operatorInputProps, {
@@ -47616,15 +47622,15 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref) {
47616
47622
  inputRef: filterSelectorRef,
47617
47623
  disabled: readOnly
47618
47624
  }, (_f = rootProps.slotProps) == null ? void 0 : _f.baseSelect, {
47619
- children: (_g = currentColumn == null ? void 0 : currentColumn.filterOperators) == null ? void 0 : _g.map((operator) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$2({}, baseSelectOptionProps, {
47625
+ children: (_g = currentColumn == null ? void 0 : currentColumn.filterOperators) == null ? void 0 : _g.map((operator) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$1({}, baseSelectOptionProps, {
47620
47626
  native: isBaseSelectNative,
47621
47627
  key: operator.value,
47622
47628
  value: operator.value
47623
47629
  }), operator.label || apiRef.current.getLocaleText(`filterOperator${capitalize(operator.value)}`)))
47624
- })), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormValueInput, _extends$2({}, valueInputPropsOther, {
47630
+ })), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormValueInput, _extends$1({}, valueInputPropsOther, {
47625
47631
  className: clsx(classes2.valueInput, valueInputPropsOther.className),
47626
47632
  ownerState: rootProps,
47627
- children: (currentOperator == null ? void 0 : currentOperator.InputComponent) ? /* @__PURE__ */ jsxRuntimeExports.jsx(currentOperator.InputComponent, _extends$2({
47633
+ children: (currentOperator == null ? void 0 : currentOperator.InputComponent) ? /* @__PURE__ */ jsxRuntimeExports.jsx(currentOperator.InputComponent, _extends$1({
47628
47634
  apiRef,
47629
47635
  item,
47630
47636
  applyValue: applyFilterChanges,
@@ -47852,7 +47858,7 @@ const GridFilterPanel = forwardRef(function GridFilterPanel2(props, ref) {
47852
47858
  apiRef.current.deleteFilterItem(validFilters[0]);
47853
47859
  return apiRef.current.hideFilterPanel();
47854
47860
  }
47855
- return apiRef.current.setFilterModel(_extends$2({}, filterModel, {
47861
+ return apiRef.current.setFilterModel(_extends$1({}, filterModel, {
47856
47862
  items: readOnlyFilters
47857
47863
  }), "removeAllFilterItems");
47858
47864
  }, [apiRef, readOnlyFilters, filterModel, validFilters]);
@@ -47866,10 +47872,10 @@ const GridFilterPanel = forwardRef(function GridFilterPanel2(props, ref) {
47866
47872
  lastFilterRef.current.focus();
47867
47873
  }
47868
47874
  }, [validFilters.length]);
47869
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridPanelWrapper, _extends$2({}, other, {
47875
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridPanelWrapper, _extends$1({}, other, {
47870
47876
  ref,
47871
47877
  children: [/* @__PURE__ */ jsxRuntimeExports.jsxs(GridPanelContent, {
47872
- children: [readOnlyFilters.map((item, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridFilterForm, _extends$2({
47878
+ children: [readOnlyFilters.map((item, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridFilterForm, _extends$1({
47873
47879
  item,
47874
47880
  applyFilterChanges: applyFilter,
47875
47881
  deleteFilter,
@@ -47881,7 +47887,7 @@ const GridFilterPanel = forwardRef(function GridFilterPanel2(props, ref) {
47881
47887
  readOnly: true,
47882
47888
  logicOperators,
47883
47889
  columnsSort
47884
- }, filterFormProps), item.id == null ? index : item.id)), validFilters.map((item, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridFilterForm, _extends$2({
47890
+ }, filterFormProps), item.id == null ? index : item.id)), validFilters.map((item, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridFilterForm, _extends$1({
47885
47891
  item,
47886
47892
  applyFilterChanges: applyFilter,
47887
47893
  deleteFilter,
@@ -47894,12 +47900,12 @@ const GridFilterPanel = forwardRef(function GridFilterPanel2(props, ref) {
47894
47900
  columnsSort
47895
47901
  }, filterFormProps), item.id == null ? index + readOnlyFilters.length : item.id))]
47896
47902
  }), !rootProps.disableMultipleColumnsFiltering && !(disableAddFilterButton && disableRemoveAllButton) ? /* @__PURE__ */ jsxRuntimeExports.jsxs(GridPanelFooter, {
47897
- children: [!disableAddFilterButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$2({
47903
+ children: [!disableAddFilterButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$1({
47898
47904
  onClick: addNewFilter,
47899
47905
  startIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.filterPanelAddIcon, {})
47900
47906
  }, (_a = rootProps.slotProps) == null ? void 0 : _a.baseButton, {
47901
47907
  children: apiRef.current.getLocaleText("filterPanelAddFilter")
47902
- })) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", {}), !disableRemoveAllButton && validFilters.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$2({
47908
+ })) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", {}), !disableRemoveAllButton && validFilters.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$1({
47903
47909
  onClick: handleRemoveAll,
47904
47910
  startIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.filterPanelRemoveAllIcon, {})
47905
47911
  }, (_b = rootProps.slotProps) == null ? void 0 : _b.baseButton, {
@@ -48040,7 +48046,7 @@ function GridShadowScrollArea(props) {
48040
48046
  const {
48041
48047
  children
48042
48048
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded$n);
48043
- return /* @__PURE__ */ jsxRuntimeExports.jsx(ShadowScrollArea, _extends$2({}, rest, {
48049
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(ShadowScrollArea, _extends$1({}, rest, {
48044
48050
  children
48045
48051
  }));
48046
48052
  }
@@ -48107,7 +48113,7 @@ function GridColumnsManagement(props) {
48107
48113
  }, [sortedColumns, searchValue, searchPredicate, getTogglableColumns]);
48108
48114
  const toggleAllColumns = React.useCallback((isVisible) => {
48109
48115
  const currentModel = gridColumnVisibilityModelSelector(apiRef);
48110
- const newModel = _extends$2({}, currentModel);
48116
+ const newModel = _extends$1({}, currentModel);
48111
48117
  const togglableColumns = getTogglableColumns ? getTogglableColumns(columns) : null;
48112
48118
  (toggleAllMode === "filteredOnly" ? currentColumns : columns).forEach((col) => {
48113
48119
  if (col.hideable && (togglableColumns == null || togglableColumns.includes(col.field))) {
@@ -48150,7 +48156,7 @@ function GridColumnsManagement(props) {
48150
48156
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnsManagementHeader, {
48151
48157
  className: classes2.header,
48152
48158
  ownerState: rootProps,
48153
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(SearchInput, _extends$2({
48159
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(SearchInput, _extends$1({
48154
48160
  as: rootProps.slots.baseTextField,
48155
48161
  ownerState: rootProps,
48156
48162
  placeholder: apiRef.current.getLocaleText("columnsManagementSearchTitle"),
@@ -48165,7 +48171,7 @@ function GridColumnsManagement(props) {
48165
48171
  startAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.quickFilterIcon, {
48166
48172
  fontSize: "small"
48167
48173
  }),
48168
- endAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$2({
48174
+ endAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$1({
48169
48175
  size: "small",
48170
48176
  "aria-label": apiRef.current.getLocaleText("columnsManagementDeleteIconLabel"),
48171
48177
  style: searchValue ? {
@@ -48196,7 +48202,7 @@ function GridColumnsManagement(props) {
48196
48202
  ownerState: rootProps,
48197
48203
  children: [currentColumns.map((column2) => {
48198
48204
  var _a2;
48199
- return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$2({
48205
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$1({
48200
48206
  className: classes2.row,
48201
48207
  disabled: column2.hideable === false,
48202
48208
  checked: columnVisibilityModel[column2.field] !== false,
@@ -48215,7 +48221,7 @@ function GridColumnsManagement(props) {
48215
48221
  }), !disableShowHideToggle || !disableResetButton ? /* @__PURE__ */ jsxRuntimeExports.jsxs(GridColumnsManagementFooter, {
48216
48222
  ownerState: rootProps,
48217
48223
  className: classes2.footer,
48218
- children: [!disableShowHideToggle ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$2({
48224
+ children: [!disableShowHideToggle ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$1({
48219
48225
  disabled: hideableColumns.length === 0,
48220
48226
  checked: allHideableColumnsVisible,
48221
48227
  indeterminate: !allHideableColumnsVisible && !allHideableColumnsHidden,
@@ -48223,7 +48229,7 @@ function GridColumnsManagement(props) {
48223
48229
  name: apiRef.current.getLocaleText("columnsManagementShowHideAllText"),
48224
48230
  label: apiRef.current.getLocaleText("columnsManagementShowHideAllText"),
48225
48231
  density: "compact"
48226
- }, (_c = rootProps.slotProps) == null ? void 0 : _c.baseCheckbox)) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", {}), !disableResetButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$2({
48232
+ }, (_c = rootProps.slotProps) == null ? void 0 : _c.baseCheckbox)) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", {}), !disableResetButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$1({
48227
48233
  onClick: () => apiRef.current.setColumnVisibilityModel(initialColumnVisibilityModel),
48228
48234
  disabled: isResetDisabled
48229
48235
  }, (_d = rootProps.slotProps) == null ? void 0 : _d.baseButton, {
@@ -48356,11 +48362,11 @@ const GridToolbarExportContainer = forwardRef(function GridToolbarExportContaine
48356
48362
  return null;
48357
48363
  }
48358
48364
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
48359
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$2({
48365
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$1({
48360
48366
  title: apiRef.current.getLocaleText("toolbarExportLabel"),
48361
48367
  enterDelay: 1e3
48362
48368
  }, (_a = rootProps.slotProps) == null ? void 0 : _a.baseTooltip, tooltipProps, {
48363
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$2({
48369
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$1({
48364
48370
  size: "small",
48365
48371
  startIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.exportIcon, {}),
48366
48372
  "aria-expanded": open,
@@ -48415,7 +48421,7 @@ function GridCsvExportMenuItem(props) {
48415
48421
  hideMenu,
48416
48422
  options
48417
48423
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$m);
48418
- return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$2({
48424
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$1({
48419
48425
  onClick: () => {
48420
48426
  apiRef.current.exportDataAsCsv(options);
48421
48427
  hideMenu == null ? void 0 : hideMenu();
@@ -48451,7 +48457,7 @@ function GridPrintExportMenuItem(props) {
48451
48457
  hideMenu,
48452
48458
  options
48453
48459
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded2$5);
48454
- return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$2({
48460
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$1({
48455
48461
  onClick: () => {
48456
48462
  apiRef.current.exportDataAsPrint(options);
48457
48463
  hideMenu == null ? void 0 : hideMenu();
@@ -48495,7 +48501,7 @@ const GridToolbarExport = forwardRef(function GridToolbarExport2(props, ref) {
48495
48501
  if (preProcessedButtons.length === 0) {
48496
48502
  return null;
48497
48503
  }
48498
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarExportContainer, _extends$2({}, other, {
48504
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarExportContainer, _extends$1({}, other, {
48499
48505
  ref,
48500
48506
  children: preProcessedButtons.map((button, index) => /* @__PURE__ */ React.cloneElement(button.component, {
48501
48507
  key: index
@@ -48714,7 +48720,7 @@ function QuickFilter(props) {
48714
48720
  ref.current.style.setProperty("--trigger-width", `${(_a = triggerRef.current) == null ? void 0 : _a.offsetWidth}px`);
48715
48721
  }
48716
48722
  }, []);
48717
- const element = useGridComponentRenderer("div", render, _extends$2({
48723
+ const element = useGridComponentRenderer("div", render, _extends$1({
48718
48724
  className: resolvedClassName
48719
48725
  }, other, {
48720
48726
  ref
@@ -48816,9 +48822,9 @@ const QuickFilterControl = forwardRef(function QuickFilterControl2(props, ref) {
48816
48822
  onValueChange(event);
48817
48823
  onChange == null ? void 0 : onChange(event);
48818
48824
  };
48819
- const element = useGridComponentRenderer(rootProps.slots.baseTextField, render, _extends$2({}, (_a = rootProps.slotProps) == null ? void 0 : _a.baseTextField, {
48820
- slotProps: _extends$2({
48821
- htmlInput: _extends$2({
48825
+ const element = useGridComponentRenderer(rootProps.slots.baseTextField, render, _extends$1({}, (_a = rootProps.slotProps) == null ? void 0 : _a.baseTextField, {
48826
+ slotProps: _extends$1({
48827
+ htmlInput: _extends$1({
48822
48828
  role: "searchbox",
48823
48829
  id: controlId,
48824
48830
  tabIndex: state.expanded ? void 0 : -1
@@ -48888,7 +48894,7 @@ const QuickFilterClear = forwardRef(function QuickFilterClear2(props, ref) {
48888
48894
  clearValue();
48889
48895
  onClick == null ? void 0 : onClick(event);
48890
48896
  };
48891
- const element = useGridComponentRenderer(rootProps.slots.baseIconButton, render, _extends$2({}, (_a = rootProps.slotProps) == null ? void 0 : _a.baseIconButton, {
48897
+ const element = useGridComponentRenderer(rootProps.slots.baseIconButton, render, _extends$1({}, (_a = rootProps.slotProps) == null ? void 0 : _a.baseIconButton, {
48892
48898
  className: resolvedClassName,
48893
48899
  tabIndex: -1
48894
48900
  }, other, {
@@ -48945,7 +48951,7 @@ const QuickFilterTrigger = forwardRef(function QuickFilterTrigger2(props, ref) {
48945
48951
  onExpandedChange(!state.expanded);
48946
48952
  onClick == null ? void 0 : onClick(event);
48947
48953
  };
48948
- const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$2({}, (_a = rootProps.slotProps) == null ? void 0 : _a.baseButton, {
48954
+ const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$1({}, (_a = rootProps.slotProps) == null ? void 0 : _a.baseButton, {
48949
48955
  className: resolvedClassName,
48950
48956
  "aria-controls": controlId,
48951
48957
  "aria-expanded": state.expanded
@@ -49047,16 +49053,16 @@ function GridToolbarQuickFilter(props) {
49047
49053
  formatter: quickFilterFormatter,
49048
49054
  debounceMs,
49049
49055
  render: (quickFilterProps, state) => {
49050
- const currentOwnerState = _extends$2({}, ownerState, {
49056
+ const currentOwnerState = _extends$1({}, ownerState, {
49051
49057
  expanded: state.expanded
49052
49058
  });
49053
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridQuickFilterRoot, _extends$2({}, quickFilterProps, {
49059
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridQuickFilterRoot, _extends$1({}, quickFilterProps, {
49054
49060
  className: clsx(classes2.root, className),
49055
49061
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx(QuickFilterTrigger, {
49056
49062
  render: (triggerProps) => /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, {
49057
49063
  title: apiRef.current.getLocaleText("toolbarQuickFilterLabel"),
49058
49064
  enterDelay: 0,
49059
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(GridQuickFilterTrigger, _extends$2({
49065
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(GridQuickFilterTrigger, _extends$1({
49060
49066
  className: classes2.trigger
49061
49067
  }, triggerProps, {
49062
49068
  ownerState: currentOwnerState,
@@ -49074,7 +49080,7 @@ function GridToolbarQuickFilter(props) {
49074
49080
  ref,
49075
49081
  slotProps: controlSlotProps
49076
49082
  } = _ref, controlProps = _objectWithoutPropertiesLoose(_ref, _excluded2$4);
49077
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridQuickFilterTextField, _extends$2({
49083
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridQuickFilterTextField, _extends$1({
49078
49084
  as: rootProps.slots.baseTextField,
49079
49085
  className: classes2.control,
49080
49086
  ownerState: currentOwnerState,
@@ -49082,8 +49088,8 @@ function GridToolbarQuickFilter(props) {
49082
49088
  "aria-label": apiRef.current.getLocaleText("toolbarQuickFilterLabel"),
49083
49089
  placeholder: apiRef.current.getLocaleText("toolbarQuickFilterPlaceholder"),
49084
49090
  size: "small",
49085
- slotProps: _extends$2({
49086
- input: _extends$2({
49091
+ slotProps: _extends$1({
49092
+ input: _extends$1({
49087
49093
  startAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.quickFilterIcon, {
49088
49094
  fontSize: "small"
49089
49095
  }),
@@ -49175,7 +49181,7 @@ const FilterPanelTrigger = forwardRef(function FilterPanelTrigger2(props, ref) {
49175
49181
  }
49176
49182
  onPointerUp == null ? void 0 : onPointerUp(event);
49177
49183
  };
49178
- const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$2({}, (_a = rootProps.slotProps) == null ? void 0 : _a.baseButton, {
49184
+ const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$1({}, (_a = rootProps.slotProps) == null ? void 0 : _a.baseButton, {
49179
49185
  id: buttonId,
49180
49186
  "aria-haspopup": "true",
49181
49187
  "aria-expanded": open ? "true" : void 0,
@@ -49250,7 +49256,7 @@ const ColumnsPanelTrigger = forwardRef(function ColumnsPanelTrigger2(props, ref)
49250
49256
  }
49251
49257
  onPointerUp == null ? void 0 : onPointerUp(event);
49252
49258
  };
49253
- const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$2({}, (_a = rootProps.slotProps) == null ? void 0 : _a.baseButton, {
49259
+ const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$1({}, (_a = rootProps.slotProps) == null ? void 0 : _a.baseButton, {
49254
49260
  id: buttonId,
49255
49261
  "aria-haspopup": "true",
49256
49262
  "aria-expanded": open ? "true" : void 0,
@@ -49302,7 +49308,7 @@ const ExportCsv = forwardRef(function ExportCsv2(props, ref) {
49302
49308
  apiRef.current.exportDataAsCsv(options);
49303
49309
  onClick == null ? void 0 : onClick(event);
49304
49310
  };
49305
- const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$2({}, (_a = rootProps.slotProps) == null ? void 0 : _a.baseButton, {
49311
+ const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$1({}, (_a = rootProps.slotProps) == null ? void 0 : _a.baseButton, {
49306
49312
  onClick: handleClick
49307
49313
  }, other, {
49308
49314
  ref
@@ -49362,7 +49368,7 @@ const ExportPrint = forwardRef(function ExportPrint2(props, ref) {
49362
49368
  apiRef.current.exportDataAsPrint(options);
49363
49369
  onClick == null ? void 0 : onClick(event);
49364
49370
  };
49365
- const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$2({}, (_a = rootProps.slotProps) == null ? void 0 : _a.baseButton, {
49371
+ const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$1({}, (_a = rootProps.slotProps) == null ? void 0 : _a.baseButton, {
49366
49372
  onClick: handleClick
49367
49373
  }, other, {
49368
49374
  ref
@@ -49442,7 +49448,7 @@ function GridToolbarDivider(props) {
49442
49448
  const other = _objectWithoutPropertiesLoose(props, _excluded$c);
49443
49449
  const rootProps = useGridRootProps();
49444
49450
  const classes2 = useUtilityClasses$d(rootProps);
49445
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, _extends$2({
49451
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, _extends$1({
49446
49452
  as: rootProps.slots.baseDivider,
49447
49453
  orientation: "vertical",
49448
49454
  className: classes2.divider
@@ -49460,7 +49466,7 @@ function GridToolbarLabel(props) {
49460
49466
  const other = _objectWithoutPropertiesLoose(props, _excluded2$3);
49461
49467
  const rootProps = useGridRootProps();
49462
49468
  const classes2 = useUtilityClasses$d(rootProps);
49463
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Label, _extends$2({
49469
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Label, _extends$1({
49464
49470
  className: classes2.label
49465
49471
  }, other));
49466
49472
  }
@@ -49495,7 +49501,7 @@ function GridToolbar(props) {
49495
49501
  }), !rootProps.disableColumnFilter && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, {
49496
49502
  title: apiRef.current.getLocaleText("toolbarFilters"),
49497
49503
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(FilterPanelTrigger, {
49498
- render: (triggerProps, state) => /* @__PURE__ */ jsxRuntimeExports.jsx(ToolbarButton, _extends$2({}, triggerProps, {
49504
+ render: (triggerProps, state) => /* @__PURE__ */ jsxRuntimeExports.jsx(ToolbarButton, _extends$1({}, triggerProps, {
49499
49505
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseBadge, {
49500
49506
  badgeContent: state.filterCount,
49501
49507
  color: "primary",
@@ -49525,18 +49531,18 @@ function GridToolbar(props) {
49525
49531
  open: exportMenuOpen,
49526
49532
  onClose: closeExportMenu,
49527
49533
  position: "bottom-end",
49528
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs(rootProps.slots.baseMenuList, _extends$2({
49534
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs(rootProps.slots.baseMenuList, _extends$1({
49529
49535
  id: exportMenuId,
49530
49536
  "aria-labelledby": exportMenuTriggerId,
49531
49537
  autoFocusItem: true
49532
49538
  }, (_a = rootProps.slotProps) == null ? void 0 : _a.baseMenuList, {
49533
49539
  children: [!(printOptions == null ? void 0 : printOptions.disableToolbarButton) && /* @__PURE__ */ jsxRuntimeExports.jsx(ExportPrint, {
49534
- render: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$2({}, (_b = rootProps.slotProps) == null ? void 0 : _b.baseMenuItem)),
49540
+ render: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$1({}, (_b = rootProps.slotProps) == null ? void 0 : _b.baseMenuItem)),
49535
49541
  options: printOptions,
49536
49542
  onClick: closeExportMenu,
49537
49543
  children: apiRef.current.getLocaleText("toolbarExportPrint")
49538
49544
  }), !(csvOptions == null ? void 0 : csvOptions.disableToolbarButton) && /* @__PURE__ */ jsxRuntimeExports.jsx(ExportCsv, {
49539
- render: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$2({}, (_c = rootProps.slotProps) == null ? void 0 : _c.baseMenuItem)),
49545
+ render: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$1({}, (_c = rootProps.slotProps) == null ? void 0 : _c.baseMenuItem)),
49540
49546
  options: csvOptions,
49541
49547
  onClick: closeExportMenu,
49542
49548
  children: apiRef.current.getLocaleText("toolbarExportCSV")
@@ -49544,7 +49550,7 @@ function GridToolbar(props) {
49544
49550
  }))
49545
49551
  })]
49546
49552
  }), showQuickFilter && /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
49547
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarDivider, {}), /* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarQuickFilter, _extends$2({}, quickFilterProps))]
49553
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarDivider, {}), /* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarQuickFilter, _extends$1({}, quickFilterProps))]
49548
49554
  })]
49549
49555
  });
49550
49556
  }
@@ -49614,7 +49620,7 @@ const GridSelectedRowCount = forwardRef(function GridSelectedRowCount2(props, re
49614
49620
  const ownerState = useGridRootProps();
49615
49621
  const classes2 = useUtilityClasses$c(ownerState);
49616
49622
  const rowSelectedText = apiRef.current.getLocaleText("footerRowSelected")(selectedRowCount);
49617
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridSelectedRowCountRoot, _extends$2({
49623
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridSelectedRowCountRoot, _extends$1({
49618
49624
  className: clsx(classes2.root, className),
49619
49625
  ownerState
49620
49626
  }, other, {
@@ -49640,12 +49646,12 @@ const GridFooter = forwardRef(function GridFooter2(props, ref) {
49640
49646
  const selectedRowCountElement = !rootProps.hideFooterSelectedRowCount && selectedRowCount > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(GridSelectedRowCount, {
49641
49647
  selectedRowCount
49642
49648
  }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", {});
49643
- const rowCountElement = !rootProps.hideFooterRowCount && !rootProps.pagination ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.footerRowCount, _extends$2({}, (_a = rootProps.slotProps) == null ? void 0 : _a.footerRowCount, {
49649
+ const rowCountElement = !rootProps.hideFooterRowCount && !rootProps.pagination ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.footerRowCount, _extends$1({}, (_a = rootProps.slotProps) == null ? void 0 : _a.footerRowCount, {
49644
49650
  rowCount: totalTopLevelRowCount,
49645
49651
  visibleRowCount: visibleTopLevelRowCount
49646
49652
  })) : null;
49647
49653
  const paginationElement = rootProps.pagination && !rootProps.hideFooterPagination && rootProps.slots.pagination && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.pagination, {});
49648
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridFooterContainer, _extends$2({}, props, {
49654
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridFooterContainer, _extends$1({}, props, {
49649
49655
  ref,
49650
49656
  children: [selectedRowCountElement, rowCountElement, paginationElement]
49651
49657
  }));
@@ -49805,7 +49811,7 @@ const GridSkeletonLoadingOverlayInner = forwardRef(function GridSkeletonLoadingO
49805
49811
  "data-colindex": colIndex,
49806
49812
  empty: visibleColumns && !visibleColumns.has(column2.field),
49807
49813
  className: clsx(isPinnedLeft && gridClasses["cell--pinnedLeft"], isPinnedRight && gridClasses["cell--pinnedRight"], showRightBorder && gridClasses["cell--withRightBorder"], showLeftBorder && gridClasses["cell--withLeftBorder"]),
49808
- style: _extends$2({
49814
+ style: _extends$1({
49809
49815
  "--width": `${column2.computedWidth}px`
49810
49816
  }, pinnedStyle)
49811
49817
  }, `skeleton-column-${i}-${column2.field}`));
@@ -49866,7 +49872,7 @@ const GridSkeletonLoadingOverlayInner = forwardRef(function GridSkeletonLoadingO
49866
49872
  }
49867
49873
  };
49868
49874
  useGridEvent(apiRef, "columnResize", handleColumnResize);
49869
- return /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonOverlay, _extends$2({
49875
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonOverlay, _extends$1({
49870
49876
  className: classes2.root
49871
49877
  }, rest, {
49872
49878
  ref: handleRef,
@@ -49878,7 +49884,7 @@ const GridSkeletonLoadingOverlay = forwardRef(function GridSkeletonLoadingOverla
49878
49884
  const dimensions = useGridSelector(apiRef, gridDimensionsSelector);
49879
49885
  const viewportHeight = (dimensions == null ? void 0 : dimensions.viewportInnerSize.height) ?? 0;
49880
49886
  const skeletonRowsCount = Math.ceil(viewportHeight / dimensions.rowHeight);
49881
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridSkeletonLoadingOverlayInner, _extends$2({}, props, {
49887
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridSkeletonLoadingOverlayInner, _extends$1({}, props, {
49882
49888
  skeletonRowsCount,
49883
49889
  ref: forwardedRef
49884
49890
  }));
@@ -49913,8 +49919,8 @@ const GridLoadingOverlay = forwardRef(function GridLoadingOverlay2(props, ref) {
49913
49919
  const rowsCount = useGridSelector(apiRef, gridRowCountSelector);
49914
49920
  const activeVariant = LOADING_VARIANTS[rowsCount === 0 ? noRowsVariant : variant];
49915
49921
  const Component = activeVariant.component(rootProps);
49916
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$2({
49917
- style: _extends$2({}, activeVariant.style, style2)
49922
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$1({
49923
+ style: _extends$1({}, activeVariant.style, style2)
49918
49924
  }, other, {
49919
49925
  ref,
49920
49926
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(Component, {})
@@ -49940,7 +49946,7 @@ GridLoadingOverlay.propTypes = {
49940
49946
  const GridNoRowsOverlay = forwardRef(function GridNoRowsOverlay2(props, ref) {
49941
49947
  const apiRef = useGridApiContext();
49942
49948
  const noRowsLabel = apiRef.current.getLocaleText("noRowsLabel");
49943
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$2({}, props, {
49949
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$1({}, props, {
49944
49950
  ref,
49945
49951
  children: noRowsLabel
49946
49952
  }));
@@ -49961,9 +49967,9 @@ const GridNoColumnsOverlay = forwardRef(function GridNoColumnsOverlay2(props, re
49961
49967
  apiRef.current.showPreferences(GridPreferencePanelsValue.columns);
49962
49968
  };
49963
49969
  const showManageColumnsButton = !rootProps.disableColumnSelector && columns.length > 0;
49964
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridOverlay, _extends$2({}, props, {
49970
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridOverlay, _extends$1({}, props, {
49965
49971
  ref,
49966
- children: [apiRef.current.getLocaleText("noColumnsOverlayLabel"), showManageColumnsButton && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$2({
49972
+ children: [apiRef.current.getLocaleText("noColumnsOverlayLabel"), showManageColumnsButton && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$1({
49967
49973
  size: "small"
49968
49974
  }, (_a = rootProps.slotProps) == null ? void 0 : _a.baseButton, {
49969
49975
  onClick: handleOpenManageColumns,
@@ -50080,7 +50086,7 @@ const GridRowCount = forwardRef(function GridRowCount2(props, ref) {
50080
50086
  return null;
50081
50087
  }
50082
50088
  const text = visibleRowCount < rowCount ? apiRef.current.getLocaleText("footerTotalVisibleRows")(visibleRowCount, rowCount) : rowCount.toLocaleString();
50083
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridRowCountRoot, _extends$2({
50089
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridRowCountRoot, _extends$1({
50084
50090
  className: clsx(classes2.root, className),
50085
50091
  ownerState
50086
50092
  }, other, {
@@ -50214,7 +50220,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
50214
50220
  slotProps,
50215
50221
  disableColumnReorder
50216
50222
  } = rootProps;
50217
- const heightEntry = useGridSelector(apiRef, () => _extends$2({}, apiRef.current.getRowHeightEntry(rowId)), void 0, objectShallowCompare);
50223
+ const heightEntry = useGridSelector(apiRef, () => _extends$1({}, apiRef.current.getRowHeightEntry(rowId)), void 0, objectShallowCompare);
50218
50224
  const style2 = React.useMemo(() => {
50219
50225
  if (isNotVisible) {
50220
50226
  return {
@@ -50223,7 +50229,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
50223
50229
  height: 0
50224
50230
  };
50225
50231
  }
50226
- const rowStyle = _extends$2({}, styleProp, {
50232
+ const rowStyle = _extends$1({}, styleProp, {
50227
50233
  maxHeight: rowHeight === "auto" ? "none" : rowHeight,
50228
50234
  // max-height doesn't support "auto"
50229
50235
  minHeight: rowHeight,
@@ -50248,7 +50254,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
50248
50254
  const ariaAttributes = getRowAriaAttributes(rowNode, index);
50249
50255
  if (typeof rootProps.getRowClassName === "function") {
50250
50256
  const indexRelativeToCurrentPage = index - (((_a = currentPage.range) == null ? void 0 : _a.firstRowIndex) || 0);
50251
- const rowParams = _extends$2({}, apiRef.current.getRowParams(rowId), {
50257
+ const rowParams = _extends$1({}, apiRef.current.getRowParams(rowId), {
50252
50258
  isFirstVisible: indexRelativeToCurrentPage === 0,
50253
50259
  isLastVisible: indexRelativeToCurrentPage === currentPage.rows.length - 1,
50254
50260
  indexRelativeToCurrentPage
@@ -50279,7 +50285,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
50279
50285
  const cellIsNotVisible = pinnedPosition === PinnedColumnPosition.VIRTUAL;
50280
50286
  const showLeftBorder = shouldCellShowLeftBorder(pinnedPosition, indexInSection);
50281
50287
  const showRightBorder = shouldCellShowRightBorder(pinnedPosition, indexInSection, sectionLength, rootProps.showCellVerticalBorder, gridHasFiller);
50282
- return /* @__PURE__ */ jsxRuntimeExports.jsx(slots.cell, _extends$2({
50288
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(slots.cell, _extends$1({
50283
50289
  column: column2,
50284
50290
  width: width2,
50285
50291
  rowId,
@@ -50328,7 +50334,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
50328
50334
  onMouseOut: publish("rowMouseOut", onMouseOut),
50329
50335
  onMouseOver: publish("rowMouseOver", onMouseOver)
50330
50336
  } : null;
50331
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$2({
50337
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$1({
50332
50338
  "data-id": rowId,
50333
50339
  "data-rowindex": index,
50334
50340
  role: "row",
@@ -50473,7 +50479,7 @@ const useGridIsRtl = (apiRef) => {
50473
50479
  if (isFirstEffect.current) {
50474
50480
  isFirstEffect.current = false;
50475
50481
  } else {
50476
- apiRef.current.setState((state) => _extends$2({}, state, {
50482
+ apiRef.current.setState((state) => _extends$1({}, state, {
50477
50483
  isRtl
50478
50484
  }));
50479
50485
  }
@@ -51028,7 +51034,7 @@ const useGridStateInitialization = (apiRef) => {
51028
51034
  }, [apiRef]);
51029
51035
  const updateControlState = React.useCallback((key, state, reason) => {
51030
51036
  return apiRef.current.setState((previousState) => {
51031
- return _extends$2({}, previousState, {
51037
+ return _extends$1({}, previousState, {
51032
51038
  [key]: state(previousState[key])
51033
51039
  });
51034
51040
  }, reason);
@@ -51044,7 +51050,7 @@ const useGridStateInitialization = (apiRef) => {
51044
51050
  useGridApiMethod(apiRef, privateStateApi, "private");
51045
51051
  };
51046
51052
  const propsStateInitializer = (state, props) => {
51047
- return _extends$2({}, state, {
51053
+ return _extends$1({}, state, {
51048
51054
  props: {
51049
51055
  getRowId: props.getRowId
51050
51056
  }
@@ -51052,7 +51058,7 @@ const propsStateInitializer = (state, props) => {
51052
51058
  };
51053
51059
  const useGridProps = (apiRef, props) => {
51054
51060
  React.useEffect(() => {
51055
- apiRef.current.setState((state) => _extends$2({}, state, {
51061
+ apiRef.current.setState((state) => _extends$1({}, state, {
51056
51062
  props: {
51057
51063
  getRowId: props.getRowId
51058
51064
  }
@@ -51304,7 +51310,7 @@ const useGridClipboard = (apiRef, props) => {
51304
51310
  useGridNativeEventListener(apiRef, () => apiRef.current.rootElementRef.current, "keydown", handleCopy);
51305
51311
  useGridEventPriority(apiRef, "clipboardCopy", props.onClipboardCopy);
51306
51312
  };
51307
- const columnMenuStateInitializer = (state) => _extends$2({}, state, {
51313
+ const columnMenuStateInitializer = (state) => _extends$1({}, state, {
51308
51314
  columnMenu: {
51309
51315
  open: false
51310
51316
  }
@@ -51324,7 +51330,7 @@ const useGridColumnMenu = (apiRef) => {
51324
51330
  return state;
51325
51331
  }
51326
51332
  logger.debug("Opening Column Menu");
51327
- return _extends$2({}, state, {
51333
+ return _extends$1({}, state, {
51328
51334
  columnMenu: {
51329
51335
  open: true,
51330
51336
  field
@@ -51364,7 +51370,7 @@ const useGridColumnMenu = (apiRef) => {
51364
51370
  if (shouldUpdate) {
51365
51371
  apiRef.current.setState((state) => {
51366
51372
  logger.debug("Hiding Column Menu");
51367
- return _extends$2({}, state, {
51373
+ return _extends$1({}, state, {
51368
51374
  columnMenu: newState
51369
51375
  });
51370
51376
  });
@@ -51398,7 +51404,7 @@ const columnsStateInitializer = (state, props, apiRef) => {
51398
51404
  columnVisibilityModel: props.columnVisibilityModel ?? ((_c = (_b = props.initialState) == null ? void 0 : _b.columns) == null ? void 0 : _c.columnVisibilityModel) ?? {},
51399
51405
  keepOnlyColumnsToUpsert: true
51400
51406
  });
51401
- return _extends$2({}, state, {
51407
+ return _extends$1({}, state, {
51402
51408
  columns: columnsState,
51403
51409
  // In pro/premium, this part of the state is defined. We give it an empty but defined value
51404
51410
  // for the community version.
@@ -51436,7 +51442,7 @@ function useGridColumns(apiRef, props) {
51436
51442
  var _a2, _b2;
51437
51443
  const currentModel = gridColumnVisibilityModelSelector(apiRef);
51438
51444
  if (currentModel !== model) {
51439
- apiRef.current.setState((state) => _extends$2({}, state, {
51445
+ apiRef.current.setState((state) => _extends$1({}, state, {
51440
51446
  columns: createColumnsState({
51441
51447
  apiRef,
51442
51448
  columnsToUpsert: [],
@@ -51462,7 +51468,7 @@ function useGridColumns(apiRef, props) {
51462
51468
  const columnVisibilityModel = gridColumnVisibilityModelSelector(apiRef);
51463
51469
  const isCurrentlyVisible = columnVisibilityModel[field] ?? true;
51464
51470
  if (isVisible !== isCurrentlyVisible) {
51465
- const newModel = _extends$2({}, columnVisibilityModel, {
51471
+ const newModel = _extends$1({}, columnVisibilityModel, {
51466
51472
  [field]: isVisible
51467
51473
  });
51468
51474
  apiRef.current.setColumnVisibilityModel(newModel);
@@ -51482,7 +51488,7 @@ function useGridColumns(apiRef, props) {
51482
51488
  const updatedColumns = [...allColumns];
51483
51489
  const fieldRemoved = updatedColumns.splice(oldIndexPosition, 1)[0];
51484
51490
  updatedColumns.splice(targetIndexPosition, 0, fieldRemoved);
51485
- setGridColumnsState(_extends$2({}, gridColumnsStateSelector(apiRef), {
51491
+ setGridColumnsState(_extends$1({}, gridColumnsStateSelector(apiRef), {
51486
51492
  orderedFields: updatedColumns
51487
51493
  }));
51488
51494
  const params = {
@@ -51496,12 +51502,12 @@ function useGridColumns(apiRef, props) {
51496
51502
  logger.debug(`Updating column ${field} width to ${width2}`);
51497
51503
  const columnsState = gridColumnsStateSelector(apiRef);
51498
51504
  const column2 = columnsState.lookup[field];
51499
- const newColumn = _extends$2({}, column2, {
51505
+ const newColumn = _extends$1({}, column2, {
51500
51506
  width: width2,
51501
51507
  hasBeenResized: true
51502
51508
  });
51503
- setGridColumnsState(hydrateColumnsWidth(_extends$2({}, columnsState, {
51504
- lookup: _extends$2({}, columnsState.lookup, {
51509
+ setGridColumnsState(hydrateColumnsWidth(_extends$1({}, columnsState, {
51510
+ lookup: _extends$1({}, columnsState.lookup, {
51505
51511
  [field]: newColumn
51506
51512
  })
51507
51513
  }), apiRef.current.getRootDimensions()));
@@ -51562,7 +51568,7 @@ function useGridColumns(apiRef, props) {
51562
51568
  if (Object.keys(dimensions).length > 0) {
51563
51569
  columnsStateToExport.dimensions = dimensions;
51564
51570
  }
51565
- return _extends$2({}, prevState, {
51571
+ return _extends$1({}, prevState, {
51566
51572
  columns: columnsStateToExport
51567
51573
  });
51568
51574
  }, [apiRef, props.columnVisibilityModel, (_a = props.initialState) == null ? void 0 : _a.columns]);
@@ -51590,7 +51596,7 @@ function useGridColumns(apiRef, props) {
51590
51596
  var _a2;
51591
51597
  if (value === GridPreferencePanelsValue.columns) {
51592
51598
  const ColumnsPanel = props.slots.columnsPanel;
51593
- return /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnsPanel, _extends$2({}, (_a2 = props.slotProps) == null ? void 0 : _a2.columnsPanel));
51599
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnsPanel, _extends$1({}, (_a2 = props.slotProps) == null ? void 0 : _a2.columnsPanel));
51594
51600
  }
51595
51601
  return initialValue;
51596
51602
  }, [props.slots.columnsPanel, (_b = props.slotProps) == null ? void 0 : _b.columnsPanel]);
@@ -51655,13 +51661,13 @@ function useGridColumns(apiRef, props) {
51655
51661
  }, [apiRef, logger, props.columnVisibilityModel]);
51656
51662
  }
51657
51663
  function mergeColumnsState(columnsState) {
51658
- return (state) => _extends$2({}, state, {
51664
+ return (state) => _extends$1({}, state, {
51659
51665
  columns: columnsState
51660
51666
  });
51661
51667
  }
51662
51668
  const densityStateInitializer = (state, props) => {
51663
51669
  var _a;
51664
- return _extends$2({}, state, {
51670
+ return _extends$1({}, state, {
51665
51671
  density: ((_a = props.initialState) == null ? void 0 : _a.density) ?? props.density ?? "standard"
51666
51672
  });
51667
51673
  };
@@ -51681,7 +51687,7 @@ const useGridDensity = (apiRef, props) => {
51681
51687
  return;
51682
51688
  }
51683
51689
  logger.debug(`Set grid density to ${newDensity}`);
51684
- apiRef.current.setState((state) => _extends$2({}, state, {
51690
+ apiRef.current.setState((state) => _extends$1({}, state, {
51685
51691
  density: newDensity
51686
51692
  }));
51687
51693
  });
@@ -51701,14 +51707,14 @@ const useGridDensity = (apiRef, props) => {
51701
51707
  if (!shouldExportRowCount) {
51702
51708
  return prevState;
51703
51709
  }
51704
- return _extends$2({}, prevState, {
51710
+ return _extends$1({}, prevState, {
51705
51711
  density: exportedDensity
51706
51712
  });
51707
51713
  }, [apiRef, props.density, (_a = props.initialState) == null ? void 0 : _a.density]);
51708
51714
  const stateRestorePreProcessing = React.useCallback((params, context) => {
51709
51715
  var _a2;
51710
51716
  const restoredDensity = ((_a2 = context.stateToRestore) == null ? void 0 : _a2.density) ? context.stateToRestore.density : gridDensitySelector(apiRef);
51711
- apiRef.current.setState((state) => _extends$2({}, state, {
51717
+ apiRef.current.setState((state) => _extends$1({}, state, {
51712
51718
  density: restoredDensity
51713
51719
  }));
51714
51720
  return params;
@@ -51838,7 +51844,7 @@ const getDerivedPaginationModel = (paginationState, signature, paginationModelPr
51838
51844
  }
51839
51845
  const validPage = pageSize2 === -1 ? 0 : getValidPage(paginationModel.page, pageCount);
51840
51846
  if (validPage !== paginationModel.page) {
51841
- paginationModel = _extends$2({}, paginationModel, {
51847
+ paginationModel = _extends$1({}, paginationModel, {
51842
51848
  page: validPage
51843
51849
  });
51844
51850
  }
@@ -51886,8 +51892,8 @@ const useGridPaginationModel = (apiRef, props) => {
51886
51892
  return;
51887
51893
  }
51888
51894
  logger.debug("Setting 'paginationModel' to", paginationModel);
51889
- apiRef.current.setState((state) => _extends$2({}, state, {
51890
- pagination: _extends$2({}, state.pagination, {
51895
+ apiRef.current.setState((state) => _extends$1({}, state, {
51896
+ pagination: _extends$1({}, state.pagination, {
51891
51897
  paginationModel: getDerivedPaginationModel(state.pagination, props.signature, paginationModel)
51892
51898
  })
51893
51899
  }), "setPaginationModel");
@@ -51911,17 +51917,17 @@ const useGridPaginationModel = (apiRef, props) => {
51911
51917
  if (!shouldExportPaginationModel) {
51912
51918
  return prevState;
51913
51919
  }
51914
- return _extends$2({}, prevState, {
51915
- pagination: _extends$2({}, prevState.pagination, {
51920
+ return _extends$1({}, prevState, {
51921
+ pagination: _extends$1({}, prevState.pagination, {
51916
51922
  paginationModel
51917
51923
  })
51918
51924
  });
51919
51925
  }, [apiRef, props.paginationModel, (_b = (_a = props.initialState) == null ? void 0 : _a.pagination) == null ? void 0 : _b.paginationModel, props.autoPageSize]);
51920
51926
  const stateRestorePreProcessing = React.useCallback((params, context) => {
51921
51927
  var _a2, _b2;
51922
- const paginationModel = ((_a2 = context.stateToRestore.pagination) == null ? void 0 : _a2.paginationModel) ? _extends$2({}, getDefaultGridPaginationModel(props.autoPageSize), (_b2 = context.stateToRestore.pagination) == null ? void 0 : _b2.paginationModel) : gridPaginationModelSelector(apiRef);
51923
- apiRef.current.setState((state) => _extends$2({}, state, {
51924
- pagination: _extends$2({}, state.pagination, {
51928
+ const paginationModel = ((_a2 = context.stateToRestore.pagination) == null ? void 0 : _a2.paginationModel) ? _extends$1({}, getDefaultGridPaginationModel(props.autoPageSize), (_b2 = context.stateToRestore.pagination) == null ? void 0 : _b2.paginationModel) : gridPaginationModelSelector(apiRef);
51929
+ apiRef.current.setState((state) => _extends$1({}, state, {
51930
+ pagination: _extends$1({}, state.pagination, {
51925
51931
  paginationModel: getDerivedPaginationModel(state.pagination, props.signature, paginationModel)
51926
51932
  })
51927
51933
  }), "stateRestorePreProcessing");
@@ -51972,7 +51978,7 @@ const useGridPaginationModel = (apiRef, props) => {
51972
51978
  }
51973
51979
  }, [apiRef]);
51974
51980
  const handleFilterModelChange = React.useCallback((filterModel) => {
51975
- const currentActiveFilters = _extends$2({}, filterModel, {
51981
+ const currentActiveFilters = _extends$1({}, filterModel, {
51976
51982
  // replace items with the active items
51977
51983
  items: gridFilterActiveItemsSelector(apiRef)
51978
51984
  });
@@ -51996,8 +52002,8 @@ const useGridPaginationModel = (apiRef, props) => {
51996
52002
  if (!props.pagination) {
51997
52003
  return;
51998
52004
  }
51999
- apiRef.current.setState((state) => _extends$2({}, state, {
52000
- pagination: _extends$2({}, state.pagination, {
52005
+ apiRef.current.setState((state) => _extends$1({}, state, {
52006
+ pagination: _extends$1({}, state.pagination, {
52001
52007
  paginationModel: getDerivedPaginationModel(state.pagination, props.signature, props.paginationModel)
52002
52008
  })
52003
52009
  }));
@@ -52008,8 +52014,8 @@ const useGridPaginationModel = (apiRef, props) => {
52008
52014
  if (state.pagination.paginationMode === props.paginationMode || state.pagination.enabled === isEnabled) {
52009
52015
  return state;
52010
52016
  }
52011
- return _extends$2({}, state, {
52012
- pagination: _extends$2({}, state.pagination, {
52017
+ return _extends$1({}, state, {
52018
+ pagination: _extends$1({}, state.pagination, {
52013
52019
  paginationMode: props.paginationMode,
52014
52020
  enabled: props.pagination === true
52015
52021
  })
@@ -52078,7 +52084,7 @@ const useGridPrintExport = (apiRef, props) => {
52078
52084
  }, [apiRef]);
52079
52085
  const handlePrintWindowLoad = React.useCallback((printWindow, options) => {
52080
52086
  var _a, _b, _c;
52081
- const normalizeOptions = _extends$2({
52087
+ const normalizeOptions = _extends$1({
52082
52088
  copyStyles: true,
52083
52089
  hideToolbar: false,
52084
52090
  hideFooter: false,
@@ -52175,7 +52181,7 @@ const useGridPrintExport = (apiRef, props) => {
52175
52181
  if (!((_b = (_a = previousGridState.current) == null ? void 0 : _a.columns) == null ? void 0 : _b.columnVisibilityModel)) {
52176
52182
  apiRef.current.setColumnVisibilityModel(previousColumnVisibility.current);
52177
52183
  }
52178
- apiRef.current.setState((state) => _extends$2({}, state, {
52184
+ apiRef.current.setState((state) => _extends$1({}, state, {
52179
52185
  virtualization: previousVirtualizationState.current
52180
52186
  }));
52181
52187
  apiRef.current.setRows(previousRows.current);
@@ -52197,8 +52203,8 @@ const useGridPrintExport = (apiRef, props) => {
52197
52203
  page: 0,
52198
52204
  pageSize: visibleRowCount
52199
52205
  };
52200
- apiRef.current.setState((state) => _extends$2({}, state, {
52201
- pagination: _extends$2({}, state.pagination, {
52206
+ apiRef.current.setState((state) => _extends$1({}, state, {
52207
+ pagination: _extends$1({}, state.pagination, {
52202
52208
  paginationModel: getDerivedPaginationModel(
52203
52209
  state.pagination,
52204
52210
  // Using signature `DataGridPro` to allow more than 100 rows in the print export
@@ -52209,8 +52215,8 @@ const useGridPrintExport = (apiRef, props) => {
52209
52215
  }));
52210
52216
  }
52211
52217
  previousVirtualizationState.current = apiRef.current.state.virtualization;
52212
- apiRef.current.setState((state) => _extends$2({}, state, {
52213
- virtualization: _extends$2({}, state.virtualization, {
52218
+ apiRef.current.setState((state) => _extends$1({}, state, {
52219
+ virtualization: _extends$1({}, state.virtualization, {
52214
52220
  enabled: false,
52215
52221
  enabledForColumns: false
52216
52222
  })
@@ -52254,8 +52260,8 @@ const useGridPrintExport = (apiRef, props) => {
52254
52260
  const filterStateInitializer = (state, props, apiRef) => {
52255
52261
  var _a, _b;
52256
52262
  const filterModel = props.filterModel ?? ((_b = (_a = props.initialState) == null ? void 0 : _a.filter) == null ? void 0 : _b.filterModel) ?? getDefaultGridFilterModel();
52257
- return _extends$2({}, state, {
52258
- filter: _extends$2({
52263
+ return _extends$1({}, state, {
52264
+ filter: _extends$1({
52259
52265
  filterModel: sanitizeFilterModel(filterModel, props.disableMultipleColumnsFiltering, apiRef)
52260
52266
  }, defaultGridFilterLookup),
52261
52267
  visibleRowsLookup: {}
@@ -52287,11 +52293,11 @@ const useGridFilter = (apiRef, props) => {
52287
52293
  apiRef.current.setState((state) => {
52288
52294
  const filterModel = gridFilterModelSelector(apiRef);
52289
52295
  const filterState = apiRef.current.getFilterState(filterModel);
52290
- const newState = _extends$2({}, state, {
52291
- filter: _extends$2({}, state.filter, filterState)
52296
+ const newState = _extends$1({}, state, {
52297
+ filter: _extends$1({}, state.filter, filterState)
52292
52298
  });
52293
52299
  const visibleRowsLookupState = getVisibleRowsLookupState(apiRef, newState);
52294
- return _extends$2({}, newState, {
52300
+ return _extends$1({}, newState, {
52295
52301
  visibleRowsLookup: visibleRowsLookupState
52296
52302
  });
52297
52303
  });
@@ -52312,7 +52318,7 @@ const useGridFilter = (apiRef, props) => {
52312
52318
  } else {
52313
52319
  items[itemIndex] = item;
52314
52320
  }
52315
- apiRef.current.setFilterModel(_extends$2({}, filterModel, {
52321
+ apiRef.current.setFilterModel(_extends$1({}, filterModel, {
52316
52322
  items
52317
52323
  }), "upsertFilterItem");
52318
52324
  }, [apiRef]);
@@ -52327,7 +52333,7 @@ const useGridFilter = (apiRef, props) => {
52327
52333
  existingItems[itemIndex] = item;
52328
52334
  }
52329
52335
  });
52330
- apiRef.current.setFilterModel(_extends$2({}, filterModel, {
52336
+ apiRef.current.setFilterModel(_extends$1({}, filterModel, {
52331
52337
  items: existingItems
52332
52338
  }), "upsertFilterItems");
52333
52339
  }, [apiRef]);
@@ -52337,7 +52343,7 @@ const useGridFilter = (apiRef, props) => {
52337
52343
  if (items.length === filterModel.items.length) {
52338
52344
  return;
52339
52345
  }
52340
- apiRef.current.setFilterModel(_extends$2({}, filterModel, {
52346
+ apiRef.current.setFilterModel(_extends$1({}, filterModel, {
52341
52347
  items
52342
52348
  }), "deleteFilterItem");
52343
52349
  }, [apiRef]);
@@ -52377,7 +52383,7 @@ const useGridFilter = (apiRef, props) => {
52377
52383
  operator: targetColumn.filterOperators[0].value
52378
52384
  }, apiRef)];
52379
52385
  }
52380
- apiRef.current.setFilterModel(_extends$2({}, filterModel, {
52386
+ apiRef.current.setFilterModel(_extends$1({}, filterModel, {
52381
52387
  items: newFilterItems
52382
52388
  }));
52383
52389
  }
@@ -52392,7 +52398,7 @@ const useGridFilter = (apiRef, props) => {
52392
52398
  if (filterModel.logicOperator === logicOperator) {
52393
52399
  return;
52394
52400
  }
52395
- apiRef.current.setFilterModel(_extends$2({}, filterModel, {
52401
+ apiRef.current.setFilterModel(_extends$1({}, filterModel, {
52396
52402
  logicOperator
52397
52403
  }), "changeLogicOperator");
52398
52404
  }, [apiRef]);
@@ -52401,7 +52407,7 @@ const useGridFilter = (apiRef, props) => {
52401
52407
  if (isDeepEqual(filterModel.quickFilterValues, values2)) {
52402
52408
  return;
52403
52409
  }
52404
- apiRef.current.setFilterModel(_extends$2({}, filterModel, {
52410
+ apiRef.current.setFilterModel(_extends$1({}, filterModel, {
52405
52411
  quickFilterValues: [...values2]
52406
52412
  }));
52407
52413
  }, [apiRef]);
@@ -52420,7 +52426,7 @@ const useGridFilter = (apiRef, props) => {
52420
52426
  isRowMatchingFilters,
52421
52427
  filterModel: filterModel ?? getDefaultGridFilterModel()
52422
52428
  });
52423
- return _extends$2({}, filterResult, {
52429
+ return _extends$1({}, filterResult, {
52424
52430
  filterModel
52425
52431
  });
52426
52432
  }, [props.disableMultipleColumnsFiltering, props.filterMode, props.disableEval, apiRef]);
@@ -52454,7 +52460,7 @@ const useGridFilter = (apiRef, props) => {
52454
52460
  if (!shouldExportFilterModel) {
52455
52461
  return prevState;
52456
52462
  }
52457
- return _extends$2({}, prevState, {
52463
+ return _extends$1({}, prevState, {
52458
52464
  filter: {
52459
52465
  filterModel: filterModelToExport
52460
52466
  }
@@ -52467,7 +52473,7 @@ const useGridFilter = (apiRef, props) => {
52467
52473
  return params;
52468
52474
  }
52469
52475
  apiRef.current.updateControlState("filter", mergeStateWithFilterModel(filterModel, props.disableMultipleColumnsFiltering, apiRef), "restoreState");
52470
- return _extends$2({}, params, {
52476
+ return _extends$1({}, params, {
52471
52477
  callbacks: [...params.callbacks, apiRef.current.unstable_applyFilters]
52472
52478
  });
52473
52479
  }, [apiRef, props.disableMultipleColumnsFiltering]);
@@ -52475,7 +52481,7 @@ const useGridFilter = (apiRef, props) => {
52475
52481
  var _a2;
52476
52482
  if (value === GridPreferencePanelsValue.filters) {
52477
52483
  const FilterPanel = props.slots.filterPanel;
52478
- return /* @__PURE__ */ jsxRuntimeExports.jsx(FilterPanel, _extends$2({}, (_a2 = props.slotProps) == null ? void 0 : _a2.filterPanel));
52484
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(FilterPanel, _extends$1({}, (_a2 = props.slotProps) == null ? void 0 : _a2.filterPanel));
52479
52485
  }
52480
52486
  return initialValue;
52481
52487
  }, [props.slots.filterPanel, (_c = props.slotProps) == null ? void 0 : _c.filterPanel]);
@@ -52531,7 +52537,7 @@ const useGridFilter = (apiRef, props) => {
52531
52537
  const columnsLookup = gridColumnLookupSelector(apiRef);
52532
52538
  const newFilterItems = filterModel.items.filter((item) => item.field && columnsLookup[item.field]);
52533
52539
  if (newFilterItems.length < filterModel.items.length) {
52534
- apiRef.current.setFilterModel(_extends$2({}, filterModel, {
52540
+ apiRef.current.setFilterModel(_extends$1({}, filterModel, {
52535
52541
  items: newFilterItems
52536
52542
  }));
52537
52543
  }
@@ -52543,7 +52549,7 @@ const useGridFilter = (apiRef, props) => {
52543
52549
  }, [apiRef]);
52544
52550
  const updateVisibleRowsLookupState = React.useCallback(() => {
52545
52551
  apiRef.current.setState((state) => {
52546
- return _extends$2({}, state, {
52552
+ return _extends$1({}, state, {
52547
52553
  visibleRowsLookup: getVisibleRowsLookupState(apiRef, state)
52548
52554
  });
52549
52555
  });
@@ -52567,7 +52573,7 @@ const useGridFilter = (apiRef, props) => {
52567
52573
  }
52568
52574
  }, [apiRef, logger, props.filterModel]);
52569
52575
  };
52570
- const focusStateInitializer = (state) => _extends$2({}, state, {
52576
+ const focusStateInitializer = (state) => _extends$1({}, state, {
52571
52577
  focus: {
52572
52578
  cell: null,
52573
52579
  columnHeader: null,
@@ -52599,7 +52605,7 @@ const useGridFocus = (apiRef, props) => {
52599
52605
  }
52600
52606
  apiRef.current.setState((state) => {
52601
52607
  logger.debug(`Focusing on cell with id=${id} and field=${field}`);
52602
- return _extends$2({}, state, {
52608
+ return _extends$1({}, state, {
52603
52609
  tabIndex: {
52604
52610
  cell: {
52605
52611
  id,
@@ -52633,7 +52639,7 @@ const useGridFocus = (apiRef, props) => {
52633
52639
  publishCellFocusOut(cell, event);
52634
52640
  apiRef.current.setState((state) => {
52635
52641
  logger.debug(`Focusing on column header with colIndex=${field}`);
52636
- return _extends$2({}, state, {
52642
+ return _extends$1({}, state, {
52637
52643
  tabIndex: {
52638
52644
  columnHeader: {
52639
52645
  field
@@ -52658,7 +52664,7 @@ const useGridFocus = (apiRef, props) => {
52658
52664
  publishCellFocusOut(cell, event);
52659
52665
  apiRef.current.setState((state) => {
52660
52666
  logger.debug(`Focusing on column header filter with colIndex=${field}`);
52661
- return _extends$2({}, state, {
52667
+ return _extends$1({}, state, {
52662
52668
  tabIndex: {
52663
52669
  columnHeader: null,
52664
52670
  columnHeaderFilter: {
@@ -52684,7 +52690,7 @@ const useGridFocus = (apiRef, props) => {
52684
52690
  apiRef.current.publishEvent("cellFocusOut", apiRef.current.getCellParams(cell.id, cell.field), event);
52685
52691
  }
52686
52692
  apiRef.current.setState((state) => {
52687
- return _extends$2({}, state, {
52693
+ return _extends$1({}, state, {
52688
52694
  tabIndex: {
52689
52695
  columnGroupHeader: {
52690
52696
  field,
@@ -52791,7 +52797,7 @@ const useGridFocus = (apiRef, props) => {
52791
52797
  return;
52792
52798
  }
52793
52799
  logger.debug(`Clearing focus`);
52794
- apiRef.current.setState((state) => _extends$2({}, state, {
52800
+ apiRef.current.setState((state) => _extends$1({}, state, {
52795
52801
  focus: {
52796
52802
  cell: null,
52797
52803
  columnHeader: null,
@@ -52830,7 +52836,7 @@ const useGridFocus = (apiRef, props) => {
52830
52836
  if (cellParams) {
52831
52837
  apiRef.current.setCellFocus(cellParams.id, cellParams.field);
52832
52838
  } else {
52833
- apiRef.current.setState((state) => _extends$2({}, state, {
52839
+ apiRef.current.setState((state) => _extends$1({}, state, {
52834
52840
  focus: {
52835
52841
  cell: null,
52836
52842
  columnHeader: null,
@@ -52865,7 +52871,7 @@ const useGridFocus = (apiRef, props) => {
52865
52871
  const nextRow = currentPage.rows[clamp(lastFocusedRowIndex, 0, currentPage.rows.length - 1)];
52866
52872
  nextRowId = (nextRow == null ? void 0 : nextRow.id) ?? null;
52867
52873
  }
52868
- apiRef.current.setState((state) => _extends$2({}, state, {
52874
+ apiRef.current.setState((state) => _extends$1({}, state, {
52869
52875
  focus: {
52870
52876
  cell: nextRowId === null ? null : {
52871
52877
  id: nextRowId,
@@ -52893,7 +52899,7 @@ const useGridFocus = (apiRef, props) => {
52893
52899
  }
52894
52900
  const visibleColumns = gridVisibleColumnDefinitionsSelector(apiRef);
52895
52901
  apiRef.current.setState((state) => {
52896
- return _extends$2({}, state, {
52902
+ return _extends$1({}, state, {
52897
52903
  tabIndex: {
52898
52904
  cell: {
52899
52905
  id: currentPage.rows[0].id,
@@ -53451,8 +53457,8 @@ const useGridRowCount = (apiRef, props) => {
53451
53457
  return;
53452
53458
  }
53453
53459
  logger.debug("Setting 'rowCount' to", newRowCount);
53454
- apiRef.current.setState((state) => _extends$2({}, state, {
53455
- pagination: _extends$2({}, state.pagination, {
53460
+ apiRef.current.setState((state) => _extends$1({}, state, {
53461
+ pagination: _extends$1({}, state.pagination, {
53456
53462
  rowCount: newRowCount
53457
53463
  })
53458
53464
  }));
@@ -53473,8 +53479,8 @@ const useGridRowCount = (apiRef, props) => {
53473
53479
  if (!shouldExportRowCount) {
53474
53480
  return prevState;
53475
53481
  }
53476
- return _extends$2({}, prevState, {
53477
- pagination: _extends$2({}, prevState.pagination, {
53482
+ return _extends$1({}, prevState, {
53483
+ pagination: _extends$1({}, prevState.pagination, {
53478
53484
  rowCount: exportedRowCount
53479
53485
  })
53480
53486
  });
@@ -53482,8 +53488,8 @@ const useGridRowCount = (apiRef, props) => {
53482
53488
  const stateRestorePreProcessing = React.useCallback((params, context) => {
53483
53489
  var _a2;
53484
53490
  const restoredRowCount = ((_a2 = context.stateToRestore.pagination) == null ? void 0 : _a2.rowCount) ? context.stateToRestore.pagination.rowCount : gridPaginationRowCountSelector(apiRef);
53485
- apiRef.current.setState((state) => _extends$2({}, state, {
53486
- pagination: _extends$2({}, state.pagination, {
53491
+ apiRef.current.setState((state) => _extends$1({}, state, {
53492
+ pagination: _extends$1({}, state.pagination, {
53487
53493
  rowCount: restoredRowCount
53488
53494
  })
53489
53495
  }));
@@ -53533,8 +53539,8 @@ const useGridPaginationMeta = (apiRef, props) => {
53533
53539
  return;
53534
53540
  }
53535
53541
  logger.debug("Setting 'paginationMeta' to", newPaginationMeta);
53536
- apiRef.current.setState((state) => _extends$2({}, state, {
53537
- pagination: _extends$2({}, state.pagination, {
53542
+ apiRef.current.setState((state) => _extends$1({}, state, {
53543
+ pagination: _extends$1({}, state.pagination, {
53538
53544
  meta: newPaginationMeta
53539
53545
  })
53540
53546
  }));
@@ -53555,8 +53561,8 @@ const useGridPaginationMeta = (apiRef, props) => {
53555
53561
  if (!shouldExportRowCount) {
53556
53562
  return prevState;
53557
53563
  }
53558
- return _extends$2({}, prevState, {
53559
- pagination: _extends$2({}, prevState.pagination, {
53564
+ return _extends$1({}, prevState, {
53565
+ pagination: _extends$1({}, prevState.pagination, {
53560
53566
  meta: exportedPaginationMeta
53561
53567
  })
53562
53568
  });
@@ -53564,8 +53570,8 @@ const useGridPaginationMeta = (apiRef, props) => {
53564
53570
  const stateRestorePreProcessing = React.useCallback((params, context) => {
53565
53571
  var _a2;
53566
53572
  const restoredPaginationMeta = ((_a2 = context.stateToRestore.pagination) == null ? void 0 : _a2.meta) ? context.stateToRestore.pagination.meta : gridPaginationMetaSelector(apiRef);
53567
- apiRef.current.setState((state) => _extends$2({}, state, {
53568
- pagination: _extends$2({}, state.pagination, {
53573
+ apiRef.current.setState((state) => _extends$1({}, state, {
53574
+ pagination: _extends$1({}, state.pagination, {
53569
53575
  meta: restoredPaginationMeta
53570
53576
  })
53571
53577
  }));
@@ -53581,12 +53587,12 @@ const useGridPaginationMeta = (apiRef, props) => {
53581
53587
  };
53582
53588
  const paginationStateInitializer = (state, props) => {
53583
53589
  var _a, _b, _c, _d, _e, _f, _g;
53584
- const paginationModel = _extends$2({}, getDefaultGridPaginationModel(props.autoPageSize), props.paginationModel ?? ((_b = (_a = props.initialState) == null ? void 0 : _a.pagination) == null ? void 0 : _b.paginationModel));
53590
+ const paginationModel = _extends$1({}, getDefaultGridPaginationModel(props.autoPageSize), props.paginationModel ?? ((_b = (_a = props.initialState) == null ? void 0 : _a.pagination) == null ? void 0 : _b.paginationModel));
53585
53591
  throwIfPageSizeExceedsTheLimit(paginationModel.pageSize, props.signature);
53586
53592
  const rowCount = props.rowCount ?? ((_d = (_c = props.initialState) == null ? void 0 : _c.pagination) == null ? void 0 : _d.rowCount) ?? (props.paginationMode === "client" ? (_e = state.rows) == null ? void 0 : _e.totalRowCount : void 0);
53587
53593
  const meta = props.paginationMeta ?? ((_g = (_f = props.initialState) == null ? void 0 : _f.pagination) == null ? void 0 : _g.meta) ?? {};
53588
- return _extends$2({}, state, {
53589
- pagination: _extends$2({}, state.pagination, {
53594
+ return _extends$1({}, state, {
53595
+ pagination: _extends$1({}, state.pagination, {
53590
53596
  paginationModel,
53591
53597
  rowCount,
53592
53598
  meta,
@@ -53602,7 +53608,7 @@ const useGridPagination = (apiRef, props) => {
53602
53608
  };
53603
53609
  const preferencePanelStateInitializer = (state, props) => {
53604
53610
  var _a;
53605
- return _extends$2({}, state, {
53611
+ return _extends$1({}, state, {
53606
53612
  preferencePanel: ((_a = props.initialState) == null ? void 0 : _a.preferencePanel) ?? {
53607
53613
  open: false
53608
53614
  }
@@ -53621,7 +53627,7 @@ const useGridPreferencesPanel = (apiRef, props) => {
53621
53627
  apiRef.current.publishEvent("preferencePanelClose", {
53622
53628
  openedPanelValue: preferencePanelState.openedPanelValue
53623
53629
  });
53624
- return _extends$2({}, state, {
53630
+ return _extends$1({}, state, {
53625
53631
  preferencePanel: {
53626
53632
  open: false
53627
53633
  }
@@ -53630,8 +53636,8 @@ const useGridPreferencesPanel = (apiRef, props) => {
53630
53636
  }, [apiRef, logger]);
53631
53637
  const showPreferences = React.useCallback((newValue, panelId, labelId) => {
53632
53638
  logger.debug("Opening Preferences Panel");
53633
- apiRef.current.setState((state) => _extends$2({}, state, {
53634
- preferencePanel: _extends$2({}, state.preferencePanel, {
53639
+ apiRef.current.setState((state) => _extends$1({}, state, {
53640
+ preferencePanel: _extends$1({}, state.preferencePanel, {
53635
53641
  open: true,
53636
53642
  openedPanelValue: newValue,
53637
53643
  panelId,
@@ -53658,14 +53664,14 @@ const useGridPreferencesPanel = (apiRef, props) => {
53658
53664
  if (!shouldExportPreferencePanel) {
53659
53665
  return prevState;
53660
53666
  }
53661
- return _extends$2({}, prevState, {
53667
+ return _extends$1({}, prevState, {
53662
53668
  preferencePanel: preferencePanelToExport
53663
53669
  });
53664
53670
  }, [apiRef, (_a = props.initialState) == null ? void 0 : _a.preferencePanel]);
53665
53671
  const stateRestorePreProcessing = React.useCallback((params, context) => {
53666
53672
  const preferencePanel = context.stateToRestore.preferencePanel;
53667
53673
  if (preferencePanel != null) {
53668
- apiRef.current.setState((state) => _extends$2({}, state, {
53674
+ apiRef.current.setState((state) => _extends$1({}, state, {
53669
53675
  preferencePanel
53670
53676
  }));
53671
53677
  }
@@ -53723,7 +53729,7 @@ const useGridCellEditing = (apiRef, props) => {
53723
53729
  if (params.cellMode === GridCellModes.Edit) {
53724
53730
  return;
53725
53731
  }
53726
- const newParams = _extends$2({}, params, {
53732
+ const newParams = _extends$1({}, params, {
53727
53733
  reason: GridCellEditStartReasons.cellDoubleClick
53728
53734
  });
53729
53735
  apiRef.current.publishEvent("cellEditStart", newParams, event);
@@ -53735,7 +53741,7 @@ const useGridCellEditing = (apiRef, props) => {
53735
53741
  if (apiRef.current.getCellMode(params.id, params.field) === GridCellModes.View) {
53736
53742
  return;
53737
53743
  }
53738
- const newParams = _extends$2({}, params, {
53744
+ const newParams = _extends$1({}, params, {
53739
53745
  reason: GridCellEditStopReasons.cellFocusOut
53740
53746
  });
53741
53747
  apiRef.current.publishEvent("cellEditStop", newParams, event);
@@ -53755,7 +53761,7 @@ const useGridCellEditing = (apiRef, props) => {
53755
53761
  event.preventDefault();
53756
53762
  }
53757
53763
  if (reason) {
53758
- const newParams = _extends$2({}, params, {
53764
+ const newParams = _extends$1({}, params, {
53759
53765
  reason
53760
53766
  });
53761
53767
  apiRef.current.publishEvent("cellEditStop", newParams, event);
@@ -53780,7 +53786,7 @@ const useGridCellEditing = (apiRef, props) => {
53780
53786
  reason = GridCellEditStartReasons.deleteKeyDown;
53781
53787
  }
53782
53788
  if (reason) {
53783
- const newParams = _extends$2({}, params, {
53789
+ const newParams = _extends$1({}, params, {
53784
53790
  reason,
53785
53791
  key: event.key
53786
53792
  });
@@ -53867,10 +53873,10 @@ const useGridCellEditing = (apiRef, props) => {
53867
53873
  apiRef.current.publishEvent("cellModesModelChange", newModel);
53868
53874
  });
53869
53875
  const updateFieldInCellModesModel = React.useCallback((id, field, newProps) => {
53870
- const newModel = _extends$2({}, cellModesModelRef.current);
53876
+ const newModel = _extends$1({}, cellModesModelRef.current);
53871
53877
  if (newProps !== null) {
53872
- newModel[id] = _extends$2({}, newModel[id], {
53873
- [field]: _extends$2({}, newProps)
53878
+ newModel[id] = _extends$1({}, newModel[id], {
53879
+ [field]: _extends$1({}, newProps)
53874
53880
  });
53875
53881
  } else {
53876
53882
  const _newModel$id = newModel[id], otherFields = _objectWithoutPropertiesLoose(_newModel$id, [field].map(toPropertyKey));
@@ -53883,10 +53889,10 @@ const useGridCellEditing = (apiRef, props) => {
53883
53889
  }, [updateCellModesModel]);
53884
53890
  const updateOrDeleteFieldState = React.useCallback((id, field, newProps) => {
53885
53891
  apiRef.current.setState((state) => {
53886
- const newEditingState = _extends$2({}, state.editRows);
53892
+ const newEditingState = _extends$1({}, state.editRows);
53887
53893
  if (newProps !== null) {
53888
- newEditingState[id] = _extends$2({}, newEditingState[id], {
53889
- [field]: _extends$2({}, newProps)
53894
+ newEditingState[id] = _extends$1({}, newEditingState[id], {
53895
+ [field]: _extends$1({}, newProps)
53890
53896
  });
53891
53897
  } else {
53892
53898
  delete newEditingState[id][field];
@@ -53894,7 +53900,7 @@ const useGridCellEditing = (apiRef, props) => {
53894
53900
  delete newEditingState[id];
53895
53901
  }
53896
53902
  }
53897
- return _extends$2({}, state, {
53903
+ return _extends$1({}, state, {
53898
53904
  editRows: newEditingState
53899
53905
  });
53900
53906
  });
@@ -53906,7 +53912,7 @@ const useGridCellEditing = (apiRef, props) => {
53906
53912
  } = params, other = _objectWithoutPropertiesLoose(params, _excluded$6);
53907
53913
  throwIfNotEditable(id, field);
53908
53914
  throwIfNotInMode(id, field, GridCellModes.View);
53909
- updateFieldInCellModesModel(id, field, _extends$2({
53915
+ updateFieldInCellModesModel(id, field, _extends$1({
53910
53916
  mode: GridCellModes.Edit
53911
53917
  }, other));
53912
53918
  }, [throwIfNotEditable, throwIfNotInMode, updateFieldInCellModesModel]);
@@ -53942,7 +53948,7 @@ const useGridCellEditing = (apiRef, props) => {
53942
53948
  }));
53943
53949
  if (apiRef.current.getCellMode(id, field) === GridCellModes.Edit) {
53944
53950
  const editingState = gridEditRowsStateSelector(apiRef);
53945
- updateOrDeleteFieldState(id, field, _extends$2({}, newProps, {
53951
+ updateOrDeleteFieldState(id, field, _extends$1({}, newProps, {
53946
53952
  value: editingState[id][field].value,
53947
53953
  isProcessingProps: false
53948
53954
  }));
@@ -53955,7 +53961,7 @@ const useGridCellEditing = (apiRef, props) => {
53955
53961
  field
53956
53962
  } = params, other = _objectWithoutPropertiesLoose(params, _excluded2$2);
53957
53963
  throwIfNotInMode(id, field, GridCellModes.Edit);
53958
- updateFieldInCellModesModel(id, field, _extends$2({
53964
+ updateFieldInCellModesModel(id, field, _extends$1({
53959
53965
  mode: GridCellModes.View
53960
53966
  }, other));
53961
53967
  }, [throwIfNotInMode, updateFieldInCellModesModel]);
@@ -54038,13 +54044,13 @@ const useGridCellEditing = (apiRef, props) => {
54038
54044
  parsedValue = column2.valueParser(value, row, column2, apiRef);
54039
54045
  }
54040
54046
  let editingState = gridEditRowsStateSelector(apiRef);
54041
- let newProps = _extends$2({}, editingState[id][field], {
54047
+ let newProps = _extends$1({}, editingState[id][field], {
54042
54048
  value: parsedValue,
54043
54049
  changeReason: debounceMs ? "debouncedSetEditCellValue" : "setEditCellValue"
54044
54050
  });
54045
54051
  if (column2.preProcessEditCellProps) {
54046
54052
  const hasChanged = value !== editingState[id][field].value;
54047
- newProps = _extends$2({}, newProps, {
54053
+ newProps = _extends$1({}, newProps, {
54048
54054
  isProcessingProps: true
54049
54055
  });
54050
54056
  updateOrDeleteFieldState(id, field, newProps);
@@ -54059,7 +54065,7 @@ const useGridCellEditing = (apiRef, props) => {
54059
54065
  return false;
54060
54066
  }
54061
54067
  editingState = gridEditRowsStateSelector(apiRef);
54062
- newProps = _extends$2({}, newProps, {
54068
+ newProps = _extends$1({}, newProps, {
54063
54069
  isProcessingProps: false
54064
54070
  });
54065
54071
  newProps.value = column2.preProcessEditCellProps ? editingState[id][field].value : parsedValue;
@@ -54077,7 +54083,7 @@ const useGridCellEditing = (apiRef, props) => {
54077
54083
  const {
54078
54084
  value
54079
54085
  } = editingState[id][field];
54080
- return column2.valueSetter ? column2.valueSetter(value, row, column2, apiRef) : _extends$2({}, row, {
54086
+ return column2.valueSetter ? column2.valueSetter(value, row, column2, apiRef) : _extends$1({}, row, {
54081
54087
  [field]: value
54082
54088
  });
54083
54089
  }, [apiRef]);
@@ -54107,12 +54113,12 @@ const useGridCellEditing = (apiRef, props) => {
54107
54113
  const prevMode = ((_b = (_a = copyOfPrevCellModes[id]) == null ? void 0 : _a[field]) == null ? void 0 : _b.mode) || GridCellModes.View;
54108
54114
  const originalId = rowsLookup[id] ? apiRef.current.getRowId(rowsLookup[id]) : id;
54109
54115
  if (params.mode === GridCellModes.Edit && prevMode === GridCellModes.View) {
54110
- updateStateToStartCellEditMode(_extends$2({
54116
+ updateStateToStartCellEditMode(_extends$1({
54111
54117
  id: originalId,
54112
54118
  field
54113
54119
  }, params));
54114
54120
  } else if (params.mode === GridCellModes.View && prevMode === GridCellModes.Edit) {
54115
- updateStateToStopCellEditMode(_extends$2({
54121
+ updateStateToStopCellEditMode(_extends$1({
54116
54122
  id: originalId,
54117
54123
  field
54118
54124
  }, params));
@@ -54163,7 +54169,7 @@ const useGridRowEditing = (apiRef, props) => {
54163
54169
  return;
54164
54170
  }
54165
54171
  const rowParams = apiRef.current.getRowParams(params.id);
54166
- const newParams = _extends$2({}, rowParams, {
54172
+ const newParams = _extends$1({}, rowParams, {
54167
54173
  field: params.field,
54168
54174
  reason: GridRowEditStartReasons.cellDoubleClick
54169
54175
  });
@@ -54193,7 +54199,7 @@ const useGridRowEditing = (apiRef, props) => {
54193
54199
  return;
54194
54200
  }
54195
54201
  const rowParams = apiRef.current.getRowParams(params.id);
54196
- const newParams = _extends$2({}, rowParams, {
54202
+ const newParams = _extends$1({}, rowParams, {
54197
54203
  field: params.field,
54198
54204
  reason: GridRowEditStopReasons.rowFocusOut
54199
54205
  });
@@ -54242,7 +54248,7 @@ const useGridRowEditing = (apiRef, props) => {
54242
54248
  if (reason !== GridRowEditStopReasons.escapeKeyDown && hasFieldsWithErrors(params.id)) {
54243
54249
  return;
54244
54250
  }
54245
- const newParams = _extends$2({}, apiRef.current.getRowParams(params.id), {
54251
+ const newParams = _extends$1({}, apiRef.current.getRowParams(params.id), {
54246
54252
  reason,
54247
54253
  field: params.field
54248
54254
  });
@@ -54269,7 +54275,7 @@ const useGridRowEditing = (apiRef, props) => {
54269
54275
  }
54270
54276
  if (reason) {
54271
54277
  const rowParams = apiRef.current.getRowParams(params.id);
54272
- const newParams = _extends$2({}, rowParams, {
54278
+ const newParams = _extends$1({}, rowParams, {
54273
54279
  field: params.field,
54274
54280
  reason
54275
54281
  });
@@ -54345,9 +54351,9 @@ const useGridRowEditing = (apiRef, props) => {
54345
54351
  apiRef.current.publishEvent("rowModesModelChange", newModel);
54346
54352
  });
54347
54353
  const updateRowInRowModesModel = React.useCallback((id, newProps) => {
54348
- const newModel = _extends$2({}, rowModesModelRef.current);
54354
+ const newModel = _extends$1({}, rowModesModelRef.current);
54349
54355
  if (newProps !== null) {
54350
- newModel[id] = _extends$2({}, newProps);
54356
+ newModel[id] = _extends$1({}, newProps);
54351
54357
  } else {
54352
54358
  delete newModel[id];
54353
54359
  }
@@ -54355,23 +54361,23 @@ const useGridRowEditing = (apiRef, props) => {
54355
54361
  }, [updateRowModesModel]);
54356
54362
  const updateOrDeleteRowState = React.useCallback((id, newProps) => {
54357
54363
  apiRef.current.setState((state) => {
54358
- const newEditingState = _extends$2({}, state.editRows);
54364
+ const newEditingState = _extends$1({}, state.editRows);
54359
54365
  if (newProps !== null) {
54360
54366
  newEditingState[id] = newProps;
54361
54367
  } else {
54362
54368
  delete newEditingState[id];
54363
54369
  }
54364
- return _extends$2({}, state, {
54370
+ return _extends$1({}, state, {
54365
54371
  editRows: newEditingState
54366
54372
  });
54367
54373
  });
54368
54374
  }, [apiRef]);
54369
54375
  const updateOrDeleteFieldState = React.useCallback((id, field, newProps) => {
54370
54376
  apiRef.current.setState((state) => {
54371
- const newEditingState = _extends$2({}, state.editRows);
54377
+ const newEditingState = _extends$1({}, state.editRows);
54372
54378
  if (newProps !== null) {
54373
- newEditingState[id] = _extends$2({}, newEditingState[id], {
54374
- [field]: _extends$2({}, newProps)
54379
+ newEditingState[id] = _extends$1({}, newEditingState[id], {
54380
+ [field]: _extends$1({}, newProps)
54375
54381
  });
54376
54382
  } else {
54377
54383
  delete newEditingState[id][field];
@@ -54379,7 +54385,7 @@ const useGridRowEditing = (apiRef, props) => {
54379
54385
  delete newEditingState[id];
54380
54386
  }
54381
54387
  }
54382
- return _extends$2({}, state, {
54388
+ return _extends$1({}, state, {
54383
54389
  editRows: newEditingState
54384
54390
  });
54385
54391
  });
@@ -54389,7 +54395,7 @@ const useGridRowEditing = (apiRef, props) => {
54389
54395
  id
54390
54396
  } = params, other = _objectWithoutPropertiesLoose(params, _excluded$5);
54391
54397
  throwIfNotInMode(id, GridRowModes.View);
54392
- updateRowInRowModesModel(id, _extends$2({
54398
+ updateRowInRowModesModel(id, _extends$1({
54393
54399
  mode: GridRowModes.Edit
54394
54400
  }, other));
54395
54401
  }, [throwIfNotInMode, updateRowInRowModesModel]);
@@ -54440,7 +54446,7 @@ const useGridRowEditing = (apiRef, props) => {
54440
54446
  })).then((processedProps) => {
54441
54447
  if (apiRef.current.getRowMode(id) === GridRowModes.Edit) {
54442
54448
  const editingState = gridEditRowsStateSelector(apiRef);
54443
- updateOrDeleteFieldState(id, field, _extends$2({}, processedProps, {
54449
+ updateOrDeleteFieldState(id, field, _extends$1({}, processedProps, {
54444
54450
  value: editingState[id][field].value,
54445
54451
  isProcessingProps: false
54446
54452
  }));
@@ -54453,7 +54459,7 @@ const useGridRowEditing = (apiRef, props) => {
54453
54459
  id
54454
54460
  } = params, other = _objectWithoutPropertiesLoose(params, _excluded2$1);
54455
54461
  throwIfNotInMode(id, GridRowModes.Edit);
54456
- updateRowInRowModesModel(id, _extends$2({
54462
+ updateRowInRowModesModel(id, _extends$1({
54457
54463
  mode: GridRowModes.View
54458
54464
  }, other));
54459
54465
  }, [throwIfNotInMode, updateRowInRowModesModel]);
@@ -54537,7 +54543,7 @@ const useGridRowEditing = (apiRef, props) => {
54537
54543
  parsedValue = column2.valueParser(value, row, column2, apiRef);
54538
54544
  }
54539
54545
  let editingState = gridEditRowsStateSelector(apiRef);
54540
- let newProps = _extends$2({}, editingState[id][field], {
54546
+ let newProps = _extends$1({}, editingState[id][field], {
54541
54547
  value: parsedValue,
54542
54548
  changeReason: debounceMs ? "debouncedSetEditCellValue" : "setEditCellValue"
54543
54549
  });
@@ -54548,7 +54554,7 @@ const useGridRowEditing = (apiRef, props) => {
54548
54554
  const promises = [];
54549
54555
  if (column2.preProcessEditCellProps) {
54550
54556
  const hasChanged = newProps.value !== editingState[id][field].value;
54551
- newProps = _extends$2({}, newProps, {
54557
+ newProps = _extends$1({}, newProps, {
54552
54558
  isProcessingProps: true
54553
54559
  });
54554
54560
  updateOrDeleteFieldState(id, field, newProps);
@@ -54565,7 +54571,7 @@ const useGridRowEditing = (apiRef, props) => {
54565
54571
  return;
54566
54572
  }
54567
54573
  editingState = gridEditRowsStateSelector(apiRef);
54568
- processedProps = _extends$2({}, processedProps, {
54574
+ processedProps = _extends$1({}, processedProps, {
54569
54575
  isProcessingProps: false
54570
54576
  });
54571
54577
  processedProps.value = column2.preProcessEditCellProps ? editingState[id][field].value : parsedValue;
@@ -54581,7 +54587,7 @@ const useGridRowEditing = (apiRef, props) => {
54581
54587
  if (!fieldColumn.preProcessEditCellProps) {
54582
54588
  return;
54583
54589
  }
54584
- fieldProps = _extends$2({}, fieldProps, {
54590
+ fieldProps = _extends$1({}, fieldProps, {
54585
54591
  isProcessingProps: true
54586
54592
  });
54587
54593
  updateOrDeleteFieldState(id, thisField, fieldProps);
@@ -54598,7 +54604,7 @@ const useGridRowEditing = (apiRef, props) => {
54598
54604
  resolve(false);
54599
54605
  return;
54600
54606
  }
54601
- processedProps = _extends$2({}, processedProps, {
54607
+ processedProps = _extends$1({}, processedProps, {
54602
54608
  isProcessingProps: false
54603
54609
  });
54604
54610
  updateOrDeleteFieldState(id, thisField, processedProps);
@@ -54621,7 +54627,7 @@ const useGridRowEditing = (apiRef, props) => {
54621
54627
  if (!editingState[id]) {
54622
54628
  return apiRef.current.getRow(id);
54623
54629
  }
54624
- let rowUpdate = _extends$2({}, prevRowValuesLookup.current[id], row);
54630
+ let rowUpdate = _extends$1({}, prevRowValuesLookup.current[id], row);
54625
54631
  Object.entries(editingState[id]).forEach(([field, fieldProps]) => {
54626
54632
  const column2 = apiRef.current.getColumn(field);
54627
54633
  if (column2 == null ? void 0 : column2.valueSetter) {
@@ -54661,18 +54667,18 @@ const useGridRowEditing = (apiRef, props) => {
54661
54667
  const prevMode = ((_a = copyOfPrevRowModesModel[id]) == null ? void 0 : _a.mode) || GridRowModes.View;
54662
54668
  const originalId = rowsLookup[id] ? apiRef.current.getRowId(rowsLookup[id]) : id;
54663
54669
  if (params.mode === GridRowModes.Edit && prevMode === GridRowModes.View) {
54664
- updateStateToStartRowEditMode(_extends$2({
54670
+ updateStateToStartRowEditMode(_extends$1({
54665
54671
  id: originalId
54666
54672
  }, params));
54667
54673
  } else if (params.mode === GridRowModes.View && prevMode === GridRowModes.Edit) {
54668
- updateStateToStopRowEditMode(_extends$2({
54674
+ updateStateToStopRowEditMode(_extends$1({
54669
54675
  id: originalId
54670
54676
  }, params));
54671
54677
  }
54672
54678
  });
54673
54679
  }, [apiRef, rowModesModel, updateStateToStartRowEditMode, updateStateToStopRowEditMode]);
54674
54680
  };
54675
- const editingStateInitializer = (state) => _extends$2({}, state, {
54681
+ const editingStateInitializer = (state) => _extends$1({}, state, {
54676
54682
  editRows: {}
54677
54683
  });
54678
54684
  const useGridEditing = (apiRef, props) => {
@@ -54791,7 +54797,7 @@ const rowsStateInitializer = (state, props, apiRef) => {
54791
54797
  loading: props.loading,
54792
54798
  rowCount: props.rowCount
54793
54799
  });
54794
- return _extends$2({}, state, {
54800
+ return _extends$1({}, state, {
54795
54801
  rows: getRowsStateFromCache({
54796
54802
  apiRef,
54797
54803
  rowCountProp: props.rowCount,
@@ -54832,7 +54838,7 @@ const useGridRows = (apiRef, props) => {
54832
54838
  }) => {
54833
54839
  const run = () => {
54834
54840
  lastUpdateMs.current = Date.now();
54835
- apiRef.current.setState((state) => _extends$2({}, state, {
54841
+ apiRef.current.setState((state) => _extends$1({}, state, {
54836
54842
  rows: getRowsStateFromCache({
54837
54843
  apiRef,
54838
54844
  rowCountProp: props.rowCount,
@@ -54905,8 +54911,8 @@ const useGridRows = (apiRef, props) => {
54905
54911
  return;
54906
54912
  }
54907
54913
  logger.debug(`Setting loading to ${loading}`);
54908
- apiRef.current.setState((state) => _extends$2({}, state, {
54909
- rows: _extends$2({}, state.rows, {
54914
+ apiRef.current.setState((state) => _extends$1({}, state, {
54915
+ rows: _extends$1({}, state.rows, {
54910
54916
  loading
54911
54917
  })
54912
54918
  }));
@@ -54933,13 +54939,13 @@ const useGridRows = (apiRef, props) => {
54933
54939
  if (currentNode.type !== "group") {
54934
54940
  throw new Error("MUI X: Only group nodes can be expanded or collapsed.");
54935
54941
  }
54936
- const newNode = _extends$2({}, currentNode, {
54942
+ const newNode = _extends$1({}, currentNode, {
54937
54943
  childrenExpanded: isExpanded
54938
54944
  });
54939
54945
  apiRef.current.setState((state) => {
54940
- return _extends$2({}, state, {
54941
- rows: _extends$2({}, state.rows, {
54942
- tree: _extends$2({}, state.rows.tree, {
54946
+ return _extends$1({}, state, {
54947
+ rows: _extends$1({}, state.rows, {
54948
+ tree: _extends$1({}, state.rows.tree, {
54943
54949
  [id]: newNode
54944
54950
  })
54945
54951
  })
@@ -55000,10 +55006,10 @@ const useGridRows = (apiRef, props) => {
55000
55006
  logger.debug(`Moving row ${rowId} to index ${targetIndex}`);
55001
55007
  const updatedRows = [...allRows];
55002
55008
  updatedRows.splice(targetIndex, 0, updatedRows.splice(oldIndex, 1)[0]);
55003
- return _extends$2({}, state, {
55004
- rows: _extends$2({}, state.rows, {
55005
- tree: _extends$2({}, state.rows.tree, {
55006
- [GRID_ROOT_GROUP_ID]: _extends$2({}, group, {
55009
+ return _extends$1({}, state, {
55010
+ rows: _extends$1({}, state.rows, {
55011
+ tree: _extends$1({}, state.rows.tree, {
55012
+ [GRID_ROOT_GROUP_ID]: _extends$1({}, group, {
55007
55013
  children: updatedRows
55008
55014
  })
55009
55015
  })
@@ -55023,8 +55029,8 @@ const useGridRows = (apiRef, props) => {
55023
55029
  if (treeDepth > 1) {
55024
55030
  throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");
55025
55031
  }
55026
- const tree = _extends$2({}, gridRowTreeSelector(apiRef));
55027
- const dataRowIdToModelLookup = _extends$2({}, gridRowsLookupSelector(apiRef));
55032
+ const tree = _extends$1({}, gridRowTreeSelector(apiRef));
55033
+ const dataRowIdToModelLookup = _extends$1({}, gridRowsLookupSelector(apiRef));
55028
55034
  const rootGroup = tree[GRID_ROOT_GROUP_ID];
55029
55035
  const rootGroupChildren = [...rootGroup.children];
55030
55036
  const seenIds = /* @__PURE__ */ new Set();
@@ -55047,7 +55053,7 @@ const useGridRows = (apiRef, props) => {
55047
55053
  tree[rowId] = rowTreeNodeConfig;
55048
55054
  seenIds.add(rowId);
55049
55055
  }
55050
- tree[GRID_ROOT_GROUP_ID] = _extends$2({}, rootGroup, {
55056
+ tree[GRID_ROOT_GROUP_ID] = _extends$1({}, rootGroup, {
55051
55057
  children: rootGroupChildren
55052
55058
  });
55053
55059
  const dataRowIds = rootGroupChildren.filter((childId) => {
@@ -55055,8 +55061,8 @@ const useGridRows = (apiRef, props) => {
55055
55061
  return ((_a = tree[childId]) == null ? void 0 : _a.type) === "leaf";
55056
55062
  });
55057
55063
  apiRef.current.caches.rows.dataRowIdToModelLookup = dataRowIdToModelLookup;
55058
- apiRef.current.setState((state) => _extends$2({}, state, {
55059
- rows: _extends$2({}, state.rows, {
55064
+ apiRef.current.setState((state) => _extends$1({}, state, {
55065
+ rows: _extends$1({}, state.rows, {
55060
55066
  loading: props.loading,
55061
55067
  totalRowCount: Math.max(props.rowCount || 0, rootGroupChildren.length),
55062
55068
  dataRowIdToModelLookup,
@@ -55091,7 +55097,7 @@ const useGridRows = (apiRef, props) => {
55091
55097
  logger.info(`Row grouping pre-processing have changed, regenerating the row tree`);
55092
55098
  let cache2;
55093
55099
  if (apiRef.current.caches.rows.rowsBeforePartialUpdates === props.rows) {
55094
- cache2 = _extends$2({}, apiRef.current.caches.rows, {
55100
+ cache2 = _extends$1({}, apiRef.current.caches.rows, {
55095
55101
  updates: {
55096
55102
  type: "full",
55097
55103
  rows: gridDataRowIdsSelector(apiRef)
@@ -55135,8 +55141,8 @@ const useGridRows = (apiRef, props) => {
55135
55141
  dataRowIds: gridDataRowIdsSelector(apiRef),
55136
55142
  dataRowIdToModelLookup: gridRowsLookupSelector(apiRef)
55137
55143
  });
55138
- return _extends$2({}, state, {
55139
- rows: _extends$2({}, state.rows, response, {
55144
+ return _extends$1({}, state, {
55145
+ rows: _extends$1({}, state.rows, response, {
55140
55146
  totalTopLevelRowCount: getTopLevelRowCount({
55141
55147
  tree: response.tree,
55142
55148
  rowCountProp: props.rowCount
@@ -55167,16 +55173,16 @@ const useGridRows = (apiRef, props) => {
55167
55173
  const isNewRowCountAlreadyInState = apiRef.current.caches.rows.rowCountPropBeforePartialUpdates === props.rowCount;
55168
55174
  if (areNewRowsAlreadyInState) {
55169
55175
  if (!isNewLoadingAlreadyInState) {
55170
- apiRef.current.setState((state) => _extends$2({}, state, {
55171
- rows: _extends$2({}, state.rows, {
55176
+ apiRef.current.setState((state) => _extends$1({}, state, {
55177
+ rows: _extends$1({}, state.rows, {
55172
55178
  loading: props.loading
55173
55179
  })
55174
55180
  }));
55175
55181
  apiRef.current.caches.rows.loadingPropBeforePartialUpdates = props.loading;
55176
55182
  }
55177
55183
  if (!isNewRowCountAlreadyInState) {
55178
- apiRef.current.setState((state) => _extends$2({}, state, {
55179
- rows: _extends$2({}, state.rows, {
55184
+ apiRef.current.setState((state) => _extends$1({}, state, {
55185
+ rows: _extends$1({}, state.rows, {
55180
55186
  totalRowCount: Math.max(props.rowCount || 0, state.rows.totalRowCount),
55181
55187
  totalTopLevelRowCount: Math.max(props.rowCount || 0, state.rows.totalTopLevelRowCount)
55182
55188
  })
@@ -55201,7 +55207,7 @@ const useGridRows = (apiRef, props) => {
55201
55207
  };
55202
55208
  const createFlatRowTree = (rows) => {
55203
55209
  const tree = {
55204
- [GRID_ROOT_GROUP_ID]: _extends$2({}, buildRootGroup(), {
55210
+ [GRID_ROOT_GROUP_ID]: _extends$1({}, buildRootGroup(), {
55205
55211
  children: rows
55206
55212
  })
55207
55213
  };
@@ -55228,7 +55234,7 @@ const updateFlatRowTree = ({
55228
55234
  previousTree,
55229
55235
  actions
55230
55236
  }) => {
55231
- const tree = _extends$2({}, previousTree);
55237
+ const tree = _extends$1({}, previousTree);
55232
55238
  const idsToRemoveFromRootGroup = {};
55233
55239
  for (let i = 0; i < actions.remove.length; i += 1) {
55234
55240
  const idToDelete = actions.remove[i];
@@ -55250,7 +55256,7 @@ const updateFlatRowTree = ({
55250
55256
  if (Object.values(idsToRemoveFromRootGroup).length) {
55251
55257
  rootGroupChildren = rootGroupChildren.filter((id) => !idsToRemoveFromRootGroup[id]);
55252
55258
  }
55253
- tree[GRID_ROOT_GROUP_ID] = _extends$2({}, rootGroup, {
55259
+ tree[GRID_ROOT_GROUP_ID] = _extends$1({}, rootGroup, {
55254
55260
  children: rootGroupChildren
55255
55261
  });
55256
55262
  return {
@@ -55402,7 +55408,7 @@ const emptyModel = {
55402
55408
  type: "include",
55403
55409
  ids: /* @__PURE__ */ new Set()
55404
55410
  };
55405
- const rowSelectionStateInitializer = (state, props) => _extends$2({}, state, {
55411
+ const rowSelectionStateInitializer = (state, props) => _extends$1({}, state, {
55406
55412
  rowSelection: props.rowSelection ? props.rowSelectionModel ?? emptyModel : emptyModel
55407
55413
  });
55408
55414
  const useGridRowSelection = (apiRef, props) => {
@@ -55467,7 +55473,7 @@ const useGridRowSelection = (apiRef, props) => {
55467
55473
  const currentModel = gridRowSelectionStateSelector(apiRef);
55468
55474
  if (currentModel !== model) {
55469
55475
  logger.debug(`Setting selection model`);
55470
- apiRef.current.setState((state) => _extends$2({}, state, {
55476
+ apiRef.current.setState((state) => _extends$1({}, state, {
55471
55477
  rowSelection: props.rowSelection ? model : emptyModel
55472
55478
  }));
55473
55479
  }
@@ -55936,7 +55942,7 @@ const useGridRowSelectionPreProcessors = (apiRef, props) => {
55936
55942
  };
55937
55943
  const classes2 = useUtilityClasses$9(ownerState);
55938
55944
  const updateSelectionColumn = React.useCallback((columnsState) => {
55939
- const selectionColumn = _extends$2({}, GRID_CHECKBOX_SELECTION_COL_DEF, {
55945
+ const selectionColumn = _extends$1({}, GRID_CHECKBOX_SELECTION_COL_DEF, {
55940
55946
  cellClassName: classes2.cellCheckbox,
55941
55947
  headerClassName: classes2.columnHeaderCheckbox,
55942
55948
  headerName: apiRef.current.getLocaleText("checkboxSelectionHeaderName")
@@ -55950,7 +55956,7 @@ const useGridRowSelectionPreProcessors = (apiRef, props) => {
55950
55956
  delete columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD];
55951
55957
  columnsState.orderedFields = columnsState.orderedFields.filter((field) => field !== GRID_CHECKBOX_SELECTION_FIELD);
55952
55958
  } else if (shouldHaveSelectionColumn && haveSelectionColumn) {
55953
- columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD] = _extends$2({}, selectionColumn, columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD]);
55959
+ columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD] = _extends$1({}, selectionColumn, columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD]);
55954
55960
  }
55955
55961
  return columnsState;
55956
55962
  }, [apiRef, classes2, props.checkboxSelection]);
@@ -55959,7 +55965,7 @@ const useGridRowSelectionPreProcessors = (apiRef, props) => {
55959
55965
  const sortingStateInitializer = (state, props) => {
55960
55966
  var _a, _b;
55961
55967
  const sortModel = props.sortModel ?? ((_b = (_a = props.initialState) == null ? void 0 : _a.sorting) == null ? void 0 : _b.sortModel) ?? [];
55962
- return _extends$2({}, state, {
55968
+ return _extends$1({}, state, {
55963
55969
  sorting: {
55964
55970
  sortModel: sanitizeSortModel(sortModel, props.disableMultipleColumnsSorting),
55965
55971
  sortedRows: []
@@ -55996,7 +56002,7 @@ const useGridSorting = (apiRef, props) => {
55996
56002
  const existing = sortModel.find((c) => c.field === col.field);
55997
56003
  if (existing) {
55998
56004
  const nextSort = directionOverride === void 0 ? getNextGridSortDirection(col.sortingOrder ?? props.sortingOrder, existing.sort) : directionOverride;
55999
- return nextSort === void 0 ? void 0 : _extends$2({}, existing, {
56005
+ return nextSort === void 0 ? void 0 : _extends$1({}, existing, {
56000
56006
  sort: nextSort
56001
56007
  });
56002
56008
  }
@@ -56019,8 +56025,8 @@ const useGridSorting = (apiRef, props) => {
56019
56025
  apiRef.current.setState((state) => {
56020
56026
  if (props.sortingMode === "server") {
56021
56027
  logger.debug("Skipping sorting rows as sortingMode = server");
56022
- return _extends$2({}, state, {
56023
- sorting: _extends$2({}, state.sorting, {
56028
+ return _extends$1({}, state, {
56029
+ sorting: _extends$1({}, state.sorting, {
56024
56030
  sortedRows: getTreeNodeDescendants(gridRowTreeSelector(apiRef), GRID_ROOT_GROUP_ID, false)
56025
56031
  })
56026
56032
  });
@@ -56030,8 +56036,8 @@ const useGridSorting = (apiRef, props) => {
56030
56036
  const sortedRows = apiRef.current.applyStrategyProcessor("sorting", {
56031
56037
  sortRowList
56032
56038
  });
56033
- return _extends$2({}, state, {
56034
- sorting: _extends$2({}, state.sorting, {
56039
+ return _extends$1({}, state, {
56040
+ sorting: _extends$1({}, state.sorting, {
56035
56041
  sortedRows
56036
56042
  })
56037
56043
  });
@@ -56087,7 +56093,7 @@ const useGridSorting = (apiRef, props) => {
56087
56093
  if (!shouldExportSortModel) {
56088
56094
  return prevState;
56089
56095
  }
56090
- return _extends$2({}, prevState, {
56096
+ return _extends$1({}, prevState, {
56091
56097
  sorting: {
56092
56098
  sortModel: sortModelToExport
56093
56099
  }
@@ -56100,7 +56106,7 @@ const useGridSorting = (apiRef, props) => {
56100
56106
  return params;
56101
56107
  }
56102
56108
  apiRef.current.setState(mergeStateWithSortModel(sortModel, props.disableMultipleColumnsSorting));
56103
- return _extends$2({}, params, {
56109
+ return _extends$1({}, params, {
56104
56110
  callbacks: [...params.callbacks, apiRef.current.applySorting]
56105
56111
  });
56106
56112
  }, [apiRef, props.disableMultipleColumnsSorting]);
@@ -56397,8 +56403,8 @@ const EMPTY_DIMENSIONS = {
56397
56403
  const dimensionsStateInitializer = (state, props, apiRef) => {
56398
56404
  const dimensions = EMPTY_DIMENSIONS;
56399
56405
  const density = gridDensityFactorSelector(apiRef);
56400
- return _extends$2({}, state, {
56401
- dimensions: _extends$2({}, dimensions, getStaticDimensions(props, apiRef, density, gridVisiblePinnedColumnDefinitionsSelector(apiRef)))
56406
+ return _extends$1({}, state, {
56407
+ dimensions: _extends$1({}, dimensions, getStaticDimensions(props, apiRef, density, gridVisiblePinnedColumnDefinitionsSelector(apiRef)))
56402
56408
  });
56403
56409
  };
56404
56410
  const columnsTotalWidthSelector = createSelector(gridVisibleColumnDefinitionsSelector, gridColumnPositionsSelector, (visibleColumns, positions) => {
@@ -56427,7 +56433,7 @@ function useGridDimensions(apiRef, props) {
56427
56433
  } = getStaticDimensions(props, apiRef, densityFactor, pinnedColumns);
56428
56434
  const getRootDimensions = React.useCallback(() => gridDimensionsSelector(apiRef), [apiRef]);
56429
56435
  const setDimensions = React.useCallback((dimensions) => {
56430
- apiRef.current.setState((state) => _extends$2({}, state, {
56436
+ apiRef.current.setState((state) => _extends$1({}, state, {
56431
56437
  dimensions
56432
56438
  }));
56433
56439
  if (apiRef.current.rootElementRef.current) {
@@ -56652,7 +56658,7 @@ const rowsMetaStateInitializer = (state, props, apiRef) => {
56652
56658
  const dataRowCount = gridRowCountSelector(apiRef);
56653
56659
  const pagination = gridPaginationSelector(apiRef);
56654
56660
  const rowCount = Math.min(pagination.enabled ? pagination.paginationModel.pageSize : dataRowCount, dataRowCount);
56655
- return _extends$2({}, state, {
56661
+ return _extends$1({}, state, {
56656
56662
  rowsMeta: {
56657
56663
  currentPageTotalHeight: rowCount * baseRowHeight,
56658
56664
  positions: Array.from({
@@ -56699,12 +56705,12 @@ const useGridRowsMeta = (apiRef, props) => {
56699
56705
  entry.content = baseRowHeight;
56700
56706
  entry.needsFirstMeasurement = false;
56701
56707
  } else {
56702
- const rowHeightFromUser = getRowHeightProp(_extends$2({}, row, {
56708
+ const rowHeightFromUser = getRowHeightProp(_extends$1({}, row, {
56703
56709
  densityFactor
56704
56710
  }));
56705
56711
  if (rowHeightFromUser === "auto") {
56706
56712
  if (entry.needsFirstMeasurement) {
56707
- const estimatedRowHeight = getEstimatedRowHeight ? getEstimatedRowHeight(_extends$2({}, row, {
56713
+ const estimatedRowHeight = getEstimatedRowHeight ? getEstimatedRowHeight(_extends$1({}, row, {
56708
56714
  densityFactor
56709
56715
  })) : baseRowHeight;
56710
56716
  entry.content = estimatedRowHeight ?? baseRowHeight;
@@ -56719,7 +56725,7 @@ const useGridRowsMeta = (apiRef, props) => {
56719
56725
  }
56720
56726
  if (getRowSpacing) {
56721
56727
  const indexRelativeToCurrentPage = apiRef.current.getRowIndexRelativeToVisibleRows(row.id);
56722
- const spacing2 = getRowSpacing(_extends$2({}, row, {
56728
+ const spacing2 = getRowSpacing(_extends$1({}, row, {
56723
56729
  isFirstVisible: indexRelativeToCurrentPage === 0,
56724
56730
  isLastVisible: indexRelativeToCurrentPage === currentPage.rows.length - 1,
56725
56731
  indexRelativeToCurrentPage
@@ -56761,7 +56767,7 @@ const useGridRowsMeta = (apiRef, props) => {
56761
56767
  pinnedBottomRowsTotalHeight
56762
56768
  };
56763
56769
  apiRef.current.setState((state) => {
56764
- return _extends$2({}, state, {
56770
+ return _extends$1({}, state, {
56765
56771
  rowsMeta
56766
56772
  });
56767
56773
  });
@@ -57044,18 +57050,18 @@ const createGroupLookup = (columnGroupingModel) => {
57044
57050
  console.warn(`MUI X: group groupId=${groupId} has no children.`);
57045
57051
  }
57046
57052
  }
57047
- const groupParam = _extends$2({}, other, {
57053
+ const groupParam = _extends$1({}, other, {
57048
57054
  groupId
57049
57055
  });
57050
57056
  const subTreeLookup = createGroupLookup(children);
57051
57057
  if (subTreeLookup[groupId] !== void 0 || groupLookup[groupId] !== void 0) {
57052
57058
  throw new Error(`MUI X: The groupId ${groupId} is used multiple times in the columnGroupingModel.`);
57053
57059
  }
57054
- groupLookup = _extends$2({}, groupLookup, subTreeLookup, {
57060
+ groupLookup = _extends$1({}, groupLookup, subTreeLookup, {
57055
57061
  [groupId]: groupParam
57056
57062
  });
57057
57063
  });
57058
- return _extends$2({}, groupLookup);
57064
+ return _extends$1({}, groupLookup);
57059
57065
  };
57060
57066
  const columnGroupsStateInitializer = (state, props, apiRef) => {
57061
57067
  if (!props.columnGroupingModel) {
@@ -57070,7 +57076,7 @@ const columnGroupsStateInitializer = (state, props, apiRef) => {
57070
57076
  var _a;
57071
57077
  return ((_a = unwrappedGroupingModel[field]) == null ? void 0 : _a.length) ?? 0;
57072
57078
  }));
57073
- return _extends$2({}, state, {
57079
+ return _extends$1({}, state, {
57074
57080
  columnGrouping: {
57075
57081
  lookup: groupLookup,
57076
57082
  unwrappedGroupingModel,
@@ -57100,8 +57106,8 @@ const useGridColumnGrouping = (apiRef, props) => {
57100
57106
  const orderedFields = ((_a = state.columns) == null ? void 0 : _a.orderedFields) ?? [];
57101
57107
  const pinnedColumns = state.pinnedColumns ?? {};
57102
57108
  const columnGroupsHeaderStructure = getColumnGroupsHeaderStructure(orderedFields, unwrappedGroupingModel, pinnedColumns);
57103
- return _extends$2({}, state, {
57104
- columnGrouping: _extends$2({}, state.columnGrouping, {
57109
+ return _extends$1({}, state, {
57110
+ columnGrouping: _extends$1({}, state.columnGrouping, {
57105
57111
  headerStructure: columnGroupsHeaderStructure
57106
57112
  })
57107
57113
  });
@@ -57120,7 +57126,7 @@ const useGridColumnGrouping = (apiRef, props) => {
57120
57126
  return ((_a2 = unwrappedGroupingModel[field]) == null ? void 0 : _a2.length) ?? 0;
57121
57127
  }));
57122
57128
  apiRef.current.setState((state) => {
57123
- return _extends$2({}, state, {
57129
+ return _extends$1({}, state, {
57124
57130
  columnGrouping: {
57125
57131
  lookup: groupLookup,
57126
57132
  unwrappedGroupingModel,
@@ -57270,7 +57276,7 @@ function extractColumnWidths(apiRef, options, columns) {
57270
57276
  root.classList.remove(gridClasses.autosizing);
57271
57277
  return widthByField;
57272
57278
  }
57273
- const columnResizeStateInitializer = (state) => _extends$2({}, state, {
57279
+ const columnResizeStateInitializer = (state) => _extends$1({}, state, {
57274
57280
  columnResize: {
57275
57281
  resizingColumnField: ""
57276
57282
  }
@@ -57496,15 +57502,15 @@ const useGridColumnResize = (apiRef, props) => {
57496
57502
  const handleResizeStart = React.useCallback(({
57497
57503
  field
57498
57504
  }) => {
57499
- apiRef.current.setState((state) => _extends$2({}, state, {
57500
- columnResize: _extends$2({}, state.columnResize, {
57505
+ apiRef.current.setState((state) => _extends$1({}, state, {
57506
+ columnResize: _extends$1({}, state.columnResize, {
57501
57507
  resizingColumnField: field
57502
57508
  })
57503
57509
  }));
57504
57510
  }, [apiRef]);
57505
57511
  const handleResizeStop = React.useCallback(() => {
57506
- apiRef.current.setState((state) => _extends$2({}, state, {
57507
- columnResize: _extends$2({}, state.columnResize, {
57512
+ apiRef.current.setState((state) => _extends$1({}, state, {
57513
+ columnResize: _extends$1({}, state.columnResize, {
57508
57514
  resizingColumnField: ""
57509
57515
  })
57510
57516
  }));
@@ -57542,7 +57548,7 @@ const useGridColumnResize = (apiRef, props) => {
57542
57548
  if (column2.resizable === false) {
57543
57549
  return;
57544
57550
  }
57545
- apiRef.current.autosizeColumns(_extends$2({}, props.autosizeOptions, {
57551
+ apiRef.current.autosizeColumns(_extends$1({}, props.autosizeOptions, {
57546
57552
  disableColumnVirtualization: false,
57547
57553
  columns: [column2.field]
57548
57554
  }));
@@ -57560,7 +57566,7 @@ const useGridColumnResize = (apiRef, props) => {
57560
57566
  }
57561
57567
  isAutosizingRef.current = true;
57562
57568
  const state = gridColumnsStateSelector(apiRef);
57563
- const options = _extends$2({}, DEFAULT_GRID_AUTOSIZE_OPTIONS, userOptions, {
57569
+ const options = _extends$1({}, DEFAULT_GRID_AUTOSIZE_OPTIONS, userOptions, {
57564
57570
  columns: (userOptions == null ? void 0 : userOptions.columns) ?? state.orderedFields
57565
57571
  });
57566
57572
  options.columns = options.columns.filter((c) => state.columnVisibilityModel[c] !== false);
@@ -57571,7 +57577,7 @@ const useGridColumnResize = (apiRef, props) => {
57571
57577
  await columnVirtualizationDisabled();
57572
57578
  }
57573
57579
  const widthByField = extractColumnWidths(apiRef, options, columns);
57574
- const newColumns = columns.map((column2) => _extends$2({}, column2, {
57580
+ const newColumns = columns.map((column2) => _extends$1({}, column2, {
57575
57581
  width: widthByField[column2.field],
57576
57582
  computedWidth: widthByField[column2.field],
57577
57583
  flex: 0
@@ -57682,9 +57688,9 @@ const EMPTY_RANGE = {
57682
57688
  const skippedFields = /* @__PURE__ */ new Set([GRID_CHECKBOX_SELECTION_FIELD, "__reorder__", GRID_DETAIL_PANEL_TOGGLE_FIELD]);
57683
57689
  const DEFAULT_ROWS_TO_PROCESS = 20;
57684
57690
  const computeRowSpanningState = (apiRef, colDefs, visibleRows, range2, rangeToProcess, resetState, processedRange) => {
57685
- const spannedCells = resetState ? {} : _extends$2({}, apiRef.current.state.rowSpanning.spannedCells);
57686
- const hiddenCells = resetState ? {} : _extends$2({}, apiRef.current.state.rowSpanning.hiddenCells);
57687
- const hiddenCellOriginMap = resetState ? {} : _extends$2({}, apiRef.current.state.rowSpanning.hiddenCellOriginMap);
57691
+ const spannedCells = resetState ? {} : _extends$1({}, apiRef.current.state.rowSpanning.spannedCells);
57692
+ const hiddenCells = resetState ? {} : _extends$1({}, apiRef.current.state.rowSpanning.hiddenCells);
57693
+ const hiddenCellOriginMap = resetState ? {} : _extends$1({}, apiRef.current.state.rowSpanning.hiddenCellOriginMap);
57688
57694
  if (resetState) {
57689
57695
  processedRange = EMPTY_RANGE;
57690
57696
  }
@@ -57798,7 +57804,7 @@ const getInitialRangeToProcess = (props, apiRef) => {
57798
57804
  const rowSpanningStateInitializer = (state, props, apiRef) => {
57799
57805
  var _a;
57800
57806
  if (!props.rowSpanning) {
57801
- return _extends$2({}, state, {
57807
+ return _extends$1({}, state, {
57802
57808
  rowSpanning: EMPTY_STATE
57803
57809
  });
57804
57810
  }
@@ -57808,7 +57814,7 @@ const rowSpanningStateInitializer = (state, props, apiRef) => {
57808
57814
  const columnsLookup = state.columns.lookup;
57809
57815
  const isFilteringPending = Boolean(state.filter.filterModel.items.length) || Boolean((_a = state.filter.filterModel.quickFilterValues) == null ? void 0 : _a.length);
57810
57816
  if (!rowIds.length || !orderedFields.length || !dataRowIdToModelLookup || !columnsLookup || isFilteringPending) {
57811
- return _extends$2({}, state, {
57817
+ return _extends$1({}, state, {
57812
57818
  rowSpanning: EMPTY_STATE
57813
57819
  });
57814
57820
  }
@@ -57823,7 +57829,7 @@ const rowSpanningStateInitializer = (state, props, apiRef) => {
57823
57829
  hiddenCells,
57824
57830
  hiddenCellOriginMap
57825
57831
  } = computeRowSpanningState(apiRef, colDefs, rows, rangeToProcess, rangeToProcess, true, EMPTY_RANGE);
57826
- return _extends$2({}, state, {
57832
+ return _extends$1({}, state, {
57827
57833
  rowSpanning: {
57828
57834
  spannedCells,
57829
57835
  hiddenCells,
@@ -57874,7 +57880,7 @@ const useGridRowSpanning = (apiRef, props) => {
57874
57880
  return;
57875
57881
  }
57876
57882
  apiRef.current.setState((state) => {
57877
- return _extends$2({}, state, {
57883
+ return _extends$1({}, state, {
57878
57884
  rowSpanning: {
57879
57885
  spannedCells,
57880
57886
  hiddenCells,
@@ -57898,7 +57904,7 @@ const useGridRowSpanning = (apiRef, props) => {
57898
57904
  React.useEffect(() => {
57899
57905
  if (!props.rowSpanning) {
57900
57906
  if (apiRef.current.state.rowSpanning !== EMPTY_STATE) {
57901
- apiRef.current.setState((state) => _extends$2({}, state, {
57907
+ apiRef.current.setState((state) => _extends$1({}, state, {
57902
57908
  rowSpanning: EMPTY_STATE
57903
57909
  }));
57904
57910
  }
@@ -57907,8 +57913,8 @@ const useGridRowSpanning = (apiRef, props) => {
57907
57913
  }
57908
57914
  }, [apiRef, resetRowSpanningState, props.rowSpanning]);
57909
57915
  };
57910
- const listViewStateInitializer = (state, props, apiRef) => _extends$2({}, state, {
57911
- listViewColumn: props.listViewColumn ? _extends$2({}, props.listViewColumn, {
57916
+ const listViewStateInitializer = (state, props, apiRef) => _extends$1({}, state, {
57917
+ listViewColumn: props.listViewColumn ? _extends$1({}, props.listViewColumn, {
57912
57918
  computedWidth: getListColumnWidth(apiRef)
57913
57919
  }) : void 0
57914
57920
  });
@@ -57918,8 +57924,8 @@ function useGridListView(apiRef, props) {
57918
57924
  if (!state.listViewColumn) {
57919
57925
  return state;
57920
57926
  }
57921
- return _extends$2({}, state, {
57922
- listViewColumn: _extends$2({}, state.listViewColumn, {
57927
+ return _extends$1({}, state, {
57928
+ listViewColumn: _extends$1({}, state.listViewColumn, {
57923
57929
  computedWidth: getListColumnWidth(apiRef)
57924
57930
  })
57925
57931
  });
@@ -57938,8 +57944,8 @@ function useGridListView(apiRef, props) {
57938
57944
  const listColumn = props.listViewColumn;
57939
57945
  if (listColumn) {
57940
57946
  apiRef.current.setState((state) => {
57941
- return _extends$2({}, state, {
57942
- listViewColumn: _extends$2({}, listColumn, {
57947
+ return _extends$1({}, state, {
57948
+ listViewColumn: _extends$1({}, listColumn, {
57943
57949
  computedWidth: getListColumnWidth(apiRef)
57944
57950
  })
57945
57951
  });
@@ -57984,7 +57990,7 @@ class CacheChunkManager {
57984
57990
  const chunkedKeys = [];
57985
57991
  for (let i = key.start; i < key.end; i += this.chunkSize) {
57986
57992
  const end2 = Math.min(i + this.chunkSize - 1, key.end);
57987
- chunkedKeys.push(_extends$2({}, key, {
57993
+ chunkedKeys.push(_extends$1({}, key, {
57988
57994
  start: i,
57989
57995
  end: end2
57990
57996
  }));
@@ -57997,8 +58003,8 @@ class CacheChunkManager {
57997
58003
  cacheKeys.forEach((chunkKey) => {
57998
58004
  var _a, _b, _c, _d;
57999
58005
  const isLastChunk = chunkKey.end === key.end;
58000
- const responseSlice = _extends$2({}, response, {
58001
- pageInfo: _extends$2({}, response.pageInfo, {
58006
+ const responseSlice = _extends$1({}, response, {
58007
+ pageInfo: _extends$1({}, response.pageInfo, {
58002
58008
  // If the original response had page info, update that information for all but last chunk and keep the original value for the last chunk
58003
58009
  hasNextPage: ((_a = response.pageInfo) == null ? void 0 : _a.hasNextPage) !== void 0 && !isLastChunk ? true : (_b = response.pageInfo) == null ? void 0 : _b.hasNextPage,
58004
58010
  nextCursor: ((_c = response.pageInfo) == null ? void 0 : _c.nextCursor) !== void 0 && !isLastChunk ? response.rows[chunkKey.end + 1].id : (_d = response.pageInfo) == null ? void 0 : _d.nextCursor
@@ -58065,7 +58071,7 @@ const useGridDataSourceBase = (apiRef, props, options = {}) => {
58065
58071
  return;
58066
58072
  }
58067
58073
  (_c = options.clearDataSourceState) == null ? void 0 : _c.call(options);
58068
- const fetchParams = _extends$2({}, gridGetRowsParamsSelector(apiRef), apiRef.current.unstable_applyPipeProcessors("getRowsParams", {}), params);
58074
+ const fetchParams = _extends$1({}, gridGetRowsParamsSelector(apiRef), apiRef.current.unstable_applyPipeProcessors("getRowsParams", {}), params);
58069
58075
  const cacheKeys = cacheChunkManager.getCacheKeys(fetchParams);
58070
58076
  const responses = cacheKeys.map((cacheKey) => cache2.get(cacheKey));
58071
58077
  if (responses.every((response) => response !== void 0)) {
@@ -58309,7 +58315,7 @@ function GridColumnGroupHeader(props) {
58309
58315
  if (groupId && render) {
58310
58316
  headerComponent = render(renderParams);
58311
58317
  }
58312
- const ownerState = _extends$2({}, props, {
58318
+ const ownerState = _extends$1({}, props, {
58313
58319
  classes: rootProps.classes,
58314
58320
  headerAlign,
58315
58321
  depth,
@@ -58343,8 +58349,8 @@ function GridColumnGroupHeader(props) {
58343
58349
  onBlur: publish("columnGroupHeaderBlur")
58344
58350
  }), [publish]);
58345
58351
  const headerClassName = typeof group.headerClassName === "function" ? group.headerClassName(renderParams) : group.headerClassName;
58346
- const style2 = React.useMemo(() => attachPinnedStyle(_extends$2({}, props.style), isRtl, pinnedPosition, pinnedOffset), [pinnedPosition, pinnedOffset, props.style, isRtl]);
58347
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnHeaderItem, _extends$2({
58352
+ const style2 = React.useMemo(() => attachPinnedStyle(_extends$1({}, props.style), isRtl, pinnedPosition, pinnedOffset), [pinnedPosition, pinnedOffset, props.style, isRtl]);
58353
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnHeaderItem, _extends$1({
58348
58354
  ref: headerCellRef,
58349
58355
  classes: classes2,
58350
58356
  columnMenuOpen: false,
@@ -58483,7 +58489,7 @@ const useGridColumnHeaders = (props) => {
58483
58489
  const sectionLength = renderedColumns.length;
58484
58490
  const showLeftBorder = shouldCellShowLeftBorder(pinnedPosition, indexInSection);
58485
58491
  const showRightBorder = shouldCellShowRightBorder(pinnedPosition, indexInSection, sectionLength, rootProps.showColumnVerticalBorder, gridHasFiller);
58486
- columns.push(/* @__PURE__ */ jsxRuntimeExports.jsx(Memoized, _extends$2({}, sortColumnLookup[colDef.field], {
58492
+ columns.push(/* @__PURE__ */ jsxRuntimeExports.jsx(Memoized, _extends$1({}, sortColumnLookup[colDef.field], {
58487
58493
  columnMenuOpen: open,
58488
58494
  filterItemsCounter: filterColumnLookup[colDef.field] && filterColumnLookup[colDef.field].length,
58489
58495
  headerHeight,
@@ -58556,7 +58562,7 @@ const useGridColumnHeaders = (props) => {
58556
58562
  columnFields
58557
58563
  }) => groupId === lastGroupToRender && columnFields.includes(lastColumnFieldToRender));
58558
58564
  const visibleColumnGroupHeader = rowStructure.slice(firstGroupIndex, lastGroupIndex + 1).map((groupStructure) => {
58559
- return _extends$2({}, groupStructure, {
58565
+ return _extends$1({}, groupStructure, {
58560
58566
  columnFields: groupStructure.columnFields.filter((field) => columnVisibility[field] !== false)
58561
58567
  });
58562
58568
  }).filter((groupStructure) => groupStructure.columnFields.length > 0);
@@ -58685,7 +58691,7 @@ const GridBaseColumnHeaders = forwardRef(function GridColumnHeaders(props, ref)
58685
58691
  } = props, other = _objectWithoutPropertiesLoose(props, _excluded$3);
58686
58692
  const rootProps = useGridRootProps();
58687
58693
  const classes2 = useUtilityClasses$7(rootProps);
58688
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeadersRoot, _extends$2({
58694
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeadersRoot, _extends$1({
58689
58695
  className: clsx(classes2.root, className),
58690
58696
  ownerState: rootProps
58691
58697
  }, other, {
@@ -58727,7 +58733,7 @@ const GridColumnHeaders2 = forwardRef(function GridColumnHeaders22(props, ref) {
58727
58733
  columnGroupsHeaderStructure,
58728
58734
  hasOtherElementInTabSequence
58729
58735
  });
58730
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridBaseColumnHeaders, _extends$2({}, other, getInnerProps(), {
58736
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridBaseColumnHeaders, _extends$1({}, other, getInnerProps(), {
58731
58737
  ref,
58732
58738
  children: [getColumnGroupHeadersRows(), getColumnHeadersRow()]
58733
58739
  }));
@@ -58776,7 +58782,7 @@ function GridPinnedRows(_) {
58776
58782
  const GridNoResultsOverlay = forwardRef(function GridNoResultsOverlay2(props, ref) {
58777
58783
  const apiRef = useGridApiContext();
58778
58784
  const noResultsOverlayLabel = apiRef.current.getLocaleText("noResultsOverlayLabel");
58779
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$2({}, props, {
58785
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$1({}, props, {
58780
58786
  ref,
58781
58787
  children: noResultsOverlayLabel
58782
58788
  }));
@@ -60909,7 +60915,7 @@ const GridColumnUnsortedIcon = /* @__PURE__ */ React.memo(function GridColumnHea
60909
60915
  const rootProps = useGridRootProps();
60910
60916
  const [nextSortDirection] = sortingOrder;
60911
60917
  const Icon = nextSortDirection === "asc" ? rootProps.slots.columnSortedAscendingIcon : rootProps.slots.columnSortedDescendingIcon;
60912
- return Icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$2({}, other)) : null;
60918
+ return Icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$1({}, other)) : null;
60913
60919
  });
60914
60920
  const encoder = new TextEncoder();
60915
60921
  let bufferLength = 2 * 1024;
@@ -61126,7 +61132,7 @@ const BaseSelect = forwardRef(function BaseSelect2(props, ref) {
61126
61132
  shrink: true,
61127
61133
  variant: "outlined",
61128
61134
  children: label
61129
- }), /* @__PURE__ */ jsxRuntimeExports.jsx(Select, _extends$2({
61135
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(Select, _extends$1({
61130
61136
  id,
61131
61137
  labelId,
61132
61138
  label,
@@ -61182,13 +61188,13 @@ const BasePagination = forwardRef(function BasePagination2(props, ref) {
61182
61188
  const {
61183
61189
  estimatedRowCount
61184
61190
  } = rootProps;
61185
- return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledPagination, _extends$2({
61191
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledPagination, _extends$1({
61186
61192
  component: "div",
61187
61193
  onRowsPerPageChange: useEventCallback((event) => {
61188
61194
  onRowsPerPageChange == null ? void 0 : onRowsPerPageChange(Number(event.target.value));
61189
61195
  }),
61190
61196
  labelRowsPerPage: apiRef.current.getLocaleText("paginationRowsPerPage"),
61191
- labelDisplayedRows: (params) => apiRef.current.getLocaleText("paginationDisplayedRows")(_extends$2({}, params, {
61197
+ labelDisplayedRows: (params) => apiRef.current.getLocaleText("paginationDisplayedRows")(_extends$1({}, params, {
61192
61198
  estimated: estimatedRowCount
61193
61199
  })),
61194
61200
  getItemAriaLabel: apiRef.current.getLocaleText("paginationItemAriaLabel")
@@ -61200,7 +61206,7 @@ const BaseBadge = forwardRef(function BaseBadge2(props, ref) {
61200
61206
  const {
61201
61207
  material
61202
61208
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded3);
61203
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, _extends$2({}, rest, material, {
61209
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, _extends$1({}, rest, material, {
61204
61210
  ref
61205
61211
  }));
61206
61212
  });
@@ -61228,7 +61234,7 @@ const BaseCheckbox = forwardRef(function BaseCheckbox2(props, ref) {
61228
61234
  }
61229
61235
  }, [autoFocus]);
61230
61236
  if (!label) {
61231
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, _extends$2({}, other, material, {
61237
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, _extends$1({}, other, material, {
61232
61238
  className: clsx(className, material == null ? void 0 : material.className),
61233
61239
  inputProps: slotProps == null ? void 0 : slotProps.htmlInput,
61234
61240
  ref: handleRef,
@@ -61237,7 +61243,7 @@ const BaseCheckbox = forwardRef(function BaseCheckbox2(props, ref) {
61237
61243
  }
61238
61244
  return /* @__PURE__ */ jsxRuntimeExports.jsx(FormControlLabel, {
61239
61245
  className,
61240
- control: /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, _extends$2({}, other, material, {
61246
+ control: /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, _extends$1({}, other, material, {
61241
61247
  inputProps: slotProps == null ? void 0 : slotProps.htmlInput,
61242
61248
  ref: handleRef,
61243
61249
  touchRippleRef: rippleRef
@@ -61250,7 +61256,7 @@ const BaseCircularProgress = forwardRef(function BaseCircularProgress2(props, re
61250
61256
  const {
61251
61257
  material
61252
61258
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded5);
61253
- return /* @__PURE__ */ jsxRuntimeExports.jsx(CircularProgress, _extends$2({}, rest, material, {
61259
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(CircularProgress, _extends$1({}, rest, material, {
61254
61260
  ref
61255
61261
  }));
61256
61262
  });
@@ -61258,7 +61264,7 @@ const BaseDivider = forwardRef(function BaseDivider2(props, ref) {
61258
61264
  const {
61259
61265
  material
61260
61266
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded6);
61261
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Divider$1, _extends$2({}, rest, material, {
61267
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Divider$1, _extends$1({}, rest, material, {
61262
61268
  ref
61263
61269
  }));
61264
61270
  });
@@ -61266,7 +61272,7 @@ const BaseLinearProgress = forwardRef(function BaseLinearProgress2(props, ref) {
61266
61272
  const {
61267
61273
  material
61268
61274
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded7);
61269
- return /* @__PURE__ */ jsxRuntimeExports.jsx(LinearProgress, _extends$2({}, rest, material, {
61275
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(LinearProgress, _extends$1({}, rest, material, {
61270
61276
  ref
61271
61277
  }));
61272
61278
  });
@@ -61274,7 +61280,7 @@ const BaseButton = forwardRef(function BaseButton2(props, ref) {
61274
61280
  const {
61275
61281
  material
61276
61282
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded8);
61277
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Button, _extends$2({}, rest, material, {
61283
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Button, _extends$1({}, rest, material, {
61278
61284
  ref
61279
61285
  }));
61280
61286
  });
@@ -61282,7 +61288,7 @@ const BaseIconButton = forwardRef(function BaseIconButton2(props, ref) {
61282
61288
  const {
61283
61289
  material
61284
61290
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded9);
61285
- return /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, _extends$2({}, rest, material, {
61291
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, _extends$1({}, rest, material, {
61286
61292
  ref
61287
61293
  }));
61288
61294
  });
@@ -61290,7 +61296,7 @@ const BaseTooltip = forwardRef(function BaseTooltip2(props, ref) {
61290
61296
  const {
61291
61297
  material
61292
61298
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded10);
61293
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, _extends$2({}, rest, material, {
61299
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, _extends$1({}, rest, material, {
61294
61300
  ref
61295
61301
  }));
61296
61302
  });
@@ -61298,7 +61304,7 @@ const BaseSkeleton = forwardRef(function BaseSkeleton2(props, ref) {
61298
61304
  const {
61299
61305
  material
61300
61306
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded11);
61301
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton, _extends$2({}, rest, material, {
61307
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton, _extends$1({}, rest, material, {
61302
61308
  ref
61303
61309
  }));
61304
61310
  });
@@ -61306,7 +61312,7 @@ const BaseSwitch = forwardRef(function BaseSwitch2(props, ref) {
61306
61312
  const {
61307
61313
  material
61308
61314
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded12);
61309
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Switch, _extends$2({}, rest, material, {
61315
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Switch, _extends$1({}, rest, material, {
61310
61316
  ref
61311
61317
  }));
61312
61318
  });
@@ -61314,7 +61320,7 @@ const BaseMenuList = forwardRef(function BaseMenuList2(props, ref) {
61314
61320
  const {
61315
61321
  material
61316
61322
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded13);
61317
- return /* @__PURE__ */ jsxRuntimeExports.jsx(MenuList, _extends$2({}, rest, material, {
61323
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(MenuList, _extends$1({}, rest, material, {
61318
61324
  ref
61319
61325
  }));
61320
61326
  });
@@ -61341,12 +61347,12 @@ function BaseTextField(props) {
61341
61347
  slotProps,
61342
61348
  material
61343
61349
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded15);
61344
- return /* @__PURE__ */ jsxRuntimeExports.jsx(TextField, _extends$2({
61350
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(TextField, _extends$1({
61345
61351
  variant: "outlined"
61346
61352
  }, rest, material, {
61347
61353
  inputProps: slotProps == null ? void 0 : slotProps.htmlInput,
61348
61354
  InputProps: transformInputProps(slotProps == null ? void 0 : slotProps.input),
61349
- InputLabelProps: _extends$2({
61355
+ InputLabelProps: _extends$1({
61350
61356
  shrink: true
61351
61357
  }, slotProps == null ? void 0 : slotProps.inputLabel)
61352
61358
  }));
@@ -61367,7 +61373,7 @@ function BaseAutocomplete(props) {
61367
61373
  slotProps,
61368
61374
  material
61369
61375
  } = props, rest = _objectWithoutPropertiesLoose(props, _excluded16);
61370
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Autocomplete, _extends$2({
61376
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Autocomplete, _extends$1({
61371
61377
  id,
61372
61378
  multiple,
61373
61379
  freeSolo,
@@ -61382,7 +61388,7 @@ function BaseAutocomplete(props) {
61382
61388
  }), {
61383
61389
  key
61384
61390
  } = _getTagProps, tagProps = _objectWithoutPropertiesLoose(_getTagProps, _excluded17);
61385
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Chip, _extends$2({
61391
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Chip, _extends$1({
61386
61392
  variant: "outlined",
61387
61393
  size: "small",
61388
61394
  label: typeof option === "string" ? option : getOptionLabel == null ? void 0 : getOptionLabel(option)
@@ -61395,12 +61401,12 @@ function BaseAutocomplete(props) {
61395
61401
  InputProps,
61396
61402
  InputLabelProps
61397
61403
  } = params, inputRest = _objectWithoutPropertiesLoose(params, _excluded18);
61398
- return /* @__PURE__ */ jsxRuntimeExports.jsx(TextField, _extends$2({}, inputRest, {
61404
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(TextField, _extends$1({}, inputRest, {
61399
61405
  label,
61400
61406
  placeholder,
61401
61407
  inputProps,
61402
61408
  InputProps: transformInputProps(InputProps, false),
61403
- InputLabelProps: _extends$2({
61409
+ InputLabelProps: _extends$1({
61404
61410
  shrink: true
61405
61411
  }, InputLabelProps)
61406
61412
  }, slotProps == null ? void 0 : slotProps.textField, (_a = rootProps.slotProps) == null ? void 0 : _a.baseTextField));
@@ -61408,7 +61414,7 @@ function BaseAutocomplete(props) {
61408
61414
  }, rest, material));
61409
61415
  }
61410
61416
  function BaseInput(props) {
61411
- return /* @__PURE__ */ jsxRuntimeExports.jsx(InputBase, _extends$2({}, transformInputProps(props)));
61417
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(InputBase, _extends$1({}, transformInputProps(props)));
61412
61418
  }
61413
61419
  function transformInputProps(props, wrapAdornments = true) {
61414
61420
  if (!props) {
@@ -61440,7 +61446,7 @@ function transformInputProps(props, wrapAdornments = true) {
61440
61446
  }
61441
61447
  if (slotProps == null ? void 0 : slotProps.htmlInput) {
61442
61448
  if (result.inputProps) {
61443
- result.inputProps = _extends$2({}, result.inputProps, slotProps == null ? void 0 : slotProps.htmlInput);
61449
+ result.inputProps = _extends$1({}, result.inputProps, slotProps == null ? void 0 : slotProps.htmlInput);
61444
61450
  } else {
61445
61451
  result.inputProps = slotProps == null ? void 0 : slotProps.htmlInput;
61446
61452
  }
@@ -61506,7 +61512,7 @@ function BasePopper(props) {
61506
61512
  };
61507
61513
  content = (p) => {
61508
61514
  var _a;
61509
- return wrappers(props, /* @__PURE__ */ jsxRuntimeExports.jsx(Grow, _extends$2({}, p.TransitionProps, {
61515
+ return wrappers(props, /* @__PURE__ */ jsxRuntimeExports.jsx(Grow, _extends$1({}, p.TransitionProps, {
61510
61516
  style: {
61511
61517
  transformOrigin: transformOrigin[p.placement]
61512
61518
  },
@@ -61517,7 +61523,7 @@ function BasePopper(props) {
61517
61523
  })));
61518
61524
  };
61519
61525
  }
61520
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Popper$2, _extends$2({
61526
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Popper$2, _extends$1({
61521
61527
  id,
61522
61528
  className,
61523
61529
  open,
@@ -61562,9 +61568,9 @@ function BaseSelectOption(_ref) {
61562
61568
  native
61563
61569
  } = _ref, props = _objectWithoutPropertiesLoose(_ref, _excluded21);
61564
61570
  if (native) {
61565
- return /* @__PURE__ */ jsxRuntimeExports.jsx("option", _extends$2({}, props));
61571
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("option", _extends$1({}, props));
61566
61572
  }
61567
- return /* @__PURE__ */ jsxRuntimeExports.jsx(MenuItem, _extends$2({}, props));
61573
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(MenuItem, _extends$1({}, props));
61568
61574
  }
61569
61575
  const iconSlots = {
61570
61576
  booleanCellTrueIcon: GridCheckIcon,
@@ -61626,7 +61632,7 @@ const baseSlots = {
61626
61632
  baseSkeleton: BaseSkeleton,
61627
61633
  baseSwitch: BaseSwitch
61628
61634
  };
61629
- const materialSlots = _extends$2({}, baseSlots, iconSlots);
61635
+ const materialSlots = _extends$1({}, baseSlots, iconSlots);
61630
61636
  const useUtilityClasses = () => {
61631
61637
  const slots = {
61632
61638
  root: ["bottomContainer"]
@@ -61640,12 +61646,12 @@ const Element$1 = styled$1("div")({
61640
61646
  });
61641
61647
  function GridBottomContainer(props) {
61642
61648
  const classes2 = useUtilityClasses();
61643
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Element$1, _extends$2({}, props, {
61649
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Element$1, _extends$1({}, props, {
61644
61650
  className: clsx(classes2.root, gridClasses["container--bottom"]),
61645
61651
  role: "presentation"
61646
61652
  }));
61647
61653
  }
61648
- const DATA_GRID_DEFAULT_SLOTS_COMPONENTS = _extends$2({}, materialSlots, {
61654
+ const DATA_GRID_DEFAULT_SLOTS_COMPONENTS = _extends$1({}, materialSlots, {
61649
61655
  cell: MemoizedGridCell,
61650
61656
  skeletonCell: Memoized$1,
61651
61657
  columnHeaderFilterIconButton: GridColumnHeaderFilterIconButtonWrapped,
@@ -61681,7 +61687,7 @@ const DATA_GRID_FORCED_PROPS = {
61681
61687
  signature: "DataGrid",
61682
61688
  listView: false
61683
61689
  };
61684
- const getDataGridForcedProps = (themedProps) => _extends$2({}, DATA_GRID_FORCED_PROPS, themedProps.dataSource ? {
61690
+ const getDataGridForcedProps = (themedProps) => _extends$1({}, DATA_GRID_FORCED_PROPS, themedProps.dataSource ? {
61685
61691
  filterMode: "server",
61686
61692
  sortingMode: "server",
61687
61693
  paginationMode: "server"
@@ -61695,7 +61701,7 @@ const useDataGridProps = (inProps) => {
61695
61701
  name: "MuiDataGrid"
61696
61702
  })
61697
61703
  );
61698
- const localeText = React.useMemo(() => _extends$2({}, GRID_DEFAULT_LOCALE_TEXT, themedProps.localeText), [themedProps.localeText]);
61704
+ const localeText = React.useMemo(() => _extends$1({}, GRID_DEFAULT_LOCALE_TEXT, themedProps.localeText), [themedProps.localeText]);
61699
61705
  const slots = React.useMemo(() => computeSlots({
61700
61706
  defaultSlots,
61701
61707
  slots: themedProps.slots
@@ -61706,7 +61712,7 @@ const useDataGridProps = (inProps) => {
61706
61712
  return acc;
61707
61713
  }, {});
61708
61714
  }, [themedProps]);
61709
- return React.useMemo(() => _extends$2({}, themedProps, injectDefaultProps, {
61715
+ return React.useMemo(() => _extends$1({}, themedProps, injectDefaultProps, {
61710
61716
  localeText,
61711
61717
  slots
61712
61718
  }, getDataGridForcedProps(themedProps)), [themedProps, localeText, slots, injectDefaultProps]);
@@ -61729,7 +61735,7 @@ const DataGridRaw = forwardRef(function DataGrid2(inProps, ref) {
61729
61735
  privateApiRef,
61730
61736
  configuration,
61731
61737
  props,
61732
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(MemoizedGridRoot, _extends$2({
61738
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(MemoizedGridRoot, _extends$1({
61733
61739
  className: props.className,
61734
61740
  style: props.style,
61735
61741
  sx: props.sx