@foodpilot/foods 0.3.84 → 0.3.85
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/components/Tabs/SectionTabs.d.ts +1 -0
- package/dist/main.js +48 -49
- package/dist/main.umd.cjs +6 -6
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -515,7 +515,7 @@ Check the render method of \`` + Y + "`.";
|
|
|
515
515
|
return "";
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function qt(Y) {
|
|
519
519
|
return "";
|
|
520
520
|
}
|
|
521
521
|
var xn = {};
|
|
@@ -607,7 +607,7 @@ Check the top-level render call using <` + He + ">.");
|
|
|
607
607
|
if (!Se) {
|
|
608
608
|
var Ae = "";
|
|
609
609
|
(Y === void 0 || typeof Y == "object" && Y !== null && Object.keys(Y).length === 0) && (Ae += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
610
|
-
var Ne =
|
|
610
|
+
var Ne = qt();
|
|
611
611
|
Ne ? Ae += Ne : Ae += lt();
|
|
612
612
|
var et;
|
|
613
613
|
Y === null ? et = "null" : xe(Y) ? et = "array" : Y !== void 0 && Y.$$typeof === t ? (et = "<" + (A(Y.type) || "Unknown") + " />", Ae = " Did you accidentally export a JSX literal instead of a component?") : et = typeof Y, C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", et, Ae);
|
|
@@ -9383,7 +9383,7 @@ function E4(e) {
|
|
|
9383
9383
|
return Oe;
|
|
9384
9384
|
}
|
|
9385
9385
|
}
|
|
9386
|
-
const
|
|
9386
|
+
const qt = (ne, ae) => {
|
|
9387
9387
|
if (!_)
|
|
9388
9388
|
return;
|
|
9389
9389
|
me === "" && at(ne, "toggleInput");
|
|
@@ -9443,10 +9443,10 @@ function E4(e) {
|
|
|
9443
9443
|
}), Je(ae);
|
|
9444
9444
|
break;
|
|
9445
9445
|
case "ArrowLeft":
|
|
9446
|
-
|
|
9446
|
+
qt(ae, "previous");
|
|
9447
9447
|
break;
|
|
9448
9448
|
case "ArrowRight":
|
|
9449
|
-
|
|
9449
|
+
qt(ae, "next");
|
|
9450
9450
|
break;
|
|
9451
9451
|
case "Enter":
|
|
9452
9452
|
if (ce.current !== -1 && ue) {
|
|
@@ -12865,8 +12865,8 @@ const ZR = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "Chip
|
|
|
12865
12865
|
} = xe(), {
|
|
12866
12866
|
ref: kt
|
|
12867
12867
|
} = le ?? {}, lt = ke(), {
|
|
12868
|
-
ref:
|
|
12869
|
-
} = lt, xn = de(lt, qR), an = pt(
|
|
12868
|
+
ref: qt
|
|
12869
|
+
} = lt, xn = de(lt, qR), an = pt(qt, kt), yn = F || ((Se) => {
|
|
12870
12870
|
var Ae;
|
|
12871
12871
|
return (Ae = Se.label) != null ? Ae : Se;
|
|
12872
12872
|
}), tn = T({}, l, {
|
|
@@ -25416,15 +25416,15 @@ const __ = W("span", {
|
|
|
25416
25416
|
rootRef: n
|
|
25417
25417
|
}));
|
|
25418
25418
|
ee.marked = Ke.length > 0 && Ke.some((ne) => ne.label), ee.dragging = Te, ee.focusedThumbIndex = ue;
|
|
25419
|
-
const Ce = N_(ee), ge = (o = (r = ce == null ? void 0 : ce.root) != null ? r : $.Root) != null ? o : __, $e = (i = (a = ce == null ? void 0 : ce.rail) != null ? a : $.Rail) != null ? i : D_, Je = (l = (c = ce == null ? void 0 : ce.track) != null ? c : $.Track) != null ? l : L_, at = (d = (u = ce == null ? void 0 : ce.thumb) != null ? u : $.Thumb) != null ? d : A_, it = (f = (h = ce == null ? void 0 : ce.valueLabel) != null ? h : $.ValueLabel) != null ? f : V_, Ht = (g = (m = ce == null ? void 0 : ce.mark) != null ? m : $.Mark) != null ? g : F_, kt = (b = (v = ce == null ? void 0 : ce.markLabel) != null ? v : $.MarkLabel) != null ? b : $_, lt = (x = (C = ce == null ? void 0 : ce.input) != null ? C : $.Input) != null ? x : "input",
|
|
25419
|
+
const Ce = N_(ee), ge = (o = (r = ce == null ? void 0 : ce.root) != null ? r : $.Root) != null ? o : __, $e = (i = (a = ce == null ? void 0 : ce.rail) != null ? a : $.Rail) != null ? i : D_, Je = (l = (c = ce == null ? void 0 : ce.track) != null ? c : $.Track) != null ? l : L_, at = (d = (u = ce == null ? void 0 : ce.thumb) != null ? u : $.Thumb) != null ? d : A_, it = (f = (h = ce == null ? void 0 : ce.valueLabel) != null ? h : $.ValueLabel) != null ? f : V_, Ht = (g = (m = ce == null ? void 0 : ce.mark) != null ? m : $.Mark) != null ? g : F_, kt = (b = (v = ce == null ? void 0 : ce.markLabel) != null ? v : $.MarkLabel) != null ? b : $_, lt = (x = (C = ce == null ? void 0 : ce.input) != null ? C : $.Input) != null ? x : "input", qt = (S = Q == null ? void 0 : Q.root) != null ? S : V.root, xn = (P = Q == null ? void 0 : Q.rail) != null ? P : V.rail, an = (w = Q == null ? void 0 : Q.track) != null ? w : V.track, eo = (R = Q == null ? void 0 : Q.thumb) != null ? R : V.thumb, yn = (M = Q == null ? void 0 : Q.valueLabel) != null ? M : V.valueLabel, tn = (O = Q == null ? void 0 : Q.mark) != null ? O : V.mark, _t = (k = Q == null ? void 0 : Q.markLabel) != null ? k : V.markLabel, ln = (E = Q == null ? void 0 : Q.input) != null ? E : V.input, Xe = Pt({
|
|
25420
25420
|
elementType: ge,
|
|
25421
25421
|
getSlotProps: xe,
|
|
25422
|
-
externalSlotProps:
|
|
25422
|
+
externalSlotProps: qt,
|
|
25423
25423
|
externalForwardedProps: De,
|
|
25424
25424
|
additionalProps: T({}, k_(ge) && {
|
|
25425
25425
|
as: F
|
|
25426
25426
|
}),
|
|
25427
|
-
ownerState: T({}, ee,
|
|
25427
|
+
ownerState: T({}, ee, qt == null ? void 0 : qt.ownerState),
|
|
25428
25428
|
className: [Ce.root, U]
|
|
25429
25429
|
}), En = Pt({
|
|
25430
25430
|
elementType: $e,
|
|
@@ -25966,7 +25966,7 @@ function yc(e, t) {
|
|
|
25966
25966
|
t && t(n, ...o), e(n, ...o);
|
|
25967
25967
|
};
|
|
25968
25968
|
}
|
|
25969
|
-
const
|
|
25969
|
+
const Zt = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
25970
25970
|
var o, r, i, a, l, c, d, u, f, h, g, m, b, v, x, C, S, P, w;
|
|
25971
25971
|
const R = Qe({
|
|
25972
25972
|
props: t,
|
|
@@ -26051,12 +26051,12 @@ const qt = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
26051
26051
|
Je(Ne), $e.current === !1 && (Ht(!1), ge(Ne));
|
|
26052
26052
|
}, lt = (Ne) => {
|
|
26053
26053
|
me || De(Ne.currentTarget), at(Ne), $e.current === !0 && (Ht(!0), Ce(Ne));
|
|
26054
|
-
},
|
|
26054
|
+
}, qt = (Ne) => {
|
|
26055
26055
|
xe.current = !0;
|
|
26056
26056
|
const et = ce.props;
|
|
26057
26057
|
et.onTouchStart && et.onTouchStart(Ne);
|
|
26058
26058
|
}, xn = (Ne) => {
|
|
26059
|
-
|
|
26059
|
+
qt(Ne), Pe.clear(), We.clear(), je(), Ye.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", ke.start(V, () => {
|
|
26060
26060
|
document.body.style.WebkitUserSelect = Ye.current, Ce(Ne);
|
|
26061
26061
|
});
|
|
26062
26062
|
}, an = (Ne) => {
|
|
@@ -26086,7 +26086,7 @@ const qt = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
26086
26086
|
I ? (_t.title = !Te && ln && !A ? z : null, _t["aria-describedby"] = Te ? Ke : null) : (_t["aria-label"] = ln ? z : null, _t["aria-labelledby"] = Te && !ln ? Ke : null);
|
|
26087
26087
|
const Xe = T({}, _t, Q, ce.props, {
|
|
26088
26088
|
className: ve(Q.className, ce.props.className),
|
|
26089
|
-
onTouchStart:
|
|
26089
|
+
onTouchStart: qt,
|
|
26090
26090
|
ref: eo
|
|
26091
26091
|
}, B ? {
|
|
26092
26092
|
onMouseMove: tn
|
|
@@ -26159,7 +26159,7 @@ const qt = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
26159
26159
|
}))]
|
|
26160
26160
|
});
|
|
26161
26161
|
});
|
|
26162
|
-
process.env.NODE_ENV !== "production" && (
|
|
26162
|
+
process.env.NODE_ENV !== "production" && (Zt.propTypes = {
|
|
26163
26163
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
26164
26164
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
26165
26165
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -29557,7 +29557,7 @@ function fie(e) {
|
|
|
29557
29557
|
}
|
|
29558
29558
|
const Wg = 100, MF = W(({ className: e, title: t, ...n }) => {
|
|
29559
29559
|
const o = typeof t == "string" && t.length > Wg ? `${t.slice(0, Wg)}...` : t;
|
|
29560
|
-
return /* @__PURE__ */ p.jsx(
|
|
29560
|
+
return /* @__PURE__ */ p.jsx(Zt, { ...n, title: o, arrow: !0, classes: { popper: e } });
|
|
29561
29561
|
})(({ theme: e }) => {
|
|
29562
29562
|
const o = {
|
|
29563
29563
|
justifyContent: "center",
|
|
@@ -31521,7 +31521,7 @@ const kie = (e) => {
|
|
|
31521
31521
|
}
|
|
31522
31522
|
)
|
|
31523
31523
|
] });
|
|
31524
|
-
}, t$ = W(({ className: e, ...t }) => /* @__PURE__ */ p.jsx(
|
|
31524
|
+
}, t$ = W(({ className: e, ...t }) => /* @__PURE__ */ p.jsx(Zt, { ...t, arrow: !0, classes: { popper: e } })), F7 = t$((e) => ({
|
|
31525
31525
|
[`& .${Gn.arrow}`]: {
|
|
31526
31526
|
color: e.theme.custom.grey[200]
|
|
31527
31527
|
},
|
|
@@ -44410,7 +44410,7 @@ const Aie = (e) => {
|
|
|
44410
44410
|
]
|
|
44411
44411
|
}
|
|
44412
44412
|
);
|
|
44413
|
-
}, eq = W(({ className: e, ...t }) => /* @__PURE__ */ p.jsx(
|
|
44413
|
+
}, eq = W(({ className: e, ...t }) => /* @__PURE__ */ p.jsx(Zt, { ...t, arrow: !0, classes: { popper: e } })), w8 = eq((e) => ({
|
|
44414
44414
|
[`& .${Gn.arrow}`]: {
|
|
44415
44415
|
color: "#FFF"
|
|
44416
44416
|
},
|
|
@@ -54567,9 +54567,9 @@ const oee = W(Xu, {
|
|
|
54567
54567
|
view: pe,
|
|
54568
54568
|
currentMonth: Ve.currentMonth,
|
|
54569
54569
|
onViewChange: ze,
|
|
54570
|
-
onMonthChange: (lt,
|
|
54570
|
+
onMonthChange: (lt, qt) => Pe({
|
|
54571
54571
|
newMonth: lt,
|
|
54572
|
-
direction:
|
|
54572
|
+
direction: qt
|
|
54573
54573
|
}),
|
|
54574
54574
|
minDate: se,
|
|
54575
54575
|
maxDate: Te,
|
|
@@ -54584,29 +54584,29 @@ const oee = W(Xu, {
|
|
|
54584
54584
|
},
|
|
54585
54585
|
ownerState: c
|
|
54586
54586
|
}), be = qe((lt) => {
|
|
54587
|
-
const
|
|
54587
|
+
const qt = a.startOfMonth(lt), xn = a.endOfMonth(lt), an = ke(lt) ? Ya({
|
|
54588
54588
|
utils: a,
|
|
54589
54589
|
date: lt,
|
|
54590
|
-
minDate: a.isBefore(L,
|
|
54590
|
+
minDate: a.isBefore(L, qt) ? qt : L,
|
|
54591
54591
|
maxDate: a.isAfter(D, xn) ? xn : D,
|
|
54592
54592
|
disablePast: b,
|
|
54593
54593
|
disableFuture: m,
|
|
54594
54594
|
isDateDisabled: ke,
|
|
54595
54595
|
timezone: ce
|
|
54596
54596
|
}) : lt;
|
|
54597
|
-
an ? (re(an, "finish"), S == null || S(
|
|
54597
|
+
an ? (re(an, "finish"), S == null || S(qt)) : (ee(), Ze(qt)), We(an, !0);
|
|
54598
54598
|
}), Ce = qe((lt) => {
|
|
54599
|
-
const
|
|
54599
|
+
const qt = a.startOfYear(lt), xn = a.endOfYear(lt), an = ke(lt) ? Ya({
|
|
54600
54600
|
utils: a,
|
|
54601
54601
|
date: lt,
|
|
54602
|
-
minDate: a.isBefore(L,
|
|
54602
|
+
minDate: a.isBefore(L, qt) ? qt : L,
|
|
54603
54603
|
maxDate: a.isAfter(D, xn) ? xn : D,
|
|
54604
54604
|
disablePast: b,
|
|
54605
54605
|
disableFuture: m,
|
|
54606
54606
|
isDateDisabled: ke,
|
|
54607
54607
|
timezone: ce
|
|
54608
54608
|
}) : lt;
|
|
54609
|
-
an ? (re(an, "finish"), C == null || C(an)) : (ee(), Ze(
|
|
54609
|
+
an ? (re(an, "finish"), C == null || C(an)) : (ee(), Ze(qt)), We(an, !0);
|
|
54610
54610
|
}), ge = qe((lt) => Q(lt && Yd(a, lt, K ?? xe), "finish", pe));
|
|
54611
54611
|
y.useEffect(() => {
|
|
54612
54612
|
K != null && a.isValid(K) && Ze(K);
|
|
@@ -62401,7 +62401,7 @@ const Yte = (e) => {
|
|
|
62401
62401
|
values: t == null ? void 0 : t._valuesCache
|
|
62402
62402
|
}));
|
|
62403
62403
|
};
|
|
62404
|
-
return p.jsx(te, { onClick: (M) => M.stopPropagation(), sx: (M) => Object.assign({ display: "flex", gap: "0.75rem" }, Fe(r == null ? void 0 : r.sx, M)), children: o === "icon" ? p.jsxs(p.Fragment, { children: [p.jsx(
|
|
62404
|
+
return p.jsx(te, { onClick: (M) => M.stopPropagation(), sx: (M) => Object.assign({ display: "flex", gap: "0.75rem" }, Fe(r == null ? void 0 : r.sx, M)), children: o === "icon" ? p.jsxs(p.Fragment, { children: [p.jsx(Zt, { title: c.cancel, children: p.jsx(Mt, { "aria-label": c.cancel, onClick: w, children: p.jsx(a, {}) }) }), (S && u || P && h) && p.jsx(Zt, { title: c.save, children: p.jsx(Mt, { "aria-label": c.save, color: "info", disabled: C, onClick: R, children: C ? p.jsx(js, { size: 18 }) : p.jsx(l, {}) }) })] }) : p.jsxs(p.Fragment, { children: [p.jsx(ot, { onClick: w, sx: { minWidth: "100px" }, children: c.cancel }), p.jsxs(ot, { disabled: C, onClick: R, sx: { minWidth: "100px" }, variant: "contained", children: [C && p.jsx(js, { color: "inherit", size: 18 }), c.save] })] }) });
|
|
62405
62405
|
}, Xa = (e) => e.replace(/[^a-zA-Z0-9]/g, "_"), Kte = (e, t) => {
|
|
62406
62406
|
var n;
|
|
62407
62407
|
const o = Fe(e, t), r = (n = o == null ? void 0 : o.baseBackgroundColor) !== null && n !== void 0 ? n : t.palette.mode === "dark" ? ld(t.palette.background.default, 0.05) : t.palette.background.default;
|
|
@@ -62478,7 +62478,7 @@ const Yte = (e) => {
|
|
|
62478
62478
|
}, O = (k) => {
|
|
62479
62479
|
k.stopPropagation(), b(Object.assign({}, n)), R(null);
|
|
62480
62480
|
};
|
|
62481
|
-
return p.jsx(p.Fragment, { children: m && !P ? m({ cell: t, row: n, staticRowIndex: o, table: r }) : P ? p.jsx(Yte, { row: n, table: r }) : !g && Fe(d, n) && ["modal", "row"].includes(c) ? p.jsx(
|
|
62481
|
+
return p.jsx(p.Fragment, { children: m && !P ? m({ cell: t, row: n, staticRowIndex: o, table: r }) : P ? p.jsx(Yte, { row: n, table: r }) : !g && Fe(d, n) && ["modal", "row"].includes(c) ? p.jsx(Zt, { placement: "right", title: h.edit, children: p.jsx(Mt, Object.assign({ "aria-label": h.edit, onClick: O, sx: d6 }, i, { children: p.jsx(u, {}) })) }) : g ? p.jsxs(p.Fragment, { children: [p.jsx(Zt, Object.assign({}, No(), { title: h.rowActions, children: p.jsx(Mt, Object.assign({ "aria-label": h.rowActions, onClick: M, size: "small", sx: d6 }, i, { children: p.jsx(f, {}) })) })), p.jsx(Xte, { anchorEl: w, handleEdit: O, row: n, setAnchorEl: R, staticRowIndex: o, table: r })] }) : null });
|
|
62482
62482
|
}, Jte = (e) => Object.assign({ Cell: ({ cell: t, row: n, staticRowIndex: o, table: r }) => p.jsx(Qte, { cell: t, row: n, staticRowIndex: o, table: r }) }, Zi({
|
|
62483
62483
|
header: "actions",
|
|
62484
62484
|
id: "mrt-row-actions",
|
|
@@ -62487,7 +62487,7 @@ const Yte = (e) => {
|
|
|
62487
62487
|
})), Qv = (e) => {
|
|
62488
62488
|
var t, n, { location: o, table: r } = e, i = mt(e, ["location", "table"]);
|
|
62489
62489
|
const { options: { icons: { DragHandleIcon: a }, localization: l } } = r;
|
|
62490
|
-
return p.jsx(
|
|
62490
|
+
return p.jsx(Zt, Object.assign({}, No("top"), { title: (t = i == null ? void 0 : i.title) !== null && t !== void 0 ? t : l.move, children: p.jsx(Mt, Object.assign({ "aria-label": (n = i.title) !== null && n !== void 0 ? n : l.move, disableRipple: !0, draggable: "true", size: "small" }, i, { onClick: (c) => {
|
|
62491
62491
|
var d;
|
|
62492
62492
|
c.stopPropagation(), (d = i == null ? void 0 : i.onClick) === null || d === void 0 || d.call(i, c);
|
|
62493
62493
|
}, sx: (c) => Object.assign({ "&:active": {
|
|
@@ -62525,7 +62525,7 @@ const Yte = (e) => {
|
|
|
62525
62525
|
const { getCanSomeRowsExpand: i, getIsAllRowsExpanded: a, getIsSomeRowsExpanded: l, getState: c, options: { icons: { KeyboardDoubleArrowDownIcon: d }, localization: u, muiExpandAllButtonProps: f, renderDetailPanel: h }, toggleAllRowsExpanded: g } = o, { density: m, isLoading: b } = c(), v = Object.assign(Object.assign({}, Fe(f, {
|
|
62526
62526
|
table: o
|
|
62527
62527
|
})), r), x = a();
|
|
62528
|
-
return p.jsx(
|
|
62528
|
+
return p.jsx(Zt, Object.assign({}, No(), { title: (t = v == null ? void 0 : v.title) !== null && t !== void 0 ? t : x ? u.collapseAll : u.expandAll, children: p.jsx("span", { children: p.jsx(Mt, Object.assign({ "aria-label": u.expandAll, disabled: b || !h && !i(), onClick: () => g(!x) }, v, { sx: (C) => Object.assign({ height: m === "compact" ? "1.75rem" : "2.25rem", mt: m !== "compact" ? "-0.25rem" : void 0, width: m === "compact" ? "1.75rem" : "2.25rem" }, Fe(v == null ? void 0 : v.sx, C)), title: void 0, children: (n = v == null ? void 0 : v.children) !== null && n !== void 0 ? n : p.jsx(d, { style: {
|
|
62529
62529
|
transform: `rotate(${x ? -180 : l() ? -90 : 0}deg)`,
|
|
62530
62530
|
transition: "transform 150ms"
|
|
62531
62531
|
} }) })) }) }));
|
|
@@ -62539,7 +62539,7 @@ const Yte = (e) => {
|
|
|
62539
62539
|
var S;
|
|
62540
62540
|
C.stopPropagation(), e.toggleExpanded(), (S = g == null ? void 0 : g.onClick) === null || S === void 0 || S.call(g, C);
|
|
62541
62541
|
}, x = !!(f != null && f({ row: e, table: n }));
|
|
62542
|
-
return p.jsx(
|
|
62542
|
+
return p.jsx(Zt, Object.assign({ disableHoverListener: !m && !x }, No(), { title: (o = g == null ? void 0 : g.title) !== null && o !== void 0 ? o : b ? c.collapse : c.expand, children: p.jsx("span", { children: p.jsx(Mt, Object.assign({ "aria-label": c.expand, disabled: !m && !x }, g, { onClick: v, sx: (C) => Object.assign({ height: h === "compact" ? "1.75rem" : "2.25rem", opacity: !m && !x ? 0.3 : 1, [C.direction === "rtl" || u === "last" ? "mr" : "ml"]: `${e.depth * 16}px`, width: h === "compact" ? "1.75rem" : "2.25rem" }, Fe(g == null ? void 0 : g.sx, C)), title: void 0, children: (r = g == null ? void 0 : g.children) !== null && r !== void 0 ? r : p.jsx(l, { style: {
|
|
62543
62543
|
transform: `rotate(${!m && !f ? u === "last" || i.direction === "rtl" ? 90 : -90 : b ? -180 : 0}deg)`,
|
|
62544
62544
|
transition: "transform 150ms"
|
|
62545
62545
|
} }) })) }) }));
|
|
@@ -62551,7 +62551,7 @@ const Yte = (e) => {
|
|
|
62551
62551
|
return Object.assign({ Cell: ({ cell: d, column: u, row: f, staticRowIndex: h, table: g }) => {
|
|
62552
62552
|
var m, b, v;
|
|
62553
62553
|
const x = { row: f, staticRowIndex: h, table: g }, C = (m = f.subRows) === null || m === void 0 ? void 0 : m.length;
|
|
62554
|
-
return r === "remove" && f.groupingColumnId ? p.jsxs(ye, { alignItems: "center", flexDirection: "row", gap: "0.25rem", children: [p.jsx(u6, Object.assign({}, x)), p.jsx(
|
|
62554
|
+
return r === "remove" && f.groupingColumnId ? p.jsxs(ye, { alignItems: "center", flexDirection: "row", gap: "0.25rem", children: [p.jsx(u6, Object.assign({}, x)), p.jsx(Zt, Object.assign({}, No("right"), { title: g.getColumn(f.groupingColumnId).columnDef.header, children: p.jsx("span", { children: f.groupingValue }) })), !!C && p.jsxs("span", { children: ["(", C, ")"] })] }) : p.jsxs(p.Fragment, { children: [p.jsx(u6, Object.assign({}, x)), (v = (b = u.columnDef).GroupedCell) === null || v === void 0 ? void 0 : v.call(b, { cell: d, column: u, row: f, table: g })] });
|
|
62555
62555
|
}, Header: o ? ({ table: d }) => {
|
|
62556
62556
|
var u;
|
|
62557
62557
|
return p.jsxs(p.Fragment, { children: [p.jsx(nne, { table: d }), r === "remove" && ((u = l == null ? void 0 : l.map((f) => d.getColumn(f).columnDef.header)) === null || u === void 0 ? void 0 : u.join(", "))] });
|
|
@@ -62577,7 +62577,7 @@ const Yte = (e) => {
|
|
|
62577
62577
|
const { options: { icons: { CloseIcon: i, PushPinIcon: a }, localization: l, rowPinningDisplayMode: c } } = o, d = n.getIsPinned(), [u, f] = Ge(!1), h = (g) => {
|
|
62578
62578
|
f(!1), g.stopPropagation(), n.pin(d ? !1 : t);
|
|
62579
62579
|
};
|
|
62580
|
-
return p.jsx(
|
|
62580
|
+
return p.jsx(Zt, Object.assign({}, No(), { open: u, title: d ? l.unpin : l.pin, children: p.jsx(Mt, Object.assign({ "aria-label": l.pin, onClick: h, onMouseEnter: () => f(!0), onMouseLeave: () => f(!1), size: "small" }, r, { sx: (g) => Object.assign({ height: "24px", width: "24px" }, Fe(r == null ? void 0 : r.sx, g)), children: d ? p.jsx(i, {}) : p.jsx(a, { fontSize: "small", style: {
|
|
62581
62581
|
transform: `rotate(${c === "sticky" ? 135 : t === "top" ? 180 : 0}deg)`
|
|
62582
62582
|
} }) })) }));
|
|
62583
62583
|
}, ine = (e) => {
|
|
@@ -62616,7 +62616,7 @@ const Yte = (e) => {
|
|
|
62616
62616
|
var R;
|
|
62617
62617
|
w.stopPropagation(), (R = x == null ? void 0 : x.onClick) === null || R === void 0 || R.call(x, w);
|
|
62618
62618
|
}, sx: (w) => Object.assign({ height: h === "compact" ? "1.75rem" : "2.5rem", m: h !== "compact" ? "-0.4rem" : void 0, width: h === "compact" ? "1.75rem" : "2.5rem", zIndex: 0 }, Fe(x == null ? void 0 : x.sx, w)), title: void 0 });
|
|
62619
|
-
return p.jsx(
|
|
62619
|
+
return p.jsx(Zt, Object.assign({}, No(), { title: (t = x == null ? void 0 : x.title) !== null && t !== void 0 ? t : m ? c.toggleSelectAll : c.toggleSelectRow, children: l === !1 ? p.jsx(Iu, Object.assign({}, P)) : p.jsx(or, Object.assign({ indeterminate: !v && m ? r.getIsSomeRowsSelected() : (n == null ? void 0 : n.getIsSomeSelected()) && n.getCanSelectSubRows() }, P)) }));
|
|
62620
62620
|
}, ane = (e) => {
|
|
62621
62621
|
const { enableMultiRowSelection: t, enableSelectAll: n } = e;
|
|
62622
62622
|
return Object.assign({ Cell: ({ row: o, staticRowIndex: r, table: i }) => p.jsx(xf, { row: o, staticRowIndex: r, table: i }), Header: n && t ? ({ table: o }) => p.jsx(xf, { table: o }) : void 0, grow: !1 }, Zi({
|
|
@@ -62905,7 +62905,7 @@ const Yte = (e) => {
|
|
|
62905
62905
|
return {
|
|
62906
62906
|
[Ss(Et)]: Et.filterFn instanceof Function ? (nn = Et.filterFn.name) !== null && nn !== void 0 ? nn : "custom" : (He = (Y = Et.filterFn) !== null && Y !== void 0 ? Y : (we = j == null ? void 0 : j.columnFilterFns) === null || we === void 0 ? void 0 : we[Ss(Et)]) !== null && He !== void 0 ? He : Vte(Et)
|
|
62907
62907
|
};
|
|
62908
|
-
}))), [De, ee] = Ge((o = j.columnOrder) !== null && o !== void 0 ? o : []), [re, xe] = Ge((r = j.columnSizingInfo) !== null && r !== void 0 ? r : {}), [Ve, We] = Ge((i = j == null ? void 0 : j.density) !== null && i !== void 0 ? i : "comfortable"), [Ze, Pe] = Ge((a = j.draggingColumn) !== null && a !== void 0 ? a : null), [ke, ue] = Ge((l = j.draggingRow) !== null && l !== void 0 ? l : null), [se, Te] = Ge((c = j.editingCell) !== null && c !== void 0 ? c : null), [Ke, Ye] = Ge((d = j.editingRow) !== null && d !== void 0 ? d : null), [je, Le] = Ge((u = j.globalFilterFn) !== null && u !== void 0 ? u : "fuzzy"), [be, Ce] = Ge((f = j.grouping) !== null && f !== void 0 ? f : []), [ge, $e] = Ge((h = j.hoveredColumn) !== null && h !== void 0 ? h : null), [Je, at] = Ge((g = j.hoveredRow) !== null && g !== void 0 ? g : null), [it, Ht] = Ge((m = j == null ? void 0 : j.isFullScreen) !== null && m !== void 0 ? m : !1), [kt, lt] = Ge((b = j == null ? void 0 : j.pagination) !== null && b !== void 0 ? b : { pageIndex: 0, pageSize: 10 }), [
|
|
62908
|
+
}))), [De, ee] = Ge((o = j.columnOrder) !== null && o !== void 0 ? o : []), [re, xe] = Ge((r = j.columnSizingInfo) !== null && r !== void 0 ? r : {}), [Ve, We] = Ge((i = j == null ? void 0 : j.density) !== null && i !== void 0 ? i : "comfortable"), [Ze, Pe] = Ge((a = j.draggingColumn) !== null && a !== void 0 ? a : null), [ke, ue] = Ge((l = j.draggingRow) !== null && l !== void 0 ? l : null), [se, Te] = Ge((c = j.editingCell) !== null && c !== void 0 ? c : null), [Ke, Ye] = Ge((d = j.editingRow) !== null && d !== void 0 ? d : null), [je, Le] = Ge((u = j.globalFilterFn) !== null && u !== void 0 ? u : "fuzzy"), [be, Ce] = Ge((f = j.grouping) !== null && f !== void 0 ? f : []), [ge, $e] = Ge((h = j.hoveredColumn) !== null && h !== void 0 ? h : null), [Je, at] = Ge((g = j.hoveredRow) !== null && g !== void 0 ? g : null), [it, Ht] = Ge((m = j == null ? void 0 : j.isFullScreen) !== null && m !== void 0 ? m : !1), [kt, lt] = Ge((b = j == null ? void 0 : j.pagination) !== null && b !== void 0 ? b : { pageIndex: 0, pageSize: 10 }), [qt, xn] = Ge((v = j == null ? void 0 : j.showAlertBanner) !== null && v !== void 0 ? v : !1), [an, eo] = Ge((x = j == null ? void 0 : j.showColumnFilters) !== null && x !== void 0 ? x : !1), [yn, tn] = Ge((C = j == null ? void 0 : j.showGlobalFilter) !== null && C !== void 0 ? C : !1), [_t, ln] = Ge((S = j == null ? void 0 : j.showToolbarDropZone) !== null && S !== void 0 ? S : !1);
|
|
62909
62909
|
e.state = Object.assign({
|
|
62910
62910
|
actionCell: K,
|
|
62911
62911
|
columnFilterFns: ze,
|
|
@@ -62923,7 +62923,7 @@ const Yte = (e) => {
|
|
|
62923
62923
|
hoveredRow: Je,
|
|
62924
62924
|
isFullScreen: it,
|
|
62925
62925
|
pagination: kt,
|
|
62926
|
-
showAlertBanner:
|
|
62926
|
+
showAlertBanner: qt,
|
|
62927
62927
|
showColumnFilters: an,
|
|
62928
62928
|
showGlobalFilter: yn,
|
|
62929
62929
|
showToolbarDropZone: _t
|
|
@@ -63092,7 +63092,7 @@ const Yte = (e) => {
|
|
|
63092
63092
|
row: c,
|
|
63093
63093
|
table: o
|
|
63094
63094
|
})), r);
|
|
63095
|
-
return p.jsx(
|
|
63095
|
+
return p.jsx(Zt, Object.assign({}, No("top"), { title: (t = g == null ? void 0 : g.title) !== null && t !== void 0 ? t : u ? i.copiedToClipboard : i.clickToCopy, children: p.jsx(ot, Object.assign({ onClick: (m) => h(m, n.getValue()), size: "small", type: "button", variant: "text" }, g, { sx: (m) => Object.assign({ backgroundColor: "transparent", border: "none", color: "inherit", cursor: "copy", fontFamily: "inherit", fontSize: "inherit", letterSpacing: "inherit", m: "-0.25rem", minWidth: "unset", py: 0, textAlign: "inherit", textTransform: "inherit" }, Fe(g == null ? void 0 : g.sx, m)), title: void 0 })) }));
|
|
63096
63096
|
}, yne = (e) => {
|
|
63097
63097
|
var t, n, { cell: o, table: r } = e, i = mt(e, ["cell", "table"]);
|
|
63098
63098
|
const { getState: a, options: { createDisplayMode: l, editDisplayMode: c, muiEditTextFieldProps: d }, refs: { editInputRefs: u }, setCreatingRow: f, setEditingCell: h, setEditingRow: g } = r, { column: m, row: b } = o, { columnDef: v } = m, { creatingRow: x, editingRow: C } = a(), { editSelectOptions: S, editVariant: P } = v, w = (x == null ? void 0 : x.id) === b.id, R = (C == null ? void 0 : C.id) === b.id, [M, O] = Ge(() => o.getValue()), k = Object.assign(Object.assign(Object.assign({}, Fe(d, {
|
|
@@ -63543,7 +63543,7 @@ const Yte = (e) => {
|
|
|
63543
63543
|
column: d,
|
|
63544
63544
|
table: r
|
|
63545
63545
|
})), i);
|
|
63546
|
-
return p.jsxs(p.Fragment, { children: [p.jsx(
|
|
63546
|
+
return p.jsxs(p.Fragment, { children: [p.jsx(Zt, Object.assign({}, No("top"), { title: (t = m == null ? void 0 : m.title) !== null && t !== void 0 ? t : l.columnActions, children: p.jsx(Mt, Object.assign({ "aria-label": l.columnActions, onClick: g, size: "small" }, m, { sx: (b) => Object.assign({ "&:hover": {
|
|
63547
63547
|
opacity: 1
|
|
63548
63548
|
}, height: "2rem", m: "-8px -4px", opacity: 0.3, transition: "all 150ms", width: "2rem" }, Fe(m == null ? void 0 : m.sx, b)), title: void 0, children: (n = m == null ? void 0 : m.children) !== null && n !== void 0 ? n : p.jsx(a, { style: { transform: "scale(0.9)" } }) })) })), f && p.jsx(Ene, { anchorEl: f, header: o, setAnchorEl: h, table: r })] });
|
|
63549
63549
|
}, jne = (e) => {
|
|
@@ -63555,7 +63555,7 @@ const Yte = (e) => {
|
|
|
63555
63555
|
column: r,
|
|
63556
63556
|
table: i
|
|
63557
63557
|
})), a), g = (t = c.filterByColumn) === null || t === void 0 ? void 0 : t.replace("{column}", f.header);
|
|
63558
|
-
return p.jsx(
|
|
63558
|
+
return p.jsx(Zt, Object.assign({}, No(), { title: (n = h == null ? void 0 : h.title) !== null && n !== void 0 ? n : g, children: p.jsx(Qs, { control: p.jsx(or, Object.assign({ checked: r.getFilterValue() === "true", color: r.getFilterValue() === void 0 ? "default" : "primary", indeterminate: r.getFilterValue() === void 0, size: u === "compact" ? "small" : "medium" }, h, { onChange: (m, b) => {
|
|
63559
63559
|
var v;
|
|
63560
63560
|
r.setFilterValue(r.getFilterValue() === void 0 ? "true" : r.getFilterValue() === "true" ? "false" : void 0), (v = h == null ? void 0 : h.onChange) === null || v === void 0 || v.call(h, m, b);
|
|
63561
63561
|
}, onClick: (m) => {
|
|
@@ -63604,11 +63604,11 @@ const Yte = (e) => {
|
|
|
63604
63604
|
Ye.current = !0;
|
|
63605
63605
|
}, [$.getFilterValue()]), V.Filter)
|
|
63606
63606
|
return p.jsx(p.Fragment, { children: (i = V.Filter) === null || i === void 0 ? void 0 : i.call(V, { column: $, header: x, rangeFilterIndex: C, table: S }) });
|
|
63607
|
-
const je = !ie && !oe && !pe ? p.jsx(ll, { position: "end", sx: { mr: K || z ? "20px" : void 0 }, children: p.jsx(
|
|
63607
|
+
const je = !ie && !oe && !pe ? p.jsx(ll, { position: "end", sx: { mr: K || z ? "20px" : void 0 }, children: p.jsx(Zt, { placement: "right", title: (a = O.clearFilter) !== null && a !== void 0 ? a : "", children: p.jsx("span", { children: p.jsx(Mt, { "aria-label": O.clearFilter, disabled: !(!((l = re == null ? void 0 : re.toString()) === null || l === void 0) && l.length), onClick: se, size: "small", sx: {
|
|
63608
63608
|
height: "2rem",
|
|
63609
63609
|
transform: "scale(0.9)",
|
|
63610
63610
|
width: "2rem"
|
|
63611
|
-
}, children: p.jsx(R, {}) }) }) }) }) : null, Le = me ? p.jsxs(ll, { position: "start", children: [p.jsx(
|
|
63611
|
+
}, children: p.jsx(R, {}) }) }) }) }) : null, Le = me ? p.jsxs(ll, { position: "start", children: [p.jsx(Zt, { title: O.changeFilterMode, children: p.jsx("span", { children: p.jsx(Mt, { "aria-label": O.changeFilterMode, onClick: Ke, size: "small", sx: { height: "1.75rem", width: "1.75rem" }, children: p.jsx(M, {}) }) }) }), pe && p.jsx(Li, { label: pe, onDelete: Te })] }) : null, be = Object.assign(Object.assign({ FormHelperTextProps: {
|
|
63612
63612
|
sx: {
|
|
63613
63613
|
fontSize: "0.75rem",
|
|
63614
63614
|
lineHeight: "0.8rem",
|
|
@@ -63707,7 +63707,7 @@ const Yte = (e) => {
|
|
|
63707
63707
|
c[`filter${((n = v == null ? void 0 : v.charAt(0)) === null || n === void 0 ? void 0 : n.toUpperCase()) + (v == null ? void 0 : v.slice(1))}`]
|
|
63708
63708
|
) : "").replace("{filterValue}", `"${Array.isArray(g) ? g.map((O, k) => x ? w(k) : O).join(`" ${C ? c.and : c.or} "`) : S ? w() : g}"`).replace('" "', "");
|
|
63709
63709
|
return p.jsxs(p.Fragment, { children: [p.jsx(Hr, { in: a === "popover" || !!g && !C || C && // @ts-ignore
|
|
63710
|
-
(!!(g != null && g[0]) || !!(g != null && g[1])), unmountOnExit: !0, children: p.jsx(te, { component: "span", sx: { flex: "0 0" }, children: p.jsx(
|
|
63710
|
+
(!!(g != null && g[0]) || !!(g != null && g[1])), unmountOnExit: !0, children: p.jsx(te, { component: "span", sx: { flex: "0 0" }, children: p.jsx(Zt, { placement: "top", title: M, children: p.jsx(Mt, Object.assign({ disableRipple: !0, onClick: (O) => {
|
|
63711
63711
|
a === "popover" ? b(O.currentTarget) : u(!0), queueMicrotask(() => {
|
|
63712
63712
|
var k, E, I, _;
|
|
63713
63713
|
(E = (k = d.current[`${f.id}-0`]) === null || k === void 0 ? void 0 : k.focus) === null || E === void 0 || E.call(k), (_ = (I = d.current[`${f.id}-0`]) === null || I === void 0 ? void 0 : I.select) === null || _ === void 0 || _.call(I);
|
|
@@ -63762,7 +63762,7 @@ const Yte = (e) => {
|
|
|
63762
63762
|
}, Fne = (e) => {
|
|
63763
63763
|
var { header: t, table: n } = e, o = mt(e, ["header", "table"]);
|
|
63764
63764
|
const { getState: r, options: { icons: { ArrowDownwardIcon: i, SyncAltIcon: a }, localization: l } } = n, { column: c } = t, { columnDef: d } = c, { isLoading: u, showSkeletons: f, sorting: h } = r(), g = !!c.getIsSorted(), m = u || f ? "" : c.getIsSorted() ? c.getIsSorted() === "desc" ? l.sortedByColumnDesc.replace("{column}", d.header) : l.sortedByColumnAsc.replace("{column}", d.header) : c.getNextSortingOrder() === "desc" ? l.sortByColumnDesc.replace("{column}", d.header) : l.sortByColumnAsc.replace("{column}", d.header), b = g ? c.getIsSorted() : void 0;
|
|
63765
|
-
return p.jsx(
|
|
63765
|
+
return p.jsx(Zt, { placement: "top", title: m, children: p.jsx(q4, { badgeContent: h.length > 1 ? c.getSortIndex() + 1 : 0, overlap: "circular", children: p.jsx(w7, Object.assign({ IconComponent: g ? i : (v) => p.jsx(a, Object.assign({}, v, { direction: b, style: {
|
|
63766
63766
|
transform: "rotate(-90deg) scaleX(0.9) translateX(-1px)"
|
|
63767
63767
|
} })), active: !0, "aria-label": m, direction: b, onClick: (v) => {
|
|
63768
63768
|
var x;
|
|
@@ -63920,7 +63920,7 @@ const Yte = (e) => {
|
|
|
63920
63920
|
last: f,
|
|
63921
63921
|
next: d,
|
|
63922
63922
|
previous: c
|
|
63923
|
-
} }, B)), showFirstButton: _, showLastButton: A }, D)) : m === "default" ? p.jsxs(p.Fragment, { children: [p.jsx(fe, { align: "center", component: "span", sx: { m: "0 4px", minWidth: "8ch" }, variant: "body2", children: `${M === 0 ? 0 : (R + 1).toLocaleString()}-${M.toLocaleString()} ${h.of} ${S.toLocaleString()}` }), p.jsxs(te, { gap: "xs", children: [_ && p.jsx(
|
|
63923
|
+
} }, B)), showFirstButton: _, showLastButton: A }, D)) : m === "default" ? p.jsxs(p.Fragment, { children: [p.jsx(fe, { align: "center", component: "span", sx: { m: "0 4px", minWidth: "8ch" }, variant: "body2", children: `${M === 0 ? 0 : (R + 1).toLocaleString()}-${M.toLocaleString()} ${h.of} ${S.toLocaleString()}` }), p.jsxs(te, { gap: "xs", children: [_ && p.jsx(Zt, Object.assign({}, V, { title: h.goToFirstPage, children: p.jsx("span", { children: p.jsx(Mt, { "aria-label": h.goToFirstPage, disabled: F, onClick: () => n.firstPage(), size: "small", children: p.jsx(u, Object.assign({}, Qc(r))) }) }) })), p.jsx(Zt, Object.assign({}, V, { title: h.goToPreviousPage, children: p.jsx("span", { children: p.jsx(Mt, { "aria-label": h.goToPreviousPage, disabled: F, onClick: () => n.previousPage(), size: "small", children: p.jsx(c, Object.assign({}, Qc(r))) }) }) })), p.jsx(Zt, Object.assign({}, V, { title: h.goToNextPage, children: p.jsx("span", { children: p.jsx(Mt, { "aria-label": h.goToNextPage, disabled: $, onClick: () => n.nextPage(), size: "small", children: p.jsx(d, Object.assign({}, Qc(r))) }) }) })), A && p.jsx(Zt, Object.assign({}, V, { title: h.goToLastPage, children: p.jsx("span", { children: p.jsx(Mt, { "aria-label": h.goToLastPage, disabled: $, onClick: () => n.lastPage(), size: "small", children: p.jsx(f, Object.assign({}, Qc(r))) }) }) }))] })] }) : null] });
|
|
63924
63924
|
};
|
|
63925
63925
|
function ise(e) {
|
|
63926
63926
|
const t = Me(), n = {
|
|
@@ -65579,7 +65579,7 @@ function Roe(e) {
|
|
|
65579
65579
|
alignItems: "center"
|
|
65580
65580
|
},
|
|
65581
65581
|
children: [
|
|
65582
|
-
/* @__PURE__ */ p.jsx(
|
|
65582
|
+
/* @__PURE__ */ p.jsx(Zt, { title: a("Gérer votre profil"), children: /* @__PURE__ */ p.jsxs(
|
|
65583
65583
|
ot,
|
|
65584
65584
|
{
|
|
65585
65585
|
onClick: (f) => {
|
|
@@ -66293,7 +66293,7 @@ const kse = (e) => /* @__PURE__ */ p.jsx(te, { sx: { minWidth: 205 }, children:
|
|
|
66293
66293
|
value: i,
|
|
66294
66294
|
onChange: c,
|
|
66295
66295
|
"aria-label": "section-tabs",
|
|
66296
|
-
children: t.map((d, u) => /* @__PURE__ */ p.jsx(
|
|
66296
|
+
children: t.map((d, u) => /* @__PURE__ */ p.jsx(Zt, { title: d.tooltip || "", arrow: !0, children: /* @__PURE__ */ p.jsx(
|
|
66297
66297
|
cl,
|
|
66298
66298
|
{
|
|
66299
66299
|
icon: /* @__PURE__ */ p.jsx(
|
|
@@ -66327,9 +66327,8 @@ const kse = (e) => /* @__PURE__ */ p.jsx(te, { sx: { minWidth: 205 }, children:
|
|
|
66327
66327
|
},
|
|
66328
66328
|
iconPosition: "start",
|
|
66329
66329
|
...Uoe(u)
|
|
66330
|
-
}
|
|
66331
|
-
|
|
66332
|
-
))
|
|
66330
|
+
}
|
|
66331
|
+
) }, u))
|
|
66333
66332
|
}
|
|
66334
66333
|
) }),
|
|
66335
66334
|
o && (t == null ? void 0 : t.map((d, u) => /* @__PURE__ */ p.jsx(Woe, { value: i, index: u, children: d.component }, u)))
|