@getsoren/design-system 4.72.0 → 4.73.1
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/main.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Alert as is, AppBar as ml, Autocomplete as Yc, Avatar as _r, AvatarGrou
|
|
|
3
3
|
import tA from "@emotion/styled";
|
|
4
4
|
import { Global as rA, ThemeContext as oA, createElement as nu, css as oi, keyframes as Ro } from "@emotion/react";
|
|
5
5
|
import * as I from "react";
|
|
6
|
-
import Qr, { Children as au, cloneElement as vo, createContext as ni, forwardRef as Vt, isValidElement as Ut, memo as ai, useCallback as Qe, useContext as br, useEffect as Ct, useId as nA, useImperativeHandle as iu, useMemo as Ar, useRef as ze, useState as
|
|
6
|
+
import Qr, { Children as au, cloneElement as vo, createContext as ni, forwardRef as Vt, isValidElement as Ut, memo as ai, useCallback as Qe, useContext as br, useEffect as Ct, useId as nA, useImperativeHandle as iu, useMemo as Ar, useRef as ze, useState as We } from "react";
|
|
7
7
|
import * as Qn from "react/jsx-runtime";
|
|
8
8
|
import { jsx as Q, jsxs as nt } from "react/jsx-runtime";
|
|
9
9
|
import * as aA from "react-dom";
|
|
@@ -8403,7 +8403,7 @@ var Jo = /* @__PURE__ */ I.forwardRef(function(t, r) {
|
|
|
8403
8403
|
const Ce = {};
|
|
8404
8404
|
A || (Ae.onTouchStart = ve, Ae.onTouchEnd = dt), g || (Ae.onMouseOver = ga(Te, Ae.onMouseOver), Ae.onMouseLeave = ga(ke, Ae.onMouseLeave), X || (Ce.onMouseOver = Te, Ce.onMouseLeave = ke)), p || (Ae.onFocus = ga(_, Ae.onFocus), Ae.onBlur = ga(Fe, Ae.onBlur), X || (Ce.onFocus = _, Ce.onBlur = Fe)), process.env.NODE_ENV !== "production" && z.props.title && console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.", `Remove this title prop \`${z.props.title}\` or the Tooltip component.`].join(`
|
|
8405
8405
|
`));
|
|
8406
|
-
const
|
|
8406
|
+
const je = {
|
|
8407
8407
|
...n,
|
|
8408
8408
|
isRtl: te,
|
|
8409
8409
|
arrow: a,
|
|
@@ -8411,7 +8411,7 @@ var Jo = /* @__PURE__ */ I.forwardRef(function(t, r) {
|
|
|
8411
8411
|
placement: M,
|
|
8412
8412
|
PopperComponentProp: k,
|
|
8413
8413
|
touch: oe.current
|
|
8414
|
-
}, $e = typeof O.popper == "function" ? O.popper(
|
|
8414
|
+
}, $e = typeof O.popper == "function" ? O.popper(je) : O.popper, Et = I.useMemo(() => {
|
|
8415
8415
|
let Se = [{
|
|
8416
8416
|
name: "arrow",
|
|
8417
8417
|
enabled: !!V,
|
|
@@ -8429,7 +8429,7 @@ var Jo = /* @__PURE__ */ I.forwardRef(function(t, r) {
|
|
|
8429
8429
|
V,
|
|
8430
8430
|
B.popperOptions,
|
|
8431
8431
|
$e?.popperOptions
|
|
8432
|
-
]), Ft = bb(
|
|
8432
|
+
]), Ft = bb(je), $t = typeof O.transition == "function" ? O.transition(je) : O.transition, Ge = {
|
|
8433
8433
|
slots: {
|
|
8434
8434
|
popper: s.Popper,
|
|
8435
8435
|
transition: s.Transition ?? D,
|
|
@@ -8452,22 +8452,22 @@ var Jo = /* @__PURE__ */ I.forwardRef(function(t, r) {
|
|
|
8452
8452
|
}, [ct, me] = qe("popper", {
|
|
8453
8453
|
elementType: vb,
|
|
8454
8454
|
externalForwardedProps: Ge,
|
|
8455
|
-
ownerState:
|
|
8455
|
+
ownerState: je,
|
|
8456
8456
|
className: he(Ft.popper, B?.className)
|
|
8457
8457
|
}), [Ee, xe] = qe("transition", {
|
|
8458
8458
|
elementType: wo,
|
|
8459
8459
|
externalForwardedProps: Ge,
|
|
8460
|
-
ownerState:
|
|
8460
|
+
ownerState: je
|
|
8461
8461
|
}), [we, Ze] = qe("tooltip", {
|
|
8462
8462
|
elementType: yb,
|
|
8463
8463
|
className: Ft.tooltip,
|
|
8464
8464
|
externalForwardedProps: Ge,
|
|
8465
|
-
ownerState:
|
|
8465
|
+
ownerState: je
|
|
8466
8466
|
}), [ot, Mt] = qe("arrow", {
|
|
8467
8467
|
elementType: Cb,
|
|
8468
8468
|
className: Ft.arrow,
|
|
8469
8469
|
externalForwardedProps: Ge,
|
|
8470
|
-
ownerState:
|
|
8470
|
+
ownerState: je,
|
|
8471
8471
|
ref: q
|
|
8472
8472
|
});
|
|
8473
8473
|
return /* @__PURE__ */ nt(I.Fragment, { children: [/* @__PURE__ */ I.cloneElement(z, Ae), /* @__PURE__ */ Q(ct, {
|
|
@@ -9381,7 +9381,7 @@ var Mb = ({ title: e, subtitle: t, onClose: r, icon: n = /* @__PURE__ */ d(Ms, {
|
|
|
9381
9381
|
children: r
|
|
9382
9382
|
})
|
|
9383
9383
|
}), er = 6, Vb = 200, Fb = ({ anchor: e, blocking: t = !1, onWindowClick: r, dataTestId: n = "assistantSpotlight" }) => {
|
|
9384
|
-
const [a, i] =
|
|
9384
|
+
const [a, i] = We(() => e.getBoundingClientRect()), l = Qe(() => i(e.getBoundingClientRect()), [e]);
|
|
9385
9385
|
return Ct(() => {
|
|
9386
9386
|
l();
|
|
9387
9387
|
const s = window.setInterval(l, Vb);
|
|
@@ -9640,7 +9640,7 @@ var Ub = (e, t) => {
|
|
|
9640
9640
|
height: t,
|
|
9641
9641
|
sx: r
|
|
9642
9642
|
}), Wb = ({ src: e, isLoading: t, secondarySrc: r, secondaryAvatarProps: n, sx: a, secondaryTitle: i, width: l = 64, height: s = 64, alt: c = "Article" }) => {
|
|
9643
|
-
const [u, p] =
|
|
9643
|
+
const [u, p] = We(!1), [g, v] = We(!1), { borderRadius: A, padding: b } = Ub(l, s), m = {
|
|
9644
9644
|
borderRadius: A,
|
|
9645
9645
|
flexShrink: 0
|
|
9646
9646
|
}, f = e && !u && !g || t, S = !e || g && !t, w = e?.endsWith(".png") || e?.endsWith(".svg") || e?.endsWith(".gif") || e?.endsWith(".webp"), C = () => {
|
|
@@ -10133,7 +10133,7 @@ var Ub = (e, t) => {
|
|
|
10133
10133
|
...e,
|
|
10134
10134
|
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" })
|
|
10135
10135
|
}), _b = ({ text: e, children: t }) => {
|
|
10136
|
-
const [r, n] =
|
|
10136
|
+
const [r, n] = We("");
|
|
10137
10137
|
return /* @__PURE__ */ d(Bt, {
|
|
10138
10138
|
title: r,
|
|
10139
10139
|
children: /* @__PURE__ */ d(G, {
|
|
@@ -14193,8 +14193,8 @@ var Bv = qs.Provider, nc, Pv = ne(Xp, {
|
|
|
14193
14193
|
]), Me && (w ? Ve.length === 0 ? fe = null : fe = Ve.reduce((me, Ee, xe) => (me.push(Ee), xe < Ve.length - 1 && me.push(", "), me), []) : fe = ge);
|
|
14194
14194
|
let Ce = J;
|
|
14195
14195
|
!l && ee && pe && (Ce = be.clientWidth);
|
|
14196
|
-
let
|
|
14197
|
-
typeof L < "u" ?
|
|
14196
|
+
let je;
|
|
14197
|
+
typeof L < "u" ? je = L : je = g ? null : 0;
|
|
14198
14198
|
const $e = N.id || (C ? `mui-component-select-${C}` : void 0), Et = {
|
|
14199
14199
|
...t,
|
|
14200
14200
|
variant: te,
|
|
@@ -14212,7 +14212,7 @@ var Bv = qs.Provider, nc, Pv = ne(Xp, {
|
|
|
14212
14212
|
/* @__PURE__ */ Q(Pv, {
|
|
14213
14213
|
as: "div",
|
|
14214
14214
|
ref: de,
|
|
14215
|
-
tabIndex:
|
|
14215
|
+
tabIndex: je,
|
|
14216
14216
|
role: "combobox",
|
|
14217
14217
|
"aria-controls": ce ? ct : void 0,
|
|
14218
14218
|
"aria-disabled": g ? "true" : void 0,
|
|
@@ -14691,8 +14691,8 @@ var Gt = Be("MuiInputBase", [
|
|
|
14691
14691
|
if (!l) return;
|
|
14692
14692
|
const Ae = ee.current;
|
|
14693
14693
|
if (!Ae) return;
|
|
14694
|
-
const Ce = Kn(Ae),
|
|
14695
|
-
Ae ===
|
|
14694
|
+
const Ce = Kn(Ae), je = jo(Ce), $e = je == null || je === Ce.body || je === Ce.documentElement;
|
|
14695
|
+
Ae === je ? j && j.onFocus ? j.onFocus() : F(!0) : $e && Ae.focus();
|
|
14696
14696
|
}, [l]);
|
|
14697
14697
|
const ke = (Ae) => {
|
|
14698
14698
|
P && P(Ae), C.onFocus && C.onFocus(Ae), j && j.onFocus ? j.onFocus(Ae) : F(!0);
|
|
@@ -14700,9 +14700,9 @@ var Gt = Be("MuiInputBase", [
|
|
|
14700
14700
|
B && B(Ae), C.onBlur && C.onBlur(Ae), j && j.onBlur ? j.onBlur(Ae) : F(!1);
|
|
14701
14701
|
}, Fe = (Ae, ...Ce) => {
|
|
14702
14702
|
if (!le) {
|
|
14703
|
-
const
|
|
14704
|
-
if (
|
|
14705
|
-
Te({ value:
|
|
14703
|
+
const je = Ae.target || ee.current;
|
|
14704
|
+
if (je == null) throw new Error(process.env.NODE_ENV !== "production" ? "MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info." : qr(1));
|
|
14705
|
+
Te({ value: je.value });
|
|
14706
14706
|
}
|
|
14707
14707
|
C.onChange && C.onChange(Ae, ...Ce), O && O(Ae, ...Ce);
|
|
14708
14708
|
};
|
|
@@ -16462,12 +16462,12 @@ function Py(e) {
|
|
|
16462
16462
|
default: !1,
|
|
16463
16463
|
name: u,
|
|
16464
16464
|
state: "open"
|
|
16465
|
-
}), [Ae, Ce] = I.useState(!0),
|
|
16465
|
+
}), [Ae, Ce] = I.useState(!0), je = !h && _ != null && ve === Z(_), $e = Me && !H, Et = I.useMemo(() => h ? _ : _ != null ? [_] : [], [h, _]), Ft = I.useMemo(() => O !== uc || Et.length === 0 ? null : new Set(Et), [O, Et]), $t = I.useCallback((U) => Ft ? Ft.has(U) : Et.some((W) => W != null && O(U, W)), [
|
|
16466
16466
|
O,
|
|
16467
16467
|
Et,
|
|
16468
16468
|
Ft
|
|
16469
16469
|
]), Ge = $e ? f($.filter((U) => !(S && $t(U))), {
|
|
16470
|
-
inputValue:
|
|
16470
|
+
inputValue: je && Ae ? "" : ve,
|
|
16471
16471
|
getOptionLabel: Z
|
|
16472
16472
|
}) : [], ct = Iy({
|
|
16473
16473
|
filteredOptions: Ge,
|
|
@@ -16753,7 +16753,7 @@ function Py(e) {
|
|
|
16753
16753
|
const Oe = Ge[ce.current], Ke = C ? C(Oe) : !1;
|
|
16754
16754
|
if (W.preventDefault(), Ke) return;
|
|
16755
16755
|
Zr(W, Oe, "selectOption"), n && ee.current.setSelectionRange(ee.current.value.length, ee.current.value.length);
|
|
16756
|
-
} else w && ve !== "" &&
|
|
16756
|
+
} else w && ve !== "" && je === !1 ? (h && W.preventDefault(), Zr(W, ve, "createOption", "freeSolo")) : $e && ke.current && (W.preventDefault(), Lr(W, "escape"));
|
|
16757
16757
|
break;
|
|
16758
16758
|
}
|
|
16759
16759
|
case "Escape":
|
|
@@ -17769,7 +17769,7 @@ var Ne = Be("MuiAutocomplete", [
|
|
|
17769
17769
|
const n = De({
|
|
17770
17770
|
props: t,
|
|
17771
17771
|
name: "MuiAutocomplete"
|
|
17772
|
-
}), { autoComplete: a = !1, autoHighlight: i = !1, autoSelect: l = !1, blurOnSelect: s = !1, ChipProps: c, className: u, clearIcon: p = Ac || (Ac = /* @__PURE__ */ Q(qy, { fontSize: "small" })), clearOnBlur: g = !n.freeSolo, clearOnEscape: v = !1, clearText: A = "Clear", closeText: b = "Close", componentsProps: m, defaultValue: f = n.multiple ? [] : null, disableClearable: S = !1, disableCloseOnSelect: w = !1, disabled: C = !1, disabledItemsFocusable: x = !1, disableListWrap: E = !1, disablePortal: y = !1, filterOptions: T, filterSelectedOptions: M = !1, forcePopupIcon: k = "auto", freeSolo: B = !1, fullWidth: O = !1, getLimitTagsText: h = (Je) => `+${Je}`, getOptionDisabled: P, getOptionKey: D, getOptionLabel: N, isOptionEqualToValue: L, groupBy: z, handleHomeEndKeys: Y = !n.freeSolo, id: te, includeInputInList: $ = !1, inputValue: H, limitTags: V = -1, ListboxComponent: q, ListboxProps: oe, loading: X = !1, loadingText: Z = "Loading…", multiple: pe = !1, noOptionsText: le = "No options", onChange: ee, onClose: J, onHighlightChange: re, onInputChange: ae, onOpen: F, open: j, openOnFocus: de = !1, openText: be = "Open", options: ce, PaperComponent: Te, PopperComponent: ke, popupIcon: Le = gc || (gc = /* @__PURE__ */ Q(ef, {})), readOnly: Fe = !1, renderGroup: _, renderInput: at, renderOption: ve, renderTags: dt, renderValue: fe, selectOnFocus: ge = !n.freeSolo, size: Ve = "medium", slots: Me = {}, slotProps: lt = {}, value: Ae, ...Ce } = n, { getRootProps:
|
|
17772
|
+
}), { autoComplete: a = !1, autoHighlight: i = !1, autoSelect: l = !1, blurOnSelect: s = !1, ChipProps: c, className: u, clearIcon: p = Ac || (Ac = /* @__PURE__ */ Q(qy, { fontSize: "small" })), clearOnBlur: g = !n.freeSolo, clearOnEscape: v = !1, clearText: A = "Clear", closeText: b = "Close", componentsProps: m, defaultValue: f = n.multiple ? [] : null, disableClearable: S = !1, disableCloseOnSelect: w = !1, disabled: C = !1, disabledItemsFocusable: x = !1, disableListWrap: E = !1, disablePortal: y = !1, filterOptions: T, filterSelectedOptions: M = !1, forcePopupIcon: k = "auto", freeSolo: B = !1, fullWidth: O = !1, getLimitTagsText: h = (Je) => `+${Je}`, getOptionDisabled: P, getOptionKey: D, getOptionLabel: N, isOptionEqualToValue: L, groupBy: z, handleHomeEndKeys: Y = !n.freeSolo, id: te, includeInputInList: $ = !1, inputValue: H, limitTags: V = -1, ListboxComponent: q, ListboxProps: oe, loading: X = !1, loadingText: Z = "Loading…", multiple: pe = !1, noOptionsText: le = "No options", onChange: ee, onClose: J, onHighlightChange: re, onInputChange: ae, onOpen: F, open: j, openOnFocus: de = !1, openText: be = "Open", options: ce, PaperComponent: Te, PopperComponent: ke, popupIcon: Le = gc || (gc = /* @__PURE__ */ Q(ef, {})), readOnly: Fe = !1, renderGroup: _, renderInput: at, renderOption: ve, renderTags: dt, renderValue: fe, selectOnFocus: ge = !n.freeSolo, size: Ve = "medium", slots: Me = {}, slotProps: lt = {}, value: Ae, ...Ce } = n, { getRootProps: je, getInputProps: $e, getInputLabelProps: Et, getPopupIndicatorProps: Ft, getClearProps: $t, getItemProps: Ge, getListboxProps: ct, getOptionProps: me, value: Ee, dirty: xe, expanded: we, id: Ze, popupOpen: ot, focused: Mt, focusedItem: Se, anchorEl: it, setAnchorEl: Dr, inputValue: qi, groupedOptions: _t } = Py({
|
|
17773
17773
|
...n,
|
|
17774
17774
|
componentName: "Autocomplete"
|
|
17775
17775
|
}), Lr = wy();
|
|
@@ -17824,7 +17824,7 @@ var Ne = Be("MuiAutocomplete", [
|
|
|
17824
17824
|
...yr,
|
|
17825
17825
|
...Ce
|
|
17826
17826
|
},
|
|
17827
|
-
getSlotProps:
|
|
17827
|
+
getSlotProps: je,
|
|
17828
17828
|
ownerState: wt
|
|
17829
17829
|
}), [Hi, zi] = qe("listbox", {
|
|
17830
17830
|
elementType: $y,
|
|
@@ -19123,15 +19123,27 @@ var ya = (e) => `${e.firstName} ${e.lastName}`, b3 = ({ ref: e, value: t, onChan
|
|
|
19123
19123
|
})
|
|
19124
19124
|
});
|
|
19125
19125
|
}, Yl = Vt(x3), lo = Yl, hf = ({ open: e, onClose: t, onConfirm: r, onSearch: n, searchResults: a, isSearchLoading: i, isConfirmLoading: l, avatarSrcResolver: s, labels: c }) => {
|
|
19126
|
-
const [u, p] =
|
|
19127
|
-
u.length
|
|
19126
|
+
const [u, p] = We([]), [g, v] = We(!1), A = ze(null), b = async () => {
|
|
19127
|
+
if (!u.length || g) return;
|
|
19128
|
+
const m = r(u);
|
|
19129
|
+
if (m instanceof Promise) {
|
|
19130
|
+
v(!0);
|
|
19131
|
+
try {
|
|
19132
|
+
await m;
|
|
19133
|
+
} catch {
|
|
19134
|
+
return;
|
|
19135
|
+
} finally {
|
|
19136
|
+
v(!1);
|
|
19137
|
+
}
|
|
19138
|
+
}
|
|
19139
|
+
p([]), t();
|
|
19128
19140
|
};
|
|
19129
19141
|
return /* @__PURE__ */ R(nf, {
|
|
19130
19142
|
fullWidth: !0,
|
|
19131
19143
|
maxWidth: "sm",
|
|
19132
19144
|
open: e,
|
|
19133
19145
|
onClose: t,
|
|
19134
|
-
onAnimationEnd: () =>
|
|
19146
|
+
onAnimationEnd: () => A.current?.focus(),
|
|
19135
19147
|
children: [
|
|
19136
19148
|
/* @__PURE__ */ d(v3, { onClick: t }),
|
|
19137
19149
|
/* @__PURE__ */ d(sf, {
|
|
@@ -19145,7 +19157,7 @@ var ya = (e) => `${e.firstName} ${e.lastName}`, b3 = ({ ref: e, value: t, onChan
|
|
|
19145
19157
|
spacing: 2,
|
|
19146
19158
|
marginTop: 1,
|
|
19147
19159
|
children: /* @__PURE__ */ d(b3, {
|
|
19148
|
-
ref:
|
|
19160
|
+
ref: A,
|
|
19149
19161
|
value: u,
|
|
19150
19162
|
onChange: p,
|
|
19151
19163
|
onInputChange: n,
|
|
@@ -19163,9 +19175,9 @@ var ya = (e) => `${e.firstName} ${e.lastName}`, b3 = ({ ref: e, value: t, onChan
|
|
|
19163
19175
|
/* @__PURE__ */ d(af, { children: /* @__PURE__ */ d(lo, {
|
|
19164
19176
|
fullWidth: !0,
|
|
19165
19177
|
variant: "contained",
|
|
19166
|
-
onClick:
|
|
19178
|
+
onClick: b,
|
|
19167
19179
|
disabled: !u.length,
|
|
19168
|
-
loading: l,
|
|
19180
|
+
loading: l || g,
|
|
19169
19181
|
children: c?.confirm ?? "Chat"
|
|
19170
19182
|
}) })
|
|
19171
19183
|
]
|
|
@@ -19266,7 +19278,7 @@ var ya = (e) => `${e.firstName} ${e.lastName}`, b3 = ({ ref: e, value: t, onChan
|
|
|
19266
19278
|
})
|
|
19267
19279
|
]
|
|
19268
19280
|
}), T3 = () => {
|
|
19269
|
-
const [e, t] =
|
|
19281
|
+
const [e, t] = We(null), r = !!e;
|
|
19270
19282
|
return {
|
|
19271
19283
|
anchorMenu: e,
|
|
19272
19284
|
closeMenu: Qe(() => {
|
|
@@ -19278,7 +19290,7 @@ var ya = (e) => `${e.firstName} ${e.lastName}`, b3 = ({ ref: e, value: t, onChan
|
|
|
19278
19290
|
}, [])
|
|
19279
19291
|
};
|
|
19280
19292
|
}, Hs = T3, k3 = ({ threadId: e, participants: t, onDeleteConversation: r, onAddParticipants: n, onSearchParticipants: a, searchResults: i, isSearchingParticipants: l, avatarSrcResolver: s, labels: c, formatParticipantName: u, headerAction: p, onAddParticipantDialogOpenChange: g }) => {
|
|
19281
|
-
const { isMenuOpen: v, anchorMenu: A, closeMenu: b, openMenu: m } = Hs(), [f, S] =
|
|
19293
|
+
const { isMenuOpen: v, anchorMenu: A, closeMenu: b, openMenu: m } = Hs(), [f, S] = We(!1), w = $l(t, u), C = () => {
|
|
19282
19294
|
b(), r(e);
|
|
19283
19295
|
}, x = () => {
|
|
19284
19296
|
b(), S(!0), g?.(!0);
|
|
@@ -19324,8 +19336,8 @@ var ya = (e) => `${e.firstName} ${e.lastName}`, b3 = ({ ref: e, value: t, onChan
|
|
|
19324
19336
|
"aria-label": c?.addParticipant ?? "Add Participant",
|
|
19325
19337
|
onClick: x,
|
|
19326
19338
|
sx: {
|
|
19327
|
-
"&:hover": { backgroundColor: "grey.200" },
|
|
19328
|
-
backgroundColor: "grey.100",
|
|
19339
|
+
"&:hover": { backgroundColor: ({ palette: E }) => E.mode === "dark" ? "grey.400" : "grey.200" },
|
|
19340
|
+
backgroundColor: ({ palette: E }) => E.mode === "dark" ? "grey.500" : "grey.100",
|
|
19329
19341
|
color: "text.primary"
|
|
19330
19342
|
},
|
|
19331
19343
|
children: /* @__PURE__ */ d(I3, { fontSize: "small" })
|
|
@@ -19706,7 +19718,7 @@ var sn = (e) => e.endsWith("Z") || /[+-]\d{2}:\d{2}$/.test(e) ? e : `${e}Z`, D3
|
|
|
19706
19718
|
strokeLinejoin: "round"
|
|
19707
19719
|
})
|
|
19708
19720
|
}), Ca = 15, N3 = 40, vf = ({ onSend: e, labels: t, autoFocusKey: r, isSending: n, defaultMessage: a, maxLength: i = 1e4, startActions: l }) => {
|
|
19709
|
-
const [s, c] =
|
|
19721
|
+
const [s, c] = We(""), u = ze(null), p = () => {
|
|
19710
19722
|
!s.trim() || n || (e(s.trim()), c(""));
|
|
19711
19723
|
}, g = (v) => {
|
|
19712
19724
|
v.key === "Enter" && !v.shiftKey && (v.preventDefault(), p());
|
|
@@ -20369,7 +20381,7 @@ var eC = (e) => /* @__PURE__ */ R(ft, {
|
|
|
20369
20381
|
year: "numeric"
|
|
20370
20382
|
});
|
|
20371
20383
|
}, oC = ({ threads: e, isLoading: t, selectedThreadId: r, onSelectThread: n, onNewConversation: a, avatarSrcResolver: i, labels: l, formatDate: s, formatParticipantName: c, onLoadMore: u, hasMore: p }) => {
|
|
20372
|
-
const [g, v] =
|
|
20384
|
+
const [g, v] = We(""), A = s ?? rC, b = ze(null), m = ze(null), f = p ?? !!u;
|
|
20373
20385
|
Ct(() => {
|
|
20374
20386
|
const w = b.current, C = m.current;
|
|
20375
20387
|
if (!(w && C && u && f) || t) return;
|
|
@@ -20583,7 +20595,7 @@ var eC = (e) => /* @__PURE__ */ R(ft, {
|
|
|
20583
20595
|
"audio/webm",
|
|
20584
20596
|
"audio/mp4"
|
|
20585
20597
|
].find((e) => typeof MediaRecorder < "u" && MediaRecorder.isTypeSupported(e)), lC = (e) => `${String(Math.floor(e / 60)).padStart(2, "0")}:${String(e % 60).padStart(2, "0")}`, sC = ({ onRecorded: e, onError: t, labels: r, isProcessing: n = !1, disabled: a = !1, autoSubmitOnSilence: i = !1, maxDurationMs: l = 12e4, silenceTimeoutMs: s = 2500 }) => {
|
|
20586
|
-
const [c, u] =
|
|
20598
|
+
const [c, u] = We(!1), [p, g] = We(0), v = ze(null), A = ze(null), b = ze([]), m = ze(!1), f = ze(null), S = ze(null), w = () => {
|
|
20587
20599
|
S.current !== null && (cancelAnimationFrame(S.current), S.current = null), f.current?.close().catch(() => {
|
|
20588
20600
|
}), f.current = null;
|
|
20589
20601
|
}, C = () => {
|
|
@@ -20740,7 +20752,7 @@ var eC = (e) => /* @__PURE__ */ R(ft, {
|
|
|
20740
20752
|
}
|
|
20741
20753
|
return r ? gC : t ? pC : i || a || void 0;
|
|
20742
20754
|
}, mC = ({ children: e, open: t, onClose: r, src: n, ...a }) => {
|
|
20743
|
-
const [i, l] =
|
|
20755
|
+
const [i, l] = We(!1), s = () => {
|
|
20744
20756
|
l(!0);
|
|
20745
20757
|
}, c = (u, p) => (u && (r?.(u, p), l(!1)), (g) => {
|
|
20746
20758
|
r?.(g, p), l(!1);
|
|
@@ -20848,7 +20860,7 @@ var eC = (e) => /* @__PURE__ */ R(ft, {
|
|
|
20848
20860
|
return !1;
|
|
20849
20861
|
}
|
|
20850
20862
|
}, bC = ({ src: e, srcThumb: t, fileName: r, children: n, sx: a, disableLightbox: i, disableThumb: l, open: s, onClose: c, onClickThumb: u, variant: p, iconOnly: g = !1, height: v = 152, width: A = 220 }) => {
|
|
20851
|
-
const [b, m] =
|
|
20863
|
+
const [b, m] = We(!1), [f, S] = We(!1), [w, C] = We(!0), x = xf() === Cf.Firefox, E = e?.toLowerCase(), y = !(E?.endsWith(".pdf") || E?.startsWith("blob:") || E?.endsWith(".eml")), T = E?.endsWith(".pdf"), M = l ? !0 : !w, k = rs(e) || rs(t), B = T && x, O = i ? 1 : 0.8, h = (y || T) && !k && M && !f && !i && e && !B, P = e?.split(".").pop()?.toLowerCase() || "", D = r || e?.split("/").pop()?.split("?")[0] || "", N = hC(g, f, k, P, e || "", t || ""), L = () => {
|
|
20852
20864
|
m((H) => !H);
|
|
20853
20865
|
}, z = () => {
|
|
20854
20866
|
m(!1), c?.();
|
|
@@ -21645,7 +21657,7 @@ var eC = (e) => /* @__PURE__ */ R(ft, {
|
|
|
21645
21657
|
]
|
|
21646
21658
|
}, T);
|
|
21647
21659
|
}, IC = ({ Empty: e, action: t, items: r, fullWidth: n, sx: a, alwaysDisplaySecondaryAction: i, isLoading: l, disableLightbox: s, numberLoadingItems: c = 3, density: u = "standard", ...p }) => {
|
|
21648
|
-
const [g, v] =
|
|
21660
|
+
const [g, v] = We(""), A = xf() === Cf.Firefox, b = {
|
|
21649
21661
|
...cl.listItem,
|
|
21650
21662
|
...u === "comfortable" && {
|
|
21651
21663
|
"&:last-of-type": { marginBottom: 0 },
|
|
@@ -21790,7 +21802,7 @@ var eC = (e) => /* @__PURE__ */ R(ft, {
|
|
|
21790
21802
|
getTextColor: t
|
|
21791
21803
|
};
|
|
21792
21804
|
}, QC = ({ colorShape: e, shapeBackgroundColor: t, color: r, height: n, width: a, withoutText: i, mode: l, sx: s, variant: c = "default", component: u = "img" }, p) => {
|
|
21793
|
-
const [g, v] =
|
|
21805
|
+
const [g, v] = We(""), { palette: A } = Rt(), { getTextColor: b, getImageModule: m, getSize: f, getShapeColor: S, getShapeBackgroundColor: w } = NC(), { height: C, width: x } = f({
|
|
21794
21806
|
height: n,
|
|
21795
21807
|
variant: c,
|
|
21796
21808
|
width: a,
|
|
@@ -22188,7 +22200,7 @@ var eC = (e) => /* @__PURE__ */ R(ft, {
|
|
|
22188
22200
|
...e,
|
|
22189
22201
|
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" })]
|
|
22190
22202
|
}), HC = ({ onCommit: e, disabled: t }) => {
|
|
22191
|
-
const [r, n] =
|
|
22203
|
+
const [r, n] = We(0), [a, i] = We(!1), l = ze(0), s = Qe((p) => {
|
|
22192
22204
|
t || (p.stopPropagation(), p.preventDefault(), l.current = p.clientX, i(!0), p.currentTarget.setPointerCapture(p.pointerId));
|
|
22193
22205
|
}, [t]), c = Qe((p) => {
|
|
22194
22206
|
a && n(p.clientX - l.current);
|
|
@@ -22504,15 +22516,15 @@ var eC = (e) => /* @__PURE__ */ R(ft, {
|
|
|
22504
22516
|
return null;
|
|
22505
22517
|
}
|
|
22506
22518
|
}, m5 = ({ groups: e, resources: t, tasks: r, isLoading: n, onTaskClick: a, onResourceClick: i, onGroupClick: l, onBarResize: s, renderGroup: c, renderResource: u, renderBar: p, renderTooltip: g, isTaskSelected: v, recenterKey: A, toolbarActions: b, toolbarLeadingActions: m, sidebarTitle: f, locale: S, labels: w, localStorageKeys: C, defaultViewMode: x = "day", sidebarWidth: E = 300, rowHeight: y = 36 }) => {
|
|
22507
|
-
const T = C?.viewMode ?? a6.viewMode, [M, k] =
|
|
22519
|
+
const T = C?.viewMode ?? a6.viewMode, [M, k] = We(() => i6(T) ?? x), [B, O] = We(() => /* @__PURE__ */ new Date()), [h, P] = We(!1), { palette: D, shape: N, typography: L } = Rt(), { t: z } = uo(), Y = ze(!1), te = ze(M), $ = ze(A), H = ze(null), V = ze(null), q = ze({
|
|
22508
22520
|
delta: 0,
|
|
22509
22521
|
lastEventAt: 0,
|
|
22510
22522
|
used: !1
|
|
22511
22523
|
}), oe = Ar(() => e ?? [], [e]), X = Ar(() => t ?? [], [t]), Z = Ar(() => r ?? [], [r]), pe = D.mode === "dark" ? D.grey[800] : D.divider, le = Qe((fe) => w?.[fe] ?? z(fe), [w, z]), ee = Ar(() => {
|
|
22512
22524
|
const fe = /* @__PURE__ */ new Map();
|
|
22513
22525
|
Z.forEach((Ce) => {
|
|
22514
|
-
const
|
|
22515
|
-
|
|
22526
|
+
const je = fe.get(Ce.resourceId);
|
|
22527
|
+
je ? je.push(Ce) : fe.set(Ce.resourceId, [Ce]);
|
|
22516
22528
|
});
|
|
22517
22529
|
const ge = new Set(oe.map((Ce) => Ce.id)), Ve = /* @__PURE__ */ new Map(), Me = [];
|
|
22518
22530
|
X.forEach((Ce) => {
|
|
@@ -22520,8 +22532,8 @@ var eC = (e) => /* @__PURE__ */ R(ft, {
|
|
|
22520
22532
|
Me.push(Ce);
|
|
22521
22533
|
return;
|
|
22522
22534
|
}
|
|
22523
|
-
const
|
|
22524
|
-
|
|
22535
|
+
const je = Ve.get(Ce.groupId);
|
|
22536
|
+
je ? je.push(Ce) : Ve.set(Ce.groupId, [Ce]);
|
|
22525
22537
|
});
|
|
22526
22538
|
const lt = (Ce) => ({
|
|
22527
22539
|
key: `resource:${Ce.id}`,
|
|
@@ -22530,13 +22542,13 @@ var eC = (e) => /* @__PURE__ */ R(ft, {
|
|
|
22530
22542
|
type: "resource"
|
|
22531
22543
|
}), Ae = Me.map(lt);
|
|
22532
22544
|
return oe.forEach((Ce) => {
|
|
22533
|
-
const
|
|
22545
|
+
const je = Ve.get(Ce.id) ?? [];
|
|
22534
22546
|
Ae.push({
|
|
22535
|
-
childCount: Ce.childCount ??
|
|
22547
|
+
childCount: Ce.childCount ?? je.length,
|
|
22536
22548
|
group: Ce,
|
|
22537
22549
|
key: `group:${Ce.id}`,
|
|
22538
22550
|
type: "group"
|
|
22539
|
-
}), Ce.collapsed || Ae.push(...
|
|
22551
|
+
}), Ce.collapsed || Ae.push(...je.map(lt));
|
|
22540
22552
|
}), Ae;
|
|
22541
22553
|
}, [
|
|
22542
22554
|
oe,
|
|
@@ -22663,11 +22675,11 @@ var eC = (e) => /* @__PURE__ */ R(ft, {
|
|
|
22663
22675
|
const Ae = Ma.indexOf(M) + lt;
|
|
22664
22676
|
if (Ae < 0 || Ae >= Ma.length) return;
|
|
22665
22677
|
Me.used = !0;
|
|
22666
|
-
const Ce = Ve.clientX - fe.getBoundingClientRect().left,
|
|
22678
|
+
const Ce = Ve.clientX - fe.getBoundingClientRect().left, je = J.xToDate(Math.max(0, Ce + fe.scrollLeft - re));
|
|
22667
22679
|
V.current = {
|
|
22668
|
-
date:
|
|
22680
|
+
date: je,
|
|
22669
22681
|
viewportX: Ce
|
|
22670
|
-
}, O(
|
|
22682
|
+
}, O(je), k(Ma[Ae]);
|
|
22671
22683
|
};
|
|
22672
22684
|
return fe.addEventListener("wheel", ge, { passive: !1 }), () => fe.removeEventListener("wheel", ge);
|
|
22673
22685
|
}, [
|
|
@@ -23002,7 +23014,7 @@ var eC = (e) => /* @__PURE__ */ R(ft, {
|
|
|
23002
23014
|
fillOpacity: "0.54"
|
|
23003
23015
|
})
|
|
23004
23016
|
}), Uo = 64, Vc = 1e3, p6 = ({ title: e, subtitle: t, isLastElement: r, active: n, onClick: a, variant: i, tag: l, collapseItems: s, collapseDefaultOpen: c, Action: u, Icon: p, Footer: g, Collapse: v }) => {
|
|
23005
|
-
const [A, b] =
|
|
23017
|
+
const [A, b] = We(!1), m = v || !!s?.length;
|
|
23006
23018
|
return Ct(() => {
|
|
23007
23019
|
c && b(!0);
|
|
23008
23020
|
}, [c]), /* @__PURE__ */ R(se, {
|
|
@@ -23208,7 +23220,7 @@ var eC = (e) => /* @__PURE__ */ R(ft, {
|
|
|
23208
23220
|
},
|
|
23209
23221
|
children: /* @__PURE__ */ d($c, { children: e })
|
|
23210
23222
|
}), f6 = ({ items: e, isLoading: t, emptyMessage: r, containerStyle: n, variant: a, "data-test": i, "data-testid": l }) => {
|
|
23211
|
-
const [s, c] =
|
|
23223
|
+
const [s, c] = We("");
|
|
23212
23224
|
return t ? /* @__PURE__ */ d(fl, {
|
|
23213
23225
|
sx: n,
|
|
23214
23226
|
"data-test": i,
|
|
@@ -23650,7 +23662,7 @@ var eC = (e) => /* @__PURE__ */ R(ft, {
|
|
|
23650
23662
|
size: 20
|
|
23651
23663
|
})
|
|
23652
23664
|
}) : t?.endAdornment !== void 0 ? t?.endAdornment : r, w5 = ({ actionEndOption: e, actionStartOption: t, popupIcon: r, blurOnSelect: n, label: a, placeholder: i, name: l, slotProps: s, disableClearable: c, setSelectedValue: u, useQuery: p, noOptionsText: g, renderOption: v, getOptionLabel: A, keyOptionLabel: b, queryParams: m, openOnFocus: f, autoHighlight: S, queryParamsOnFocus: w, queryOptions: C, required: x, helperMessage: E, error: y, disabled: T, defaultValue: M, onFocus: k, onBlur: B, onChange: O, sx: h, renderInput: P, variant: D, InputProps: N, size: L, shrink: z, getOptionKey: Y, width: te, limitTags: $, groupBy: H, disableCloseOnSelect: V, renderGroup: q, value: oe, PopperComponent: X, ListboxProps: Z, multiple: pe, filterSelectedOptions: le, autoFocus: ee, onKeyDown: J, onNoResults: re, endAdornment: ae, inputSlotProps: F, inputRef: j, open: de, onOpen: be, onClose: ce, searchKey: Te = "q", disableInputLoader: ke = !1, fetchOnFocus: Le = !1, filterOptions: Fe = (at) => at, getOptionImageSrc: _ = (at) => at || void 0 }) => {
|
|
23653
|
-
const [at, ve] =
|
|
23665
|
+
const [at, ve] = We(""), [dt, fe] = We(""), ge = sA(at, 300), Ve = de === void 0 ? void 0 : Le || at ? de : !1, Me = ge ? m : w ?? m, lt = de ?? !0, { data: Ae, isFetching: Ce, refetch: je } = p({
|
|
23654
23666
|
[Te]: ge || void 0,
|
|
23655
23667
|
...Me
|
|
23656
23668
|
}, { query: {
|
|
@@ -23705,7 +23717,7 @@ var eC = (e) => /* @__PURE__ */ R(ft, {
|
|
|
23705
23717
|
]), Ft = Qe((xe, we, Ze) => {
|
|
23706
23718
|
fe(we), Ze === "input" && ve(we);
|
|
23707
23719
|
}, []), $t = Qe(async () => {
|
|
23708
|
-
Le && !oe && await
|
|
23720
|
+
Le && !oe && await je({
|
|
23709
23721
|
[Te]: ge,
|
|
23710
23722
|
...m
|
|
23711
23723
|
}), k?.();
|
|
@@ -23714,7 +23726,7 @@ var eC = (e) => /* @__PURE__ */ R(ft, {
|
|
|
23714
23726
|
k,
|
|
23715
23727
|
Le,
|
|
23716
23728
|
m,
|
|
23717
|
-
|
|
23729
|
+
je,
|
|
23718
23730
|
Te,
|
|
23719
23731
|
oe
|
|
23720
23732
|
]), Ge = Qe(() => {
|
|
@@ -23974,7 +23986,7 @@ var eC = (e) => /* @__PURE__ */ R(ft, {
|
|
|
23974
23986
|
sx: [({ zIndex: l }) => ({ zIndex: l.modal }), ...Array.isArray(r) ? r : [r]]
|
|
23975
23987
|
});
|
|
23976
23988
|
}, k6 = ({ variant: e, onChange: t, disableCheckbox: r, placeholder: n, label: a, localeText: i, disableReset: l, disableSelectAll: s, value: c, onFocus: u, onBlur: p, open: g, getOptionLabel: v, onInputChange: A, inputValue: b, disableClearable: m, loading: f, resetInputValueOnSelectOption: S, renderOption: w, renderValue: C, width: x, sx: E, slotProps: y, tooltip: T, tooltipProps: M, size: k = "small", disableCloseOnSelect: B = !0, multiple: O = !0, options: h = [], ...P }, D) => {
|
|
23977
|
-
const { t: N } = uo(), [L, z] =
|
|
23989
|
+
const { t: N } = uo(), [L, z] = We(!1), [Y, te] = We(""), $ = b || Y, H = e === "chip", V = e === "filled", q = Array.isArray(c) ? !!c.length : c != null, oe = E6(c, O), X = a ?? n, Z = !!X, pe = L && !!$, le = (!!$ || q) && !m, ee = Z && q && !pe, J = Z && !ee, re = q && (O || ee) && !L, F = /* @__PURE__ */ d(Yc, {
|
|
23978
23990
|
freeSolo: !1,
|
|
23979
23991
|
multiple: O,
|
|
23980
23992
|
disableClearable: m,
|
|
@@ -24332,7 +24344,7 @@ var eC = (e) => /* @__PURE__ */ R(ft, {
|
|
|
24332
24344
|
children: e
|
|
24333
24345
|
});
|
|
24334
24346
|
function T5({ label: e, value: t, onChange: r, checked: n, onCheckedChange: a, options: i, variant: l, disabled: s, labelMenu: c, labelOnlyAfterSelection: u, applyOnSelect: p, hideMenuHeader: g, denseMenu: v, menuProps: A, separatorBetweenLabelAndOptionSelected: b = ":", multiple: m = !1, size: f = "medium" }) {
|
|
24335
|
-
const S = n !== void 0, [w, C] =
|
|
24347
|
+
const S = n !== void 0, [w, C] = We(() => S ? n : m ? t || [] : t), x = S ? n : m ? t?.length > 0 : t != null, { anchorMenu: E, openMenu: y, isMenuOpen: T, closeMenu: M } = Hs(), { t: k } = uo(), B = Array.isArray(i), O = i !== void 0, h = ($) => {
|
|
24336
24348
|
S ? a?.($) : r?.($);
|
|
24337
24349
|
}, P = () => {
|
|
24338
24350
|
h(w), M();
|
|
@@ -24535,7 +24547,7 @@ var P6 = ({ fontSize: e, sx: t, color: r = "currentColor" }) => /* @__PURE__ */
|
|
|
24535
24547
|
}).join(" • ");
|
|
24536
24548
|
return e.length > Qc ? `${r} + ${e.length - Qc}` : r;
|
|
24537
24549
|
}, L6 = Vt(({ accept: e, name: t, disabled: r, required: n, error: a, localeText: i, multiple: l, id: s, size: c, helperText: u, fullWidth: p, icon: g, onChange: v, label: A, pattern: b, title: m, value: f, variant: S = "vertical" }, w) => {
|
|
24538
|
-
const [C, x] =
|
|
24550
|
+
const [C, x] = We(null), { t: E } = uo(), { palette: y } = Rt(), T = S === "vertical", M = s || t, k = ze(null), B = ze(null), O = f === void 0 ? C : f, h = D6(O);
|
|
24539
24551
|
iu(w, () => {
|
|
24540
24552
|
const L = B.current;
|
|
24541
24553
|
return L.reset = () => {
|
|
@@ -24771,7 +24783,7 @@ var P6 = ({ fontSize: e, sx: t, color: r = "currentColor" }) => /* @__PURE__ */
|
|
|
24771
24783
|
const c = t?.toString() || r?.toString() || n?.toString() || " ", u = s.measureText(c).width, p = parseFloat(i.paddingLeft), g = parseFloat(i.paddingRight);
|
|
24772
24784
|
return u + p + g + a;
|
|
24773
24785
|
}, B5 = Vt(({ sx: e, maxWidth: t, minWidth: r, ...n }, a) => {
|
|
24774
|
-
const i = ze(null), [l, s] =
|
|
24786
|
+
const i = ze(null), [l, s] = We(null), c = ze(void 0), { size: u } = n, p = u === "tiny", g = p ? 27 : 50, v = n?.slotProps?.input, A = !!v?.startAdornment || !!n?.InputProps?.startAdornment, b = !!v?.endAdornment || !!n?.InputProps?.endAdornment, m = (A ? g : 0) + (b ? g : 0), f = Qe(() => {
|
|
24775
24787
|
const w = q6(i.current, n.value, n.defaultValue, n.placeholder, m);
|
|
24776
24788
|
w !== null && s(Math.min(Math.max(w, r ?? 0), t ?? 1 / 0));
|
|
24777
24789
|
}, [
|
|
@@ -24837,7 +24849,7 @@ var P6 = ({ fontSize: e, sx: t, color: r = "currentColor" }) => /* @__PURE__ */
|
|
|
24837
24849
|
fill: r
|
|
24838
24850
|
})
|
|
24839
24851
|
}), K6 = ({ slotProps: e, ...t }) => {
|
|
24840
|
-
const [r, n] =
|
|
24852
|
+
const [r, n] = We(!1), a = () => {
|
|
24841
24853
|
n((s) => !s);
|
|
24842
24854
|
}, i = (s) => {
|
|
24843
24855
|
s.preventDefault();
|
|
@@ -24932,7 +24944,7 @@ var P6 = ({ fontSize: e, sx: t, color: r = "currentColor" }) => /* @__PURE__ */
|
|
|
24932
24944
|
color: "textSecondary",
|
|
24933
24945
|
children: t
|
|
24934
24946
|
})] }), D5 = ({ compactTitle: e, fullTitle: t, actions: r, compactActions: n, variant: a = "preview", onClose: i, onOpenFullPage: l, backLabel: s, onBack: c, labels: u, maxWidth: p = "lg" }) => {
|
|
24935
|
-
const [g, v] =
|
|
24947
|
+
const [g, v] = We(!1), { t: A } = uo(), { breakpoints: b } = Rt(), m = Co(b.down("sm")), f = Co(b.up("lg")), S = ze(null), w = iA() ? "⌘+↵" : "Ctrl+↵", C = typeof p == "number" ? {
|
|
24936
24948
|
maxWidth: !1,
|
|
24937
24949
|
sx: { maxWidth: p }
|
|
24938
24950
|
} : { maxWidth: p }, x = Qe((E) => u?.[E] ?? A(E), [u, A]);
|
|
@@ -25535,7 +25547,7 @@ var P6 = ({ fontSize: e, sx: t, color: r = "currentColor" }) => /* @__PURE__ */
|
|
|
25535
25547
|
})
|
|
25536
25548
|
});
|
|
25537
25549
|
}, r4 = ({ group: e }) => {
|
|
25538
|
-
const { density: t, isMobile: r, isCollapsed: n } = br(po), { listItemPaddingY: a } = To[t], { groupLabel: i, items: l, collapsible: s = !1, defaultExpanded: c = !0 } = e, [u, p] =
|
|
25550
|
+
const { density: t, isMobile: r, isCollapsed: n } = br(po), { listItemPaddingY: a } = To[t], { groupLabel: i, items: l, collapsible: s = !1, defaultExpanded: c = !0 } = e, [u, p] = We(c), g = Zs[t], v = l.filter((f) => !Rf(f, r));
|
|
25539
25551
|
if (!v.length) return null;
|
|
25540
25552
|
const A = n || !s || u, b = () => s && p((f) => !f), m = (f) => {
|
|
25541
25553
|
s && (f.key === "Enter" || f.key === " ") && (f.preventDefault(), b());
|
|
@@ -25633,7 +25645,7 @@ var P6 = ({ fontSize: e, sx: t, color: r = "currentColor" }) => /* @__PURE__ */
|
|
|
25633
25645
|
children: /* @__PURE__ */ d(Xc, { items: e })
|
|
25634
25646
|
});
|
|
25635
25647
|
}, l4 = ({ AppBar: e, NavLink: t, Search: r, Logo: n, Footer: a, items: i, enableSearchFocusShortcut: l, disableResponsive: s, hideSearchDesktop: c, bottomLink: u, sideBarWidth: p = 260, storageKey: g = n4, density: v = "standard" }) => {
|
|
25636
|
-
const { breakpoints: A } = Rt(), [b, m] =
|
|
25648
|
+
const { breakpoints: A } = Rt(), [b, m] = We(Bf.isDrawerOpen), [f, S] = We(() => a4(g)), w = Co(A.down("sm")), C = Co(A.between("sm", "md")), x = Qe(() => {
|
|
25637
25649
|
m(!1);
|
|
25638
25650
|
}, []), E = Qe(() => {
|
|
25639
25651
|
m(!0);
|
|
@@ -25913,7 +25925,7 @@ var P6 = ({ fontSize: e, sx: t, color: r = "currentColor" }) => /* @__PURE__ */
|
|
|
25913
25925
|
const { hasPermission: i } = b4(), l = i(r, n, a);
|
|
25914
25926
|
return l ? e : !l && t ? t : null;
|
|
25915
25927
|
}, j5 = v4, K5 = ({ children: e, permissions: t, disabledPermissions: r }) => {
|
|
25916
|
-
const [n, a] =
|
|
25928
|
+
const [n, a] = We(), i = Ar(() => ({
|
|
25917
25929
|
disabledPermissions: r,
|
|
25918
25930
|
permissions: n,
|
|
25919
25931
|
setPermissions: a
|
|
@@ -25940,7 +25952,7 @@ var P6 = ({ fontSize: e, sx: t, color: r = "currentColor" }) => /* @__PURE__ */
|
|
|
25940
25952
|
horizontal: "center",
|
|
25941
25953
|
vertical: "bottom"
|
|
25942
25954
|
} }) => {
|
|
25943
|
-
const [n, a] =
|
|
25955
|
+
const [n, a] = We(y4), i = Qe((c) => {
|
|
25944
25956
|
a({
|
|
25945
25957
|
component: c?.component,
|
|
25946
25958
|
isOpen: !0,
|
|
@@ -25985,7 +25997,7 @@ var P6 = ({ fontSize: e, sx: t, color: r = "currentColor" }) => /* @__PURE__ */
|
|
|
25985
25997
|
openSnackbar: n
|
|
25986
25998
|
};
|
|
25987
25999
|
}, z5 = C4, x4 = () => {
|
|
25988
|
-
const [e, t] =
|
|
26000
|
+
const [e, t] = We(0);
|
|
25989
26001
|
return {
|
|
25990
26002
|
handleChange: Qe((r, n) => {
|
|
25991
26003
|
t(n);
|
|
@@ -4,7 +4,7 @@ interface ChatConversationDetailHeaderProps {
|
|
|
4
4
|
threadId: string;
|
|
5
5
|
participants?: ChatParticipant[] | null;
|
|
6
6
|
onDeleteConversation: (threadId: string) => void;
|
|
7
|
-
onAddParticipants: (participants: ChatSearchUser[]) => void
|
|
7
|
+
onAddParticipants: (participants: ChatSearchUser[]) => void | Promise<unknown>;
|
|
8
8
|
onSearchParticipants?: (query: string) => void;
|
|
9
9
|
searchResults?: ChatSearchUser[];
|
|
10
10
|
isSearchingParticipants?: boolean;
|
|
@@ -78,7 +78,7 @@ export interface ChatConversationDetailProps {
|
|
|
78
78
|
onDeleteConversation: (threadId: string) => void;
|
|
79
79
|
onNewConversation: () => void;
|
|
80
80
|
onSendMessage: (threadId: string, body: string) => void;
|
|
81
|
-
onAddParticipants: (participants: ChatSearchUser[]) => void
|
|
81
|
+
onAddParticipants: (participants: ChatSearchUser[]) => void | Promise<unknown>;
|
|
82
82
|
onSearchParticipants?: (query: string) => void;
|
|
83
83
|
searchResults?: ChatSearchUser[];
|
|
84
84
|
isSearchingParticipants?: boolean;
|
|
@@ -156,7 +156,7 @@ export interface ChatVoiceRecorderProps {
|
|
|
156
156
|
export interface ChatParticipantDialogProps {
|
|
157
157
|
open: boolean;
|
|
158
158
|
onClose: () => void;
|
|
159
|
-
onConfirm: (participants: ChatSearchUser[]) => void
|
|
159
|
+
onConfirm: (participants: ChatSearchUser[]) => void | Promise<unknown>;
|
|
160
160
|
onSearch: (query: string) => void;
|
|
161
161
|
searchResults?: ChatSearchUser[];
|
|
162
162
|
isSearchLoading?: boolean;
|