@takecasper/acuity-design-system 2.4.1 → 2.4.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.
package/dist/index.es.js CHANGED
@@ -3,10 +3,10 @@ import * as g from "react";
3
3
  import It, { useState as Re, useMemo as Lr, useCallback as Dt, useEffect as Et, Fragment as Yo, forwardRef as Po, useId as Fo, createContext as nf, useContext as rf, useRef as Ot, createElement as Tr, memo as Fa, isValidElement as of, cloneElement as lf, useLayoutEffect as sf } from "react";
4
4
  import { Transition as af, Dialog as cf, TransitionChild as Os, DialogPanel as uf, DialogTitle as df } from "@headlessui/react";
5
5
  import Ta from "@mui/icons-material/Add";
6
- import { ButtonBase as ff, Box as Ce, TextField as To, Select as $l, MenuItem as Rr, Button as sn, Typography as Ge, Alert as Oa, Backdrop as hf, Slide as gf, Paper as Nl, AppBar as Ls, Toolbar as Rs, IconButton as Cn, TableContainer as mf, LinearProgress as pf, Tooltip as fo, Table as bf, SvgIcon as Oo, Checkbox as La, InputAdornment as Ds, TableHead as Cf, TableRow as wf, CircularProgress as yf, Menu as vf, Avatar as Sf, FormControl as Lo, Stack as Hs, styled as ut, Divider as xf, BottomNavigation as kf, useTheme as If, Radio as Ra, RadioGroup as Da, FormControlLabel as Ha, Step as Mf, Stepper as Ef, StepLabel as Pf, FormLabel as Ff, ThemeProvider as Tf, CssBaseline as Of } from "@mui/material";
6
+ import { ButtonBase as ff, Box as Ce, TextField as To, Select as $l, MenuItem as Rr, Button as sn, Typography as Ge, Alert as Oa, Backdrop as hf, Slide as gf, Paper as Nl, AppBar as Ls, Toolbar as Rs, IconButton as Cn, TableContainer as mf, LinearProgress as pf, Tooltip as fo, Table as bf, SvgIcon as Oo, Checkbox as La, InputAdornment as Ds, TableHead as Cf, TableRow as wf, CircularProgress as yf, Menu as vf, Avatar as Sf, FormControl as Lo, Stack as Hs, styled as dt, Divider as xf, BottomNavigation as kf, useTheme as If, Radio as Ra, RadioGroup as Da, FormControlLabel as Ha, Step as Mf, Stepper as Ef, StepLabel as Pf, FormLabel as Ff, ThemeProvider as Tf, CssBaseline as Of } from "@mui/material";
7
7
  import Lf from "@mui/icons-material/FileUploadOutlined";
8
8
  import Rf from "@mui/icons-material/Menu";
9
- import { useTheme as ht, styled as ze, alpha as bn, lighten as Df, darken as Hf, decomposeColor as As, recomposeColor as Af, createTheme as Vf } from "@mui/material/styles";
9
+ import { useTheme as gt, styled as ze, alpha as bn, lighten as Df, darken as Hf, decomposeColor as As, recomposeColor as Af, createTheme as Vf } from "@mui/material/styles";
10
10
  import Jt from "@mui/utils/useLazyRef";
11
11
  import { useRtl as en } from "@mui/system/RtlProvider";
12
12
  import Aa from "@mui/utils/useEnhancedEffect";
@@ -7055,7 +7055,7 @@ const Lm = We("preflight ds:font-sans!", {
7055
7055
  ] }) : null, Cc = nf(
7056
7056
  null
7057
7057
  ), cp = () => rf(Cc), up = ({ children: e, isOpen: t, onClose: n }) => {
7058
- const r = ht(), o = cp(), l = Ot(null);
7058
+ const r = gt(), o = cp(), l = Ot(null);
7059
7059
  return /* @__PURE__ */ U(Mt, { children: [
7060
7060
  /* @__PURE__ */ d(
7061
7061
  hf,
@@ -7130,7 +7130,7 @@ const Lm = We("preflight ds:font-sans!", {
7130
7130
  backgroundColor: a
7131
7131
  }) => {
7132
7132
  var p, b, y, w;
7133
- const c = ht(), [u, h] = Re(!1), m = Ot(null);
7133
+ const c = gt(), [u, h] = Re(!1), m = Ot(null);
7134
7134
  return /* @__PURE__ */ U(
7135
7135
  Ce,
7136
7136
  {
@@ -8541,7 +8541,7 @@ const Wt = {
8541
8541
  return i || pi.set(l, a), a.set(e, u), u(s, l);
8542
8542
  };
8543
8543
  return t.acceptsApiRef = !0, t;
8544
- }, ct = (e) => e.dimensions, Do = he(ct, (e) => e.columnsTotalWidth), ns = (e) => e.dimensions.rowHeight, Wp = (e) => e.dimensions.contentSize.height, jp = (e) => e.dimensions.hasScrollX, qp = (e) => e.dimensions.hasScrollY, Oc = (e) => e.dimensions.columnsTotalWidth < e.dimensions.viewportOuterSize.width, Up = (e) => e.dimensions.headerHeight, Kp = (e) => e.dimensions.groupHeaderHeight, Lc = (e) => e.dimensions.hasScrollY ? e.dimensions.scrollbarSize : 0, Xp = (e) => {
8544
+ }, ut = (e) => e.dimensions, Do = he(ut, (e) => e.columnsTotalWidth), ns = (e) => e.dimensions.rowHeight, Wp = (e) => e.dimensions.contentSize.height, jp = (e) => e.dimensions.hasScrollX, qp = (e) => e.dimensions.hasScrollY, Oc = (e) => e.dimensions.columnsTotalWidth < e.dimensions.viewportOuterSize.width, Up = (e) => e.dimensions.headerHeight, Kp = (e) => e.dimensions.groupHeaderHeight, Lc = (e) => e.dimensions.hasScrollY ? e.dimensions.scrollbarSize : 0, Xp = (e) => {
8545
8545
  const t = e.dimensions.hasScrollX ? e.dimensions.scrollbarSize : 0, n = e.dimensions.viewportOuterSize.height - e.dimensions.minimumSize.height > 0;
8546
8546
  return !(t === 0 && !n);
8547
8547
  };
@@ -9903,9 +9903,9 @@ const W1 = (e) => /* @__PURE__ */ d(Xc, C({}, e)), Ao = "actions", j1 = C({}, jt
9903
9903
  disableExport: !0,
9904
9904
  renderCell: W1,
9905
9905
  getApplyQuickFilterFn: void 0
9906
- }), mt = "auto-generated-group-node-root", er = Symbol("mui.id_autogenerated"), q1 = () => ({
9906
+ }), pt = "auto-generated-group-node-root", er = Symbol("mui.id_autogenerated"), q1 = () => ({
9907
9907
  type: "group",
9908
- id: mt,
9908
+ id: pt,
9909
9909
  depth: -1,
9910
9910
  groupingField: null,
9911
9911
  groupingKey: null,
@@ -9949,7 +9949,7 @@ const Vo = (e, t, n) => {
9949
9949
  tree: e,
9950
9950
  rowCountProp: t = 0
9951
9951
  }) => {
9952
- const n = e[mt];
9952
+ const n = e[pt];
9953
9953
  return Math.max(t, n.children.length + (n.footerId == null ? 0 : 1));
9954
9954
  }, Zc = ({
9955
9955
  apiRef: e,
@@ -10441,10 +10441,10 @@ const sb = () => [{
10441
10441
  sortIndex: e.length > 1 ? o + 1 : void 0
10442
10442
  }, n), {}));
10443
10443
  Oe(dr, (e) => e.reduce((t, n, r) => (t[n] = r, t), /* @__PURE__ */ Object.create(null)));
10444
- const No = (e) => e.filter, ft = he(No, (e) => e.filterModel), ub = he(ft, (e) => e.quickFilterValues), db = (e) => e.visibleRowsLookup, fr = he(No, (e) => e.filteredRowsLookup);
10444
+ const No = (e) => e.filter, ht = he(No, (e) => e.filterModel), ub = he(ht, (e) => e.quickFilterValues), db = (e) => e.visibleRowsLookup, fr = he(No, (e) => e.filteredRowsLookup);
10445
10445
  he(No, (e) => e.filteredChildrenCountLookup);
10446
10446
  he(No, (e) => e.filteredDescendantCountLookup);
10447
- const In = Oe(db, as, $n, ft, ub, (e, t, n, r, o) => n < 2 && !r.items.length && !(o != null && o.length) ? t : t.filter((l) => e[l.id] !== !1)), Jn = Oe(In, (e) => e.map((t) => t.id)), su = Oe(fr, as, (e, t) => t.filter((n) => e[n.id] !== !1)), iu = Oe(su, (e) => e.map((t) => t.id));
10447
+ const In = Oe(db, as, $n, ht, ub, (e, t, n, r, o) => n < 2 && !r.items.length && !(o != null && o.length) ? t : t.filter((l) => e[l.id] !== !1)), Jn = Oe(In, (e) => e.map((t) => t.id)), su = Oe(fr, as, (e, t) => t.filter((n) => e[n.id] !== !1)), iu = Oe(su, (e) => e.map((t) => t.id));
10448
10448
  Oe(Jn, rt, (e, t) => {
10449
10449
  const n = {};
10450
10450
  let r = 0;
@@ -10458,7 +10458,7 @@ const au = Oe(In, rt, $n, (e, t, n) => n < 2 ? e : e.filter((r) => {
10458
10458
  return ((o = t[r.id]) == null ? void 0 : o.depth) === 0;
10459
10459
  })), cs = he(In, (e) => e.length), us = he(au, (e) => e.length), fb = he(su, (e) => e.length);
10460
10460
  he(fb, us, (e, t) => e - t);
10461
- const cu = Oe(ft, un, (e, t) => {
10461
+ const cu = Oe(ht, un, (e, t) => {
10462
10462
  var n;
10463
10463
  return (n = e.items) == null ? void 0 : n.filter((r) => {
10464
10464
  var s, i;
@@ -10515,7 +10515,7 @@ function ds(e) {
10515
10515
  const bb = (e, t) => {
10516
10516
  const n = [];
10517
10517
  let r = t;
10518
- for (; r != null && r !== mt; ) {
10518
+ for (; r != null && r !== pt; ) {
10519
10519
  const o = e[r];
10520
10520
  if (!o)
10521
10521
  return n;
@@ -10547,7 +10547,7 @@ const bb = (e, t) => {
10547
10547
  const m = Cb(t, i, h);
10548
10548
  if (m.length === 0 || m.every(c)) {
10549
10549
  const p = t[h], b = p == null ? void 0 : p.parent;
10550
- b != null && b !== mt && e.current.isRowSelectable(b) && (l(b), a.add(b), u(b));
10550
+ b != null && b !== pt && e.current.isRowSelectable(b) && (l(b), a.add(b), u(b));
10551
10551
  }
10552
10552
  };
10553
10553
  u(n);
@@ -10704,7 +10704,7 @@ function ye(e, t, n) {
10704
10704
  r.current = !1, e.current.register(n, t);
10705
10705
  }, [e, n, t]), r.current && e.current.register(n, t);
10706
10706
  }
10707
- function dt(e, t) {
10707
+ function ft(e, t) {
10708
10708
  const n = g.useRef(null);
10709
10709
  if (n.current)
10710
10710
  return n.current;
@@ -10712,7 +10712,7 @@ function dt(e, t) {
10712
10712
  return n.current = r, r;
10713
10713
  }
10714
10714
  const hu = (e, t, n, r, o) => {
10715
- const l = dt(e, "useNativeEventListener");
10715
+ const l = ft(e, "useNativeEventListener");
10716
10716
  Ae(e, "rootMount", () => {
10717
10717
  const s = typeof t == "function" ? t() : t.current;
10718
10718
  if (!(!s || !n || !r))
@@ -10734,7 +10734,7 @@ const hu = (e, t, n, r, o) => {
10734
10734
  if (t === Pt.DataGrid && e > Mb)
10735
10735
  throw new Error(["MUI X: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.", "You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
10736
10736
  `));
10737
- }, Fb = -1, jr = (e) => e.pagination, bu = he(jr, (e) => e.enabled && e.paginationMode === "client"), pt = he(jr, (e) => e.paginationModel), Kn = he(jr, (e) => e.rowCount), Pr = he(jr, (e) => e.meta), Tb = he(pt, (e) => e.page), Cu = he(pt, (e) => e.pageSize), wu = he(pt, Kn, (e, t) => gu(t, e.pageSize, e.page)), hs = Oe(bu, pt, rt, $n, In, au, (e, t, n, r, o, l) => {
10737
+ }, Fb = -1, jr = (e) => e.pagination, bu = he(jr, (e) => e.enabled && e.paginationMode === "client"), bt = he(jr, (e) => e.paginationModel), Kn = he(jr, (e) => e.rowCount), Pr = he(jr, (e) => e.meta), Tb = he(bt, (e) => e.page), Cu = he(bt, (e) => e.pageSize), wu = he(bt, Kn, (e, t) => gu(t, e.pageSize, e.page)), hs = Oe(bu, bt, rt, $n, In, au, (e, t, n, r, o, l) => {
10738
10738
  var b;
10739
10739
  if (!e)
10740
10740
  return null;
@@ -11911,7 +11911,7 @@ const gr = (e) => e.rowsMeta, yo = 1, Ou = 1.5, mC = (e) => {
11911
11911
  right: 0,
11912
11912
  height: 20
11913
11913
  }
11914
- })), bC = _r(ct, (e, t) => t === "left" ? e.leftPinnedWidth : t === "right" ? e.rightPinnedWidth + (e.hasScrollX ? e.scrollbarSize : 0) : 0);
11914
+ })), bC = _r(ut, (e, t) => t === "left" ? e.leftPinnedWidth : t === "right" ? e.rightPinnedWidth + (e.hasScrollX ? e.scrollbarSize : 0) : 0);
11915
11915
  function CC(e) {
11916
11916
  const t = ve(), [n, r] = g.useState("none");
11917
11917
  return oe(t, "columnHeaderDragStart", () => r("horizontal")), oe(t, "columnHeaderDragEnd", () => r("none")), oe(t, "rowDragStart", () => r("vertical")), oe(t, "rowDragEnd", () => r("none")), n === "none" ? null : n === "horizontal" ? /* @__PURE__ */ d(wC, C({}, e)) : /* @__PURE__ */ d(yC, C({}, e));
@@ -11921,7 +11921,7 @@ function wC(e) {
11921
11921
  scrollDirection: t,
11922
11922
  scrollPosition: n
11923
11923
  } = e, r = g.useRef(null), o = ve(), l = Hn(), s = te(o, ir), i = te(o, Do), a = Hr(o, bC, t), c = () => {
11924
- const y = ct(o.current.state);
11924
+ const y = ut(o.current.state);
11925
11925
  if (t === "left")
11926
11926
  return n.current.left > 0;
11927
11927
  if (t === "right") {
@@ -11963,7 +11963,7 @@ function yC(e) {
11963
11963
  scrollDirection: t,
11964
11964
  scrollPosition: n
11965
11965
  } = e, r = g.useRef(null), o = ve(), l = Hn(), s = te(o, gr), i = () => {
11966
- const m = ct(o.current.state);
11966
+ const m = ut(o.current.state);
11967
11967
  if (t === "up")
11968
11968
  return n.current.top > 0;
11969
11969
  if (t === "down") {
@@ -12193,12 +12193,12 @@ const $i = {
12193
12193
  virtualization: C({}, pe.virtualization, {
12194
12194
  renderContext: ee
12195
12195
  })
12196
- })), ct(e.current.state).isReady && le && (F.current = ee, e.current.publishEvent("renderedRowsIntervalChange", ee)), E.current = H.current;
12196
+ })), ut(e.current.state).isReady && le && (F.current = ee, e.current.publishEvent("renderedRowsIntervalChange", ee)), E.current = H.current;
12197
12197
  }, [e]), j = Ke(() => {
12198
12198
  const ee = w.current;
12199
12199
  if (!ee)
12200
12200
  return;
12201
- const le = ct(e.current.state), ce = Math.ceil(le.minimumSize.height - le.viewportOuterSize.height), pe = Math.ceil(le.minimumSize.width - le.viewportInnerSize.width), fe = {
12201
+ const le = ut(e.current.state), ce = Math.ceil(le.minimumSize.height - le.viewportOuterSize.height), pe = Math.ceil(le.minimumSize.width - le.viewportInnerSize.width), fe = {
12202
12202
  top: Ft(ee.scrollTop, 0, ce),
12203
12203
  left: m ? Ft(ee.scrollLeft, -pe, 0) : Ft(ee.scrollLeft, 0, pe)
12204
12204
  }, xe = fe.left - H.current.left, Te = fe.top - H.current.top, tt = xe !== 0 || Te !== 0;
@@ -12223,7 +12223,7 @@ const $i = {
12223
12223
  _(se);
12224
12224
  }), B.start(1e3, j)), se;
12225
12225
  }), q = () => {
12226
- if (!ct(e.current.state).isReady && (o || l))
12226
+ if (!ut(e.current.state).isReady && (o || l))
12227
12227
  return;
12228
12228
  const ee = Ni(e, t, o, l), le = zi(ee, H.current, A);
12229
12229
  x.current = void 0, _(le);
@@ -12310,7 +12310,7 @@ const $i = {
12310
12310
  }
12311
12311
  let Ee = ce;
12312
12312
  x.current && be >= x.current.firstRowIndex && be < x.current.lastRowIndex && (Ee = x.current);
12313
- const Ve = be === Ze, gt = (G == null ? void 0 : G.rowIndex) === lt, tn = Au(De, Ee, a.left.length), Uo = Ut && ee.position === "top", Ko = Ee.firstColumnIndex, Zr = Ee.lastColumnIndex;
12313
+ const Ve = be === Ze, mt = (G == null ? void 0 : G.rowIndex) === lt, tn = Au(De, Ee, a.left.length), Uo = Ut && ee.position === "top", Ko = Ee.firstColumnIndex, Zr = Ee.lastColumnIndex;
12314
12314
  if (qe.push(/* @__PURE__ */ d(t.slots.row, C({
12315
12315
  row: Qe,
12316
12316
  rowId: ge,
@@ -12323,7 +12323,7 @@ const $i = {
12323
12323
  visibleColumns: r,
12324
12324
  firstColumnIndex: Ko,
12325
12325
  lastColumnIndex: Zr,
12326
- focusedColumnIndex: gt ? G.columnIndex : void 0,
12326
+ focusedColumnIndex: mt ? G.columnIndex : void 0,
12327
12327
  isFirstVisible: zt,
12328
12328
  isLastVisible: qt,
12329
12329
  isNotVisible: Ve,
@@ -12425,7 +12425,7 @@ function $C(e) {
12425
12425
  }
12426
12426
  function Ni(e, t, n, r) {
12427
12427
  var u, h;
12428
- const o = ct(e.current.state), l = vn(e), s = t.unstable_listView ? [rr(e.current.state)] : Xe(e), i = RC(e), a = e.current.state.rows.dataRowIds.at(-1), c = s.at(-1);
12428
+ const o = ut(e.current.state), l = vn(e), s = t.unstable_listView ? [rr(e.current.state)] : Xe(e), i = RC(e), a = e.current.state.rows.dataRowIds.at(-1), c = s.at(-1);
12429
12429
  return {
12430
12430
  enabledForRows: n,
12431
12431
  enabledForColumns: r,
@@ -12685,7 +12685,7 @@ const _C = () => {
12685
12685
  }, Me, t);
12686
12686
  };
12687
12687
  function $u(e) {
12688
- const t = ve(), n = ie(), r = te(t, ct);
12688
+ const t = ve(), n = ie(), r = te(t, ut);
12689
12689
  let o = Math.max(r.viewportOuterSize.height - r.topContainerHeight - r.bottomContainerHeight - (r.hasScrollX ? r.scrollbarSize : 0), 0);
12690
12690
  o === 0 && (o = Qc);
12691
12691
  const l = jC(C({}, e, {
@@ -12882,7 +12882,7 @@ function u0({
12882
12882
  scrollbarSize: s,
12883
12883
  leftPinnedWidth: i,
12884
12884
  rightPinnedWidth: a
12885
- } = te(t, ct), c = o ? s : 0, u = n.height - r.height > 0;
12885
+ } = te(t, ut), c = o ? s : 0, u = n.height - r.height > 0;
12886
12886
  return c === 0 && !u ? null : /* @__PURE__ */ U(s0, {
12887
12887
  className: I.filler,
12888
12888
  role: "presentation",
@@ -12999,7 +12999,7 @@ const w0 = (e, t) => {
12999
12999
  },
13000
13000
  bottom: "0px"
13001
13001
  }), Bi = Pe(function(t, n) {
13002
- const r = $t(), o = ie(), l = g.useRef(!1), s = g.useRef(0), i = g.useRef(null), a = g.useRef(null), c = w0(o, t.position), u = te(r, ct), h = t.position === "vertical" ? "height" : "width", m = t.position === "vertical" ? "scrollTop" : "scrollLeft", p = t.position === "vertical" ? "top" : "left", b = t.position === "vertical" ? u.hasScrollX : u.hasScrollY, y = u.minimumSize[h] + (b ? u.scrollbarSize : 0), k = (t.position === "vertical" ? u.viewportInnerSize.height : u.viewportOuterSize.width) * (y / u.viewportOuterSize[h]), S = Ke(() => {
13002
+ const r = $t(), o = ie(), l = g.useRef(!1), s = g.useRef(0), i = g.useRef(null), a = g.useRef(null), c = w0(o, t.position), u = te(r, ut), h = t.position === "vertical" ? "height" : "width", m = t.position === "vertical" ? "scrollTop" : "scrollLeft", p = t.position === "vertical" ? "top" : "left", b = t.position === "vertical" ? u.hasScrollX : u.hasScrollY, y = u.minimumSize[h] + (b ? u.scrollbarSize : 0), k = (t.position === "vertical" ? u.viewportInnerSize.height : u.viewportOuterSize.width) * (y / u.viewportOuterSize[h]), S = Ke(() => {
13003
13003
  const v = i.current, $ = t.scrollPosition.current;
13004
13004
  if (!v || $[p] === s.current)
13005
13005
  return;
@@ -13313,16 +13313,16 @@ const Wu = Pe(function(t, n) {
13313
13313
  isSelected: _,
13314
13314
  isSelectionMode: fe
13315
13315
  }, Te = A0(xe), tt = g.useCallback((Ee) => (Ve) => {
13316
- const gt = H.current.getCellParams(l, F || "");
13317
- H.current.publishEvent(Ee, gt, Ve), $ && $(Ve);
13316
+ const mt = H.current.getCellParams(l, F || "");
13317
+ H.current.publishEvent(Ee, mt, Ve), $ && $(Ve);
13318
13318
  }, [H, F, $, l]), Le = g.useCallback((Ee) => (Ve) => {
13319
- const gt = H.current.getCellParams(l, F || "");
13320
- H.current.publishEvent(Ee, gt, Ve), v && v(Ve);
13321
- }, [H, F, v, l]), Fe = g.useCallback((Ee, Ve) => (gt) => {
13319
+ const mt = H.current.getCellParams(l, F || "");
13320
+ H.current.publishEvent(Ee, mt, Ve), v && v(Ve);
13321
+ }, [H, F, v, l]), Fe = g.useCallback((Ee, Ve) => (mt) => {
13322
13322
  if (!H.current.getRow(l))
13323
13323
  return;
13324
13324
  const tn = H.current.getCellParams(l, F || "");
13325
- H.current.publishEvent(Ee, tn, gt), Ve && Ve(gt);
13325
+ H.current.publishEvent(Ee, tn, mt), Ve && Ve(mt);
13326
13326
  }, [H, F, l]), Ze = (Nt = (Je = j[l]) == null ? void 0 : Je[F]) != null ? Nt : !1, qe = (qt = (zt = q[l]) == null ? void 0 : zt[F]) != null ? qt : 1, me = g.useMemo(() => {
13327
13327
  if (b)
13328
13328
  return {
@@ -13334,22 +13334,22 @@ const Wu = Pe(function(t, n) {
13334
13334
  };
13335
13335
  const Ee = jo(C({
13336
13336
  "--width": `${c}px`
13337
- }, h), E, w, y), Ve = w === Se.LEFT, gt = w === Se.RIGHT;
13338
- return qe > 1 && (Ee.height = `calc(var(--height) * ${qe})`, Ee.zIndex = 10, (Ve || gt) && (Ee.zIndex = 40)), Ee;
13337
+ }, h), E, w, y), Ve = w === Se.LEFT, mt = w === Se.RIGHT;
13338
+ return qe > 1 && (Ee.height = `calc(var(--height) * ${qe})`, Ee.zIndex = 10, (Ve || mt) && (Ee.zIndex = 40)), Ee;
13339
13339
  }, [c, b, h, y, w, E, qe]);
13340
13340
  if (g.useEffect(() => {
13341
13341
  if (!Q || x === He.Edit)
13342
13342
  return;
13343
13343
  const Ee = Tn(H.current.rootElementRef.current);
13344
13344
  if (le.current && !le.current.contains(Ee.activeElement)) {
13345
- const Ve = le.current.querySelector('[tabindex="0"]'), gt = pe.current || Ve || le.current;
13345
+ const Ve = le.current.querySelector('[tabindex="0"]'), mt = pe.current || Ve || le.current;
13346
13346
  if (ys())
13347
- gt.focus({
13347
+ mt.focus({
13348
13348
  preventScroll: !0
13349
13349
  });
13350
13350
  else {
13351
13351
  const tn = H.current.getScrollPosition();
13352
- gt.focus(), H.current.scroll(tn);
13352
+ mt.focus(), H.current.scroll(tn);
13353
13353
  }
13354
13354
  }
13355
13355
  }, [Q, x, H]), Ze)
@@ -13372,9 +13372,9 @@ const Wu = Pe(function(t, n) {
13372
13372
  });
13373
13373
  let we, se;
13374
13374
  if (D === null && r.renderCell && (we = r.renderCell(A)), D !== null && r.renderEditCell) {
13375
- const Ee = H.current.getRowWithUpdatedValues(l, r.field), Ve = de(D, H0), gt = r.valueFormatter ? r.valueFormatter(D.value, Ee, r, H) : A.formattedValue, tn = C({}, A, {
13375
+ const Ee = H.current.getRowWithUpdatedValues(l, r.field), Ve = de(D, H0), mt = r.valueFormatter ? r.valueFormatter(D.value, Ee, r, H) : A.formattedValue, tn = C({}, A, {
13376
13376
  row: Ee,
13377
- formattedValue: gt
13377
+ formattedValue: mt
13378
13378
  }, Ve);
13379
13379
  we = r.renderEditCell(tn), re.push(I["cell--editing"]), re.push(J == null ? void 0 : J["cell--editing"]);
13380
13380
  }
@@ -16032,7 +16032,7 @@ const D2 = ["item", "hasMultipleFilters", "deleteFilter", "applyFilterChanges",
16032
16032
  columnInputProps: k = {},
16033
16033
  valueInputProps: S = {},
16034
16034
  readOnly: T
16035
- } = t, O = de(t, D2), v = ve(), $ = te(v, un), z = te(v, qc), M = te(v, ft), P = et(), R = et(), V = et(), L = et(), H = ie(), N = A2(H), E = g.useRef(null), F = g.useRef(null), D = (le = M.logicOperator) != null ? le : yt.And, G = o && h.length > 0, B = ((ce = H.slotProps) == null ? void 0 : ce.baseFormControl) || {}, A = (fe = (((pe = H.slotProps) == null ? void 0 : pe.baseSelect) || {}).native) != null ? fe : !1, _ = ((xe = H.slotProps) == null ? void 0 : xe.baseInputLabel) || {}, j = ((Te = H.slotProps) == null ? void 0 : Te.baseSelectOption) || {}, {
16035
+ } = t, O = de(t, D2), v = ve(), $ = te(v, un), z = te(v, qc), M = te(v, ht), P = et(), R = et(), V = et(), L = et(), H = ie(), N = A2(H), E = g.useRef(null), F = g.useRef(null), D = (le = M.logicOperator) != null ? le : yt.And, G = o && h.length > 0, B = ((ce = H.slotProps) == null ? void 0 : ce.baseFormControl) || {}, A = (fe = (((pe = H.slotProps) == null ? void 0 : pe.baseSelect) || {}).native) != null ? fe : !1, _ = ((xe = H.slotProps) == null ? void 0 : xe.baseInputLabel) || {}, j = ((Te = H.slotProps) == null ? void 0 : Te.baseSelectOption) || {}, {
16036
16036
  InputComponentProps: q
16037
16037
  } = S, Q = de(S, H2), {
16038
16038
  filteredColumns: X,
@@ -16334,7 +16334,7 @@ const W2 = ["logicOperators", "columnsSort", "filterFormProps", "getColumnForNew
16334
16334
  id: Math.round(Math.random() * 1e5)
16335
16335
  }), Sd = Pe(function(t, n) {
16336
16336
  var L, H;
16337
- const r = ve(), o = ie(), l = te(r, ft), s = te(r, qc), i = te(r, P1), a = g.useRef(null), c = g.useRef(null), {
16337
+ const r = ve(), o = ie(), l = te(r, ht), s = te(r, qc), i = te(r, P1), a = g.useRef(null), c = g.useRef(null), {
16338
16338
  logicOperators: u = [yt.And, yt.Or],
16339
16339
  columnsSort: h,
16340
16340
  filterFormProps: m,
@@ -17017,7 +17017,7 @@ const sy = Be("div", {
17017
17017
  slots: o
17018
17018
  } = r, l = en(), s = iy({
17019
17019
  classes: r.classes
17020
- }), i = g.useRef(null), a = ih(i, n), c = ve(), u = te(c, ct), h = ($ = u == null ? void 0 : u.viewportInnerSize.height) != null ? $ : 0, m = Math.ceil(h / u.rowHeight), p = te(c, Do), b = te(c, kn), y = g.useMemo(() => b.filter((z) => z <= p).length, [p, b]), w = te(c, Xe), k = g.useMemo(() => w.slice(0, y), [w, y]), S = te(c, ur), T = g.useCallback((z) => {
17020
+ }), i = g.useRef(null), a = ih(i, n), c = ve(), u = te(c, ut), h = ($ = u == null ? void 0 : u.viewportInnerSize.height) != null ? $ : 0, m = Math.ceil(h / u.rowHeight), p = te(c, Do), b = te(c, kn), y = g.useMemo(() => b.filter((z) => z <= p).length, [p, b]), w = te(c, Xe), k = g.useMemo(() => w.slice(0, y), [w, y]), S = te(c, ur), T = g.useCallback((z) => {
17021
17021
  if (S.left.findIndex((M) => M.field === z) !== -1)
17022
17022
  return Se.LEFT;
17023
17023
  if (S.right.findIndex((M) => M.field === z) !== -1)
@@ -17179,7 +17179,7 @@ const dy = ze(oh)(({
17179
17179
  estimated: r
17180
17180
  }) => r ? `${e}–${t} of ${n !== -1 ? n : `more than ${r > t ? r : t}`}` : `${e}–${t} of ${n !== -1 ? n : `more than ${t}`}`, Od = Pe(function(t, n) {
17181
17181
  var O, v;
17182
- const r = ve(), o = ie(), l = te(r, pt), s = te(r, Kn), i = te(r, wu), {
17182
+ const r = ve(), o = ie(), l = te(r, bt), s = te(r, Kn), i = te(r, wu), {
17183
17183
  paginationMode: a,
17184
17184
  loading: c,
17185
17185
  estimatedRowCount: u
@@ -17389,7 +17389,7 @@ const wy = ["selected", "rowId", "row", "index", "style", "rowHeight", "classNam
17389
17389
  field: se.field,
17390
17390
  align: se.align
17391
17391
  }, se.field);
17392
- const Ut = se.field === "__reorder__", Ee = !(pe || se.disableReorder), Ve = j && !B.length && x <= 1, gt = !(Ee || Ut && Ve), tn = lt === Se.VIRTUAL, Uo = Io(lt, be), Ko = ko(lt, be, Qe, D.showCellVerticalBorder, $);
17392
+ const Ut = se.field === "__reorder__", Ee = !(pe || se.disableReorder), Ve = j && !B.length && x <= 1, mt = !(Ee || Ut && Ve), tn = lt === Se.VIRTUAL, Uo = Io(lt, be), Ko = ko(lt, be, Qe, D.showCellVerticalBorder, $);
17393
17393
  return /* @__PURE__ */ d(le.cell, C({
17394
17394
  column: se,
17395
17395
  width: Nt,
@@ -17397,7 +17397,7 @@ const wy = ["selected", "rowId", "row", "index", "style", "rowHeight", "classNam
17397
17397
  align: se.align || "left",
17398
17398
  colIndex: ge,
17399
17399
  colSpan: zt,
17400
- disableDragEvents: gt,
17400
+ disableDragEvents: mt,
17401
17401
  isNotVisible: tn,
17402
17402
  pinnedOffset: qt,
17403
17403
  pinnedPosition: lt,
@@ -18048,7 +18048,7 @@ const Uy = (e, t) => {
18048
18048
  open: !1
18049
18049
  }
18050
18050
  }), Xy = (e) => {
18051
- const t = dt(e, "useGridColumnMenu"), n = g.useCallback((s) => {
18051
+ const t = ft(e, "useGridColumnMenu"), n = g.useCallback((s) => {
18052
18052
  const i = co(e.current.state), a = {
18053
18053
  open: !0,
18054
18054
  field: s
@@ -18105,7 +18105,7 @@ const Uy = (e, t) => {
18105
18105
  };
18106
18106
  function Zy(e, t) {
18107
18107
  var R, V;
18108
- const n = dt(e, "useGridColumns"), r = g.useRef(t.columns);
18108
+ const n = ft(e, "useGridColumns"), r = g.useRef(t.columns);
18109
18109
  e.current.registerControlState({
18110
18110
  stateId: "visibleColumns",
18111
18111
  propModel: t.columnVisibilityModel,
@@ -18285,7 +18285,7 @@ const Qy = (e, t) => {
18285
18285
  });
18286
18286
  }, Jy = (e, t) => {
18287
18287
  var i;
18288
- const n = dt(e, "useDensity");
18288
+ const n = ft(e, "useDensity");
18289
18289
  e.current.registerControlState({
18290
18290
  stateId: "density",
18291
18291
  propModel: t.density,
@@ -18350,7 +18350,7 @@ const Ad = ({
18350
18350
  const t = iu(e), n = rt(e), r = e.current.getSelectedRows(), o = t.filter((u) => n[u].type !== "footer"), l = ar(e), s = ((a = l == null ? void 0 : l.top) == null ? void 0 : a.map((u) => u.id)) || [], i = ((c = l == null ? void 0 : l.bottom) == null ? void 0 : c.map((u) => u.id)) || [];
18351
18351
  return o.unshift(...s), o.push(...i), r.size > 0 ? o.filter((u) => r.has(u)) : o;
18352
18352
  }, tv = (e, t) => {
18353
- const n = dt(e, "useGridCsvExport"), r = t.ignoreValueFormatterDuringExport, o = (typeof r == "object" ? r == null ? void 0 : r.csvExport : r) || !1, l = g.useCallback((c = {}) => {
18353
+ const n = ft(e, "useGridCsvExport"), r = t.ignoreValueFormatterDuringExport, o = (typeof r == "object" ? r == null ? void 0 : r.csvExport : r) || !1, l = g.useCallback((c = {}) => {
18354
18354
  var p, b, y, w, k;
18355
18355
  n.debug("Get data as CSV");
18356
18356
  const u = Ad({
@@ -18404,28 +18404,28 @@ const Ad = ({
18404
18404
  })), pu(r.pageSize, t), r;
18405
18405
  }, nv = (e, t) => {
18406
18406
  var S, T;
18407
- const n = dt(e, "useGridPaginationModel"), r = te(e, ir), o = g.useRef(ft(e)), l = Math.floor(t.rowHeight * r);
18407
+ const n = ft(e, "useGridPaginationModel"), r = te(e, ir), o = g.useRef(ht(e)), l = Math.floor(t.rowHeight * r);
18408
18408
  e.current.registerControlState({
18409
18409
  stateId: "paginationModel",
18410
18410
  propModel: t.paginationModel,
18411
18411
  propOnChange: t.onPaginationModelChange,
18412
- stateSelector: pt,
18412
+ stateSelector: bt,
18413
18413
  changeEvent: "paginationModelChange"
18414
18414
  });
18415
18415
  const s = g.useCallback((O) => {
18416
- const v = pt(e);
18416
+ const v = bt(e);
18417
18417
  O !== v.page && (n.debug(`Setting page to ${O}`), e.current.setPaginationModel({
18418
18418
  page: O,
18419
18419
  pageSize: v.pageSize
18420
18420
  }));
18421
18421
  }, [e, n]), i = g.useCallback((O) => {
18422
- const v = pt(e);
18422
+ const v = bt(e);
18423
18423
  O !== v.pageSize && (n.debug(`Setting page size to ${O}`), e.current.setPaginationModel({
18424
18424
  pageSize: O,
18425
18425
  page: v.page
18426
18426
  }));
18427
18427
  }, [e, n]), a = g.useCallback((O) => {
18428
- const v = pt(e);
18428
+ const v = bt(e);
18429
18429
  O !== v && (n.debug("Setting 'paginationModel' to", O), e.current.setState(($) => C({}, $, {
18430
18430
  pagination: C({}, $.pagination, {
18431
18431
  paginationModel: uo($.pagination, t.signature, O)
@@ -18439,7 +18439,7 @@ const Ad = ({
18439
18439
  }, "public");
18440
18440
  const u = g.useCallback((O, v) => {
18441
18441
  var M, P;
18442
- const $ = pt(e);
18442
+ const $ = bt(e);
18443
18443
  return (
18444
18444
  // Always export if the `exportOnlyDirtyModels` property is not activated
18445
18445
  !v.exportOnlyDirtyModels || // Always export if the `paginationModel` is controlled
@@ -18453,7 +18453,7 @@ const Ad = ({
18453
18453
  );
18454
18454
  }, [e, t.paginationModel, (T = (S = t.initialState) == null ? void 0 : S.pagination) == null ? void 0 : T.paginationModel, t.autoPageSize]), h = g.useCallback((O, v) => {
18455
18455
  var z, M;
18456
- const $ = (z = v.stateToRestore.pagination) != null && z.paginationModel ? C({}, mu(t.autoPageSize), (M = v.stateToRestore.pagination) == null ? void 0 : M.paginationModel) : pt(e);
18456
+ const $ = (z = v.stateToRestore.pagination) != null && z.paginationModel ? C({}, mu(t.autoPageSize), (M = v.stateToRestore.pagination) == null ? void 0 : M.paginationModel) : bt(e);
18457
18457
  return e.current.setState((P) => C({}, P, {
18458
18458
  pagination: C({}, P.pagination, {
18459
18459
  paginationModel: uo(P.pagination, t.signature, $)
@@ -18463,7 +18463,7 @@ const Ad = ({
18463
18463
  Ue(e, "exportState", u), Ue(e, "restoreState", h);
18464
18464
  const m = () => {
18465
18465
  var v;
18466
- const O = pt(e);
18466
+ const O = bt(e);
18467
18467
  (v = e.current.virtualScrollerRef) != null && v.current && e.current.scrollToIndexes({
18468
18468
  rowIndex: O.page * O.pageSize
18469
18469
  });
@@ -18475,13 +18475,13 @@ const Ad = ({
18475
18475
  }, [e, t.autoPageSize, l]), b = g.useCallback((O) => {
18476
18476
  if (O == null)
18477
18477
  return;
18478
- const v = pt(e);
18478
+ const v = bt(e);
18479
18479
  if (v.page === 0)
18480
18480
  return;
18481
18481
  const $ = wu(e);
18482
18482
  v.page > $ - 1 && e.current.setPage(Math.max(0, $ - 1));
18483
18483
  }, [e]), y = g.useCallback(() => {
18484
- pt(e).page !== 0 && e.current.setPage(0), e.current.getScrollPosition().top !== 0 && e.current.scroll({
18484
+ bt(e).page !== 0 && e.current.setPage(0), e.current.getScrollPosition().top !== 0 && e.current.scroll({
18485
18485
  top: 0
18486
18486
  });
18487
18487
  }, [e]), w = g.useCallback((O) => {
@@ -18527,7 +18527,7 @@ function ov(e) {
18527
18527
  return t.style.position = "absolute", t.style.width = "0px", t.style.height = "0px", t.title = e || document.title, t;
18528
18528
  }
18529
18529
  const lv = (e, t) => {
18530
- const n = e.current.rootElementRef.current !== null, r = dt(e, "useGridPrintExport"), o = g.useRef(null), l = g.useRef(null), s = g.useRef({}), i = g.useRef([]), a = g.useRef(null);
18530
+ const n = e.current.rootElementRef.current !== null, r = ft(e, "useGridPrintExport"), o = g.useRef(null), l = g.useRef(null), s = g.useRef({}), i = g.useRef([]), a = g.useRef(null);
18531
18531
  g.useEffect(() => {
18532
18532
  o.current = Tn(e.current.rootElementRef.current);
18533
18533
  }, [e, n]);
@@ -18671,17 +18671,17 @@ function av() {
18671
18671
  }
18672
18672
  const cv = (e, t) => {
18673
18673
  var P, R, V;
18674
- const n = dt(e, "useGridFilter");
18674
+ const n = ft(e, "useGridFilter");
18675
18675
  e.current.registerControlState({
18676
18676
  stateId: "filter",
18677
18677
  propModel: t.filterModel,
18678
18678
  propOnChange: t.onFilterModelChange,
18679
- stateSelector: ft,
18679
+ stateSelector: ht,
18680
18680
  changeEvent: "filterModelChange"
18681
18681
  });
18682
18682
  const r = g.useCallback(() => {
18683
18683
  e.current.setState((L) => {
18684
- const H = ft(L, e.current.instanceId), N = e.current.getFilterState(H), E = C({}, L, {
18684
+ const H = ht(L, e.current.instanceId), N = e.current.getFilterState(H), E = C({}, L, {
18685
18685
  filter: C({}, L.filter, N)
18686
18686
  }), F = fa(e, E);
18687
18687
  return C({}, E, {
@@ -18691,12 +18691,12 @@ const cv = (e, t) => {
18691
18691
  }, [e]), o = g.useCallback((L, H) => H == null || H.filterable === !1 || t.disableColumnFilter ? L : [...L, "columnMenuFilterItem"], [t.disableColumnFilter]), l = g.useCallback(() => {
18692
18692
  r(), e.current.forceUpdate();
18693
18693
  }, [e, r]), s = g.useCallback((L) => {
18694
- const H = ft(e), N = [...H.items], E = N.findIndex((F) => F.id === L.id);
18694
+ const H = ht(e), N = [...H.items], E = N.findIndex((F) => F.id === L.id);
18695
18695
  E === -1 ? N.push(L) : N[E] = L, e.current.setFilterModel(C({}, H, {
18696
18696
  items: N
18697
18697
  }), "upsertFilterItem");
18698
18698
  }, [e]), i = g.useCallback((L) => {
18699
- const H = ft(e), N = [...H.items];
18699
+ const H = ht(e), N = [...H.items];
18700
18700
  L.forEach((E) => {
18701
18701
  const F = N.findIndex((D) => D.id === E.id);
18702
18702
  F === -1 ? N.push(E) : N[F] = E;
@@ -18704,13 +18704,13 @@ const cv = (e, t) => {
18704
18704
  items: N
18705
18705
  }), "upsertFilterItems");
18706
18706
  }, [e]), a = g.useCallback((L) => {
18707
- const H = ft(e), N = H.items.filter((E) => E.id !== L.id);
18707
+ const H = ht(e), N = H.items.filter((E) => E.id !== L.id);
18708
18708
  N.length !== H.items.length && e.current.setFilterModel(C({}, H, {
18709
18709
  items: N
18710
18710
  }), "deleteFilterItem");
18711
18711
  }, [e]), c = g.useCallback((L, H, N) => {
18712
18712
  if (n.debug("Displaying filter panel"), L) {
18713
- const E = ft(e), F = E.items.filter((x) => {
18713
+ const E = ht(e), F = E.items.filter((x) => {
18714
18714
  var q;
18715
18715
  if (x.value !== void 0)
18716
18716
  return !(Array.isArray(x.value) && x.value.length === 0);
@@ -18733,17 +18733,17 @@ const cv = (e, t) => {
18733
18733
  }, [e, n, t.disableMultipleColumnsFiltering]), u = g.useCallback(() => {
18734
18734
  n.debug("Hiding filter panel"), e.current.hidePreferences();
18735
18735
  }, [e, n]), h = g.useCallback((L) => {
18736
- const H = ft(e);
18736
+ const H = ht(e);
18737
18737
  H.logicOperator !== L && e.current.setFilterModel(C({}, H, {
18738
18738
  logicOperator: L
18739
18739
  }), "changeLogicOperator");
18740
18740
  }, [e]), m = g.useCallback((L) => {
18741
- const H = ft(e);
18741
+ const H = ht(e);
18742
18742
  wn(H.quickFilterValues, L) || e.current.setFilterModel(C({}, H, {
18743
18743
  quickFilterValues: [...L]
18744
18744
  }));
18745
18745
  }, [e]), p = g.useCallback((L, H) => {
18746
- ft(e) !== L && (n.debug("Setting filter model"), e.current.updateControlState("filter", xi(L, t.disableMultipleColumnsFiltering, e), H), e.current.unstable_applyFilters());
18746
+ ht(e) !== L && (n.debug("Setting filter model"), e.current.updateControlState("filter", xi(L, t.disableMultipleColumnsFiltering, e), H), e.current.unstable_applyFilters());
18747
18747
  }, [e, n, t.disableMultipleColumnsFiltering]), b = g.useCallback((L) => {
18748
18748
  const H = ss(L, t.disableMultipleColumnsFiltering, e), N = t.filterMode === "client" ? R1(H, e, t.disableEval) : null, E = e.current.applyStrategyProcessor("filtering", {
18749
18749
  isRowMatchingFilters: N,
@@ -18768,7 +18768,7 @@ const cv = (e, t) => {
18768
18768
  ye(e, y, "public");
18769
18769
  const w = g.useCallback((L, H) => {
18770
18770
  var F, D;
18771
- const N = ft(e);
18771
+ const N = ht(e);
18772
18772
  return N.items.forEach((G) => {
18773
18773
  delete G.fromInput;
18774
18774
  }), // Always export if the `exportOnlyDirtyModels` property is not activated
@@ -18821,7 +18821,7 @@ const cv = (e, t) => {
18821
18821
  Ue(e, "columnMenu", o), Ue(e, "exportState", w), Ue(e, "restoreState", k), Ue(e, "preferencePanel", S), Mo(e, Rn, "filtering", v), Mo(e, Rn, "visibleRowsLookupCreation", iv);
18822
18822
  const $ = g.useCallback(() => {
18823
18823
  n.debug("onColUpdated - GridColumns changed, applying filters");
18824
- const L = ft(e), H = un(e), N = L.items.filter((E) => E.field && H[E.field]);
18824
+ const L = ht(e), H = un(e), N = L.items.filter((E) => E.field && H[E.field]);
18825
18825
  N.length < L.items.length && e.current.setFilterModel(C({}, L, {
18826
18826
  items: N
18827
18827
  }));
@@ -18833,7 +18833,7 @@ const cv = (e, t) => {
18833
18833
  })), e.current.forceUpdate();
18834
18834
  }, [e]);
18835
18835
  oe(e, "rowsSet", r), oe(e, "columnsChange", $), oe(e, "activeStrategyProcessorChange", z), oe(e, "rowExpansionChange", M), oe(e, "columnVisibilityModelChange", () => {
18836
- const L = ft(e);
18836
+ const L = ht(e);
18837
18837
  L.quickFilterValues && Kc(L) && e.current.unstable_applyFilters();
18838
18838
  }), Wr(() => {
18839
18839
  e.current.unstable_applyFilters();
@@ -18854,7 +18854,7 @@ const cv = (e, t) => {
18854
18854
  columnGroupHeader: null
18855
18855
  }
18856
18856
  }), dv = (e, t) => {
18857
- const n = dt(e, "useGridFocus"), r = g.useRef(null), o = e.current.rootElementRef.current !== null, l = g.useCallback((M, P) => {
18857
+ const n = ft(e, "useGridFocus"), r = g.useRef(null), o = e.current.rootElementRef.current !== null, l = g.useCallback((M, P) => {
18858
18858
  M && e.current.getRow(M.id) && e.current.publishEvent("cellFocusOut", e.current.getCellParams(M.id, M.field), P);
18859
18859
  }, [e]), s = g.useCallback((M, P) => {
18860
18860
  const R = wt(e);
@@ -19118,7 +19118,7 @@ function fv(e, t, n, r) {
19118
19118
  return t;
19119
19119
  }
19120
19120
  const hv = Oe(qr, ar, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), gv = (e, t) => {
19121
- const n = dt(e, "useGridKeyboardNavigation"), r = en(), o = t.unstable_listView, l = g.useCallback(() => hv(e), [e]), s = t.signature !== "DataGrid" && t.headerFilters, i = g.useCallback((k, S, T = "left", O = "up") => {
19121
+ const n = ft(e, "useGridKeyboardNavigation"), r = en(), o = t.unstable_listView, l = g.useCallback(() => hv(e), [e]), s = t.signature !== "DataGrid" && t.headerFilters, i = g.useCallback((k, S, T = "left", O = "up") => {
19122
19122
  const v = In(e), $ = e.current.unstable_getCellColSpanInfo(S, k);
19123
19123
  $ && $.spannedByColSpan && (T === "left" ? k = $.leftVisibleCellIndex : T === "right" && (k = $.rightVisibleCellIndex));
19124
19124
  const z = o ? rr(e.current.state).field : cr(e)[k], M = fv(e, S, z, O), P = v.findIndex((R) => R.id === M);
@@ -19393,7 +19393,7 @@ const hv = Oe(qr, ar, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), g
19393
19393
  Ue(e, "canStartEditing", w), oe(e, "columnHeaderKeyDown", m), oe(e, "headerFilterKeyDown", p), oe(e, "columnGroupHeaderKeyDown", b), oe(e, "cellKeyDown", y);
19394
19394
  }, mv = (e, t) => {
19395
19395
  var b, y;
19396
- const n = dt(e, "useGridRowCount"), r = te(e, us), o = te(e, Kn), l = te(e, Pr), s = te(e, pt), i = Jt(() => pt(e).pageSize);
19396
+ const n = ft(e, "useGridRowCount"), r = te(e, us), o = te(e, Kn), l = te(e, Pr), s = te(e, bt), i = Jt(() => bt(e).pageSize);
19397
19397
  e.current.registerControlState({
19398
19398
  stateId: "paginationRowCount",
19399
19399
  propModel: t.rowCount,
@@ -19446,7 +19446,7 @@ const hv = Oe(qr, ar, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), g
19446
19446
  }, [e, r, p, o, s]);
19447
19447
  }, pv = (e, t) => {
19448
19448
  var a, c;
19449
- const n = dt(e, "useGridPaginationMeta"), r = te(e, Pr);
19449
+ const n = ft(e, "useGridPaginationMeta"), r = te(e, Pr);
19450
19450
  e.current.registerControlState({
19451
19451
  stateId: "paginationMeta",
19452
19452
  propModel: t.paginationMeta,
@@ -19514,7 +19514,7 @@ const hv = Oe(qr, ar, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), g
19514
19514
  });
19515
19515
  }, yv = (e, t) => {
19516
19516
  var i;
19517
- const n = dt(e, "useGridPreferencesPanel"), r = g.useCallback(() => {
19517
+ const n = ft(e, "useGridPreferencesPanel"), r = g.useCallback(() => {
19518
19518
  e.current.setState((a) => {
19519
19519
  if (!a.preferencePanel.open)
19520
19520
  return a;
@@ -20284,7 +20284,7 @@ const hv = Oe(qr, ar, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), g
20284
20284
  Object.freeze(t.rows);
20285
20285
  } catch (E) {
20286
20286
  }
20287
- const n = dt(e, "useGridRows"), r = g.useRef(Date.now()), o = g.useRef(t.rowCount), l = Hn(), s = g.useCallback((E) => {
20287
+ const n = ft(e, "useGridRows"), r = g.useRef(Date.now()), o = g.useRef(t.rowCount), l = Hn(), s = g.useCallback((E) => {
20288
20288
  const F = Lt(e)[E];
20289
20289
  if (F)
20290
20290
  return F;
@@ -20420,12 +20420,12 @@ const hv = Oe(qr, ar, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), g
20420
20420
  const D = e.current.getRowNode(E);
20421
20421
  if (!D)
20422
20422
  throw new Error(`MUI X: No row with id #${E} found.`);
20423
- if (D.parent !== mt)
20423
+ if (D.parent !== pt)
20424
20424
  throw new Error("MUI X: The row reordering do not support reordering of grouped rows yet.");
20425
20425
  if (D.type !== "leaf")
20426
20426
  throw new Error("MUI X: The row reordering do not support reordering of footer or grouping rows.");
20427
20427
  e.current.setState((G) => {
20428
- const B = rt(G, e.current.instanceId)[mt], x = B.children, A = x.findIndex((j) => j === E);
20428
+ const B = rt(G, e.current.instanceId)[pt], x = B.children, A = x.findIndex((j) => j === E);
20429
20429
  if (A === -1 || A === F)
20430
20430
  return G;
20431
20431
  n.debug(`Moving row ${E} to index ${F}`);
@@ -20433,7 +20433,7 @@ const hv = Oe(qr, ar, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), g
20433
20433
  return _.splice(F, 0, _.splice(A, 1)[0]), C({}, G, {
20434
20434
  rows: C({}, G.rows, {
20435
20435
  tree: C({}, G.rows.tree, {
20436
- [mt]: C({}, B, {
20436
+ [pt]: C({}, B, {
20437
20437
  children: _
20438
20438
  })
20439
20439
  })
@@ -20448,20 +20448,20 @@ const hv = Oe(qr, ar, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), g
20448
20448
  return;
20449
20449
  if ($n(e) > 1)
20450
20450
  throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");
20451
- const G = C({}, rt(e)), B = C({}, Lt(e)), x = C({}, Ci(e)), A = G[mt], _ = [...A.children], j = /* @__PURE__ */ new Set();
20451
+ const G = C({}, rt(e)), B = C({}, Lt(e)), x = C({}, Ci(e)), A = G[pt], _ = [...A.children], j = /* @__PURE__ */ new Set();
20452
20452
  for (let Q = 0; Q < F.length; Q += 1) {
20453
20453
  const X = F[Q], W = Vo(X, t.getRowId, "A row was provided without id when calling replaceRows()."), [K] = _.splice(E + Q, 1, W);
20454
20454
  j.has(K) || (delete B[K], delete x[K], delete G[K]);
20455
20455
  const Y = {
20456
20456
  id: W,
20457
20457
  depth: 0,
20458
- parent: mt,
20458
+ parent: pt,
20459
20459
  type: "leaf",
20460
20460
  groupingKey: null
20461
20461
  };
20462
20462
  B[W] = X, x[W] = W, G[W] = Y, j.add(W);
20463
20463
  }
20464
- G[mt] = C({}, A, {
20464
+ G[pt] = C({}, A, {
20465
20465
  children: _
20466
20466
  });
20467
20467
  const q = _.filter((Q) => {
@@ -20572,7 +20572,7 @@ const hv = Oe(qr, ar, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), g
20572
20572
  }, [t.rows, t.rowCount, t.getRowId, t.loading, n, a, e]);
20573
20573
  }, Ov = (e) => {
20574
20574
  const t = {
20575
- [mt]: C({}, q1(), {
20575
+ [pt]: C({}, q1(), {
20576
20576
  children: e
20577
20577
  })
20578
20578
  };
@@ -20581,7 +20581,7 @@ const hv = Oe(qr, ar, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), g
20581
20581
  t[r] = {
20582
20582
  id: r,
20583
20583
  depth: 0,
20584
- parent: mt,
20584
+ parent: pt,
20585
20585
  type: "leaf",
20586
20586
  groupingKey: null
20587
20587
  };
@@ -20608,14 +20608,14 @@ const hv = Oe(qr, ar, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), g
20608
20608
  n[i] = {
20609
20609
  id: i,
20610
20610
  depth: 0,
20611
- parent: mt,
20611
+ parent: pt,
20612
20612
  type: "leaf",
20613
20613
  groupingKey: null
20614
20614
  };
20615
20615
  }
20616
- const o = n[mt];
20616
+ const o = n[pt];
20617
20617
  let l = [...o.children, ...t.insert];
20618
- return Object.values(r).length && (l = l.filter((s) => !r[s])), n[mt] = C({}, o, {
20618
+ return Object.values(r).length && (l = l.filter((s) => !r[s])), n[pt] = C({}, o, {
20619
20619
  children: l
20620
20620
  }), {
20621
20621
  groupingName: Rn,
@@ -20721,7 +20721,7 @@ const $d = (e, t) => e == null || Array.isArray(e) ? e : t && t[0] === e ? t : [
20721
20721
  });
20722
20722
  }, Vv = (e, t) => {
20723
20723
  var G, B, x, A, _, j, q, Q, X;
20724
- const n = dt(e, "useGridSelection"), r = g.useCallback((W) => (...K) => {
20724
+ const n = ft(e, "useGridSelection"), r = g.useCallback((W) => (...K) => {
20725
20725
  t.rowSelection && W(...K);
20726
20726
  }, [t.rowSelection]), o = t.signature !== Pt.DataGrid && (((G = t.rowSelectionPropagation) == null ? void 0 : G.parents) || ((B = t.rowSelectionPropagation) == null ? void 0 : B.descendants)), l = g.useMemo(() => $d(t.rowSelectionModel, St(e.current.state)), [e, t.rowSelectionModel]), s = g.useRef(null);
20727
20727
  e.current.registerControlState({
@@ -20995,7 +20995,7 @@ const $d = (e, t) => e == null || Array.isArray(e) ? e : t && t[0] === e ? t : [
20995
20995
  });
20996
20996
  }, Gv = (e, t) => {
20997
20997
  var v, $;
20998
- const n = dt(e, "useGridSorting");
20998
+ const n = ft(e, "useGridSorting");
20999
20999
  e.current.registerControlState({
21000
21000
  stateId: "sortModel",
21001
21001
  propModel: t.sortModel,
@@ -21025,7 +21025,7 @@ const $d = (e, t) => e == null || Array.isArray(e) ? e : t && t[0] === e ? t : [
21025
21025
  if (t.sortingMode === "server")
21026
21026
  return n.debug("Skipping sorting rows as sortingMode = server"), C({}, z, {
21027
21027
  sorting: C({}, z.sorting, {
21028
- sortedRows: is(rt(e), mt, !1)
21028
+ sortedRows: is(rt(e), pt, !1)
21029
21029
  })
21030
21030
  });
21031
21031
  const M = _t(z, e.current.instanceId), P = C1(M, e), R = e.current.applyStrategyProcessor("sorting", {
@@ -21074,7 +21074,7 @@ const $d = (e, t) => e == null || Array.isArray(e) ? e : t && t[0] === e ? t : [
21074
21074
  callbacks: [...z.callbacks, e.current.applySorting]
21075
21075
  }));
21076
21076
  }, [e, t.disableMultipleColumnsSorting]), w = g.useCallback((z) => {
21077
- const M = rt(e), P = M[mt], R = z.sortRowList ? z.sortRowList(P.children.map((V) => M[V])) : [...P.children];
21077
+ const M = rt(e), P = M[pt], R = z.sortRowList ? z.sortRowList(P.children.map((V) => M[V])) : [...P.children];
21078
21078
  return P.footerId != null && R.push(P.footerId), R;
21079
21079
  }, [e]);
21080
21080
  Ue(e, "exportState", b), Ue(e, "restoreState", y), Mo(e, Rn, "sorting", w);
@@ -21121,9 +21121,9 @@ function ha(e) {
21121
21121
  return o;
21122
21122
  }
21123
21123
  const _v = (e, t) => {
21124
- const n = en(), r = dt(e, "useGridScroll"), o = e.current.columnHeadersContainerRef, l = e.current.virtualScrollerRef, s = te(e, In), i = g.useCallback((h) => {
21124
+ const n = en(), r = ft(e, "useGridScroll"), o = e.current.columnHeadersContainerRef, l = e.current.virtualScrollerRef, s = te(e, In), i = g.useCallback((h) => {
21125
21125
  var k;
21126
- const m = ct(e.current.state), p = Br(e), b = t.unstable_listView ? [rr(e.current.state)] : Xe(e);
21126
+ const m = ut(e.current.state), p = Br(e), b = t.unstable_listView ? [rr(e.current.state)] : Xe(e);
21127
21127
  if (!(h.rowIndex == null) && p === 0 || b.length === 0)
21128
21128
  return !1;
21129
21129
  r.debug(`Scrolling to cell at row ${h.rowIndex}, col: ${h.colIndex} `);
@@ -21277,7 +21277,7 @@ const Rl = {
21277
21277
  return n === 0 ? 0 : Xn(t[n - 1] + e[n - 1].computedWidth, 1);
21278
21278
  });
21279
21279
  function Uv(e, t) {
21280
- const n = dt(e, "useResizeContainer"), r = g.useRef(!1), o = g.useRef(qn), l = te(e, ur), s = te(e, ir), i = te(e, Nd), a = g.useRef(!0), c = g.useRef({
21280
+ const n = ft(e, "useResizeContainer"), r = g.useRef(!1), o = g.useRef(qn), l = te(e, ur), s = te(e, ir), i = te(e, Nd), a = g.useRef(!0), c = g.useRef({
21281
21281
  counter: 0,
21282
21282
  heights: {
21283
21283
  content: 0,
@@ -21292,10 +21292,10 @@ function Uv(e, t) {
21292
21292
  headersTotalHeight: b,
21293
21293
  leftPinnedWidth: y,
21294
21294
  rightPinnedWidth: w
21295
- } = zd(t, e, s, l), k = g.useRef(void 0), S = g.useCallback(() => ct(e.current.state), [e]), T = g.useCallback((H) => {
21295
+ } = zd(t, e, s, l), k = g.useRef(void 0), S = g.useCallback(() => ut(e.current.state), [e]), T = g.useCallback((H) => {
21296
21296
  e.current.setState((N) => C({}, N, {
21297
21297
  dimensions: H
21298
- })), e.current.rootElementRef.current && ga(e.current.rootElementRef.current, ct(e.current.state));
21298
+ })), e.current.rootElementRef.current && ga(e.current.rootElementRef.current, ut(e.current.state));
21299
21299
  }, [e]), O = g.useCallback(() => {
21300
21300
  const H = e.current.mainElementRef.current;
21301
21301
  if (!H)
@@ -21306,7 +21306,7 @@ function Uv(e, t) {
21306
21306
  };
21307
21307
  (!k.current || !pa(k.current, E)) && (e.current.publishEvent("resize", E), k.current = E);
21308
21308
  }, [e]), v = g.useCallback(() => {
21309
- const H = ct(e.current.state);
21309
+ const H = ut(e.current.state);
21310
21310
  if (!H.isReady)
21311
21311
  return 0;
21312
21312
  const N = vn(e);
@@ -21392,7 +21392,7 @@ function Uv(e, t) {
21392
21392
  };
21393
21393
  vt($, [$]), ye(e, P, "public"), ye(e, R, "private");
21394
21394
  const V = g.useCallback((H) => {
21395
- ga(H, ct(e.current.state));
21395
+ ga(H, ut(e.current.state));
21396
21396
  }, [e]), L = g.useCallback((H) => {
21397
21397
  if (o.current = H, H.height === 0 && !r.current && !t.autoHeight && !vo && (n.error(["The parent DOM element of the Data Grid has an empty height.", "Please make sure that this element has an intrinsic height.", "The grid displays with a height of 0px.", "", "More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
21398
21398
  `)), r.current = !0), H.width === 0 && !r.current && !vo && (n.error(["The parent DOM element of the Data Grid has an empty width.", "Please make sure that this element has an intrinsic width.", "The grid displays with a width of 0px.", "", "More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
@@ -21478,7 +21478,7 @@ const Xv = typeof globalThis.ResizeObserver != "undefined" ? globalThis.ResizeOb
21478
21478
  }, l.set(R, V)), V;
21479
21479
  }, b = g.useCallback((R) => {
21480
21480
  var H, N;
21481
- const V = ct(e.current.state).rowHeight, L = e.current.getRowHeightEntry(R.id);
21481
+ const V = ut(e.current.state).rowHeight, L = e.current.getRowHeightEntry(R.id);
21482
21482
  if (!n)
21483
21483
  L.content = V, L.needsFirstMeasurement = !1;
21484
21484
  else {
@@ -21897,7 +21897,7 @@ function fS() {
21897
21897
  };
21898
21898
  }
21899
21899
  const hS = (e, t) => {
21900
- const n = en(), r = dt(e, "useGridColumnResize"), o = Jt(fS).current, l = g.useRef(null), s = g.useRef(null), i = Hn(), a = g.useRef(void 0), c = (P) => {
21900
+ const n = en(), r = ft(e, "useGridColumnResize"), o = Jt(fS).current, l = g.useRef(null), s = g.useRef(null), i = Hn(), a = g.useRef(void 0), c = (P) => {
21901
21901
  var E, F;
21902
21902
  r.debug(`Updating width to ${P} for col ${o.colDef.field}`);
21903
21903
  const R = o.columnHeaderElement.offsetWidth, V = P - R, L = P - o.initialColWidth;
@@ -22279,7 +22279,7 @@ function wS(e, t) {
22279
22279
  }, [t.unstable_listView, t.unstable_listColumn]);
22280
22280
  }
22281
22281
  function Al(e) {
22282
- return ct(e.current.state).viewportInnerSize.width;
22282
+ return ut(e.current.state).viewportInnerSize.width;
22283
22283
  }
22284
22284
  const yS = (e, t) => {
22285
22285
  const n = _y(e, t);
@@ -22803,7 +22803,7 @@ const VS = {
22803
22803
  signature: "DataGrid",
22804
22804
  unstable_listView: !1
22805
22805
  }, GS = NS, _S = (e) => {
22806
- const t = ht(), n = F0(g.useMemo(() => qf({
22806
+ const t = gt(), n = F0(g.useMemo(() => qf({
22807
22807
  props: e,
22808
22808
  theme: t,
22809
22809
  name: "MuiDataGrid"
@@ -23576,7 +23576,7 @@ jd.propTypes = {
23576
23576
  virtualizeColumnsWithAutoRowHeight: f.bool
23577
23577
  };
23578
23578
  const ik = ({ sx: e, ...t }) => {
23579
- const n = ht();
23579
+ const n = gt();
23580
23580
  return /* @__PURE__ */ d(
23581
23581
  WS,
23582
23582
  {
@@ -23608,7 +23608,7 @@ const ik = ({ sx: e, ...t }) => {
23608
23608
  }
23609
23609
  },
23610
23610
  [`& .${I.cell}`]: {
23611
- color: "rgba(51, 51, 51, 0.87)",
23611
+ color: n.palette.text.primary,
23612
23612
  "&:focus, &:focus-within": {
23613
23613
  outline: `2px solid ${n.palette.primary.main}`,
23614
23614
  outlineOffset: "-2px"
@@ -23776,7 +23776,7 @@ const ik = ({ sx: e, ...t }) => {
23776
23776
  {
23777
23777
  sx: {
23778
23778
  fontWeight: 700,
23779
- color: "rgba(51,51,51,0.87)",
23779
+ color: "text.primary",
23780
23780
  fontSize: "0.875rem",
23781
23781
  cursor: "pointer",
23782
23782
  "&:hover": { textDecoration: "underline" }
@@ -23840,7 +23840,7 @@ const ik = ({ sx: e, ...t }) => {
23840
23840
  background: "rgba(217, 217, 217, 0.10)",
23841
23841
  "& .MuiTableCell-root": {
23842
23842
  border: "1px solid #F5F5F5",
23843
- color: "rgba(51, 51, 51, 0.60)"
23843
+ color: "text.secondary"
23844
23844
  }
23845
23845
  },
23846
23846
  "& .MuiTableCell-root": {
@@ -24110,7 +24110,7 @@ const YS = Fa(XS), ZS = {
24110
24110
  ) : null,
24111
24111
  n.map((u) => {
24112
24112
  var h;
24113
- return u.type === "tableCell" ? /* @__PURE__ */ d(xt, { children: /* @__PURE__ */ d(Ge, { sx: { color: "#33333399", fontSize: "0.75rem" }, children: u.label }) }, u.id) : u.type === "searchable" ? /* @__PURE__ */ d(
24113
+ return u.type === "tableCell" ? /* @__PURE__ */ d(xt, { children: /* @__PURE__ */ d(Ge, { sx: { color: "text.secondary", fontSize: "0.75rem" }, children: u.label }) }, u.id) : u.type === "searchable" ? /* @__PURE__ */ d(
24114
24114
  YS,
24115
24115
  {
24116
24116
  field: u.field,
@@ -24409,10 +24409,10 @@ const hk = ({
24409
24409
  }),
24410
24410
  dismiss: (e) => Mn.dismiss(e),
24411
24411
  isActive: (e) => Mn.isActive(e)
24412
- }, nx = ze(({ className: e, ...t }) => /* @__PURE__ */ d(qa, { ...t, classes: { popper: e } }))(() => ({
24412
+ }, nx = ze(({ className: e, ...t }) => /* @__PURE__ */ d(qa, { ...t, classes: { popper: e } }))(({ theme: e }) => ({
24413
24413
  [`& .${Vs.tooltip}`]: {
24414
24414
  backgroundColor: "#FFFFFF",
24415
- color: "rgba(51, 51, 51, 0.89)",
24415
+ color: e.palette.text.primary,
24416
24416
  border: "1px solid #D9D9D9",
24417
24417
  borderRadius: "8px",
24418
24418
  padding: "16px",
@@ -24474,7 +24474,7 @@ const hk = ({
24474
24474
  xl: { width: "7.5rem", height: "7.5rem", fontSize: "3rem" }
24475
24475
  }, Ck = ({ user: e, size: t = "sm" }) => {
24476
24476
  var c, u, h, m;
24477
- const n = ht(), r = (u = (c = e == null ? void 0 : e.personalInfo.firstName) == null ? void 0 : c.charAt(0).toUpperCase()) != null ? u : "", o = (m = (h = e == null ? void 0 : e.personalInfo.lastName) == null ? void 0 : h.charAt(0).toUpperCase()) != null ? m : "", l = `${r}${o}`.trim() || " ", { width: s, height: i, fontSize: a } = rx[t];
24477
+ const n = gt(), r = (u = (c = e == null ? void 0 : e.personalInfo.firstName) == null ? void 0 : c.charAt(0).toUpperCase()) != null ? u : "", o = (m = (h = e == null ? void 0 : e.personalInfo.lastName) == null ? void 0 : h.charAt(0).toUpperCase()) != null ? m : "", l = `${r}${o}`.trim() || " ", { width: s, height: i, fontSize: a } = rx[t];
24478
24478
  return /* @__PURE__ */ d(
24479
24479
  Sf,
24480
24480
  {
@@ -24494,7 +24494,7 @@ const hk = ({
24494
24494
  }
24495
24495
  );
24496
24496
  }, wk = ({ messages: e }) => {
24497
- const t = ht();
24497
+ const t = gt();
24498
24498
  return e.length === 0 ? null : /* @__PURE__ */ d(
24499
24499
  Oa,
24500
24500
  {
@@ -24534,7 +24534,7 @@ const hk = ({
24534
24534
  barCount: o = Ud,
24535
24535
  size: l = "default"
24536
24536
  }) => {
24537
- const s = ht(), i = Array.from({ length: o }, (u, h) => h + 1), a = ix[l], c = lx(t);
24537
+ const s = gt(), i = Array.from({ length: o }, (u, h) => h + 1), a = ix[l], c = lx(t);
24538
24538
  return /* @__PURE__ */ U(
24539
24539
  Ce,
24540
24540
  {
@@ -24621,7 +24621,7 @@ const hk = ({
24621
24621
  levelLabel: n = "Input Level",
24622
24622
  className: r
24623
24623
  }) => {
24624
- const o = ht();
24624
+ const o = gt();
24625
24625
  return /* @__PURE__ */ U(
24626
24626
  Ce,
24627
24627
  {
@@ -24702,7 +24702,7 @@ const hk = ({
24702
24702
  compact: h = !1,
24703
24703
  labels: m
24704
24704
  }) => {
24705
- const p = ht(), {
24705
+ const p = gt(), {
24706
24706
  label: b,
24707
24707
  okMessage: y,
24708
24708
  errorMessage: w
@@ -24910,7 +24910,7 @@ const hk = ({
24910
24910
  noSoundDetected: "No sound detected. Speak into your microphone or choose another device.",
24911
24911
  inputLevel: "Input Level"
24912
24912
  }, mx = ({ stream: e }) => {
24913
- const t = ht(), n = Ot(null);
24913
+ const t = gt(), n = Ot(null);
24914
24914
  return Et(() => {
24915
24915
  n.current && (n.current.srcObject = e != null ? e : null);
24916
24916
  }, [e]), /* @__PURE__ */ U(
@@ -24991,7 +24991,7 @@ const hk = ({
24991
24991
  labels: n,
24992
24992
  className: r
24993
24993
  }) => {
24994
- const o = ht(), l = { ...gx, ...n };
24994
+ const o = gt(), l = { ...gx, ...n };
24995
24995
  return /* @__PURE__ */ U(
24996
24996
  Ce,
24997
24997
  {
@@ -25060,7 +25060,7 @@ const Sk = ({
25060
25060
  showClockIcon: r = !0,
25061
25061
  accessibleLabel: o = "Time Left : "
25062
25062
  }) => {
25063
- const l = ht(), s = Zd(e), i = n === "info", a = i ? l.palette.primary.main : l.palette.warning.darkest, c = i ? l.palette.primary.lightest : l.palette.warning.lightest;
25063
+ const l = gt(), s = Zd(e), i = n === "info", a = i ? l.palette.primary.main : l.palette.warning.darkest, c = i ? l.palette.primary.lightest : l.palette.warning.lightest;
25064
25064
  return /* @__PURE__ */ U(
25065
25065
  Hs,
25066
25066
  {
@@ -25129,7 +25129,7 @@ const Sk = ({
25129
25129
  ]
25130
25130
  }
25131
25131
  );
25132
- }, bx = ut(Ce)(() => ({
25132
+ }, bx = dt(Ce)(() => ({
25133
25133
  width: "100%",
25134
25134
  maxWidth: 624,
25135
25135
  aspectRatio: "4/3",
@@ -25300,7 +25300,7 @@ const Sk = ({
25300
25300
  "& strong": { fontWeight: o },
25301
25301
  "& em": { fontStyle: "italic" }
25302
25302
  };
25303
- }, Cx = ut(Ce)(({ theme: e }) => ({
25303
+ }, Cx = dt(Ce)(({ theme: e }) => ({
25304
25304
  width: "100%",
25305
25305
  borderRadius: "10px",
25306
25306
  overflow: "hidden",
@@ -25309,7 +25309,7 @@ const Sk = ({
25309
25309
  padding: "0.5rem",
25310
25310
  fontFamily: e.typography.fontFamily
25311
25311
  })), Ik = ({ content: e = "" }) => {
25312
- const t = ht(), n = Lr(() => Qd(t), [t]);
25312
+ const t = gt(), n = Lr(() => Qd(t), [t]);
25313
25313
  return /* @__PURE__ */ d(Cx, { "data-testid": "content-text", sx: n, children: /* @__PURE__ */ d(
25314
25314
  Lh,
25315
25315
  {
@@ -25321,7 +25321,7 @@ const Sk = ({
25321
25321
  children: e
25322
25322
  }
25323
25323
  ) });
25324
- }, bt = {
25324
+ }, ct = {
25325
25325
  /** acuity-blue */
25326
25326
  primary: {
25327
25327
  darkest: "#161E4A",
@@ -25423,7 +25423,7 @@ const Sk = ({
25423
25423
  italic: "Italic",
25424
25424
  numberedList: "Numbered list",
25425
25425
  bulletedList: "Bulleted list"
25426
- }, yx = (e) => /* @__PURE__ */ d(Oo, { viewBox: "0 0 24 25", ...e, children: /* @__PURE__ */ d("path", { d: "M7.404 18.5V17.5H14.658C15.6953 17.5 16.5787 17.1443 17.308 16.433C18.0387 15.7217 18.404 14.853 18.404 13.827C18.404 12.801 18.039 11.9357 17.309 11.231C16.5783 10.5257 15.6947 10.173 14.658 10.173H6.916L9.881 13.138L9.173 13.846L5 9.673L9.173 5.5L9.881 6.208L6.916 9.173H14.658C15.9667 9.173 17.085 9.62433 18.013 10.527C18.9397 11.4297 19.403 12.5297 19.403 13.827C19.403 15.1243 18.9397 16.2277 18.013 17.137C17.0863 18.0463 15.9677 18.5007 14.657 18.5H7.404Z" }) }), vx = (e) => /* @__PURE__ */ d(Oo, { viewBox: "0 0 24 25", ...e, children: /* @__PURE__ */ d("path", { d: "M16.596 18.5V17.5H9.342C8.30467 17.5 7.42133 17.1443 6.692 16.433C5.96133 15.7217 5.596 14.853 5.596 13.827C5.596 12.801 5.961 11.9357 6.691 11.231C7.42167 10.5257 8.30533 10.173 9.342 10.173H17.084L14.119 13.138L14.827 13.846L19 9.673L14.827 5.5L14.119 6.208L17.084 9.173H9.342C8.03333 9.173 6.915 9.62433 5.987 10.527C5.06033 11.4297 4.597 12.5297 4.597 13.827C4.597 15.1243 5.06033 16.2277 5.987 17.137C6.91367 18.0463 8.03233 18.5007 9.343 18.5H16.596Z" }) }), Sx = bn(bt.neutral.darkest, 0.87), Wn = ({
25426
+ }, yx = (e) => /* @__PURE__ */ d(Oo, { viewBox: "0 0 24 25", ...e, children: /* @__PURE__ */ d("path", { d: "M7.404 18.5V17.5H14.658C15.6953 17.5 16.5787 17.1443 17.308 16.433C18.0387 15.7217 18.404 14.853 18.404 13.827C18.404 12.801 18.039 11.9357 17.309 11.231C16.5783 10.5257 15.6947 10.173 14.658 10.173H6.916L9.881 13.138L9.173 13.846L5 9.673L9.173 5.5L9.881 6.208L6.916 9.173H14.658C15.9667 9.173 17.085 9.62433 18.013 10.527C18.9397 11.4297 19.403 12.5297 19.403 13.827C19.403 15.1243 18.9397 16.2277 18.013 17.137C17.0863 18.0463 15.9677 18.5007 14.657 18.5H7.404Z" }) }), vx = (e) => /* @__PURE__ */ d(Oo, { viewBox: "0 0 24 25", ...e, children: /* @__PURE__ */ d("path", { d: "M16.596 18.5V17.5H9.342C8.30467 17.5 7.42133 17.1443 6.692 16.433C5.96133 15.7217 5.596 14.853 5.596 13.827C5.596 12.801 5.961 11.9357 6.691 11.231C7.42167 10.5257 8.30533 10.173 9.342 10.173H17.084L14.119 13.138L14.827 13.846L19 9.673L14.827 5.5L14.119 6.208L17.084 9.173H9.342C8.03333 9.173 6.915 9.62433 5.987 10.527C5.06033 11.4297 4.597 12.5297 4.597 13.827C4.597 15.1243 5.06033 16.2277 5.987 17.137C6.91367 18.0463 8.03233 18.5007 9.343 18.5H16.596Z" }) }), Sx = bn(ct.neutral.darkest, 0.87), Wn = ({
25427
25427
  Icon: e,
25428
25428
  label: t,
25429
25429
  onClick: n,
@@ -25440,14 +25440,14 @@ const Sk = ({
25440
25440
  onMouseDown: (l) => l.preventDefault(),
25441
25441
  sx: {
25442
25442
  borderRadius: "0.25rem",
25443
- color: o ? bt.customColors.white : bt.neutral.dark,
25444
- backgroundColor: o ? bt.primary.main : "transparent",
25443
+ color: o ? ct.customColors.white : ct.neutral.dark,
25444
+ backgroundColor: o ? ct.primary.main : "transparent",
25445
25445
  "&:hover": {
25446
- color: bt.customColors.white,
25447
- backgroundColor: bt.primary.main
25446
+ color: ct.customColors.white,
25447
+ backgroundColor: ct.primary.main
25448
25448
  },
25449
25449
  "&.Mui-focusVisible": {
25450
- outline: `2px solid ${bt.primary.main}`,
25450
+ outline: `2px solid ${ct.primary.main}`,
25451
25451
  outlineOffset: 2
25452
25452
  }
25453
25453
  },
@@ -25459,7 +25459,7 @@ const Sk = ({
25459
25459
  flexItem: !0,
25460
25460
  orientation: "vertical",
25461
25461
  sx: {
25462
- borderColor: bt.neutral.lighter,
25462
+ borderColor: ct.neutral.lighter,
25463
25463
  maxHeight: "30px",
25464
25464
  mt: "5px",
25465
25465
  mx: 0.5
@@ -25476,7 +25476,7 @@ const Sk = ({
25476
25476
  labels: i
25477
25477
  }) => {
25478
25478
  var k;
25479
- const a = ht(), c = { ...wx, ...i }, u = `label_${e}`, h = Ot(n), m = Ot(r);
25479
+ const a = gt(), c = { ...wx, ...i }, u = `label_${e}`, h = Ot(n), m = Ot(r);
25480
25480
  Et(() => {
25481
25481
  m.current = r;
25482
25482
  }, [r]);
@@ -25672,14 +25672,14 @@ const Sk = ({
25672
25672
  minHeight: l === void 0 ? "300px" : 0,
25673
25673
  overflowY: "auto",
25674
25674
  overflowWrap: "anywhere",
25675
- border: `1px solid ${bt.customColors["light-gray"]}`,
25675
+ border: `1px solid ${ct.customColors["light-gray"]}`,
25676
25676
  borderRadius: "0.375rem",
25677
25677
  px: "1.25rem",
25678
25678
  py: "0.75rem",
25679
25679
  cursor: s ? "default" : "text",
25680
- backgroundColor: s ? bt.neutral.lighter : void 0,
25680
+ backgroundColor: s ? ct.neutral.lighter : void 0,
25681
25681
  // Its one addition: the border turns primary while typing, so focus is visible.
25682
- "&:focus-within": { borderColor: bt.primary.main },
25682
+ "&:focus-within": { borderColor: ct.primary.main },
25683
25683
  "& .tiptap": { outline: "none", minHeight: "100%" },
25684
25684
  ...y
25685
25685
  },
@@ -25691,7 +25691,7 @@ const Sk = ({
25691
25691
  )
25692
25692
  ] });
25693
25693
  }, Ek = ({ label: e, onClick: t, ariaLabel: n }) => {
25694
- const r = ht();
25694
+ const r = gt();
25695
25695
  return /* @__PURE__ */ d(
25696
25696
  sn,
25697
25697
  {
@@ -25784,7 +25784,7 @@ const Sk = ({
25784
25784
  }
25785
25785
  })
25786
25786
  ), Tk = ({ children: e }) => {
25787
- const t = ht();
25787
+ const t = gt();
25788
25788
  return /* @__PURE__ */ d(
25789
25789
  kf,
25790
25790
  {
@@ -25963,7 +25963,7 @@ const Rk = ({
25963
25963
  label: r,
25964
25964
  icon: o
25965
25965
  }) => {
25966
- const l = ht(), [s, i] = Re(0), a = Math.max(e, 0), c = Tx(Math.floor((n - a) * 100 / n)), u = Ot(null), h = Fx(c, l), { backgroundColor: m, color: p } = t ? {
25966
+ const l = gt(), [s, i] = Re(0), a = Math.max(e, 0), c = Tx(Math.floor((n - a) * 100 / n)), u = Ot(null), h = Fx(c, l), { backgroundColor: m, color: p } = t ? {
25967
25967
  backgroundColor: bn(h.backgroundColor, 0.35),
25968
25968
  color: l.palette.neutral.darkest
25969
25969
  } : h;
@@ -26018,7 +26018,7 @@ const Rk = ({
26018
26018
  ]
26019
26019
  }
26020
26020
  );
26021
- }, Ox = ut("div", {
26021
+ }, Ox = dt("div", {
26022
26022
  shouldForwardProp: (e) => !["isBackground", "width", "variant"].includes(e)
26023
26023
  })(({
26024
26024
  theme: e,
@@ -26104,16 +26104,16 @@ const Rk = ({
26104
26104
  clip: "rect(0, 0, 0, 0)",
26105
26105
  whiteSpace: "nowrap",
26106
26106
  borderWidth: 0
26107
- }, Dx = ut(Lo)(() => ({
26107
+ }, Dx = dt(Lo)(() => ({
26108
26108
  width: "100%",
26109
26109
  maxWidth: "800px",
26110
26110
  margin: "1rem 0"
26111
- })), Hx = ut("p")(({ theme: e }) => ({
26111
+ })), Hx = dt("p")(({ theme: e }) => ({
26112
26112
  color: e.palette.text.primary,
26113
26113
  fontWeight: 500,
26114
26114
  fontSize: "1rem",
26115
26115
  margin: "0 0 1rem 0"
26116
- })), Ax = ut(Ce)(() => ({
26116
+ })), Ax = dt(Ce)(() => ({
26117
26117
  width: "100%",
26118
26118
  [tf]: {
26119
26119
  display: "flex",
@@ -26121,7 +26121,7 @@ const Rk = ({
26121
26121
  justifyContent: "space-between",
26122
26122
  gap: "0.5rem"
26123
26123
  }
26124
- })), Ea = ut(Ge)(({ theme: e }) => ({
26124
+ })), Ea = dt(Ge)(({ theme: e }) => ({
26125
26125
  ...Rx,
26126
26126
  fontSize: "0.875rem",
26127
26127
  color: e.palette.text.secondary,
@@ -26136,7 +26136,7 @@ const Rk = ({
26136
26136
  clip: "auto",
26137
26137
  whiteSpace: "normal"
26138
26138
  }
26139
- })), Vx = ut(Ha)(({ theme: e }) => ({
26139
+ })), Vx = dt(Ha)(({ theme: e }) => ({
26140
26140
  margin: 0,
26141
26141
  "& .MuiFormControlLabel-label": {
26142
26142
  fontSize: "0.875rem",
@@ -26149,7 +26149,7 @@ const Rk = ({
26149
26149
  color: e.palette.primary.main
26150
26150
  }
26151
26151
  }
26152
- })), $x = ut(Da)(() => ({
26152
+ })), $x = dt(Da)(() => ({
26153
26153
  flexDirection: "row",
26154
26154
  justifyContent: "space-evenly",
26155
26155
  flex: 1,
@@ -26412,19 +26412,19 @@ const Rk = ({
26412
26412
  ))
26413
26413
  }
26414
26414
  ) });
26415
- }, Xx = ut(Lo)(() => ({
26415
+ }, Xx = dt(Lo)(() => ({
26416
26416
  width: "100%",
26417
26417
  maxWidth: "800px",
26418
26418
  margin: "1rem 0"
26419
- })), Yx = ut("p")(({ theme: e }) => ({
26419
+ })), Yx = dt("p")(({ theme: e }) => ({
26420
26420
  color: e.palette.text.primary,
26421
26421
  fontWeight: 500,
26422
26422
  fontSize: "1rem",
26423
26423
  margin: "0 0 0.75rem 0",
26424
26424
  display: "block"
26425
- })), Zx = ut(Da)(() => ({
26425
+ })), Zx = dt(Da)(() => ({
26426
26426
  gap: "0.625rem"
26427
- })), Qx = ut(Ha)(({ theme: e }) => ({
26427
+ })), Qx = dt(Ha)(({ theme: e }) => ({
26428
26428
  marginLeft: 0,
26429
26429
  marginRight: 0,
26430
26430
  padding: 0,
@@ -26440,10 +26440,10 @@ const Rk = ({
26440
26440
  "&:hover .MuiRadio-root": {
26441
26441
  backgroundColor: e.palette.action.hover
26442
26442
  }
26443
- })), Jx = ut(Ce)(() => ({
26443
+ })), Jx = dt(Ce)(() => ({
26444
26444
  marginTop: "0.5rem",
26445
26445
  marginLeft: "2rem"
26446
- })), e5 = ut(To)(({ theme: e }) => ({
26446
+ })), e5 = dt(To)(({ theme: e }) => ({
26447
26447
  "& .MuiOutlinedInput-root": {
26448
26448
  padding: 0,
26449
26449
  "& fieldset": {
@@ -26528,17 +26528,17 @@ const Rk = ({
26528
26528
  }
26529
26529
  )
26530
26530
  ] });
26531
- }, t5 = ut(Lo)(() => ({
26531
+ }, t5 = dt(Lo)(() => ({
26532
26532
  width: "100%",
26533
26533
  maxWidth: "800px",
26534
26534
  margin: "1rem 0"
26535
- })), n5 = ut(Ff)(({ theme: e }) => ({
26535
+ })), n5 = dt(Ff)(({ theme: e }) => ({
26536
26536
  color: e.palette.text.primary,
26537
26537
  fontWeight: 500,
26538
26538
  fontSize: "1rem",
26539
26539
  marginBottom: "0.5rem",
26540
26540
  display: "block"
26541
- })), r5 = ut(To)(({ theme: e }) => ({
26541
+ })), r5 = dt(To)(({ theme: e }) => ({
26542
26542
  "& .MuiOutlinedInput-root": {
26543
26543
  backgroundColor: e.palette.background.paper,
26544
26544
  "&:hover fieldset": {
@@ -26552,7 +26552,7 @@ const Rk = ({
26552
26552
  fontSize: "0.875rem",
26553
26553
  padding: "12px"
26554
26554
  }
26555
- })), o5 = ut(Ge)(({ theme: e }) => ({
26555
+ })), o5 = dt(Ge)(({ theme: e }) => ({
26556
26556
  fontSize: "0.75rem",
26557
26557
  color: e.palette.text.secondary,
26558
26558
  textAlign: "right",
@@ -26600,7 +26600,7 @@ const Rk = ({
26600
26600
  ] })
26601
26601
  ] });
26602
26602
  }, zk = ({ sx: e, ...t }) => {
26603
- const n = ht();
26603
+ const n = gt();
26604
26604
  return /* @__PURE__ */ d(
26605
26605
  Ce,
26606
26606
  {
@@ -26680,19 +26680,26 @@ const Rk = ({
26680
26680
  ","
26681
26681
  ), l5 = Vf({
26682
26682
  palette: {
26683
- ...bt,
26683
+ ...ct,
26684
26684
  primary: {
26685
- ...bt.primary,
26685
+ ...ct.primary,
26686
26686
  contrastText: "#FFFFFF"
26687
26687
  },
26688
26688
  neutral: {
26689
- ...bt.neutral,
26689
+ ...ct.neutral,
26690
26690
  // MUI theme uses 'darker' but palette uses 'darkest' for darkest neutral
26691
- darker: bt.neutral.darkest
26691
+ darker: ct.neutral.darkest
26692
+ },
26693
+ // Solid neutrals, matching the Tailwind components, instead of MUI's
26694
+ // semi-transparent black text.
26695
+ text: {
26696
+ primary: ct.neutral.darkest,
26697
+ secondary: ct.neutral.dark,
26698
+ disabled: ct.neutral.main
26692
26699
  }
26693
26700
  },
26694
26701
  customColors: {
26695
- ...bt.customColors,
26702
+ ...ct.customColors,
26696
26703
  transparent: "rgba(0, 0, 0, 0)",
26697
26704
  // TEX's timer bars use this amber for the "running low" state.
26698
26705
  "yellowy-taupe": "#FCEDCA"
@@ -26809,7 +26816,7 @@ export {
26809
26816
  kk as getMarkdownStyles,
26810
26817
  sx as isVolumeBarFilled,
26811
26818
  kx as pickVoice,
26812
- bt as platformPalette,
26819
+ ct as platformPalette,
26813
26820
  lx as toMeterLevel,
26814
26821
  Ok as toSpeechLanguage,
26815
26822
  pk as toast,