@getsoren/design-system 4.91.1 → 4.91.3

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 (3) hide show
  1. package/dist/main.cjs +7 -7
  2. package/dist/main.js +153 -151
  3. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -3,7 +3,7 @@ import { Alert as Es, AppBar as Pl, Autocomplete as ws, Avatar as lo, AvatarGrou
3
3
  import HA from "@emotion/styled";
4
4
  import { Global as GA, ThemeContext as XA, createElement as Hu, css as ui, keyframes as Lo } from "@emotion/react";
5
5
  import * as I from "react";
6
- import zr, { Children as Rs, Fragment as ZA, cloneElement as Eo, createContext as pi, forwardRef as Nt, isValidElement as jt, memo as fi, useCallback as Ue, useContext as xr, useEffect as gt, useId as Gu, useImperativeHandle as Xu, useLayoutEffect as rl, useMemo as mr, useRef as Ne, useState as we } from "react";
6
+ import zr, { Children as Rs, Fragment as ZA, cloneElement as Eo, createContext as pi, forwardRef as Nt, isValidElement as jt, memo as fi, useCallback as Ue, useContext as xr, useEffect as gt, useId as Gu, useImperativeHandle as Xu, useLayoutEffect as rl, useMemo as mr, useRef as Ne, useState as Ie } from "react";
7
7
  import * as Kn from "react/jsx-runtime";
8
8
  import { jsx as Q, jsxs as st } from "react/jsx-runtime";
9
9
  import * as JA from "react-dom";
@@ -6786,7 +6786,7 @@ var Zm = 16 / 2, Jm = ({ onClick: e, label: t, portrait: r, dataTestId: n = "ass
6786
6786
  function $m(e) {
6787
6787
  return Oe("MuiChip", e);
6788
6788
  }
6789
- var Ge = Pe("MuiChip", [
6789
+ var Xe = Pe("MuiChip", [
6790
6790
  "root",
6791
6791
  "sizeSmall",
6792
6792
  "sizeMedium",
@@ -6954,16 +6954,16 @@ var _m = (e) => {
6954
6954
  overridesResolver: (e, t) => {
6955
6955
  const { ownerState: r } = e, { color: n, iconColor: a, clickable: i, onDelete: l, size: s, variant: c } = r;
6956
6956
  return [
6957
- { [`& .${Ge.avatar}`]: t.avatar },
6958
- { [`& .${Ge.avatar}`]: t[`avatar${le(s)}`] },
6959
- { [`& .${Ge.avatar}`]: t[`avatarColor${le(n)}`] },
6960
- { [`& .${Ge.icon}`]: t.icon },
6961
- { [`& .${Ge.icon}`]: t[`icon${le(s)}`] },
6962
- { [`& .${Ge.icon}`]: t[`iconColor${le(a)}`] },
6963
- { [`& .${Ge.deleteIcon}`]: t.deleteIcon },
6964
- { [`& .${Ge.deleteIcon}`]: t[`deleteIcon${le(s)}`] },
6965
- { [`& .${Ge.deleteIcon}`]: t[`deleteIconColor${le(n)}`] },
6966
- { [`& .${Ge.deleteIcon}`]: t[`deleteIcon${le(c)}Color${le(n)}`] },
6957
+ { [`& .${Xe.avatar}`]: t.avatar },
6958
+ { [`& .${Xe.avatar}`]: t[`avatar${le(s)}`] },
6959
+ { [`& .${Xe.avatar}`]: t[`avatarColor${le(n)}`] },
6960
+ { [`& .${Xe.icon}`]: t.icon },
6961
+ { [`& .${Xe.icon}`]: t[`icon${le(s)}`] },
6962
+ { [`& .${Xe.icon}`]: t[`iconColor${le(a)}`] },
6963
+ { [`& .${Xe.deleteIcon}`]: t.deleteIcon },
6964
+ { [`& .${Xe.deleteIcon}`]: t[`deleteIcon${le(s)}`] },
6965
+ { [`& .${Xe.deleteIcon}`]: t[`deleteIconColor${le(n)}`] },
6966
+ { [`& .${Xe.deleteIcon}`]: t[`deleteIcon${le(c)}Color${le(n)}`] },
6967
6967
  t.root,
6968
6968
  t[`size${le(s)}`],
6969
6969
  t[`color${le(n)}`],
@@ -6998,11 +6998,11 @@ var _m = (e) => {
6998
6998
  padding: 0,
6999
6999
  verticalAlign: "middle",
7000
7000
  boxSizing: "border-box",
7001
- [`&.${Ge.disabled}`]: {
7001
+ [`&.${Xe.disabled}`]: {
7002
7002
  opacity: (e.vars || e).palette.action.disabledOpacity,
7003
7003
  pointerEvents: "none"
7004
7004
  },
7005
- [`& .${Ge.avatar}`]: {
7005
+ [`& .${Xe.avatar}`]: {
7006
7006
  marginLeft: 5,
7007
7007
  marginRight: -6,
7008
7008
  width: 24,
@@ -7010,26 +7010,26 @@ var _m = (e) => {
7010
7010
  color: e.vars ? e.vars.palette.Chip.defaultAvatarColor : t,
7011
7011
  fontSize: e.typography.pxToRem(12)
7012
7012
  },
7013
- [`& .${Ge.avatarColorPrimary}`]: {
7013
+ [`& .${Xe.avatarColorPrimary}`]: {
7014
7014
  color: (e.vars || e).palette.primary.contrastText,
7015
7015
  backgroundColor: (e.vars || e).palette.primary.dark
7016
7016
  },
7017
- [`& .${Ge.avatarColorSecondary}`]: {
7017
+ [`& .${Xe.avatarColorSecondary}`]: {
7018
7018
  color: (e.vars || e).palette.secondary.contrastText,
7019
7019
  backgroundColor: (e.vars || e).palette.secondary.dark
7020
7020
  },
7021
- [`& .${Ge.avatarSmall}`]: {
7021
+ [`& .${Xe.avatarSmall}`]: {
7022
7022
  marginLeft: 4,
7023
7023
  marginRight: -4,
7024
7024
  width: 18,
7025
7025
  height: 18,
7026
7026
  fontSize: e.typography.pxToRem(10)
7027
7027
  },
7028
- [`& .${Ge.icon}`]: {
7028
+ [`& .${Xe.icon}`]: {
7029
7029
  marginLeft: 5,
7030
7030
  marginRight: -6
7031
7031
  },
7032
- [`& .${Ge.deleteIcon}`]: {
7032
+ [`& .${Xe.deleteIcon}`]: {
7033
7033
  WebkitTapHighlightColor: "transparent",
7034
7034
  color: e.alpha((e.vars || e).palette.text.primary, 0.26),
7035
7035
  fontSize: 22,
@@ -7042,12 +7042,12 @@ var _m = (e) => {
7042
7042
  props: { size: "small" },
7043
7043
  style: {
7044
7044
  height: 24,
7045
- [`& .${Ge.icon}`]: {
7045
+ [`& .${Xe.icon}`]: {
7046
7046
  fontSize: 18,
7047
7047
  marginLeft: 4,
7048
7048
  marginRight: -4
7049
7049
  },
7050
- [`& .${Ge.deleteIcon}`]: {
7050
+ [`& .${Xe.deleteIcon}`]: {
7051
7051
  fontSize: 16,
7052
7052
  marginRight: 4,
7053
7053
  marginLeft: -4
@@ -7059,7 +7059,7 @@ var _m = (e) => {
7059
7059
  style: {
7060
7060
  backgroundColor: (e.vars || e).palette[r].main,
7061
7061
  color: (e.vars || e).palette[r].contrastText,
7062
- [`& .${Ge.deleteIcon}`]: {
7062
+ [`& .${Xe.deleteIcon}`]: {
7063
7063
  color: e.alpha((e.vars || e).palette[r].contrastText, 0.7),
7064
7064
  "&:hover, &:active": { color: (e.vars || e).palette[r].contrastText }
7065
7065
  }
@@ -7067,22 +7067,22 @@ var _m = (e) => {
7067
7067
  })),
7068
7068
  {
7069
7069
  props: (r) => r.iconColor === r.color,
7070
- style: { [`& .${Ge.icon}`]: { color: e.vars ? e.vars.palette.Chip.defaultIconColor : t } }
7070
+ style: { [`& .${Xe.icon}`]: { color: e.vars ? e.vars.palette.Chip.defaultIconColor : t } }
7071
7071
  },
7072
7072
  {
7073
7073
  props: (r) => r.iconColor === r.color && r.color !== "default",
7074
- style: { [`& .${Ge.icon}`]: { color: "inherit" } }
7074
+ style: { [`& .${Xe.icon}`]: { color: "inherit" } }
7075
7075
  },
7076
7076
  {
7077
7077
  props: { onDelete: !0 },
7078
- style: { [`&.${Ge.focusVisible}`]: { backgroundColor: e.alpha((e.vars || e).palette.action.selected, `${(e.vars || e).palette.action.selectedOpacity} + ${(e.vars || e).palette.action.focusOpacity}`) } }
7078
+ style: { [`&.${Xe.focusVisible}`]: { backgroundColor: e.alpha((e.vars || e).palette.action.selected, `${(e.vars || e).palette.action.selectedOpacity} + ${(e.vars || e).palette.action.focusOpacity}`) } }
7079
7079
  },
7080
7080
  ...Object.entries(e.palette).filter(Kt(["dark"])).map(([r]) => ({
7081
7081
  props: {
7082
7082
  color: r,
7083
7083
  onDelete: !0
7084
7084
  },
7085
- style: { [`&.${Ge.focusVisible}`]: { background: (e.vars || e).palette[r].dark } }
7085
+ style: { [`&.${Xe.focusVisible}`]: { background: (e.vars || e).palette[r].dark } }
7086
7086
  })),
7087
7087
  {
7088
7088
  props: { clickable: !0 },
@@ -7091,7 +7091,7 @@ var _m = (e) => {
7091
7091
  WebkitTapHighlightColor: "transparent",
7092
7092
  cursor: "pointer",
7093
7093
  "&:hover": { backgroundColor: e.alpha((e.vars || e).palette.action.selected, `${(e.vars || e).palette.action.selectedOpacity} + ${(e.vars || e).palette.action.hoverOpacity}`) },
7094
- [`&.${Ge.focusVisible}`]: { backgroundColor: e.alpha((e.vars || e).palette.action.selected, `${(e.vars || e).palette.action.selectedOpacity} + ${(e.vars || e).palette.action.focusOpacity}`) },
7094
+ [`&.${Xe.focusVisible}`]: { backgroundColor: e.alpha((e.vars || e).palette.action.selected, `${(e.vars || e).palette.action.selectedOpacity} + ${(e.vars || e).palette.action.focusOpacity}`) },
7095
7095
  "&:active": { boxShadow: (e.vars || e).shadows[1] }
7096
7096
  }
7097
7097
  },
@@ -7100,21 +7100,21 @@ var _m = (e) => {
7100
7100
  color: r,
7101
7101
  clickable: !0
7102
7102
  },
7103
- style: { [`&:hover, &.${Ge.focusVisible}`]: { backgroundColor: (e.vars || e).palette[r].dark } }
7103
+ style: { [`&:hover, &.${Xe.focusVisible}`]: { backgroundColor: (e.vars || e).palette[r].dark } }
7104
7104
  })),
7105
7105
  {
7106
7106
  props: { variant: "outlined" },
7107
7107
  style: {
7108
7108
  backgroundColor: "transparent",
7109
7109
  border: e.vars ? `1px solid ${e.vars.palette.Chip.defaultBorder}` : `1px solid ${e.palette.mode === "light" ? e.palette.grey[400] : e.palette.grey[700]}`,
7110
- [`&.${Ge.clickable}:hover`]: { backgroundColor: (e.vars || e).palette.action.hover },
7111
- [`&.${Ge.focusVisible}`]: { backgroundColor: (e.vars || e).palette.action.focus },
7112
- [`& .${Ge.avatar}`]: { marginLeft: 4 },
7113
- [`& .${Ge.avatarSmall}`]: { marginLeft: 2 },
7114
- [`& .${Ge.icon}`]: { marginLeft: 4 },
7115
- [`& .${Ge.iconSmall}`]: { marginLeft: 2 },
7116
- [`& .${Ge.deleteIcon}`]: { marginRight: 5 },
7117
- [`& .${Ge.deleteIconSmall}`]: { marginRight: 3 }
7110
+ [`&.${Xe.clickable}:hover`]: { backgroundColor: (e.vars || e).palette.action.hover },
7111
+ [`&.${Xe.focusVisible}`]: { backgroundColor: (e.vars || e).palette.action.focus },
7112
+ [`& .${Xe.avatar}`]: { marginLeft: 4 },
7113
+ [`& .${Xe.avatarSmall}`]: { marginLeft: 2 },
7114
+ [`& .${Xe.icon}`]: { marginLeft: 4 },
7115
+ [`& .${Xe.iconSmall}`]: { marginLeft: 2 },
7116
+ [`& .${Xe.deleteIcon}`]: { marginRight: 5 },
7117
+ [`& .${Xe.deleteIconSmall}`]: { marginRight: 3 }
7118
7118
  }
7119
7119
  },
7120
7120
  ...Object.entries(e.palette).filter(Kt()).map(([r]) => ({
@@ -7125,9 +7125,9 @@ var _m = (e) => {
7125
7125
  style: {
7126
7126
  color: (e.vars || e).palette[r].main,
7127
7127
  border: `1px solid ${e.alpha((e.vars || e).palette[r].main, 0.7)}`,
7128
- [`&.${Ge.clickable}:hover`]: { backgroundColor: e.alpha((e.vars || e).palette[r].main, (e.vars || e).palette.action.hoverOpacity) },
7129
- [`&.${Ge.focusVisible}`]: { backgroundColor: e.alpha((e.vars || e).palette[r].main, (e.vars || e).palette.action.focusOpacity) },
7130
- [`& .${Ge.deleteIcon}`]: {
7128
+ [`&.${Xe.clickable}:hover`]: { backgroundColor: e.alpha((e.vars || e).palette[r].main, (e.vars || e).palette.action.hoverOpacity) },
7129
+ [`&.${Xe.focusVisible}`]: { backgroundColor: e.alpha((e.vars || e).palette[r].main, (e.vars || e).palette.action.focusOpacity) },
7130
+ [`& .${Xe.deleteIcon}`]: {
7131
7131
  color: e.alpha((e.vars || e).palette[r].main, 0.7),
7132
7132
  "&:hover, &:active": { color: (e.vars || e).palette[r].main }
7133
7133
  }
@@ -9408,10 +9408,10 @@ var i2 = ({ sx: e, fontSize: t, color: r = "currentColor" }) => /* @__PURE__ */
9408
9408
  })
9409
9409
  })
9410
9410
  }), O2 = ({ size: e = 32, color: t = "text.primary", isWorking: r = !1 }) => {
9411
- const n = Gu(), a = y2("(prefers-reduced-motion: reduce)"), i = Ne(null), l = Ne(null), s = Ne(null), c = Ne(null), [u] = we(() => fl(oc)), [p] = we(() => Pn.map(({ roundMs: C }) => ({
9411
+ const n = Gu(), a = y2("(prefers-reduced-motion: reduce)"), i = Ne(null), l = Ne(null), s = Ne(null), c = Ne(null), [u] = Ie(() => fl(oc)), [p] = Ie(() => Pn.map(({ roundMs: C }) => ({
9412
9412
  across: fl(C),
9413
9413
  upDown: fl(C, C / 4)
9414
- }))), [f, v] = we(!1), [A, b] = we(!1), [y, h] = we(r), S = Ne(!(r || a)), E = R2(e);
9414
+ }))), [f, v] = Ie(!1), [A, b] = Ie(!1), [y, h] = Ie(r), S = Ne(!(r || a)), E = R2(e);
9415
9415
  y !== r && (h(r), b(r), v(!(r || a)));
9416
9416
  const x = (r || f) && !a;
9417
9417
  return rl(() => {
@@ -11534,7 +11534,7 @@ var Io = /* @__PURE__ */ I.forwardRef(function(t, r) {
11534
11534
  N,
11535
11535
  M.popperOptions,
11536
11536
  De?.popperOptions
11537
- ]), lt = tb(Je), rr = typeof O.transition == "function" ? O.transition(Je) : O.transition, Xe = {
11537
+ ]), lt = tb(Je), rr = typeof O.transition == "function" ? O.transition(Je) : O.transition, Ze = {
11538
11538
  slots: {
11539
11539
  popper: s.Popper,
11540
11540
  transition: s.Transition ?? F,
@@ -11556,22 +11556,22 @@ var Io = /* @__PURE__ */ I.forwardRef(function(t, r) {
11556
11556
  }
11557
11557
  }, [At, me] = Ke("popper", {
11558
11558
  elementType: rb,
11559
- externalForwardedProps: Xe,
11559
+ externalForwardedProps: Ze,
11560
11560
  ownerState: Je,
11561
11561
  className: ge(lt.popper, M?.className)
11562
11562
  }), [Ee, Ce] = Ke("transition", {
11563
11563
  elementType: Oo,
11564
- externalForwardedProps: Xe,
11564
+ externalForwardedProps: Ze,
11565
11565
  ownerState: Je
11566
- }), [Ie, Ze] = Ke("tooltip", {
11566
+ }), [we, Ge] = Ke("tooltip", {
11567
11567
  elementType: ob,
11568
11568
  className: lt.tooltip,
11569
- externalForwardedProps: Xe,
11569
+ externalForwardedProps: Ze,
11570
11570
  ownerState: Je
11571
11571
  }), [nt, Qt] = Ke("arrow", {
11572
11572
  elementType: nb,
11573
11573
  className: lt.arrow,
11574
- externalForwardedProps: Xe,
11574
+ externalForwardedProps: Ze,
11575
11575
  ownerState: Je,
11576
11576
  ref: U
11577
11577
  });
@@ -11597,8 +11597,8 @@ var Io = /* @__PURE__ */ I.forwardRef(function(t, r) {
11597
11597
  timeout: X.transitions.duration.shorter,
11598
11598
  ...xe,
11599
11599
  ...Ce,
11600
- children: /* @__PURE__ */ st(Ie, {
11601
- ...Ze,
11600
+ children: /* @__PURE__ */ st(we, {
11601
+ ...Ge,
11602
11602
  children: [R, a ? /* @__PURE__ */ Q(nt, { ...Qt }) : null]
11603
11603
  })
11604
11604
  })
@@ -11744,7 +11744,7 @@ var ab = ({ sx: e, fontSize: t, color: r = "currentColor" }) => /* @__PURE__ */
11744
11744
  slot: "downVoteButton",
11745
11745
  value: "down"
11746
11746
  }], cb = ({ content: e, onVote: t, labels: r, slotProps: n, vote: a = null, dataTestId: i = "assistantReplyActions" }) => {
11747
- const { t: l } = kt(), [s, c] = we(!1), u = r?.copy ?? l("copy"), p = async () => {
11747
+ const { t: l } = kt(), [s, c] = Ie(!1), u = r?.copy ?? l("copy"), p = async () => {
11748
11748
  try {
11749
11749
  await navigator.clipboard.writeText(e), c(!0);
11750
11750
  } catch {
@@ -11806,7 +11806,7 @@ var ab = ({ sx: e, fontSize: t, color: r = "currentColor" }) => /* @__PURE__ */
11806
11806
  36,
11807
11807
  0.22
11808
11808
  ]], Cc = "#FFC9A8", Al = (e, t) => t.map(([r, n, a]) => `0 0 ${r}px ${n}px ${zt(e, a)}`).join(", "), fb = ({ anchor: e, blocking: t = !1, onWindowClick: r, dataTestId: n = "assistantSpotlight" }) => {
11809
- const [a, i] = we(() => e.getBoundingClientRect()), l = Ue(() => i(e.getBoundingClientRect()), [e]);
11809
+ const [a, i] = Ie(() => e.getBoundingClientRect()), l = Ue(() => i(e.getBoundingClientRect()), [e]);
11810
11810
  return gt(() => {
11811
11811
  l();
11812
11812
  const s = window.setInterval(l, ub);
@@ -12181,7 +12181,7 @@ var yb = (e, t) => {
12181
12181
  height: t,
12182
12182
  sx: r
12183
12183
  }), xb = ({ src: e, isLoading: t, secondarySrc: r, secondaryAvatarProps: n, sx: a, secondaryTitle: i, width: l = 64, height: s = 64, alt: c = "Article" }) => {
12184
- const [u, p] = we(!1), [f, v] = we(!1), { borderRadius: A, padding: b } = yb(l, s), y = {
12184
+ const [u, p] = Ie(!1), [f, v] = Ie(!1), { borderRadius: A, padding: b } = yb(l, s), y = {
12185
12185
  borderRadius: A,
12186
12186
  flexShrink: 0
12187
12187
  }, h = e && !u && !f || t, S = !e || f && !t, E = e?.endsWith(".png") || e?.endsWith(".svg") || e?.endsWith(".gif") || e?.endsWith(".webp"), x = () => {
@@ -12442,7 +12442,7 @@ var yb = (e, t) => {
12442
12442
  ...e,
12443
12443
  children: /* @__PURE__ */ d("path", { d: "M9.29 15.88 13.17 12 9.29 8.12a.996.996 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0l4.59 4.59c.39.39.39 1.02 0 1.41L10.7 17.3c-.39.39-1.02.39-1.41 0-.38-.39-.39-1.03 0-1.42" })
12444
12444
  }), Mb = ({ text: e, children: t }) => {
12445
- const [r, n] = we("");
12445
+ const [r, n] = Ie("");
12446
12446
  return /* @__PURE__ */ d(Mt, {
12447
12447
  title: r,
12448
12448
  children: /* @__PURE__ */ d(W, {
@@ -15393,18 +15393,18 @@ var ny = sd.Provider, Vc, ay = ae(Qf, {
15393
15393
  if (Ee.currentTarget.hasAttribute("tabindex")) {
15394
15394
  if (E) {
15395
15395
  Ce = Array.isArray(G) ? G.slice() : [];
15396
- const Ie = G.indexOf(me.props.value);
15397
- Ie === -1 ? Ce.push(me.props.value) : Ce.splice(Ie, 1);
15396
+ const we = G.indexOf(me.props.value);
15397
+ we === -1 ? Ce.push(me.props.value) : Ce.splice(we, 1);
15398
15398
  } else Ce = me.props.value;
15399
15399
  if (me.props.onClick && me.props.onClick(Ee), G !== Ce && (N(Ce), w)) {
15400
- const Ie = Ee.nativeEvent || Ee, Ze = new Ie.constructor(Ie.type, Ie);
15401
- Object.defineProperty(Ze, "target", {
15400
+ const we = Ee.nativeEvent || Ee, Ge = new we.constructor(we.type, we);
15401
+ Object.defineProperty(Ge, "target", {
15402
15402
  writable: !0,
15403
15403
  value: {
15404
15404
  value: Ce,
15405
15405
  name: x
15406
15406
  }
15407
- }), w(Ze, me);
15407
+ }), w(Ge, me);
15408
15408
  }
15409
15409
  E || ke(!1, Ee);
15410
15410
  }
@@ -15481,7 +15481,7 @@ var ny = sd.Provider, Vc, ay = ae(Qf, {
15481
15481
  }, lt = sy(Be), rr = {
15482
15482
  ...S.PaperProps,
15483
15483
  ...typeof S.slotProps?.paper == "function" ? S.slotProps.paper(Be) : S.slotProps?.paper
15484
- }, Xe = {
15484
+ }, Ze = {
15485
15485
  ...S.MenuListProps,
15486
15486
  ...typeof S.slotProps?.list == "function" ? S.slotProps.list(Be) : S.slotProps?.list
15487
15487
  }, At = la();
@@ -15558,7 +15558,7 @@ var ny = sd.Provider, Vc, ay = ae(Qf, {
15558
15558
  "aria-multiselectable": E ? "true" : void 0,
15559
15559
  disableListWrap: !0,
15560
15560
  id: At,
15561
- ...Xe
15561
+ ...Ze
15562
15562
  },
15563
15563
  paper: {
15564
15564
  ...rr,
@@ -17743,11 +17743,11 @@ function a6(e) {
17743
17743
  O,
17744
17744
  Be,
17745
17745
  lt
17746
- ]), Xe = De ? h(J.filter((q) => !(S && rr(q))), {
17746
+ ]), Ze = De ? h(J.filter((q) => !(S && rr(q))), {
17747
17747
  inputValue: Je && fe ? "" : ye,
17748
17748
  getOptionLabel: Y
17749
17749
  }) : [], At = _y({
17750
- filteredOptions: Xe,
17750
+ filteredOptions: Ze,
17751
17751
  value: _,
17752
17752
  inputValue: ye
17753
17753
  });
@@ -17761,7 +17761,7 @@ function a6(e) {
17761
17761
  At.value,
17762
17762
  E
17763
17763
  ]);
17764
- const me = Ae && Xe.length > 0 && !G, Ee = Or((q) => {
17764
+ const me = Ae && Ze.length > 0 && !G, Ee = Or((q) => {
17765
17765
  if (q === -1) ee.current.focus();
17766
17766
  else {
17767
17767
  const K = N ? "data-item-index" : "data-tag-index";
@@ -17777,15 +17777,15 @@ function a6(e) {
17777
17777
  Ee
17778
17778
  ]);
17779
17779
  function Ce(q, K) {
17780
- if (!oe.current || q < 0 || q >= Xe.length) return -1;
17780
+ if (!oe.current || q < 0 || q >= Ze.length) return -1;
17781
17781
  let ce = q;
17782
17782
  for (; ; ) {
17783
17783
  const Me = oe.current.querySelector(`[data-option-index="${ce}"]`), ze = b ? !1 : !Me || Me.disabled || Me.getAttribute("aria-disabled") === "true";
17784
17784
  if (Me && Me.hasAttribute("tabindex") && !ze) return ce;
17785
- if (K === "next" ? ce = (ce + 1) % Xe.length : ce = (ce - 1 + Xe.length) % Xe.length, ce === q) return -1;
17785
+ if (K === "next" ? ce = (ce + 1) % Ze.length : ce = (ce - 1 + Ze.length) % Ze.length, ce === q) return -1;
17786
17786
  }
17787
17787
  }
17788
- const Ie = Or(({ index: q, reason: K, preserveScroll: ce = !1 }) => {
17788
+ const we = Or(({ index: q, reason: K, preserveScroll: ce = !1 }) => {
17789
17789
  if (q === -1 ? ee.current.removeAttribute("aria-activedescendant") : ee.current.setAttribute("aria-activedescendant", `${Z}-option-${q}`), !oe.current) return;
17790
17790
  const Me = oe.current.querySelector(`[role="option"].${r}-focused`);
17791
17791
  Me && (Me.classList.remove(`${r}-focused`), Me.classList.remove(`${r}-focusVisible`));
@@ -17800,18 +17800,18 @@ function a6(e) {
17800
17800
  const pt = bt, St = ze.clientHeight + ze.scrollTop, fr = pt.offsetTop + pt.offsetHeight;
17801
17801
  fr > St ? ze.scrollTop = fr - ze.clientHeight : pt.offsetTop - pt.offsetHeight * (m ? 1.3 : 0) < ze.scrollTop && (ze.scrollTop = pt.offsetTop - pt.offsetHeight * (m ? 1.3 : 0));
17802
17802
  }
17803
- }), Ze = Or(({ event: q, index: K, reason: ce, preserveScroll: Me = !1 }) => {
17803
+ }), Ge = Or(({ event: q, index: K, reason: ce, preserveScroll: Me = !1 }) => {
17804
17804
  de.current = K, ke.current = ce ?? null, V && [
17805
17805
  "mouse",
17806
17806
  "keyboard",
17807
17807
  "touch"
17808
- ].includes(ce) && V(q, K === -1 ? null : Xe[K], ce), Ie({
17808
+ ].includes(ce) && V(q, K === -1 ? null : Ze[K], ce), we({
17809
17809
  index: K,
17810
17810
  reason: ce,
17811
17811
  preserveScroll: Me
17812
17812
  });
17813
17813
  }), nt = Or(({ index: q }) => {
17814
- de.current = q, Ie({
17814
+ de.current = q, we({
17815
17815
  index: q,
17816
17816
  reason: ke.current
17817
17817
  });
@@ -17819,36 +17819,36 @@ function a6(e) {
17819
17819
  if (!De) return;
17820
17820
  Me === "keyboard" && (Re.current = !1, Qe.current = !1);
17821
17821
  const pt = Ce((() => {
17822
- const St = Xe.length - 1;
17822
+ const St = Ze.length - 1;
17823
17823
  if (K === "reset") return ve;
17824
17824
  if (K === "start") return 0;
17825
17825
  if (K === "end") return St;
17826
17826
  const fr = de.current + K;
17827
17827
  return fr < 0 ? fr === -1 && B ? -1 : y && de.current !== -1 || Math.abs(K) > 1 ? 0 : St : fr > St ? fr === St + 1 && B ? -1 : y || Math.abs(K) > 1 ? St : 0 : fr;
17828
17828
  })(), ce);
17829
- if (Ze({
17829
+ if (Ge({
17830
17830
  index: pt,
17831
17831
  reason: Me,
17832
17832
  event: q,
17833
17833
  preserveScroll: ze
17834
17834
  }), n && K !== "reset") if (pt === -1) ee.current.value = ye;
17835
17835
  else {
17836
- const St = Y(Xe[pt]);
17836
+ const St = Y(Ze[pt]);
17837
17837
  ee.current.value = St, St.toLowerCase().indexOf(ye.toLowerCase()) === 0 && ye.length > 0 && ee.current.setSelectionRange(ye.length, St.length);
17838
17838
  }
17839
17839
  }), xe = !jc({
17840
17840
  array1: At.filteredOptions,
17841
- array2: Xe,
17841
+ array2: Ze,
17842
17842
  parser: Y
17843
17843
  }), ut = () => {
17844
17844
  const q = (K, ce) => (K ? Y(K) : "") === (ce ? Y(ce) : "");
17845
17845
  if (de.current !== -1 && !jc({
17846
17846
  array1: At.filteredOptions,
17847
- array2: Xe,
17847
+ array2: Ze,
17848
17848
  parser: Y
17849
17849
  }) && At.inputValue === ye && (g ? _.length === At.value.length && At.value.every((K, ce) => Y(_[ce]) === Y(K)) : q(At.value, _))) {
17850
17850
  const K = At.filteredOptions[de.current];
17851
- if (K) return Xe.findIndex((ce) => Y(ce) === Y(K));
17851
+ if (K) return Ze.findIndex((ce) => Y(ce) === Y(K));
17852
17852
  }
17853
17853
  return -1;
17854
17854
  }, Ur = I.useCallback(() => {
@@ -17859,35 +17859,35 @@ function a6(e) {
17859
17859
  return;
17860
17860
  }
17861
17861
  const K = g ? _[0] : _;
17862
- if (Xe.length === 0 || K == null) {
17862
+ if (Ze.length === 0 || K == null) {
17863
17863
  Qt({
17864
17864
  diff: "reset",
17865
- preserveScroll: xe && At.inputValue === ye && At.filteredOptions?.length > 0 && Xe.length > At.filteredOptions.length && At.filteredOptions.every((ce, Me) => Y(ce) === Y(Xe[Me]))
17865
+ preserveScroll: xe && At.inputValue === ye && At.filteredOptions?.length > 0 && Ze.length > At.filteredOptions.length && At.filteredOptions.every((ce, Me) => Y(ce) === Y(Ze[Me]))
17866
17866
  });
17867
17867
  return;
17868
17868
  }
17869
17869
  if (oe.current) {
17870
17870
  if (K != null) {
17871
- const ce = Xe[de.current];
17871
+ const ce = Ze[de.current];
17872
17872
  if (g && ce && _.findIndex((ze) => O(ce, ze)) !== -1 && At.filteredOptions?.length > 0) {
17873
17873
  nt({ index: de.current });
17874
17874
  return;
17875
17875
  }
17876
- const Me = Xe.findIndex((ze) => O(ze, K));
17877
- Me === -1 ? Qt({ diff: "reset" }) : Ze({ index: Me });
17876
+ const Me = Ze.findIndex((ze) => O(ze, K));
17877
+ Me === -1 ? Qt({ diff: "reset" }) : Ge({ index: Me });
17878
17878
  return;
17879
17879
  }
17880
- if (de.current >= Xe.length - 1) {
17881
- Ze({ index: Xe.length - 1 });
17880
+ if (de.current >= Ze.length - 1) {
17881
+ Ge({ index: Ze.length - 1 });
17882
17882
  return;
17883
17883
  }
17884
- Ze({ index: de.current });
17884
+ Ge({ index: de.current });
17885
17885
  }
17886
17886
  }, [
17887
- Xe.length,
17887
+ Ze.length,
17888
17888
  g ? !1 : _,
17889
17889
  Qt,
17890
- Ze,
17890
+ Ge,
17891
17891
  nt,
17892
17892
  De,
17893
17893
  ye,
@@ -18027,7 +18027,7 @@ function a6(e) {
18027
18027
  case "Enter": {
18028
18028
  const ce = !E || fe || ke.current !== null;
18029
18029
  if (de.current !== -1 && De && ce && !Re.current) {
18030
- const Me = Xe[de.current], ze = x ? x(Me) : !1;
18030
+ const Me = Ze[de.current], ze = x ? x(Me) : !1;
18031
18031
  if (K.preventDefault(), ze) return;
18032
18032
  ro(K, Me, "selectOption"), n && ee.current.setSelectionRange(ee.current.value.length, ee.current.value.length);
18033
18033
  } else E && ye !== "" && Je === !1 ? (g && K.preventDefault(), ro(K, ye, "createOption", "freeSolo")) : De && Re.current && (K.preventDefault(), Wr(K, "escape"));
@@ -18063,25 +18063,25 @@ function a6(e) {
18063
18063
  ee.current.focus();
18064
18064
  return;
18065
18065
  }
18066
- ot(!1), ue.current = !0, pe.current = !1, i && de.current !== -1 && De && ke.current !== "mouse" && ke.current !== "touch" ? ro(q, Xe[de.current], "blur") : i && E && ye !== "" ? ro(q, ye, "blur", "freeSolo") : s && it(q, _, "blur"), Wr(q, "blur");
18066
+ ot(!1), ue.current = !0, pe.current = !1, i && de.current !== -1 && De && ke.current !== "mouse" && ke.current !== "touch" ? ro(q, Ze[de.current], "blur") : i && E && ye !== "" ? ro(q, ye, "blur", "freeSolo") : s && it(q, _, "blur"), Wr(q, "blur");
18067
18067
  }, gd = (q) => {
18068
18068
  const K = q.target.value, ce = ye !== K;
18069
18069
  ce && (vt(K), Re.current = !1, L && L(q, K, "input")), K === "" ? !f && !g && !N && Zt(q, null, "clear") : or(q), ce && Fe(!1);
18070
18070
  }, yn = (q) => {
18071
18071
  const K = Number(q.currentTarget.getAttribute("data-option-index"));
18072
- de.current !== K ? Ze({
18072
+ de.current !== K ? Ge({
18073
18073
  event: q,
18074
18074
  index: K,
18075
18075
  reason: "mouse"
18076
18076
  }) : ke.current = "mouse", Qe.current || (Re.current = !1);
18077
18077
  }, Ot = (q) => {
18078
- Re.current = !1, Ze({
18078
+ Re.current = !1, Ge({
18079
18079
  event: q,
18080
18080
  index: Number(q.currentTarget.getAttribute("data-option-index")),
18081
18081
  reason: "touch"
18082
18082
  }), Qe.current = !0;
18083
18083
  }, Bt = (q) => {
18084
- ro(q, Xe[Number(q.currentTarget.getAttribute("data-option-index"))], "selectOption"), Qe.current = !1;
18084
+ ro(q, Ze[Number(q.currentTarget.getAttribute("data-option-index"))], "selectOption"), Qe.current = !1;
18085
18085
  }, Er = (q) => (K) => {
18086
18086
  const ce = _.slice();
18087
18087
  ce.splice(q, 1), Zt(K, ce, "removeOption", { option: _[q] });
@@ -18098,11 +18098,11 @@ function a6(e) {
18098
18098
  };
18099
18099
  let Cn = E && ye.length > 0;
18100
18100
  Cn = Cn || (g ? _.length > 0 : _ !== null);
18101
- let ga = Xe;
18101
+ let ga = Ze;
18102
18102
  if (m) {
18103
18103
  const q = /* @__PURE__ */ new Map();
18104
18104
  let K = !1;
18105
- ga = Xe.reduce((ce, Me, ze) => {
18105
+ ga = Ze.reduce((ce, Me, ze) => {
18106
18106
  const bt = m(Me);
18107
18107
  return ce.length > 0 && ce[ce.length - 1].group === bt ? ce[ce.length - 1].options.push(Me) : (process.env.NODE_ENV !== "production" && (q.get(bt) && !K && (console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${u} returns duplicated headers.`, "You can solve the issue by sorting the options with the output of `groupBy`."), K = !0), q.set(bt, !0)), ce.push({
18108
18108
  key: ze,
@@ -18600,7 +18600,7 @@ var je = Pe("MuiAutocomplete", [
18600
18600
  const n = Ve({
18601
18601
  props: t,
18602
18602
  name: "MuiAutocomplete"
18603
- }), { autoComplete: a = !1, autoHighlight: i = !1, autoSelect: l = !1, blurOnSelect: s = !1, ChipProps: c, className: u, clearIcon: p = Gc || (Gc = /* @__PURE__ */ Q(d6, { fontSize: "small" })), clearOnBlur: f = !n.freeSolo, clearOnEscape: v = !1, clearText: A = "Clear", closeText: b = "Close", componentsProps: y, defaultValue: h = n.multiple ? [] : null, disableClearable: S = !1, disableCloseOnSelect: E = !1, disabled: x = !1, disabledItemsFocusable: C = !1, disableListWrap: w = !1, disablePortal: m = !1, filterOptions: T, filterSelectedOptions: P = !1, forcePopupIcon: B = "auto", freeSolo: M = !1, fullWidth: O = !1, getLimitTagsText: g = (Ye) => `+${Ye}`, getOptionDisabled: R, getOptionKey: F, getOptionLabel: V, isOptionEqualToValue: L, groupBy: H, handleHomeEndKeys: X = !n.freeSolo, id: $, includeInputInList: J = !1, inputValue: G, limitTags: N = -1, ListboxComponent: U, ListboxProps: ne, loading: Z = !1, loadingText: Y = "Loading…", multiple: pe = !1, noOptionsText: ue = "No options", onChange: ee, onClose: oe, onHighlightChange: re, onInputChange: ie, onOpen: D, open: j, openOnFocus: se = !1, openText: ve = "Open", options: de, PaperComponent: ke, PopperComponent: Re, popupIcon: Qe = Xc || (Xc = /* @__PURE__ */ Q(Kf, {})), readOnly: We = !1, renderGroup: _, renderInput: ct, renderOption: ye, renderTags: vt, renderValue: $e, selectOnFocus: ot = !n.freeSolo, size: it = "medium", slots: Ae = {}, slotProps: be = {}, value: fe, ...Fe } = n, { getRootProps: Je, getInputProps: De, getInputLabelProps: Be, getPopupIndicatorProps: lt, getClearProps: rr, getItemProps: Xe, getListboxProps: At, getOptionProps: me, value: Ee, dirty: Ce, expanded: Ie, id: Ze, popupOpen: nt, focused: Qt, focusedItem: xe, anchorEl: ut, setAnchorEl: Ur, inputValue: Zi, groupedOptions: or } = a6({
18603
+ }), { autoComplete: a = !1, autoHighlight: i = !1, autoSelect: l = !1, blurOnSelect: s = !1, ChipProps: c, className: u, clearIcon: p = Gc || (Gc = /* @__PURE__ */ Q(d6, { fontSize: "small" })), clearOnBlur: f = !n.freeSolo, clearOnEscape: v = !1, clearText: A = "Clear", closeText: b = "Close", componentsProps: y, defaultValue: h = n.multiple ? [] : null, disableClearable: S = !1, disableCloseOnSelect: E = !1, disabled: x = !1, disabledItemsFocusable: C = !1, disableListWrap: w = !1, disablePortal: m = !1, filterOptions: T, filterSelectedOptions: P = !1, forcePopupIcon: B = "auto", freeSolo: M = !1, fullWidth: O = !1, getLimitTagsText: g = (Ye) => `+${Ye}`, getOptionDisabled: R, getOptionKey: F, getOptionLabel: V, isOptionEqualToValue: L, groupBy: H, handleHomeEndKeys: X = !n.freeSolo, id: $, includeInputInList: J = !1, inputValue: G, limitTags: N = -1, ListboxComponent: U, ListboxProps: ne, loading: Z = !1, loadingText: Y = "Loading…", multiple: pe = !1, noOptionsText: ue = "No options", onChange: ee, onClose: oe, onHighlightChange: re, onInputChange: ie, onOpen: D, open: j, openOnFocus: se = !1, openText: ve = "Open", options: de, PaperComponent: ke, PopperComponent: Re, popupIcon: Qe = Xc || (Xc = /* @__PURE__ */ Q(Kf, {})), readOnly: We = !1, renderGroup: _, renderInput: ct, renderOption: ye, renderTags: vt, renderValue: $e, selectOnFocus: ot = !n.freeSolo, size: it = "medium", slots: Ae = {}, slotProps: be = {}, value: fe, ...Fe } = n, { getRootProps: Je, getInputProps: De, getInputLabelProps: Be, getPopupIndicatorProps: lt, getClearProps: rr, getItemProps: Ze, getListboxProps: At, getOptionProps: me, value: Ee, dirty: Ce, expanded: we, id: Ge, popupOpen: nt, focused: Qt, focusedItem: xe, anchorEl: ut, setAnchorEl: Ur, inputValue: Zi, groupedOptions: or } = a6({
18604
18604
  ...n,
18605
18605
  componentName: "Autocomplete"
18606
18606
  }), Wr = $y();
@@ -18626,7 +18626,7 @@ var je = Pe("MuiAutocomplete", [
18626
18626
  const Do = !S && !x && Ce && !We, No = (!M || B === !0) && B !== !1, { onMouseDown: Ji } = De(), { ref: Yi, ...Aa } = At(), yn = V || ((Ye) => Ye.label ?? Ye), Ot = {
18627
18627
  ...n,
18628
18628
  disablePortal: m,
18629
- expanded: Ie,
18629
+ expanded: we,
18630
18630
  focused: Qt,
18631
18631
  fullWidth: O,
18632
18632
  getOptionLabel: yn,
@@ -18712,7 +18712,7 @@ var je = Pe("MuiAutocomplete", [
18712
18712
  const St = (Ye) => ({
18713
18713
  className: Bt.tag,
18714
18714
  disabled: x,
18715
- ...Xe(Ye)
18715
+ ...Ze(Ye)
18716
18716
  });
18717
18717
  if (pe ? Ee.length > 0 && (vt ? pt = vt(Ee, St, Ot) : $e ? pt = $e(Ee, St, Ot) : pt = Ee.map((Ye, Ar) => {
18718
18718
  const { key: hr, ...xn } = St({ index: Ar });
@@ -18761,7 +18761,7 @@ var je = Pe("MuiAutocomplete", [
18761
18761
  return /* @__PURE__ */ st(I.Fragment, { children: [/* @__PURE__ */ Q($i, {
18762
18762
  ...ha,
18763
18763
  children: ct({
18764
- id: Ze,
18764
+ id: Ge,
18765
18765
  disabled: x,
18766
18766
  fullWidth: n.fullWidth ?? !0,
18767
18767
  size: it === "small" ? "small" : void 0,
@@ -19878,7 +19878,7 @@ var ka = (e) => `${e.firstName} ${e.lastName}`, U6 = ({ ref: e, value: t, onChan
19878
19878
  }, ...Array.isArray(r) ? r : [r]],
19879
19879
  children: /* @__PURE__ */ d(cr, { fontSize: "small" })
19880
19880
  }), nA = ({ open: e, onClose: t, onConfirm: r, onSearch: n, searchResults: a, isSearchLoading: i, isConfirmLoading: l, avatarSrcResolver: s, labels: c, slotProps: u }) => {
19881
- const { t: p } = kt(), [f, v] = we([]), [A, b] = we(!1), y = Ne(null), h = async () => {
19881
+ const { t: p } = kt(), [f, v] = Ie([]), [A, b] = Ie(!1), y = Ne(null), h = async () => {
19882
19882
  if (!f.length || A) return;
19883
19883
  const S = r(f);
19884
19884
  if (S instanceof Promise) {
@@ -20038,7 +20038,7 @@ var ka = (e) => `${e.firstName} ${e.lastName}`, U6 = ({ ref: e, value: t, onChan
20038
20038
  })
20039
20039
  ]
20040
20040
  }), pd = () => {
20041
- const [e, t] = we(null), r = !!e;
20041
+ const [e, t] = Ie(null), r = !!e;
20042
20042
  return {
20043
20043
  anchorMenu: e,
20044
20044
  closeMenu: Ue(() => {
@@ -20050,7 +20050,7 @@ var ka = (e) => `${e.firstName} ${e.lastName}`, U6 = ({ ref: e, value: t, onChan
20050
20050
  }, [])
20051
20051
  };
20052
20052
  }, z6 = ({ threadId: e, participants: t, onDeleteConversation: r, onAddParticipants: n, onSearchParticipants: a, searchResults: i, isSearchingParticipants: l, avatarSrcResolver: s, labels: c, formatParticipantName: u, headerAction: p, onAddParticipantDialogOpenChange: f, slotProps: v, onBack: A }) => {
20053
- const { t: b } = kt(), { isMenuOpen: y, anchorMenu: h, closeMenu: S, openMenu: E } = pd(), [x, C] = we(!1), w = gs(t, u), m = () => {
20053
+ const { t: b } = kt(), { isMenuOpen: y, anchorMenu: h, closeMenu: S, openMenu: E } = pd(), [x, C] = Ie(!1), w = gs(t, u), m = () => {
20054
20054
  S(), r(e);
20055
20055
  }, T = () => {
20056
20056
  S(), C(!0), f?.(!0);
@@ -20531,7 +20531,7 @@ var fn = (e) => e.endsWith("Z") || /[+-]\d{2}:\d{2}$/.test(e) ? e : `${e}Z`, Y6
20531
20531
  strokeLinejoin: "round"
20532
20532
  })
20533
20533
  }), Ra = 15, tu = 40, sA = ({ onSend: e, labels: t, autoFocusKey: r, isSending: n, defaultMessage: a, startActions: i, slotProps: l, maxLength: s = 1e4, footnote: c, variant: u = "outlined" }) => {
20534
- const { t: p } = kt(), [f, v] = we(""), A = Ne(null), b = () => {
20534
+ const { t: p } = kt(), [f, v] = Ie(""), A = Ne(null), b = () => {
20535
20535
  !f.trim() || n || (e(f.trim()), v(""));
20536
20536
  }, y = (E) => {
20537
20537
  E.key === "Enter" && !E.shiftKey && (E.preventDefault(), b());
@@ -21296,7 +21296,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
21296
21296
  year: "numeric"
21297
21297
  });
21298
21298
  }, bC = ({ threads: e, isLoading: t, selectedThreadId: r, onSelectThread: n, onNewConversation: a, avatarSrcResolver: i, labels: l, formatDate: s, formatParticipantName: c, onLoadMore: u, hasMore: p, slotProps: f }) => {
21299
- const { t: v } = kt(), [A, b] = we(""), y = s ?? vC, h = Ne(null), S = Ne(null), E = p ?? !!u;
21299
+ const { t: v } = kt(), [A, b] = Ie(""), y = s ?? vC, h = Ne(null), S = Ne(null), E = p ?? !!u;
21300
21300
  gt(() => {
21301
21301
  const C = h.current, w = S.current;
21302
21302
  if (!(C && w && u && E) || t) return;
@@ -21522,7 +21522,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
21522
21522
  "audio/webm",
21523
21523
  "audio/mp4"
21524
21524
  ].find((e) => typeof MediaRecorder < "u" && MediaRecorder.isTypeSupported(e)), EC = (e) => `${String(Math.floor(e / 60)).padStart(2, "0")}:${String(e % 60).padStart(2, "0")}`, wC = ({ onRecorded: e, onError: t, labels: r, isProcessing: n = !1, disabled: a = !1, isHighlighted: i = !1, startLabel: l, autoSubmitOnSilence: s = !1, maxDurationMs: c = 12e4, silenceTimeoutMs: u = 2500 }) => {
21525
- const { t: p } = kt(), [f, v] = we(!1), [A, b] = we(0), [y, h] = we(() => Array(au).fill(0)), S = Ne(null), E = Ne(null), x = Ne([]), C = Ne(!1), w = Ne(null), m = Ne(null), T = () => {
21525
+ const { t: p } = kt(), [f, v] = Ie(!1), [A, b] = Ie(0), [y, h] = Ie(() => Array(au).fill(0)), S = Ne(null), E = Ne(null), x = Ne([]), C = Ne(!1), w = Ne(null), m = Ne(null), T = () => {
21526
21526
  m.current !== null && (cancelAnimationFrame(m.current), m.current = null), w.current?.close().catch(() => {
21527
21527
  }), w.current = null;
21528
21528
  }, P = () => {
@@ -21732,7 +21732,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
21732
21732
  }
21733
21733
  return r ? MC : t ? RC : i || a || void 0;
21734
21734
  }, bs = ({ children: e, open: t, onClose: r, src: n, ...a }) => {
21735
- const [i, l] = we(!1), s = () => {
21735
+ const [i, l] = Ie(!1), s = () => {
21736
21736
  l(!0);
21737
21737
  }, c = (u, p) => (u && (r?.(u, p), l(!1)), (f) => {
21738
21738
  r?.(f, p), l(!1);
@@ -21840,7 +21840,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
21840
21840
  return !1;
21841
21841
  }
21842
21842
  }, li = ({ src: e, srcThumb: t, fileName: r, children: n, sx: a, disableLightbox: i, disableThumb: l, open: s, onClose: c, onClickThumb: u, variant: p, iconOnly: f = !1, height: v = 152, width: A = 220 }) => {
21843
- const [b, y] = we(!1), [h, S] = we(!1), [E, x] = we(!0), C = uA() === cA.Firefox, w = e?.toLowerCase(), m = !(w?.endsWith(".pdf") || w?.startsWith("blob:") || w?.endsWith(".eml")), T = w?.endsWith(".pdf"), P = l ? !0 : !E, B = ys(e) || ys(t), M = T && C, O = i ? 1 : 0.8, g = (m || T) && !B && P && !h && !i && e && !M, R = e?.split(".").pop()?.toLowerCase() || "", F = r || e?.split("/").pop()?.split("?")[0] || "", V = PC(f, h, B, R, e || "", t || ""), L = () => {
21843
+ const [b, y] = Ie(!1), [h, S] = Ie(!1), [E, x] = Ie(!0), C = uA() === cA.Firefox, w = e?.toLowerCase(), m = !(w?.endsWith(".pdf") || w?.startsWith("blob:") || w?.endsWith(".eml")), T = w?.endsWith(".pdf"), P = l ? !0 : !E, B = ys(e) || ys(t), M = T && C, O = i ? 1 : 0.8, g = (m || T) && !B && P && !h && !i && e && !M, R = e?.split(".").pop()?.toLowerCase() || "", F = r || e?.split("/").pop()?.split("?")[0] || "", V = PC(f, h, B, R, e || "", t || ""), L = () => {
21844
21844
  y((G) => !G);
21845
21845
  }, H = () => {
21846
21846
  y(!1), c?.();
@@ -22639,7 +22639,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
22639
22639
  ]
22640
22640
  }, T);
22641
22641
  }, h9 = ({ Empty: e, action: t, items: r, fullWidth: n, sx: a, alwaysDisplaySecondaryAction: i, isLoading: l, disableLightbox: s, numberLoadingItems: c = 3, density: u = "standard", ...p }) => {
22642
- const [f, v] = we(""), A = uA() === cA.Firefox, b = {
22642
+ const [f, v] = Ie(""), A = uA() === cA.Firefox, b = {
22643
22643
  ...El.listItem,
22644
22644
  ...u === "comfortable" && {
22645
22645
  "&:last-of-type": { marginBottom: 0 },
@@ -22796,7 +22796,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
22796
22796
  getTextColor: t
22797
22797
  };
22798
22798
  }, e4 = ({ brand: e = "tracktor", colorShape: t, shapeBackgroundColor: r, color: n, height: a, width: i, withoutText: l, mode: s, sx: c, variant: u = "default", component: p = "img" }, f) => {
22799
- const [v, A] = we(""), { palette: b } = Ft(), { getTextColor: y, getImageModule: h, getSize: S, getShapeColor: E, getShapeBackgroundColor: x } = _C(), { height: C, width: w } = S({
22799
+ const [v, A] = Ie(""), { palette: b } = Ft(), { getTextColor: y, getImageModule: h, getSize: S, getShapeColor: E, getShapeBackgroundColor: x } = _C(), { height: C, width: w } = S({
22800
22800
  brand: e,
22801
22801
  height: a,
22802
22802
  variant: u,
@@ -23223,7 +23223,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
23223
23223
  ...e,
23224
23224
  children: [/* @__PURE__ */ d("path", { d: "M5.7 6.71c-.39.39-.39 1.02 0 1.41L9.58 12 5.7 15.88c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41L7.12 6.71c-.39-.39-1.03-.39-1.42 0" }), /* @__PURE__ */ d("path", { d: "M12.29 6.71c-.39.39-.39 1.02 0 1.41L16.17 12l-3.88 3.88c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41L13.7 6.7c-.38-.38-1.02-.38-1.41.01" })]
23225
23225
  }), n4 = ({ onCommit: e, disabled: t }) => {
23226
- const [r, n] = we(0), [a, i] = we(!1), l = Ne(0), s = Ue((p) => {
23226
+ const [r, n] = Ie(0), [a, i] = Ie(!1), l = Ne(0), s = Ue((p) => {
23227
23227
  t || (p.stopPropagation(), p.preventDefault(), l.current = p.clientX, i(!0), p.currentTarget.setPointerCapture(p.pointerId));
23228
23228
  }, [t]), c = Ue((p) => {
23229
23229
  a && n(p.clientX - l.current);
@@ -23539,7 +23539,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
23539
23539
  return null;
23540
23540
  }
23541
23541
  }, b9 = ({ groups: e, resources: t, tasks: r, isLoading: n, onTaskClick: a, onResourceClick: i, onGroupClick: l, onBarResize: s, renderGroup: c, renderResource: u, renderBar: p, renderTooltip: f, isTaskSelected: v, recenterKey: A, toolbarActions: b, toolbarLeadingActions: y, sidebarTitle: h, locale: S, labels: E, localStorageKeys: x, defaultViewMode: C = "day", sidebarWidth: w = 300, rowHeight: m = 36 }) => {
23542
- const T = x?.viewMode ?? b4.viewMode, [P, B] = we(() => y4(T) ?? C), [M, O] = we(() => /* @__PURE__ */ new Date()), { breakpoints: g, palette: R, shape: F, typography: V } = Ft(), L = uo(g.down("sm"), { noSsr: !0 }), H = L ? Math.min(w, v4) : w, [X, $] = we(L), { t: J } = kt(), G = Ne(!1), N = Ne(P), U = Ne(A), ne = Ne(null), Z = Ne(null), Y = Ne({
23542
+ const T = x?.viewMode ?? b4.viewMode, [P, B] = Ie(() => y4(T) ?? C), [M, O] = Ie(() => /* @__PURE__ */ new Date()), { breakpoints: g, palette: R, shape: F, typography: V } = Ft(), L = uo(g.down("sm"), { noSsr: !0 }), H = L ? Math.min(w, v4) : w, [X, $] = Ie(L), { t: J } = kt(), G = Ne(!1), N = Ne(P), U = Ne(A), ne = Ne(null), Z = Ne(null), Y = Ne({
23543
23543
  delta: 0,
23544
23544
  lastEventAt: 0,
23545
23545
  used: !1
@@ -24175,7 +24175,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
24175
24175
  fillOpacity: "0.54"
24176
24176
  })
24177
24177
  }), Ho = 64, yu = 1e3, w4 = ({ title: e, subtitle: t, isLastElement: r, active: n, onClick: a, variant: i, tag: l, collapseItems: s, collapseDefaultOpen: c, Action: u, Icon: p, Footer: f, Collapse: v }) => {
24178
- const [A, b] = we(!1), y = v || !!s?.length;
24178
+ const [A, b] = Ie(!1), y = v || !!s?.length;
24179
24179
  return gt(() => {
24180
24180
  c && b(!0);
24181
24181
  }, [c]), /* @__PURE__ */ k(te, {
@@ -24381,7 +24381,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
24381
24381
  },
24382
24382
  children: /* @__PURE__ */ d(Qu, { children: e })
24383
24383
  }), C9 = ({ items: e, isLoading: t, emptyMessage: r, containerStyle: n, variant: a, "data-test": i, "data-testid": l }) => {
24384
- const [s, c] = we("");
24384
+ const [s, c] = Ie("");
24385
24385
  return t ? /* @__PURE__ */ d(Tl, {
24386
24386
  sx: n,
24387
24387
  "data-test": i,
@@ -24823,7 +24823,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
24823
24823
  size: 20
24824
24824
  })
24825
24825
  }) : t?.endAdornment !== void 0 ? t?.endAdornment : r, k9 = ({ actionEndOption: e, actionStartOption: t, popupIcon: r, blurOnSelect: n, label: a, placeholder: i, name: l, slotProps: s, disableClearable: c, setSelectedValue: u, useQuery: p, noOptionsText: f, renderOption: v, getOptionLabel: A, keyOptionLabel: b, queryParams: y, openOnFocus: h, autoHighlight: S, queryParamsOnFocus: E, queryOptions: x, required: C, helperMessage: w, error: m, disabled: T, defaultValue: P, onFocus: B, onBlur: M, onChange: O, sx: g, renderInput: R, variant: F, InputProps: V, size: L, shrink: H, getOptionKey: X, width: $, limitTags: J, groupBy: G, disableCloseOnSelect: N, renderGroup: U, value: ne, PopperComponent: Z, ListboxProps: Y, multiple: pe, filterSelectedOptions: ue, autoFocus: ee, onKeyDown: oe, onNoResults: re, endAdornment: ie, inputSlotProps: D, inputRef: j, open: se, onOpen: ve, onClose: de, searchKey: ke = "q", disableInputLoader: Re = !1, fetchOnFocus: Qe = !1, filterOptions: We = (ct) => ct, getOptionImageSrc: _ = (ct) => ct || void 0 }) => {
24826
- const [ct, ye] = we(""), [vt, $e] = we(""), ot = e1(ct, 300), it = se === void 0 ? void 0 : Qe || ct ? se : !1, Ae = ot ? y : E ?? y, be = se ?? !0, { data: fe, isFetching: Fe, refetch: Je } = p({
24826
+ const [ct, ye] = Ie(""), [vt, $e] = Ie(""), ot = e1(ct, 300), it = se === void 0 ? void 0 : Qe || ct ? se : !1, Ae = ot ? y : E ?? y, be = se ?? !0, { data: fe, isFetching: Fe, refetch: Je } = p({
24827
24827
  [ke]: ot || void 0,
24828
24828
  ...Ae
24829
24829
  }, { query: {
@@ -24845,38 +24845,40 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
24845
24845
  label: e?.label
24846
24846
  }] : []
24847
24847
  ];
24848
- const Ce = !fe?.some((Ie) => Array.isArray(ne) ? ne.some((Ze) => Ie.id === Ze.id) : ne && typeof ne == "object" && "id" in ne ? Ie.id === ne.id : !0);
24848
+ const Ce = !fe?.some((we) => Array.isArray(ne) ? ne.some((Ge) => we.id === Ge.id) : ne && typeof ne == "object" && "id" in ne ? we.id === ne.id : !0);
24849
24849
  return ne && Ce ? [ne, ...fe || []] : fe || [];
24850
24850
  }, [
24851
24851
  fe,
24852
24852
  e,
24853
24853
  t,
24854
24854
  ne
24855
- ]), Be = Ue((Ce, Ie, Ze) => {
24856
- if (Array.isArray(Ie) && Ie.some((nt) => nt?.isActionOption)) {
24857
- $e(""), (Ie.some((nt) => nt?.isActionStartOption) ? t : e)?.onClick?.();
24858
- return;
24859
- }
24860
- if (Array.isArray(Ie)) {
24861
- u?.(Ie), O?.(Ce, Ie, Ze);
24862
- return;
24863
- }
24864
- if (Ie?.isActionOption) {
24865
- $e(""), (Ie.isActionStartOption ? t : e)?.onClick?.();
24866
- return;
24867
- }
24868
- if (Ze === "clear") {
24869
- u?.(null), O?.(Ce, Ie, Ze);
24870
- return;
24855
+ ]), Be = Ue((Ce, we, Ge) => {
24856
+ if (!(Ge === "selectOption" && !we)) {
24857
+ if (Array.isArray(we) && we.some((nt) => nt?.isActionOption)) {
24858
+ $e(""), (we.some((nt) => nt?.isActionStartOption) ? t : e)?.onClick?.();
24859
+ return;
24860
+ }
24861
+ if (Array.isArray(we)) {
24862
+ u?.(we), O?.(Ce, we, Ge);
24863
+ return;
24864
+ }
24865
+ if (we?.isActionOption) {
24866
+ $e(""), (we.isActionStartOption ? t : e)?.onClick?.();
24867
+ return;
24868
+ }
24869
+ if (Ge === "clear") {
24870
+ u?.(null), O?.(Ce, we, Ge);
24871
+ return;
24872
+ }
24873
+ we && u?.(we), O?.(Ce, we, Ge);
24871
24874
  }
24872
- Ie && u?.(Ie), O?.(Ce, Ie, Ze);
24873
24875
  }, [
24874
24876
  e,
24875
24877
  t,
24876
24878
  O,
24877
24879
  u
24878
- ]), lt = Ue((Ce, Ie, Ze) => {
24879
- $e(Ie), Ze === "input" && ye(Ie);
24880
+ ]), lt = Ue((Ce, we, Ge) => {
24881
+ $e(we), Ge === "input" && ye(we);
24880
24882
  }, []), rr = Ue(async () => {
24881
24883
  Qe && !ne && await Je({
24882
24884
  [ke]: ot,
@@ -24890,9 +24892,9 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
24890
24892
  Je,
24891
24893
  ke,
24892
24894
  ne
24893
- ]), Xe = Ue(() => {
24895
+ ]), Ze = Ue(() => {
24894
24896
  ye(""), M?.();
24895
- }, [M]), At = Ue((Ce) => Array.isArray(Ce) ? Ce.map((Ie) => Ie?.isActionOption ? Ie.label : typeof b == "string" ? Ie?.[b] : b.map((Ze) => Ie[Ze]).join(" ")).join(", ") : typeof b == "string" ? Ce?.[b] : b.map((Ie) => Ce[Ie]).join(" "), [b]), me = Ue((Ce) => A && !Array.isArray(Ce) && !Ce?.isActionOption ? A(Ce) : At(Ce), [A, At]), Ee = Ue((Ce, Ie) => Array.isArray(Ie) ? Ie.some((Ze) => Ce && Ze ? typeof b == "string" ? Ce[b] === Ze[b] : b.map((nt) => Ce?.[nt]).join(" ") === b.map((nt) => Ze?.[nt]).join(" ") : !1) : typeof b == "string" ? Ce[b] === Ie[b] : b.map((Ze) => Ce?.[Ze]).join(" ") === b.map((Ze) => Ie[Ze]).join(" "), [b]);
24897
+ }, [M]), At = Ue((Ce) => Array.isArray(Ce) ? Ce.map((we) => we?.isActionOption ? we.label : typeof b == "string" ? we?.[b] : b.map((Ge) => we[Ge]).join(" ")).join(", ") : typeof b == "string" ? Ce?.[b] : b.map((we) => Ce[we]).join(" "), [b]), me = Ue((Ce) => A && !Array.isArray(Ce) && !Ce?.isActionOption ? A(Ce) : At(Ce), [A, At]), Ee = Ue((Ce, we) => Array.isArray(we) ? we.some((Ge) => Ce && Ge ? typeof b == "string" ? Ce[b] === Ge[b] : b.map((nt) => Ce?.[nt]).join(" ") === b.map((nt) => Ge?.[nt]).join(" ") : !1) : typeof b == "string" ? Ce[b] === we[b] : b.map((Ge) => Ce?.[Ge]).join(" ") === b.map((Ge) => we[Ge]).join(" "), [b]);
24896
24898
  return gt(() => {
24897
24899
  !re || Fe || !ot || fe === void 0 || fe.length === 0 && re(ot);
24898
24900
  }, [
@@ -24927,7 +24929,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
24927
24929
  loading: Fe,
24928
24930
  inputValue: vt,
24929
24931
  options: De,
24930
- onBlur: Xe,
24932
+ onBlur: Ze,
24931
24933
  onFocus: rr,
24932
24934
  onChange: Be,
24933
24935
  onInputChange: lt,
@@ -24938,8 +24940,8 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
24938
24940
  listbox: Y,
24939
24941
  ...s
24940
24942
  },
24941
- renderOption: v || ((Ce, Ie) => {
24942
- const { key: Ze, ...nt } = Ce, Qt = Ie && typeof Ie == "object" && "image" in Ie ? Ie.image : "", xe = me(Ie);
24943
+ renderOption: v || ((Ce, we) => {
24944
+ const { key: Ge, ...nt } = Ce, Qt = we && typeof we == "object" && "image" in we ? we.image : "", xe = me(we);
24943
24945
  return /* @__PURE__ */ d(Mt, {
24944
24946
  title: xe,
24945
24947
  placement: "right",
@@ -24956,8 +24958,8 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
24956
24958
  textOverflow: "ellipsis",
24957
24959
  children: xe
24958
24960
  })]
24959
- }, Ze)
24960
- }, Ze);
24961
+ }, Ge)
24962
+ }, Ge);
24961
24963
  }),
24962
24964
  renderInput: R || ((Ce) => /* @__PURE__ */ d(eo, {
24963
24965
  ...Ce,
@@ -25147,7 +25149,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
25147
25149
  sx: [({ zIndex: l }) => ({ zIndex: l.modal }), ...Array.isArray(r) ? r : [r]]
25148
25150
  });
25149
25151
  }, N4 = ({ variant: e, onChange: t, disableCheckbox: r, placeholder: n, label: a, localeText: i, disableReset: l, disableSelectAll: s, value: c, onFocus: u, onBlur: p, open: f, getOptionLabel: v, onInputChange: A, inputValue: b, disableClearable: y, loading: h, resetInputValueOnSelectOption: S, renderOption: E, renderValue: x, width: C, sx: w, slotProps: m, tooltip: T, tooltipProps: P, size: B = "small", disableCloseOnSelect: M = !0, multiple: O = !0, options: g = [], ...R }, F) => {
25150
- const { t: V } = kt(), [L, H] = we(!1), [X, $] = we(""), J = b || X, G = e === "chip", N = e === "filled", U = Array.isArray(c) ? !!c.length : c != null, ne = P4(c, O), Z = a ?? n, Y = !!Z, pe = L && !!J, ue = (!!J || U) && !y, ee = Y && U && !pe, oe = Y && !ee, re = U && (O || ee) && !L, D = /* @__PURE__ */ d(ws, {
25152
+ const { t: V } = kt(), [L, H] = Ie(!1), [X, $] = Ie(""), J = b || X, G = e === "chip", N = e === "filled", U = Array.isArray(c) ? !!c.length : c != null, ne = P4(c, O), Z = a ?? n, Y = !!Z, pe = L && !!J, ue = (!!J || U) && !y, ee = Y && U && !pe, oe = Y && !ee, re = U && (O || ee) && !L, D = /* @__PURE__ */ d(ws, {
25151
25153
  freeSolo: !1,
25152
25154
  multiple: O,
25153
25155
  disableClearable: y,
@@ -25701,7 +25703,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
25701
25703
  children: e
25702
25704
  });
25703
25705
  function B9({ label: e, value: t, onChange: r, checked: n, onCheckedChange: a, options: i, variant: l, disabled: s, labelMenu: c, labelOnlyAfterSelection: u, applyOnSelect: p, hideMenuHeader: f, denseMenu: v, menuProps: A, separatorBetweenLabelAndOptionSelected: b = ":", multiple: y = !1, size: h = "medium" }) {
25704
- const S = n !== void 0, [E, x] = we(() => S ? n : y ? t || [] : t), C = S ? n : y ? t?.length > 0 : t != null, { anchorMenu: w, openMenu: m, isMenuOpen: T, closeMenu: P } = pd(), { t: B } = kt(), M = Array.isArray(i), O = i !== void 0, g = (J) => {
25706
+ const S = n !== void 0, [E, x] = Ie(() => S ? n : y ? t || [] : t), C = S ? n : y ? t?.length > 0 : t != null, { anchorMenu: w, openMenu: m, isMenuOpen: T, closeMenu: P } = pd(), { t: B } = kt(), M = Array.isArray(i), O = i !== void 0, g = (J) => {
25705
25707
  S ? a?.(J) : r?.(J);
25706
25708
  }, R = () => {
25707
25709
  g(E), P();
@@ -25872,7 +25874,7 @@ function B9({ label: e, value: t, onChange: r, checked: n, onCheckedChange: a, o
25872
25874
  })] });
25873
25875
  }
25874
25876
  var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
25875
- const [a, i] = we(!1), [l, s] = we(String(e)), c = () => {
25877
+ const [a, i] = Ie(!1), [l, s] = Ie(String(e)), c = () => {
25876
25878
  i(!1);
25877
25879
  const f = parseInt(l, 10);
25878
25880
  !Number.isNaN(f) && f > 0 && f !== e ? n(f) : s(String(e));
@@ -26091,7 +26093,7 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
26091
26093
  }).join(" • ");
26092
26094
  return e.length > Iu ? `${r} + ${e.length - Iu}` : r;
26093
26095
  }, F9 = Nt(({ accept: e, name: t, disabled: r, required: n, error: a, localeText: i, multiple: l, id: s, size: c, helperText: u, fullWidth: p, icon: f, onChange: v, label: A, pattern: b, title: y, value: h, variant: S = "vertical" }, E) => {
26094
- const [x, C] = we(null), { t: w } = kt(), { palette: m } = Ft(), T = S === "vertical", P = s || t, B = Ne(null), M = Ne(null), O = h === void 0 ? x : h, g = K4(O);
26096
+ const [x, C] = Ie(null), { t: w } = kt(), { palette: m } = Ft(), T = S === "vertical", P = s || t, B = Ne(null), M = Ne(null), O = h === void 0 ? x : h, g = K4(O);
26095
26097
  Xu(E, () => {
26096
26098
  const L = M.current;
26097
26099
  return L.reset = () => {
@@ -26392,7 +26394,7 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
26392
26394
  const c = t?.toString() || r?.toString() || n?.toString() || " ", u = s.measureText(c).width, p = parseFloat(i.paddingLeft), f = parseFloat(i.paddingRight);
26393
26395
  return u + p + f + a;
26394
26396
  }, Q9 = Nt(({ sx: e, maxWidth: t, minWidth: r, ...n }, a) => {
26395
- const i = Ne(null), [l, s] = we(null), c = Ne(void 0), { size: u } = n, p = u === "tiny", f = p ? 27 : 50, v = n?.slotProps?.input, A = !!v?.startAdornment || !!n?.InputProps?.startAdornment, b = !!v?.endAdornment || !!n?.InputProps?.endAdornment, y = (A ? f : 0) + (b ? f : 0), h = Ue(() => {
26397
+ const i = Ne(null), [l, s] = Ie(null), c = Ne(void 0), { size: u } = n, p = u === "tiny", f = p ? 27 : 50, v = n?.slotProps?.input, A = !!v?.startAdornment || !!n?.InputProps?.startAdornment, b = !!v?.endAdornment || !!n?.InputProps?.endAdornment, y = (A ? f : 0) + (b ? f : 0), h = Ue(() => {
26396
26398
  const E = Z4(i.current, n.value, n.defaultValue, n.placeholder, y);
26397
26399
  E !== null && s(Math.min(Math.max(E, r ?? 0), t ?? 1 / 0));
26398
26400
  }, [
@@ -26525,7 +26527,7 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
26525
26527
  fill: r
26526
26528
  })
26527
26529
  }), W9 = ({ slotProps: e, ...t }) => {
26528
- const [r, n] = we(!1), a = () => {
26530
+ const [r, n] = Ie(!1), a = () => {
26529
26531
  n((s) => !s);
26530
26532
  }, i = (s) => {
26531
26533
  s.preventDefault();
@@ -26654,7 +26656,7 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
26654
26656
  color: "textSecondary",
26655
26657
  children: t
26656
26658
  })] }), K9 = ({ compactTitle: e, fullTitle: t, actions: r, compactActions: n, variant: a = "preview", onClose: i, onOpenFullPage: l, dense: s = !1, backLabel: c, onBack: u, labels: p, maxWidth: f = "lg" }) => {
26657
- const [v, A] = we(!1), { t: b } = kt(), { breakpoints: y } = Ft(), h = uo(y.down("sm")), S = uo(y.up("lg")), E = Ne(null), x = YA() ? "⌘+↵" : "Ctrl+↵", C = typeof f == "number" ? {
26659
+ const [v, A] = Ie(!1), { t: b } = kt(), { breakpoints: y } = Ft(), h = uo(y.down("sm")), S = uo(y.up("lg")), E = Ne(null), x = YA() ? "⌘+↵" : "Ctrl+↵", C = typeof f == "number" ? {
26658
26660
  maxWidth: !1,
26659
26661
  sx: { maxWidth: f }
26660
26662
  } : { maxWidth: f }, w = Ue((m) => p?.[m] ?? b(m), [p, b]);
@@ -27262,7 +27264,7 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
27262
27264
  })
27263
27265
  });
27264
27266
  }, c5 = ({ group: e }) => {
27265
- const { density: t, isMobile: r, isCollapsed: n } = xr(mo), { listItemPaddingY: a } = Mo[t], { groupLabel: i, items: l, collapsible: s = !1, defaultExpanded: c = !0 } = e, [u, p] = we(c), f = hd[t], v = l.filter((h) => !bA(h, r));
27267
+ const { density: t, isMobile: r, isCollapsed: n } = xr(mo), { listItemPaddingY: a } = Mo[t], { groupLabel: i, items: l, collapsible: s = !1, defaultExpanded: c = !0 } = e, [u, p] = Ie(c), f = hd[t], v = l.filter((h) => !bA(h, r));
27266
27268
  if (!v.length) return null;
27267
27269
  const A = n || !s || u, b = () => s && p((h) => !h), y = (h) => {
27268
27270
  s && (h.key === "Enter" || h.key === " ") && (h.preventDefault(), b());
@@ -27360,7 +27362,7 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
27360
27362
  children: /* @__PURE__ */ d(Fu, { items: e })
27361
27363
  });
27362
27364
  }, A5 = ({ AppBar: e, NavLink: t, Search: r, Logo: n, Footer: a, items: i, enableSearchFocusShortcut: l, disableResponsive: s, hideSearchDesktop: c, bottomLink: u, sideBarWidth: p = 260, storageKey: f = u5, density: v = "standard", makeRoom: A = !1 }) => {
27363
- const [b, y] = we(CA.isDrawerOpen), [h, S] = we(() => p5(f)), [E, x] = we(!1), { breakpoints: C } = Ft(), w = uo(C.down("sm")), m = uo(C.between("sm", "md")), T = !((w || m) && !s) && (A ? !E : h), P = Ue(() => {
27365
+ const [b, y] = Ie(CA.isDrawerOpen), [h, S] = Ie(() => p5(f)), [E, x] = Ie(!1), { breakpoints: C } = Ft(), w = uo(C.down("sm")), m = uo(C.between("sm", "md")), T = !((w || m) && !s) && (A ? !E : h), P = Ue(() => {
27364
27366
  y(!1);
27365
27367
  }, []), B = Ue(() => {
27366
27368
  y(!0);
@@ -27647,7 +27649,7 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
27647
27649
  const { hasPermission: i } = b5(), l = i(r, n, a);
27648
27650
  return l ? e : !l && t ? t : null;
27649
27651
  }, e8 = ({ children: e, permissions: t, disabledPermissions: r }) => {
27650
- const [n, a] = we(), i = mr(() => ({
27652
+ const [n, a] = Ie(), i = mr(() => ({
27651
27653
  disabledPermissions: r,
27652
27654
  permissions: n,
27653
27655
  setPermissions: a
@@ -27674,7 +27676,7 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
27674
27676
  horizontal: "center",
27675
27677
  vertical: "bottom"
27676
27678
  } }) => {
27677
- const [n, a] = we(y5), i = Ue((c) => {
27679
+ const [n, a] = Ie(y5), i = Ue((c) => {
27678
27680
  a({
27679
27681
  component: c?.component,
27680
27682
  isOpen: !0,
@@ -27711,7 +27713,7 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
27711
27713
  }, n.message), e]
27712
27714
  });
27713
27715
  }, Nu = 24, r8 = () => {
27714
- const [e, t] = we({
27716
+ const [e, t] = Ie({
27715
27717
  left: !1,
27716
27718
  right: !1
27717
27719
  }), r = Ne(null), n = Ne(null), a = Ue(() => {
@@ -27744,7 +27746,7 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
27744
27746
  openSnackbar: n
27745
27747
  };
27746
27748
  }, n8 = () => {
27747
- const [e, t] = we(0);
27749
+ const [e, t] = Ie(0);
27748
27750
  return {
27749
27751
  handleChange: Ue((r, n) => {
27750
27752
  t(n);