` by default. You can change this
* behavior by providing a `component` prop.
@@ -8230,17 +8230,17 @@ Us.propTypes = process.env.NODE_ENV !== "production" ? {
*/
childFactory: o.func
} : {};
-Us.defaultProps = Lh;
-const ma = {};
-function Jl(e, t) {
- const n = x.useRef(ma);
- return n.current === ma && (n.current = e(t)), n;
+Ws.defaultProps = Uh;
+const ya = {};
+function Zl(e, t) {
+ const n = x.useRef(ya);
+ return n.current === ya && (n.current = e(t)), n;
}
-const Bh = [];
-function Fh(e) {
- x.useEffect(e, Bh);
+const Vh = [];
+function zh(e) {
+ x.useEffect(e, Vh);
}
-class Vs {
+class Hs {
constructor() {
En(this, "currentId", null);
En(this, "clear", () => {
@@ -8249,7 +8249,7 @@ class Vs {
En(this, "disposeEffect", () => this.clear);
}
static create() {
- return new Vs();
+ return new Hs();
}
/**
* Executes `fn` after `delay`, clearing any previously scheduled call.
@@ -8260,17 +8260,17 @@ class Vs {
}, t);
}
}
-function Zl() {
- const e = Jl(Vs.create).current;
- return Fh(e.disposeEffect), e;
+function ec() {
+ const e = Zl(Hs.create).current;
+ return zh(e.disposeEffect), e;
}
-function Uh(e) {
+function Wh(e) {
const {
prototype: t = {}
} = e;
return !!t.isReactComponent;
}
-function Vh(e, t, n, r, s) {
+function Hh(e, t, n, r, s) {
const i = e[t], a = s || t;
if (i == null || // When server-side rendering React doesn't warn either.
// This is not an accurate check for SSR.
@@ -8279,10 +8279,10 @@ function Vh(e, t, n, r, s) {
typeof window > "u")
return null;
let l;
- return typeof i == "function" && !Uh(i) && (l = "Did you accidentally provide a plain function component instead?"), i === x.Fragment && (l = "Did you accidentally provide a React.Fragment instead?"), l !== void 0 ? new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://v7.mui.com/r/caveat-with-refs-guide`) : null;
+ return typeof i == "function" && !Wh(i) && (l = "Did you accidentally provide a plain function component instead?"), i === x.Fragment && (l = "Did you accidentally provide a React.Fragment instead?"), l !== void 0 ? new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://v7.mui.com/r/caveat-with-refs-guide`) : null;
}
-const zs = Kt(o.elementType, Vh), Ql = (e) => e.scrollTop;
-function et(e, t) {
+const qs = Xt(o.elementType, Hh), tc = (e) => e.scrollTop;
+function tt(e, t) {
return (n) => {
if (t) {
const r = e.current;
@@ -8290,7 +8290,7 @@ function et(e, t) {
}
};
}
-function ec(e, t, n, r, s, i) {
+function nc(e, t, n, r, s, i) {
const a = e === "exited" && !t ? r : n[e] || n.exited;
return s || i ? {
...a,
@@ -8298,7 +8298,7 @@ function ec(e, t, n, r, s, i) {
...i
} : a;
}
-function Nr(e, t) {
+function kr(e, t) {
const {
timeout: n,
easing: r,
@@ -8310,11 +8310,11 @@ function Nr(e, t) {
delay: s.transitionDelay
};
}
-function kr(e) {
+function $r(e) {
return typeof e == "string";
}
-function tc(e, t, n) {
- return e === void 0 || kr(e) ? t : {
+function rc(e, t, n) {
+ return e === void 0 || $r(e) ? t : {
...t,
ownerState: {
...t.ownerState,
@@ -8322,10 +8322,10 @@ function tc(e, t, n) {
}
};
}
-function nc(e, t, n) {
+function oc(e, t, n) {
return typeof e == "function" ? e(t, n) : e;
}
-function rc(e, t = []) {
+function sc(e, t = []) {
if (e === void 0)
return {};
const n = {};
@@ -8333,7 +8333,7 @@ function rc(e, t = []) {
n[r] = e[r];
}), n;
}
-function ha(e) {
+function ga(e) {
if (e === void 0)
return {};
const t = {};
@@ -8341,7 +8341,7 @@ function ha(e) {
t[n] = e[n];
}), t;
}
-function oc(e) {
+function ic(e) {
const {
getSlotProps: t,
additionalProps: n,
@@ -8354,20 +8354,20 @@ function oc(e) {
...n == null ? void 0 : n.style,
...s == null ? void 0 : s.style,
...r == null ? void 0 : r.style
- }, f = {
+ }, p = {
...n,
...s,
...r
};
- return m.length > 0 && (f.className = m), Object.keys(g).length > 0 && (f.style = g), {
- props: f,
+ return m.length > 0 && (p.className = m), Object.keys(g).length > 0 && (p.style = g), {
+ props: p,
internalRef: void 0
};
}
- const a = rc({
+ const a = sc({
...s,
...r
- }), l = ha(r), c = ha(s), u = t(a), d = ie(u == null ? void 0 : u.className, n == null ? void 0 : n.className, i, s == null ? void 0 : s.className, r == null ? void 0 : r.className), h = {
+ }), l = ga(r), c = ga(s), u = t(a), d = ie(u == null ? void 0 : u.className, n == null ? void 0 : n.className, i, s == null ? void 0 : s.className, r == null ? void 0 : r.className), h = {
...u == null ? void 0 : u.style,
...n == null ? void 0 : n.style,
...s == null ? void 0 : s.style,
@@ -8383,7 +8383,7 @@ function oc(e) {
internalRef: u.ref
};
}
-function Pe(e, t) {
+function we(e, t) {
const {
className: n,
elementType: r,
@@ -8401,18 +8401,18 @@ function Pe(e, t) {
[e]: void 0
},
...v
- } = i, m = d[e] || r, g = nc(h[e], s), {
+ } = i, m = d[e] || r, g = oc(h[e], s), {
props: {
- component: f,
+ component: p,
...y
},
internalRef: S
- } = oc({
+ } = ic({
className: n,
...c,
externalForwardedProps: e === "root" ? v : void 0,
externalSlotProps: g
- }), R = We(S, g == null ? void 0 : g.ref, t.ref), T = e === "root" ? f || u : f, b = tc(m, {
+ }), R = We(S, g == null ? void 0 : g.ref, t.ref), T = e === "root" ? p || u : p, b = rc(m, {
...e === "root" && !u && !d[e] && a,
...e !== "root" && !d[e] && a,
...y,
@@ -8426,7 +8426,7 @@ function Pe(e, t) {
}, s);
return [m, b];
}
-function zh(e) {
+function qh(e) {
const t = typeof e;
switch (t) {
case "number":
@@ -8437,28 +8437,28 @@ function zh(e) {
return t;
}
}
-function sc(e, t, n, r) {
+function ac(e, t, n, r) {
const s = e[t];
if (s == null || !Number.isInteger(s)) {
- const i = zh(s);
+ const i = qh(s);
return new RangeError(`Invalid ${r} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`);
}
return null;
}
-function ic(e, t, n, r) {
- return e[t] === void 0 ? null : sc(e, t, n, r);
+function lc(e, t, n, r) {
+ return e[t] === void 0 ? null : ac(e, t, n, r);
}
-function us() {
+function ps() {
return null;
}
-ic.isRequired = sc;
-us.isRequired = us;
-const ac = process.env.NODE_ENV === "production" ? us : ic;
-function Wh(e) {
- return ce("MuiPaper", e);
+lc.isRequired = ac;
+ps.isRequired = ps;
+const cc = process.env.NODE_ENV === "production" ? ps : lc;
+function Gh(e) {
+ return le("MuiPaper", e);
}
-fe("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]);
-const Hh = (e) => {
+ue("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]);
+const Yh = (e) => {
const {
square: t,
elevation: n,
@@ -8467,8 +8467,8 @@ const Hh = (e) => {
} = e, i = {
root: ["root", r, !t && "rounded", r === "elevation" && `elevation${n}`]
};
- return pe(i, Wh, s);
-}, qh = te("div", {
+ return de(i, Gh, s);
+}, Kh = Z("div", {
name: "MuiPaper",
slot: "Root",
overridesResolver: (e, t) => {
@@ -8506,9 +8506,9 @@ const Hh = (e) => {
backgroundImage: "var(--Paper-overlay)"
}
}]
-}))), fo = /* @__PURE__ */ x.forwardRef(function(t, n) {
+}))), po = /* @__PURE__ */ x.forwardRef(function(t, n) {
var m;
- const r = Ee({
+ const r = me({
props: t,
name: "MuiPaper"
}), s = uo(), {
@@ -8524,9 +8524,9 @@ const Hh = (e) => {
elevation: l,
square: c,
variant: u
- }, v = Hh(h);
+ }, v = Yh(h);
return process.env.NODE_ENV !== "production" && s.shadows[l] === void 0 && console.error([`MUI: The elevation provided
is not available in the theme.`, `Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
-`)), /* @__PURE__ */ k.jsx(qh, {
+`)), /* @__PURE__ */ N.jsx(Kh, {
as: a,
ownerState: h,
className: ie(v.root, i),
@@ -8539,14 +8539,14 @@ const Hh = (e) => {
"--Paper-overlay": (m = s.vars.overlays) == null ? void 0 : m[l]
},
...!s.vars && s.palette.mode === "dark" && {
- "--Paper-overlay": `linear-gradient(${_r("#fff", as(l))}, ${_r("#fff", as(l))})`
+ "--Paper-overlay": `linear-gradient(${Ar("#fff", ls(l))}, ${Ar("#fff", ls(l))})`
}
},
...d.style
}
});
});
-process.env.NODE_ENV !== "production" && (fo.propTypes = {
+process.env.NODE_ENV !== "production" && (po.propTypes = {
// ┌────────────────────────────── Warning ──────────────────────────────┐
// │ These PropTypes are generated from the TypeScript type definitions. │
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -8573,7 +8573,7 @@ process.env.NODE_ENV !== "production" && (fo.propTypes = {
* It accepts values between 0 and 24 inclusive.
* @default 1
*/
- elevation: Kt(ac, (e) => {
+ elevation: Xt(cc, (e) => {
const {
elevation: t,
variant: n
@@ -8599,8 +8599,8 @@ process.env.NODE_ENV !== "production" && (fo.propTypes = {
*/
variant: o.oneOfType([o.oneOf(["elevation", "outlined"]), o.string])
});
-const wt = o.oneOfType([o.func, o.object]);
-function ya(e) {
+const bt = o.oneOfType([o.func, o.object]);
+function ba(e) {
try {
return e.matches(":focus-visible");
} catch {
@@ -8609,7 +8609,7 @@ function ya(e) {
}
return !1;
}
-class $r {
+class Mr {
constructor() {
En(this, "mountEffect", () => {
this.shouldMount && !this.didMount && this.ref.current !== null && (this.didMount = !0, this.mounted.resolve());
@@ -8624,14 +8624,14 @@ class $r {
/** If the ripple component has been mounted */
/** React state hook setter */
static create() {
- return new $r();
+ return new Mr();
}
static use() {
- const t = Jl($r.create).current, [n, r] = x.useState(!1);
+ const t = Zl(Mr.create).current, [n, r] = x.useState(!1);
return t.shouldMount = n, t.setShouldMount = r, x.useEffect(t.mountEffect, [n]), t;
}
mount() {
- return this.mounted || (this.mounted = Yh(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
+ return this.mounted || (this.mounted = Jh(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
}
/* Ripple API */
start(...t) {
@@ -8653,17 +8653,17 @@ class $r {
});
}
}
-function Gh() {
- return $r.use();
+function Xh() {
+ return Mr.use();
}
-function Yh() {
+function Jh() {
let e, t;
const n = new Promise((r, s) => {
e = r, t = s;
});
return n.resolve = e, n.reject = t, n;
}
-function lc(e) {
+function uc(e) {
const {
className: t,
classes: n,
@@ -8682,20 +8682,20 @@ function lc(e) {
}, g = ie(n.child, d && n.childLeaving, r && n.childPulsate);
return !l && !d && h(!0), x.useEffect(() => {
if (!l && c != null) {
- const f = setTimeout(c, u);
+ const p = setTimeout(c, u);
return () => {
- clearTimeout(f);
+ clearTimeout(p);
};
}
- }, [c, l, u]), /* @__PURE__ */ k.jsx("span", {
+ }, [c, l, u]), /* @__PURE__ */ N.jsx("span", {
className: v,
style: m,
- children: /* @__PURE__ */ k.jsx("span", {
+ children: /* @__PURE__ */ N.jsx("span", {
className: g
})
});
}
-process.env.NODE_ENV !== "production" && (lc.propTypes = {
+process.env.NODE_ENV !== "production" && (uc.propTypes = {
/**
* Override or extend the styles applied to the component.
*/
@@ -8730,7 +8730,7 @@ process.env.NODE_ENV !== "production" && (lc.propTypes = {
*/
timeout: o.number.isRequired
});
-const Ze = fe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), ds = 550, Kh = 80, Xh = Jn`
+const Ze = ue("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), fs = 550, Qh = 80, Zh = Jn`
0% {
transform: scale(0);
opacity: 0.1;
@@ -8740,7 +8740,7 @@ const Ze = fe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
transform: scale(1);
opacity: 0.3;
}
-`, Jh = Jn`
+`, ey = Jn`
0% {
opacity: 1;
}
@@ -8748,7 +8748,7 @@ const Ze = fe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
100% {
opacity: 0;
}
-`, Zh = Jn`
+`, ty = Jn`
0% {
transform: scale(1);
}
@@ -8760,7 +8760,7 @@ const Ze = fe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
100% {
transform: scale(1);
}
-`, Qh = te("span", {
+`, ny = Z("span", {
name: "MuiTouchRipple",
slot: "Root"
})({
@@ -8773,7 +8773,7 @@ const Ze = fe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
bottom: 0,
left: 0,
borderRadius: "inherit"
-}), ey = te(lc, {
+}), ry = Z(uc, {
name: "MuiTouchRipple",
slot: "Ripple"
})`
@@ -8783,8 +8783,8 @@ const Ze = fe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
&.${Ze.rippleVisible} {
opacity: 0.3;
transform: scale(1);
- animation-name: ${Xh};
- animation-duration: ${ds}ms;
+ animation-name: ${Zh};
+ animation-duration: ${fs}ms;
animation-timing-function: ${({
theme: e
}) => e.transitions.easing.easeInOut};
@@ -8807,8 +8807,8 @@ const Ze = fe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
& .${Ze.childLeaving} {
opacity: 0;
- animation-name: ${Jh};
- animation-duration: ${ds}ms;
+ animation-name: ${ey};
+ animation-duration: ${fs}ms;
animation-timing-function: ${({
theme: e
}) => e.transitions.easing.easeInOut};
@@ -8819,7 +8819,7 @@ const Ze = fe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
/* @noflip */
left: 0px;
top: 0;
- animation-name: ${Zh};
+ animation-name: ${ty};
animation-duration: 2500ms;
animation-timing-function: ${({
theme: e
@@ -8827,8 +8827,8 @@ const Ze = fe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
animation-iteration-count: infinite;
animation-delay: 200ms;
}
-`, cc = /* @__PURE__ */ x.forwardRef(function(t, n) {
- const r = Ee({
+`, dc = /* @__PURE__ */ x.forwardRef(function(t, n) {
+ const r = me({
props: t,
name: "MuiTouchRipple"
}), {
@@ -8840,15 +8840,15 @@ const Ze = fe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
x.useEffect(() => {
h.current && (h.current(), h.current = null);
}, [c]);
- const v = x.useRef(!1), m = Zl(), g = x.useRef(null), f = x.useRef(null), y = x.useCallback((b) => {
+ const v = x.useRef(!1), m = ec(), g = x.useRef(null), p = x.useRef(null), y = x.useCallback((b) => {
const {
pulsate: E,
rippleX: w,
- rippleY: N,
- rippleSize: L,
- cb: z
+ rippleY: k,
+ rippleSize: D,
+ cb: W
} = b;
- u((q) => [...q, /* @__PURE__ */ k.jsx(ey, {
+ u((Y) => [...Y, /* @__PURE__ */ N.jsx(ry, {
classes: {
ripple: ie(i.ripple, Ze.ripple),
rippleVisible: ie(i.rippleVisible, Ze.rippleVisible),
@@ -8857,18 +8857,18 @@ const Ze = fe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
childLeaving: ie(i.childLeaving, Ze.childLeaving),
childPulsate: ie(i.childPulsate, Ze.childPulsate)
},
- timeout: ds,
+ timeout: fs,
pulsate: E,
rippleX: w,
- rippleY: N,
- rippleSize: L
- }, d.current)]), d.current += 1, h.current = z;
+ rippleY: k,
+ rippleSize: D
+ }, d.current)]), d.current += 1, h.current = W;
}, [i]), S = x.useCallback((b = {}, E = {}, w = () => {
}) => {
const {
- pulsate: N = !1,
- center: L = s || E.pulsate,
- fakeElement: z = !1
+ pulsate: k = !1,
+ center: D = s || E.pulsate,
+ fakeElement: W = !1
// For test purposes
} = E;
if ((b == null ? void 0 : b.type) === "mousedown" && v.current) {
@@ -8876,41 +8876,41 @@ const Ze = fe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
return;
}
(b == null ? void 0 : b.type) === "touchstart" && (v.current = !0);
- const q = z ? null : f.current, F = q ? q.getBoundingClientRect() : {
+ const Y = W ? null : p.current, U = Y ? Y.getBoundingClientRect() : {
width: 0,
height: 0,
left: 0,
top: 0
};
- let p, I, A;
- if (L || b === void 0 || b.clientX === 0 && b.clientY === 0 || !b.clientX && !b.touches)
- p = Math.round(F.width / 2), I = Math.round(F.height / 2);
+ let f, I, A;
+ if (D || b === void 0 || b.clientX === 0 && b.clientY === 0 || !b.clientX && !b.touches)
+ f = Math.round(U.width / 2), I = Math.round(U.height / 2);
else {
const {
- clientX: D,
- clientY: j
+ clientX: L,
+ clientY: M
} = b.touches && b.touches.length > 0 ? b.touches[0] : b;
- p = Math.round(D - F.left), I = Math.round(j - F.top);
+ f = Math.round(L - U.left), I = Math.round(M - U.top);
}
- if (L)
- A = Math.sqrt((2 * F.width ** 2 + F.height ** 2) / 3), A % 2 === 0 && (A += 1);
+ if (D)
+ A = Math.sqrt((2 * U.width ** 2 + U.height ** 2) / 3), A % 2 === 0 && (A += 1);
else {
- const D = Math.max(Math.abs((q ? q.clientWidth : 0) - p), p) * 2 + 2, j = Math.max(Math.abs((q ? q.clientHeight : 0) - I), I) * 2 + 2;
- A = Math.sqrt(D ** 2 + j ** 2);
+ const L = Math.max(Math.abs((Y ? Y.clientWidth : 0) - f), f) * 2 + 2, M = Math.max(Math.abs((Y ? Y.clientHeight : 0) - I), I) * 2 + 2;
+ A = Math.sqrt(L ** 2 + M ** 2);
}
b != null && b.touches ? g.current === null && (g.current = () => {
y({
- pulsate: N,
- rippleX: p,
+ pulsate: k,
+ rippleX: f,
rippleY: I,
rippleSize: A,
cb: w
});
- }, m.start(Kh, () => {
+ }, m.start(Qh, () => {
g.current && (g.current(), g.current = null);
})) : y({
- pulsate: N,
- rippleX: p,
+ pulsate: k,
+ rippleX: f,
rippleY: I,
rippleSize: A,
cb: w
@@ -8932,18 +8932,18 @@ const Ze = fe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
pulsate: R,
start: S,
stop: T
- }), [R, S, T]), /* @__PURE__ */ k.jsx(Qh, {
+ }), [R, S, T]), /* @__PURE__ */ N.jsx(ny, {
className: ie(Ze.root, i.root, a),
- ref: f,
+ ref: p,
...l,
- children: /* @__PURE__ */ k.jsx(Us, {
+ children: /* @__PURE__ */ N.jsx(Ws, {
component: null,
exit: !0,
children: c
})
});
});
-process.env.NODE_ENV !== "production" && (cc.propTypes = {
+process.env.NODE_ENV !== "production" && (dc.propTypes = {
/**
* If `true`, the ripple starts at the center of the component
* rather than at the point of interaction.
@@ -8958,20 +8958,20 @@ process.env.NODE_ENV !== "production" && (cc.propTypes = {
*/
className: o.string
});
-function ty(e) {
- return ce("MuiButtonBase", e);
+function oy(e) {
+ return le("MuiButtonBase", e);
}
-const ny = fe("MuiButtonBase", ["root", "disabled", "focusVisible"]), ry = (e) => {
+const sy = ue("MuiButtonBase", ["root", "disabled", "focusVisible"]), iy = (e) => {
const {
disabled: t,
focusVisible: n,
focusVisibleClassName: r,
classes: s
- } = e, a = pe({
+ } = e, a = de({
root: ["root", t && "disabled", n && "focusVisible"]
- }, ty, s);
+ }, oy, s);
return n && r && (a.root += ` ${r}`), a;
-}, oy = te("button", {
+}, ay = Z("button", {
name: "MuiButtonBase",
slot: "Root"
})({
@@ -9005,7 +9005,7 @@ const ny = fe("MuiButtonBase", ["root", "disabled", "focusVisible"]), ry = (e) =
borderStyle: "none"
// Remove Firefox dotted outline.
},
- [`&.${ny.disabled}`]: {
+ [`&.${sy.disabled}`]: {
pointerEvents: "none",
// Disable link interactions
cursor: "default"
@@ -9013,8 +9013,8 @@ const ny = fe("MuiButtonBase", ["root", "disabled", "focusVisible"]), ry = (e) =
"@media print": {
colorAdjust: "exact"
}
-}), po = /* @__PURE__ */ x.forwardRef(function(t, n) {
- const r = Ee({
+}), rr = /* @__PURE__ */ x.forwardRef(function(t, n) {
+ const r = me({
props: t,
name: "MuiButtonBase"
}), {
@@ -9029,7 +9029,7 @@ const ny = fe("MuiButtonBase", ["root", "disabled", "focusVisible"]), ry = (e) =
focusRipple: v = !1,
focusVisibleClassName: m,
LinkComponent: g = "a",
- onBlur: f,
+ onBlur: p,
onClick: y,
onContextMenu: S,
onDragLeave: R,
@@ -9037,54 +9037,54 @@ const ny = fe("MuiButtonBase", ["root", "disabled", "focusVisible"]), ry = (e) =
onFocusVisible: b,
onKeyDown: E,
onKeyUp: w,
- onMouseDown: N,
- onMouseLeave: L,
- onMouseUp: z,
- onTouchEnd: q,
- onTouchMove: F,
- onTouchStart: p,
+ onMouseDown: k,
+ onMouseLeave: D,
+ onMouseUp: W,
+ onTouchEnd: Y,
+ onTouchMove: U,
+ onTouchStart: f,
tabIndex: I = 0,
TouchRippleProps: A,
- touchRippleRef: D,
- type: j,
- ...G
- } = r, Z = x.useRef(null), K = Gh(), O = We(K.ref, D), [P, B] = x.useState(!1);
- u && P && B(!1), x.useImperativeHandle(s, () => ({
+ touchRippleRef: L,
+ type: M,
+ ...K
+ } = r, Q = x.useRef(null), X = Xh(), O = We(X.ref, L), [P, q] = x.useState(!1);
+ u && P && q(!1), x.useImperativeHandle(s, () => ({
focusVisible: () => {
- B(!0), Z.current.focus();
+ q(!0), Q.current.focus();
}
}), []);
- const M = K.shouldMount && !d && !u;
+ const $ = X.shouldMount && !d && !u;
x.useEffect(() => {
- P && v && !d && K.pulsate();
- }, [d, v, P, K]);
- const W = vt(K, "start", N, h), H = vt(K, "stop", S, h), Y = vt(K, "stop", R, h), X = vt(K, "stop", z, h), U = vt(K, "stop", (se) => {
- P && se.preventDefault(), L && L(se);
- }, h), J = vt(K, "start", p, h), V = vt(K, "stop", q, h), Q = vt(K, "stop", F, h), _ = vt(K, "stop", (se) => {
- ya(se.target) || B(!1), f && f(se);
- }, !1), ae = zt((se) => {
- Z.current || (Z.current = se.currentTarget), ya(se.target) && (B(!0), b && b(se)), T && T(se);
+ P && v && !d && X.pulsate();
+ }, [d, v, P, X]);
+ const V = St(X, "start", k, h), B = St(X, "stop", S, h), G = St(X, "stop", R, h), z = St(X, "stop", W, h), F = St(X, "stop", (se) => {
+ P && se.preventDefault(), D && D(se);
+ }, h), J = St(X, "start", f, h), H = St(X, "stop", Y, h), ee = St(X, "stop", U, h), _ = St(X, "stop", (se) => {
+ ba(se.target) || q(!1), p && p(se);
+ }, !1), ae = Wt((se) => {
+ Q.current || (Q.current = se.currentTarget), ba(se.target) && (q(!0), b && b(se)), T && T(se);
}), ne = () => {
- const se = Z.current;
+ const se = Q.current;
return se ? se.tagName === "BUTTON" ? !1 : !(se.tagName === "A" && se.href) : c && c !== "button";
- }, me = zt((se) => {
- v && !se.repeat && P && se.key === " " && K.stop(se, () => {
- K.start(se);
+ }, he = Wt((se) => {
+ v && !se.repeat && P && se.key === " " && X.stop(se, () => {
+ X.start(se);
}), se.target === se.currentTarget && ne() && se.key === " " && se.preventDefault(), E && E(se), se.target === se.currentTarget && ne() && se.key === "Enter" && !u && (se.preventDefault(), y && y(se));
- }), je = zt((se) => {
- v && se.key === " " && P && !se.defaultPrevented && K.stop(se, () => {
- K.pulsate(se);
+ }), Le = Wt((se) => {
+ v && se.key === " " && P && !se.defaultPrevented && X.stop(se, () => {
+ X.pulsate(se);
}), w && w(se), y && se.target === se.currentTarget && ne() && se.key === " " && !se.defaultPrevented && !u && y(se);
});
let Ne = c;
- Ne === "button" && (G.href || G.to) && (Ne = g);
+ Ne === "button" && (K.href || K.to) && (Ne = g);
const ke = {};
if (Ne === "button") {
- const se = !!G.formAction;
- ke.type = j === void 0 && !se ? "button" : j, ke.disabled = u;
+ const se = !!K.formAction;
+ ke.type = M === void 0 && !se ? "button" : M, ke.disabled = u;
} else
- !G.href && !G.to && (ke.role = "button"), u && (ke["aria-disabled"] = u);
- const Ye = We(n, Z), ot = {
+ !K.href && !K.to && (ke.role = "button"), u && (ke["aria-disabled"] = u);
+ const Ke = We(n, Q), ot = {
...r,
centerRipple: i,
component: c,
@@ -9094,40 +9094,40 @@ const ny = fe("MuiButtonBase", ["root", "disabled", "focusVisible"]), ry = (e) =
focusRipple: v,
tabIndex: I,
focusVisible: P
- }, _e = ry(ot);
- return /* @__PURE__ */ k.jsxs(oy, {
+ }, _e = iy(ot);
+ return /* @__PURE__ */ N.jsxs(ay, {
as: Ne,
className: ie(_e.root, l),
ownerState: ot,
onBlur: _,
onClick: y,
- onContextMenu: H,
+ onContextMenu: B,
onFocus: ae,
- onKeyDown: me,
- onKeyUp: je,
- onMouseDown: W,
- onMouseLeave: U,
- onMouseUp: X,
- onDragLeave: Y,
- onTouchEnd: V,
- onTouchMove: Q,
+ onKeyDown: he,
+ onKeyUp: Le,
+ onMouseDown: V,
+ onMouseLeave: F,
+ onMouseUp: z,
+ onDragLeave: G,
+ onTouchEnd: H,
+ onTouchMove: ee,
onTouchStart: J,
- ref: Ye,
+ ref: Ke,
tabIndex: u ? -1 : I,
- type: j,
+ type: M,
...ke,
- ...G,
- children: [a, M ? /* @__PURE__ */ k.jsx(cc, {
+ ...K,
+ children: [a, $ ? /* @__PURE__ */ N.jsx(dc, {
ref: O,
center: i,
...A
}) : null]
});
});
-function vt(e, t, n, r = !1) {
- return zt((s) => (n && n(s), r || e[t](s), !0));
+function St(e, t, n, r = !1) {
+ return Wt((s) => (n && n(s), r || e[t](s), !0));
}
-process.env.NODE_ENV !== "production" && (po.propTypes = {
+process.env.NODE_ENV !== "production" && (rr.propTypes = {
// ┌────────────────────────────── Warning ──────────────────────────────┐
// │ These PropTypes are generated from the TypeScript type definitions. │
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -9136,7 +9136,7 @@ process.env.NODE_ENV !== "production" && (po.propTypes = {
* A ref for imperative actions.
* It currently only supports `focusVisible()` action.
*/
- action: wt,
+ action: bt,
/**
* If `true`, the ripples are centered.
* They won't start at the cursor interaction position.
@@ -9159,7 +9159,7 @@ process.env.NODE_ENV !== "production" && (po.propTypes = {
* The component used for the root node.
* Either a string to use a HTML element or a component.
*/
- component: zs,
+ component: qs,
/**
* If `true`, the component is disabled.
* @default false
@@ -9289,25 +9289,25 @@ process.env.NODE_ENV !== "production" && (po.propTypes = {
*/
type: o.oneOfType([o.oneOf(["button", "reset", "submit"]), o.string])
});
-function sy(e) {
+function ly(e) {
return typeof e.main == "string";
}
-function iy(e, t = []) {
- if (!sy(e))
+function cy(e, t = []) {
+ if (!ly(e))
return !1;
for (const n of t)
if (!e.hasOwnProperty(n) || typeof e[n] != "string")
return !1;
return !0;
}
-function Rt(e = []) {
- return ([, t]) => t && iy(t, e);
+function lt(e = []) {
+ return ([, t]) => t && cy(t, e);
}
-function ay(e) {
- return ce("MuiCircularProgress", e);
+function uy(e) {
+ return le("MuiCircularProgress", e);
}
-fe("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "track", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
-const it = 44, fs = Jn`
+ue("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "track", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
+const it = 44, ms = Jn`
0% {
transform: rotate(0deg);
}
@@ -9315,7 +9315,7 @@ const it = 44, fs = Jn`
100% {
transform: rotate(360deg);
}
-`, ps = Jn`
+`, hs = Jn`
0% {
stroke-dasharray: 1px, 200px;
stroke-dashoffset: 0;
@@ -9330,31 +9330,31 @@ const it = 44, fs = Jn`
stroke-dasharray: 1px, 200px;
stroke-dashoffset: -126px;
}
-`, ly = typeof fs != "string" ? Ns`
- animation: ${fs} 1.4s linear infinite;
- ` : null, cy = typeof ps != "string" ? Ns`
- animation: ${ps} 1.4s ease-in-out infinite;
- ` : null, uy = (e) => {
+`, dy = typeof ms != "string" ? Ms`
+ animation: ${ms} 1.4s linear infinite;
+ ` : null, py = typeof hs != "string" ? Ms`
+ animation: ${hs} 1.4s ease-in-out infinite;
+ ` : null, fy = (e) => {
const {
classes: t,
variant: n,
color: r,
disableShrink: s
} = e, i = {
- root: ["root", n, `color${oe(r)}`],
+ root: ["root", n, `color${re(r)}`],
svg: ["svg"],
track: ["track"],
- circle: ["circle", `circle${oe(n)}`, s && "circleDisableShrink"]
+ circle: ["circle", `circle${re(n)}`, s && "circleDisableShrink"]
};
- return pe(i, ay, t);
-}, dy = te("span", {
+ return de(i, uy, t);
+}, my = Z("span", {
name: "MuiCircularProgress",
slot: "Root",
overridesResolver: (e, t) => {
const {
ownerState: n
} = e;
- return [t.root, t[n.variant], t[`color${oe(n.color)}`]];
+ return [t.root, t[n.variant], t[`color${re(n.color)}`]];
}
})(Re(({
theme: e
@@ -9371,10 +9371,10 @@ const it = 44, fs = Jn`
props: {
variant: "indeterminate"
},
- style: ly || {
- animation: `${fs} 1.4s linear infinite`
+ style: dy || {
+ animation: `${ms} 1.4s linear infinite`
}
- }, ...Object.entries(e.palette).filter(Rt()).map(([t]) => ({
+ }, ...Object.entries(e.palette).filter(lt()).map(([t]) => ({
props: {
color: t
},
@@ -9382,20 +9382,20 @@ const it = 44, fs = Jn`
color: (e.vars || e).palette[t].main
}
}))]
-}))), fy = te("svg", {
+}))), hy = Z("svg", {
name: "MuiCircularProgress",
slot: "Svg"
})({
display: "block"
// Keeps the progress centered
-}), py = te("circle", {
+}), yy = Z("circle", {
name: "MuiCircularProgress",
slot: "Circle",
overridesResolver: (e, t) => {
const {
ownerState: n
} = e;
- return [t.circle, t[`circle${oe(n.variant)}`], n.disableShrink && t.circleDisableShrink];
+ return [t.circle, t[`circle${re(n.variant)}`], n.disableShrink && t.circleDisableShrink];
}
})(Re(({
theme: e
@@ -9422,12 +9422,12 @@ const it = 44, fs = Jn`
props: ({
ownerState: t
}) => t.variant === "indeterminate" && !t.disableShrink,
- style: cy || {
+ style: py || {
// At runtime for Pigment CSS, `bufferAnimation` will be null and the generated keyframe will be used.
- animation: `${ps} 1.4s ease-in-out infinite`
+ animation: `${hs} 1.4s ease-in-out infinite`
}
}]
-}))), my = te("circle", {
+}))), gy = Z("circle", {
name: "MuiCircularProgress",
slot: "Track"
})(Re(({
@@ -9435,8 +9435,8 @@ const it = 44, fs = Jn`
}) => ({
stroke: "currentColor",
opacity: (e.vars || e).palette.action.activatedOpacity
-}))), Ws = /* @__PURE__ */ x.forwardRef(function(t, n) {
- const r = Ee({
+}))), Gs = /* @__PURE__ */ x.forwardRef(function(t, n) {
+ const r = me({
props: t,
name: "MuiCircularProgress"
}), {
@@ -9459,13 +9459,13 @@ const it = 44, fs = Jn`
value: h,
variant: v,
enableTrackSlot: l
- }, f = uy(g), y = {}, S = {}, R = {};
+ }, p = fy(g), y = {}, S = {}, R = {};
if (v === "determinate") {
const T = 2 * Math.PI * ((it - d) / 2);
y.strokeDasharray = T.toFixed(3), R["aria-valuenow"] = Math.round(h), y.strokeDashoffset = `${((100 - h) / 100 * T).toFixed(3)}px`, S.transform = "rotate(-90deg)";
}
- return /* @__PURE__ */ k.jsx(dy, {
- className: ie(f.root, s),
+ return /* @__PURE__ */ N.jsx(my, {
+ className: ie(p.root, s),
style: {
width: c,
height: c,
@@ -9477,12 +9477,12 @@ const it = 44, fs = Jn`
role: "progressbar",
...R,
...m,
- children: /* @__PURE__ */ k.jsxs(fy, {
- className: f.svg,
+ children: /* @__PURE__ */ N.jsxs(hy, {
+ className: p.svg,
ownerState: g,
viewBox: `${it / 2} ${it / 2} ${it} ${it}`,
- children: [l ? /* @__PURE__ */ k.jsx(my, {
- className: f.track,
+ children: [l ? /* @__PURE__ */ N.jsx(gy, {
+ className: p.track,
ownerState: g,
cx: it,
cy: it,
@@ -9490,8 +9490,8 @@ const it = 44, fs = Jn`
fill: "none",
strokeWidth: d,
"aria-hidden": "true"
- }) : null, /* @__PURE__ */ k.jsx(py, {
- className: f.circle,
+ }) : null, /* @__PURE__ */ N.jsx(yy, {
+ className: p.circle,
style: y,
ownerState: g,
cx: it,
@@ -9503,7 +9503,7 @@ const it = 44, fs = Jn`
})
});
});
-process.env.NODE_ENV !== "production" && (Ws.propTypes = {
+process.env.NODE_ENV !== "production" && (Gs.propTypes = {
// ┌────────────────────────────── Warning ──────────────────────────────┐
// │ These PropTypes are generated from the TypeScript type definitions. │
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -9528,7 +9528,7 @@ process.env.NODE_ENV !== "production" && (Ws.propTypes = {
* This only works if variant is `indeterminate`.
* @default false
*/
- disableShrink: Kt(o.bool, (e) => e.disableShrink && e.variant && e.variant !== "indeterminate" ? new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect.") : null),
+ disableShrink: Xt(o.bool, (e) => e.disableShrink && e.variant && e.variant !== "indeterminate" ? new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect.") : null),
/**
* If `true`, a track circle slot is mounted to show a subtle background for the progress.
* The `size` and `thickness` apply to the track slot to be consistent with the progress circle.
@@ -9568,10 +9568,10 @@ process.env.NODE_ENV !== "production" && (Ws.propTypes = {
*/
variant: o.oneOf(["determinate", "indeterminate"])
});
-function hy(e) {
- return ce("MuiIconButton", e);
+function by(e) {
+ return le("MuiIconButton", e);
}
-const ga = fe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge", "loading", "loadingIndicator", "loadingWrapper"]), yy = (e) => {
+const va = ue("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge", "loading", "loadingIndicator", "loadingWrapper"]), vy = (e) => {
const {
classes: t,
disabled: n,
@@ -9580,19 +9580,19 @@ const ga = fe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
size: i,
loading: a
} = e, l = {
- root: ["root", a && "loading", n && "disabled", r !== "default" && `color${oe(r)}`, s && `edge${oe(s)}`, `size${oe(i)}`],
+ root: ["root", a && "loading", n && "disabled", r !== "default" && `color${re(r)}`, s && `edge${re(s)}`, `size${re(i)}`],
loadingIndicator: ["loadingIndicator"],
loadingWrapper: ["loadingWrapper"]
};
- return pe(l, hy, t);
-}, gy = te(po, {
+ return de(l, by, t);
+}, Ey = Z(rr, {
name: "MuiIconButton",
slot: "Root",
overridesResolver: (e, t) => {
const {
ownerState: n
} = e;
- return [t.root, n.loading && t.loading, n.color !== "default" && t[`color${oe(n.color)}`], n.edge && t[`edge${oe(n.edge)}`], t[`size${oe(n.size)}`]];
+ return [t.root, n.loading && t.loading, n.color !== "default" && t[`color${re(n.color)}`], n.edge && t[`edge${re(n.edge)}`], t[`size${re(n.size)}`]];
}
})(Re(({
theme: e
@@ -9659,14 +9659,14 @@ const ga = fe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
style: {
color: "inherit"
}
- }, ...Object.entries(e.palette).filter(Rt()).map(([t]) => ({
+ }, ...Object.entries(e.palette).filter(lt()).map(([t]) => ({
props: {
color: t
},
style: {
color: (e.vars || e).palette[t].main
}
- })), ...Object.entries(e.palette).filter(Rt()).map(([t]) => ({
+ })), ...Object.entries(e.palette).filter(lt()).map(([t]) => ({
props: {
color: t
},
@@ -9690,14 +9690,14 @@ const ga = fe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
fontSize: e.typography.pxToRem(28)
}
}],
- [`&.${ga.disabled}`]: {
+ [`&.${va.disabled}`]: {
backgroundColor: "transparent",
color: (e.vars || e).palette.action.disabled
},
- [`&.${ga.loading}`]: {
+ [`&.${va.loading}`]: {
color: "transparent"
}
-}))), by = te("span", {
+}))), Sy = Z("span", {
name: "MuiIconButton",
slot: "LoadingIndicator"
})(({
@@ -9718,8 +9718,8 @@ const ga = fe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
display: "flex"
}
}]
-})), uc = /* @__PURE__ */ x.forwardRef(function(t, n) {
- const r = Ee({
+})), pc = /* @__PURE__ */ x.forwardRef(function(t, n) {
+ const r = me({
props: t,
name: "MuiIconButton"
}), {
@@ -9734,8 +9734,8 @@ const ga = fe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
loading: v = null,
loadingIndicator: m,
...g
- } = r, f = tr(h), y = m ?? /* @__PURE__ */ k.jsx(Ws, {
- "aria-labelledby": f,
+ } = r, p = tr(h), y = m ?? /* @__PURE__ */ N.jsx(Gs, {
+ "aria-labelledby": p,
color: "inherit",
size: 16
}), S = {
@@ -9747,9 +9747,9 @@ const ga = fe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
loading: v,
loadingIndicator: y,
size: d
- }, R = yy(S);
- return /* @__PURE__ */ k.jsxs(gy, {
- id: v ? f : h,
+ }, R = vy(S);
+ return /* @__PURE__ */ N.jsxs(Ey, {
+ id: v ? p : h,
className: ie(R.root, a),
centerRipple: !0,
focusRipple: !u,
@@ -9758,12 +9758,12 @@ const ga = fe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
...g,
ownerState: S,
children: [typeof v == "boolean" && // use plain HTML span to minimize the runtime overhead
- /* @__PURE__ */ k.jsx("span", {
+ /* @__PURE__ */ N.jsx("span", {
className: R.loadingWrapper,
style: {
display: "contents"
},
- children: /* @__PURE__ */ k.jsx(by, {
+ children: /* @__PURE__ */ N.jsx(Sy, {
className: R.loadingIndicator,
ownerState: S,
children: v && y
@@ -9771,7 +9771,7 @@ const ga = fe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
}), i]
});
});
-process.env.NODE_ENV !== "production" && (uc.propTypes = {
+process.env.NODE_ENV !== "production" && (pc.propTypes = {
// ┌────────────────────────────── Warning ──────────────────────────────┐
// │ These PropTypes are generated from the TypeScript type definitions. │
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -9779,7 +9779,7 @@ process.env.NODE_ENV !== "production" && (uc.propTypes = {
/**
* The icon to display.
*/
- children: Kt(o.node, (e) => x.Children.toArray(e.children).some((n) => /* @__PURE__ */ x.isValidElement(n) && n.props.onClick) ? new Error(["MUI: You are providing an onClick event listener to a child of a button element.", "Prefer applying it to the IconButton directly.", "This guarantees that the whole