Import Serverfunktionen angelegt
This commit is contained in:
+769
@@ -0,0 +1,769 @@
|
||||
import { r as __toESM } from "./rolldown-runtime-DC62tzP2.js";
|
||||
import { t as require_react } from "./react.js";
|
||||
import { t as require_jsx_runtime } from "./react_jsx-runtime.js";
|
||||
import { t as require_prop_types } from "./prop-types-C5owi9-6.js";
|
||||
import { F as generateUtilityClasses, I as generateUtilityClass, l as duration, ut as clsx } from "./identifier-Db3dwgA7.js";
|
||||
import { l as composeClasses, t as styled } from "./styled-ry4r-NKP.js";
|
||||
import { t as capitalize_default } from "./capitalize-DESO4t23.js";
|
||||
import { i as useReducedMotion, n as useForkRef_default } from "./useLazyRef-BFAG-x_s.js";
|
||||
import { t as useDefaultProps } from "./DefaultPropsProvider-C8vOQ3_j.js";
|
||||
import { t as memoTheme } from "./memoTheme-Ciuals54.js";
|
||||
import { n as useTheme } from "./chainPropTypes-DS_z862G.js";
|
||||
import { t as createSvgIcon } from "./createSvgIcon-Cf0_3N9N.js";
|
||||
import { o as normalizedTransitionCallback, r as getTransitionProps } from "./utils-BCVtNTPx.js";
|
||||
import { t as useSlot } from "./useSlot-DwQopxnD.js";
|
||||
import { t as elementTypeAcceptingRef_default } from "./elementTypeAcceptingRef-soVrg9KC.js";
|
||||
import { r as Close_default } from "./Checkbox-ygBLxZxd.js";
|
||||
import { t as Transition } from "./Transition-CTO78YMk.js";
|
||||
import { t as Paper } from "./Paper-BN2CUK32.js";
|
||||
import { t as createSimplePaletteValueFilter } from "./createSimplePaletteValueFilter-BhADkSm9.js";
|
||||
import { t as IconButton } from "./IconButton-DrMmxSzf.js";
|
||||
//#region node_modules/@mui/material/Collapse/collapseClasses.mjs
|
||||
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
||||
var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types(), 1);
|
||||
function getCollapseUtilityClass(slot) {
|
||||
return generateUtilityClass("MuiCollapse", slot);
|
||||
}
|
||||
var collapseClasses = generateUtilityClasses("MuiCollapse", [
|
||||
"root",
|
||||
"horizontal",
|
||||
"vertical",
|
||||
"entered",
|
||||
"hidden",
|
||||
"wrapper",
|
||||
"wrapperInner"
|
||||
]);
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/Collapse/Collapse.mjs
|
||||
var import_jsx_runtime = require_jsx_runtime();
|
||||
var EMPTY_OBJECT = {};
|
||||
var useUtilityClasses$1 = (ownerState) => {
|
||||
const { orientation, classes } = ownerState;
|
||||
return composeClasses({
|
||||
root: ["root", orientation],
|
||||
entered: ["entered"],
|
||||
hidden: ["hidden"],
|
||||
wrapper: ["wrapper", orientation],
|
||||
wrapperInner: ["wrapperInner", orientation]
|
||||
}, getCollapseUtilityClass, classes);
|
||||
};
|
||||
var CollapseRoot = styled("div", {
|
||||
name: "MuiCollapse",
|
||||
slot: "Root",
|
||||
overridesResolver: (props, styles) => {
|
||||
const { ownerState } = props;
|
||||
return [
|
||||
styles.root,
|
||||
styles[ownerState.orientation],
|
||||
ownerState.state === "entered" && styles.entered,
|
||||
ownerState.state === "exited" && !ownerState.in && ownerState.collapsedSize === "0px" && styles.hidden
|
||||
];
|
||||
}
|
||||
})(memoTheme(({ theme }) => ({
|
||||
height: 0,
|
||||
overflow: "hidden",
|
||||
transition: theme.transitions.create("height"),
|
||||
variants: [
|
||||
{
|
||||
props: { orientation: "horizontal" },
|
||||
style: {
|
||||
height: "auto",
|
||||
width: 0,
|
||||
transition: theme.transitions.create("width")
|
||||
}
|
||||
},
|
||||
{
|
||||
props: { state: "entered" },
|
||||
style: {
|
||||
height: "auto",
|
||||
overflow: "visible"
|
||||
}
|
||||
},
|
||||
{
|
||||
props: {
|
||||
state: "entered",
|
||||
orientation: "horizontal"
|
||||
},
|
||||
style: { width: "auto" }
|
||||
},
|
||||
{
|
||||
props: ({ ownerState }) => ownerState.state === "exited" && !ownerState.in && ownerState.collapsedSize === "0px",
|
||||
style: { visibility: "hidden" }
|
||||
}
|
||||
]
|
||||
})));
|
||||
var CollapseWrapper = styled("div", {
|
||||
name: "MuiCollapse",
|
||||
slot: "Wrapper"
|
||||
})({
|
||||
display: "flex",
|
||||
width: "100%",
|
||||
variants: [{
|
||||
props: { orientation: "horizontal" },
|
||||
style: {
|
||||
width: "auto",
|
||||
height: "100%"
|
||||
}
|
||||
}]
|
||||
});
|
||||
var CollapseWrapperInner = styled("div", {
|
||||
name: "MuiCollapse",
|
||||
slot: "WrapperInner"
|
||||
})({
|
||||
width: "100%",
|
||||
variants: [{
|
||||
props: { orientation: "horizontal" },
|
||||
style: {
|
||||
width: "auto",
|
||||
height: "100%"
|
||||
}
|
||||
}]
|
||||
});
|
||||
/**
|
||||
* The Collapse transition is used by the
|
||||
* [Vertical Stepper](/material-ui/react-stepper/#vertical-stepper) StepContent component.
|
||||
*/
|
||||
var Collapse = /*#__PURE__*/ import_react.forwardRef(function Collapse(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: "MuiCollapse"
|
||||
});
|
||||
const { addEndListener, children, className, collapsedSize: collapsedSizeProp = "0px", component, disablePrefersReducedMotion = false, easing, in: inProp, onEnter, onEntered, onEntering, onExit, onExited, onExiting, orientation = "vertical", slots = EMPTY_OBJECT, slotProps = EMPTY_OBJECT, style, timeout = duration.standard, TransitionComponent = Transition, ...other } = props;
|
||||
const ownerState = {
|
||||
...props,
|
||||
orientation,
|
||||
collapsedSize: collapsedSizeProp
|
||||
};
|
||||
const classes = useUtilityClasses$1(ownerState);
|
||||
const theme = useTheme();
|
||||
const wrapperRef = import_react.useRef(null);
|
||||
const autoTransitionDuration = import_react.useRef(null);
|
||||
const collapsedSize = typeof collapsedSizeProp === "number" ? `${collapsedSizeProp}px` : collapsedSizeProp;
|
||||
const isHorizontal = orientation === "horizontal";
|
||||
const size = isHorizontal ? "width" : "height";
|
||||
const reducedMotion = useReducedMotion(theme.motion.reducedMotion, disablePrefersReducedMotion);
|
||||
const nodeRef = import_react.useRef(null);
|
||||
const handleRef = useForkRef_default(ref, nodeRef);
|
||||
const getWrapperSize = () => wrapperRef.current ? wrapperRef.current[isHorizontal ? "clientWidth" : "clientHeight"] : 0;
|
||||
const handleEnter = normalizedTransitionCallback(nodeRef, (node, isAppearing) => {
|
||||
if (wrapperRef.current && isHorizontal) wrapperRef.current.style.position = "absolute";
|
||||
node.style[size] = collapsedSize;
|
||||
if (onEnter) onEnter(node, isAppearing);
|
||||
});
|
||||
const handleEntering = normalizedTransitionCallback(nodeRef, (node, isAppearing) => {
|
||||
const wrapperSize = getWrapperSize();
|
||||
if (wrapperRef.current && isHorizontal) wrapperRef.current.style.position = "";
|
||||
const { duration: transitionDuration, easing: transitionTimingFunction } = getTransitionProps({
|
||||
style,
|
||||
timeout,
|
||||
easing
|
||||
}, { mode: "enter" });
|
||||
if (timeout === "auto" && !reducedMotion.shouldReduceMotion) {
|
||||
const duration2 = theme.transitions.getAutoHeightDuration(wrapperSize);
|
||||
autoTransitionDuration.current = duration2;
|
||||
} else autoTransitionDuration.current = null;
|
||||
const transitionTiming = reducedMotion.getTransitionTiming({
|
||||
duration: autoTransitionDuration.current ?? transitionDuration,
|
||||
delay: void 0
|
||||
});
|
||||
node.style.transitionDuration = typeof transitionTiming.duration === "string" ? transitionTiming.duration : `${transitionTiming.duration}ms`;
|
||||
node.style[size] = `${wrapperSize}px`;
|
||||
node.style.transitionTimingFunction = transitionTimingFunction;
|
||||
if (onEntering) onEntering(node, isAppearing);
|
||||
});
|
||||
const handleEntered = normalizedTransitionCallback(nodeRef, (node, isAppearing) => {
|
||||
node.style[size] = "auto";
|
||||
if (onEntered) onEntered(node, isAppearing);
|
||||
});
|
||||
const handleExit = normalizedTransitionCallback(nodeRef, (node) => {
|
||||
node.style[size] = `${getWrapperSize()}px`;
|
||||
if (onExit) onExit(node);
|
||||
});
|
||||
const handleExited = normalizedTransitionCallback(nodeRef, onExited);
|
||||
const handleExiting = normalizedTransitionCallback(nodeRef, (node) => {
|
||||
const wrapperSize = getWrapperSize();
|
||||
const { duration: transitionDuration, easing: transitionTimingFunction } = getTransitionProps({
|
||||
style,
|
||||
timeout,
|
||||
easing
|
||||
}, { mode: "exit" });
|
||||
if (timeout === "auto" && !reducedMotion.shouldReduceMotion) {
|
||||
const duration2 = theme.transitions.getAutoHeightDuration(wrapperSize);
|
||||
autoTransitionDuration.current = duration2;
|
||||
} else autoTransitionDuration.current = null;
|
||||
const transitionTiming = reducedMotion.getTransitionTiming({
|
||||
duration: autoTransitionDuration.current ?? transitionDuration,
|
||||
delay: void 0
|
||||
});
|
||||
node.style.transitionDuration = typeof transitionTiming.duration === "string" ? transitionTiming.duration : `${transitionTiming.duration}ms`;
|
||||
node.style[size] = collapsedSize;
|
||||
node.style.transitionTimingFunction = transitionTimingFunction;
|
||||
if (onExiting) onExiting(node);
|
||||
});
|
||||
const handleAddEndListener = addEndListener ? (next) => {
|
||||
addEndListener(nodeRef.current, next);
|
||||
} : void 0;
|
||||
const externalForwardedProps = {
|
||||
slots,
|
||||
slotProps,
|
||||
component
|
||||
};
|
||||
const [RootSlot, rootSlotProps] = useSlot("root", {
|
||||
ref: handleRef,
|
||||
className: clsx(classes.root, className),
|
||||
elementType: CollapseRoot,
|
||||
externalForwardedProps,
|
||||
ownerState,
|
||||
additionalProps: { style: {
|
||||
[isHorizontal ? "minWidth" : "minHeight"]: collapsedSize,
|
||||
...style
|
||||
} }
|
||||
});
|
||||
const [WrapperSlot, wrapperSlotProps] = useSlot("wrapper", {
|
||||
ref: wrapperRef,
|
||||
className: classes.wrapper,
|
||||
elementType: CollapseWrapper,
|
||||
externalForwardedProps,
|
||||
ownerState
|
||||
});
|
||||
const [WrapperInnerSlot, wrapperInnerSlotProps] = useSlot("wrapperInner", {
|
||||
className: classes.wrapperInner,
|
||||
elementType: CollapseWrapperInner,
|
||||
externalForwardedProps,
|
||||
ownerState
|
||||
});
|
||||
return /*#__PURE__*/ (0, import_jsx_runtime.jsx)(TransitionComponent, {
|
||||
in: inProp,
|
||||
onEnter: handleEnter,
|
||||
onEntered: handleEntered,
|
||||
onEntering: handleEntering,
|
||||
onExit: handleExit,
|
||||
onExited: handleExited,
|
||||
onExiting: handleExiting,
|
||||
addEndListener: handleAddEndListener,
|
||||
getAutoTimeout: timeout === "auto" ? () => autoTransitionDuration.current : void 0,
|
||||
reduceMotion: reducedMotion.shouldReduceMotion,
|
||||
nodeRef,
|
||||
timeout: timeout === "auto" ? null : timeout,
|
||||
...other,
|
||||
children: (state, { ownerState: incomingOwnerState, ...restChildProps }) => {
|
||||
const stateOwnerState = {
|
||||
...ownerState,
|
||||
state
|
||||
};
|
||||
return /*#__PURE__*/ (0, import_jsx_runtime.jsx)(RootSlot, {
|
||||
...rootSlotProps,
|
||||
className: clsx(rootSlotProps.className, {
|
||||
"entered": classes.entered,
|
||||
"exited": !inProp && collapsedSize === "0px" && classes.hidden
|
||||
}[state]),
|
||||
ownerState: stateOwnerState,
|
||||
...restChildProps,
|
||||
children: /*#__PURE__*/ (0, import_jsx_runtime.jsx)(WrapperSlot, {
|
||||
...wrapperSlotProps,
|
||||
ownerState: stateOwnerState,
|
||||
children: /*#__PURE__*/ (0, import_jsx_runtime.jsx)(WrapperInnerSlot, {
|
||||
...wrapperInnerSlotProps,
|
||||
ownerState: stateOwnerState,
|
||||
children
|
||||
})
|
||||
})
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
Collapse.propTypes = {
|
||||
/**
|
||||
* Add a custom transition end trigger.
|
||||
* Use it when you need custom logic to decide when the transition has ended.
|
||||
* Note: Timeouts are still used as a fallback if provided.
|
||||
*
|
||||
* @param {HTMLElement} node The transitioning DOM node.
|
||||
* @param {Function} done Call this when the transition has finished.
|
||||
*/
|
||||
addEndListener: import_prop_types.default.func,
|
||||
/**
|
||||
* The content node to be collapsed.
|
||||
*/
|
||||
children: import_prop_types.default.node,
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: import_prop_types.default.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: import_prop_types.default.string,
|
||||
/**
|
||||
* The width (horizontal) or height (vertical) of the container when collapsed.
|
||||
* @default '0px'
|
||||
*/
|
||||
collapsedSize: import_prop_types.default.oneOfType([import_prop_types.default.number, import_prop_types.default.string]),
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a HTML element or a component.
|
||||
*/
|
||||
component: elementTypeAcceptingRef_default,
|
||||
/**
|
||||
* If `true`, the transition ignores `theme.motion.reducedMotion` and keeps its normal timing.
|
||||
* @default false
|
||||
*/
|
||||
disablePrefersReducedMotion: import_prop_types.default.bool,
|
||||
/**
|
||||
* The transition timing function.
|
||||
* You may specify a single easing or a object containing enter and exit values.
|
||||
*/
|
||||
easing: import_prop_types.default.oneOfType([import_prop_types.default.shape({
|
||||
enter: import_prop_types.default.string,
|
||||
exit: import_prop_types.default.string
|
||||
}), import_prop_types.default.string]),
|
||||
/**
|
||||
* If `true`, the component will transition in.
|
||||
*/
|
||||
in: import_prop_types.default.bool,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onEnter: import_prop_types.default.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onEntered: import_prop_types.default.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onEntering: import_prop_types.default.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onExit: import_prop_types.default.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onExited: import_prop_types.default.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onExiting: import_prop_types.default.func,
|
||||
/**
|
||||
* The transition orientation.
|
||||
* @default 'vertical'
|
||||
*/
|
||||
orientation: import_prop_types.default.oneOf(["horizontal", "vertical"]),
|
||||
/**
|
||||
* The props used for each slot inside.
|
||||
* @default {}
|
||||
*/
|
||||
slotProps: import_prop_types.default.shape({
|
||||
root: import_prop_types.default.oneOfType([import_prop_types.default.func, import_prop_types.default.object]),
|
||||
wrapper: import_prop_types.default.oneOfType([import_prop_types.default.func, import_prop_types.default.object]),
|
||||
wrapperInner: import_prop_types.default.oneOfType([import_prop_types.default.func, import_prop_types.default.object])
|
||||
}),
|
||||
/**
|
||||
* The components used for each slot inside.
|
||||
* @default {}
|
||||
*/
|
||||
slots: import_prop_types.default.shape({
|
||||
root: import_prop_types.default.elementType,
|
||||
wrapper: import_prop_types.default.elementType,
|
||||
wrapperInner: import_prop_types.default.elementType
|
||||
}),
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
style: import_prop_types.default.object,
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx: import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.arrayOf(import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object,
|
||||
import_prop_types.default.bool
|
||||
])),
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object
|
||||
]),
|
||||
/**
|
||||
* The duration for the transition, in milliseconds.
|
||||
* You may specify a single timeout for all transitions, or individually with an object.
|
||||
*
|
||||
* Set to 'auto' to automatically calculate transition time based on height.
|
||||
* @default duration.standard
|
||||
*/
|
||||
timeout: import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.oneOf(["auto"]),
|
||||
import_prop_types.default.number,
|
||||
import_prop_types.default.shape({
|
||||
appear: import_prop_types.default.number,
|
||||
enter: import_prop_types.default.number,
|
||||
exit: import_prop_types.default.number
|
||||
})
|
||||
])
|
||||
};
|
||||
if (Collapse) Collapse.muiSupportAuto = true;
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/Alert/alertClasses.mjs
|
||||
function getAlertUtilityClass(slot) {
|
||||
return generateUtilityClass("MuiAlert", slot);
|
||||
}
|
||||
var alertClasses = generateUtilityClasses("MuiAlert", [
|
||||
"root",
|
||||
"action",
|
||||
"icon",
|
||||
"message",
|
||||
"filled",
|
||||
"colorSuccess",
|
||||
"colorInfo",
|
||||
"colorWarning",
|
||||
"colorError",
|
||||
"outlined",
|
||||
"standard"
|
||||
]);
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/internal/svg-icons/SuccessOutlined.mjs
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
var SuccessOutlined_default = createSvgIcon(/*#__PURE__*/ (0, import_jsx_runtime.jsx)("path", { d: "M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z" }), "SuccessOutlined");
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/internal/svg-icons/ReportProblemOutlined.mjs
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
var ReportProblemOutlined_default = createSvgIcon(/*#__PURE__*/ (0, import_jsx_runtime.jsx)("path", { d: "M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z" }), "ReportProblemOutlined");
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/internal/svg-icons/ErrorOutline.mjs
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
var ErrorOutline_default = createSvgIcon(/*#__PURE__*/ (0, import_jsx_runtime.jsx)("path", { d: "M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" }), "ErrorOutline");
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/internal/svg-icons/InfoOutlined.mjs
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
var InfoOutlined_default = createSvgIcon(/*#__PURE__*/ (0, import_jsx_runtime.jsx)("path", { d: "M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z" }), "InfoOutlined");
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/Alert/Alert.mjs
|
||||
var useUtilityClasses = (ownerState) => {
|
||||
const { variant, color, severity, classes } = ownerState;
|
||||
const slots = {
|
||||
root: [
|
||||
"root",
|
||||
`color${capitalize_default(color || severity)}`,
|
||||
`${variant}`
|
||||
],
|
||||
icon: ["icon"],
|
||||
message: ["message"],
|
||||
action: ["action"]
|
||||
};
|
||||
return composeClasses(slots, getAlertUtilityClass, classes);
|
||||
};
|
||||
var AlertRoot = styled(Paper, {
|
||||
name: "MuiAlert",
|
||||
slot: "Root",
|
||||
overridesResolver: (props, styles) => {
|
||||
const { ownerState } = props;
|
||||
return [styles.root, styles[ownerState.variant]];
|
||||
}
|
||||
})(memoTheme(({ theme }) => {
|
||||
const getColor = theme.palette.mode === "light" ? theme.darken : theme.lighten;
|
||||
const getBackgroundColor = theme.palette.mode === "light" ? theme.lighten : theme.darken;
|
||||
return {
|
||||
...theme.typography.body2,
|
||||
backgroundColor: "transparent",
|
||||
display: "flex",
|
||||
padding: "6px 16px",
|
||||
variants: [
|
||||
...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(["light"])).map(([color]) => ({
|
||||
props: {
|
||||
colorSeverity: color,
|
||||
variant: "standard"
|
||||
},
|
||||
style: {
|
||||
color: theme.vars ? theme.vars.palette.Alert[`${color}Color`] : getColor(theme.palette[color].light, .6),
|
||||
backgroundColor: theme.vars ? theme.vars.palette.Alert[`${color}StandardBg`] : getBackgroundColor(theme.palette[color].light, .9),
|
||||
[`& .${alertClasses.icon}`]: theme.vars ? { color: theme.vars.palette.Alert[`${color}IconColor`] } : { color: theme.palette[color].main }
|
||||
}
|
||||
})),
|
||||
...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(["light"])).map(([color]) => ({
|
||||
props: {
|
||||
colorSeverity: color,
|
||||
variant: "outlined"
|
||||
},
|
||||
style: {
|
||||
color: theme.vars ? theme.vars.palette.Alert[`${color}Color`] : getColor(theme.palette[color].light, .6),
|
||||
border: `1px solid ${(theme.vars || theme).palette[color].light}`,
|
||||
[`& .${alertClasses.icon}`]: theme.vars ? { color: theme.vars.palette.Alert[`${color}IconColor`] } : { color: theme.palette[color].main }
|
||||
}
|
||||
})),
|
||||
...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(["dark"])).map(([color]) => ({
|
||||
props: {
|
||||
colorSeverity: color,
|
||||
variant: "filled"
|
||||
},
|
||||
style: {
|
||||
fontWeight: theme.typography.fontWeightMedium,
|
||||
...theme.vars ? {
|
||||
color: theme.vars.palette.Alert[`${color}FilledColor`],
|
||||
backgroundColor: theme.vars.palette.Alert[`${color}FilledBg`]
|
||||
} : {
|
||||
backgroundColor: theme.palette.mode === "dark" ? theme.palette[color].dark : theme.palette[color].main,
|
||||
color: theme.palette.getContrastText(theme.palette[color].main)
|
||||
}
|
||||
}
|
||||
}))
|
||||
]
|
||||
};
|
||||
}));
|
||||
var AlertIcon = styled("div", {
|
||||
name: "MuiAlert",
|
||||
slot: "Icon"
|
||||
})({
|
||||
marginRight: 12,
|
||||
padding: "7px 0",
|
||||
display: "flex",
|
||||
fontSize: 22,
|
||||
opacity: .9
|
||||
});
|
||||
var AlertMessage = styled("div", {
|
||||
name: "MuiAlert",
|
||||
slot: "Message"
|
||||
})({
|
||||
padding: "8px 0",
|
||||
minWidth: 0,
|
||||
overflow: "auto"
|
||||
});
|
||||
var AlertAction = styled("div", {
|
||||
name: "MuiAlert",
|
||||
slot: "Action"
|
||||
})({
|
||||
display: "flex",
|
||||
alignItems: "flex-start",
|
||||
padding: "4px 0 0 16px",
|
||||
marginLeft: "auto",
|
||||
marginRight: -8
|
||||
});
|
||||
var defaultIconMapping = {
|
||||
success: /*#__PURE__*/ (0, import_jsx_runtime.jsx)(SuccessOutlined_default, { fontSize: "inherit" }),
|
||||
warning: /*#__PURE__*/ (0, import_jsx_runtime.jsx)(ReportProblemOutlined_default, { fontSize: "inherit" }),
|
||||
error: /*#__PURE__*/ (0, import_jsx_runtime.jsx)(ErrorOutline_default, { fontSize: "inherit" }),
|
||||
info: /*#__PURE__*/ (0, import_jsx_runtime.jsx)(InfoOutlined_default, { fontSize: "inherit" })
|
||||
};
|
||||
var Alert = /*#__PURE__*/ import_react.forwardRef(function Alert(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: "MuiAlert"
|
||||
});
|
||||
const { action, children, className, closeText = "Close", color, icon, iconMapping = defaultIconMapping, onClose, role = "alert", severity = "success", slotProps = {}, slots = {}, variant = "standard", ...other } = props;
|
||||
const ownerState = {
|
||||
...props,
|
||||
color,
|
||||
severity,
|
||||
variant,
|
||||
colorSeverity: color || severity
|
||||
};
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
const externalForwardedProps = {
|
||||
slots,
|
||||
slotProps
|
||||
};
|
||||
const [RootSlot, rootSlotProps] = useSlot("root", {
|
||||
ref,
|
||||
shouldForwardComponentProp: true,
|
||||
className: clsx(classes.root, className),
|
||||
elementType: AlertRoot,
|
||||
externalForwardedProps: {
|
||||
...externalForwardedProps,
|
||||
...other
|
||||
},
|
||||
ownerState,
|
||||
additionalProps: {
|
||||
role,
|
||||
elevation: 0
|
||||
}
|
||||
});
|
||||
const [IconSlot, iconSlotProps] = useSlot("icon", {
|
||||
className: classes.icon,
|
||||
elementType: AlertIcon,
|
||||
externalForwardedProps,
|
||||
ownerState
|
||||
});
|
||||
const [MessageSlot, messageSlotProps] = useSlot("message", {
|
||||
className: classes.message,
|
||||
elementType: AlertMessage,
|
||||
externalForwardedProps,
|
||||
ownerState
|
||||
});
|
||||
const [ActionSlot, actionSlotProps] = useSlot("action", {
|
||||
className: classes.action,
|
||||
elementType: AlertAction,
|
||||
externalForwardedProps,
|
||||
ownerState
|
||||
});
|
||||
const [CloseButtonSlot, closeButtonProps] = useSlot("closeButton", {
|
||||
elementType: IconButton,
|
||||
externalForwardedProps,
|
||||
ownerState
|
||||
});
|
||||
const [CloseIconSlot, closeIconProps] = useSlot("closeIcon", {
|
||||
elementType: Close_default,
|
||||
externalForwardedProps,
|
||||
ownerState
|
||||
});
|
||||
return /*#__PURE__*/ (0, import_jsx_runtime.jsxs)(RootSlot, {
|
||||
...rootSlotProps,
|
||||
children: [
|
||||
icon !== false ? /*#__PURE__*/ (0, import_jsx_runtime.jsx)(IconSlot, {
|
||||
...iconSlotProps,
|
||||
children: icon || iconMapping[severity] || defaultIconMapping[severity]
|
||||
}) : null,
|
||||
/*#__PURE__*/ (0, import_jsx_runtime.jsx)(MessageSlot, {
|
||||
...messageSlotProps,
|
||||
children
|
||||
}),
|
||||
action != null ? /*#__PURE__*/ (0, import_jsx_runtime.jsx)(ActionSlot, {
|
||||
...actionSlotProps,
|
||||
children: action
|
||||
}) : null,
|
||||
action == null && onClose ? /*#__PURE__*/ (0, import_jsx_runtime.jsx)(ActionSlot, {
|
||||
...actionSlotProps,
|
||||
children: /*#__PURE__*/ (0, import_jsx_runtime.jsx)(CloseButtonSlot, {
|
||||
size: "small",
|
||||
"aria-label": closeText,
|
||||
title: closeText,
|
||||
color: "inherit",
|
||||
onClick: onClose,
|
||||
...closeButtonProps,
|
||||
children: /*#__PURE__*/ (0, import_jsx_runtime.jsx)(CloseIconSlot, {
|
||||
fontSize: "small",
|
||||
...closeIconProps
|
||||
})
|
||||
})
|
||||
}) : null
|
||||
]
|
||||
});
|
||||
});
|
||||
Alert.propTypes = {
|
||||
/**
|
||||
* The action to display. It renders after the message, at the end of the alert.
|
||||
*/
|
||||
action: import_prop_types.default.node,
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children: import_prop_types.default.node,
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: import_prop_types.default.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: import_prop_types.default.string,
|
||||
/**
|
||||
* Override the default label for the *close popup* icon button.
|
||||
*
|
||||
* For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).
|
||||
* @default 'Close'
|
||||
*/
|
||||
closeText: import_prop_types.default.string,
|
||||
/**
|
||||
* The color of the component. Unless provided, the value is taken from the `severity` prop.
|
||||
* It supports both default and custom theme colors, which can be added as shown in the
|
||||
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
||||
*/
|
||||
color: import_prop_types.default.oneOfType([import_prop_types.default.oneOf([
|
||||
"error",
|
||||
"info",
|
||||
"success",
|
||||
"warning"
|
||||
]), import_prop_types.default.string]),
|
||||
/**
|
||||
* Override the icon displayed before the children.
|
||||
* Unless provided, the icon is mapped to the value of the `severity` prop.
|
||||
* Set to `false` to remove the `icon`.
|
||||
*/
|
||||
icon: import_prop_types.default.node,
|
||||
/**
|
||||
* The component maps the `severity` prop to a range of different icons,
|
||||
* for instance success to `<SuccessOutlined>`.
|
||||
* If you wish to change this mapping, you can provide your own.
|
||||
* Alternatively, you can use the `icon` prop to override the icon displayed.
|
||||
*/
|
||||
iconMapping: import_prop_types.default.shape({
|
||||
error: import_prop_types.default.node,
|
||||
info: import_prop_types.default.node,
|
||||
success: import_prop_types.default.node,
|
||||
warning: import_prop_types.default.node
|
||||
}),
|
||||
/**
|
||||
* Callback fired when the component requests to be closed.
|
||||
* When provided and no `action` prop is set, a close icon button is displayed that triggers the callback when clicked.
|
||||
* @param {React.SyntheticEvent} event The event source of the callback.
|
||||
*/
|
||||
onClose: import_prop_types.default.func,
|
||||
/**
|
||||
* The ARIA role attribute of the element.
|
||||
* @default 'alert'
|
||||
*/
|
||||
role: import_prop_types.default.string,
|
||||
/**
|
||||
* The severity of the alert. This defines the color and icon used.
|
||||
* @default 'success'
|
||||
*/
|
||||
severity: import_prop_types.default.oneOfType([import_prop_types.default.oneOf([
|
||||
"error",
|
||||
"info",
|
||||
"success",
|
||||
"warning"
|
||||
]), import_prop_types.default.string]),
|
||||
/**
|
||||
* The props used for each slot inside.
|
||||
* @default {}
|
||||
*/
|
||||
slotProps: import_prop_types.default.shape({
|
||||
action: import_prop_types.default.oneOfType([import_prop_types.default.func, import_prop_types.default.object]),
|
||||
closeButton: import_prop_types.default.oneOfType([import_prop_types.default.func, import_prop_types.default.object]),
|
||||
closeIcon: import_prop_types.default.oneOfType([import_prop_types.default.func, import_prop_types.default.object]),
|
||||
icon: import_prop_types.default.oneOfType([import_prop_types.default.func, import_prop_types.default.object]),
|
||||
message: import_prop_types.default.oneOfType([import_prop_types.default.func, import_prop_types.default.object]),
|
||||
root: import_prop_types.default.oneOfType([import_prop_types.default.func, import_prop_types.default.object])
|
||||
}),
|
||||
/**
|
||||
* The components used for each slot inside.
|
||||
* @default {}
|
||||
*/
|
||||
slots: import_prop_types.default.shape({
|
||||
action: import_prop_types.default.elementType,
|
||||
closeButton: import_prop_types.default.elementType,
|
||||
closeIcon: import_prop_types.default.elementType,
|
||||
icon: import_prop_types.default.elementType,
|
||||
message: import_prop_types.default.elementType,
|
||||
root: import_prop_types.default.elementType
|
||||
}),
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx: import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.arrayOf(import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object,
|
||||
import_prop_types.default.bool
|
||||
])),
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object
|
||||
]),
|
||||
/**
|
||||
* The variant to use.
|
||||
* @default 'standard'
|
||||
*/
|
||||
variant: import_prop_types.default.oneOfType([import_prop_types.default.oneOf([
|
||||
"filled",
|
||||
"outlined",
|
||||
"standard"
|
||||
]), import_prop_types.default.string])
|
||||
};
|
||||
//#endregion
|
||||
export { collapseClasses as a, Collapse as i, alertClasses as n, getCollapseUtilityClass as o, getAlertUtilityClass as r, Alert as t };
|
||||
+1
File diff suppressed because one or more lines are too long
+256
@@ -0,0 +1,256 @@
|
||||
import { r as __toESM } from "./rolldown-runtime-DC62tzP2.js";
|
||||
import { t as require_react } from "./react.js";
|
||||
import { t as require_jsx_runtime } from "./react_jsx-runtime.js";
|
||||
import { t as require_prop_types } from "./prop-types-C5owi9-6.js";
|
||||
import { F as generateUtilityClasses, I as generateUtilityClass, ut as clsx } from "./identifier-Db3dwgA7.js";
|
||||
import { l as composeClasses, t as styled } from "./styled-ry4r-NKP.js";
|
||||
import { t as capitalize_default } from "./capitalize-DESO4t23.js";
|
||||
import { t as useDefaultProps } from "./DefaultPropsProvider-C8vOQ3_j.js";
|
||||
import { t as memoTheme } from "./memoTheme-Ciuals54.js";
|
||||
import { t as Paper } from "./Paper-BN2CUK32.js";
|
||||
import { t as createSimplePaletteValueFilter } from "./createSimplePaletteValueFilter-BhADkSm9.js";
|
||||
//#region node_modules/@mui/material/AppBar/appBarClasses.mjs
|
||||
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
||||
var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types(), 1);
|
||||
function getAppBarUtilityClass(slot) {
|
||||
return generateUtilityClass("MuiAppBar", slot);
|
||||
}
|
||||
var appBarClasses = generateUtilityClasses("MuiAppBar", [
|
||||
"root",
|
||||
"positionFixed",
|
||||
"positionAbsolute",
|
||||
"positionSticky",
|
||||
"positionStatic",
|
||||
"positionRelative",
|
||||
"colorDefault",
|
||||
"colorPrimary",
|
||||
"colorSecondary",
|
||||
"colorInherit",
|
||||
"colorTransparent",
|
||||
"colorError",
|
||||
"colorInfo",
|
||||
"colorSuccess",
|
||||
"colorWarning"
|
||||
]);
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/AppBar/AppBar.mjs
|
||||
var import_jsx_runtime = require_jsx_runtime();
|
||||
var useUtilityClasses = (ownerState) => {
|
||||
const { color, position, classes } = ownerState;
|
||||
const slots = { root: [
|
||||
"root",
|
||||
`color${capitalize_default(color)}`,
|
||||
`position${capitalize_default(position)}`
|
||||
] };
|
||||
return composeClasses(slots, getAppBarUtilityClass, classes);
|
||||
};
|
||||
var joinVars = (var1, var2) => var1 ? `${var1.replace(")", "")}, ${var2})` : var2;
|
||||
var AppBarRoot = styled(Paper, {
|
||||
name: "MuiAppBar",
|
||||
slot: "Root",
|
||||
overridesResolver: (props, styles) => {
|
||||
const { ownerState } = props;
|
||||
return [
|
||||
styles.root,
|
||||
styles[`position${capitalize_default(ownerState.position)}`],
|
||||
styles[`color${capitalize_default(ownerState.color)}`]
|
||||
];
|
||||
}
|
||||
})(memoTheme(({ theme }) => ({
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
width: "100%",
|
||||
boxSizing: "border-box",
|
||||
flexShrink: 0,
|
||||
variants: [
|
||||
{
|
||||
props: { position: "fixed" },
|
||||
style: {
|
||||
position: "fixed",
|
||||
zIndex: (theme.vars || theme).zIndex.appBar,
|
||||
top: 0,
|
||||
left: "auto",
|
||||
right: 0,
|
||||
"@media print": { position: "absolute" }
|
||||
}
|
||||
},
|
||||
{
|
||||
props: { position: "absolute" },
|
||||
style: {
|
||||
position: "absolute",
|
||||
zIndex: (theme.vars || theme).zIndex.appBar,
|
||||
top: 0,
|
||||
left: "auto",
|
||||
right: 0
|
||||
}
|
||||
},
|
||||
{
|
||||
props: { position: "sticky" },
|
||||
style: {
|
||||
position: "sticky",
|
||||
zIndex: (theme.vars || theme).zIndex.appBar,
|
||||
top: 0,
|
||||
left: "auto",
|
||||
right: 0
|
||||
}
|
||||
},
|
||||
{
|
||||
props: { position: "static" },
|
||||
style: { position: "static" }
|
||||
},
|
||||
{
|
||||
props: { position: "relative" },
|
||||
style: { position: "relative" }
|
||||
},
|
||||
{
|
||||
props: { color: "inherit" },
|
||||
style: {
|
||||
"--AppBar-color": "inherit",
|
||||
color: "var(--AppBar-color)"
|
||||
}
|
||||
},
|
||||
{
|
||||
props: { color: "default" },
|
||||
style: {
|
||||
"--AppBar-background": theme.vars ? theme.vars.palette.AppBar.defaultBg : theme.palette.grey[100],
|
||||
"--AppBar-color": theme.vars ? theme.vars.palette.text.primary : theme.palette.getContrastText(theme.palette.grey[100]),
|
||||
...theme.applyStyles("dark", {
|
||||
"--AppBar-background": theme.vars ? theme.vars.palette.AppBar.defaultBg : theme.palette.grey[900],
|
||||
"--AppBar-color": theme.vars ? theme.vars.palette.text.primary : theme.palette.getContrastText(theme.palette.grey[900])
|
||||
})
|
||||
}
|
||||
},
|
||||
...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(["contrastText"])).map(([color]) => ({
|
||||
props: { color },
|
||||
style: {
|
||||
"--AppBar-background": (theme.vars ?? theme).palette[color].main,
|
||||
"--AppBar-color": (theme.vars ?? theme).palette[color].contrastText
|
||||
}
|
||||
})),
|
||||
{
|
||||
props: (props) => props.enableColorOnDark === true && !["inherit", "transparent"].includes(props.color),
|
||||
style: {
|
||||
backgroundColor: "var(--AppBar-background)",
|
||||
color: "var(--AppBar-color)"
|
||||
}
|
||||
},
|
||||
{
|
||||
props: (props) => props.enableColorOnDark === false && !["inherit", "transparent"].includes(props.color),
|
||||
style: {
|
||||
backgroundColor: "var(--AppBar-background)",
|
||||
color: "var(--AppBar-color)",
|
||||
...theme.applyStyles("dark", {
|
||||
backgroundColor: theme.vars ? joinVars(theme.vars.palette.AppBar.darkBg, "var(--AppBar-background)") : null,
|
||||
color: theme.vars ? joinVars(theme.vars.palette.AppBar.darkColor, "var(--AppBar-color)") : null
|
||||
})
|
||||
}
|
||||
},
|
||||
{
|
||||
props: { color: "transparent" },
|
||||
style: {
|
||||
"--AppBar-background": "transparent",
|
||||
"--AppBar-color": "inherit",
|
||||
backgroundColor: "var(--AppBar-background)",
|
||||
color: "var(--AppBar-color)",
|
||||
...theme.applyStyles("dark", { backgroundImage: "none" })
|
||||
}
|
||||
}
|
||||
]
|
||||
})));
|
||||
var AppBar = /*#__PURE__*/ import_react.forwardRef(function AppBar(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: "MuiAppBar"
|
||||
});
|
||||
const { className, color = "primary", enableColorOnDark = false, position = "fixed", ...other } = props;
|
||||
const ownerState = {
|
||||
...props,
|
||||
color,
|
||||
position,
|
||||
enableColorOnDark
|
||||
};
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
return /*#__PURE__*/ (0, import_jsx_runtime.jsx)(AppBarRoot, {
|
||||
square: true,
|
||||
component: "header",
|
||||
ownerState,
|
||||
elevation: 4,
|
||||
className: clsx(classes.root, className, position === "fixed" && "mui-fixed"),
|
||||
ref,
|
||||
...other
|
||||
});
|
||||
});
|
||||
AppBar.propTypes = {
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children: import_prop_types.default.node,
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: import_prop_types.default.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: import_prop_types.default.string,
|
||||
/**
|
||||
* The color of the component.
|
||||
* It supports both default and custom theme colors, which can be added as shown in the
|
||||
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
||||
* @default 'primary'
|
||||
*/
|
||||
color: import_prop_types.default.oneOfType([import_prop_types.default.oneOf([
|
||||
"default",
|
||||
"inherit",
|
||||
"primary",
|
||||
"secondary",
|
||||
"transparent",
|
||||
"error",
|
||||
"info",
|
||||
"success",
|
||||
"warning"
|
||||
]), import_prop_types.default.string]),
|
||||
/**
|
||||
* Shadow depth, corresponds to `dp` in the spec.
|
||||
* It accepts values between 0 and 24 inclusive.
|
||||
* @default 4
|
||||
*/
|
||||
elevation: import_prop_types.default.number,
|
||||
/**
|
||||
* If true, the `color` prop is applied in dark mode.
|
||||
* @default false
|
||||
*/
|
||||
enableColorOnDark: import_prop_types.default.bool,
|
||||
/**
|
||||
* The positioning type. The behavior of the different options is described
|
||||
* [in the MDN web docs](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/position).
|
||||
* Note: `sticky` is not universally supported and will fall back to `static` when unavailable.
|
||||
* @default 'fixed'
|
||||
*/
|
||||
position: import_prop_types.default.oneOf([
|
||||
"absolute",
|
||||
"fixed",
|
||||
"relative",
|
||||
"static",
|
||||
"sticky"
|
||||
]),
|
||||
/**
|
||||
* If `false`, rounded corners are enabled.
|
||||
* @default true
|
||||
*/
|
||||
square: import_prop_types.default.bool,
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx: import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.arrayOf(import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object,
|
||||
import_prop_types.default.bool
|
||||
])),
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object
|
||||
])
|
||||
};
|
||||
//#endregion
|
||||
export { appBarClasses as n, getAppBarUtilityClass as r, AppBar as t };
|
||||
+1
File diff suppressed because one or more lines are too long
+62
@@ -0,0 +1,62 @@
|
||||
import { r as __toESM } from "./rolldown-runtime-DC62tzP2.js";
|
||||
import { t as require_react } from "./react.js";
|
||||
import { t as require_jsx_runtime } from "./react_jsx-runtime.js";
|
||||
import { t as require_prop_types } from "./prop-types-C5owi9-6.js";
|
||||
import { F as generateUtilityClasses, H as styled, L as ClassNameGenerator, Z as styleFunctionSx_default, n as createTheme, t as identifier_default, ut as clsx } from "./identifier-Db3dwgA7.js";
|
||||
import { t as useTheme } from "./useTheme-DkkwbUco.js";
|
||||
//#region node_modules/@mui/system/createBox/createBox.mjs
|
||||
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
||||
var import_jsx_runtime = require_jsx_runtime();
|
||||
function createBox(options = {}) {
|
||||
const { themeId, defaultTheme, defaultClassName = "MuiBox-root", generateClassName } = options;
|
||||
const BoxRoot = styled("div", { shouldForwardProp: (prop) => prop !== "theme" && prop !== "sx" && prop !== "as" })(styleFunctionSx_default);
|
||||
return /* @__PURE__ */ import_react.forwardRef(function Box(inProps, ref) {
|
||||
const theme = useTheme(defaultTheme);
|
||||
const { className, component = "div", ...other } = inProps;
|
||||
return /*#__PURE__*/ (0, import_jsx_runtime.jsx)(BoxRoot, {
|
||||
as: component,
|
||||
ref,
|
||||
className: clsx(className, generateClassName ? generateClassName(defaultClassName) : defaultClassName),
|
||||
theme: themeId ? theme[themeId] || theme : theme,
|
||||
...other
|
||||
});
|
||||
});
|
||||
}
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/Box/boxClasses.mjs
|
||||
var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types(), 1);
|
||||
var boxClasses = generateUtilityClasses("MuiBox", ["root"]);
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/Box/Box.mjs
|
||||
var defaultTheme = createTheme();
|
||||
var Box = createBox({
|
||||
themeId: identifier_default,
|
||||
defaultTheme,
|
||||
defaultClassName: boxClasses.root,
|
||||
generateClassName: ClassNameGenerator.generate
|
||||
});
|
||||
Box.propTypes = {
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
children: import_prop_types.default.node,
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a HTML element or a component.
|
||||
*/
|
||||
component: import_prop_types.default.elementType,
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx: import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.arrayOf(import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object,
|
||||
import_prop_types.default.bool
|
||||
])),
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object
|
||||
])
|
||||
};
|
||||
//#endregion
|
||||
export { boxClasses as n, Box as t };
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Box-B_dRI49O.js","names":["styleFunctionSx","THEME_ID","PropTypes"],"sources":["../../@mui/system/createBox/createBox.mjs","../../@mui/material/Box/boxClasses.mjs","../../@mui/material/Box/Box.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport styled from '@mui/styled-engine';\nimport styleFunctionSx from \"../styleFunctionSx/index.mjs\";\nimport useTheme from \"../useTheme/index.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function createBox(options = {}) {\n const {\n themeId,\n defaultTheme,\n defaultClassName = 'MuiBox-root',\n generateClassName\n } = options;\n const BoxRoot = styled('div', {\n shouldForwardProp: prop => prop !== 'theme' && prop !== 'sx' && prop !== 'as'\n })(styleFunctionSx);\n const Box = /*#__PURE__*/React.forwardRef(function Box(inProps, ref) {\n const theme = useTheme(defaultTheme);\n const {\n className,\n component = 'div',\n ...other\n } = inProps;\n return /*#__PURE__*/_jsx(BoxRoot, {\n as: component,\n ref: ref,\n className: clsx(className, generateClassName ? generateClassName(defaultClassName) : defaultClassName),\n theme: themeId ? theme[themeId] || theme : theme,\n ...other\n });\n });\n return Box;\n}","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nconst boxClasses = generateUtilityClasses('MuiBox', ['root']);\nexport default boxClasses;","'use client';\n\nimport { createBox } from '@mui/system';\nimport PropTypes from 'prop-types';\nimport { unstable_ClassNameGenerator as ClassNameGenerator } from \"../className/index.mjs\";\nimport { createTheme } from \"../styles/index.mjs\";\nimport THEME_ID from \"../styles/identifier.mjs\";\nimport boxClasses from \"./boxClasses.mjs\";\nconst defaultTheme = createTheme();\nconst Box = createBox({\n themeId: THEME_ID,\n defaultTheme,\n defaultClassName: boxClasses.root,\n generateClassName: ClassNameGenerator.generate\n});\nprocess.env.NODE_ENV !== \"production\" ? Box.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * @ignore\n */\n children: PropTypes.node,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default Box;"],"mappings":";;;;;;;;;AAQA,SAAwB,UAAU,UAAU,CAAC,GAAG;CAC9C,MAAM,EACJ,SACA,cACA,mBAAmB,eACnB,sBACE;CACJ,MAAM,UAAU,OAAO,OAAO,EAC5B,oBAAmB,SAAQ,SAAS,WAAW,SAAS,QAAQ,SAAS,KAC3E,CAAC,CAAC,CAACA,uBAAe;CAgBlB,OAAO,6BAfwB,WAAW,SAAS,IAAI,SAAS,KAAK;EACnE,MAAM,QAAQ,SAAS,YAAY;EACnC,MAAM,EACJ,WACA,YAAY,OACZ,GAAG,UACD;EACJ,OAAoB,eAAA,GAAA,mBAAA,IAAA,CAAK,SAAS;GAChC,IAAI;GACC;GACL,WAAW,KAAK,WAAW,oBAAoB,kBAAkB,gBAAgB,IAAI,gBAAgB;GACrG,OAAO,UAAU,MAAM,YAAY,QAAQ;GAC3C,GAAG;EACL,CAAC;CACH,CACS;AACX;;;;ACjCA,IAAM,aAAa,uBAAuB,UAAU,CAAC,MAAM,CAAC;;;ACO5D,IAAM,eAAe,YAAY;AACjC,IAAM,MAAM,UAAU;CACpB,SAASC;CACT;CACA,kBAAkB,WAAW;CAC7B,mBAAmB,mBAAmB;AACxC,CAAC;AACuC,IAAI,YAAmC;;;;CAQ7E,UAAUC,kBAAAA,QAAU;;;;;CAKpB,WAAWA,kBAAAA,QAAU;;;;CAIrB,IAAIA,kBAAAA,QAAU,UAAU;EAACA,kBAAAA,QAAU,QAAQA,kBAAAA,QAAU,UAAU;GAACA,kBAAAA,QAAU;GAAMA,kBAAAA,QAAU;GAAQA,kBAAAA,QAAU;EAAI,CAAC,CAAC;EAAGA,kBAAAA,QAAU;EAAMA,kBAAAA,QAAU;CAAM,CAAC;AACxJ"}
|
||||
+682
@@ -0,0 +1,682 @@
|
||||
import { r as __toESM } from "./rolldown-runtime-DC62tzP2.js";
|
||||
import { t as require_react } from "./react.js";
|
||||
import { t as require_jsx_runtime } from "./react_jsx-runtime.js";
|
||||
import { t as require_prop_types } from "./prop-types-C5owi9-6.js";
|
||||
import { F as generateUtilityClasses, I as generateUtilityClass, ut as clsx } from "./identifier-Db3dwgA7.js";
|
||||
import { a as resolveProps, l as composeClasses, n as rootShouldForwardProp, t as styled } from "./styled-ry4r-NKP.js";
|
||||
import { t as capitalize_default } from "./capitalize-DESO4t23.js";
|
||||
import { t as useDefaultProps } from "./DefaultPropsProvider-C8vOQ3_j.js";
|
||||
import { t as memoTheme } from "./memoTheme-Ciuals54.js";
|
||||
import { i as getTransitionStyles } from "./utils-BCVtNTPx.js";
|
||||
import { t as useId_default } from "./useId-UEgN89h0.js";
|
||||
import { t as ButtonBase } from "./ButtonBase-Bsl8ZUTz.js";
|
||||
import { t as createSimplePaletteValueFilter } from "./createSimplePaletteValueFilter-BhADkSm9.js";
|
||||
import { t as CircularProgress } from "./CircularProgress-Tc2SKes6.js";
|
||||
//#region node_modules/@mui/material/Button/buttonClasses.mjs
|
||||
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
||||
var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types(), 1);
|
||||
function getButtonUtilityClass(slot) {
|
||||
return generateUtilityClass("MuiButton", slot);
|
||||
}
|
||||
var buttonClasses = generateUtilityClasses("MuiButton", [
|
||||
"root",
|
||||
"text",
|
||||
"outlined",
|
||||
"contained",
|
||||
"disableElevation",
|
||||
"focusVisible",
|
||||
"disabled",
|
||||
"colorInherit",
|
||||
"colorPrimary",
|
||||
"colorSecondary",
|
||||
"colorSuccess",
|
||||
"colorError",
|
||||
"colorInfo",
|
||||
"colorWarning",
|
||||
"sizeMedium",
|
||||
"sizeSmall",
|
||||
"sizeLarge",
|
||||
"fullWidth",
|
||||
"startIcon",
|
||||
"endIcon",
|
||||
"icon",
|
||||
"loading",
|
||||
"loadingWrapper",
|
||||
"loadingIconPlaceholder",
|
||||
"loadingIndicator",
|
||||
"loadingPositionCenter",
|
||||
"loadingPositionStart",
|
||||
"loadingPositionEnd"
|
||||
]);
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/ButtonGroup/ButtonGroupContext.mjs
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
var ButtonGroupContext = /*#__PURE__*/ import_react.createContext({});
|
||||
ButtonGroupContext.displayName = "ButtonGroupContext";
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/ButtonGroup/ButtonGroupButtonContext.mjs
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
var ButtonGroupButtonContext = /*#__PURE__*/ import_react.createContext(void 0);
|
||||
ButtonGroupButtonContext.displayName = "ButtonGroupButtonContext";
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/Button/Button.mjs
|
||||
var import_jsx_runtime = require_jsx_runtime();
|
||||
var useUtilityClasses = (ownerState) => {
|
||||
const { color, disableElevation, fullWidth, size, variant, loading, loadingPosition, classes } = ownerState;
|
||||
const slots = {
|
||||
root: [
|
||||
"root",
|
||||
loading && "loading",
|
||||
variant,
|
||||
`size${capitalize_default(size)}`,
|
||||
`color${capitalize_default(color)}`,
|
||||
disableElevation && "disableElevation",
|
||||
fullWidth && "fullWidth",
|
||||
loading && `loadingPosition${capitalize_default(loadingPosition)}`
|
||||
],
|
||||
startIcon: ["icon", "startIcon"],
|
||||
endIcon: ["icon", "endIcon"],
|
||||
loadingIndicator: ["loadingIndicator"],
|
||||
loadingWrapper: ["loadingWrapper"]
|
||||
};
|
||||
const composedClasses = composeClasses(slots, getButtonUtilityClass, classes);
|
||||
return {
|
||||
...classes,
|
||||
...composedClasses
|
||||
};
|
||||
};
|
||||
var commonIconStyles = [
|
||||
{
|
||||
props: { size: "small" },
|
||||
style: { "& > *:nth-of-type(1)": { fontSize: 18 } }
|
||||
},
|
||||
{
|
||||
props: { size: "medium" },
|
||||
style: { "& > *:nth-of-type(1)": { fontSize: 20 } }
|
||||
},
|
||||
{
|
||||
props: { size: "large" },
|
||||
style: { "& > *:nth-of-type(1)": { fontSize: 22 } }
|
||||
}
|
||||
];
|
||||
var ButtonRoot = styled(ButtonBase, {
|
||||
shouldForwardProp: (prop) => rootShouldForwardProp(prop) || prop === "classes",
|
||||
name: "MuiButton",
|
||||
slot: "Root",
|
||||
overridesResolver: (props, styles) => {
|
||||
const { ownerState } = props;
|
||||
return [
|
||||
styles.root,
|
||||
styles[ownerState.variant],
|
||||
styles[`size${capitalize_default(ownerState.size)}`],
|
||||
ownerState.color === "inherit" && styles.colorInherit,
|
||||
ownerState.disableElevation && styles.disableElevation,
|
||||
ownerState.fullWidth && styles.fullWidth,
|
||||
ownerState.loading && styles.loading
|
||||
];
|
||||
}
|
||||
})(memoTheme(({ theme }) => {
|
||||
const inheritContainedBackgroundColor = theme.palette.mode === "light" ? theme.palette.grey[300] : theme.palette.grey[800];
|
||||
const inheritContainedHoverBackgroundColor = theme.palette.mode === "light" ? theme.palette.grey.A100 : theme.palette.grey[700];
|
||||
return {
|
||||
...theme.typography.button,
|
||||
minWidth: 64,
|
||||
padding: "6px 16px",
|
||||
border: 0,
|
||||
borderRadius: (theme.vars || theme).shape.borderRadius,
|
||||
...getTransitionStyles(theme, [
|
||||
"background-color",
|
||||
"box-shadow",
|
||||
"border-color",
|
||||
"color"
|
||||
], { duration: theme.transitions.duration.short }),
|
||||
"&:hover": { textDecoration: "none" },
|
||||
[`&.${buttonClasses.disabled}`]: { color: (theme.vars || theme).palette.action.disabled },
|
||||
variants: [
|
||||
{
|
||||
props: { variant: "contained" },
|
||||
style: {
|
||||
color: `var(--variant-containedColor)`,
|
||||
backgroundColor: `var(--variant-containedBg)`,
|
||||
boxShadow: (theme.vars || theme).shadows[2],
|
||||
"&:hover": {
|
||||
boxShadow: (theme.vars || theme).shadows[4],
|
||||
"@media (hover: none)": { boxShadow: (theme.vars || theme).shadows[2] }
|
||||
},
|
||||
"&:active": { boxShadow: (theme.vars || theme).shadows[8] },
|
||||
[`&.${buttonClasses.focusVisible}`]: { boxShadow: (theme.vars || theme).shadows[6] },
|
||||
[`&.${buttonClasses.disabled}`]: {
|
||||
color: (theme.vars || theme).palette.action.disabled,
|
||||
boxShadow: (theme.vars || theme).shadows[0],
|
||||
backgroundColor: (theme.vars || theme).palette.action.disabledBackground
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
props: { variant: "outlined" },
|
||||
style: {
|
||||
padding: "5px 15px",
|
||||
border: "1px solid currentColor",
|
||||
borderColor: `var(--variant-outlinedBorder, currentColor)`,
|
||||
backgroundColor: `var(--variant-outlinedBg)`,
|
||||
color: `var(--variant-outlinedColor)`,
|
||||
[`&.${buttonClasses.disabled}`]: { border: `1px solid ${(theme.vars || theme).palette.action.disabledBackground}` }
|
||||
}
|
||||
},
|
||||
{
|
||||
props: { variant: "text" },
|
||||
style: {
|
||||
padding: "6px 8px",
|
||||
color: `var(--variant-textColor)`,
|
||||
backgroundColor: `var(--variant-textBg)`
|
||||
}
|
||||
},
|
||||
...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({
|
||||
props: { color },
|
||||
style: {
|
||||
"--variant-textColor": (theme.vars || theme).palette[color].main,
|
||||
"--variant-outlinedColor": (theme.vars || theme).palette[color].main,
|
||||
"--variant-outlinedBorder": theme.alpha((theme.vars || theme).palette[color].main, .5),
|
||||
"--variant-containedColor": (theme.vars || theme).palette[color].contrastText,
|
||||
"--variant-containedBg": (theme.vars || theme).palette[color].main,
|
||||
"@media (hover: hover)": { "&:hover": {
|
||||
"--variant-containedBg": (theme.vars || theme).palette[color].dark,
|
||||
"--variant-textBg": theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.hoverOpacity),
|
||||
"--variant-outlinedBorder": (theme.vars || theme).palette[color].main,
|
||||
"--variant-outlinedBg": theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.hoverOpacity)
|
||||
} }
|
||||
}
|
||||
})),
|
||||
{
|
||||
props: { color: "inherit" },
|
||||
style: {
|
||||
color: "inherit",
|
||||
borderColor: "currentColor",
|
||||
"--variant-containedBg": theme.vars ? theme.vars.palette.Button.inheritContainedBg : inheritContainedBackgroundColor,
|
||||
"@media (hover: hover)": { "&:hover": {
|
||||
"--variant-containedBg": theme.vars ? theme.vars.palette.Button.inheritContainedHoverBg : inheritContainedHoverBackgroundColor,
|
||||
"--variant-textBg": theme.alpha((theme.vars || theme).palette.text.primary, (theme.vars || theme).palette.action.hoverOpacity),
|
||||
"--variant-outlinedBg": theme.alpha((theme.vars || theme).palette.text.primary, (theme.vars || theme).palette.action.hoverOpacity)
|
||||
} }
|
||||
}
|
||||
},
|
||||
{
|
||||
props: {
|
||||
size: "small",
|
||||
variant: "text"
|
||||
},
|
||||
style: {
|
||||
padding: "4px 5px",
|
||||
fontSize: theme.typography.pxToRem(13)
|
||||
}
|
||||
},
|
||||
{
|
||||
props: {
|
||||
size: "large",
|
||||
variant: "text"
|
||||
},
|
||||
style: {
|
||||
padding: "8px 11px",
|
||||
fontSize: theme.typography.pxToRem(15)
|
||||
}
|
||||
},
|
||||
{
|
||||
props: {
|
||||
size: "small",
|
||||
variant: "outlined"
|
||||
},
|
||||
style: {
|
||||
padding: "3px 9px",
|
||||
fontSize: theme.typography.pxToRem(13)
|
||||
}
|
||||
},
|
||||
{
|
||||
props: {
|
||||
size: "large",
|
||||
variant: "outlined"
|
||||
},
|
||||
style: {
|
||||
padding: "7px 21px",
|
||||
fontSize: theme.typography.pxToRem(15)
|
||||
}
|
||||
},
|
||||
{
|
||||
props: {
|
||||
size: "small",
|
||||
variant: "contained"
|
||||
},
|
||||
style: {
|
||||
padding: "4px 10px",
|
||||
fontSize: theme.typography.pxToRem(13)
|
||||
}
|
||||
},
|
||||
{
|
||||
props: {
|
||||
size: "large",
|
||||
variant: "contained"
|
||||
},
|
||||
style: {
|
||||
padding: "8px 22px",
|
||||
fontSize: theme.typography.pxToRem(15)
|
||||
}
|
||||
},
|
||||
{
|
||||
props: { disableElevation: true },
|
||||
style: {
|
||||
boxShadow: "none",
|
||||
"&:hover": { boxShadow: "none" },
|
||||
[`&.${buttonClasses.focusVisible}`]: { boxShadow: "none" },
|
||||
"&:active": { boxShadow: "none" },
|
||||
[`&.${buttonClasses.disabled}`]: { boxShadow: "none" }
|
||||
}
|
||||
},
|
||||
{
|
||||
props: { fullWidth: true },
|
||||
style: { width: "100%" }
|
||||
},
|
||||
{
|
||||
props: { loadingPosition: "center" },
|
||||
style: {
|
||||
...getTransitionStyles(theme, [
|
||||
"background-color",
|
||||
"box-shadow",
|
||||
"border-color"
|
||||
], { duration: theme.transitions.duration.short }),
|
||||
[`&.${buttonClasses.loading}`]: { color: "transparent" }
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
}));
|
||||
var ButtonStartIcon = styled("span", {
|
||||
name: "MuiButton",
|
||||
slot: "StartIcon",
|
||||
overridesResolver: (props, styles) => {
|
||||
const { ownerState } = props;
|
||||
return [styles.startIcon, ownerState.loading && styles.startIconLoadingStart];
|
||||
}
|
||||
})(({ theme }) => ({
|
||||
display: "inherit",
|
||||
alignItems: "center",
|
||||
marginRight: 8,
|
||||
marginLeft: -4,
|
||||
"&::before": {
|
||||
content: "\"\\200b\"",
|
||||
width: 0,
|
||||
overflow: "hidden"
|
||||
},
|
||||
variants: [
|
||||
{
|
||||
props: { size: "small" },
|
||||
style: { marginLeft: -2 }
|
||||
},
|
||||
{
|
||||
props: {
|
||||
loadingPosition: "start",
|
||||
loading: true
|
||||
},
|
||||
style: {
|
||||
...getTransitionStyles(theme, ["opacity"], { duration: theme.transitions.duration.short }),
|
||||
opacity: 0
|
||||
}
|
||||
},
|
||||
{
|
||||
props: {
|
||||
loadingPosition: "start",
|
||||
loading: true,
|
||||
fullWidth: true
|
||||
},
|
||||
style: { marginRight: -8 }
|
||||
},
|
||||
...commonIconStyles
|
||||
]
|
||||
}));
|
||||
var ButtonEndIcon = styled("span", {
|
||||
name: "MuiButton",
|
||||
slot: "EndIcon",
|
||||
overridesResolver: (props, styles) => {
|
||||
const { ownerState } = props;
|
||||
return [styles.endIcon, ownerState.loading && styles.endIconLoadingEnd];
|
||||
}
|
||||
})(({ theme }) => ({
|
||||
display: "inherit",
|
||||
marginRight: -4,
|
||||
marginLeft: 8,
|
||||
variants: [
|
||||
{
|
||||
props: { size: "small" },
|
||||
style: { marginRight: -2 }
|
||||
},
|
||||
{
|
||||
props: {
|
||||
loadingPosition: "end",
|
||||
loading: true
|
||||
},
|
||||
style: {
|
||||
...getTransitionStyles(theme, ["opacity"], { duration: theme.transitions.duration.short }),
|
||||
opacity: 0
|
||||
}
|
||||
},
|
||||
{
|
||||
props: {
|
||||
loadingPosition: "end",
|
||||
loading: true,
|
||||
fullWidth: true
|
||||
},
|
||||
style: { marginLeft: -8 }
|
||||
},
|
||||
...commonIconStyles
|
||||
]
|
||||
}));
|
||||
var ButtonLoadingIndicator = styled("span", {
|
||||
name: "MuiButton",
|
||||
slot: "LoadingIndicator"
|
||||
})(({ theme }) => ({
|
||||
display: "none",
|
||||
position: "absolute",
|
||||
visibility: "visible",
|
||||
variants: [
|
||||
{
|
||||
props: { loading: true },
|
||||
style: { display: "flex" }
|
||||
},
|
||||
{
|
||||
props: { loadingPosition: "start" },
|
||||
style: { left: 14 }
|
||||
},
|
||||
{
|
||||
props: {
|
||||
loadingPosition: "start",
|
||||
size: "small"
|
||||
},
|
||||
style: { left: 10 }
|
||||
},
|
||||
{
|
||||
props: {
|
||||
variant: "text",
|
||||
loadingPosition: "start"
|
||||
},
|
||||
style: { left: 6 }
|
||||
},
|
||||
{
|
||||
props: { loadingPosition: "center" },
|
||||
style: {
|
||||
left: "50%",
|
||||
transform: "translate(-50%)",
|
||||
color: (theme.vars || theme).palette.action.disabled
|
||||
}
|
||||
},
|
||||
{
|
||||
props: { loadingPosition: "end" },
|
||||
style: { right: 14 }
|
||||
},
|
||||
{
|
||||
props: {
|
||||
loadingPosition: "end",
|
||||
size: "small"
|
||||
},
|
||||
style: { right: 10 }
|
||||
},
|
||||
{
|
||||
props: {
|
||||
variant: "text",
|
||||
loadingPosition: "end"
|
||||
},
|
||||
style: { right: 6 }
|
||||
},
|
||||
{
|
||||
props: {
|
||||
loadingPosition: "start",
|
||||
fullWidth: true
|
||||
},
|
||||
style: {
|
||||
position: "relative",
|
||||
left: -10
|
||||
}
|
||||
},
|
||||
{
|
||||
props: {
|
||||
loadingPosition: "end",
|
||||
fullWidth: true
|
||||
},
|
||||
style: {
|
||||
position: "relative",
|
||||
right: -10
|
||||
}
|
||||
}
|
||||
]
|
||||
}));
|
||||
var ButtonLoadingIconPlaceholder = styled("span", {
|
||||
name: "MuiButton",
|
||||
slot: "LoadingIconPlaceholder"
|
||||
})({
|
||||
display: "inline-block",
|
||||
width: "1em",
|
||||
height: "1em"
|
||||
});
|
||||
var Button = /*#__PURE__*/ import_react.forwardRef(function Button(inProps, ref) {
|
||||
const contextProps = import_react.useContext(ButtonGroupContext);
|
||||
const buttonGroupButtonContextPositionClassName = import_react.useContext(ButtonGroupButtonContext);
|
||||
const resolvedProps = resolveProps(contextProps, inProps);
|
||||
const props = useDefaultProps({
|
||||
props: resolvedProps,
|
||||
name: "MuiButton"
|
||||
});
|
||||
const { children, color = "primary", component = "button", className, disabled = false, disableElevation = false, disableFocusRipple = false, endIcon: endIconProp, focusVisibleClassName, fullWidth = false, id: idProp, loading = null, loadingIndicator: loadingIndicatorProp, loadingPosition = "center", size = "medium", startIcon: startIconProp, type, variant = "text", ...other } = props;
|
||||
const loadingId = useId_default(idProp);
|
||||
const loadingIndicator = loadingIndicatorProp ?? /*#__PURE__*/ (0, import_jsx_runtime.jsx)(CircularProgress, {
|
||||
"aria-labelledby": loadingId,
|
||||
color: "inherit",
|
||||
size: 16
|
||||
});
|
||||
const ownerState = {
|
||||
...props,
|
||||
color,
|
||||
component,
|
||||
disabled,
|
||||
disableElevation,
|
||||
disableFocusRipple,
|
||||
fullWidth,
|
||||
loading,
|
||||
loadingIndicator,
|
||||
loadingPosition,
|
||||
size,
|
||||
type,
|
||||
variant
|
||||
};
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
const startIcon = (startIconProp || loading && loadingPosition === "start") && /*#__PURE__*/ (0, import_jsx_runtime.jsx)(ButtonStartIcon, {
|
||||
className: classes.startIcon,
|
||||
ownerState,
|
||||
children: startIconProp || /*#__PURE__*/ (0, import_jsx_runtime.jsx)(ButtonLoadingIconPlaceholder, {
|
||||
className: classes.loadingIconPlaceholder,
|
||||
ownerState
|
||||
})
|
||||
});
|
||||
const endIcon = (endIconProp || loading && loadingPosition === "end") && /*#__PURE__*/ (0, import_jsx_runtime.jsx)(ButtonEndIcon, {
|
||||
className: classes.endIcon,
|
||||
ownerState,
|
||||
children: endIconProp || /*#__PURE__*/ (0, import_jsx_runtime.jsx)(ButtonLoadingIconPlaceholder, {
|
||||
className: classes.loadingIconPlaceholder,
|
||||
ownerState
|
||||
})
|
||||
});
|
||||
const positionClassName = buttonGroupButtonContextPositionClassName || "";
|
||||
const loader = typeof loading === "boolean" ? /*#__PURE__*/ (0, import_jsx_runtime.jsx)("span", {
|
||||
className: classes.loadingWrapper,
|
||||
style: { display: "contents" },
|
||||
children: loading && /*#__PURE__*/ (0, import_jsx_runtime.jsx)(ButtonLoadingIndicator, {
|
||||
className: classes.loadingIndicator,
|
||||
ownerState,
|
||||
children: loadingIndicator
|
||||
})
|
||||
}) : null;
|
||||
const { root, ...forwardedClasses } = classes;
|
||||
return /*#__PURE__*/ (0, import_jsx_runtime.jsxs)(ButtonRoot, {
|
||||
ownerState,
|
||||
className: clsx(contextProps.className, classes.root, className, positionClassName),
|
||||
component,
|
||||
disabled: disabled || loading,
|
||||
focusRipple: !disableFocusRipple,
|
||||
focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),
|
||||
ref,
|
||||
internalNativeButton: true,
|
||||
type,
|
||||
id: loading ? loadingId : idProp,
|
||||
...other,
|
||||
classes: forwardedClasses,
|
||||
children: [
|
||||
startIcon,
|
||||
loadingPosition !== "end" && loader,
|
||||
children,
|
||||
loadingPosition === "end" && loader,
|
||||
endIcon
|
||||
]
|
||||
});
|
||||
});
|
||||
Button.propTypes = {
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children: import_prop_types.default.node,
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: import_prop_types.default.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: import_prop_types.default.string,
|
||||
/**
|
||||
* The color of the component.
|
||||
* It supports both default and custom theme colors, which can be added as shown in the
|
||||
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
||||
* @default 'primary'
|
||||
*/
|
||||
color: import_prop_types.default.oneOfType([import_prop_types.default.oneOf([
|
||||
"inherit",
|
||||
"primary",
|
||||
"secondary",
|
||||
"success",
|
||||
"error",
|
||||
"info",
|
||||
"warning"
|
||||
]), import_prop_types.default.string]),
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a HTML element or a component.
|
||||
*/
|
||||
component: import_prop_types.default.elementType,
|
||||
/**
|
||||
* If `true`, the component is disabled.
|
||||
* @default false
|
||||
*/
|
||||
disabled: import_prop_types.default.bool,
|
||||
/**
|
||||
* If `true`, no elevation is used.
|
||||
* @default false
|
||||
*/
|
||||
disableElevation: import_prop_types.default.bool,
|
||||
/**
|
||||
* If `true`, the keyboard focus ripple is disabled.
|
||||
* @default false
|
||||
*/
|
||||
disableFocusRipple: import_prop_types.default.bool,
|
||||
/**
|
||||
* If `true`, the ripple effect is disabled.
|
||||
*
|
||||
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
||||
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
||||
* @default false
|
||||
*/
|
||||
disableRipple: import_prop_types.default.bool,
|
||||
/**
|
||||
* Element placed after the children.
|
||||
*/
|
||||
endIcon: import_prop_types.default.node,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
focusVisibleClassName: import_prop_types.default.string,
|
||||
/**
|
||||
* If `true`, the button will take up the full width of its container.
|
||||
* @default false
|
||||
*/
|
||||
fullWidth: import_prop_types.default.bool,
|
||||
/**
|
||||
* The URL to link to when the button is clicked.
|
||||
* If defined, an `a` element will be used as the root node.
|
||||
*/
|
||||
href: import_prop_types.default.string,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
id: import_prop_types.default.string,
|
||||
/**
|
||||
* If `true`, the loading indicator is visible and the button is disabled.
|
||||
* If `true | false`, the loading wrapper is always rendered before the children to prevent [Google Translation Crash](https://github.com/mui/material-ui/issues/27853).
|
||||
* @default null
|
||||
*/
|
||||
loading: import_prop_types.default.bool,
|
||||
/**
|
||||
* Element placed before the children if the button is in loading state.
|
||||
* The node should contain an element with `role="progressbar"` with an accessible name.
|
||||
* By default, it renders a `CircularProgress` that is labeled by the button itself.
|
||||
* @default <CircularProgress color="inherit" size={16} />
|
||||
*/
|
||||
loadingIndicator: import_prop_types.default.node,
|
||||
/**
|
||||
* The loading indicator can be positioned on the start, end, or the center of the button.
|
||||
* @default 'center'
|
||||
*/
|
||||
loadingPosition: import_prop_types.default.oneOf([
|
||||
"center",
|
||||
"end",
|
||||
"start"
|
||||
]),
|
||||
/**
|
||||
* The size of the component.
|
||||
* `small` is equivalent to the dense button styling.
|
||||
* @default 'medium'
|
||||
*/
|
||||
size: import_prop_types.default.oneOfType([import_prop_types.default.oneOf([
|
||||
"small",
|
||||
"medium",
|
||||
"large"
|
||||
]), import_prop_types.default.string]),
|
||||
/**
|
||||
* Element placed before the children.
|
||||
*/
|
||||
startIcon: import_prop_types.default.node,
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx: import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.arrayOf(import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object,
|
||||
import_prop_types.default.bool
|
||||
])),
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object
|
||||
]),
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
type: import_prop_types.default.string,
|
||||
/**
|
||||
* The variant to use.
|
||||
* @default 'text'
|
||||
*/
|
||||
variant: import_prop_types.default.oneOfType([import_prop_types.default.oneOf([
|
||||
"contained",
|
||||
"outlined",
|
||||
"text"
|
||||
]), import_prop_types.default.string])
|
||||
};
|
||||
//#endregion
|
||||
export { getButtonUtilityClass as a, buttonClasses as i, ButtonGroupButtonContext as n, ButtonGroupContext as r, Button as t };
|
||||
+1
File diff suppressed because one or more lines are too long
+1058
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+1
File diff suppressed because one or more lines are too long
+576
@@ -0,0 +1,576 @@
|
||||
import { r as __toESM } from "./rolldown-runtime-DC62tzP2.js";
|
||||
import { t as require_react } from "./react.js";
|
||||
import { t as require_jsx_runtime } from "./react_jsx-runtime.js";
|
||||
import { t as require_prop_types } from "./prop-types-C5owi9-6.js";
|
||||
import { F as generateUtilityClasses, I as generateUtilityClass, ut as clsx } from "./identifier-Db3dwgA7.js";
|
||||
import { l as composeClasses, n as rootShouldForwardProp, t as styled } from "./styled-ry4r-NKP.js";
|
||||
import { t as capitalize_default } from "./capitalize-DESO4t23.js";
|
||||
import { t as useDefaultProps } from "./DefaultPropsProvider-C8vOQ3_j.js";
|
||||
import { t as memoTheme } from "./memoTheme-Ciuals54.js";
|
||||
import { t as createSvgIcon } from "./createSvgIcon-Cf0_3N9N.js";
|
||||
import { t as useSlot } from "./useSlot-DwQopxnD.js";
|
||||
import { t as useControlled_default } from "./useControlled-COuwyMRm.js";
|
||||
import { t as mergeSlotProps } from "./mergeSlotProps-BYHIo2Vv.js";
|
||||
import { t as ButtonBase } from "./ButtonBase-Bsl8ZUTz.js";
|
||||
import { t as useFormControl } from "./useFormControl-DsSCzWhM.js";
|
||||
import { t as createSimplePaletteValueFilter } from "./createSimplePaletteValueFilter-BhADkSm9.js";
|
||||
//#region node_modules/@mui/material/Checkbox/checkboxClasses.mjs
|
||||
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
||||
var import_jsx_runtime = require_jsx_runtime();
|
||||
var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types(), 1);
|
||||
function getCheckboxUtilityClass(slot) {
|
||||
return generateUtilityClass("MuiCheckbox", slot);
|
||||
}
|
||||
var checkboxClasses = generateUtilityClasses("MuiCheckbox", [
|
||||
"root",
|
||||
"checked",
|
||||
"disabled",
|
||||
"indeterminate",
|
||||
"colorPrimary",
|
||||
"colorSecondary",
|
||||
"sizeSmall",
|
||||
"sizeMedium"
|
||||
]);
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/internal/svg-icons/Close.mjs
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*
|
||||
* Alias to `Clear`.
|
||||
*/
|
||||
var Close_default = createSvgIcon(/*#__PURE__*/ (0, import_jsx_runtime.jsx)("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }), "Close");
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/internal/switchBaseClasses.mjs
|
||||
function getSwitchBaseUtilityClass(slot) {
|
||||
return generateUtilityClass("PrivateSwitchBase", slot);
|
||||
}
|
||||
generateUtilityClasses("PrivateSwitchBase", [
|
||||
"root",
|
||||
"checked",
|
||||
"disabled",
|
||||
"input",
|
||||
"edgeStart",
|
||||
"edgeEnd"
|
||||
]);
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/internal/SwitchBase.mjs
|
||||
var useUtilityClasses$1 = (ownerState) => {
|
||||
const { classes, checked, disabled, edge } = ownerState;
|
||||
const slots = {
|
||||
root: [
|
||||
"root",
|
||||
checked && "checked",
|
||||
disabled && "disabled",
|
||||
edge && `edge${capitalize_default(edge)}`
|
||||
],
|
||||
input: ["input"]
|
||||
};
|
||||
return composeClasses(slots, getSwitchBaseUtilityClass, classes);
|
||||
};
|
||||
var SwitchBaseRoot = styled(ButtonBase, { name: "MuiSwitchBase" })({
|
||||
padding: 9,
|
||||
borderRadius: "50%",
|
||||
variants: [
|
||||
{
|
||||
props: {
|
||||
edge: "start",
|
||||
size: "small"
|
||||
},
|
||||
style: { marginLeft: -3 }
|
||||
},
|
||||
{
|
||||
props: ({ edge, ownerState }) => edge === "start" && ownerState.size !== "small",
|
||||
style: { marginLeft: -12 }
|
||||
},
|
||||
{
|
||||
props: {
|
||||
edge: "end",
|
||||
size: "small"
|
||||
},
|
||||
style: { marginRight: -3 }
|
||||
},
|
||||
{
|
||||
props: ({ edge, ownerState }) => edge === "end" && ownerState.size !== "small",
|
||||
style: { marginRight: -12 }
|
||||
}
|
||||
]
|
||||
});
|
||||
var SwitchBaseInput = styled("input", {
|
||||
name: "MuiSwitchBase",
|
||||
shouldForwardProp: rootShouldForwardProp
|
||||
})({
|
||||
cursor: "inherit",
|
||||
position: "absolute",
|
||||
opacity: 0,
|
||||
width: "100%",
|
||||
height: "100%",
|
||||
top: 0,
|
||||
left: 0,
|
||||
margin: 0,
|
||||
padding: 0,
|
||||
zIndex: 1
|
||||
});
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
var SwitchBase = /*#__PURE__*/ import_react.forwardRef(function SwitchBase(props, ref) {
|
||||
const { autoFocus, checked: checkedProp, checkedIcon, defaultChecked, disabled: disabledProp, disableFocusRipple = false, edge = false, icon, id, name, onBlur, onChange, onFocus, readOnly, required = false, tabIndex, type, value, slots = {}, slotProps = {}, ...other } = props;
|
||||
const { nativeButton, ...buttonBaseProps } = other;
|
||||
const [checked, setCheckedState] = useControlled_default({
|
||||
controlled: checkedProp,
|
||||
default: Boolean(defaultChecked),
|
||||
name: "SwitchBase",
|
||||
state: "checked"
|
||||
});
|
||||
const muiFormControl = useFormControl();
|
||||
const handleFocus = (event) => {
|
||||
if (onFocus) onFocus(event);
|
||||
if (muiFormControl && muiFormControl.onFocus) muiFormControl.onFocus(event);
|
||||
};
|
||||
const handleBlur = (event) => {
|
||||
if (onBlur) onBlur(event);
|
||||
if (muiFormControl && muiFormControl.onBlur) muiFormControl.onBlur(event);
|
||||
};
|
||||
const handleInputChange = (event) => {
|
||||
if (event.nativeEvent.defaultPrevented || readOnly) return;
|
||||
const newChecked = event.target.checked;
|
||||
setCheckedState(newChecked);
|
||||
if (onChange) onChange(event, newChecked);
|
||||
};
|
||||
let disabled = disabledProp;
|
||||
if (muiFormControl) {
|
||||
if (typeof disabled === "undefined") disabled = muiFormControl.disabled;
|
||||
}
|
||||
const hasLabelFor = type === "checkbox" || type === "radio";
|
||||
const ownerState = {
|
||||
...props,
|
||||
checked,
|
||||
disabled,
|
||||
disableFocusRipple,
|
||||
edge
|
||||
};
|
||||
const classes = useUtilityClasses$1(ownerState);
|
||||
const externalForwardedProps = {
|
||||
slots,
|
||||
slotProps
|
||||
};
|
||||
const [RootSlot, rootSlotProps] = useSlot("root", {
|
||||
ref,
|
||||
elementType: SwitchBaseRoot,
|
||||
className: classes.root,
|
||||
shouldForwardComponentProp: true,
|
||||
externalForwardedProps: {
|
||||
...externalForwardedProps,
|
||||
component: "span",
|
||||
...buttonBaseProps
|
||||
},
|
||||
getSlotProps: (handlers) => ({
|
||||
...handlers,
|
||||
onFocus: (event) => {
|
||||
handlers.onFocus?.(event);
|
||||
handleFocus(event);
|
||||
},
|
||||
onBlur: (event) => {
|
||||
handlers.onBlur?.(event);
|
||||
handleBlur(event);
|
||||
}
|
||||
}),
|
||||
ownerState,
|
||||
additionalProps: {
|
||||
centerRipple: true,
|
||||
focusRipple: !disableFocusRipple,
|
||||
role: void 0,
|
||||
tabIndex: null
|
||||
}
|
||||
});
|
||||
const [InputSlot, inputSlotProps] = useSlot("input", {
|
||||
elementType: SwitchBaseInput,
|
||||
className: classes.input,
|
||||
externalForwardedProps,
|
||||
getSlotProps: (handlers) => ({
|
||||
...handlers,
|
||||
onChange: (event) => {
|
||||
handlers.onChange?.(event);
|
||||
handleInputChange(event);
|
||||
}
|
||||
}),
|
||||
ownerState,
|
||||
additionalProps: {
|
||||
autoFocus,
|
||||
checked: checkedProp,
|
||||
defaultChecked,
|
||||
disabled,
|
||||
id: hasLabelFor ? id : void 0,
|
||||
name,
|
||||
readOnly,
|
||||
required,
|
||||
tabIndex,
|
||||
type,
|
||||
...type === "checkbox" && value === void 0 ? {} : { value }
|
||||
}
|
||||
});
|
||||
return /*#__PURE__*/ (0, import_jsx_runtime.jsxs)(RootSlot, {
|
||||
...rootSlotProps,
|
||||
children: [/*#__PURE__*/ (0, import_jsx_runtime.jsx)(InputSlot, { ...inputSlotProps }), checked ? checkedIcon : icon]
|
||||
});
|
||||
});
|
||||
SwitchBase.propTypes = {
|
||||
/**
|
||||
* If `true`, the `input` element is focused during the first mount.
|
||||
*/
|
||||
autoFocus: import_prop_types.default.bool,
|
||||
/**
|
||||
* If `true`, the component is checked.
|
||||
*/
|
||||
checked: import_prop_types.default.bool,
|
||||
/**
|
||||
* The icon to display when the component is checked.
|
||||
*/
|
||||
checkedIcon: import_prop_types.default.node.isRequired,
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: import_prop_types.default.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: import_prop_types.default.string,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
defaultChecked: import_prop_types.default.bool,
|
||||
/**
|
||||
* If `true`, the component is disabled.
|
||||
*/
|
||||
disabled: import_prop_types.default.bool,
|
||||
/**
|
||||
* If `true`, the keyboard focus ripple is disabled.
|
||||
* @default false
|
||||
*/
|
||||
disableFocusRipple: import_prop_types.default.bool,
|
||||
/**
|
||||
* If given, uses a negative margin to counteract the padding on one
|
||||
* side (this is often helpful for aligning the left or right
|
||||
* side of the icon with content above or below, without ruining the border
|
||||
* size and shape).
|
||||
* @default false
|
||||
*/
|
||||
edge: import_prop_types.default.oneOf([
|
||||
"end",
|
||||
"start",
|
||||
false
|
||||
]),
|
||||
/**
|
||||
* The icon to display when the component is unchecked.
|
||||
*/
|
||||
icon: import_prop_types.default.node.isRequired,
|
||||
/**
|
||||
* The id of the `input` element.
|
||||
*/
|
||||
id: import_prop_types.default.string,
|
||||
name: import_prop_types.default.string,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onBlur: import_prop_types.default.func,
|
||||
/**
|
||||
* Callback fired when the state is changed.
|
||||
*
|
||||
* @param {object} event The event source of the callback.
|
||||
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
||||
*/
|
||||
onChange: import_prop_types.default.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onFocus: import_prop_types.default.func,
|
||||
/**
|
||||
* It prevents the user from changing the value of the field
|
||||
* (not from interacting with the field).
|
||||
*/
|
||||
readOnly: import_prop_types.default.bool,
|
||||
/**
|
||||
* If `true`, the `input` element is required.
|
||||
*/
|
||||
required: import_prop_types.default.bool,
|
||||
/**
|
||||
* The props used for each slot inside.
|
||||
* @default {}
|
||||
*/
|
||||
slotProps: import_prop_types.default.shape({
|
||||
input: import_prop_types.default.oneOfType([import_prop_types.default.func, import_prop_types.default.object]),
|
||||
root: import_prop_types.default.oneOfType([import_prop_types.default.func, import_prop_types.default.object])
|
||||
}),
|
||||
/**
|
||||
* The components used for each slot inside.
|
||||
* @default {}
|
||||
*/
|
||||
slots: import_prop_types.default.shape({
|
||||
input: import_prop_types.default.elementType,
|
||||
root: import_prop_types.default.elementType
|
||||
}),
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx: import_prop_types.default.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
tabIndex: import_prop_types.default.oneOfType([import_prop_types.default.number, import_prop_types.default.string]),
|
||||
/**
|
||||
* The input component prop `type`.
|
||||
*/
|
||||
type: import_prop_types.default.string.isRequired,
|
||||
/**
|
||||
* The value of the component.
|
||||
*/
|
||||
value: import_prop_types.default.any
|
||||
};
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/internal/svg-icons/CheckBoxOutlineBlank.mjs
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
var CheckBoxOutlineBlank_default = createSvgIcon(/*#__PURE__*/ (0, import_jsx_runtime.jsx)("path", { d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" }), "CheckBoxOutlineBlank");
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/internal/svg-icons/CheckBox.mjs
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
var CheckBox_default = createSvgIcon(/*#__PURE__*/ (0, import_jsx_runtime.jsx)("path", { d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" }), "CheckBox");
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/internal/svg-icons/IndeterminateCheckBox.mjs
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
var IndeterminateCheckBox_default = createSvgIcon(/*#__PURE__*/ (0, import_jsx_runtime.jsx)("path", { d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z" }), "IndeterminateCheckBox");
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/Checkbox/Checkbox.mjs
|
||||
var useUtilityClasses = (ownerState) => {
|
||||
const { classes, indeterminate, color, size } = ownerState;
|
||||
const slots = { root: [
|
||||
"root",
|
||||
indeterminate && "indeterminate",
|
||||
`color${capitalize_default(color)}`,
|
||||
`size${capitalize_default(size)}`
|
||||
] };
|
||||
const composedClasses = composeClasses(slots, getCheckboxUtilityClass, classes);
|
||||
return {
|
||||
...classes,
|
||||
...composedClasses
|
||||
};
|
||||
};
|
||||
var CheckboxRoot = styled(SwitchBase, {
|
||||
shouldForwardProp: (prop) => rootShouldForwardProp(prop) || prop === "classes",
|
||||
name: "MuiCheckbox",
|
||||
slot: "Root",
|
||||
overridesResolver: (props, styles) => {
|
||||
const { ownerState } = props;
|
||||
return [
|
||||
styles.root,
|
||||
ownerState.indeterminate && styles.indeterminate,
|
||||
styles[`size${capitalize_default(ownerState.size)}`],
|
||||
ownerState.color !== "default" && styles[`color${capitalize_default(ownerState.color)}`]
|
||||
];
|
||||
}
|
||||
})(memoTheme(({ theme }) => ({
|
||||
color: (theme.vars || theme).palette.text.secondary,
|
||||
variants: [
|
||||
{
|
||||
props: {
|
||||
color: "default",
|
||||
disableRipple: false
|
||||
},
|
||||
style: { "&:hover": { backgroundColor: theme.alpha((theme.vars || theme).palette.action.active, (theme.vars || theme).palette.action.hoverOpacity) } }
|
||||
},
|
||||
...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({
|
||||
props: {
|
||||
color,
|
||||
disableRipple: false
|
||||
},
|
||||
style: { "&:hover": { backgroundColor: theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.hoverOpacity) } }
|
||||
})),
|
||||
...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({
|
||||
props: { color },
|
||||
style: {
|
||||
[`&.${checkboxClasses.checked}, &.${checkboxClasses.indeterminate}`]: { color: (theme.vars || theme).palette[color].main },
|
||||
[`&.${checkboxClasses.disabled}`]: { color: (theme.vars || theme).palette.action.disabled }
|
||||
}
|
||||
})),
|
||||
{
|
||||
props: { disableRipple: false },
|
||||
style: { "&:hover": { "@media (hover: none)": { backgroundColor: "transparent" } } }
|
||||
}
|
||||
]
|
||||
})));
|
||||
var defaultCheckedIcon = /*#__PURE__*/ (0, import_jsx_runtime.jsx)(CheckBox_default, {});
|
||||
var defaultIcon = /*#__PURE__*/ (0, import_jsx_runtime.jsx)(CheckBoxOutlineBlank_default, {});
|
||||
var defaultIndeterminateIcon = /*#__PURE__*/ (0, import_jsx_runtime.jsx)(IndeterminateCheckBox_default, {});
|
||||
var Checkbox = /*#__PURE__*/ import_react.forwardRef(function Checkbox(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: "MuiCheckbox"
|
||||
});
|
||||
const { checkedIcon = defaultCheckedIcon, color = "primary", icon: iconProp = defaultIcon, indeterminate = false, indeterminateIcon: indeterminateIconProp = defaultIndeterminateIcon, size = "medium", disableRipple = false, className, slots = {}, slotProps = {}, ...other } = props;
|
||||
const icon = indeterminate ? indeterminateIconProp : iconProp;
|
||||
const indeterminateIcon = indeterminate ? indeterminateIconProp : checkedIcon;
|
||||
const ownerState = {
|
||||
...props,
|
||||
disableRipple,
|
||||
color,
|
||||
indeterminate,
|
||||
size
|
||||
};
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
const externalInputProps = slotProps.input;
|
||||
const [RootSlot, rootSlotProps] = useSlot("root", {
|
||||
ref,
|
||||
elementType: CheckboxRoot,
|
||||
className: clsx(classes.root, className),
|
||||
shouldForwardComponentProp: true,
|
||||
externalForwardedProps: {
|
||||
slots,
|
||||
slotProps,
|
||||
...other
|
||||
},
|
||||
ownerState,
|
||||
additionalProps: {
|
||||
type: "checkbox",
|
||||
icon: /*#__PURE__*/ import_react.cloneElement(icon, { fontSize: icon.props.fontSize ?? size }),
|
||||
checkedIcon: /*#__PURE__*/ import_react.cloneElement(indeterminateIcon, { fontSize: indeterminateIcon.props.fontSize ?? size }),
|
||||
disableRipple: props.disableRipple,
|
||||
slots,
|
||||
slotProps: { input: mergeSlotProps(typeof externalInputProps === "function" ? externalInputProps(ownerState) : externalInputProps, {
|
||||
"data-indeterminate": indeterminate,
|
||||
"aria-checked": indeterminate ? "mixed" : void 0
|
||||
}) }
|
||||
}
|
||||
});
|
||||
return /*#__PURE__*/ (0, import_jsx_runtime.jsx)(RootSlot, {
|
||||
...rootSlotProps,
|
||||
classes
|
||||
});
|
||||
});
|
||||
Checkbox.propTypes = {
|
||||
/**
|
||||
* If `true`, the component is checked.
|
||||
*/
|
||||
checked: import_prop_types.default.bool,
|
||||
/**
|
||||
* The icon to display when the component is checked.
|
||||
* @default <CheckBoxIcon />
|
||||
*/
|
||||
checkedIcon: import_prop_types.default.node,
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: import_prop_types.default.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: import_prop_types.default.string,
|
||||
/**
|
||||
* The color of the component.
|
||||
* It supports both default and custom theme colors, which can be added as shown in the
|
||||
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
||||
* @default 'primary'
|
||||
*/
|
||||
color: import_prop_types.default.oneOfType([import_prop_types.default.oneOf([
|
||||
"default",
|
||||
"primary",
|
||||
"secondary",
|
||||
"error",
|
||||
"info",
|
||||
"success",
|
||||
"warning"
|
||||
]), import_prop_types.default.string]),
|
||||
/**
|
||||
* The default checked state. Use when the component is not controlled.
|
||||
*/
|
||||
defaultChecked: import_prop_types.default.bool,
|
||||
/**
|
||||
* If `true`, the component is disabled.
|
||||
* @default false
|
||||
*/
|
||||
disabled: import_prop_types.default.bool,
|
||||
/**
|
||||
* If `true`, the ripple effect is disabled.
|
||||
* @default false
|
||||
*/
|
||||
disableRipple: import_prop_types.default.bool,
|
||||
/**
|
||||
* The icon to display when the component is unchecked.
|
||||
* @default <CheckBoxOutlineBlankIcon />
|
||||
*/
|
||||
icon: import_prop_types.default.node,
|
||||
/**
|
||||
* The id of the `input` element.
|
||||
*/
|
||||
id: import_prop_types.default.string,
|
||||
/**
|
||||
* If `true`, the component appears indeterminate.
|
||||
* This does not set the native input element to indeterminate due
|
||||
* to inconsistent behavior across browsers.
|
||||
* However, we set a `data-indeterminate` attribute on the `input`.
|
||||
* @default false
|
||||
*/
|
||||
indeterminate: import_prop_types.default.bool,
|
||||
/**
|
||||
* The icon to display when the component is indeterminate.
|
||||
* @default <IndeterminateCheckBoxIcon />
|
||||
*/
|
||||
indeterminateIcon: import_prop_types.default.node,
|
||||
/**
|
||||
* Callback fired when the state is changed.
|
||||
*
|
||||
* @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
|
||||
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
||||
*/
|
||||
onChange: import_prop_types.default.func,
|
||||
/**
|
||||
* If `true`, the `input` element is required.
|
||||
* @default false
|
||||
*/
|
||||
required: import_prop_types.default.bool,
|
||||
/**
|
||||
* The size of the component.
|
||||
* `small` is equivalent to the dense checkbox styling.
|
||||
* @default 'medium'
|
||||
*/
|
||||
size: import_prop_types.default.oneOfType([import_prop_types.default.oneOf(["medium", "small"]), import_prop_types.default.string]),
|
||||
/**
|
||||
* The props used for each slot inside.
|
||||
* @default {}
|
||||
*/
|
||||
slotProps: import_prop_types.default.shape({
|
||||
input: import_prop_types.default.oneOfType([import_prop_types.default.func, import_prop_types.default.object]),
|
||||
root: import_prop_types.default.oneOfType([import_prop_types.default.func, import_prop_types.default.object])
|
||||
}),
|
||||
/**
|
||||
* The components used for each slot inside.
|
||||
* @default {}
|
||||
*/
|
||||
slots: import_prop_types.default.shape({
|
||||
input: import_prop_types.default.elementType,
|
||||
root: import_prop_types.default.elementType
|
||||
}),
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx: import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.arrayOf(import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object,
|
||||
import_prop_types.default.bool
|
||||
])),
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object
|
||||
]),
|
||||
/**
|
||||
* The value of the component. The DOM API casts this to a string.
|
||||
* The browser uses "on" as the default value.
|
||||
*/
|
||||
value: import_prop_types.default.any
|
||||
};
|
||||
//#endregion
|
||||
export { getCheckboxUtilityClass as a, checkboxClasses as i, SwitchBase as n, Close_default as r, Checkbox as t };
|
||||
Generated
Vendored
+1
File diff suppressed because one or more lines are too long
Generated
Vendored
+338
@@ -0,0 +1,338 @@
|
||||
import { r as __toESM } from "./rolldown-runtime-DC62tzP2.js";
|
||||
import { t as require_react } from "./react.js";
|
||||
import { t as require_jsx_runtime } from "./react_jsx-runtime.js";
|
||||
import { t as require_prop_types } from "./prop-types-C5owi9-6.js";
|
||||
import { F as generateUtilityClasses, G as keyframes, I as generateUtilityClass, W as css, ut as clsx } from "./identifier-Db3dwgA7.js";
|
||||
import { l as composeClasses, t as styled } from "./styled-ry4r-NKP.js";
|
||||
import { t as capitalize_default } from "./capitalize-DESO4t23.js";
|
||||
import { t as useDefaultProps } from "./DefaultPropsProvider-C8vOQ3_j.js";
|
||||
import { t as memoTheme } from "./memoTheme-Ciuals54.js";
|
||||
import { t as chainPropTypes } from "./chainPropTypes-DS_z862G.js";
|
||||
import { i as getTransitionStyles, t as getReducedMotionStyles } from "./utils-BCVtNTPx.js";
|
||||
import { t as createSimplePaletteValueFilter } from "./createSimplePaletteValueFilter-BhADkSm9.js";
|
||||
//#region node_modules/@mui/material/CircularProgress/circularProgressClasses.mjs
|
||||
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
||||
var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types(), 1);
|
||||
function getCircularProgressUtilityClass(slot) {
|
||||
return generateUtilityClass("MuiCircularProgress", slot);
|
||||
}
|
||||
var circularProgressClasses = generateUtilityClasses("MuiCircularProgress", [
|
||||
"root",
|
||||
"determinate",
|
||||
"indeterminate",
|
||||
"colorPrimary",
|
||||
"colorSecondary",
|
||||
"svg",
|
||||
"track",
|
||||
"circle",
|
||||
"circleDisableShrink"
|
||||
]);
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/CircularProgress/CircularProgress.mjs
|
||||
var import_jsx_runtime = require_jsx_runtime();
|
||||
var SIZE = 44;
|
||||
var warnedMinMaxWithoutVariant = false;
|
||||
var warnedInvalidMinMaxValue = false;
|
||||
var circularRotateKeyframe = keyframes`
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
`;
|
||||
var circularDashKeyframe = keyframes`
|
||||
0% {
|
||||
stroke-dasharray: 1px, 200px;
|
||||
stroke-dashoffset: 0;
|
||||
}
|
||||
|
||||
50% {
|
||||
stroke-dasharray: 100px, 200px;
|
||||
stroke-dashoffset: -15px;
|
||||
}
|
||||
|
||||
100% {
|
||||
stroke-dasharray: 1px, 200px;
|
||||
stroke-dashoffset: -126px;
|
||||
}
|
||||
`;
|
||||
var rotateAnimation = typeof circularRotateKeyframe !== "string" ? css`
|
||||
animation: ${circularRotateKeyframe} 1.4s linear infinite;
|
||||
` : null;
|
||||
var dashAnimation = typeof circularDashKeyframe !== "string" ? css`
|
||||
animation: ${circularDashKeyframe} 1.4s ease-in-out infinite;
|
||||
` : null;
|
||||
var useUtilityClasses = (ownerState) => {
|
||||
const { classes, variant, color, disableShrink } = ownerState;
|
||||
const slots = {
|
||||
root: [
|
||||
"root",
|
||||
variant,
|
||||
`color${capitalize_default(color)}`
|
||||
],
|
||||
svg: ["svg"],
|
||||
track: ["track"],
|
||||
circle: ["circle", disableShrink && "circleDisableShrink"]
|
||||
};
|
||||
return composeClasses(slots, getCircularProgressUtilityClass, classes);
|
||||
};
|
||||
var CircularProgressRoot = styled("span", {
|
||||
name: "MuiCircularProgress",
|
||||
slot: "Root",
|
||||
overridesResolver: (props, styles) => {
|
||||
const { ownerState } = props;
|
||||
return [
|
||||
styles.root,
|
||||
styles[ownerState.variant],
|
||||
styles[`color${capitalize_default(ownerState.color)}`]
|
||||
];
|
||||
}
|
||||
})(memoTheme(({ theme }) => {
|
||||
const reducedMotionAnimationStyles = getReducedMotionStyles(theme, { animation: "none" });
|
||||
return {
|
||||
display: "inline-block",
|
||||
variants: [
|
||||
{
|
||||
props: { variant: "determinate" },
|
||||
style: { ...getTransitionStyles(theme, "transform") }
|
||||
},
|
||||
{
|
||||
props: { variant: "indeterminate" },
|
||||
style: rotateAnimation || { animation: `${circularRotateKeyframe} 1.4s linear infinite` }
|
||||
},
|
||||
...reducedMotionAnimationStyles ? [{
|
||||
props: { variant: "indeterminate" },
|
||||
style: reducedMotionAnimationStyles
|
||||
}] : [],
|
||||
...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({
|
||||
props: { color },
|
||||
style: { color: (theme.vars || theme).palette[color].main }
|
||||
}))
|
||||
]
|
||||
};
|
||||
}));
|
||||
var CircularProgressSVG = styled("svg", {
|
||||
name: "MuiCircularProgress",
|
||||
slot: "Svg"
|
||||
})({ display: "block" });
|
||||
var CircularProgressCircle = styled("circle", {
|
||||
name: "MuiCircularProgress",
|
||||
slot: "Circle",
|
||||
overridesResolver: (props, styles) => {
|
||||
const { ownerState } = props;
|
||||
return [styles.circle, ownerState.disableShrink && styles.circleDisableShrink];
|
||||
}
|
||||
})(memoTheme(({ theme }) => {
|
||||
const reducedMotionAnimationStyles = getReducedMotionStyles(theme, { animation: "none" });
|
||||
return {
|
||||
stroke: "currentColor",
|
||||
variants: [
|
||||
{
|
||||
props: { variant: "determinate" },
|
||||
style: { ...getTransitionStyles(theme, "stroke-dashoffset") }
|
||||
},
|
||||
{
|
||||
props: { variant: "indeterminate" },
|
||||
style: {
|
||||
strokeDasharray: "80px, 200px",
|
||||
strokeDashoffset: 0
|
||||
}
|
||||
},
|
||||
{
|
||||
props: ({ ownerState }) => ownerState.variant === "indeterminate" && !ownerState.disableShrink,
|
||||
style: dashAnimation || { animation: `${circularDashKeyframe} 1.4s ease-in-out infinite` }
|
||||
},
|
||||
...reducedMotionAnimationStyles ? [{
|
||||
props: ({ ownerState }) => ownerState.variant === "indeterminate" && !ownerState.disableShrink,
|
||||
style: reducedMotionAnimationStyles
|
||||
}] : []
|
||||
]
|
||||
};
|
||||
}));
|
||||
var CircularProgressTrack = styled("circle", {
|
||||
name: "MuiCircularProgress",
|
||||
slot: "Track"
|
||||
})(memoTheme(({ theme }) => ({
|
||||
stroke: "currentColor",
|
||||
opacity: (theme.vars || theme).palette.action.activatedOpacity
|
||||
})));
|
||||
/**
|
||||
* ## ARIA
|
||||
*
|
||||
* If the progress bar is describing the loading progress of a particular region of a page,
|
||||
* you should use `aria-describedby` to point to the progress bar, and set the `aria-busy`
|
||||
* attribute to `true` on that region until it has finished loading.
|
||||
*/
|
||||
var CircularProgress = /*#__PURE__*/ import_react.forwardRef(function CircularProgress(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: "MuiCircularProgress"
|
||||
});
|
||||
const { className, color = "primary", disableShrink = false, enableTrackSlot = false, min: minProp, max: maxProp, size = 40, style, thickness = 3.6, value = props.min ?? 0, variant = "indeterminate", ...other } = props;
|
||||
if (!warnedMinMaxWithoutVariant && variant === "indeterminate" && (minProp !== void 0 || maxProp !== void 0)) {
|
||||
console.warn(`MUI: You have provided the \`min\` or \`max\` props with an 'indeterminate' variant. These props will have no effect.`);
|
||||
warnedMinMaxWithoutVariant = true;
|
||||
}
|
||||
const min = minProp ?? 0;
|
||||
const max = maxProp ?? 100;
|
||||
const ownerState = {
|
||||
...props,
|
||||
color,
|
||||
disableShrink,
|
||||
size,
|
||||
thickness,
|
||||
value,
|
||||
variant,
|
||||
enableTrackSlot
|
||||
};
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
const circleStyle = {};
|
||||
const rootStyle = {};
|
||||
const rootProps = {};
|
||||
if (variant === "determinate") {
|
||||
const circumference = 2 * Math.PI * ((SIZE - thickness) / 2);
|
||||
if (!warnedInvalidMinMaxValue && (value < min || value > max || min >= max)) {
|
||||
console.error(`MUI: The min, max, and value props in CircularProgress should be numbers where min < max and min <= value <= max. Received min=${min}, max=${max}, value=${value}.`);
|
||||
warnedInvalidMinMaxValue = true;
|
||||
}
|
||||
const range = max - min;
|
||||
circleStyle.strokeDasharray = circumference.toFixed(3);
|
||||
circleStyle.strokeDashoffset = range > 0 ? `${((max - value) / range * circumference).toFixed(3)}px` : `${circumference.toFixed(3)}px`;
|
||||
rootStyle.transform = "rotate(-90deg)";
|
||||
rootProps["aria-valuenow"] = value;
|
||||
rootProps["aria-valuemin"] = min;
|
||||
rootProps["aria-valuemax"] = max;
|
||||
}
|
||||
return /*#__PURE__*/ (0, import_jsx_runtime.jsx)(CircularProgressRoot, {
|
||||
className: clsx(classes.root, className),
|
||||
style: {
|
||||
width: size,
|
||||
height: size,
|
||||
...rootStyle,
|
||||
...style
|
||||
},
|
||||
ownerState,
|
||||
ref,
|
||||
role: "progressbar",
|
||||
...rootProps,
|
||||
...other,
|
||||
children: /*#__PURE__*/ (0, import_jsx_runtime.jsxs)(CircularProgressSVG, {
|
||||
className: classes.svg,
|
||||
ownerState,
|
||||
viewBox: `${SIZE / 2} ${SIZE / 2} ${SIZE} ${SIZE}`,
|
||||
children: [enableTrackSlot ? /*#__PURE__*/ (0, import_jsx_runtime.jsx)(CircularProgressTrack, {
|
||||
className: classes.track,
|
||||
ownerState,
|
||||
cx: SIZE,
|
||||
cy: SIZE,
|
||||
r: (SIZE - thickness) / 2,
|
||||
fill: "none",
|
||||
strokeWidth: thickness,
|
||||
"aria-hidden": "true"
|
||||
}) : null, /*#__PURE__*/ (0, import_jsx_runtime.jsx)(CircularProgressCircle, {
|
||||
className: classes.circle,
|
||||
style: circleStyle,
|
||||
ownerState,
|
||||
cx: SIZE,
|
||||
cy: SIZE,
|
||||
r: (SIZE - thickness) / 2,
|
||||
fill: "none",
|
||||
strokeWidth: thickness
|
||||
})]
|
||||
})
|
||||
});
|
||||
});
|
||||
CircularProgress.propTypes = {
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: import_prop_types.default.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: import_prop_types.default.string,
|
||||
/**
|
||||
* The color of the component.
|
||||
* It supports both default and custom theme colors, which can be added as shown in the
|
||||
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
||||
* @default 'primary'
|
||||
*/
|
||||
color: import_prop_types.default.oneOfType([import_prop_types.default.oneOf([
|
||||
"inherit",
|
||||
"primary",
|
||||
"secondary",
|
||||
"error",
|
||||
"info",
|
||||
"success",
|
||||
"warning"
|
||||
]), import_prop_types.default.string]),
|
||||
/**
|
||||
* If `true`, the shrink animation is disabled.
|
||||
* This only works if variant is `indeterminate`.
|
||||
* @default false
|
||||
*/
|
||||
disableShrink: chainPropTypes(import_prop_types.default.bool, (props) => {
|
||||
if (props.disableShrink && props.variant && props.variant !== "indeterminate") return /* @__PURE__ */ new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect.");
|
||||
return 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.
|
||||
* @default false
|
||||
*/
|
||||
enableTrackSlot: import_prop_types.default.bool,
|
||||
/**
|
||||
* The maximum value for the progress indicator for the determinate variant.
|
||||
* @default 100
|
||||
*/
|
||||
max: import_prop_types.default.number,
|
||||
/**
|
||||
* The minimum value for the progress indicator for the determinate variant.
|
||||
* @default 0
|
||||
*/
|
||||
min: import_prop_types.default.number,
|
||||
/**
|
||||
* The size of the component.
|
||||
* If using a number, the pixel unit is assumed.
|
||||
* If using a string, you need to provide the CSS unit, for example '3rem'.
|
||||
* @default 40
|
||||
*/
|
||||
size: import_prop_types.default.oneOfType([import_prop_types.default.number, import_prop_types.default.string]),
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
style: import_prop_types.default.object,
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx: import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.arrayOf(import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object,
|
||||
import_prop_types.default.bool
|
||||
])),
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object
|
||||
]),
|
||||
/**
|
||||
* The thickness of the circle.
|
||||
* @default 3.6
|
||||
*/
|
||||
thickness: import_prop_types.default.number,
|
||||
/**
|
||||
* The value of the progress indicator for the determinate variant.
|
||||
* Value between `min` and `max`.
|
||||
* @default props.min ?? 0
|
||||
*/
|
||||
value: import_prop_types.default.number,
|
||||
/**
|
||||
* The variant to use.
|
||||
* Use indeterminate when there is no progress value.
|
||||
* @default 'indeterminate'
|
||||
*/
|
||||
variant: import_prop_types.default.oneOf(["determinate", "indeterminate"])
|
||||
};
|
||||
//#endregion
|
||||
export { circularProgressClasses as n, getCircularProgressUtilityClass as r, CircularProgress as t };
|
||||
Generated
Vendored
+1
File diff suppressed because one or more lines are too long
Generated
Vendored
+61
@@ -0,0 +1,61 @@
|
||||
import { r as __toESM } from "./rolldown-runtime-DC62tzP2.js";
|
||||
import { t as require_react } from "./react.js";
|
||||
import { t as require_jsx_runtime } from "./react_jsx-runtime.js";
|
||||
import { t as require_prop_types } from "./prop-types-C5owi9-6.js";
|
||||
import { a as resolveProps } from "./styled-ry4r-NKP.js";
|
||||
//#region node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.mjs
|
||||
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
||||
var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types(), 1);
|
||||
var import_jsx_runtime = require_jsx_runtime();
|
||||
var PropsContext = /*#__PURE__*/ import_react.createContext(void 0);
|
||||
function DefaultPropsProvider$1({ value, children }) {
|
||||
return /*#__PURE__*/ (0, import_jsx_runtime.jsx)(PropsContext.Provider, {
|
||||
value,
|
||||
children
|
||||
});
|
||||
}
|
||||
DefaultPropsProvider$1.propTypes = {
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
children: import_prop_types.default.node,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
value: import_prop_types.default.object
|
||||
};
|
||||
function getThemeProps(params) {
|
||||
const { theme, name, props } = params;
|
||||
if (!theme || !theme.components || !theme.components[name]) return props;
|
||||
const config = theme.components[name];
|
||||
if (config.defaultProps) return resolveProps(config.defaultProps, props, theme.components.mergeClassNameAndStyle);
|
||||
if (!config.styleOverrides && !config.variants) return resolveProps(config, props, theme.components.mergeClassNameAndStyle);
|
||||
return props;
|
||||
}
|
||||
function useDefaultProps$1({ props, name }) {
|
||||
return getThemeProps({
|
||||
props,
|
||||
name,
|
||||
theme: { components: import_react.useContext(PropsContext) }
|
||||
});
|
||||
}
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/DefaultPropsProvider/DefaultPropsProvider.mjs
|
||||
function DefaultPropsProvider(props) {
|
||||
return /*#__PURE__*/ (0, import_jsx_runtime.jsx)(DefaultPropsProvider$1, { ...props });
|
||||
}
|
||||
DefaultPropsProvider.propTypes = {
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
children: import_prop_types.default.node,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
value: import_prop_types.default.object.isRequired
|
||||
};
|
||||
function useDefaultProps(params) {
|
||||
return useDefaultProps$1(params);
|
||||
}
|
||||
//#endregion
|
||||
export { DefaultPropsProvider$1 as n, useDefaultProps as t };
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"DefaultPropsProvider-C8vOQ3_j.js","names":["DefaultPropsProvider","PropTypes","useDefaultProps","SystemDefaultPropsProvider","PropTypes","useSystemDefaultProps"],"sources":["../../@mui/system/DefaultPropsProvider/DefaultPropsProvider.mjs","../../@mui/material/DefaultPropsProvider/DefaultPropsProvider.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport resolveProps from '@mui/utils/resolveProps';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst PropsContext = /*#__PURE__*/React.createContext(undefined);\nfunction DefaultPropsProvider({\n value,\n children\n}) {\n return /*#__PURE__*/_jsx(PropsContext.Provider, {\n value: value,\n children: children\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? DefaultPropsProvider.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * @ignore\n */\n children: PropTypes.node,\n /**\n * @ignore\n */\n value: PropTypes.object\n} : void 0;\nfunction getThemeProps(params) {\n const {\n theme,\n name,\n props\n } = params;\n if (!theme || !theme.components || !theme.components[name]) {\n return props;\n }\n const config = theme.components[name];\n if (config.defaultProps) {\n // compatible with v5 signature\n return resolveProps(config.defaultProps, props, theme.components.mergeClassNameAndStyle);\n }\n if (!config.styleOverrides && !config.variants) {\n // v6 signature, no property 'defaultProps'\n return resolveProps(config, props, theme.components.mergeClassNameAndStyle);\n }\n return props;\n}\nexport function useDefaultProps({\n props,\n name\n}) {\n const ctx = React.useContext(PropsContext);\n return getThemeProps({\n props,\n name,\n theme: {\n components: ctx\n }\n });\n}\nexport default DefaultPropsProvider;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport SystemDefaultPropsProvider, { useDefaultProps as useSystemDefaultProps } from '@mui/system/DefaultPropsProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction DefaultPropsProvider(props) {\n return /*#__PURE__*/_jsx(SystemDefaultPropsProvider, {\n ...props\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? DefaultPropsProvider.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * @ignore\n */\n children: PropTypes.node,\n /**\n * @ignore\n */\n value: PropTypes.object.isRequired\n} : void 0;\nexport default DefaultPropsProvider;\nexport function useDefaultProps(params) {\n return useSystemDefaultProps(params);\n}"],"mappings":";;;;;;;;;AAMA,IAAM,eAA4B,2BAAM,cAAc,KAAA,CAAS;AAC/D,SAASA,uBAAqB,EAC5B,OACA,YACC;CACD,OAAoB,eAAA,GAAA,mBAAA,IAAA,CAAK,aAAa,UAAU;EACvC;EACG;CACZ,CAAC;AACH;AACwC,uBAAqB,YAAmC;;;;CAQ9F,UAAUC,kBAAAA,QAAU;;;;CAIpB,OAAOA,kBAAAA,QAAU;AACnB;AACA,SAAS,cAAc,QAAQ;CAC7B,MAAM,EACJ,OACA,MACA,UACE;CACJ,IAAI,CAAC,SAAS,CAAC,MAAM,cAAc,CAAC,MAAM,WAAW,OACnD,OAAO;CAET,MAAM,SAAS,MAAM,WAAW;CAChC,IAAI,OAAO,cAET,OAAO,aAAa,OAAO,cAAc,OAAO,MAAM,WAAW,sBAAsB;CAEzF,IAAI,CAAC,OAAO,kBAAkB,CAAC,OAAO,UAEpC,OAAO,aAAa,QAAQ,OAAO,MAAM,WAAW,sBAAsB;CAE5E,OAAO;AACT;AACA,SAAgBC,kBAAgB,EAC9B,OACA,QACC;CAED,OAAO,cAAc;EACnB;EACA;EACA,OAAO,EACL,YAAA,aALc,WAAW,YAKX,EAChB;CACF,CAAC;AACH;;;ACxDA,SAAS,qBAAqB,OAAO;CACnC,OAAoB,eAAA,GAAA,mBAAA,IAAA,CAAKC,wBAA4B,EACnD,GAAG,MACL,CAAC;AACH;AACwC,qBAAqB,YAAmC;;;;CAQ9F,UAAUC,kBAAAA,QAAU;;;;CAIpB,OAAOA,kBAAAA,QAAU,OAAO;AAC1B;AAEA,SAAgB,gBAAgB,QAAQ;CACtC,OAAOC,kBAAsB,MAAM;AACrC"}
|
||||
+437
@@ -0,0 +1,437 @@
|
||||
import { r as __toESM } from "./rolldown-runtime-DC62tzP2.js";
|
||||
import { t as require_react } from "./react.js";
|
||||
import { t as require_jsx_runtime } from "./react_jsx-runtime.js";
|
||||
import { t as require_prop_types } from "./prop-types-C5owi9-6.js";
|
||||
import { F as generateUtilityClasses, I as generateUtilityClass, ut as clsx } from "./identifier-Db3dwgA7.js";
|
||||
import { l as composeClasses, t as styled } from "./styled-ry4r-NKP.js";
|
||||
import { t as capitalize_default } from "./capitalize-DESO4t23.js";
|
||||
import { t as useDefaultProps } from "./DefaultPropsProvider-C8vOQ3_j.js";
|
||||
import { t as useId } from "./useId-BvBa7DUQ.js";
|
||||
import { t as memoTheme } from "./memoTheme-Ciuals54.js";
|
||||
import { n as useTheme } from "./chainPropTypes-DS_z862G.js";
|
||||
import { t as useSlot } from "./useSlot-DwQopxnD.js";
|
||||
import { a as FOCUSABLE_ATTRIBUTE, c as Backdrop, d as Fade, t as Modal } from "./Modal-rlYNDt8_.js";
|
||||
import { t as Paper } from "./Paper-BN2CUK32.js";
|
||||
import { t as DialogContext } from "./DialogContext-DQ3YWebh.js";
|
||||
//#region node_modules/@mui/material/Dialog/dialogClasses.mjs
|
||||
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
||||
var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types(), 1);
|
||||
function getDialogUtilityClass(slot) {
|
||||
return generateUtilityClass("MuiDialog", slot);
|
||||
}
|
||||
var dialogClasses = generateUtilityClasses("MuiDialog", [
|
||||
"root",
|
||||
"backdrop",
|
||||
"scrollPaper",
|
||||
"scrollBody",
|
||||
"container",
|
||||
"paper",
|
||||
"paperWidthFalse",
|
||||
"paperWidthXs",
|
||||
"paperWidthSm",
|
||||
"paperWidthMd",
|
||||
"paperWidthLg",
|
||||
"paperWidthXl",
|
||||
"paperFullWidth",
|
||||
"paperFullScreen"
|
||||
]);
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/Dialog/Dialog.mjs
|
||||
var import_jsx_runtime = require_jsx_runtime();
|
||||
var DialogBackdrop = styled(Backdrop, {
|
||||
name: "MuiDialog",
|
||||
slot: "Backdrop"
|
||||
})({ zIndex: -1 });
|
||||
var useUtilityClasses = (ownerState) => {
|
||||
const { classes, scroll, maxWidth, fullWidth, fullScreen } = ownerState;
|
||||
const slots = {
|
||||
root: ["root"],
|
||||
backdrop: ["backdrop"],
|
||||
container: ["container", `scroll${capitalize_default(scroll)}`],
|
||||
paper: [
|
||||
"paper",
|
||||
`paperWidth${capitalize_default(String(maxWidth))}`,
|
||||
fullWidth && "paperFullWidth",
|
||||
fullScreen && "paperFullScreen"
|
||||
]
|
||||
};
|
||||
return composeClasses(slots, getDialogUtilityClass, classes);
|
||||
};
|
||||
var DialogRoot = styled(Modal, {
|
||||
name: "MuiDialog",
|
||||
slot: "Root"
|
||||
})({ "@media print": { position: "absolute !important" } });
|
||||
var DialogContainer = styled("div", {
|
||||
name: "MuiDialog",
|
||||
slot: "Container",
|
||||
overridesResolver: (props, styles) => {
|
||||
const { ownerState } = props;
|
||||
return [styles.container, styles[`scroll${capitalize_default(ownerState.scroll)}`]];
|
||||
}
|
||||
})({
|
||||
height: "100%",
|
||||
"@media print": { height: "auto" },
|
||||
outline: 0,
|
||||
variants: [{
|
||||
props: { scroll: "paper" },
|
||||
style: {
|
||||
display: "flex",
|
||||
justifyContent: "center",
|
||||
alignItems: "center"
|
||||
}
|
||||
}, {
|
||||
props: { scroll: "body" },
|
||||
style: {
|
||||
overflowY: "auto",
|
||||
overflowX: "hidden",
|
||||
textAlign: "center",
|
||||
"&::after": {
|
||||
content: "\"\"",
|
||||
display: "inline-block",
|
||||
verticalAlign: "middle",
|
||||
height: "100%",
|
||||
width: "0"
|
||||
}
|
||||
}
|
||||
}]
|
||||
});
|
||||
var DialogPaper = styled(Paper, {
|
||||
name: "MuiDialog",
|
||||
slot: "Paper",
|
||||
overridesResolver: (props, styles) => {
|
||||
const { ownerState } = props;
|
||||
return [
|
||||
styles.paper,
|
||||
styles[`paperWidth${capitalize_default(String(ownerState.maxWidth))}`],
|
||||
ownerState.fullWidth && styles.paperFullWidth,
|
||||
ownerState.fullScreen && styles.paperFullScreen
|
||||
];
|
||||
}
|
||||
})(memoTheme(({ theme }) => ({
|
||||
margin: 32,
|
||||
position: "relative",
|
||||
overflowY: "auto",
|
||||
outline: 0,
|
||||
"@media print": {
|
||||
overflowY: "visible",
|
||||
boxShadow: "none"
|
||||
},
|
||||
variants: [
|
||||
{
|
||||
props: { scroll: "paper" },
|
||||
style: {
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
maxHeight: "calc(100% - 64px)"
|
||||
}
|
||||
},
|
||||
{
|
||||
props: { scroll: "body" },
|
||||
style: {
|
||||
display: "inline-block",
|
||||
verticalAlign: "middle",
|
||||
textAlign: "initial"
|
||||
}
|
||||
},
|
||||
{
|
||||
props: ({ ownerState }) => !ownerState.maxWidth,
|
||||
style: { maxWidth: "calc(100% - 64px)" }
|
||||
},
|
||||
{
|
||||
props: { maxWidth: "xs" },
|
||||
style: { maxWidth: theme.breakpoints.unit === "px" ? Math.max(theme.breakpoints.values.xs, 444) : `max(${theme.breakpoints.values.xs}${theme.breakpoints.unit}, 444px)` }
|
||||
},
|
||||
{
|
||||
props: {
|
||||
maxWidth: "xs",
|
||||
scroll: "body"
|
||||
},
|
||||
style: { [theme.breakpoints.down(Math.max(theme.breakpoints.values.xs, 444) + 64)]: { maxWidth: "calc(100% - 64px)" } }
|
||||
},
|
||||
...Object.keys(theme.breakpoints.values).filter((maxWidth) => maxWidth !== "xs").map((maxWidth) => ({
|
||||
props: { maxWidth },
|
||||
style: { maxWidth: `${theme.breakpoints.values[maxWidth]}${theme.breakpoints.unit}` }
|
||||
})),
|
||||
...Object.keys(theme.breakpoints.values).filter((maxWidth) => maxWidth !== "xs").map((maxWidth) => ({
|
||||
props: {
|
||||
maxWidth,
|
||||
scroll: "body"
|
||||
},
|
||||
style: { [theme.breakpoints.down(theme.breakpoints.values[maxWidth] + 64)]: { maxWidth: "calc(100% - 64px)" } }
|
||||
})),
|
||||
{
|
||||
props: ({ ownerState }) => ownerState.fullWidth,
|
||||
style: { width: "calc(100% - 64px)" }
|
||||
},
|
||||
{
|
||||
props: ({ ownerState }) => ownerState.fullScreen,
|
||||
style: {
|
||||
margin: 0,
|
||||
width: "100%",
|
||||
maxWidth: "100%",
|
||||
height: "100%",
|
||||
maxHeight: "none",
|
||||
borderRadius: 0
|
||||
}
|
||||
},
|
||||
{
|
||||
props: ({ ownerState }) => ownerState.fullScreen && ownerState.scroll === "body",
|
||||
style: {
|
||||
margin: 0,
|
||||
maxWidth: "100%"
|
||||
}
|
||||
}
|
||||
]
|
||||
})));
|
||||
/**
|
||||
* Dialogs are overlaid modal paper based components with a backdrop.
|
||||
*/
|
||||
var Dialog = /*#__PURE__*/ import_react.forwardRef(function Dialog(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: "MuiDialog"
|
||||
});
|
||||
const theme = useTheme();
|
||||
const defaultTransitionDuration = {
|
||||
enter: theme.transitions.duration.enteringScreen,
|
||||
exit: theme.transitions.duration.leavingScreen
|
||||
};
|
||||
const { "aria-describedby": ariaDescribedby, "aria-labelledby": ariaLabelledbyProp, "aria-modal": ariaModal = true, children, className, fullScreen = false, fullWidth = false, maxWidth = "sm", onClick, onClose, open, PaperComponent = Paper, role = "dialog", scroll = "paper", slots = {}, slotProps = {}, transitionDuration = defaultTransitionDuration, ...other } = props;
|
||||
const ownerState = {
|
||||
...props,
|
||||
fullScreen,
|
||||
fullWidth,
|
||||
maxWidth,
|
||||
scroll
|
||||
};
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
const backdropClick = import_react.useRef();
|
||||
const handleMouseDown = (event) => {
|
||||
backdropClick.current = event.target === event.currentTarget;
|
||||
};
|
||||
const handleBackdropClick = (event) => {
|
||||
if (onClick) onClick(event);
|
||||
if (!backdropClick.current) return;
|
||||
backdropClick.current = null;
|
||||
if (onClose) onClose(event, "backdropClick");
|
||||
};
|
||||
const ariaLabelledby = useId(ariaLabelledbyProp);
|
||||
const dialogContextValue = import_react.useMemo(() => {
|
||||
return { titleId: ariaLabelledby };
|
||||
}, [ariaLabelledby]);
|
||||
const externalForwardedProps = {
|
||||
slots,
|
||||
slotProps
|
||||
};
|
||||
const [RootSlot, rootSlotProps] = useSlot("root", {
|
||||
elementType: DialogRoot,
|
||||
shouldForwardComponentProp: true,
|
||||
externalForwardedProps,
|
||||
ownerState,
|
||||
className: clsx(classes.root, className),
|
||||
ref
|
||||
});
|
||||
const [BackdropSlot, backdropSlotProps] = useSlot("backdrop", {
|
||||
elementType: DialogBackdrop,
|
||||
shouldForwardComponentProp: true,
|
||||
externalForwardedProps,
|
||||
ownerState,
|
||||
className: classes.backdrop
|
||||
});
|
||||
const [PaperSlot, paperSlotProps] = useSlot("paper", {
|
||||
elementType: DialogPaper,
|
||||
shouldForwardComponentProp: true,
|
||||
externalForwardedProps,
|
||||
ownerState,
|
||||
className: classes.paper,
|
||||
additionalProps: {
|
||||
elevation: 24,
|
||||
role,
|
||||
"aria-describedby": ariaDescribedby,
|
||||
"aria-labelledby": ariaLabelledby,
|
||||
"aria-modal": ariaModal,
|
||||
tabIndex: -1,
|
||||
[FOCUSABLE_ATTRIBUTE]: ""
|
||||
}
|
||||
});
|
||||
const [ContainerSlot, containerSlotProps] = useSlot("container", {
|
||||
elementType: DialogContainer,
|
||||
externalForwardedProps,
|
||||
ownerState,
|
||||
className: classes.container
|
||||
});
|
||||
const [TransitionSlot, transitionSlotProps] = useSlot("transition", {
|
||||
elementType: Fade,
|
||||
externalForwardedProps,
|
||||
ownerState,
|
||||
additionalProps: {
|
||||
appear: true,
|
||||
in: open,
|
||||
timeout: transitionDuration,
|
||||
role: "presentation"
|
||||
}
|
||||
});
|
||||
return /*#__PURE__*/ (0, import_jsx_runtime.jsx)(RootSlot, {
|
||||
closeAfterTransition: true,
|
||||
slots: { backdrop: BackdropSlot },
|
||||
slotProps: { backdrop: {
|
||||
transitionDuration,
|
||||
...backdropSlotProps
|
||||
} },
|
||||
onClose,
|
||||
open,
|
||||
onClick: handleBackdropClick,
|
||||
...rootSlotProps,
|
||||
...other,
|
||||
children: /*#__PURE__*/ (0, import_jsx_runtime.jsx)(TransitionSlot, {
|
||||
...transitionSlotProps,
|
||||
children: /*#__PURE__*/ (0, import_jsx_runtime.jsx)(ContainerSlot, {
|
||||
onMouseDown: handleMouseDown,
|
||||
...containerSlotProps,
|
||||
children: /*#__PURE__*/ (0, import_jsx_runtime.jsx)(PaperSlot, {
|
||||
as: PaperComponent,
|
||||
...paperSlotProps,
|
||||
children: /*#__PURE__*/ (0, import_jsx_runtime.jsx)(DialogContext.Provider, {
|
||||
value: dialogContextValue,
|
||||
children
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
});
|
||||
});
|
||||
Dialog.propTypes = {
|
||||
/**
|
||||
* The id(s) of the element(s) that describe the dialog.
|
||||
*/
|
||||
"aria-describedby": import_prop_types.default.string,
|
||||
/**
|
||||
* The id(s) of the element(s) that label the dialog.
|
||||
*/
|
||||
"aria-labelledby": import_prop_types.default.string,
|
||||
/**
|
||||
* Informs assistive technologies that the element is modal.
|
||||
* It's added on the element with role="dialog".
|
||||
* @default true
|
||||
*/
|
||||
"aria-modal": import_prop_types.default.oneOfType([import_prop_types.default.oneOf(["false", "true"]), import_prop_types.default.bool]),
|
||||
/**
|
||||
* Dialog children, usually the included sub-components.
|
||||
*/
|
||||
children: import_prop_types.default.node,
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: import_prop_types.default.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: import_prop_types.default.string,
|
||||
/**
|
||||
* If `true`, the dialog is full-screen.
|
||||
* @default false
|
||||
*/
|
||||
fullScreen: import_prop_types.default.bool,
|
||||
/**
|
||||
* If `true`, the dialog stretches to `maxWidth`.
|
||||
*
|
||||
* Notice that the dialog width grow is limited by the default margin.
|
||||
* @default false
|
||||
*/
|
||||
fullWidth: import_prop_types.default.bool,
|
||||
/**
|
||||
* Determine the max-width of the dialog.
|
||||
* The dialog width grows with the size of the screen.
|
||||
* Set to `false` to disable `maxWidth`.
|
||||
* @default 'sm'
|
||||
*/
|
||||
maxWidth: import_prop_types.default.oneOfType([import_prop_types.default.oneOf([
|
||||
"xs",
|
||||
"sm",
|
||||
"md",
|
||||
"lg",
|
||||
"xl",
|
||||
false
|
||||
]), import_prop_types.default.string]),
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onClick: import_prop_types.default.func,
|
||||
/**
|
||||
* Callback fired when the component requests to be closed.
|
||||
*
|
||||
* @param {object} event The event source of the callback.
|
||||
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
|
||||
*/
|
||||
onClose: import_prop_types.default.func,
|
||||
/**
|
||||
* If `true`, the component is shown.
|
||||
*/
|
||||
open: import_prop_types.default.bool.isRequired,
|
||||
/**
|
||||
* The component used to render the body of the dialog.
|
||||
* @default Paper
|
||||
*/
|
||||
PaperComponent: import_prop_types.default.elementType,
|
||||
/**
|
||||
* The ARIA role for the dialog element.
|
||||
* The main dialog role is `dialog`, but `alertdialog` can be used if the content of the dialog requires immediate attention.
|
||||
* See https://www.w3.org/TR/wai-aria-1.2/#dialog and https://www.w3.org/TR/wai-aria-1.2/#alertdialog for more details.
|
||||
* @default 'dialog'
|
||||
*/
|
||||
role: import_prop_types.default.oneOf(["alertdialog", "dialog"]),
|
||||
/**
|
||||
* Determine the container for scrolling the dialog.
|
||||
* @default 'paper'
|
||||
*/
|
||||
scroll: import_prop_types.default.oneOf(["body", "paper"]),
|
||||
/**
|
||||
* The props used for each slot inside.
|
||||
* @default {}
|
||||
*/
|
||||
slotProps: import_prop_types.default.shape({
|
||||
backdrop: import_prop_types.default.oneOfType([import_prop_types.default.func, import_prop_types.default.object]),
|
||||
container: import_prop_types.default.oneOfType([import_prop_types.default.func, import_prop_types.default.object]),
|
||||
paper: import_prop_types.default.oneOfType([import_prop_types.default.func, import_prop_types.default.object]),
|
||||
root: import_prop_types.default.oneOfType([import_prop_types.default.func, import_prop_types.default.object]),
|
||||
transition: import_prop_types.default.oneOfType([import_prop_types.default.func, import_prop_types.default.object])
|
||||
}),
|
||||
/**
|
||||
* The components used for each slot inside.
|
||||
* @default {}
|
||||
*/
|
||||
slots: import_prop_types.default.shape({
|
||||
backdrop: import_prop_types.default.elementType,
|
||||
container: import_prop_types.default.elementType,
|
||||
paper: import_prop_types.default.elementType,
|
||||
root: import_prop_types.default.elementType,
|
||||
transition: import_prop_types.default.elementType
|
||||
}),
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx: import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.arrayOf(import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object,
|
||||
import_prop_types.default.bool
|
||||
])),
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object
|
||||
]),
|
||||
/**
|
||||
* The duration for the transition, in milliseconds.
|
||||
* You may specify a single timeout for all transitions, or individually with an object.
|
||||
* @default {
|
||||
* enter: theme.transitions.duration.enteringScreen,
|
||||
* exit: theme.transitions.duration.leavingScreen,
|
||||
* }
|
||||
*/
|
||||
transitionDuration: import_prop_types.default.oneOfType([import_prop_types.default.number, import_prop_types.default.shape({
|
||||
appear: import_prop_types.default.number,
|
||||
enter: import_prop_types.default.number,
|
||||
exit: import_prop_types.default.number
|
||||
})])
|
||||
};
|
||||
//#endregion
|
||||
export { dialogClasses as n, getDialogUtilityClass as r, Dialog as t };
|
||||
+1
File diff suppressed because one or more lines are too long
Generated
Vendored
+90
@@ -0,0 +1,90 @@
|
||||
import { r as __toESM } from "./rolldown-runtime-DC62tzP2.js";
|
||||
import { t as require_react } from "./react.js";
|
||||
import { t as require_jsx_runtime } from "./react_jsx-runtime.js";
|
||||
import { t as require_prop_types } from "./prop-types-C5owi9-6.js";
|
||||
import { F as generateUtilityClasses, I as generateUtilityClass, ut as clsx } from "./identifier-Db3dwgA7.js";
|
||||
import { l as composeClasses, t as styled } from "./styled-ry4r-NKP.js";
|
||||
import { t as useDefaultProps } from "./DefaultPropsProvider-C8vOQ3_j.js";
|
||||
//#region node_modules/@mui/material/DialogActions/dialogActionsClasses.mjs
|
||||
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
||||
var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types(), 1);
|
||||
function getDialogActionsUtilityClass(slot) {
|
||||
return generateUtilityClass("MuiDialogActions", slot);
|
||||
}
|
||||
var dialogActionsClasses = generateUtilityClasses("MuiDialogActions", ["root", "spacing"]);
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/DialogActions/DialogActions.mjs
|
||||
var import_jsx_runtime = require_jsx_runtime();
|
||||
var useUtilityClasses = (ownerState) => {
|
||||
const { classes, disableSpacing } = ownerState;
|
||||
return composeClasses({ root: ["root", !disableSpacing && "spacing"] }, getDialogActionsUtilityClass, classes);
|
||||
};
|
||||
var DialogActionsRoot = styled("div", {
|
||||
name: "MuiDialogActions",
|
||||
slot: "Root",
|
||||
overridesResolver: (props, styles) => {
|
||||
const { ownerState } = props;
|
||||
return [styles.root, !ownerState.disableSpacing && styles.spacing];
|
||||
}
|
||||
})({
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
padding: 8,
|
||||
justifyContent: "flex-end",
|
||||
flex: "0 0 auto",
|
||||
variants: [{
|
||||
props: ({ ownerState }) => !ownerState.disableSpacing,
|
||||
style: { "& > :not(style) ~ :not(style)": { marginLeft: 8 } }
|
||||
}]
|
||||
});
|
||||
var DialogActions = /*#__PURE__*/ import_react.forwardRef(function DialogActions(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: "MuiDialogActions"
|
||||
});
|
||||
const { className, disableSpacing = false, ...other } = props;
|
||||
const ownerState = {
|
||||
...props,
|
||||
disableSpacing
|
||||
};
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
return /*#__PURE__*/ (0, import_jsx_runtime.jsx)(DialogActionsRoot, {
|
||||
className: clsx(classes.root, className),
|
||||
ownerState,
|
||||
ref,
|
||||
...other
|
||||
});
|
||||
});
|
||||
DialogActions.propTypes = {
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children: import_prop_types.default.node,
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: import_prop_types.default.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: import_prop_types.default.string,
|
||||
/**
|
||||
* If `true`, the actions do not have additional margin.
|
||||
* @default false
|
||||
*/
|
||||
disableSpacing: import_prop_types.default.bool,
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx: import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.arrayOf(import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object,
|
||||
import_prop_types.default.bool
|
||||
])),
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object
|
||||
])
|
||||
};
|
||||
//#endregion
|
||||
export { dialogActionsClasses as n, getDialogActionsUtilityClass as r, DialogActions as t };
|
||||
Generated
Vendored
+1
File diff suppressed because one or more lines are too long
Generated
Vendored
+98
@@ -0,0 +1,98 @@
|
||||
import { r as __toESM } from "./rolldown-runtime-DC62tzP2.js";
|
||||
import { t as require_react } from "./react.js";
|
||||
import { t as require_jsx_runtime } from "./react_jsx-runtime.js";
|
||||
import { t as require_prop_types } from "./prop-types-C5owi9-6.js";
|
||||
import { F as generateUtilityClasses, I as generateUtilityClass, ut as clsx } from "./identifier-Db3dwgA7.js";
|
||||
import { l as composeClasses, t as styled } from "./styled-ry4r-NKP.js";
|
||||
import { t as useDefaultProps } from "./DefaultPropsProvider-C8vOQ3_j.js";
|
||||
import { t as memoTheme } from "./memoTheme-Ciuals54.js";
|
||||
import { t as dialogTitleClasses } from "./dialogTitleClasses-CMIZgy_C.js";
|
||||
//#region node_modules/@mui/material/DialogContent/dialogContentClasses.mjs
|
||||
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
||||
var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types(), 1);
|
||||
function getDialogContentUtilityClass(slot) {
|
||||
return generateUtilityClass("MuiDialogContent", slot);
|
||||
}
|
||||
var dialogContentClasses = generateUtilityClasses("MuiDialogContent", ["root", "dividers"]);
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/DialogContent/DialogContent.mjs
|
||||
var import_jsx_runtime = require_jsx_runtime();
|
||||
var useUtilityClasses = (ownerState) => {
|
||||
const { classes, dividers } = ownerState;
|
||||
return composeClasses({ root: ["root", dividers && "dividers"] }, getDialogContentUtilityClass, classes);
|
||||
};
|
||||
var DialogContentRoot = styled("div", {
|
||||
name: "MuiDialogContent",
|
||||
slot: "Root",
|
||||
overridesResolver: (props, styles) => {
|
||||
const { ownerState } = props;
|
||||
return [styles.root, ownerState.dividers && styles.dividers];
|
||||
}
|
||||
})(memoTheme(({ theme }) => ({
|
||||
flex: "1 1 auto",
|
||||
WebkitOverflowScrolling: "touch",
|
||||
overflowY: "auto",
|
||||
padding: "20px 24px",
|
||||
variants: [{
|
||||
props: ({ ownerState }) => ownerState.dividers,
|
||||
style: {
|
||||
padding: "16px 24px",
|
||||
borderTop: `1px solid ${(theme.vars || theme).palette.divider}`,
|
||||
borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`
|
||||
}
|
||||
}, {
|
||||
props: ({ ownerState }) => !ownerState.dividers,
|
||||
style: { [`.${dialogTitleClasses.root} + &`]: { paddingTop: 0 } }
|
||||
}]
|
||||
})));
|
||||
var DialogContent = /*#__PURE__*/ import_react.forwardRef(function DialogContent(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: "MuiDialogContent"
|
||||
});
|
||||
const { className, dividers = false, ...other } = props;
|
||||
const ownerState = {
|
||||
...props,
|
||||
dividers
|
||||
};
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
return /*#__PURE__*/ (0, import_jsx_runtime.jsx)(DialogContentRoot, {
|
||||
className: clsx(classes.root, className),
|
||||
ownerState,
|
||||
ref,
|
||||
...other
|
||||
});
|
||||
});
|
||||
DialogContent.propTypes = {
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children: import_prop_types.default.node,
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: import_prop_types.default.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: import_prop_types.default.string,
|
||||
/**
|
||||
* Display the top and bottom dividers.
|
||||
* @default false
|
||||
*/
|
||||
dividers: import_prop_types.default.bool,
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx: import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.arrayOf(import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object,
|
||||
import_prop_types.default.bool
|
||||
])),
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object
|
||||
])
|
||||
};
|
||||
//#endregion
|
||||
export { dialogContentClasses as n, getDialogContentUtilityClass as r, DialogContent as t };
|
||||
Generated
Vendored
+1
File diff suppressed because one or more lines are too long
+76
@@ -0,0 +1,76 @@
|
||||
import { r as __toESM } from "./rolldown-runtime-DC62tzP2.js";
|
||||
import { t as require_react } from "./react.js";
|
||||
import { t as require_jsx_runtime } from "./react_jsx-runtime.js";
|
||||
import { t as require_prop_types } from "./prop-types-C5owi9-6.js";
|
||||
import { ut as clsx } from "./identifier-Db3dwgA7.js";
|
||||
import { l as composeClasses, t as styled } from "./styled-ry4r-NKP.js";
|
||||
import { t as useDefaultProps } from "./DefaultPropsProvider-C8vOQ3_j.js";
|
||||
import { t as Typography } from "./Typography-BDkJLIDE.js";
|
||||
import { t as DialogContext } from "./DialogContext-DQ3YWebh.js";
|
||||
import { n as getDialogTitleUtilityClass } from "./dialogTitleClasses-CMIZgy_C.js";
|
||||
//#region node_modules/@mui/material/DialogTitle/DialogTitle.mjs
|
||||
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
||||
var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types(), 1);
|
||||
var import_jsx_runtime = require_jsx_runtime();
|
||||
var useUtilityClasses = (ownerState) => {
|
||||
const { classes } = ownerState;
|
||||
return composeClasses({ root: ["root"] }, getDialogTitleUtilityClass, classes);
|
||||
};
|
||||
var DialogTitleRoot = styled(Typography, {
|
||||
name: "MuiDialogTitle",
|
||||
slot: "Root"
|
||||
})({
|
||||
padding: "16px 24px",
|
||||
flex: "0 0 auto"
|
||||
});
|
||||
var DialogTitle = /*#__PURE__*/ import_react.forwardRef(function DialogTitle(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: "MuiDialogTitle"
|
||||
});
|
||||
const { className, id: idProp, ...other } = props;
|
||||
const ownerState = props;
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
const { titleId = idProp } = import_react.useContext(DialogContext);
|
||||
return /*#__PURE__*/ (0, import_jsx_runtime.jsx)(DialogTitleRoot, {
|
||||
component: "h2",
|
||||
className: clsx(classes.root, className),
|
||||
ownerState,
|
||||
ref,
|
||||
variant: "h6",
|
||||
id: idProp ?? titleId,
|
||||
...other
|
||||
});
|
||||
});
|
||||
DialogTitle.propTypes = {
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children: import_prop_types.default.node,
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: import_prop_types.default.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: import_prop_types.default.string,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
id: import_prop_types.default.string,
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx: import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.arrayOf(import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object,
|
||||
import_prop_types.default.bool
|
||||
])),
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object
|
||||
])
|
||||
};
|
||||
//#endregion
|
||||
export { DialogTitle as t };
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"DialogTitle-ec9jPt95.js","names":["PropTypes"],"sources":["../../@mui/material/DialogTitle/DialogTitle.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport Typography from \"../Typography/index.mjs\";\nimport { styled } from \"../zero-styled/index.mjs\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.mjs\";\nimport { getDialogTitleUtilityClass } from \"./dialogTitleClasses.mjs\";\nimport DialogContext from \"../Dialog/DialogContext.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, getDialogTitleUtilityClass, classes);\n};\nconst DialogTitleRoot = styled(Typography, {\n name: 'MuiDialogTitle',\n slot: 'Root'\n})({\n padding: '16px 24px',\n flex: '0 0 auto'\n});\nconst DialogTitle = /*#__PURE__*/React.forwardRef(function DialogTitle(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiDialogTitle'\n });\n const {\n className,\n id: idProp,\n ...other\n } = props;\n const ownerState = props;\n const classes = useUtilityClasses(ownerState);\n const {\n titleId = idProp\n } = React.useContext(DialogContext);\n return /*#__PURE__*/_jsx(DialogTitleRoot, {\n component: \"h2\",\n className: clsx(classes.root, className),\n ownerState: ownerState,\n ref: ref,\n variant: \"h6\",\n id: idProp ?? titleId,\n ...other\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? DialogTitle.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * @ignore\n */\n id: PropTypes.string,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default DialogTitle;"],"mappings":";;;;;;;;;;;;;;AAYA,IAAM,qBAAoB,eAAc;CACtC,MAAM,EACJ,YACE;CAIJ,OAAO,eAAe,EAFpB,MAAM,CAAC,MAAM,EAEW,GAAG,4BAA4B,OAAO;AAClE;AACA,IAAM,kBAAkB,OAAO,YAAY;CACzC,MAAM;CACN,MAAM;AACR,CAAC,CAAC,CAAC;CACD,SAAS;CACT,MAAM;AACR,CAAC;AACD,IAAM,cAA2B,2BAAM,WAAW,SAAS,YAAY,SAAS,KAAK;CACnF,MAAM,QAAQ,gBAAgB;EAC5B,OAAO;EACP,MAAM;CACR,CAAC;CACD,MAAM,EACJ,WACA,IAAI,QACJ,GAAG,UACD;CACJ,MAAM,aAAa;CACnB,MAAM,UAAU,kBAAkB,UAAU;CAC5C,MAAM,EACJ,UAAU,WAAA,aACF,WAAW,aAAa;CAClC,OAAoB,eAAA,GAAA,mBAAA,IAAA,CAAK,iBAAiB;EACxC,WAAW;EACX,WAAW,KAAK,QAAQ,MAAM,SAAS;EAC3B;EACP;EACL,SAAS;EACT,IAAI,UAAU;EACd,GAAG;CACL,CAAC;AACH,CAAC;AACuC,YAAY,YAAmC;;;;CAQrF,UAAUA,kBAAAA,QAAU;;;;CAIpB,SAASA,kBAAAA,QAAU;;;;CAInB,WAAWA,kBAAAA,QAAU;;;;CAIrB,IAAIA,kBAAAA,QAAU;;;;CAId,IAAIA,kBAAAA,QAAU,UAAU;EAACA,kBAAAA,QAAU,QAAQA,kBAAAA,QAAU,UAAU;GAACA,kBAAAA,QAAU;GAAMA,kBAAAA,QAAU;GAAQA,kBAAAA,QAAU;EAAI,CAAC,CAAC;EAAGA,kBAAAA,QAAU;EAAMA,kBAAAA,QAAU;CAAM,CAAC;AACxJ"}
|
||||
Generated
Vendored
+821
@@ -0,0 +1,821 @@
|
||||
import { r as __toESM, t as __commonJSMin } from "./rolldown-runtime-DC62tzP2.js";
|
||||
import { t as require_react } from "./react.js";
|
||||
import { X as _extends } from "./identifier-Db3dwgA7.js";
|
||||
//#region node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
||||
function _objectWithoutPropertiesLoose(r, e) {
|
||||
if (null == r) return {};
|
||||
var t = {};
|
||||
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
||||
if (-1 !== e.indexOf(n)) continue;
|
||||
t[n] = r[n];
|
||||
}
|
||||
return t;
|
||||
}
|
||||
//#endregion
|
||||
//#region node_modules/@mui/x-internals/reactMajor/index.mjs
|
||||
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
||||
var reactMajor_default = parseInt("19.2.8", 10);
|
||||
//#endregion
|
||||
//#region node_modules/@mui/x-internals/fastObjectShallowCompare/fastObjectShallowCompare.mjs
|
||||
var is = Object.is;
|
||||
/**
|
||||
* Fast shallow compare for objects.
|
||||
* @returns true if objects are equal.
|
||||
*/
|
||||
function fastObjectShallowCompare(a, b) {
|
||||
if (a === b) return true;
|
||||
if (!(a instanceof Object) || !(b instanceof Object)) return false;
|
||||
let aLength = 0;
|
||||
let bLength = 0;
|
||||
for (const key in a) {
|
||||
aLength += 1;
|
||||
if (!is(a[key], b[key])) return false;
|
||||
if (!(key in b)) return false;
|
||||
}
|
||||
for (const _ in b) bLength += 1;
|
||||
return aLength === bLength;
|
||||
}
|
||||
//#endregion
|
||||
//#region node_modules/@mui/x-internals/warning/warning.mjs
|
||||
var warnedOnceCache = /* @__PURE__ */ new Set();
|
||||
/**
|
||||
* Logs a message to the console on development mode. The warning will only be logged once.
|
||||
*
|
||||
* The message is the log's cache key. Two identical messages will only be logged once.
|
||||
*
|
||||
* This function is a no-op in production.
|
||||
*
|
||||
* @param message the message to log
|
||||
* @param gravity the gravity of the warning. Defaults to `'warning'`.
|
||||
* @returns
|
||||
*/
|
||||
function warnOnce(message, gravity = "warning") {
|
||||
const cleanMessage = Array.isArray(message) ? message.join("\n") : message;
|
||||
if (!warnedOnceCache.has(cleanMessage)) {
|
||||
warnedOnceCache.add(cleanMessage);
|
||||
if (gravity === "error") console.error(cleanMessage);
|
||||
else console.warn(cleanMessage);
|
||||
}
|
||||
}
|
||||
//#endregion
|
||||
//#region node_modules/reselect/dist/reselect.mjs
|
||||
var runIdentityFunctionCheck = (resultFunc, inputSelectorsResults, outputSelectorResult) => {
|
||||
if (inputSelectorsResults.length === 1 && inputSelectorsResults[0] === outputSelectorResult) {
|
||||
let isInputSameAsOutput = false;
|
||||
try {
|
||||
const emptyObject = {};
|
||||
if (resultFunc(emptyObject) === emptyObject) isInputSameAsOutput = true;
|
||||
} catch {}
|
||||
if (isInputSameAsOutput) {
|
||||
let stack = void 0;
|
||||
try {
|
||||
throw new Error();
|
||||
} catch (e) {
|
||||
({stack} = e);
|
||||
}
|
||||
console.warn("The result function returned its own inputs without modification. e.g\n`createSelector([state => state.todos], todos => todos)`\nThis could lead to inefficient memoization and unnecessary re-renders.\nEnsure transformation logic is in the result function, and extraction logic is in the input selectors.", { stack });
|
||||
}
|
||||
}
|
||||
};
|
||||
var runInputStabilityCheck = (inputSelectorResultsObject, options, inputSelectorArgs) => {
|
||||
const { memoize, memoizeOptions } = options;
|
||||
const { inputSelectorResults, inputSelectorResultsCopy } = inputSelectorResultsObject;
|
||||
const createAnEmptyObject = memoize(() => ({}), ...memoizeOptions);
|
||||
if (!(createAnEmptyObject.apply(null, inputSelectorResults) === createAnEmptyObject.apply(null, inputSelectorResultsCopy))) {
|
||||
let stack = void 0;
|
||||
try {
|
||||
throw new Error();
|
||||
} catch (e) {
|
||||
({stack} = e);
|
||||
}
|
||||
console.warn("An input selector returned a different result when passed same arguments.\nThis means your output selector will likely run more frequently than intended.\nAvoid returning a new reference inside your input selector, e.g.\n`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)`", {
|
||||
arguments: inputSelectorArgs,
|
||||
firstInputs: inputSelectorResults,
|
||||
secondInputs: inputSelectorResultsCopy,
|
||||
stack
|
||||
});
|
||||
}
|
||||
};
|
||||
var globalDevModeChecks = {
|
||||
inputStabilityCheck: "once",
|
||||
identityFunctionCheck: "once"
|
||||
};
|
||||
var NOT_FOUND = /* @__PURE__ */ Symbol("NOT_FOUND");
|
||||
function assertIsFunction(func, errorMessage = `expected a function, instead received ${typeof func}`) {
|
||||
if (typeof func !== "function") throw new TypeError(errorMessage);
|
||||
}
|
||||
function assertIsArrayOfFunctions(array, errorMessage = `expected all items to be functions, instead received the following types: `) {
|
||||
if (!array.every((item) => typeof item === "function")) {
|
||||
const itemTypes = array.map((item) => typeof item === "function" ? `function ${item.name || "unnamed"}()` : typeof item).join(", ");
|
||||
throw new TypeError(`${errorMessage}[${itemTypes}]`);
|
||||
}
|
||||
}
|
||||
var ensureIsArray = (item) => {
|
||||
return Array.isArray(item) ? item : [item];
|
||||
};
|
||||
function getDependencies(createSelectorArgs) {
|
||||
const dependencies = Array.isArray(createSelectorArgs[0]) ? createSelectorArgs[0] : createSelectorArgs;
|
||||
assertIsArrayOfFunctions(dependencies, `createSelector expects all input-selectors to be functions, but received the following types: `);
|
||||
return dependencies;
|
||||
}
|
||||
function collectInputSelectorResults(dependencies, inputSelectorArgs) {
|
||||
const inputSelectorResults = [];
|
||||
const { length } = dependencies;
|
||||
for (let i = 0; i < length; i++) inputSelectorResults.push(dependencies[i].apply(null, inputSelectorArgs));
|
||||
return inputSelectorResults;
|
||||
}
|
||||
var getDevModeChecksExecutionInfo = (firstRun, devModeChecks) => {
|
||||
const { identityFunctionCheck, inputStabilityCheck } = {
|
||||
...globalDevModeChecks,
|
||||
...devModeChecks
|
||||
};
|
||||
return {
|
||||
identityFunctionCheck: {
|
||||
shouldRun: identityFunctionCheck === "always" || identityFunctionCheck === "once" && firstRun,
|
||||
run: runIdentityFunctionCheck
|
||||
},
|
||||
inputStabilityCheck: {
|
||||
shouldRun: inputStabilityCheck === "always" || inputStabilityCheck === "once" && firstRun,
|
||||
run: runInputStabilityCheck
|
||||
}
|
||||
};
|
||||
};
|
||||
function createSingletonCache(equals) {
|
||||
let entry;
|
||||
return {
|
||||
get(key) {
|
||||
if (entry && equals(entry.key, key)) return entry.value;
|
||||
return NOT_FOUND;
|
||||
},
|
||||
put(key, value) {
|
||||
entry = {
|
||||
key,
|
||||
value
|
||||
};
|
||||
},
|
||||
getEntries() {
|
||||
return entry ? [entry] : [];
|
||||
},
|
||||
clear() {
|
||||
entry = void 0;
|
||||
}
|
||||
};
|
||||
}
|
||||
function createLruCache(maxSize, equals) {
|
||||
let entries = [];
|
||||
function get(key) {
|
||||
const cacheIndex = entries.findIndex((entry) => equals(key, entry.key));
|
||||
if (cacheIndex > -1) {
|
||||
const entry = entries[cacheIndex];
|
||||
if (cacheIndex > 0) {
|
||||
entries.splice(cacheIndex, 1);
|
||||
entries.unshift(entry);
|
||||
}
|
||||
return entry.value;
|
||||
}
|
||||
return NOT_FOUND;
|
||||
}
|
||||
function put(key, value) {
|
||||
if (get(key) === NOT_FOUND) {
|
||||
entries.unshift({
|
||||
key,
|
||||
value
|
||||
});
|
||||
if (entries.length > maxSize) entries.pop();
|
||||
}
|
||||
}
|
||||
function getEntries() {
|
||||
return entries;
|
||||
}
|
||||
function clear() {
|
||||
entries = [];
|
||||
}
|
||||
return {
|
||||
get,
|
||||
put,
|
||||
getEntries,
|
||||
clear
|
||||
};
|
||||
}
|
||||
var referenceEqualityCheck = (a, b) => a === b;
|
||||
function createCacheKeyComparator(equalityCheck) {
|
||||
return function areArgumentsShallowlyEqual(prev, next) {
|
||||
if (prev === null || next === null || prev.length !== next.length) return false;
|
||||
const { length } = prev;
|
||||
for (let i = 0; i < length; i++) if (!equalityCheck(prev[i], next[i])) return false;
|
||||
return true;
|
||||
};
|
||||
}
|
||||
function lruMemoize(func, equalityCheckOrOptions) {
|
||||
const { equalityCheck = referenceEqualityCheck, maxSize = 1, resultEqualityCheck } = typeof equalityCheckOrOptions === "object" ? equalityCheckOrOptions : { equalityCheck: equalityCheckOrOptions };
|
||||
const comparator = createCacheKeyComparator(equalityCheck);
|
||||
let resultsCount = 0;
|
||||
const cache = maxSize <= 1 ? createSingletonCache(comparator) : createLruCache(maxSize, comparator);
|
||||
function memoized() {
|
||||
let value = cache.get(arguments);
|
||||
if (value === NOT_FOUND) {
|
||||
value = func.apply(null, arguments);
|
||||
resultsCount++;
|
||||
if (resultEqualityCheck) {
|
||||
const matchingEntry = cache.getEntries().find((entry) => resultEqualityCheck(entry.value, value));
|
||||
if (matchingEntry) {
|
||||
value = matchingEntry.value;
|
||||
resultsCount !== 0 && resultsCount--;
|
||||
}
|
||||
}
|
||||
cache.put(arguments, value);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
memoized.clearCache = () => {
|
||||
cache.clear();
|
||||
memoized.resetResultsCount();
|
||||
};
|
||||
memoized.resultsCount = () => resultsCount;
|
||||
memoized.resetResultsCount = () => {
|
||||
resultsCount = 0;
|
||||
};
|
||||
return memoized;
|
||||
}
|
||||
var StrongRef = class {
|
||||
constructor(value) {
|
||||
this.value = value;
|
||||
}
|
||||
deref() {
|
||||
return this.value;
|
||||
}
|
||||
};
|
||||
var getWeakRef = () => typeof WeakRef === "undefined" ? StrongRef : WeakRef;
|
||||
var Ref = /* @__PURE__ */ getWeakRef();
|
||||
var UNTERMINATED = 0;
|
||||
var TERMINATED = 1;
|
||||
function createCacheNode() {
|
||||
return {
|
||||
s: UNTERMINATED,
|
||||
v: void 0,
|
||||
o: null,
|
||||
p: null
|
||||
};
|
||||
}
|
||||
function maybeDeref(r) {
|
||||
if (r instanceof Ref) return r.deref();
|
||||
return r;
|
||||
}
|
||||
function weakMapMemoize(func, options = {}) {
|
||||
let fnNode = createCacheNode();
|
||||
const { resultEqualityCheck } = options;
|
||||
let lastResult;
|
||||
let resultsCount = 0;
|
||||
function memoized() {
|
||||
let cacheNode = fnNode;
|
||||
const { length } = arguments;
|
||||
for (let i = 0, l = length; i < l; i++) {
|
||||
const arg = arguments[i];
|
||||
if (typeof arg === "function" || typeof arg === "object" && arg !== null) {
|
||||
let objectCache = cacheNode.o;
|
||||
if (objectCache === null) cacheNode.o = objectCache = /* @__PURE__ */ new WeakMap();
|
||||
const objectNode = objectCache.get(arg);
|
||||
if (objectNode === void 0) {
|
||||
cacheNode = createCacheNode();
|
||||
objectCache.set(arg, cacheNode);
|
||||
} else cacheNode = objectNode;
|
||||
} else {
|
||||
let primitiveCache = cacheNode.p;
|
||||
if (primitiveCache === null) cacheNode.p = primitiveCache = /* @__PURE__ */ new Map();
|
||||
const primitiveNode = primitiveCache.get(arg);
|
||||
if (primitiveNode === void 0) {
|
||||
cacheNode = createCacheNode();
|
||||
primitiveCache.set(arg, cacheNode);
|
||||
} else cacheNode = primitiveNode;
|
||||
}
|
||||
}
|
||||
const terminatedNode = cacheNode;
|
||||
let result;
|
||||
if (cacheNode.s === TERMINATED) result = cacheNode.v;
|
||||
else {
|
||||
result = func.apply(null, arguments);
|
||||
resultsCount++;
|
||||
if (resultEqualityCheck) {
|
||||
const lastResultValue = maybeDeref(lastResult);
|
||||
if (lastResultValue != null && resultEqualityCheck(lastResultValue, result)) {
|
||||
result = lastResultValue;
|
||||
resultsCount !== 0 && resultsCount--;
|
||||
}
|
||||
lastResult = typeof result === "object" && result !== null || typeof result === "function" ? /* @__PURE__ */ new Ref(result) : result;
|
||||
}
|
||||
}
|
||||
terminatedNode.s = TERMINATED;
|
||||
terminatedNode.v = result;
|
||||
return result;
|
||||
}
|
||||
memoized.clearCache = () => {
|
||||
fnNode = createCacheNode();
|
||||
memoized.resetResultsCount();
|
||||
};
|
||||
memoized.resultsCount = () => resultsCount;
|
||||
memoized.resetResultsCount = () => {
|
||||
resultsCount = 0;
|
||||
};
|
||||
return memoized;
|
||||
}
|
||||
function createSelectorCreator(memoizeOrOptions, ...memoizeOptionsFromArgs) {
|
||||
const createSelectorCreatorOptions = typeof memoizeOrOptions === "function" ? {
|
||||
memoize: memoizeOrOptions,
|
||||
memoizeOptions: memoizeOptionsFromArgs
|
||||
} : memoizeOrOptions;
|
||||
const createSelector2 = (...createSelectorArgs) => {
|
||||
let recomputations = 0;
|
||||
let dependencyRecomputations = 0;
|
||||
let lastResult;
|
||||
let directlyPassedOptions = {};
|
||||
let resultFunc = createSelectorArgs.pop();
|
||||
if (typeof resultFunc === "object") {
|
||||
directlyPassedOptions = resultFunc;
|
||||
resultFunc = createSelectorArgs.pop();
|
||||
}
|
||||
assertIsFunction(resultFunc, `createSelector expects an output function after the inputs, but received: [${typeof resultFunc}]`);
|
||||
const combinedOptions = {
|
||||
...createSelectorCreatorOptions,
|
||||
...directlyPassedOptions
|
||||
};
|
||||
const { memoize, memoizeOptions = [], argsMemoize = weakMapMemoize, argsMemoizeOptions = [] } = combinedOptions;
|
||||
const finalMemoizeOptions = ensureIsArray(memoizeOptions);
|
||||
const finalArgsMemoizeOptions = ensureIsArray(argsMemoizeOptions);
|
||||
const dependencies = getDependencies(createSelectorArgs);
|
||||
const memoizedResultFunc = memoize(function recomputationWrapper() {
|
||||
recomputations++;
|
||||
return resultFunc.apply(null, arguments);
|
||||
}, ...finalMemoizeOptions);
|
||||
let firstRun = true;
|
||||
const selector = argsMemoize(function dependenciesChecker() {
|
||||
dependencyRecomputations++;
|
||||
const inputSelectorResults = collectInputSelectorResults(dependencies, arguments);
|
||||
lastResult = memoizedResultFunc.apply(null, inputSelectorResults);
|
||||
{
|
||||
const { devModeChecks = {} } = combinedOptions;
|
||||
const { identityFunctionCheck, inputStabilityCheck } = getDevModeChecksExecutionInfo(firstRun, devModeChecks);
|
||||
if (identityFunctionCheck.shouldRun) identityFunctionCheck.run(resultFunc, inputSelectorResults, lastResult);
|
||||
if (inputStabilityCheck.shouldRun) {
|
||||
const inputSelectorResultsCopy = collectInputSelectorResults(dependencies, arguments);
|
||||
inputStabilityCheck.run({
|
||||
inputSelectorResults,
|
||||
inputSelectorResultsCopy
|
||||
}, {
|
||||
memoize,
|
||||
memoizeOptions: finalMemoizeOptions
|
||||
}, arguments);
|
||||
}
|
||||
if (firstRun) firstRun = false;
|
||||
}
|
||||
return lastResult;
|
||||
}, ...finalArgsMemoizeOptions);
|
||||
return Object.assign(selector, {
|
||||
resultFunc,
|
||||
memoizedResultFunc,
|
||||
dependencies,
|
||||
dependencyRecomputations: () => dependencyRecomputations,
|
||||
resetDependencyRecomputations: () => {
|
||||
dependencyRecomputations = 0;
|
||||
},
|
||||
lastResult: () => lastResult,
|
||||
recomputations: () => recomputations,
|
||||
resetRecomputations: () => {
|
||||
recomputations = 0;
|
||||
},
|
||||
memoize,
|
||||
argsMemoize
|
||||
});
|
||||
};
|
||||
Object.assign(createSelector2, { withTypes: () => createSelector2 });
|
||||
return createSelector2;
|
||||
}
|
||||
//#endregion
|
||||
//#region node_modules/@mui/x-internals/store/createSelector.mjs
|
||||
var reselectCreateSelector = createSelectorCreator({
|
||||
memoize: lruMemoize,
|
||||
memoizeOptions: {
|
||||
maxSize: 1,
|
||||
equalityCheck: Object.is
|
||||
}
|
||||
});
|
||||
/**
|
||||
* Creates a selector function that can be used to derive values from the store's state.
|
||||
*
|
||||
* The combiner function can have up to three additional parameters, but it **cannot have optional or default parameters**.
|
||||
*
|
||||
* This function accepts up to six functions and combines them into a single selector function.
|
||||
* The resulting selector will take the state from the combined selectors and any additional parameters required by the combiner.
|
||||
*
|
||||
* The return type of the resulting selector is determined by the return type of the combiner function.
|
||||
*
|
||||
* @example
|
||||
* const selector = createSelector(
|
||||
* (state) => state.disabled
|
||||
* );
|
||||
*
|
||||
* @example
|
||||
* const selector = createSelector(
|
||||
* (state) => state.disabled,
|
||||
* (state) => state.open,
|
||||
* (disabled, open) => ({ disabled, open })
|
||||
* );
|
||||
*/
|
||||
var createSelector = (a, b, c, d, e, f, g, h, ...other) => {
|
||||
if (other.length > 0) throw new Error("MUI X: Unsupported number of selectors. The createSelector function supports up to 8 input selectors. Consider combining selectors or restructuring your selector logic.");
|
||||
let selector;
|
||||
if (a && b && c && d && e && f && g && h) selector = (state, a1, a2, a3) => {
|
||||
return h(a(state, a1, a2, a3), b(state, a1, a2, a3), c(state, a1, a2, a3), d(state, a1, a2, a3), e(state, a1, a2, a3), f(state, a1, a2, a3), g(state, a1, a2, a3), a1, a2, a3);
|
||||
};
|
||||
else if (a && b && c && d && e && f && g) selector = (state, a1, a2, a3) => {
|
||||
return g(a(state, a1, a2, a3), b(state, a1, a2, a3), c(state, a1, a2, a3), d(state, a1, a2, a3), e(state, a1, a2, a3), f(state, a1, a2, a3), a1, a2, a3);
|
||||
};
|
||||
else if (a && b && c && d && e && f) selector = (state, a1, a2, a3) => {
|
||||
return f(a(state, a1, a2, a3), b(state, a1, a2, a3), c(state, a1, a2, a3), d(state, a1, a2, a3), e(state, a1, a2, a3), a1, a2, a3);
|
||||
};
|
||||
else if (a && b && c && d && e) selector = (state, a1, a2, a3) => {
|
||||
return e(a(state, a1, a2, a3), b(state, a1, a2, a3), c(state, a1, a2, a3), d(state, a1, a2, a3), a1, a2, a3);
|
||||
};
|
||||
else if (a && b && c && d) selector = (state, a1, a2, a3) => {
|
||||
return d(a(state, a1, a2, a3), b(state, a1, a2, a3), c(state, a1, a2, a3), a1, a2, a3);
|
||||
};
|
||||
else if (a && b && c) selector = (state, a1, a2, a3) => {
|
||||
return c(a(state, a1, a2, a3), b(state, a1, a2, a3), a1, a2, a3);
|
||||
};
|
||||
else if (a && b) selector = (state, a1, a2, a3) => {
|
||||
return b(a(state, a1, a2, a3), a1, a2, a3);
|
||||
};
|
||||
else if (a) selector = a;
|
||||
else throw new Error("MUI X: Missing arguments for createSelector. At least one selector function is required. Provide one or more selector functions as arguments.");
|
||||
return selector;
|
||||
};
|
||||
var createSelectorMemoizedWithOptions = (options) => (...inputs) => {
|
||||
const cache = /* @__PURE__ */ new WeakMap();
|
||||
let nextCacheId = 1;
|
||||
const combiner = inputs[inputs.length - 1];
|
||||
const nSelectors = inputs.length - 1 || 1;
|
||||
const argsLength = Math.max(combiner.length - nSelectors, 0);
|
||||
if (argsLength > 3) throw new Error("MUI X: Unsupported number of arguments for selector combiner. The combiner function supports up to 3 additional arguments beyond the selector outputs. Consider restructuring your selector to use fewer arguments.");
|
||||
const selector = (state, a1, a2, a3) => {
|
||||
let cacheKey = state.__cacheKey__;
|
||||
if (!cacheKey) {
|
||||
cacheKey = { id: nextCacheId };
|
||||
state.__cacheKey__ = cacheKey;
|
||||
nextCacheId += 1;
|
||||
}
|
||||
let fn = cache.get(cacheKey);
|
||||
if (!fn) {
|
||||
const selectors = inputs.length === 1 ? [(x) => x, combiner] : inputs;
|
||||
let reselectArgs = inputs;
|
||||
const selectorArgs = [
|
||||
void 0,
|
||||
void 0,
|
||||
void 0
|
||||
];
|
||||
switch (argsLength) {
|
||||
case 0: break;
|
||||
case 1:
|
||||
reselectArgs = [
|
||||
...selectors.slice(0, -1),
|
||||
() => selectorArgs[0],
|
||||
combiner
|
||||
];
|
||||
break;
|
||||
case 2:
|
||||
reselectArgs = [
|
||||
...selectors.slice(0, -1),
|
||||
() => selectorArgs[0],
|
||||
() => selectorArgs[1],
|
||||
combiner
|
||||
];
|
||||
break;
|
||||
case 3:
|
||||
reselectArgs = [
|
||||
...selectors.slice(0, -1),
|
||||
() => selectorArgs[0],
|
||||
() => selectorArgs[1],
|
||||
() => selectorArgs[2],
|
||||
combiner
|
||||
];
|
||||
break;
|
||||
default: throw new Error("MUI X: Unsupported number of arguments for selector. The memoized selector supports up to 3 additional arguments. Consider restructuring your selector to use fewer arguments.");
|
||||
}
|
||||
if (options) reselectArgs = [...reselectArgs, options];
|
||||
fn = reselectCreateSelector(...reselectArgs);
|
||||
fn.selectorArgs = selectorArgs;
|
||||
cache.set(cacheKey, fn);
|
||||
}
|
||||
switch (argsLength) {
|
||||
case 3: fn.selectorArgs[2] = a3;
|
||||
case 2: fn.selectorArgs[1] = a2;
|
||||
case 1: fn.selectorArgs[0] = a1;
|
||||
}
|
||||
switch (argsLength) {
|
||||
case 0: return fn(state);
|
||||
case 1: return fn(state, a1);
|
||||
case 2: return fn(state, a1, a2);
|
||||
case 3: return fn(state, a1, a2, a3);
|
||||
default: throw new Error("unreachable");
|
||||
}
|
||||
};
|
||||
return selector;
|
||||
};
|
||||
/**
|
||||
* Creates a memoized selector function that can be used to derive values from the store's state.
|
||||
* This is useful for selectors that produce non-primitive values, such as objects or arrays, where memoization can help prevent unnecessary re-renders in React components.
|
||||
*
|
||||
* The memoization is implemented in a way that only the most recent selector result is cached.
|
||||
* This is suitable for cases where the selector is called with the same state and arguments repeatedly,
|
||||
* but may not be ideal for selectors that are called with a wide variety of states and arguments.
|
||||
*
|
||||
* The combiner function can have up to three additional parameters, but it **cannot have optional or default parameters**.
|
||||
*
|
||||
* This function accepts up to six functions and combines them into a single selector function.
|
||||
* The resulting selector will take the state from the combined selectors and any additional parameters required by the combiner.
|
||||
*
|
||||
* The return type of the resulting selector is determined by the return type of the combiner function.
|
||||
*
|
||||
* @example
|
||||
* const selector = createSelectorMemoized(
|
||||
* (state) => state.disabled
|
||||
* );
|
||||
*
|
||||
* @example
|
||||
* const selector = createSelectorMemoized(
|
||||
* (state) => state.disabled,
|
||||
* (state) => state.open,
|
||||
* (disabled, open) => ({ disabled, open })
|
||||
* );
|
||||
*/
|
||||
var createSelectorMemoized = createSelectorMemoizedWithOptions();
|
||||
//#endregion
|
||||
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js
|
||||
/**
|
||||
* @license React
|
||||
* use-sync-external-store-shim.development.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
var require_use_sync_external_store_shim_development = /* @__PURE__ */ __commonJSMin(((exports) => {
|
||||
(function() {
|
||||
function is(x, y) {
|
||||
return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
|
||||
}
|
||||
function useSyncExternalStore$2(subscribe, getSnapshot) {
|
||||
didWarnOld18Alpha || void 0 === React.startTransition || (didWarnOld18Alpha = !0, console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
|
||||
var value = getSnapshot();
|
||||
if (!didWarnUncachedGetSnapshot) {
|
||||
var cachedValue = getSnapshot();
|
||||
objectIs(value, cachedValue) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), didWarnUncachedGetSnapshot = !0);
|
||||
}
|
||||
cachedValue = useState({ inst: {
|
||||
value,
|
||||
getSnapshot
|
||||
} });
|
||||
var inst = cachedValue[0].inst, forceUpdate = cachedValue[1];
|
||||
useLayoutEffect(function() {
|
||||
inst.value = value;
|
||||
inst.getSnapshot = getSnapshot;
|
||||
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
||||
}, [
|
||||
subscribe,
|
||||
value,
|
||||
getSnapshot
|
||||
]);
|
||||
useEffect(function() {
|
||||
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
||||
return subscribe(function() {
|
||||
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
||||
});
|
||||
}, [subscribe]);
|
||||
useDebugValue(value);
|
||||
return value;
|
||||
}
|
||||
function checkIfSnapshotChanged(inst) {
|
||||
var latestGetSnapshot = inst.getSnapshot;
|
||||
inst = inst.value;
|
||||
try {
|
||||
var nextValue = latestGetSnapshot();
|
||||
return !objectIs(inst, nextValue);
|
||||
} catch (error) {
|
||||
return !0;
|
||||
}
|
||||
}
|
||||
function useSyncExternalStore$1(subscribe, getSnapshot) {
|
||||
return getSnapshot();
|
||||
}
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
||||
var React = require_react(), objectIs = "function" === typeof Object.is ? Object.is : is, useState = React.useState, useEffect = React.useEffect, useLayoutEffect = React.useLayoutEffect, useDebugValue = React.useDebugValue, didWarnOld18Alpha = !1, didWarnUncachedGetSnapshot = !1, shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
|
||||
exports.useSyncExternalStore = void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
||||
})();
|
||||
}));
|
||||
//#endregion
|
||||
//#region node_modules/use-sync-external-store/shim/index.js
|
||||
var require_shim = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
||||
module.exports = require_use_sync_external_store_shim_development();
|
||||
}));
|
||||
//#endregion
|
||||
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js
|
||||
/**
|
||||
* @license React
|
||||
* use-sync-external-store-shim/with-selector.development.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
var require_with_selector_development = /* @__PURE__ */ __commonJSMin(((exports) => {
|
||||
(function() {
|
||||
function is(x, y) {
|
||||
return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
|
||||
}
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
||||
var React = require_react(), shim = require_shim(), objectIs = "function" === typeof Object.is ? Object.is : is, useSyncExternalStore = shim.useSyncExternalStore, useRef = React.useRef, useEffect = React.useEffect, useMemo = React.useMemo, useDebugValue = React.useDebugValue;
|
||||
exports.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
|
||||
var instRef = useRef(null);
|
||||
if (null === instRef.current) {
|
||||
var inst = {
|
||||
hasValue: !1,
|
||||
value: null
|
||||
};
|
||||
instRef.current = inst;
|
||||
} else inst = instRef.current;
|
||||
instRef = useMemo(function() {
|
||||
function memoizedSelector(nextSnapshot) {
|
||||
if (!hasMemo) {
|
||||
hasMemo = !0;
|
||||
memoizedSnapshot = nextSnapshot;
|
||||
nextSnapshot = selector(nextSnapshot);
|
||||
if (void 0 !== isEqual && inst.hasValue) {
|
||||
var currentSelection = inst.value;
|
||||
if (isEqual(currentSelection, nextSnapshot)) return memoizedSelection = currentSelection;
|
||||
}
|
||||
return memoizedSelection = nextSnapshot;
|
||||
}
|
||||
currentSelection = memoizedSelection;
|
||||
if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;
|
||||
var nextSelection = selector(nextSnapshot);
|
||||
if (void 0 !== isEqual && isEqual(currentSelection, nextSelection)) return memoizedSnapshot = nextSnapshot, currentSelection;
|
||||
memoizedSnapshot = nextSnapshot;
|
||||
return memoizedSelection = nextSelection;
|
||||
}
|
||||
var hasMemo = !1, memoizedSnapshot, memoizedSelection, maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot;
|
||||
return [function() {
|
||||
return memoizedSelector(getSnapshot());
|
||||
}, null === maybeGetServerSnapshot ? void 0 : function() {
|
||||
return memoizedSelector(maybeGetServerSnapshot());
|
||||
}];
|
||||
}, [
|
||||
getSnapshot,
|
||||
getServerSnapshot,
|
||||
selector,
|
||||
isEqual
|
||||
]);
|
||||
var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
|
||||
useEffect(function() {
|
||||
inst.hasValue = !0;
|
||||
inst.value = value;
|
||||
}, [value]);
|
||||
useDebugValue(value);
|
||||
return value;
|
||||
};
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
||||
})();
|
||||
}));
|
||||
//#endregion
|
||||
//#region node_modules/use-sync-external-store/shim/with-selector.js
|
||||
var require_with_selector = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
||||
module.exports = require_with_selector_development();
|
||||
}));
|
||||
//#endregion
|
||||
//#region node_modules/@mui/x-internals/store/useStore.mjs
|
||||
var import_shim = require_shim();
|
||||
var import_with_selector = require_with_selector();
|
||||
var useStoreImplementation = reactMajor_default >= 19 ? useStoreR19 : useStoreLegacy;
|
||||
function useStore(store, selector, a1, a2, a3) {
|
||||
return useStoreImplementation(store, selector, a1, a2, a3);
|
||||
}
|
||||
function useStoreR19(store, selector, a1, a2, a3) {
|
||||
const getSelection = import_react.useCallback(() => selector(store.getSnapshot(), a1, a2, a3), [
|
||||
store,
|
||||
selector,
|
||||
a1,
|
||||
a2,
|
||||
a3
|
||||
]);
|
||||
return (0, import_shim.useSyncExternalStore)(store.subscribe, getSelection, getSelection);
|
||||
}
|
||||
function useStoreLegacy(store, selector, a1, a2, a3) {
|
||||
return (0, import_with_selector.useSyncExternalStoreWithSelector)(store.subscribe, store.getSnapshot, store.getSnapshot, (state) => selector(state, a1, a2, a3));
|
||||
}
|
||||
//#endregion
|
||||
//#region node_modules/@mui/x-internals/store/Store.mjs
|
||||
var Store = class Store {
|
||||
static create(state) {
|
||||
return new Store(state);
|
||||
}
|
||||
constructor(state) {
|
||||
this.state = state;
|
||||
this.listeners = /* @__PURE__ */ new Set();
|
||||
this.updateTick = 0;
|
||||
}
|
||||
subscribe = (fn) => {
|
||||
this.listeners.add(fn);
|
||||
return () => {
|
||||
this.listeners.delete(fn);
|
||||
};
|
||||
};
|
||||
/**
|
||||
* Returns the current state snapshot. Meant for usage with `useSyncExternalStore`.
|
||||
* If you want to access the state, use the `state` property instead.
|
||||
*/
|
||||
getSnapshot = () => {
|
||||
return this.state;
|
||||
};
|
||||
setState(newState) {
|
||||
this.state = newState;
|
||||
this.updateTick += 1;
|
||||
const currentTick = this.updateTick;
|
||||
const it = this.listeners.values();
|
||||
let result;
|
||||
while (result = it.next(), !result.done) {
|
||||
if (currentTick !== this.updateTick) return;
|
||||
const listener = result.value;
|
||||
listener(newState);
|
||||
}
|
||||
}
|
||||
update(changes) {
|
||||
for (const key in changes) if (!Object.is(this.state[key], changes[key])) {
|
||||
this.setState(_extends({}, this.state, changes));
|
||||
return;
|
||||
}
|
||||
}
|
||||
set(key, value) {
|
||||
if (!Object.is(this.state[key], value)) this.setState(_extends({}, this.state, { [key]: value }));
|
||||
}
|
||||
use = (selector, a1, a2, a3) => {
|
||||
return useStore(this, selector, a1, a2, a3);
|
||||
};
|
||||
};
|
||||
//#endregion
|
||||
//#region node_modules/@mui/x-internals/EventManager/EventManager.mjs
|
||||
var EventManager = class {
|
||||
maxListeners = 20;
|
||||
warnOnce = false;
|
||||
events = {};
|
||||
on(eventName, listener, options = {}) {
|
||||
let collection = this.events[eventName];
|
||||
if (!collection) {
|
||||
collection = {
|
||||
highPriority: /* @__PURE__ */ new Map(),
|
||||
regular: /* @__PURE__ */ new Map()
|
||||
};
|
||||
this.events[eventName] = collection;
|
||||
}
|
||||
if (options.isFirst) collection.highPriority.set(listener, true);
|
||||
else collection.regular.set(listener, true);
|
||||
{
|
||||
const collectionSize = collection.highPriority.size + collection.regular.size;
|
||||
if (collectionSize > this.maxListeners && !this.warnOnce) {
|
||||
this.warnOnce = true;
|
||||
console.warn([`Possible EventEmitter memory leak detected. ${collectionSize} ${eventName} listeners added.`].join("\n"));
|
||||
}
|
||||
}
|
||||
}
|
||||
removeListener(eventName, listener) {
|
||||
if (this.events[eventName]) {
|
||||
this.events[eventName].regular.delete(listener);
|
||||
this.events[eventName].highPriority.delete(listener);
|
||||
}
|
||||
}
|
||||
removeAllListeners() {
|
||||
this.events = {};
|
||||
}
|
||||
emit(eventName, ...args) {
|
||||
const collection = this.events[eventName];
|
||||
if (!collection) return;
|
||||
const highPriorityListeners = Array.from(collection.highPriority.keys());
|
||||
const regularListeners = Array.from(collection.regular.keys());
|
||||
for (let i = highPriorityListeners.length - 1; i >= 0; i -= 1) {
|
||||
const listener = highPriorityListeners[i];
|
||||
if (collection.highPriority.has(listener)) listener.apply(this, args);
|
||||
}
|
||||
for (let i = 0; i < regularListeners.length; i += 1) {
|
||||
const listener = regularListeners[i];
|
||||
if (collection.regular.has(listener)) listener.apply(this, args);
|
||||
}
|
||||
}
|
||||
once(eventName, listener) {
|
||||
const that = this;
|
||||
this.on(eventName, function oneTimeListener(...args) {
|
||||
that.removeListener(eventName, oneTimeListener);
|
||||
listener.apply(that, args);
|
||||
});
|
||||
}
|
||||
};
|
||||
//#endregion
|
||||
export { createSelector as a, warnOnce as c, _objectWithoutPropertiesLoose as d, require_shim as i, fastObjectShallowCompare as l, Store as n, createSelectorMemoized as o, useStore as r, lruMemoize as s, EventManager as t, reactMajor_default as u };
|
||||
Generated
Vendored
+1
File diff suppressed because one or more lines are too long
+228
@@ -0,0 +1,228 @@
|
||||
import { r as __toESM } from "./rolldown-runtime-DC62tzP2.js";
|
||||
import { t as require_react } from "./react.js";
|
||||
import { t as require_jsx_runtime } from "./react_jsx-runtime.js";
|
||||
import { t as require_prop_types } from "./prop-types-C5owi9-6.js";
|
||||
import { i as useReducedMotion, n as useForkRef_default } from "./useLazyRef-BFAG-x_s.js";
|
||||
import { r as getReactElementRef, t as elementAcceptingRef } from "./elementAcceptingRef-rYQ5gbK-.js";
|
||||
import { n as useTheme } from "./chainPropTypes-DS_z862G.js";
|
||||
import { n as getTransitionChildStyle, o as normalizedTransitionCallback, r as getTransitionProps, s as reflow } from "./utils-BCVtNTPx.js";
|
||||
import { t as Transition } from "./Transition-CTO78YMk.js";
|
||||
//#region node_modules/@mui/material/Grow/Grow.mjs
|
||||
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
||||
var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types(), 1);
|
||||
var import_jsx_runtime = require_jsx_runtime();
|
||||
function getScale(value) {
|
||||
return `scale(${value}, ${value ** 2})`;
|
||||
}
|
||||
var styles = {
|
||||
entering: {
|
||||
opacity: 1,
|
||||
transform: getScale(1)
|
||||
},
|
||||
entered: {
|
||||
opacity: 1,
|
||||
transform: "none"
|
||||
},
|
||||
exiting: {
|
||||
opacity: 0,
|
||||
transform: getScale(.75)
|
||||
},
|
||||
exited: {
|
||||
opacity: 0,
|
||||
transform: getScale(.75)
|
||||
}
|
||||
};
|
||||
var hiddenStyles = {
|
||||
opacity: 0,
|
||||
transform: getScale(.75),
|
||||
visibility: "hidden"
|
||||
};
|
||||
/**
|
||||
* The Grow transition is used by the [Tooltip](/material-ui/react-tooltip/) and
|
||||
* [Popover](/material-ui/react-popover/) components.
|
||||
*/
|
||||
var Grow = /*#__PURE__*/ import_react.forwardRef(function Grow(props, ref) {
|
||||
const { addEndListener, appear = true, children, disablePrefersReducedMotion = false, easing, in: inProp, onEnter, onEntered, onEntering, onExit, onExited, onExiting, style, timeout = "auto", ...other } = props;
|
||||
const autoTimeout = import_react.useRef(null);
|
||||
const theme = useTheme();
|
||||
const reducedMotion = useReducedMotion(theme.motion.reducedMotion, disablePrefersReducedMotion);
|
||||
const nodeRef = import_react.useRef(null);
|
||||
const handleRef = useForkRef_default(nodeRef, getReactElementRef(children), ref);
|
||||
const handleEntering = normalizedTransitionCallback(nodeRef, onEntering);
|
||||
const handleEnter = normalizedTransitionCallback(nodeRef, (node, isAppearing) => {
|
||||
if (!reducedMotion.shouldReduceMotion) reflow(node);
|
||||
const { duration: transitionDuration, delay, easing: transitionTimingFunction } = getTransitionProps({
|
||||
style,
|
||||
timeout,
|
||||
easing
|
||||
}, { mode: "enter" });
|
||||
let duration;
|
||||
if (timeout === "auto" && !reducedMotion.shouldReduceMotion) {
|
||||
duration = theme.transitions.getAutoHeightDuration(node.clientHeight);
|
||||
autoTimeout.current = duration;
|
||||
} else {
|
||||
duration = transitionDuration;
|
||||
autoTimeout.current = null;
|
||||
}
|
||||
const transitionTiming = reducedMotion.getTransitionTiming({
|
||||
duration,
|
||||
delay
|
||||
});
|
||||
node.style.transition = [theme.transitions.create("opacity", {
|
||||
duration: transitionTiming.duration,
|
||||
delay: transitionTiming.delay
|
||||
}), theme.transitions.create("transform", {
|
||||
duration: typeof transitionTiming.duration === "string" ? transitionTiming.duration : transitionTiming.duration * .666,
|
||||
delay: transitionTiming.delay,
|
||||
easing: transitionTimingFunction
|
||||
})].join(",");
|
||||
if (onEnter) onEnter(node, isAppearing);
|
||||
});
|
||||
const handleEntered = normalizedTransitionCallback(nodeRef, onEntered);
|
||||
const handleExiting = normalizedTransitionCallback(nodeRef, onExiting);
|
||||
const handleExit = normalizedTransitionCallback(nodeRef, (node) => {
|
||||
const { duration: transitionDuration, delay, easing: transitionTimingFunction } = getTransitionProps({
|
||||
style,
|
||||
timeout,
|
||||
easing
|
||||
}, { mode: "exit" });
|
||||
let duration;
|
||||
if (timeout === "auto" && !reducedMotion.shouldReduceMotion) {
|
||||
duration = theme.transitions.getAutoHeightDuration(node.clientHeight);
|
||||
autoTimeout.current = duration;
|
||||
} else {
|
||||
duration = transitionDuration;
|
||||
autoTimeout.current = null;
|
||||
}
|
||||
const transitionTiming = reducedMotion.getTransitionTiming({
|
||||
duration,
|
||||
delay
|
||||
});
|
||||
node.style.transition = [theme.transitions.create("opacity", {
|
||||
duration: transitionTiming.duration,
|
||||
delay: transitionTiming.delay
|
||||
}), theme.transitions.create("transform", {
|
||||
duration: typeof transitionTiming.duration === "string" ? transitionTiming.duration : transitionTiming.duration * .666,
|
||||
delay: transitionTiming.delay || (typeof transitionTiming.duration === "string" ? transitionTiming.duration : transitionTiming.duration * .333),
|
||||
easing: transitionTimingFunction
|
||||
})].join(",");
|
||||
node.style.opacity = 0;
|
||||
node.style.transform = getScale(.75);
|
||||
if (onExit) onExit(node);
|
||||
});
|
||||
const handleExited = normalizedTransitionCallback(nodeRef, (node) => {
|
||||
node.style.transition = "";
|
||||
if (onExited) onExited(node);
|
||||
});
|
||||
return /*#__PURE__*/ (0, import_jsx_runtime.jsx)(Transition, {
|
||||
appear,
|
||||
in: inProp,
|
||||
nodeRef,
|
||||
onEnter: handleEnter,
|
||||
onEntered: handleEntered,
|
||||
onEntering: handleEntering,
|
||||
onExit: handleExit,
|
||||
onExited: handleExited,
|
||||
onExiting: handleExiting,
|
||||
addEndListener: addEndListener ? (next) => {
|
||||
addEndListener(nodeRef.current, next);
|
||||
} : void 0,
|
||||
getAutoTimeout: timeout === "auto" ? () => autoTimeout.current : void 0,
|
||||
reduceMotion: reducedMotion.shouldReduceMotion,
|
||||
timeout: timeout === "auto" ? null : timeout,
|
||||
...other,
|
||||
children: (state, { ownerState, ...restChildProps }) => {
|
||||
const childStyle = getTransitionChildStyle(state, inProp, styles, hiddenStyles, style, children.props.style);
|
||||
return /*#__PURE__*/ import_react.cloneElement(children, {
|
||||
style: childStyle,
|
||||
ref: handleRef,
|
||||
...restChildProps
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
Grow.propTypes = {
|
||||
/**
|
||||
* Add a custom transition end trigger.
|
||||
* Use it when you need custom logic to decide when the transition has ended.
|
||||
* Note: Timeouts are still used as a fallback if provided.
|
||||
*
|
||||
* @param {HTMLElement} node The transitioning DOM node.
|
||||
* @param {Function} done Call this when the transition has finished.
|
||||
*/
|
||||
addEndListener: import_prop_types.default.func,
|
||||
/**
|
||||
* Perform the enter transition when it first mounts if `in` is also `true`.
|
||||
* Set this to `false` to disable this behavior.
|
||||
* @default true
|
||||
*/
|
||||
appear: import_prop_types.default.bool,
|
||||
/**
|
||||
* A single child content element.
|
||||
*/
|
||||
children: elementAcceptingRef.isRequired,
|
||||
/**
|
||||
* If `true`, the transition ignores `theme.motion.reducedMotion` and keeps its normal timing.
|
||||
* @default false
|
||||
*/
|
||||
disablePrefersReducedMotion: import_prop_types.default.bool,
|
||||
/**
|
||||
* The transition timing function.
|
||||
* You may specify a single easing or a object containing enter and exit values.
|
||||
*/
|
||||
easing: import_prop_types.default.oneOfType([import_prop_types.default.shape({
|
||||
enter: import_prop_types.default.string,
|
||||
exit: import_prop_types.default.string
|
||||
}), import_prop_types.default.string]),
|
||||
/**
|
||||
* If `true`, the component will transition in.
|
||||
*/
|
||||
in: import_prop_types.default.bool,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onEnter: import_prop_types.default.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onEntered: import_prop_types.default.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onEntering: import_prop_types.default.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onExit: import_prop_types.default.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onExited: import_prop_types.default.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onExiting: import_prop_types.default.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
style: import_prop_types.default.object,
|
||||
/**
|
||||
* The duration for the transition, in milliseconds.
|
||||
* You may specify a single timeout for all transitions, or individually with an object.
|
||||
*
|
||||
* Set to 'auto' to automatically calculate transition time based on height.
|
||||
* @default 'auto'
|
||||
*/
|
||||
timeout: import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.oneOf(["auto"]),
|
||||
import_prop_types.default.number,
|
||||
import_prop_types.default.shape({
|
||||
appear: import_prop_types.default.number,
|
||||
enter: import_prop_types.default.number,
|
||||
exit: import_prop_types.default.number
|
||||
})
|
||||
])
|
||||
};
|
||||
if (Grow) Grow.muiSupportAuto = true;
|
||||
//#endregion
|
||||
export { Grow as t };
|
||||
+1
File diff suppressed because one or more lines are too long
+320
@@ -0,0 +1,320 @@
|
||||
import { r as __toESM } from "./rolldown-runtime-DC62tzP2.js";
|
||||
import { t as require_react } from "./react.js";
|
||||
import { t as require_jsx_runtime } from "./react_jsx-runtime.js";
|
||||
import { t as require_prop_types } from "./prop-types-C5owi9-6.js";
|
||||
import { F as generateUtilityClasses, I as generateUtilityClass, ut as clsx } from "./identifier-Db3dwgA7.js";
|
||||
import { l as composeClasses, t as styled } from "./styled-ry4r-NKP.js";
|
||||
import { t as capitalize_default } from "./capitalize-DESO4t23.js";
|
||||
import { t as useDefaultProps } from "./DefaultPropsProvider-C8vOQ3_j.js";
|
||||
import { t as memoTheme } from "./memoTheme-Ciuals54.js";
|
||||
import { t as chainPropTypes } from "./chainPropTypes-DS_z862G.js";
|
||||
import { i as getTransitionStyles } from "./utils-BCVtNTPx.js";
|
||||
import { t as useId_default } from "./useId-UEgN89h0.js";
|
||||
import { t as ButtonBase } from "./ButtonBase-Bsl8ZUTz.js";
|
||||
import { t as createSimplePaletteValueFilter } from "./createSimplePaletteValueFilter-BhADkSm9.js";
|
||||
import { t as CircularProgress } from "./CircularProgress-Tc2SKes6.js";
|
||||
//#region node_modules/@mui/material/IconButton/iconButtonClasses.mjs
|
||||
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
||||
var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types(), 1);
|
||||
function getIconButtonUtilityClass(slot) {
|
||||
return generateUtilityClass("MuiIconButton", slot);
|
||||
}
|
||||
var iconButtonClasses = generateUtilityClasses("MuiIconButton", [
|
||||
"root",
|
||||
"disabled",
|
||||
"colorInherit",
|
||||
"colorPrimary",
|
||||
"colorSecondary",
|
||||
"colorError",
|
||||
"colorInfo",
|
||||
"colorSuccess",
|
||||
"colorWarning",
|
||||
"edgeStart",
|
||||
"edgeEnd",
|
||||
"sizeSmall",
|
||||
"sizeMedium",
|
||||
"sizeLarge",
|
||||
"loading",
|
||||
"loadingIndicator",
|
||||
"loadingWrapper"
|
||||
]);
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/IconButton/IconButton.mjs
|
||||
var import_jsx_runtime = require_jsx_runtime();
|
||||
var useUtilityClasses = (ownerState) => {
|
||||
const { classes, disabled, color, edge, size, loading } = ownerState;
|
||||
const slots = {
|
||||
root: [
|
||||
"root",
|
||||
loading && "loading",
|
||||
disabled && "disabled",
|
||||
color !== "default" && `color${capitalize_default(color)}`,
|
||||
edge && `edge${capitalize_default(edge)}`,
|
||||
`size${capitalize_default(size)}`
|
||||
],
|
||||
loadingIndicator: ["loadingIndicator"],
|
||||
loadingWrapper: ["loadingWrapper"]
|
||||
};
|
||||
return composeClasses(slots, getIconButtonUtilityClass, classes);
|
||||
};
|
||||
var IconButtonRoot = styled(ButtonBase, {
|
||||
name: "MuiIconButton",
|
||||
slot: "Root",
|
||||
overridesResolver: (props, styles) => {
|
||||
const { ownerState } = props;
|
||||
return [
|
||||
styles.root,
|
||||
ownerState.loading && styles.loading,
|
||||
ownerState.color !== "default" && styles[`color${capitalize_default(ownerState.color)}`],
|
||||
ownerState.edge && styles[`edge${capitalize_default(ownerState.edge)}`],
|
||||
styles[`size${capitalize_default(ownerState.size)}`]
|
||||
];
|
||||
}
|
||||
})(memoTheme(({ theme }) => ({
|
||||
textAlign: "center",
|
||||
flex: "0 0 auto",
|
||||
fontSize: theme.typography.pxToRem(24),
|
||||
padding: 8,
|
||||
borderRadius: "50%",
|
||||
color: (theme.vars || theme).palette.action.active,
|
||||
...getTransitionStyles(theme, "background-color", { duration: theme.transitions.duration.shortest }),
|
||||
variants: [
|
||||
{
|
||||
props: (props) => !props.disableRipple,
|
||||
style: {
|
||||
"--IconButton-hoverBg": theme.alpha((theme.vars || theme).palette.action.active, (theme.vars || theme).palette.action.hoverOpacity),
|
||||
"&:hover": {
|
||||
backgroundColor: "var(--IconButton-hoverBg)",
|
||||
"@media (hover: none)": { backgroundColor: "transparent" }
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
props: { edge: "start" },
|
||||
style: { marginLeft: -12 }
|
||||
},
|
||||
{
|
||||
props: {
|
||||
edge: "start",
|
||||
size: "small"
|
||||
},
|
||||
style: { marginLeft: -3 }
|
||||
},
|
||||
{
|
||||
props: { edge: "end" },
|
||||
style: { marginRight: -12 }
|
||||
},
|
||||
{
|
||||
props: {
|
||||
edge: "end",
|
||||
size: "small"
|
||||
},
|
||||
style: { marginRight: -3 }
|
||||
}
|
||||
]
|
||||
})), memoTheme(({ theme }) => ({
|
||||
variants: [
|
||||
{
|
||||
props: { color: "inherit" },
|
||||
style: { color: "inherit" }
|
||||
},
|
||||
...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({
|
||||
props: { color },
|
||||
style: {
|
||||
color: (theme.vars || theme).palette[color].main,
|
||||
"--IconButton-hoverBg": theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.hoverOpacity)
|
||||
}
|
||||
})),
|
||||
{
|
||||
props: { size: "small" },
|
||||
style: {
|
||||
padding: 5,
|
||||
fontSize: theme.typography.pxToRem(18)
|
||||
}
|
||||
},
|
||||
{
|
||||
props: { size: "large" },
|
||||
style: {
|
||||
padding: 12,
|
||||
fontSize: theme.typography.pxToRem(28)
|
||||
}
|
||||
}
|
||||
],
|
||||
[`&.${iconButtonClasses.disabled}`]: {
|
||||
backgroundColor: "transparent",
|
||||
color: (theme.vars || theme).palette.action.disabled
|
||||
},
|
||||
[`&.${iconButtonClasses.loading}`]: { color: "transparent" }
|
||||
})));
|
||||
var IconButtonLoadingIndicator = styled("span", {
|
||||
name: "MuiIconButton",
|
||||
slot: "LoadingIndicator"
|
||||
})(({ theme }) => ({
|
||||
display: "none",
|
||||
position: "absolute",
|
||||
visibility: "visible",
|
||||
top: "50%",
|
||||
left: "50%",
|
||||
transform: "translate(-50%, -50%)",
|
||||
color: (theme.vars || theme).palette.action.disabled,
|
||||
variants: [{
|
||||
props: { loading: true },
|
||||
style: { display: "flex" }
|
||||
}]
|
||||
}));
|
||||
/**
|
||||
* Refer to the [Icons](/material-ui/icons/) section of the documentation
|
||||
* regarding the available icon options.
|
||||
*/
|
||||
var IconButton = /*#__PURE__*/ import_react.forwardRef(function IconButton(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: "MuiIconButton"
|
||||
});
|
||||
const { edge = false, children, className, color = "default", disabled = false, disableFocusRipple = false, size = "medium", id: idProp, loading = null, loadingIndicator: loadingIndicatorProp, ...other } = props;
|
||||
const loadingId = useId_default(idProp);
|
||||
const loadingIndicator = loadingIndicatorProp ?? /*#__PURE__*/ (0, import_jsx_runtime.jsx)(CircularProgress, {
|
||||
"aria-labelledby": loadingId,
|
||||
color: "inherit",
|
||||
size: 16
|
||||
});
|
||||
const ownerState = {
|
||||
...props,
|
||||
edge,
|
||||
color,
|
||||
disabled,
|
||||
disableFocusRipple,
|
||||
loading,
|
||||
loadingIndicator,
|
||||
size
|
||||
};
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
return /*#__PURE__*/ (0, import_jsx_runtime.jsxs)(IconButtonRoot, {
|
||||
id: loading ? loadingId : idProp,
|
||||
className: clsx(classes.root, className),
|
||||
centerRipple: true,
|
||||
internalNativeButton: true,
|
||||
focusRipple: !disableFocusRipple,
|
||||
disabled: disabled || loading,
|
||||
ref,
|
||||
...other,
|
||||
ownerState,
|
||||
children: [typeof loading === "boolean" && /*#__PURE__*/ (0, import_jsx_runtime.jsx)("span", {
|
||||
className: classes.loadingWrapper,
|
||||
style: { display: "contents" },
|
||||
children: /*#__PURE__*/ (0, import_jsx_runtime.jsx)(IconButtonLoadingIndicator, {
|
||||
className: classes.loadingIndicator,
|
||||
ownerState,
|
||||
children: loading && loadingIndicator
|
||||
})
|
||||
}), children]
|
||||
});
|
||||
});
|
||||
IconButton.propTypes = {
|
||||
/**
|
||||
* The icon to display.
|
||||
*/
|
||||
children: chainPropTypes(import_prop_types.default.node, (props) => {
|
||||
if (import_react.Children.toArray(props.children).some((child) => /*#__PURE__*/ import_react.isValidElement(child) && child.props.onClick)) return 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 <button> will be responsive to click events."
|
||||
].join("\n"));
|
||||
return null;
|
||||
}),
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: import_prop_types.default.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: import_prop_types.default.string,
|
||||
/**
|
||||
* The color of the component.
|
||||
* It supports both default and custom theme colors, which can be added as shown in the
|
||||
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
||||
* @default 'default'
|
||||
*/
|
||||
color: import_prop_types.default.oneOfType([import_prop_types.default.oneOf([
|
||||
"inherit",
|
||||
"default",
|
||||
"primary",
|
||||
"secondary",
|
||||
"error",
|
||||
"info",
|
||||
"success",
|
||||
"warning"
|
||||
]), import_prop_types.default.string]),
|
||||
/**
|
||||
* If `true`, the component is disabled.
|
||||
* @default false
|
||||
*/
|
||||
disabled: import_prop_types.default.bool,
|
||||
/**
|
||||
* If `true`, the keyboard focus ripple is disabled.
|
||||
* @default false
|
||||
*/
|
||||
disableFocusRipple: import_prop_types.default.bool,
|
||||
/**
|
||||
* If `true`, the ripple effect is disabled.
|
||||
*
|
||||
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
||||
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
||||
* @default false
|
||||
*/
|
||||
disableRipple: import_prop_types.default.bool,
|
||||
/**
|
||||
* If given, uses a negative margin to counteract the padding on one
|
||||
* side (this is often helpful for aligning the left or right
|
||||
* side of the icon with content above or below, without ruining the border
|
||||
* size and shape).
|
||||
* @default false
|
||||
*/
|
||||
edge: import_prop_types.default.oneOf([
|
||||
"end",
|
||||
"start",
|
||||
false
|
||||
]),
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
id: import_prop_types.default.string,
|
||||
/**
|
||||
* If `true`, the loading indicator is visible and the button is disabled.
|
||||
* If `true | false`, the loading wrapper is always rendered before the children to prevent [Google Translation Crash](https://github.com/mui/material-ui/issues/27853).
|
||||
* @default null
|
||||
*/
|
||||
loading: import_prop_types.default.bool,
|
||||
/**
|
||||
* Element placed before the children if the button is in loading state.
|
||||
* The node should contain an element with `role="progressbar"` with an accessible name.
|
||||
* By default, it renders a `CircularProgress` that is labeled by the button itself.
|
||||
* @default <CircularProgress color="inherit" size={16} />
|
||||
*/
|
||||
loadingIndicator: import_prop_types.default.node,
|
||||
/**
|
||||
* The size of the component.
|
||||
* `small` is equivalent to the dense button styling.
|
||||
* @default 'medium'
|
||||
*/
|
||||
size: import_prop_types.default.oneOfType([import_prop_types.default.oneOf([
|
||||
"small",
|
||||
"medium",
|
||||
"large"
|
||||
]), import_prop_types.default.string]),
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx: import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.arrayOf(import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object,
|
||||
import_prop_types.default.bool
|
||||
])),
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object
|
||||
])
|
||||
};
|
||||
//#endregion
|
||||
export { getIconButtonUtilityClass as n, iconButtonClasses as r, IconButton as t };
|
||||
Generated
Vendored
+1
File diff suppressed because one or more lines are too long
Generated
Vendored
+165
@@ -0,0 +1,165 @@
|
||||
import { r as __toESM } from "./rolldown-runtime-DC62tzP2.js";
|
||||
import { t as require_react } from "./react.js";
|
||||
import { t as require_jsx_runtime } from "./react_jsx-runtime.js";
|
||||
import { t as require_prop_types } from "./prop-types-C5owi9-6.js";
|
||||
import { ut as clsx } from "./identifier-Db3dwgA7.js";
|
||||
import { l as composeClasses, t as styled } from "./styled-ry4r-NKP.js";
|
||||
import { t as capitalize_default } from "./capitalize-DESO4t23.js";
|
||||
import { t as useDefaultProps } from "./DefaultPropsProvider-C8vOQ3_j.js";
|
||||
import { t as memoTheme } from "./memoTheme-Ciuals54.js";
|
||||
import { r as FormControlContext, t as useFormControl } from "./useFormControl-DsSCzWhM.js";
|
||||
import { t as Typography } from "./Typography-BDkJLIDE.js";
|
||||
import { n as inputAdornmentClasses, t as getInputAdornmentUtilityClass } from "./inputAdornmentClasses-Bz0x_Nya.js";
|
||||
//#region node_modules/@mui/material/InputAdornment/InputAdornment.mjs
|
||||
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
||||
var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types(), 1);
|
||||
var import_jsx_runtime = require_jsx_runtime();
|
||||
var _span;
|
||||
var overridesResolver = (props, styles) => {
|
||||
const { ownerState } = props;
|
||||
return [
|
||||
styles.root,
|
||||
styles[`position${capitalize_default(ownerState.position)}`],
|
||||
ownerState.disablePointerEvents === true && styles.disablePointerEvents,
|
||||
styles[ownerState.variant]
|
||||
];
|
||||
};
|
||||
var useUtilityClasses = (ownerState) => {
|
||||
const { classes, disablePointerEvents, hiddenLabel, position, size, variant } = ownerState;
|
||||
const slots = { root: [
|
||||
"root",
|
||||
disablePointerEvents && "disablePointerEvents",
|
||||
position && `position${capitalize_default(position)}`,
|
||||
variant,
|
||||
hiddenLabel && "hiddenLabel",
|
||||
size && `size${capitalize_default(size)}`
|
||||
] };
|
||||
return composeClasses(slots, getInputAdornmentUtilityClass, classes);
|
||||
};
|
||||
var InputAdornmentRoot = styled("div", {
|
||||
name: "MuiInputAdornment",
|
||||
slot: "Root",
|
||||
overridesResolver
|
||||
})(memoTheme(({ theme }) => ({
|
||||
display: "flex",
|
||||
maxHeight: "2em",
|
||||
alignItems: "center",
|
||||
whiteSpace: "nowrap",
|
||||
color: (theme.vars || theme).palette.action.active,
|
||||
variants: [
|
||||
{
|
||||
props: { variant: "filled" },
|
||||
style: { [`&.${inputAdornmentClasses.positionStart}&:not(.${inputAdornmentClasses.hiddenLabel})`]: { marginTop: 16 } }
|
||||
},
|
||||
{
|
||||
props: { position: "start" },
|
||||
style: { marginRight: 8 }
|
||||
},
|
||||
{
|
||||
props: { position: "end" },
|
||||
style: { marginLeft: 8 }
|
||||
},
|
||||
{
|
||||
props: { disablePointerEvents: true },
|
||||
style: { pointerEvents: "none" }
|
||||
}
|
||||
]
|
||||
})));
|
||||
var InputAdornment = /*#__PURE__*/ import_react.forwardRef(function InputAdornment(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: "MuiInputAdornment"
|
||||
});
|
||||
const { children, className, component = "div", disablePointerEvents = false, disableTypography = false, position, variant: variantProp, ...other } = props;
|
||||
const muiFormControl = useFormControl() || {};
|
||||
let variant = variantProp;
|
||||
if (variantProp && muiFormControl.variant) {
|
||||
if (variantProp === muiFormControl.variant) console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one.");
|
||||
}
|
||||
if (muiFormControl && !variant) variant = muiFormControl.variant;
|
||||
const ownerState = {
|
||||
...props,
|
||||
hiddenLabel: muiFormControl.hiddenLabel,
|
||||
size: muiFormControl.size,
|
||||
disablePointerEvents,
|
||||
position,
|
||||
variant
|
||||
};
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
return /*#__PURE__*/ (0, import_jsx_runtime.jsx)(FormControlContext.Provider, {
|
||||
value: null,
|
||||
children: /*#__PURE__*/ (0, import_jsx_runtime.jsx)(InputAdornmentRoot, {
|
||||
as: component,
|
||||
ownerState,
|
||||
className: clsx(classes.root, className),
|
||||
ref,
|
||||
...other,
|
||||
children: typeof children === "string" && !disableTypography ? /*#__PURE__*/ (0, import_jsx_runtime.jsx)(Typography, {
|
||||
color: "textSecondary",
|
||||
children
|
||||
}) : /*#__PURE__*/ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [position === "start" ? _span || (_span = /*#__PURE__*/ (0, import_jsx_runtime.jsx)("span", {
|
||||
className: "notranslate",
|
||||
"aria-hidden": true,
|
||||
children: ""
|
||||
})) : null, children] })
|
||||
})
|
||||
});
|
||||
});
|
||||
InputAdornment.propTypes = {
|
||||
/**
|
||||
* The content of the component, normally an `IconButton` or string.
|
||||
*/
|
||||
children: import_prop_types.default.node,
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: import_prop_types.default.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: import_prop_types.default.string,
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a HTML element or a component.
|
||||
*/
|
||||
component: import_prop_types.default.elementType,
|
||||
/**
|
||||
* Disable pointer events on the root.
|
||||
* This allows for the content of the adornment to focus the `input` on click.
|
||||
* @default false
|
||||
*/
|
||||
disablePointerEvents: import_prop_types.default.bool,
|
||||
/**
|
||||
* If children is a string then disable wrapping in a Typography component.
|
||||
* @default false
|
||||
*/
|
||||
disableTypography: import_prop_types.default.bool,
|
||||
/**
|
||||
* The position this adornment should appear relative to the `Input`.
|
||||
*/
|
||||
position: import_prop_types.default.oneOf(["end", "start"]).isRequired,
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx: import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.arrayOf(import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object,
|
||||
import_prop_types.default.bool
|
||||
])),
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object
|
||||
]),
|
||||
/**
|
||||
* The variant to use.
|
||||
* Note: If you are using the `TextField` component or the `FormControl` component
|
||||
* you do not have to set this manually.
|
||||
*/
|
||||
variant: import_prop_types.default.oneOf([
|
||||
"filled",
|
||||
"outlined",
|
||||
"standard"
|
||||
])
|
||||
};
|
||||
//#endregion
|
||||
export { InputAdornment as t };
|
||||
Generated
Vendored
+1
File diff suppressed because one or more lines are too long
+1167
File diff suppressed because it is too large
Load Diff
+1
File diff suppressed because one or more lines are too long
+217
@@ -0,0 +1,217 @@
|
||||
import { r as __toESM } from "./rolldown-runtime-DC62tzP2.js";
|
||||
import { t as require_react } from "./react.js";
|
||||
import { t as require_jsx_runtime } from "./react_jsx-runtime.js";
|
||||
import { t as require_prop_types } from "./prop-types-C5owi9-6.js";
|
||||
import { C as alpha, F as generateUtilityClasses, I as generateUtilityClass, s as getOverlayAlpha, ut as clsx } from "./identifier-Db3dwgA7.js";
|
||||
import { l as composeClasses, t as styled } from "./styled-ry4r-NKP.js";
|
||||
import { t as useDefaultProps } from "./DefaultPropsProvider-C8vOQ3_j.js";
|
||||
import { t as memoTheme } from "./memoTheme-Ciuals54.js";
|
||||
import { n as useTheme, t as chainPropTypes } from "./chainPropTypes-DS_z862G.js";
|
||||
import { i as getTransitionStyles } from "./utils-BCVtNTPx.js";
|
||||
//#region node_modules/@mui/utils/integerPropType/integerPropType.mjs
|
||||
function getTypeByValue(value) {
|
||||
const valueType = typeof value;
|
||||
switch (valueType) {
|
||||
case "number":
|
||||
if (Number.isNaN(value)) return "NaN";
|
||||
if (!Number.isFinite(value)) return "Infinity";
|
||||
if (value !== Math.floor(value)) return "float";
|
||||
return "number";
|
||||
case "object":
|
||||
if (value === null) return "null";
|
||||
return value.constructor.name;
|
||||
default: return valueType;
|
||||
}
|
||||
}
|
||||
function requiredInteger(props, propName, componentName, location) {
|
||||
const propValue = props[propName];
|
||||
if (propValue == null || !Number.isInteger(propValue)) {
|
||||
const propType = getTypeByValue(propValue);
|
||||
return /* @__PURE__ */ new RangeError(`Invalid ${location} \`${propName}\` of type \`${propType}\` supplied to \`${componentName}\`, expected \`integer\`.`);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
function validator(props, propName, componentName, location) {
|
||||
if (props[propName] === void 0) return null;
|
||||
return requiredInteger(props, propName, componentName, location);
|
||||
}
|
||||
function validatorNoop() {
|
||||
return null;
|
||||
}
|
||||
validator.isRequired = requiredInteger;
|
||||
validatorNoop.isRequired = validatorNoop;
|
||||
var integerPropType = validator;
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/Paper/paperClasses.mjs
|
||||
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
||||
var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types(), 1);
|
||||
function getPaperUtilityClass(slot) {
|
||||
return generateUtilityClass("MuiPaper", slot);
|
||||
}
|
||||
var paperClasses = generateUtilityClasses("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"
|
||||
]);
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/Paper/Paper.mjs
|
||||
var import_jsx_runtime = require_jsx_runtime();
|
||||
var useUtilityClasses = (ownerState) => {
|
||||
const { square, elevation, variant, classes } = ownerState;
|
||||
const slots = { root: [
|
||||
"root",
|
||||
variant,
|
||||
!square && "rounded",
|
||||
variant === "elevation" && `elevation${elevation}`
|
||||
] };
|
||||
return composeClasses(slots, getPaperUtilityClass, classes);
|
||||
};
|
||||
var PaperRoot = styled("div", {
|
||||
name: "MuiPaper",
|
||||
slot: "Root",
|
||||
overridesResolver: (props, styles) => {
|
||||
const { ownerState } = props;
|
||||
return [
|
||||
styles.root,
|
||||
styles[ownerState.variant],
|
||||
!ownerState.square && styles.rounded,
|
||||
ownerState.variant === "elevation" && styles[`elevation${ownerState.elevation}`]
|
||||
];
|
||||
}
|
||||
})(memoTheme(({ theme }) => ({
|
||||
backgroundColor: (theme.vars || theme).palette.background.paper,
|
||||
color: (theme.vars || theme).palette.text.primary,
|
||||
...getTransitionStyles(theme, "box-shadow"),
|
||||
variants: [
|
||||
{
|
||||
props: ({ ownerState }) => !ownerState.square,
|
||||
style: { borderRadius: theme.shape.borderRadius }
|
||||
},
|
||||
{
|
||||
props: { variant: "outlined" },
|
||||
style: { border: `1px solid ${(theme.vars || theme).palette.divider}` }
|
||||
},
|
||||
{
|
||||
props: { variant: "elevation" },
|
||||
style: {
|
||||
boxShadow: "var(--Paper-shadow)",
|
||||
backgroundImage: "var(--Paper-overlay)"
|
||||
}
|
||||
}
|
||||
]
|
||||
})));
|
||||
var Paper = /*#__PURE__*/ import_react.forwardRef(function Paper(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: "MuiPaper"
|
||||
});
|
||||
const theme = useTheme();
|
||||
const { className, component = "div", elevation = 1, square = false, variant = "elevation", ...other } = props;
|
||||
const ownerState = {
|
||||
...props,
|
||||
component,
|
||||
elevation,
|
||||
square,
|
||||
variant
|
||||
};
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
if (theme.shadows[elevation] === void 0) console.error([`MUI: The elevation provided <Paper elevation={${elevation}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${elevation}]\` is defined.`].join("\n"));
|
||||
return /*#__PURE__*/ (0, import_jsx_runtime.jsx)(PaperRoot, {
|
||||
as: component,
|
||||
ownerState,
|
||||
className: clsx(classes.root, className),
|
||||
ref,
|
||||
...other,
|
||||
style: {
|
||||
...variant === "elevation" && {
|
||||
"--Paper-shadow": (theme.vars || theme).shadows[elevation],
|
||||
...theme.vars && { "--Paper-overlay": theme.vars.overlays?.[elevation] },
|
||||
...!theme.vars && theme.palette.mode === "dark" && { "--Paper-overlay": `linear-gradient(${alpha("#fff", getOverlayAlpha(elevation))}, ${alpha("#fff", getOverlayAlpha(elevation))})` }
|
||||
},
|
||||
...other.style
|
||||
}
|
||||
});
|
||||
});
|
||||
Paper.propTypes = {
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children: import_prop_types.default.node,
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: import_prop_types.default.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: import_prop_types.default.string,
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a HTML element or a component.
|
||||
*/
|
||||
component: import_prop_types.default.elementType,
|
||||
/**
|
||||
* Shadow depth, corresponds to `dp` in the spec.
|
||||
* It accepts values between 0 and 24 inclusive.
|
||||
* @default 1
|
||||
*/
|
||||
elevation: chainPropTypes(integerPropType, (props) => {
|
||||
const { elevation, variant } = props;
|
||||
if (elevation > 0 && variant === "outlined") return /* @__PURE__ */ new Error(`MUI: Combining \`elevation={${elevation}}\` with \`variant="${variant}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`);
|
||||
return null;
|
||||
}),
|
||||
/**
|
||||
* If `true`, rounded corners are disabled.
|
||||
* @default false
|
||||
*/
|
||||
square: import_prop_types.default.bool,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
style: import_prop_types.default.object,
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx: import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.arrayOf(import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object,
|
||||
import_prop_types.default.bool
|
||||
])),
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object
|
||||
]),
|
||||
/**
|
||||
* The variant to use.
|
||||
* @default 'elevation'
|
||||
*/
|
||||
variant: import_prop_types.default.oneOfType([import_prop_types.default.oneOf(["elevation", "outlined"]), import_prop_types.default.string])
|
||||
};
|
||||
//#endregion
|
||||
export { integerPropType as i, getPaperUtilityClass as n, paperClasses as r, Paper as t };
|
||||
+1
File diff suppressed because one or more lines are too long
+232
@@ -0,0 +1,232 @@
|
||||
import { r as __toESM } from "./rolldown-runtime-DC62tzP2.js";
|
||||
import { t as require_react } from "./react.js";
|
||||
import { t as require_jsx_runtime } from "./react_jsx-runtime.js";
|
||||
import { t as require_prop_types } from "./prop-types-C5owi9-6.js";
|
||||
import { $ as getValue, F as generateUtilityClasses, I as generateUtilityClass, Q as createUnarySpacing, R as createTheme, at as deepmerge, nt as mergeBreakpointsInOrder, rt as resolveBreakpointValues, tt as handleBreakpoints, ut as clsx } from "./identifier-Db3dwgA7.js";
|
||||
import { l as composeClasses, t as styled } from "./styled-ry4r-NKP.js";
|
||||
import { t as styled$1 } from "./styled-D1aQQGyn.js";
|
||||
import { t as useThemeProps } from "./useThemeProps-CBZxmtaL.js";
|
||||
import { t as useDefaultProps } from "./DefaultPropsProvider-C8vOQ3_j.js";
|
||||
//#region node_modules/@mui/system/Stack/createStack.mjs
|
||||
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
||||
var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types(), 1);
|
||||
var import_jsx_runtime = require_jsx_runtime();
|
||||
var defaultTheme = createTheme();
|
||||
var defaultCreateStyledComponent = styled$1("div", {
|
||||
name: "MuiStack",
|
||||
slot: "Root"
|
||||
});
|
||||
function useThemePropsDefault(props) {
|
||||
return useThemeProps({
|
||||
props,
|
||||
name: "MuiStack",
|
||||
defaultTheme
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Return an array with the separator React element interspersed between
|
||||
* each React node of the input children.
|
||||
*
|
||||
* > joinChildren([1,2,3], 0)
|
||||
* [1,0,2,0,3]
|
||||
*/
|
||||
function joinChildren(children, separator) {
|
||||
const childrenArray = import_react.Children.toArray(children).filter(Boolean);
|
||||
return childrenArray.reduce((output, child, index) => {
|
||||
output.push(child);
|
||||
if (index < childrenArray.length - 1) output.push(/*#__PURE__*/ import_react.cloneElement(separator, { key: `separator-${index}` }));
|
||||
return output;
|
||||
}, []);
|
||||
}
|
||||
var getSideFromDirection = (direction) => {
|
||||
return {
|
||||
row: "Left",
|
||||
"row-reverse": "Right",
|
||||
column: "Top",
|
||||
"column-reverse": "Bottom"
|
||||
}[direction];
|
||||
};
|
||||
var style = ({ ownerState, theme }) => {
|
||||
let styles = {
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
...handleBreakpoints({ theme }, resolveBreakpointValues({
|
||||
values: ownerState.direction,
|
||||
breakpoints: theme.breakpoints.values
|
||||
}), (propValue) => ({ flexDirection: propValue }))
|
||||
};
|
||||
if (ownerState.spacing) {
|
||||
const transformer = createUnarySpacing(theme);
|
||||
const base = Object.keys(theme.breakpoints.values).reduce((acc, breakpoint) => {
|
||||
if (typeof ownerState.spacing === "object" && ownerState.spacing[breakpoint] != null || typeof ownerState.direction === "object" && ownerState.direction[breakpoint] != null) acc[breakpoint] = true;
|
||||
return acc;
|
||||
}, {});
|
||||
const directionValues = resolveBreakpointValues({
|
||||
values: ownerState.direction,
|
||||
base
|
||||
});
|
||||
const spacingValues = resolveBreakpointValues({
|
||||
values: ownerState.spacing,
|
||||
base
|
||||
});
|
||||
if (typeof directionValues === "object") Object.keys(directionValues).forEach((breakpoint, index, breakpoints) => {
|
||||
if (!directionValues[breakpoint]) {
|
||||
const previousDirectionValue = index > 0 ? directionValues[breakpoints[index - 1]] : "column";
|
||||
directionValues[breakpoint] = previousDirectionValue;
|
||||
}
|
||||
});
|
||||
const styleFromPropValue = (propValue, breakpoint) => {
|
||||
if (ownerState.useFlexGap) return { gap: getValue(transformer, propValue) };
|
||||
return {
|
||||
"& > :not(style):not(style)": { margin: 0 },
|
||||
"& > :not(style) ~ :not(style)": { [`margin${getSideFromDirection(breakpoint ? directionValues[breakpoint] : ownerState.direction)}`]: getValue(transformer, propValue) }
|
||||
};
|
||||
};
|
||||
styles = deepmerge(styles, handleBreakpoints({ theme }, spacingValues, styleFromPropValue));
|
||||
}
|
||||
styles = mergeBreakpointsInOrder(theme.breakpoints, styles);
|
||||
return styles;
|
||||
};
|
||||
function createStack(options = {}) {
|
||||
const { createStyledComponent = defaultCreateStyledComponent, useThemeProps = useThemePropsDefault, componentName = "MuiStack" } = options;
|
||||
const useUtilityClasses = () => {
|
||||
return composeClasses({ root: ["root"] }, (slot) => generateUtilityClass(componentName, slot), {});
|
||||
};
|
||||
const StackRoot = createStyledComponent(style);
|
||||
const Stack = /*#__PURE__*/ import_react.forwardRef(function Grid(inProps, ref) {
|
||||
const { component = "div", direction = "column", spacing = 0, divider, children, className, useFlexGap = false, ...other } = useThemeProps(inProps);
|
||||
const ownerState = {
|
||||
direction,
|
||||
spacing,
|
||||
useFlexGap
|
||||
};
|
||||
const classes = useUtilityClasses();
|
||||
return /*#__PURE__*/ (0, import_jsx_runtime.jsx)(StackRoot, {
|
||||
as: component,
|
||||
ownerState,
|
||||
ref,
|
||||
className: clsx(classes.root, className),
|
||||
...other,
|
||||
children: divider ? joinChildren(children, divider) : children
|
||||
});
|
||||
});
|
||||
Stack.propTypes = {
|
||||
children: import_prop_types.default.node,
|
||||
direction: import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.oneOf([
|
||||
"column-reverse",
|
||||
"column",
|
||||
"row-reverse",
|
||||
"row"
|
||||
]),
|
||||
import_prop_types.default.arrayOf(import_prop_types.default.oneOf([
|
||||
"column-reverse",
|
||||
"column",
|
||||
"row-reverse",
|
||||
"row"
|
||||
])),
|
||||
import_prop_types.default.object
|
||||
]),
|
||||
divider: import_prop_types.default.node,
|
||||
spacing: import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.arrayOf(import_prop_types.default.oneOfType([import_prop_types.default.number, import_prop_types.default.string])),
|
||||
import_prop_types.default.number,
|
||||
import_prop_types.default.object,
|
||||
import_prop_types.default.string
|
||||
]),
|
||||
sx: import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.arrayOf(import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object,
|
||||
import_prop_types.default.bool
|
||||
])),
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object
|
||||
])
|
||||
};
|
||||
return Stack;
|
||||
}
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/Stack/Stack.mjs
|
||||
var Stack = createStack({
|
||||
createStyledComponent: styled("div", {
|
||||
name: "MuiStack",
|
||||
slot: "Root"
|
||||
}),
|
||||
useThemeProps: (inProps) => useDefaultProps({
|
||||
props: inProps,
|
||||
name: "MuiStack"
|
||||
})
|
||||
});
|
||||
Stack.propTypes = {
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children: import_prop_types.default.node,
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a HTML element or a component.
|
||||
*/
|
||||
component: import_prop_types.default.elementType,
|
||||
/**
|
||||
* Defines the `flex-direction` style property.
|
||||
* It is applied for all screen sizes.
|
||||
* @default 'column'
|
||||
*/
|
||||
direction: import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.oneOf([
|
||||
"column-reverse",
|
||||
"column",
|
||||
"row-reverse",
|
||||
"row"
|
||||
]),
|
||||
import_prop_types.default.arrayOf(import_prop_types.default.oneOf([
|
||||
"column-reverse",
|
||||
"column",
|
||||
"row-reverse",
|
||||
"row"
|
||||
])),
|
||||
import_prop_types.default.object
|
||||
]),
|
||||
/**
|
||||
* Add an element between each child.
|
||||
*/
|
||||
divider: import_prop_types.default.node,
|
||||
/**
|
||||
* Defines the space between immediate children.
|
||||
* @default 0
|
||||
*/
|
||||
spacing: import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.arrayOf(import_prop_types.default.oneOfType([import_prop_types.default.number, import_prop_types.default.string])),
|
||||
import_prop_types.default.number,
|
||||
import_prop_types.default.object,
|
||||
import_prop_types.default.string
|
||||
]),
|
||||
/**
|
||||
* The system prop, which allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx: import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.arrayOf(import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object,
|
||||
import_prop_types.default.bool
|
||||
])),
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object
|
||||
]),
|
||||
/**
|
||||
* If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children.
|
||||
*
|
||||
* While CSS `gap` removes the known limitations,
|
||||
* it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag.
|
||||
*
|
||||
* To enable this flag globally, follow the [theme's default props](https://mui.com/material-ui/customization/theme-components/#default-props) configuration.
|
||||
* @default false
|
||||
*/
|
||||
useFlexGap: import_prop_types.default.bool
|
||||
};
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/Stack/stackClasses.mjs
|
||||
var stackClasses = generateUtilityClasses("MuiStack", ["root"]);
|
||||
//#endregion
|
||||
export { Stack as n, stackClasses as t };
|
||||
+1
File diff suppressed because one or more lines are too long
+290
@@ -0,0 +1,290 @@
|
||||
import { r as __toESM } from "./rolldown-runtime-DC62tzP2.js";
|
||||
import { t as require_react } from "./react.js";
|
||||
import { t as require_jsx_runtime } from "./react_jsx-runtime.js";
|
||||
import { t as require_prop_types } from "./prop-types-C5owi9-6.js";
|
||||
import { F as generateUtilityClasses, I as generateUtilityClass, ut as clsx } from "./identifier-Db3dwgA7.js";
|
||||
import { l as composeClasses, t as styled } from "./styled-ry4r-NKP.js";
|
||||
import { t as capitalize_default } from "./capitalize-DESO4t23.js";
|
||||
import { t as useDefaultProps } from "./DefaultPropsProvider-C8vOQ3_j.js";
|
||||
import { t as memoTheme } from "./memoTheme-Ciuals54.js";
|
||||
import { t as unsupportedProp } from "./unsupportedProp-CGuzKoGr.js";
|
||||
import { t as ButtonBase } from "./ButtonBase-Bsl8ZUTz.js";
|
||||
import { a as useRovingTabIndexContext, n as useRovingTabIndexItem } from "./useRovingTabIndex-DnGkRX59.js";
|
||||
//#region node_modules/@mui/material/utils/unsupportedProp.mjs
|
||||
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
||||
var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types(), 1);
|
||||
var unsupportedProp_default = unsupportedProp;
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/Tab/tabClasses.mjs
|
||||
function getTabUtilityClass(slot) {
|
||||
return generateUtilityClass("MuiTab", slot);
|
||||
}
|
||||
var tabClasses = generateUtilityClasses("MuiTab", [
|
||||
"root",
|
||||
"labelIcon",
|
||||
"textColorInherit",
|
||||
"textColorPrimary",
|
||||
"textColorSecondary",
|
||||
"selected",
|
||||
"disabled",
|
||||
"fullWidth",
|
||||
"wrapped",
|
||||
"icon"
|
||||
]);
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/Tab/Tab.mjs
|
||||
var import_jsx_runtime = require_jsx_runtime();
|
||||
var useUtilityClasses = (ownerState) => {
|
||||
const { classes, textColor, fullWidth, wrapped, icon, label, selected, disabled } = ownerState;
|
||||
const slots = {
|
||||
root: [
|
||||
"root",
|
||||
icon && label && "labelIcon",
|
||||
`textColor${capitalize_default(textColor)}`,
|
||||
fullWidth && "fullWidth",
|
||||
wrapped && "wrapped",
|
||||
selected && "selected",
|
||||
disabled && "disabled"
|
||||
],
|
||||
icon: ["icon"]
|
||||
};
|
||||
return composeClasses(slots, getTabUtilityClass, classes);
|
||||
};
|
||||
var TabRoot = styled(ButtonBase, {
|
||||
name: "MuiTab",
|
||||
slot: "Root",
|
||||
overridesResolver: (props, styles) => {
|
||||
const { ownerState } = props;
|
||||
return [
|
||||
styles.root,
|
||||
ownerState.label && ownerState.icon && styles.labelIcon,
|
||||
styles[`textColor${capitalize_default(ownerState.textColor)}`],
|
||||
ownerState.fullWidth && styles.fullWidth,
|
||||
ownerState.wrapped && styles.wrapped,
|
||||
{ [`& .${tabClasses.icon}`]: styles.icon }
|
||||
];
|
||||
}
|
||||
})(memoTheme(({ theme }) => ({
|
||||
...theme.typography.button,
|
||||
maxWidth: 360,
|
||||
minWidth: 90,
|
||||
position: "relative",
|
||||
minHeight: 48,
|
||||
flexShrink: 0,
|
||||
padding: "12px 16px",
|
||||
overflow: "hidden",
|
||||
whiteSpace: "normal",
|
||||
textAlign: "center",
|
||||
lineHeight: 1.25,
|
||||
variants: [
|
||||
{
|
||||
props: ({ ownerState }) => ownerState.label && (ownerState.iconPosition === "top" || ownerState.iconPosition === "bottom"),
|
||||
style: { flexDirection: "column" }
|
||||
},
|
||||
{
|
||||
props: ({ ownerState }) => ownerState.label && ownerState.iconPosition !== "top" && ownerState.iconPosition !== "bottom",
|
||||
style: { flexDirection: "row" }
|
||||
},
|
||||
{
|
||||
props: ({ ownerState }) => ownerState.icon && ownerState.label,
|
||||
style: {
|
||||
minHeight: 72,
|
||||
paddingTop: 9,
|
||||
paddingBottom: 9
|
||||
}
|
||||
},
|
||||
{
|
||||
props: ({ ownerState, iconPosition }) => ownerState.icon && ownerState.label && iconPosition === "top",
|
||||
style: { [`& > .${tabClasses.icon}`]: { marginBottom: 6 } }
|
||||
},
|
||||
{
|
||||
props: ({ ownerState, iconPosition }) => ownerState.icon && ownerState.label && iconPosition === "bottom",
|
||||
style: { [`& > .${tabClasses.icon}`]: { marginTop: 6 } }
|
||||
},
|
||||
{
|
||||
props: ({ ownerState, iconPosition }) => ownerState.icon && ownerState.label && iconPosition === "start",
|
||||
style: { [`& > .${tabClasses.icon}`]: { marginRight: theme.spacing(1) } }
|
||||
},
|
||||
{
|
||||
props: ({ ownerState, iconPosition }) => ownerState.icon && ownerState.label && iconPosition === "end",
|
||||
style: { [`& > .${tabClasses.icon}`]: { marginLeft: theme.spacing(1) } }
|
||||
},
|
||||
{
|
||||
props: { textColor: "inherit" },
|
||||
style: {
|
||||
color: "inherit",
|
||||
opacity: .6,
|
||||
[`&.${tabClasses.selected}`]: { opacity: 1 },
|
||||
[`&.${tabClasses.disabled}`]: { opacity: (theme.vars || theme).palette.action.disabledOpacity }
|
||||
}
|
||||
},
|
||||
{
|
||||
props: { textColor: "primary" },
|
||||
style: {
|
||||
color: (theme.vars || theme).palette.text.secondary,
|
||||
[`&.${tabClasses.selected}`]: { color: (theme.vars || theme).palette.primary.main },
|
||||
[`&.${tabClasses.disabled}`]: { color: (theme.vars || theme).palette.text.disabled }
|
||||
}
|
||||
},
|
||||
{
|
||||
props: { textColor: "secondary" },
|
||||
style: {
|
||||
color: (theme.vars || theme).palette.text.secondary,
|
||||
[`&.${tabClasses.selected}`]: { color: (theme.vars || theme).palette.secondary.main },
|
||||
[`&.${tabClasses.disabled}`]: { color: (theme.vars || theme).palette.text.disabled }
|
||||
}
|
||||
},
|
||||
{
|
||||
props: ({ ownerState }) => ownerState.fullWidth,
|
||||
style: {
|
||||
flexShrink: 1,
|
||||
flexGrow: 1,
|
||||
flexBasis: 0,
|
||||
maxWidth: "none"
|
||||
}
|
||||
},
|
||||
{
|
||||
props: ({ ownerState }) => ownerState.wrapped,
|
||||
style: { fontSize: theme.typography.pxToRem(12) }
|
||||
}
|
||||
]
|
||||
})));
|
||||
var Tab = /*#__PURE__*/ import_react.forwardRef(function Tab(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: "MuiTab"
|
||||
});
|
||||
const { className, disabled = false, disableFocusRipple = false, fullWidth, icon: iconProp, iconPosition = "top", indicator, label, onChange, onClick, onFocus, selected, selectionFollowsFocus, textColor = "inherit", value, wrapped = false, ...other } = props;
|
||||
const rovingContext = useRovingTabIndexContext();
|
||||
const rovingItemProps = useRovingTabIndexItem({
|
||||
id: value,
|
||||
ref,
|
||||
disabled,
|
||||
selected
|
||||
});
|
||||
const tabIndex = rovingContext.getItemMap().size === 0 && selected ? 0 : rovingItemProps.tabIndex;
|
||||
const ownerState = {
|
||||
...props,
|
||||
disabled,
|
||||
disableFocusRipple,
|
||||
selected,
|
||||
icon: !!iconProp,
|
||||
iconPosition,
|
||||
label: !!label,
|
||||
fullWidth,
|
||||
textColor,
|
||||
wrapped
|
||||
};
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
const icon = iconProp && label && /*#__PURE__*/ import_react.isValidElement(iconProp) ? /*#__PURE__*/ import_react.cloneElement(iconProp, { className: clsx(classes.icon, iconProp.props.className) }) : iconProp;
|
||||
const handleClick = (event) => {
|
||||
if (!selected && onChange) onChange(event, value);
|
||||
if (onClick) onClick(event);
|
||||
};
|
||||
const handleFocus = (event) => {
|
||||
if (selectionFollowsFocus && !selected && onChange) onChange(event, value);
|
||||
if (onFocus) onFocus(event);
|
||||
};
|
||||
return /*#__PURE__*/ (0, import_jsx_runtime.jsxs)(TabRoot, {
|
||||
internalNativeButton: true,
|
||||
focusRipple: !disableFocusRipple,
|
||||
className: clsx(classes.root, className),
|
||||
ref: rovingItemProps.ref,
|
||||
role: "tab",
|
||||
"aria-selected": selected,
|
||||
disabled,
|
||||
onClick: handleClick,
|
||||
onFocus: handleFocus,
|
||||
tabIndex,
|
||||
ownerState,
|
||||
...other,
|
||||
children: [iconPosition === "top" || iconPosition === "start" ? /*#__PURE__*/ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [icon, label] }) : /*#__PURE__*/ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [label, icon] }), indicator]
|
||||
});
|
||||
});
|
||||
Tab.propTypes = {
|
||||
/**
|
||||
* This prop isn't supported.
|
||||
* Use the `component` prop if you need to change the children structure.
|
||||
*/
|
||||
children: unsupportedProp_default,
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: import_prop_types.default.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: import_prop_types.default.string,
|
||||
/**
|
||||
* If `true`, the component is disabled.
|
||||
* @default false
|
||||
*/
|
||||
disabled: import_prop_types.default.bool,
|
||||
/**
|
||||
* If `true`, the keyboard focus ripple is disabled.
|
||||
* @default false
|
||||
*/
|
||||
disableFocusRipple: import_prop_types.default.bool,
|
||||
/**
|
||||
* If `true`, the ripple effect is disabled.
|
||||
*
|
||||
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
||||
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
||||
* @default false
|
||||
*/
|
||||
disableRipple: import_prop_types.default.bool,
|
||||
/**
|
||||
* The icon to display.
|
||||
*/
|
||||
icon: import_prop_types.default.oneOfType([import_prop_types.default.element, import_prop_types.default.string]),
|
||||
/**
|
||||
* The position of the icon relative to the label.
|
||||
* @default 'top'
|
||||
*/
|
||||
iconPosition: import_prop_types.default.oneOf([
|
||||
"bottom",
|
||||
"end",
|
||||
"start",
|
||||
"top"
|
||||
]),
|
||||
/**
|
||||
* The label element.
|
||||
*/
|
||||
label: import_prop_types.default.node,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onChange: import_prop_types.default.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onClick: import_prop_types.default.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onFocus: import_prop_types.default.func,
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx: import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.arrayOf(import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object,
|
||||
import_prop_types.default.bool
|
||||
])),
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object
|
||||
]),
|
||||
/**
|
||||
* You can provide your own value. Otherwise, we fallback to the child position index.
|
||||
*/
|
||||
value: import_prop_types.default.any,
|
||||
/**
|
||||
* Tab labels appear in a single row.
|
||||
* They can use a second line if needed.
|
||||
* @default false
|
||||
*/
|
||||
wrapped: import_prop_types.default.bool
|
||||
};
|
||||
//#endregion
|
||||
export { unsupportedProp_default as i, getTabUtilityClass as n, tabClasses as r, Tab as t };
|
||||
+1
File diff suppressed because one or more lines are too long
+1021
File diff suppressed because it is too large
Load Diff
+1
File diff suppressed because one or more lines are too long
+5831
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+1
File diff suppressed because one or more lines are too long
Generated
Vendored
+6518
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+1
File diff suppressed because one or more lines are too long
+2507
File diff suppressed because it is too large
Load Diff
+1
File diff suppressed because one or more lines are too long
+268
@@ -0,0 +1,268 @@
|
||||
import { r as __toESM } from "./rolldown-runtime-DC62tzP2.js";
|
||||
import { t as require_react } from "./react.js";
|
||||
import { t as require_jsx_runtime } from "./react_jsx-runtime.js";
|
||||
import { t as require_prop_types } from "./prop-types-C5owi9-6.js";
|
||||
import { F as generateUtilityClasses, I as generateUtilityClass, ut as clsx } from "./identifier-Db3dwgA7.js";
|
||||
import { l as composeClasses, t as styled } from "./styled-ry4r-NKP.js";
|
||||
import { t as capitalize_default } from "./capitalize-DESO4t23.js";
|
||||
import { t as useDefaultProps } from "./DefaultPropsProvider-C8vOQ3_j.js";
|
||||
import { t as memoTheme } from "./memoTheme-Ciuals54.js";
|
||||
import { t as createSimplePaletteValueFilter } from "./createSimplePaletteValueFilter-BhADkSm9.js";
|
||||
//#region node_modules/@mui/material/Typography/typographyClasses.mjs
|
||||
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
||||
var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types(), 1);
|
||||
function getTypographyUtilityClass(slot) {
|
||||
return generateUtilityClass("MuiTypography", slot);
|
||||
}
|
||||
var typographyClasses = generateUtilityClasses("MuiTypography", [
|
||||
"root",
|
||||
"h1",
|
||||
"h2",
|
||||
"h3",
|
||||
"h4",
|
||||
"h5",
|
||||
"h6",
|
||||
"subtitle1",
|
||||
"subtitle2",
|
||||
"body1",
|
||||
"body2",
|
||||
"inherit",
|
||||
"button",
|
||||
"caption",
|
||||
"overline",
|
||||
"alignLeft",
|
||||
"alignRight",
|
||||
"alignCenter",
|
||||
"alignJustify",
|
||||
"noWrap",
|
||||
"gutterBottom"
|
||||
]);
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/Typography/Typography.mjs
|
||||
var import_jsx_runtime = require_jsx_runtime();
|
||||
var useUtilityClasses = (ownerState) => {
|
||||
const { align, gutterBottom, noWrap, variant, classes } = ownerState;
|
||||
const slots = { root: [
|
||||
"root",
|
||||
variant,
|
||||
ownerState.align !== "inherit" && `align${capitalize_default(align)}`,
|
||||
gutterBottom && "gutterBottom",
|
||||
noWrap && "noWrap"
|
||||
] };
|
||||
return composeClasses(slots, getTypographyUtilityClass, classes);
|
||||
};
|
||||
var TypographyRoot = styled("span", {
|
||||
name: "MuiTypography",
|
||||
slot: "Root",
|
||||
overridesResolver: (props, styles) => {
|
||||
const { ownerState } = props;
|
||||
return [
|
||||
styles.root,
|
||||
ownerState.variant && styles[ownerState.variant],
|
||||
ownerState.align !== "inherit" && styles[`align${capitalize_default(ownerState.align)}`],
|
||||
ownerState.noWrap && styles.noWrap,
|
||||
ownerState.gutterBottom && styles.gutterBottom
|
||||
];
|
||||
}
|
||||
})(memoTheme(({ theme }) => ({
|
||||
margin: 0,
|
||||
variants: [
|
||||
{
|
||||
props: { variant: "inherit" },
|
||||
style: {
|
||||
font: "inherit",
|
||||
lineHeight: "inherit",
|
||||
letterSpacing: "inherit"
|
||||
}
|
||||
},
|
||||
...Object.entries(theme.typography).filter(([variant, value]) => variant !== "inherit" && value && typeof value === "object").map(([variant, value]) => ({
|
||||
props: { variant },
|
||||
style: value
|
||||
})),
|
||||
...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({
|
||||
props: { color },
|
||||
style: { color: (theme.vars || theme).palette[color].main }
|
||||
})),
|
||||
...Object.entries(theme.palette?.text || {}).filter(([, value]) => typeof value === "string").map(([color]) => ({
|
||||
props: { color: `text${capitalize_default(color)}` },
|
||||
style: { color: (theme.vars || theme).palette.text[color] }
|
||||
})),
|
||||
{
|
||||
props: ({ ownerState }) => ownerState.align !== "inherit",
|
||||
style: { textAlign: "var(--Typography-textAlign)" }
|
||||
},
|
||||
{
|
||||
props: ({ ownerState }) => ownerState.noWrap,
|
||||
style: {
|
||||
overflow: "hidden",
|
||||
textOverflow: "ellipsis",
|
||||
whiteSpace: "nowrap"
|
||||
}
|
||||
},
|
||||
{
|
||||
props: ({ ownerState }) => ownerState.gutterBottom,
|
||||
style: { marginBottom: "0.35em" }
|
||||
}
|
||||
]
|
||||
})));
|
||||
var defaultVariantMapping = {
|
||||
h1: "h1",
|
||||
h2: "h2",
|
||||
h3: "h3",
|
||||
h4: "h4",
|
||||
h5: "h5",
|
||||
h6: "h6",
|
||||
subtitle1: "h6",
|
||||
subtitle2: "h6",
|
||||
body1: "p",
|
||||
body2: "p",
|
||||
inherit: "p"
|
||||
};
|
||||
var Typography = /*#__PURE__*/ import_react.forwardRef(function Typography(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: "MuiTypography"
|
||||
});
|
||||
const { color, align = "inherit", className, component, gutterBottom = false, noWrap = false, variant = "body1", variantMapping = defaultVariantMapping, ...other } = props;
|
||||
const ownerState = {
|
||||
...props,
|
||||
align,
|
||||
color,
|
||||
className,
|
||||
component,
|
||||
gutterBottom,
|
||||
noWrap,
|
||||
variant,
|
||||
variantMapping
|
||||
};
|
||||
const Component = component || variantMapping[variant] || defaultVariantMapping[variant] || "span";
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
return /*#__PURE__*/ (0, import_jsx_runtime.jsx)(TypographyRoot, {
|
||||
as: Component,
|
||||
ref,
|
||||
className: clsx(classes.root, className),
|
||||
...other,
|
||||
ownerState,
|
||||
style: {
|
||||
...align !== "inherit" && { "--Typography-textAlign": align },
|
||||
...other.style
|
||||
}
|
||||
});
|
||||
});
|
||||
Typography.propTypes = {
|
||||
/**
|
||||
* Set the text-align on the component.
|
||||
* @default 'inherit'
|
||||
*/
|
||||
align: import_prop_types.default.oneOf([
|
||||
"center",
|
||||
"inherit",
|
||||
"justify",
|
||||
"left",
|
||||
"right"
|
||||
]),
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children: import_prop_types.default.node,
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: import_prop_types.default.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: import_prop_types.default.string,
|
||||
/**
|
||||
* The color of the component.
|
||||
* It supports both default and custom theme colors, which can be added as shown in the
|
||||
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
||||
*/
|
||||
color: import_prop_types.default.oneOfType([import_prop_types.default.oneOf([
|
||||
"primary",
|
||||
"secondary",
|
||||
"success",
|
||||
"error",
|
||||
"info",
|
||||
"warning",
|
||||
"textPrimary",
|
||||
"textSecondary",
|
||||
"textDisabled"
|
||||
]), import_prop_types.default.string]),
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a HTML element or a component.
|
||||
*/
|
||||
component: import_prop_types.default.elementType,
|
||||
/**
|
||||
* If `true`, the text will have a bottom margin.
|
||||
* @default false
|
||||
*/
|
||||
gutterBottom: import_prop_types.default.bool,
|
||||
/**
|
||||
* If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
|
||||
*
|
||||
* Note that text overflow can only happen with block or inline-block level elements
|
||||
* (the element needs to have a width in order to overflow).
|
||||
* @default false
|
||||
*/
|
||||
noWrap: import_prop_types.default.bool,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
style: import_prop_types.default.object,
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx: import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.arrayOf(import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object,
|
||||
import_prop_types.default.bool
|
||||
])),
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object
|
||||
]),
|
||||
/**
|
||||
* Applies the theme typography styles.
|
||||
* @default 'body1'
|
||||
*/
|
||||
variant: import_prop_types.default.oneOfType([import_prop_types.default.oneOf([
|
||||
"body1",
|
||||
"body2",
|
||||
"button",
|
||||
"caption",
|
||||
"h1",
|
||||
"h2",
|
||||
"h3",
|
||||
"h4",
|
||||
"h5",
|
||||
"h6",
|
||||
"inherit",
|
||||
"overline",
|
||||
"subtitle1",
|
||||
"subtitle2"
|
||||
]), import_prop_types.default.string]),
|
||||
/**
|
||||
* The component maps the variant prop to a range of different HTML element types.
|
||||
* For instance, subtitle1 to `<h6>`.
|
||||
* If you wish to change that mapping, you can provide your own.
|
||||
* Alternatively, you can use the `component` prop.
|
||||
* @default {
|
||||
* h1: 'h1',
|
||||
* h2: 'h2',
|
||||
* h3: 'h3',
|
||||
* h4: 'h4',
|
||||
* h5: 'h5',
|
||||
* h6: 'h6',
|
||||
* subtitle1: 'h6',
|
||||
* subtitle2: 'h6',
|
||||
* body1: 'p',
|
||||
* body2: 'p',
|
||||
* inherit: 'p',
|
||||
* }
|
||||
*/
|
||||
variantMapping: import_prop_types.default.object
|
||||
};
|
||||
//#endregion
|
||||
export { getTypographyUtilityClass as n, typographyClasses as r, Typography as t };
|
||||
Generated
Vendored
+1
File diff suppressed because one or more lines are too long
+5
@@ -0,0 +1,5 @@
|
||||
import { lt as capitalize } from "./identifier-Db3dwgA7.js";
|
||||
//#region node_modules/@mui/material/utils/capitalize.mjs
|
||||
var capitalize_default = capitalize;
|
||||
//#endregion
|
||||
export { capitalize_default as t };
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"capitalize-DESO4t23.js","names":[],"sources":["../../@mui/material/utils/capitalize.mjs"],"sourcesContent":["import capitalize from '@mui/utils/capitalize';\nexport default capitalize;"],"mappings":";;AACA,IAAA,qBAAe"}
|
||||
Generated
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
import { r as __toESM } from "./rolldown-runtime-DC62tzP2.js";
|
||||
import { t as require_react } from "./react.js";
|
||||
import "./identifier-Db3dwgA7.js";
|
||||
import { i as defaultTheme } from "./styled-ry4r-NKP.js";
|
||||
import { t as useTheme$1 } from "./useTheme-DkkwbUco.js";
|
||||
//#region node_modules/@mui/material/styles/useTheme.mjs
|
||||
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
||||
function useTheme() {
|
||||
const theme = useTheme$1(defaultTheme);
|
||||
import_react.useDebugValue(theme);
|
||||
return theme["$$material"] || theme;
|
||||
}
|
||||
//#endregion
|
||||
//#region node_modules/@mui/utils/chainPropTypes/chainPropTypes.mjs
|
||||
function chainPropTypes(propType1, propType2) {
|
||||
return function validate(...args) {
|
||||
return propType1(...args) || propType2(...args);
|
||||
};
|
||||
}
|
||||
//#endregion
|
||||
export { useTheme as n, chainPropTypes as t };
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"chainPropTypes-DS_z862G.js","names":["useThemeSystem"],"sources":["../../@mui/material/styles/useTheme.mjs","../../@mui/utils/chainPropTypes/chainPropTypes.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useTheme as useThemeSystem } from '@mui/system';\nimport defaultTheme from \"./defaultTheme.mjs\";\nimport THEME_ID from \"./identifier.mjs\";\nexport default function useTheme() {\n const theme = useThemeSystem(defaultTheme);\n if (process.env.NODE_ENV !== 'production') {\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useDebugValue(theme);\n }\n return theme[THEME_ID] || theme;\n}","export default function chainPropTypes(propType1, propType2) {\n if (process.env.NODE_ENV === 'production') {\n return () => null;\n }\n return function validate(...args) {\n return propType1(...args) || propType2(...args);\n };\n}"],"mappings":";;;;;;;AAMA,SAAwB,WAAW;CACjC,MAAM,QAAQA,WAAe,YAAY;CAIvC,aAAM,cAAc,KAAK;CAE3B,OAAO,MAAA,iBAAmB;AAC5B;;;ACdA,SAAwB,eAAe,WAAW,WAAW;CAI3D,OAAO,SAAS,SAAS,GAAG,MAAM;EAChC,OAAO,UAAU,GAAG,IAAI,KAAK,UAAU,GAAG,IAAI;CAChD;AACF"}
|
||||
Generated
Vendored
+244
@@ -0,0 +1,244 @@
|
||||
import { r as __toESM } from "./rolldown-runtime-DC62tzP2.js";
|
||||
import { t as require_react } from "./react.js";
|
||||
import { t as require_jsx_runtime } from "./react_jsx-runtime.js";
|
||||
import { t as require_prop_types } from "./prop-types-C5owi9-6.js";
|
||||
import { F as generateUtilityClasses, I as generateUtilityClass, ut as clsx } from "./identifier-Db3dwgA7.js";
|
||||
import { l as composeClasses, t as styled } from "./styled-ry4r-NKP.js";
|
||||
import { t as capitalize_default } from "./capitalize-DESO4t23.js";
|
||||
import { t as useDefaultProps } from "./DefaultPropsProvider-C8vOQ3_j.js";
|
||||
import { t as memoTheme } from "./memoTheme-Ciuals54.js";
|
||||
import { i as getTransitionStyles } from "./utils-BCVtNTPx.js";
|
||||
//#region node_modules/@mui/material/SvgIcon/svgIconClasses.mjs
|
||||
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
||||
var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types(), 1);
|
||||
function getSvgIconUtilityClass(slot) {
|
||||
return generateUtilityClass("MuiSvgIcon", slot);
|
||||
}
|
||||
var svgIconClasses = generateUtilityClasses("MuiSvgIcon", [
|
||||
"root",
|
||||
"colorPrimary",
|
||||
"colorSecondary",
|
||||
"colorAction",
|
||||
"colorError",
|
||||
"colorDisabled",
|
||||
"fontSizeInherit",
|
||||
"fontSizeSmall",
|
||||
"fontSizeMedium",
|
||||
"fontSizeLarge"
|
||||
]);
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/SvgIcon/SvgIcon.mjs
|
||||
var import_jsx_runtime = require_jsx_runtime();
|
||||
var useUtilityClasses = (ownerState) => {
|
||||
const { color, fontSize, classes } = ownerState;
|
||||
const slots = { root: [
|
||||
"root",
|
||||
color !== "inherit" && `color${capitalize_default(color)}`,
|
||||
`fontSize${capitalize_default(fontSize)}`
|
||||
] };
|
||||
return composeClasses(slots, getSvgIconUtilityClass, classes);
|
||||
};
|
||||
var SvgIconRoot = styled("svg", {
|
||||
name: "MuiSvgIcon",
|
||||
slot: "Root",
|
||||
overridesResolver: (props, styles) => {
|
||||
const { ownerState } = props;
|
||||
return [
|
||||
styles.root,
|
||||
ownerState.color !== "inherit" && styles[`color${capitalize_default(ownerState.color)}`],
|
||||
styles[`fontSize${capitalize_default(ownerState.fontSize)}`]
|
||||
];
|
||||
}
|
||||
})(memoTheme(({ theme }) => ({
|
||||
userSelect: "none",
|
||||
width: "1em",
|
||||
height: "1em",
|
||||
display: "inline-block",
|
||||
flexShrink: 0,
|
||||
...getTransitionStyles(theme, "fill", { duration: (theme.vars ?? theme).transitions?.duration?.shorter }),
|
||||
variants: [
|
||||
{
|
||||
props: (props) => !props.hasSvgAsChild,
|
||||
style: { fill: "currentColor" }
|
||||
},
|
||||
{
|
||||
props: { fontSize: "inherit" },
|
||||
style: { fontSize: "inherit" }
|
||||
},
|
||||
{
|
||||
props: { fontSize: "small" },
|
||||
style: { fontSize: theme.typography?.pxToRem?.(20) || "1.25rem" }
|
||||
},
|
||||
{
|
||||
props: { fontSize: "medium" },
|
||||
style: { fontSize: theme.typography?.pxToRem?.(24) || "1.5rem" }
|
||||
},
|
||||
{
|
||||
props: { fontSize: "large" },
|
||||
style: { fontSize: theme.typography?.pxToRem?.(35) || "2.1875rem" }
|
||||
},
|
||||
...Object.entries((theme.vars ?? theme).palette).filter(([, value]) => value && value.main).map(([color]) => ({
|
||||
props: { color },
|
||||
style: { color: (theme.vars ?? theme).palette?.[color]?.main }
|
||||
})),
|
||||
{
|
||||
props: { color: "action" },
|
||||
style: { color: (theme.vars ?? theme).palette?.action?.active }
|
||||
},
|
||||
{
|
||||
props: { color: "disabled" },
|
||||
style: { color: (theme.vars ?? theme).palette?.action?.disabled }
|
||||
},
|
||||
{
|
||||
props: { color: "inherit" },
|
||||
style: { color: void 0 }
|
||||
}
|
||||
]
|
||||
})));
|
||||
var SvgIcon = /*#__PURE__*/ import_react.forwardRef(function SvgIcon(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: "MuiSvgIcon"
|
||||
});
|
||||
const { children, className, color = "inherit", component = "svg", fontSize = "medium", htmlColor, inheritViewBox = false, titleAccess, viewBox = "0 0 24 24", ...other } = props;
|
||||
const hasSvgAsChild = /*#__PURE__*/ import_react.isValidElement(children) && children.type === "svg";
|
||||
const ownerState = {
|
||||
...props,
|
||||
color,
|
||||
component,
|
||||
fontSize,
|
||||
instanceFontSize: inProps.fontSize,
|
||||
inheritViewBox,
|
||||
viewBox,
|
||||
hasSvgAsChild
|
||||
};
|
||||
const more = {};
|
||||
if (!inheritViewBox) more.viewBox = viewBox;
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
return /*#__PURE__*/ (0, import_jsx_runtime.jsxs)(SvgIconRoot, {
|
||||
as: component,
|
||||
className: clsx(classes.root, className),
|
||||
focusable: "false",
|
||||
color: htmlColor,
|
||||
"aria-hidden": titleAccess ? void 0 : true,
|
||||
role: titleAccess ? "img" : void 0,
|
||||
ref,
|
||||
...more,
|
||||
...other,
|
||||
...hasSvgAsChild && children.props,
|
||||
ownerState,
|
||||
children: [hasSvgAsChild ? children.props.children : children, titleAccess ? /*#__PURE__*/ (0, import_jsx_runtime.jsx)("title", { children: titleAccess }) : null]
|
||||
});
|
||||
});
|
||||
SvgIcon.propTypes = {
|
||||
/**
|
||||
* Node passed into the SVG element.
|
||||
*/
|
||||
children: import_prop_types.default.node,
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: import_prop_types.default.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: import_prop_types.default.string,
|
||||
/**
|
||||
* The color of the component.
|
||||
* It supports both default and custom theme colors, which can be added as shown in the
|
||||
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
||||
* You can use the `htmlColor` prop to apply a color attribute to the SVG element.
|
||||
* @default 'inherit'
|
||||
*/
|
||||
color: import_prop_types.default.oneOfType([import_prop_types.default.oneOf([
|
||||
"inherit",
|
||||
"action",
|
||||
"disabled",
|
||||
"primary",
|
||||
"secondary",
|
||||
"error",
|
||||
"info",
|
||||
"success",
|
||||
"warning"
|
||||
]), import_prop_types.default.string]),
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a HTML element or a component.
|
||||
*/
|
||||
component: import_prop_types.default.elementType,
|
||||
/**
|
||||
* The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
|
||||
* @default 'medium'
|
||||
*/
|
||||
fontSize: import_prop_types.default.oneOfType([import_prop_types.default.oneOf([
|
||||
"inherit",
|
||||
"large",
|
||||
"medium",
|
||||
"small"
|
||||
]), import_prop_types.default.string]),
|
||||
/**
|
||||
* Applies a color attribute to the SVG element.
|
||||
*/
|
||||
htmlColor: import_prop_types.default.string,
|
||||
/**
|
||||
* If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`
|
||||
* prop will be ignored.
|
||||
* Useful when you want to reference a custom `component` and have `SvgIcon` pass that
|
||||
* `component`'s viewBox to the root node.
|
||||
* @default false
|
||||
*/
|
||||
inheritViewBox: import_prop_types.default.bool,
|
||||
/**
|
||||
* The shape-rendering attribute. The behavior of the different options is described on the
|
||||
* [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/shape-rendering).
|
||||
* If you are having issues with blurry icons you should investigate this prop.
|
||||
*/
|
||||
shapeRendering: import_prop_types.default.string,
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx: import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.arrayOf(import_prop_types.default.oneOfType([
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object,
|
||||
import_prop_types.default.bool
|
||||
])),
|
||||
import_prop_types.default.func,
|
||||
import_prop_types.default.object
|
||||
]),
|
||||
/**
|
||||
* Provides a human-readable title for the element that contains it.
|
||||
* https://www.w3.org/TR/SVG-access/#Equivalent
|
||||
*/
|
||||
titleAccess: import_prop_types.default.string,
|
||||
/**
|
||||
* Allows you to redefine what the coordinates without units mean inside an SVG element.
|
||||
* For example, if the SVG element is 500 (width) by 200 (height),
|
||||
* and you pass viewBox="0 0 50 20",
|
||||
* this means that the coordinates inside the SVG will go from the top left corner (0,0)
|
||||
* to bottom right (50,20) and each unit will be worth 10px.
|
||||
* @default '0 0 24 24'
|
||||
*/
|
||||
viewBox: import_prop_types.default.string
|
||||
};
|
||||
SvgIcon.muiName = "SvgIcon";
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/SvgIcon/createSvgIcon.mjs
|
||||
/**
|
||||
* Private module reserved for @mui packages.
|
||||
*/
|
||||
function createSvgIcon(path, displayName) {
|
||||
function Component(props, ref) {
|
||||
return /*#__PURE__*/ (0, import_jsx_runtime.jsx)(SvgIcon, {
|
||||
"data-testid": `${displayName}Icon`,
|
||||
ref,
|
||||
...props,
|
||||
children: path
|
||||
});
|
||||
}
|
||||
Component.displayName = `${displayName}Icon`;
|
||||
Component.muiName = SvgIcon.muiName;
|
||||
return /*#__PURE__*/ import_react.memo(/*#__PURE__*/ import_react.forwardRef(Component));
|
||||
}
|
||||
//#endregion
|
||||
export { svgIconClasses as i, SvgIcon as n, getSvgIconUtilityClass as r, createSvgIcon as t };
|
||||
Generated
Vendored
+1
File diff suppressed because one or more lines are too long
Generated
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
import { F as generateUtilityClasses, I as generateUtilityClass } from "./identifier-Db3dwgA7.js";
|
||||
//#region node_modules/@mui/material/DialogTitle/dialogTitleClasses.mjs
|
||||
function getDialogTitleUtilityClass(slot) {
|
||||
return generateUtilityClass("MuiDialogTitle", slot);
|
||||
}
|
||||
var dialogTitleClasses = generateUtilityClasses("MuiDialogTitle", ["root"]);
|
||||
//#endregion
|
||||
export { getDialogTitleUtilityClass as n, dialogTitleClasses as t };
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"dialogTitleClasses-CMIZgy_C.js","names":[],"sources":["../../@mui/material/DialogTitle/dialogTitleClasses.mjs"],"sourcesContent":["import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getDialogTitleUtilityClass(slot) {\n return generateUtilityClass('MuiDialogTitle', slot);\n}\nconst dialogTitleClasses = generateUtilityClasses('MuiDialogTitle', ['root']);\nexport default dialogTitleClasses;"],"mappings":";;AAEA,SAAgB,2BAA2B,MAAM;CAC/C,OAAO,qBAAqB,kBAAkB,IAAI;AACpD;AACA,IAAM,qBAAqB,uBAAuB,kBAAkB,CAAC,MAAM,CAAC"}
|
||||
Generated
Vendored
+141
@@ -0,0 +1,141 @@
|
||||
import { r as __toESM } from "./rolldown-runtime-DC62tzP2.js";
|
||||
import { t as require_react } from "./react.js";
|
||||
import { t as require_react_dom } from "./react-dom.js";
|
||||
import { t as require_prop_types } from "./prop-types-C5owi9-6.js";
|
||||
import { a as useForkRef, o as useEnhancedEffect } from "./useLazyRef-BFAG-x_s.js";
|
||||
import { t as chainPropTypes } from "./chainPropTypes-DS_z862G.js";
|
||||
import { t as setRef } from "./setRef-3K5nZ4il.js";
|
||||
//#region node_modules/@mui/utils/exactProp/exactProp.mjs
|
||||
var specialProperty = "exact-prop: ";
|
||||
function exactProp(propTypes) {
|
||||
return {
|
||||
...propTypes,
|
||||
[specialProperty]: (props) => {
|
||||
const unsupportedProps = Object.keys(props).filter((prop) => !propTypes.hasOwnProperty(prop));
|
||||
if (unsupportedProps.length > 0) return /* @__PURE__ */ new Error(`The following props are not supported: ${unsupportedProps.map((prop) => `\`${prop}\``).join(", ")}. Please remove them.`);
|
||||
return null;
|
||||
}
|
||||
};
|
||||
}
|
||||
//#endregion
|
||||
//#region node_modules/@mui/utils/HTMLElementType/HTMLElementType.mjs
|
||||
function HTMLElementType(props, propName, componentName, location, propFullName) {
|
||||
const propValue = props[propName];
|
||||
const safePropName = propFullName || propName;
|
||||
if (propValue == null) return null;
|
||||
if (propValue && propValue.nodeType !== 1) return /* @__PURE__ */ new Error(`Invalid ${location} \`${safePropName}\` supplied to \`${componentName}\`. Expected an HTMLElement.`);
|
||||
return null;
|
||||
}
|
||||
//#endregion
|
||||
//#region node_modules/@mui/utils/getReactElementRef/getReactElementRef.mjs
|
||||
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
||||
/**
|
||||
* Returns the ref of a React element handling differences between React 19 and older versions.
|
||||
* It will throw runtime error if the element is not a valid React element.
|
||||
*
|
||||
* @param element React.ReactElement
|
||||
* @returns React.Ref<any> | null
|
||||
*/
|
||||
function getReactElementRef(element) {
|
||||
if (parseInt("19.2.8", 10) >= 19) return element?.props?.ref || null;
|
||||
return element?.ref || null;
|
||||
}
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/Portal/Portal.mjs
|
||||
var import_react_dom = /* @__PURE__ */ __toESM(require_react_dom(), 1);
|
||||
var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types(), 1);
|
||||
function getContainer(container) {
|
||||
return typeof container === "function" ? container() : container;
|
||||
}
|
||||
/**
|
||||
* Portals provide a first-class way to render children into a DOM node
|
||||
* that exists outside the DOM hierarchy of the parent component.
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Portal](https://mui.com/material-ui/react-portal/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [Portal API](https://mui.com/material-ui/api/portal/)
|
||||
*/
|
||||
var Portal = /*#__PURE__*/ import_react.forwardRef(function Portal(props, forwardedRef) {
|
||||
const { children, container, disablePortal = false } = props;
|
||||
const [mountNode, setMountNode] = import_react.useState(null);
|
||||
const handleRef = useForkRef(/*#__PURE__*/ import_react.isValidElement(children) ? getReactElementRef(children) : null, forwardedRef);
|
||||
useEnhancedEffect(() => {
|
||||
if (!disablePortal) setMountNode(getContainer(container) || document.body);
|
||||
}, [container, disablePortal]);
|
||||
useEnhancedEffect(() => {
|
||||
if (mountNode && !disablePortal) {
|
||||
setRef(forwardedRef, mountNode);
|
||||
return () => {
|
||||
setRef(forwardedRef, null);
|
||||
};
|
||||
}
|
||||
}, [
|
||||
forwardedRef,
|
||||
mountNode,
|
||||
disablePortal
|
||||
]);
|
||||
if (disablePortal) {
|
||||
if (/*#__PURE__*/ import_react.isValidElement(children)) {
|
||||
const newProps = { ref: handleRef };
|
||||
return /*#__PURE__*/ import_react.cloneElement(children, newProps);
|
||||
}
|
||||
return children;
|
||||
}
|
||||
return mountNode ? /*#__PURE__*/ import_react_dom.createPortal(children, mountNode) : mountNode;
|
||||
});
|
||||
Portal.propTypes = {
|
||||
/**
|
||||
* The children to render into the `container`.
|
||||
*/
|
||||
children: import_prop_types.default.node,
|
||||
/**
|
||||
* An HTML element or function that returns one.
|
||||
* The `container` will have the portal children appended to it.
|
||||
*
|
||||
* You can also provide a callback, which is called in a React layout effect.
|
||||
* This lets you set the container from a ref, and also makes server-side rendering possible.
|
||||
*
|
||||
* By default, it uses the body of the top-level document object,
|
||||
* so it's simply `document.body` most of the time.
|
||||
*/
|
||||
container: import_prop_types.default.oneOfType([HTMLElementType, import_prop_types.default.func]),
|
||||
/**
|
||||
* The `children` will be under the DOM hierarchy of the parent component.
|
||||
* @default false
|
||||
*/
|
||||
disablePortal: import_prop_types.default.bool
|
||||
};
|
||||
Portal["propTypes"] = exactProp(Portal.propTypes);
|
||||
//#endregion
|
||||
//#region node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.mjs
|
||||
function isClassComponent(elementType) {
|
||||
const { prototype = {} } = elementType;
|
||||
return Boolean(prototype.isReactComponent);
|
||||
}
|
||||
function acceptingRef(props, propName, componentName, location, propFullName) {
|
||||
const element = props[propName];
|
||||
const safePropName = propFullName || propName;
|
||||
if (element == null || typeof window === "undefined") return null;
|
||||
let warningHint;
|
||||
const elementType = element.type;
|
||||
/**
|
||||
* Blacklisting instead of whitelisting
|
||||
*
|
||||
* Blacklisting will miss some components, such as React.Fragment. Those will at least
|
||||
* trigger a warning in React.
|
||||
* We can't whitelist because there is no safe way to detect React.forwardRef
|
||||
* or class components. "Safe" means there's no public API.
|
||||
*
|
||||
*/
|
||||
if (typeof elementType === "function" && !isClassComponent(elementType)) warningHint = "Did you accidentally use a plain function component for an element instead?";
|
||||
if (warningHint !== void 0) return /* @__PURE__ */ new Error(`Invalid ${location} \`${safePropName}\` supplied to \`${componentName}\`. Expected an element that can hold a ref. ${warningHint} For more information see https://mui.com/r/caveat-with-refs-guide`);
|
||||
return null;
|
||||
}
|
||||
var elementAcceptingRef = chainPropTypes(import_prop_types.default.element, acceptingRef);
|
||||
elementAcceptingRef.isRequired = chainPropTypes(import_prop_types.default.element.isRequired, acceptingRef);
|
||||
//#endregion
|
||||
export { exactProp as a, HTMLElementType as i, Portal as n, getReactElementRef as r, elementAcceptingRef as t };
|
||||
Generated
Vendored
+1
File diff suppressed because one or more lines are too long
Generated
Vendored
+33
@@ -0,0 +1,33 @@
|
||||
import { r as __toESM } from "./rolldown-runtime-DC62tzP2.js";
|
||||
import { t as require_react } from "./react.js";
|
||||
import { t as require_prop_types } from "./prop-types-C5owi9-6.js";
|
||||
import { t as chainPropTypes } from "./chainPropTypes-DS_z862G.js";
|
||||
//#region node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.mjs
|
||||
var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types(), 1);
|
||||
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
||||
function isClassComponent(elementType) {
|
||||
const { prototype = {} } = elementType;
|
||||
return Boolean(prototype.isReactComponent);
|
||||
}
|
||||
function elementTypeAcceptingRef(props, propName, componentName, location, propFullName) {
|
||||
const propValue = props[propName];
|
||||
const safePropName = propFullName || propName;
|
||||
if (propValue == null || typeof window === "undefined") return null;
|
||||
let warningHint;
|
||||
/**
|
||||
* Blacklisting instead of whitelisting
|
||||
*
|
||||
* Blacklisting will miss some components, such as React.Fragment. Those will at least
|
||||
* trigger a warning in React.
|
||||
* We can't whitelist because there is no safe way to detect React.forwardRef
|
||||
* or class components. "Safe" means there's no public API.
|
||||
*
|
||||
*/
|
||||
if (typeof propValue === "function" && !isClassComponent(propValue)) warningHint = "Did you accidentally provide a plain function component instead?";
|
||||
if (propValue === import_react.Fragment) warningHint = "Did you accidentally provide a React.Fragment instead?";
|
||||
if (warningHint !== void 0) return /* @__PURE__ */ new Error(`Invalid ${location} \`${safePropName}\` supplied to \`${componentName}\`. Expected an element type that can hold a ref. ${warningHint} For more information see https://mui.com/r/caveat-with-refs-guide`);
|
||||
return null;
|
||||
}
|
||||
var elementTypeAcceptingRef_default = chainPropTypes(import_prop_types.default.elementType, elementTypeAcceptingRef);
|
||||
//#endregion
|
||||
export { elementTypeAcceptingRef_default as t };
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"elementTypeAcceptingRef-soVrg9KC.js","names":["PropTypes"],"sources":["../../@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.mjs"],"sourcesContent":["import PropTypes from 'prop-types';\nimport * as React from 'react';\nimport chainPropTypes from \"../chainPropTypes/index.mjs\";\nfunction isClassComponent(elementType) {\n // elementType.prototype?.isReactComponent\n const {\n prototype = {}\n } = elementType;\n return Boolean(prototype.isReactComponent);\n}\nfunction elementTypeAcceptingRef(props, propName, componentName, location, propFullName) {\n const propValue = props[propName];\n const safePropName = propFullName || propName;\n if (propValue == null ||\n // When server-side rendering React doesn't warn either.\n // This is not an accurate check for SSR.\n // This is only in place for emotion compat.\n // TODO: Revisit once https://github.com/react/react/issues/20047 is resolved.\n typeof window === 'undefined') {\n return null;\n }\n let warningHint;\n\n /**\n * Blacklisting instead of whitelisting\n *\n * Blacklisting will miss some components, such as React.Fragment. Those will at least\n * trigger a warning in React.\n * We can't whitelist because there is no safe way to detect React.forwardRef\n * or class components. \"Safe\" means there's no public API.\n *\n */\n if (typeof propValue === 'function' && !isClassComponent(propValue)) {\n warningHint = 'Did you accidentally provide a plain function component instead?';\n }\n if (propValue === React.Fragment) {\n warningHint = 'Did you accidentally provide a React.Fragment instead?';\n }\n if (warningHint !== undefined) {\n // #host-reference\n return new Error(`Invalid ${location} \\`${safePropName}\\` supplied to \\`${componentName}\\`. ` + `Expected an element type that can hold a ref. ${warningHint} ` + 'For more information see https://mui.com/r/caveat-with-refs-guide');\n }\n return null;\n}\nexport default chainPropTypes(PropTypes.elementType, elementTypeAcceptingRef);"],"mappings":";;;;;;;AAGA,SAAS,iBAAiB,aAAa;CAErC,MAAM,EACJ,YAAY,CAAC,MACX;CACJ,OAAO,QAAQ,UAAU,gBAAgB;AAC3C;AACA,SAAS,wBAAwB,OAAO,UAAU,eAAe,UAAU,cAAc;CACvF,MAAM,YAAY,MAAM;CACxB,MAAM,eAAe,gBAAgB;CACrC,IAAI,aAAa,QAKjB,OAAO,WAAW,aAChB,OAAO;CAET,IAAI;;;;;;;;;;CAWJ,IAAI,OAAO,cAAc,cAAc,CAAC,iBAAiB,SAAS,GAChE,cAAc;CAEhB,IAAI,cAAA,aAAoB,UACtB,cAAc;CAEhB,IAAI,gBAAgB,KAAA,GAElB,uBAAO,IAAI,MAAM,WAAW,SAAS,KAAK,aAAa,mBAAmB,cAAc,oDAAyD,YAAY,mEAAwE;CAEvO,OAAO;AACT;AACA,IAAA,kCAAe,eAAeA,kBAAAA,QAAU,aAAa,uBAAuB"}
|
||||
Generated
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
import { a as resolveProps } from "./styled-ry4r-NKP.js";
|
||||
//#region node_modules/@mui/system/useThemeProps/getThemeProps.mjs
|
||||
function getThemeProps(params) {
|
||||
const { theme, name, props } = params;
|
||||
if (!theme || !theme.components || !theme.components[name] || !theme.components[name].defaultProps) return props;
|
||||
return resolveProps(theme.components[name].defaultProps, props);
|
||||
}
|
||||
//#endregion
|
||||
export { getThemeProps as t };
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"getThemeProps-2wnaMjK_.js","names":[],"sources":["../../@mui/system/useThemeProps/getThemeProps.mjs"],"sourcesContent":["import resolveProps from '@mui/utils/resolveProps';\nexport default function getThemeProps(params) {\n const {\n theme,\n name,\n props\n } = params;\n if (!theme || !theme.components || !theme.components[name] || !theme.components[name].defaultProps) {\n return props;\n }\n return resolveProps(theme.components[name].defaultProps, props);\n}"],"mappings":";;AACA,SAAwB,cAAc,QAAQ;CAC5C,MAAM,EACJ,OACA,MACA,UACE;CACJ,IAAI,CAAC,SAAS,CAAC,MAAM,cAAc,CAAC,MAAM,WAAW,SAAS,CAAC,MAAM,WAAW,KAAK,CAAC,cACpF,OAAO;CAET,OAAO,aAAa,MAAM,WAAW,KAAK,CAAC,cAAc,KAAK;AAChE"}
|
||||
+5277
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+1
File diff suppressed because one or more lines are too long
Generated
Vendored
+18
@@ -0,0 +1,18 @@
|
||||
import { F as generateUtilityClasses, I as generateUtilityClass } from "./identifier-Db3dwgA7.js";
|
||||
//#region node_modules/@mui/material/InputAdornment/inputAdornmentClasses.mjs
|
||||
function getInputAdornmentUtilityClass(slot) {
|
||||
return generateUtilityClass("MuiInputAdornment", slot);
|
||||
}
|
||||
var inputAdornmentClasses = generateUtilityClasses("MuiInputAdornment", [
|
||||
"root",
|
||||
"filled",
|
||||
"standard",
|
||||
"outlined",
|
||||
"positionStart",
|
||||
"positionEnd",
|
||||
"disablePointerEvents",
|
||||
"hiddenLabel",
|
||||
"sizeSmall"
|
||||
]);
|
||||
//#endregion
|
||||
export { inputAdornmentClasses as n, getInputAdornmentUtilityClass as t };
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"inputAdornmentClasses-Bz0x_Nya.js","names":[],"sources":["../../@mui/material/InputAdornment/inputAdornmentClasses.mjs"],"sourcesContent":["import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getInputAdornmentUtilityClass(slot) {\n return generateUtilityClass('MuiInputAdornment', slot);\n}\nconst inputAdornmentClasses = generateUtilityClasses('MuiInputAdornment', ['root', 'filled', 'standard', 'outlined', 'positionStart', 'positionEnd', 'disablePointerEvents', 'hiddenLabel', 'sizeSmall']);\nexport default inputAdornmentClasses;"],"mappings":";;AAEA,SAAgB,8BAA8B,MAAM;CAClD,OAAO,qBAAqB,qBAAqB,IAAI;AACvD;AACA,IAAM,wBAAwB,uBAAuB,qBAAqB;CAAC;CAAQ;CAAU;CAAY;CAAY;CAAiB;CAAe;CAAwB;CAAe;AAAW,CAAC"}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
import "./identifier-Db3dwgA7.js";
|
||||
import { c as preprocessStyles } from "./styled-ry4r-NKP.js";
|
||||
//#region node_modules/@mui/system/memoTheme.mjs
|
||||
var arg = { theme: void 0 };
|
||||
/**
|
||||
* Memoize style function on theme.
|
||||
* Intended to be used in styled() calls that only need access to the theme.
|
||||
*/
|
||||
function unstable_memoTheme(styleFn) {
|
||||
let lastValue;
|
||||
let lastTheme;
|
||||
return function styleMemoized(props) {
|
||||
let value = lastValue;
|
||||
if (value === void 0 || props.theme !== lastTheme) {
|
||||
arg.theme = props.theme;
|
||||
value = preprocessStyles(styleFn(arg));
|
||||
lastValue = value;
|
||||
lastTheme = props.theme;
|
||||
}
|
||||
return value;
|
||||
};
|
||||
}
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/utils/memoTheme.mjs
|
||||
var memoTheme = unstable_memoTheme;
|
||||
//#endregion
|
||||
export { memoTheme as t };
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"memoTheme-Ciuals54.js","names":[],"sources":["../../@mui/system/memoTheme.mjs","../../@mui/material/utils/memoTheme.mjs"],"sourcesContent":["import preprocessStyles from \"./preprocessStyles.mjs\";\n\n/* eslint-disable @typescript-eslint/naming-convention */\n\n// We need to pass an argument as `{ theme }` for PigmentCSS, but we don't want to\n// allocate more objects.\nconst arg = {\n theme: undefined\n};\n\n/**\n * Memoize style function on theme.\n * Intended to be used in styled() calls that only need access to the theme.\n */\nexport default function unstable_memoTheme(styleFn) {\n let lastValue;\n let lastTheme;\n return function styleMemoized(props) {\n let value = lastValue;\n if (value === undefined || props.theme !== lastTheme) {\n arg.theme = props.theme;\n value = preprocessStyles(styleFn(arg));\n lastValue = value;\n lastTheme = props.theme;\n }\n return value;\n };\n}","import { unstable_memoTheme } from '@mui/system';\nconst memoTheme = unstable_memoTheme;\nexport default memoTheme;"],"mappings":";;;AAMA,IAAM,MAAM,EACV,OAAO,KAAA,EACT;;;;;AAMA,SAAwB,mBAAmB,SAAS;CAClD,IAAI;CACJ,IAAI;CACJ,OAAO,SAAS,cAAc,OAAO;EACnC,IAAI,QAAQ;EACZ,IAAI,UAAU,KAAA,KAAa,MAAM,UAAU,WAAW;GACpD,IAAI,QAAQ,MAAM;GAClB,QAAQ,iBAAiB,QAAQ,GAAG,CAAC;GACrC,YAAY;GACZ,YAAY,MAAM;EACpB;EACA,OAAO;CACT;AACF;;;AC1BA,IAAM,YAAY"}
|
||||
Generated
Vendored
+52
@@ -0,0 +1,52 @@
|
||||
import { ut as clsx } from "./identifier-Db3dwgA7.js";
|
||||
import { a as isEventHandler } from "./useSlot-DwQopxnD.js";
|
||||
//#region node_modules/@mui/material/utils/mergeSlotProps.mjs
|
||||
function mergeSlotProps(externalSlotProps, defaultSlotProps) {
|
||||
if (!externalSlotProps) return defaultSlotProps;
|
||||
function extractHandlers(externalSlotPropsValue, defaultSlotPropsValue) {
|
||||
const handlers = {};
|
||||
Object.keys(defaultSlotPropsValue).forEach((key) => {
|
||||
if (isEventHandler(key, defaultSlotPropsValue[key]) && typeof externalSlotPropsValue[key] === "function") handlers[key] = (...args) => {
|
||||
externalSlotPropsValue[key](...args);
|
||||
defaultSlotPropsValue[key](...args);
|
||||
};
|
||||
});
|
||||
return handlers;
|
||||
}
|
||||
if (typeof externalSlotProps === "function" || typeof defaultSlotProps === "function") return (ownerState) => {
|
||||
const defaultSlotPropsValue = typeof defaultSlotProps === "function" ? defaultSlotProps(ownerState) : defaultSlotProps;
|
||||
const externalSlotPropsValue = typeof externalSlotProps === "function" ? externalSlotProps({
|
||||
...ownerState,
|
||||
...defaultSlotPropsValue
|
||||
}) : externalSlotProps;
|
||||
const className = clsx(ownerState?.className, defaultSlotPropsValue?.className, externalSlotPropsValue?.className);
|
||||
const handlers = extractHandlers(externalSlotPropsValue, defaultSlotPropsValue);
|
||||
return {
|
||||
...defaultSlotPropsValue,
|
||||
...externalSlotPropsValue,
|
||||
...handlers,
|
||||
...!!className && { className },
|
||||
...defaultSlotPropsValue?.style && externalSlotPropsValue?.style && { style: {
|
||||
...defaultSlotPropsValue.style,
|
||||
...externalSlotPropsValue.style
|
||||
} },
|
||||
...defaultSlotPropsValue?.sx && externalSlotPropsValue?.sx && { sx: [...Array.isArray(defaultSlotPropsValue.sx) ? defaultSlotPropsValue.sx : [defaultSlotPropsValue.sx], ...Array.isArray(externalSlotPropsValue.sx) ? externalSlotPropsValue.sx : [externalSlotPropsValue.sx]] }
|
||||
};
|
||||
};
|
||||
const typedDefaultSlotProps = defaultSlotProps;
|
||||
const handlers = extractHandlers(externalSlotProps, typedDefaultSlotProps);
|
||||
const className = clsx(typedDefaultSlotProps?.className, externalSlotProps?.className);
|
||||
return {
|
||||
...defaultSlotProps,
|
||||
...externalSlotProps,
|
||||
...handlers,
|
||||
...!!className && { className },
|
||||
...typedDefaultSlotProps?.style && externalSlotProps?.style && { style: {
|
||||
...typedDefaultSlotProps.style,
|
||||
...externalSlotProps.style
|
||||
} },
|
||||
...typedDefaultSlotProps?.sx && externalSlotProps?.sx && { sx: [...Array.isArray(typedDefaultSlotProps.sx) ? typedDefaultSlotProps.sx : [typedDefaultSlotProps.sx], ...Array.isArray(externalSlotProps.sx) ? externalSlotProps.sx : [externalSlotProps.sx]] }
|
||||
};
|
||||
}
|
||||
//#endregion
|
||||
export { mergeSlotProps as t };
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"mergeSlotProps-BYHIo2Vv.js","names":[],"sources":["../../@mui/material/utils/mergeSlotProps.mjs"],"sourcesContent":["import isEventHandler from '@mui/utils/isEventHandler';\nimport clsx from 'clsx';\nexport default function mergeSlotProps(externalSlotProps, defaultSlotProps) {\n if (!externalSlotProps) {\n return defaultSlotProps;\n }\n function extractHandlers(externalSlotPropsValue, defaultSlotPropsValue) {\n const handlers = {};\n Object.keys(defaultSlotPropsValue).forEach(key => {\n if (isEventHandler(key, defaultSlotPropsValue[key]) && typeof externalSlotPropsValue[key] === 'function') {\n // only compose the handlers if both default and external slot props match the event handler\n handlers[key] = (...args) => {\n externalSlotPropsValue[key](...args);\n defaultSlotPropsValue[key](...args);\n };\n }\n });\n return handlers;\n }\n if (typeof externalSlotProps === 'function' || typeof defaultSlotProps === 'function') {\n return ownerState => {\n const defaultSlotPropsValue = typeof defaultSlotProps === 'function' ? defaultSlotProps(ownerState) : defaultSlotProps;\n const externalSlotPropsValue = typeof externalSlotProps === 'function' ? externalSlotProps({\n ...ownerState,\n ...defaultSlotPropsValue\n }) : externalSlotProps;\n const className = clsx(ownerState?.className, defaultSlotPropsValue?.className, externalSlotPropsValue?.className);\n const handlers = extractHandlers(externalSlotPropsValue, defaultSlotPropsValue);\n return {\n ...defaultSlotPropsValue,\n ...externalSlotPropsValue,\n ...handlers,\n ...(!!className && {\n className\n }),\n ...(defaultSlotPropsValue?.style && externalSlotPropsValue?.style && {\n style: {\n ...defaultSlotPropsValue.style,\n ...externalSlotPropsValue.style\n }\n }),\n ...(defaultSlotPropsValue?.sx && externalSlotPropsValue?.sx && {\n sx: [...(Array.isArray(defaultSlotPropsValue.sx) ? defaultSlotPropsValue.sx : [defaultSlotPropsValue.sx]), ...(Array.isArray(externalSlotPropsValue.sx) ? externalSlotPropsValue.sx : [externalSlotPropsValue.sx])]\n })\n };\n };\n }\n const typedDefaultSlotProps = defaultSlotProps;\n const handlers = extractHandlers(externalSlotProps, typedDefaultSlotProps);\n const className = clsx(typedDefaultSlotProps?.className, externalSlotProps?.className);\n return {\n ...defaultSlotProps,\n ...externalSlotProps,\n ...handlers,\n ...(!!className && {\n className\n }),\n ...(typedDefaultSlotProps?.style && externalSlotProps?.style && {\n style: {\n ...typedDefaultSlotProps.style,\n ...externalSlotProps.style\n }\n }),\n ...(typedDefaultSlotProps?.sx && externalSlotProps?.sx && {\n sx: [...(Array.isArray(typedDefaultSlotProps.sx) ? typedDefaultSlotProps.sx : [typedDefaultSlotProps.sx]), ...(Array.isArray(externalSlotProps.sx) ? externalSlotProps.sx : [externalSlotProps.sx])]\n })\n };\n}"],"mappings":";;;AAEA,SAAwB,eAAe,mBAAmB,kBAAkB;CAC1E,IAAI,CAAC,mBACH,OAAO;CAET,SAAS,gBAAgB,wBAAwB,uBAAuB;EACtE,MAAM,WAAW,CAAC;EAClB,OAAO,KAAK,qBAAqB,CAAC,CAAC,SAAQ,QAAO;GAChD,IAAI,eAAe,KAAK,sBAAsB,IAAI,KAAK,OAAO,uBAAuB,SAAS,YAE5F,SAAS,QAAQ,GAAG,SAAS;IAC3B,uBAAuB,IAAI,CAAC,GAAG,IAAI;IACnC,sBAAsB,IAAI,CAAC,GAAG,IAAI;GACpC;EAEJ,CAAC;EACD,OAAO;CACT;CACA,IAAI,OAAO,sBAAsB,cAAc,OAAO,qBAAqB,YACzE,QAAO,eAAc;EACnB,MAAM,wBAAwB,OAAO,qBAAqB,aAAa,iBAAiB,UAAU,IAAI;EACtG,MAAM,yBAAyB,OAAO,sBAAsB,aAAa,kBAAkB;GACzF,GAAG;GACH,GAAG;EACL,CAAC,IAAI;EACL,MAAM,YAAY,KAAK,YAAY,WAAW,uBAAuB,WAAW,wBAAwB,SAAS;EACjH,MAAM,WAAW,gBAAgB,wBAAwB,qBAAqB;EAC9E,OAAO;GACL,GAAG;GACH,GAAG;GACH,GAAG;GACH,GAAI,CAAC,CAAC,aAAa,EACjB,UACF;GACA,GAAI,uBAAuB,SAAS,wBAAwB,SAAS,EACnE,OAAO;IACL,GAAG,sBAAsB;IACzB,GAAG,uBAAuB;GAC5B,EACF;GACA,GAAI,uBAAuB,MAAM,wBAAwB,MAAM,EAC7D,IAAI,CAAC,GAAI,MAAM,QAAQ,sBAAsB,EAAE,IAAI,sBAAsB,KAAK,CAAC,sBAAsB,EAAE,GAAI,GAAI,MAAM,QAAQ,uBAAuB,EAAE,IAAI,uBAAuB,KAAK,CAAC,uBAAuB,EAAE,CAAE,EACpN;EACF;CACF;CAEF,MAAM,wBAAwB;CAC9B,MAAM,WAAW,gBAAgB,mBAAmB,qBAAqB;CACzE,MAAM,YAAY,KAAK,uBAAuB,WAAW,mBAAmB,SAAS;CACrF,OAAO;EACL,GAAG;EACH,GAAG;EACH,GAAG;EACH,GAAI,CAAC,CAAC,aAAa,EACjB,UACF;EACA,GAAI,uBAAuB,SAAS,mBAAmB,SAAS,EAC9D,OAAO;GACL,GAAG,sBAAsB;GACzB,GAAG,kBAAkB;EACvB,EACF;EACA,GAAI,uBAAuB,MAAM,mBAAmB,MAAM,EACxD,IAAI,CAAC,GAAI,MAAM,QAAQ,sBAAsB,EAAE,IAAI,sBAAsB,KAAK,CAAC,sBAAsB,EAAE,GAAI,GAAI,MAAM,QAAQ,kBAAkB,EAAE,IAAI,kBAAkB,KAAK,CAAC,kBAAkB,EAAE,CAAE,EACrM;CACF;AACF"}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import { o as createStyled } from "./styled-ry4r-NKP.js";
|
||||
//#region node_modules/@mui/system/styled/styled.mjs
|
||||
var styled = createStyled();
|
||||
//#endregion
|
||||
export { styled as t };
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"styled-D1aQQGyn.js","names":[],"sources":["../../@mui/system/styled/styled.mjs"],"sourcesContent":["import createStyled from \"../createStyled/index.mjs\";\nconst styled = createStyled();\nexport default styled;"],"mappings":";;AACA,IAAM,SAAS,aAAa"}
|
||||
+303
@@ -0,0 +1,303 @@
|
||||
import { B as internal_mutateStyles, H as styled$1, R as createTheme, V as internal_serializeStyles, Z as styleFunctionSx_default, ct as isObjectEmpty, lt as capitalize, n as createTheme$1, ot as isPlainObject, st as require_react_is, t as identifier_default, ut as clsx } from "./identifier-Db3dwgA7.js";
|
||||
//#region node_modules/@mui/utils/composeClasses/composeClasses.mjs
|
||||
/**
|
||||
* Compose classes from multiple sources.
|
||||
*
|
||||
* @example
|
||||
* ```tsx
|
||||
* const slots = {
|
||||
* root: ['root', 'primary'],
|
||||
* label: ['label'],
|
||||
* };
|
||||
*
|
||||
* const getUtilityClass = (slot) => `MuiButton-${slot}`;
|
||||
*
|
||||
* const classes = {
|
||||
* root: 'my-root-class',
|
||||
* };
|
||||
*
|
||||
* const output = composeClasses(slots, getUtilityClass, classes);
|
||||
* // {
|
||||
* // root: 'MuiButton-root MuiButton-primary my-root-class',
|
||||
* // label: 'MuiButton-label',
|
||||
* // }
|
||||
* ```
|
||||
*
|
||||
* @param slots a list of classes for each possible slot
|
||||
* @param getUtilityClass a function to resolve the class based on the slot name
|
||||
* @param classes the input classes from props
|
||||
* @returns the resolved classes for all slots
|
||||
*/
|
||||
function composeClasses(slots, getUtilityClass, classes = void 0) {
|
||||
const output = {};
|
||||
for (const slotName in slots) {
|
||||
const slot = slots[slotName];
|
||||
let buffer = "";
|
||||
let start = true;
|
||||
for (let i = 0; i < slot.length; i += 1) {
|
||||
const value = slot[i];
|
||||
if (value) {
|
||||
buffer += (start === true ? "" : " ") + getUtilityClass(value);
|
||||
start = false;
|
||||
if (classes && classes[value]) buffer += " " + classes[value];
|
||||
}
|
||||
}
|
||||
output[slotName] = buffer;
|
||||
}
|
||||
return output;
|
||||
}
|
||||
//#endregion
|
||||
//#region node_modules/@mui/utils/getDisplayName/getDisplayName.mjs
|
||||
var import_react_is = require_react_is();
|
||||
function getFunctionComponentName(Component, fallback = "") {
|
||||
return Component.displayName || Component.name || fallback;
|
||||
}
|
||||
function getWrappedName(outerType, innerType, wrapperName) {
|
||||
const functionName = getFunctionComponentName(innerType);
|
||||
return outerType.displayName || (functionName !== "" ? `${wrapperName}(${functionName})` : wrapperName);
|
||||
}
|
||||
/**
|
||||
* cherry-pick from
|
||||
* https://github.com/react/react/blob/769b1f270e1251d9dbdce0fcbd9e92e502d059b8/packages/shared/getComponentName.js
|
||||
* originally forked from recompose/getDisplayName
|
||||
*/
|
||||
function getDisplayName(Component) {
|
||||
if (Component == null) return;
|
||||
if (typeof Component === "string") return Component;
|
||||
if (typeof Component === "function") return getFunctionComponentName(Component, "Component");
|
||||
if (typeof Component === "object") switch (Component.$$typeof) {
|
||||
case import_react_is.ForwardRef: return getWrappedName(Component, Component.render, "ForwardRef");
|
||||
case import_react_is.Memo: return getWrappedName(Component, Component.type, "memo");
|
||||
default: return;
|
||||
}
|
||||
}
|
||||
//#endregion
|
||||
//#region node_modules/@mui/system/preprocessStyles.mjs
|
||||
function preprocessStyles(input) {
|
||||
const { variants, ...style } = input;
|
||||
const result = {
|
||||
variants,
|
||||
style: internal_serializeStyles(style),
|
||||
isProcessed: true
|
||||
};
|
||||
if (result.style === style) return result;
|
||||
if (variants) variants.forEach((variant) => {
|
||||
if (typeof variant.style !== "function") variant.style = internal_serializeStyles(variant.style);
|
||||
});
|
||||
return result;
|
||||
}
|
||||
//#endregion
|
||||
//#region node_modules/@mui/system/createStyled/createStyled.mjs
|
||||
var systemDefaultTheme = createTheme();
|
||||
function shouldForwardProp(prop) {
|
||||
return prop !== "ownerState" && prop !== "theme" && prop !== "sx" && prop !== "as";
|
||||
}
|
||||
function shallowLayer(serialized, layerName) {
|
||||
if (layerName && serialized && typeof serialized === "object" && serialized.styles && !serialized.styles.startsWith("@layer")) serialized.styles = `@layer ${layerName}{${String(serialized.styles)}}`;
|
||||
return serialized;
|
||||
}
|
||||
function defaultOverridesResolver(slot) {
|
||||
if (!slot) return null;
|
||||
return (_props, styles) => styles[slot];
|
||||
}
|
||||
function attachTheme(props, themeId, defaultTheme) {
|
||||
props.theme = isObjectEmpty(props.theme) ? defaultTheme : props.theme[themeId] || props.theme;
|
||||
}
|
||||
function processStyle(props, style, layerName) {
|
||||
const resolvedStyle = typeof style === "function" ? style(props) : style;
|
||||
if (Array.isArray(resolvedStyle)) return resolvedStyle.flatMap((subStyle) => processStyle(props, subStyle, layerName));
|
||||
if (Array.isArray(resolvedStyle?.variants)) {
|
||||
let rootStyle;
|
||||
if (resolvedStyle.isProcessed) rootStyle = layerName ? shallowLayer(resolvedStyle.style, layerName) : resolvedStyle.style;
|
||||
else {
|
||||
const { variants, ...otherStyles } = resolvedStyle;
|
||||
rootStyle = layerName ? shallowLayer(internal_serializeStyles(otherStyles), layerName) : otherStyles;
|
||||
}
|
||||
return processStyleVariants(props, resolvedStyle.variants, [rootStyle], layerName);
|
||||
}
|
||||
if (resolvedStyle?.isProcessed) return layerName ? shallowLayer(internal_serializeStyles(resolvedStyle.style), layerName) : resolvedStyle.style;
|
||||
return layerName ? shallowLayer(internal_serializeStyles(resolvedStyle), layerName) : resolvedStyle;
|
||||
}
|
||||
function processStyleVariants(props, variants, results = [], layerName = void 0) {
|
||||
let mergedState;
|
||||
variantLoop: for (let i = 0; i < variants.length; i += 1) {
|
||||
const variant = variants[i];
|
||||
if (typeof variant.props === "function") {
|
||||
mergedState ??= {
|
||||
...props,
|
||||
...props.ownerState,
|
||||
ownerState: props.ownerState
|
||||
};
|
||||
if (!variant.props(mergedState)) continue;
|
||||
} else for (const key in variant.props) if (props[key] !== variant.props[key] && props.ownerState?.[key] !== variant.props[key]) continue variantLoop;
|
||||
if (typeof variant.style === "function") {
|
||||
mergedState ??= {
|
||||
...props,
|
||||
...props.ownerState,
|
||||
ownerState: props.ownerState
|
||||
};
|
||||
results.push(layerName ? shallowLayer(internal_serializeStyles(variant.style(mergedState)), layerName) : variant.style(mergedState));
|
||||
} else results.push(layerName ? shallowLayer(internal_serializeStyles(variant.style), layerName) : variant.style);
|
||||
}
|
||||
return results;
|
||||
}
|
||||
function createStyled(input = {}) {
|
||||
const { themeId, defaultTheme = systemDefaultTheme, rootShouldForwardProp = shouldForwardProp, slotShouldForwardProp = shouldForwardProp } = input;
|
||||
function styleAttachTheme(props) {
|
||||
attachTheme(props, themeId, defaultTheme);
|
||||
}
|
||||
const styled = (tag, inputOptions = {}) => {
|
||||
internal_mutateStyles(tag, (styles) => styles.filter((style) => style !== styleFunctionSx_default));
|
||||
const { name: componentName, slot: componentSlot, skipVariantsResolver: inputSkipVariantsResolver, skipSx: inputSkipSx, overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot)), ...options } = inputOptions;
|
||||
const layerName = componentName && componentName.startsWith("Mui") || !!componentSlot ? "components" : "custom";
|
||||
const skipVariantsResolver = inputSkipVariantsResolver !== void 0 ? inputSkipVariantsResolver : componentSlot && componentSlot !== "Root" && componentSlot !== "root" || false;
|
||||
const skipSx = inputSkipSx || false;
|
||||
let shouldForwardPropOption = shouldForwardProp;
|
||||
if (componentSlot === "Root" || componentSlot === "root") shouldForwardPropOption = rootShouldForwardProp;
|
||||
else if (componentSlot) shouldForwardPropOption = slotShouldForwardProp;
|
||||
else if (isStringTag(tag)) shouldForwardPropOption = void 0;
|
||||
const defaultStyledResolver = styled$1(tag, {
|
||||
shouldForwardProp: shouldForwardPropOption,
|
||||
label: generateStyledLabel(componentName, componentSlot),
|
||||
...options
|
||||
});
|
||||
const transformStyle = (style) => {
|
||||
if (style.__emotion_real === style) return style;
|
||||
if (typeof style === "function") return function styleFunctionProcessor(props) {
|
||||
return processStyle(props, style, props.theme.modularCssLayers ? layerName : void 0);
|
||||
};
|
||||
if (isPlainObject(style)) {
|
||||
const serialized = preprocessStyles(style);
|
||||
return function styleObjectProcessor(props) {
|
||||
if (!serialized.variants) return props.theme.modularCssLayers ? shallowLayer(serialized.style, layerName) : serialized.style;
|
||||
return processStyle(props, serialized, props.theme.modularCssLayers ? layerName : void 0);
|
||||
};
|
||||
}
|
||||
return style;
|
||||
};
|
||||
const muiStyledResolver = (...expressionsInput) => {
|
||||
const expressionsHead = [];
|
||||
const expressionsBody = expressionsInput.map(transformStyle);
|
||||
const expressionsTail = [];
|
||||
expressionsHead.push(styleAttachTheme);
|
||||
if (componentName && overridesResolver) expressionsTail.push(function styleThemeOverrides(props) {
|
||||
const styleOverrides = props.theme.components?.[componentName]?.styleOverrides;
|
||||
if (!styleOverrides) return null;
|
||||
const resolvedStyleOverrides = {};
|
||||
for (const slotKey in styleOverrides) resolvedStyleOverrides[slotKey] = processStyle(props, styleOverrides[slotKey], props.theme.modularCssLayers ? "theme" : void 0);
|
||||
return overridesResolver(props, resolvedStyleOverrides);
|
||||
});
|
||||
if (componentName && !skipVariantsResolver) expressionsTail.push(function styleThemeVariants(props) {
|
||||
const themeVariants = props.theme?.components?.[componentName]?.variants;
|
||||
if (!themeVariants) return null;
|
||||
return processStyleVariants(props, themeVariants, [], props.theme.modularCssLayers ? "theme" : void 0);
|
||||
});
|
||||
if (!skipSx) expressionsTail.push(styleFunctionSx_default);
|
||||
if (Array.isArray(expressionsBody[0])) {
|
||||
const inputStrings = expressionsBody.shift();
|
||||
const placeholdersHead = new Array(expressionsHead.length).fill("");
|
||||
const placeholdersTail = new Array(expressionsTail.length).fill("");
|
||||
let outputStrings;
|
||||
outputStrings = [
|
||||
...placeholdersHead,
|
||||
...inputStrings,
|
||||
...placeholdersTail
|
||||
];
|
||||
outputStrings.raw = [
|
||||
...placeholdersHead,
|
||||
...inputStrings.raw,
|
||||
...placeholdersTail
|
||||
];
|
||||
expressionsHead.unshift(outputStrings);
|
||||
}
|
||||
const expressions = [
|
||||
...expressionsHead,
|
||||
...expressionsBody,
|
||||
...expressionsTail
|
||||
];
|
||||
const Component = defaultStyledResolver(...expressions);
|
||||
if (tag.muiName) Component.muiName = tag.muiName;
|
||||
Component.displayName = generateDisplayName(componentName, componentSlot, tag);
|
||||
return Component;
|
||||
};
|
||||
if (defaultStyledResolver.withConfig) muiStyledResolver.withConfig = defaultStyledResolver.withConfig;
|
||||
return muiStyledResolver;
|
||||
};
|
||||
return styled;
|
||||
}
|
||||
function generateDisplayName(componentName, componentSlot, tag) {
|
||||
if (componentName) return `${componentName}${capitalize(componentSlot || "")}`;
|
||||
return `Styled(${getDisplayName(tag)})`;
|
||||
}
|
||||
function generateStyledLabel(componentName, componentSlot) {
|
||||
let label;
|
||||
if (componentName) label = `${componentName}-${lowercaseFirstLetter(componentSlot || "Root")}`;
|
||||
return label;
|
||||
}
|
||||
function isStringTag(tag) {
|
||||
return typeof tag === "string" && tag.charCodeAt(0) > 96;
|
||||
}
|
||||
function lowercaseFirstLetter(string) {
|
||||
if (!string) return string;
|
||||
return string.charAt(0).toLowerCase() + string.slice(1);
|
||||
}
|
||||
//#endregion
|
||||
//#region node_modules/@mui/utils/resolveProps/resolveProps.mjs
|
||||
/**
|
||||
* Add keys, values of `defaultProps` that does not exist in `props`
|
||||
* @param defaultProps
|
||||
* @param props
|
||||
* @param mergeClassNameAndStyle If `true`, merges `className` and `style` props instead of overriding them.
|
||||
* When `false` (default), props override defaultProps. When `true`, `className` values are concatenated
|
||||
* and `style` objects are merged with props taking precedence.
|
||||
* @returns resolved props
|
||||
*/
|
||||
function resolveProps(defaultProps, props, mergeClassNameAndStyle = false) {
|
||||
const output = { ...props };
|
||||
for (const key in defaultProps) if (Object.prototype.hasOwnProperty.call(defaultProps, key)) {
|
||||
const propName = key;
|
||||
if (propName === "components" || propName === "slots") output[propName] = {
|
||||
...defaultProps[propName],
|
||||
...output[propName]
|
||||
};
|
||||
else if (propName === "componentsProps" || propName === "slotProps") {
|
||||
const defaultSlotProps = defaultProps[propName];
|
||||
const slotProps = props[propName];
|
||||
if (!slotProps) output[propName] = defaultSlotProps || {};
|
||||
else if (!defaultSlotProps) output[propName] = slotProps;
|
||||
else {
|
||||
output[propName] = { ...slotProps };
|
||||
for (const slotKey in defaultSlotProps) if (Object.prototype.hasOwnProperty.call(defaultSlotProps, slotKey)) {
|
||||
const slotPropName = slotKey;
|
||||
output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName], mergeClassNameAndStyle);
|
||||
}
|
||||
}
|
||||
} else if (propName === "className" && mergeClassNameAndStyle && props.className !== void 0) output.className = clsx(defaultProps?.className, props?.className);
|
||||
else if (propName === "style" && mergeClassNameAndStyle && props.style) output.style = {
|
||||
...defaultProps?.style,
|
||||
...props?.style
|
||||
};
|
||||
else if (output[propName] === void 0) output[propName] = defaultProps[propName];
|
||||
}
|
||||
return output;
|
||||
}
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/styles/defaultTheme.mjs
|
||||
var defaultTheme = createTheme$1();
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/styles/slotShouldForwardProp.mjs
|
||||
function slotShouldForwardProp(prop) {
|
||||
return prop !== "ownerState" && prop !== "theme" && prop !== "sx" && prop !== "as";
|
||||
}
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/styles/rootShouldForwardProp.mjs
|
||||
var rootShouldForwardProp = (prop) => slotShouldForwardProp(prop) && prop !== "classes";
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/styles/styled.mjs
|
||||
var styled = createStyled({
|
||||
themeId: identifier_default,
|
||||
defaultTheme,
|
||||
rootShouldForwardProp
|
||||
});
|
||||
//#endregion
|
||||
export { resolveProps as a, preprocessStyles as c, defaultTheme as i, composeClasses as l, rootShouldForwardProp as n, createStyled as o, slotShouldForwardProp as r, shouldForwardProp as s, styled as t };
|
||||
+1
File diff suppressed because one or more lines are too long
+183
@@ -0,0 +1,183 @@
|
||||
import { ut as clsx } from "./identifier-Db3dwgA7.js";
|
||||
import { a as useForkRef } from "./useLazyRef-BFAG-x_s.js";
|
||||
//#region node_modules/@mui/utils/isHostComponent/isHostComponent.mjs
|
||||
/**
|
||||
* Determines if a given element is a DOM element name (i.e. not a React component).
|
||||
*/
|
||||
function isHostComponent(element) {
|
||||
return typeof element === "string";
|
||||
}
|
||||
//#endregion
|
||||
//#region node_modules/@mui/utils/appendOwnerState/appendOwnerState.mjs
|
||||
/**
|
||||
* Type of the ownerState based on the type of an element it applies to.
|
||||
* This resolves to the provided OwnerState for React components and `undefined` for host components.
|
||||
* Falls back to `OwnerState | undefined` when the exact type can't be determined in development time.
|
||||
*/
|
||||
/**
|
||||
* Appends the ownerState object to the props, merging with the existing one if necessary.
|
||||
*
|
||||
* @param elementType Type of the element that owns the `existingProps`. If the element is a DOM node or undefined, `ownerState` is not applied.
|
||||
* @param otherProps Props of the element.
|
||||
* @param ownerState
|
||||
*/
|
||||
function appendOwnerState(elementType, otherProps, ownerState) {
|
||||
if (elementType === void 0 || isHostComponent(elementType)) return otherProps;
|
||||
return {
|
||||
...otherProps,
|
||||
ownerState: {
|
||||
...otherProps.ownerState,
|
||||
...ownerState
|
||||
}
|
||||
};
|
||||
}
|
||||
//#endregion
|
||||
//#region node_modules/@mui/utils/isEventHandler/isEventHandler.mjs
|
||||
function isEventHandler(key, value) {
|
||||
const thirdCharCode = key.charCodeAt(2);
|
||||
return key[0] === "o" && key[1] === "n" && thirdCharCode >= 65 && thirdCharCode <= 90 && typeof value === "function";
|
||||
}
|
||||
//#endregion
|
||||
//#region node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.mjs
|
||||
/**
|
||||
* Extracts event handlers from a given object.
|
||||
* A prop is considered an event handler if it is a function and its name starts with `on`.
|
||||
*
|
||||
* @param object An object to extract event handlers from.
|
||||
*/
|
||||
function extractEventHandlers(object) {
|
||||
if (object === void 0) return {};
|
||||
const result = {};
|
||||
for (const prop of Object.keys(object)) if (isEventHandler(prop, object[prop])) result[prop] = object[prop];
|
||||
return result;
|
||||
}
|
||||
//#endregion
|
||||
//#region node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.mjs
|
||||
/**
|
||||
* Removes event handlers from the given object.
|
||||
* A field is considered an event handler if it is a function with a name beginning with `on`.
|
||||
*
|
||||
* @param object Object to remove event handlers from.
|
||||
* @returns Object with event handlers removed.
|
||||
*/
|
||||
function omitEventHandlers(object) {
|
||||
if (object === void 0) return {};
|
||||
const result = {};
|
||||
Object.keys(object).filter((prop) => !(prop.match(/^on[A-Z]/) && typeof object[prop] === "function")).forEach((prop) => {
|
||||
result[prop] = object[prop];
|
||||
});
|
||||
return result;
|
||||
}
|
||||
//#endregion
|
||||
//#region node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.mjs
|
||||
/**
|
||||
* Merges the slot component internal props (usually coming from a hook)
|
||||
* with the externally provided ones.
|
||||
*
|
||||
* The merge order is (the latter overrides the former):
|
||||
* 1. The internal props (specified as a getter function to work with get*Props hook result)
|
||||
* 2. Additional props (specified internally on a Base UI component)
|
||||
* 3. External props specified on the owner component. These should only be used on a root slot.
|
||||
* 4. External props specified in the `slotProps.*` prop.
|
||||
* 5. The `className` prop - combined from all the above.
|
||||
* @param parameters
|
||||
* @returns
|
||||
*/
|
||||
function mergeSlotProps(parameters) {
|
||||
const { getSlotProps, additionalProps, externalSlotProps, externalForwardedProps, className } = parameters;
|
||||
if (!getSlotProps) {
|
||||
const joinedClasses = clsx(additionalProps?.className, className, externalForwardedProps?.className, externalSlotProps?.className);
|
||||
const mergedStyle = {
|
||||
...additionalProps?.style,
|
||||
...externalForwardedProps?.style,
|
||||
...externalSlotProps?.style
|
||||
};
|
||||
const props = {
|
||||
...additionalProps,
|
||||
...externalForwardedProps,
|
||||
...externalSlotProps
|
||||
};
|
||||
if (joinedClasses.length > 0) props.className = joinedClasses;
|
||||
if (Object.keys(mergedStyle).length > 0) props.style = mergedStyle;
|
||||
return {
|
||||
props,
|
||||
internalRef: void 0
|
||||
};
|
||||
}
|
||||
const eventHandlers = extractEventHandlers({
|
||||
...externalForwardedProps,
|
||||
...externalSlotProps
|
||||
});
|
||||
const componentsPropsWithoutEventHandlers = omitEventHandlers(externalSlotProps);
|
||||
const otherPropsWithoutEventHandlers = omitEventHandlers(externalForwardedProps);
|
||||
const internalSlotProps = getSlotProps(eventHandlers);
|
||||
const joinedClasses = clsx(internalSlotProps?.className, additionalProps?.className, className, externalForwardedProps?.className, externalSlotProps?.className);
|
||||
const mergedStyle = {
|
||||
...internalSlotProps?.style,
|
||||
...additionalProps?.style,
|
||||
...externalForwardedProps?.style,
|
||||
...externalSlotProps?.style
|
||||
};
|
||||
const props = {
|
||||
...internalSlotProps,
|
||||
...additionalProps,
|
||||
...otherPropsWithoutEventHandlers,
|
||||
...componentsPropsWithoutEventHandlers
|
||||
};
|
||||
if (joinedClasses.length > 0) props.className = joinedClasses;
|
||||
if (Object.keys(mergedStyle).length > 0) props.style = mergedStyle;
|
||||
return {
|
||||
props,
|
||||
internalRef: internalSlotProps.ref
|
||||
};
|
||||
}
|
||||
//#endregion
|
||||
//#region node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.mjs
|
||||
/**
|
||||
* If `componentProps` is a function, calls it with the provided `ownerState`.
|
||||
* Otherwise, just returns `componentProps`.
|
||||
*/
|
||||
function resolveComponentProps(componentProps, ownerState, slotState) {
|
||||
if (typeof componentProps === "function") return componentProps(ownerState, slotState);
|
||||
return componentProps;
|
||||
}
|
||||
//#endregion
|
||||
//#region node_modules/@mui/material/utils/useSlot.mjs
|
||||
/**
|
||||
* An internal function to create a Material UI slot.
|
||||
*
|
||||
* This is an advanced version of Base UI `useSlotProps` because Material UI allows leaf component to be customized via `component` prop
|
||||
* while Base UI does not need to support leaf component customization.
|
||||
*
|
||||
* @param {string} name: name of the slot
|
||||
* @param {object} parameters
|
||||
* @returns {[Slot, slotProps]} The slot's React component and the slot's props
|
||||
*
|
||||
* Note: the returned slot's props
|
||||
* - will never contain `component` prop.
|
||||
* - might contain `as` prop.
|
||||
*/
|
||||
function useSlot(name, parameters) {
|
||||
const { className, elementType: initialElementType, ownerState, externalForwardedProps, internalForwardedProps, shouldForwardComponentProp = false, ...useSlotPropsParams } = parameters;
|
||||
const { component: rootComponent, slots = { [name]: void 0 }, slotProps = { [name]: void 0 }, ...other } = externalForwardedProps;
|
||||
const elementType = slots[name] || initialElementType;
|
||||
const resolvedComponentsProps = resolveComponentProps(slotProps[name], ownerState);
|
||||
const { props: { component: slotComponent, ...mergedProps }, internalRef } = mergeSlotProps({
|
||||
className,
|
||||
...useSlotPropsParams,
|
||||
externalForwardedProps: name === "root" ? other : void 0,
|
||||
externalSlotProps: resolvedComponentsProps
|
||||
});
|
||||
const ref = useForkRef(internalRef, resolvedComponentsProps?.ref, parameters.ref);
|
||||
const LeafComponent = name === "root" ? slotComponent || rootComponent : slotComponent;
|
||||
return [elementType, appendOwnerState(elementType, {
|
||||
...name === "root" && !rootComponent && !slots[name] && internalForwardedProps,
|
||||
...name !== "root" && !slots[name] && internalForwardedProps,
|
||||
...mergedProps,
|
||||
...LeafComponent && !shouldForwardComponentProp && { as: LeafComponent },
|
||||
...LeafComponent && shouldForwardComponentProp && { component: LeafComponent },
|
||||
ref
|
||||
}, ownerState)];
|
||||
}
|
||||
//#endregion
|
||||
export { isEventHandler as a, extractEventHandlers as i, resolveComponentProps as n, appendOwnerState as o, mergeSlotProps as r, isHostComponent as s, useSlot as t };
|
||||
+1
File diff suppressed because one or more lines are too long
Generated
Vendored
+26
@@ -0,0 +1,26 @@
|
||||
import { a as useForkRef } from "./useLazyRef-BFAG-x_s.js";
|
||||
import { n as resolveComponentProps, o as appendOwnerState, r as mergeSlotProps } from "./useSlot-DwQopxnD.js";
|
||||
//#region node_modules/@mui/utils/useSlotProps/useSlotProps.mjs
|
||||
/**
|
||||
* @ignore - do not document.
|
||||
* Builds the props to be passed into the slot of an unstyled component.
|
||||
* It merges the internal props of the component with the ones supplied by the user, allowing to customize the behavior.
|
||||
* If the slot component is not a host component, it also merges in the `ownerState`.
|
||||
*
|
||||
* @param parameters.getSlotProps - A function that returns the props to be passed to the slot component.
|
||||
*/
|
||||
function useSlotProps(parameters) {
|
||||
const { elementType, externalSlotProps, ownerState, skipResolvingSlotProps = false, ...other } = parameters;
|
||||
const resolvedComponentsProps = skipResolvingSlotProps ? {} : resolveComponentProps(externalSlotProps, ownerState);
|
||||
const { props: mergedProps, internalRef } = mergeSlotProps({
|
||||
...other,
|
||||
externalSlotProps: resolvedComponentsProps
|
||||
});
|
||||
const ref = useForkRef(internalRef, resolvedComponentsProps?.ref, parameters.additionalProps?.ref);
|
||||
return appendOwnerState(elementType, {
|
||||
...mergedProps,
|
||||
ref
|
||||
}, ownerState);
|
||||
}
|
||||
//#endregion
|
||||
export { useSlotProps as t };
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"useSlotProps-Bcfvl0Sd.js","names":[],"sources":["../../@mui/utils/useSlotProps/useSlotProps.mjs"],"sourcesContent":["'use client';\n\nimport useForkRef from \"../useForkRef/index.mjs\";\nimport appendOwnerState from \"../appendOwnerState/index.mjs\";\nimport mergeSlotProps from \"../mergeSlotProps/index.mjs\";\nimport resolveComponentProps from \"../resolveComponentProps/index.mjs\";\n/**\n * @ignore - do not document.\n * Builds the props to be passed into the slot of an unstyled component.\n * It merges the internal props of the component with the ones supplied by the user, allowing to customize the behavior.\n * If the slot component is not a host component, it also merges in the `ownerState`.\n *\n * @param parameters.getSlotProps - A function that returns the props to be passed to the slot component.\n */\nfunction useSlotProps(parameters) {\n const {\n elementType,\n externalSlotProps,\n ownerState,\n skipResolvingSlotProps = false,\n ...other\n } = parameters;\n const resolvedComponentsProps = skipResolvingSlotProps ? {} : resolveComponentProps(externalSlotProps, ownerState);\n const {\n props: mergedProps,\n internalRef\n } = mergeSlotProps({\n ...other,\n externalSlotProps: resolvedComponentsProps\n });\n const ref = useForkRef(internalRef, resolvedComponentsProps?.ref, parameters.additionalProps?.ref);\n const props = appendOwnerState(elementType, {\n ...mergedProps,\n ref\n }, ownerState);\n return props;\n}\nexport default useSlotProps;"],"mappings":";;;;;;;;;;;AAcA,SAAS,aAAa,YAAY;CAChC,MAAM,EACJ,aACA,mBACA,YACA,yBAAyB,OACzB,GAAG,UACD;CACJ,MAAM,0BAA0B,yBAAyB,CAAC,IAAI,sBAAsB,mBAAmB,UAAU;CACjH,MAAM,EACJ,OAAO,aACP,gBACE,eAAe;EACjB,GAAG;EACH,mBAAmB;CACrB,CAAC;CACD,MAAM,MAAM,WAAW,aAAa,yBAAyB,KAAK,WAAW,iBAAiB,GAAG;CAKjG,OAJc,iBAAiB,aAAa;EAC1C,GAAG;EACH;CACF,GAAG,UACQ;AACb"}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
import { r as __toESM } from "./rolldown-runtime-DC62tzP2.js";
|
||||
import { t as require_react } from "./react.js";
|
||||
import { R as createTheme, q as ThemeContext } from "./identifier-Db3dwgA7.js";
|
||||
//#region node_modules/@mui/system/useThemeWithoutDefault/useThemeWithoutDefault.mjs
|
||||
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
||||
function isObjectEmpty(obj) {
|
||||
return Object.keys(obj).length === 0;
|
||||
}
|
||||
function useThemeWithoutDefault(defaultTheme = null) {
|
||||
const contextTheme = import_react.useContext(ThemeContext);
|
||||
return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme;
|
||||
}
|
||||
//#endregion
|
||||
//#region node_modules/@mui/system/useTheme/useTheme.mjs
|
||||
var systemDefaultTheme = createTheme();
|
||||
function useTheme(defaultTheme = systemDefaultTheme) {
|
||||
return useThemeWithoutDefault(defaultTheme);
|
||||
}
|
||||
//#endregion
|
||||
export { useThemeWithoutDefault as n, useTheme as t };
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"useTheme-DkkwbUco.js","names":[],"sources":["../../@mui/system/useThemeWithoutDefault/useThemeWithoutDefault.mjs","../../@mui/system/useTheme/useTheme.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { ThemeContext } from '@mui/styled-engine';\nfunction isObjectEmpty(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction useThemeWithoutDefault(defaultTheme = null) {\n const contextTheme = React.useContext(ThemeContext);\n return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme;\n}\nexport default useThemeWithoutDefault;","'use client';\n\nimport createTheme from \"../createTheme/index.mjs\";\nimport useThemeWithoutDefault from \"../useThemeWithoutDefault/index.mjs\";\nexport const systemDefaultTheme = createTheme();\nfunction useTheme(defaultTheme = systemDefaultTheme) {\n return useThemeWithoutDefault(defaultTheme);\n}\nexport default useTheme;"],"mappings":";;;;;AAIA,SAAS,cAAc,KAAK;CAC1B,OAAO,OAAO,KAAK,GAAG,CAAC,CAAC,WAAW;AACrC;AACA,SAAS,uBAAuB,eAAe,MAAM;CACnD,MAAM,eAAA,aAAqB,WAAW,YAAY;CAClD,OAAO,CAAC,gBAAgB,cAAc,YAAY,IAAI,eAAe;AACvE;;;ACNA,IAAa,qBAAqB,YAAY;AAC9C,SAAS,SAAS,eAAe,oBAAoB;CACnD,OAAO,uBAAuB,YAAY;AAC5C"}
|
||||
Generated
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
import { t as identifier_default } from "./identifier-Db3dwgA7.js";
|
||||
import { i as defaultTheme } from "./styled-ry4r-NKP.js";
|
||||
import { t as useThemeProps$1 } from "./useThemeProps-CBZxmtaL.js";
|
||||
//#region node_modules/@mui/material/styles/useThemeProps.mjs
|
||||
function useThemeProps({ props, name }) {
|
||||
return useThemeProps$1({
|
||||
props,
|
||||
name,
|
||||
defaultTheme,
|
||||
themeId: identifier_default
|
||||
});
|
||||
}
|
||||
//#endregion
|
||||
export { useThemeProps as t };
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"useThemeProps-Bj7e_GBH.js","names":["systemUseThemeProps","THEME_ID"],"sources":["../../@mui/material/styles/useThemeProps.mjs"],"sourcesContent":["'use client';\n\nimport systemUseThemeProps from '@mui/system/useThemeProps';\nimport defaultTheme from \"./defaultTheme.mjs\";\nimport THEME_ID from \"./identifier.mjs\";\nexport default function useThemeProps({\n props,\n name\n}) {\n return systemUseThemeProps({\n props,\n name,\n defaultTheme,\n themeId: THEME_ID\n });\n}"],"mappings":";;;;AAKA,SAAwB,cAAc,EACpC,OACA,QACC;CACD,OAAOA,gBAAoB;EACzB;EACA;EACA;EACA,SAASC;CACX,CAAC;AACH"}
|
||||
Generated
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
import { t as useTheme } from "./useTheme-DkkwbUco.js";
|
||||
import { t as getThemeProps } from "./getThemeProps-2wnaMjK_.js";
|
||||
//#region node_modules/@mui/system/useThemeProps/useThemeProps.mjs
|
||||
function useThemeProps(params) {
|
||||
const { props, name, defaultTheme, themeId } = params;
|
||||
let theme = useTheme(defaultTheme);
|
||||
if (themeId) theme = theme[themeId] || theme;
|
||||
return getThemeProps({
|
||||
theme,
|
||||
name,
|
||||
props
|
||||
});
|
||||
}
|
||||
//#endregion
|
||||
export { useThemeProps as t };
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"useThemeProps-CBZxmtaL.js","names":[],"sources":["../../@mui/system/useThemeProps/useThemeProps.mjs"],"sourcesContent":["'use client';\n\nimport getThemeProps from \"./getThemeProps.mjs\";\nimport useTheme from \"../useTheme/index.mjs\";\nexport default function useThemeProps(params) {\n const {\n props,\n name,\n defaultTheme,\n themeId\n } = params;\n let theme = useTheme(defaultTheme);\n if (themeId) {\n theme = theme[themeId] || theme;\n }\n return getThemeProps({\n theme,\n name,\n props\n });\n}"],"mappings":";;;AAIA,SAAwB,cAAc,QAAQ;CAC5C,MAAM,EACJ,OACA,MACA,cACA,YACE;CACJ,IAAI,QAAQ,SAAS,YAAY;CACjC,IAAI,SACF,QAAQ,MAAM,YAAY;CAE5B,OAAO,cAAc;EACnB;EACA;EACA;CACF,CAAC;AACH"}
|
||||
Generated
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
# `@rolldown/binding-linux-x64-gnu`
|
||||
|
||||
This is the **x86_64-unknown-linux-gnu** binary for `@rolldown/binding`
|
||||
Generated
Vendored
+40
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"name": "@rolldown/binding-linux-x64-gnu",
|
||||
"version": "1.2.4",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"main": "rolldown-binding.linux-x64-gnu.node",
|
||||
"files": [
|
||||
"rolldown-binding.linux-x64-gnu.node"
|
||||
],
|
||||
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
||||
"keywords": [
|
||||
"bundler",
|
||||
"esbuild",
|
||||
"parcel",
|
||||
"rolldown",
|
||||
"rollup",
|
||||
"webpack"
|
||||
],
|
||||
"homepage": "https://rolldown.rs/",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": "^20.19.0 || >=22.12.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/rolldown/rolldown.git",
|
||||
"directory": "packages/rolldown"
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npmjs.org/",
|
||||
"access": "public"
|
||||
},
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"libc": [
|
||||
"glibc"
|
||||
]
|
||||
}
|
||||
Generated
Vendored
BIN
Binary file not shown.
+373
@@ -0,0 +1,373 @@
|
||||
Mozilla Public License Version 2.0
|
||||
==================================
|
||||
|
||||
1. Definitions
|
||||
--------------
|
||||
|
||||
1.1. "Contributor"
|
||||
means each individual or legal entity that creates, contributes to
|
||||
the creation of, or owns Covered Software.
|
||||
|
||||
1.2. "Contributor Version"
|
||||
means the combination of the Contributions of others (if any) used
|
||||
by a Contributor and that particular Contributor's Contribution.
|
||||
|
||||
1.3. "Contribution"
|
||||
means Covered Software of a particular Contributor.
|
||||
|
||||
1.4. "Covered Software"
|
||||
means Source Code Form to which the initial Contributor has attached
|
||||
the notice in Exhibit A, the Executable Form of such Source Code
|
||||
Form, and Modifications of such Source Code Form, in each case
|
||||
including portions thereof.
|
||||
|
||||
1.5. "Incompatible With Secondary Licenses"
|
||||
means
|
||||
|
||||
(a) that the initial Contributor has attached the notice described
|
||||
in Exhibit B to the Covered Software; or
|
||||
|
||||
(b) that the Covered Software was made available under the terms of
|
||||
version 1.1 or earlier of the License, but not also under the
|
||||
terms of a Secondary License.
|
||||
|
||||
1.6. "Executable Form"
|
||||
means any form of the work other than Source Code Form.
|
||||
|
||||
1.7. "Larger Work"
|
||||
means a work that combines Covered Software with other material, in
|
||||
a separate file or files, that is not Covered Software.
|
||||
|
||||
1.8. "License"
|
||||
means this document.
|
||||
|
||||
1.9. "Licensable"
|
||||
means having the right to grant, to the maximum extent possible,
|
||||
whether at the time of the initial grant or subsequently, any and
|
||||
all of the rights conveyed by this License.
|
||||
|
||||
1.10. "Modifications"
|
||||
means any of the following:
|
||||
|
||||
(a) any file in Source Code Form that results from an addition to,
|
||||
deletion from, or modification of the contents of Covered
|
||||
Software; or
|
||||
|
||||
(b) any new file in Source Code Form that contains any Covered
|
||||
Software.
|
||||
|
||||
1.11. "Patent Claims" of a Contributor
|
||||
means any patent claim(s), including without limitation, method,
|
||||
process, and apparatus claims, in any patent Licensable by such
|
||||
Contributor that would be infringed, but for the grant of the
|
||||
License, by the making, using, selling, offering for sale, having
|
||||
made, import, or transfer of either its Contributions or its
|
||||
Contributor Version.
|
||||
|
||||
1.12. "Secondary License"
|
||||
means either the GNU General Public License, Version 2.0, the GNU
|
||||
Lesser General Public License, Version 2.1, the GNU Affero General
|
||||
Public License, Version 3.0, or any later versions of those
|
||||
licenses.
|
||||
|
||||
1.13. "Source Code Form"
|
||||
means the form of the work preferred for making modifications.
|
||||
|
||||
1.14. "You" (or "Your")
|
||||
means an individual or a legal entity exercising rights under this
|
||||
License. For legal entities, "You" includes any entity that
|
||||
controls, is controlled by, or is under common control with You. For
|
||||
purposes of this definition, "control" means (a) the power, direct
|
||||
or indirect, to cause the direction or management of such entity,
|
||||
whether by contract or otherwise, or (b) ownership of more than
|
||||
fifty percent (50%) of the outstanding shares or beneficial
|
||||
ownership of such entity.
|
||||
|
||||
2. License Grants and Conditions
|
||||
--------------------------------
|
||||
|
||||
2.1. Grants
|
||||
|
||||
Each Contributor hereby grants You a world-wide, royalty-free,
|
||||
non-exclusive license:
|
||||
|
||||
(a) under intellectual property rights (other than patent or trademark)
|
||||
Licensable by such Contributor to use, reproduce, make available,
|
||||
modify, display, perform, distribute, and otherwise exploit its
|
||||
Contributions, either on an unmodified basis, with Modifications, or
|
||||
as part of a Larger Work; and
|
||||
|
||||
(b) under Patent Claims of such Contributor to make, use, sell, offer
|
||||
for sale, have made, import, and otherwise transfer either its
|
||||
Contributions or its Contributor Version.
|
||||
|
||||
2.2. Effective Date
|
||||
|
||||
The licenses granted in Section 2.1 with respect to any Contribution
|
||||
become effective for each Contribution on the date the Contributor first
|
||||
distributes such Contribution.
|
||||
|
||||
2.3. Limitations on Grant Scope
|
||||
|
||||
The licenses granted in this Section 2 are the only rights granted under
|
||||
this License. No additional rights or licenses will be implied from the
|
||||
distribution or licensing of Covered Software under this License.
|
||||
Notwithstanding Section 2.1(b) above, no patent license is granted by a
|
||||
Contributor:
|
||||
|
||||
(a) for any code that a Contributor has removed from Covered Software;
|
||||
or
|
||||
|
||||
(b) for infringements caused by: (i) Your and any other third party's
|
||||
modifications of Covered Software, or (ii) the combination of its
|
||||
Contributions with other software (except as part of its Contributor
|
||||
Version); or
|
||||
|
||||
(c) under Patent Claims infringed by Covered Software in the absence of
|
||||
its Contributions.
|
||||
|
||||
This License does not grant any rights in the trademarks, service marks,
|
||||
or logos of any Contributor (except as may be necessary to comply with
|
||||
the notice requirements in Section 3.4).
|
||||
|
||||
2.4. Subsequent Licenses
|
||||
|
||||
No Contributor makes additional grants as a result of Your choice to
|
||||
distribute the Covered Software under a subsequent version of this
|
||||
License (see Section 10.2) or under the terms of a Secondary License (if
|
||||
permitted under the terms of Section 3.3).
|
||||
|
||||
2.5. Representation
|
||||
|
||||
Each Contributor represents that the Contributor believes its
|
||||
Contributions are its original creation(s) or it has sufficient rights
|
||||
to grant the rights to its Contributions conveyed by this License.
|
||||
|
||||
2.6. Fair Use
|
||||
|
||||
This License is not intended to limit any rights You have under
|
||||
applicable copyright doctrines of fair use, fair dealing, or other
|
||||
equivalents.
|
||||
|
||||
2.7. Conditions
|
||||
|
||||
Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
|
||||
in Section 2.1.
|
||||
|
||||
3. Responsibilities
|
||||
-------------------
|
||||
|
||||
3.1. Distribution of Source Form
|
||||
|
||||
All distribution of Covered Software in Source Code Form, including any
|
||||
Modifications that You create or to which You contribute, must be under
|
||||
the terms of this License. You must inform recipients that the Source
|
||||
Code Form of the Covered Software is governed by the terms of this
|
||||
License, and how they can obtain a copy of this License. You may not
|
||||
attempt to alter or restrict the recipients' rights in the Source Code
|
||||
Form.
|
||||
|
||||
3.2. Distribution of Executable Form
|
||||
|
||||
If You distribute Covered Software in Executable Form then:
|
||||
|
||||
(a) such Covered Software must also be made available in Source Code
|
||||
Form, as described in Section 3.1, and You must inform recipients of
|
||||
the Executable Form how they can obtain a copy of such Source Code
|
||||
Form by reasonable means in a timely manner, at a charge no more
|
||||
than the cost of distribution to the recipient; and
|
||||
|
||||
(b) You may distribute such Executable Form under the terms of this
|
||||
License, or sublicense it under different terms, provided that the
|
||||
license for the Executable Form does not attempt to limit or alter
|
||||
the recipients' rights in the Source Code Form under this License.
|
||||
|
||||
3.3. Distribution of a Larger Work
|
||||
|
||||
You may create and distribute a Larger Work under terms of Your choice,
|
||||
provided that You also comply with the requirements of this License for
|
||||
the Covered Software. If the Larger Work is a combination of Covered
|
||||
Software with a work governed by one or more Secondary Licenses, and the
|
||||
Covered Software is not Incompatible With Secondary Licenses, this
|
||||
License permits You to additionally distribute such Covered Software
|
||||
under the terms of such Secondary License(s), so that the recipient of
|
||||
the Larger Work may, at their option, further distribute the Covered
|
||||
Software under the terms of either this License or such Secondary
|
||||
License(s).
|
||||
|
||||
3.4. Notices
|
||||
|
||||
You may not remove or alter the substance of any license notices
|
||||
(including copyright notices, patent notices, disclaimers of warranty,
|
||||
or limitations of liability) contained within the Source Code Form of
|
||||
the Covered Software, except that You may alter any license notices to
|
||||
the extent required to remedy known factual inaccuracies.
|
||||
|
||||
3.5. Application of Additional Terms
|
||||
|
||||
You may choose to offer, and to charge a fee for, warranty, support,
|
||||
indemnity or liability obligations to one or more recipients of Covered
|
||||
Software. However, You may do so only on Your own behalf, and not on
|
||||
behalf of any Contributor. You must make it absolutely clear that any
|
||||
such warranty, support, indemnity, or liability obligation is offered by
|
||||
You alone, and You hereby agree to indemnify every Contributor for any
|
||||
liability incurred by such Contributor as a result of warranty, support,
|
||||
indemnity or liability terms You offer. You may include additional
|
||||
disclaimers of warranty and limitations of liability specific to any
|
||||
jurisdiction.
|
||||
|
||||
4. Inability to Comply Due to Statute or Regulation
|
||||
---------------------------------------------------
|
||||
|
||||
If it is impossible for You to comply with any of the terms of this
|
||||
License with respect to some or all of the Covered Software due to
|
||||
statute, judicial order, or regulation then You must: (a) comply with
|
||||
the terms of this License to the maximum extent possible; and (b)
|
||||
describe the limitations and the code they affect. Such description must
|
||||
be placed in a text file included with all distributions of the Covered
|
||||
Software under this License. Except to the extent prohibited by statute
|
||||
or regulation, such description must be sufficiently detailed for a
|
||||
recipient of ordinary skill to be able to understand it.
|
||||
|
||||
5. Termination
|
||||
--------------
|
||||
|
||||
5.1. The rights granted under this License will terminate automatically
|
||||
if You fail to comply with any of its terms. However, if You become
|
||||
compliant, then the rights granted under this License from a particular
|
||||
Contributor are reinstated (a) provisionally, unless and until such
|
||||
Contributor explicitly and finally terminates Your grants, and (b) on an
|
||||
ongoing basis, if such Contributor fails to notify You of the
|
||||
non-compliance by some reasonable means prior to 60 days after You have
|
||||
come back into compliance. Moreover, Your grants from a particular
|
||||
Contributor are reinstated on an ongoing basis if such Contributor
|
||||
notifies You of the non-compliance by some reasonable means, this is the
|
||||
first time You have received notice of non-compliance with this License
|
||||
from such Contributor, and You become compliant prior to 30 days after
|
||||
Your receipt of the notice.
|
||||
|
||||
5.2. If You initiate litigation against any entity by asserting a patent
|
||||
infringement claim (excluding declaratory judgment actions,
|
||||
counter-claims, and cross-claims) alleging that a Contributor Version
|
||||
directly or indirectly infringes any patent, then the rights granted to
|
||||
You by any and all Contributors for the Covered Software under Section
|
||||
2.1 of this License shall terminate.
|
||||
|
||||
5.3. In the event of termination under Sections 5.1 or 5.2 above, all
|
||||
end user license agreements (excluding distributors and resellers) which
|
||||
have been validly granted by You or Your distributors under this License
|
||||
prior to termination shall survive termination.
|
||||
|
||||
************************************************************************
|
||||
* *
|
||||
* 6. Disclaimer of Warranty *
|
||||
* ------------------------- *
|
||||
* *
|
||||
* Covered Software is provided under this License on an "as is" *
|
||||
* basis, without warranty of any kind, either expressed, implied, or *
|
||||
* statutory, including, without limitation, warranties that the *
|
||||
* Covered Software is free of defects, merchantable, fit for a *
|
||||
* particular purpose or non-infringing. The entire risk as to the *
|
||||
* quality and performance of the Covered Software is with You. *
|
||||
* Should any Covered Software prove defective in any respect, You *
|
||||
* (not any Contributor) assume the cost of any necessary servicing, *
|
||||
* repair, or correction. This disclaimer of warranty constitutes an *
|
||||
* essential part of this License. No use of any Covered Software is *
|
||||
* authorized under this License except under this disclaimer. *
|
||||
* *
|
||||
************************************************************************
|
||||
|
||||
************************************************************************
|
||||
* *
|
||||
* 7. Limitation of Liability *
|
||||
* -------------------------- *
|
||||
* *
|
||||
* Under no circumstances and under no legal theory, whether tort *
|
||||
* (including negligence), contract, or otherwise, shall any *
|
||||
* Contributor, or anyone who distributes Covered Software as *
|
||||
* permitted above, be liable to You for any direct, indirect, *
|
||||
* special, incidental, or consequential damages of any character *
|
||||
* including, without limitation, damages for lost profits, loss of *
|
||||
* goodwill, work stoppage, computer failure or malfunction, or any *
|
||||
* and all other commercial damages or losses, even if such party *
|
||||
* shall have been informed of the possibility of such damages. This *
|
||||
* limitation of liability shall not apply to liability for death or *
|
||||
* personal injury resulting from such party's negligence to the *
|
||||
* extent applicable law prohibits such limitation. Some *
|
||||
* jurisdictions do not allow the exclusion or limitation of *
|
||||
* incidental or consequential damages, so this exclusion and *
|
||||
* limitation may not apply to You. *
|
||||
* *
|
||||
************************************************************************
|
||||
|
||||
8. Litigation
|
||||
-------------
|
||||
|
||||
Any litigation relating to this License may be brought only in the
|
||||
courts of a jurisdiction where the defendant maintains its principal
|
||||
place of business and such litigation shall be governed by laws of that
|
||||
jurisdiction, without reference to its conflict-of-law provisions.
|
||||
Nothing in this Section shall prevent a party's ability to bring
|
||||
cross-claims or counter-claims.
|
||||
|
||||
9. Miscellaneous
|
||||
----------------
|
||||
|
||||
This License represents the complete agreement concerning the subject
|
||||
matter hereof. If any provision of this License is held to be
|
||||
unenforceable, such provision shall be reformed only to the extent
|
||||
necessary to make it enforceable. Any law or regulation which provides
|
||||
that the language of a contract shall be construed against the drafter
|
||||
shall not be used to construe this License against a Contributor.
|
||||
|
||||
10. Versions of the License
|
||||
---------------------------
|
||||
|
||||
10.1. New Versions
|
||||
|
||||
Mozilla Foundation is the license steward. Except as provided in Section
|
||||
10.3, no one other than the license steward has the right to modify or
|
||||
publish new versions of this License. Each version will be given a
|
||||
distinguishing version number.
|
||||
|
||||
10.2. Effect of New Versions
|
||||
|
||||
You may distribute the Covered Software under the terms of the version
|
||||
of the License under which You originally received the Covered Software,
|
||||
or under the terms of any subsequent version published by the license
|
||||
steward.
|
||||
|
||||
10.3. Modified Versions
|
||||
|
||||
If you create software not governed by this License, and you want to
|
||||
create a new license for such software, you may create and use a
|
||||
modified version of this License if you rename the license and remove
|
||||
any references to the name of the license steward (except to note that
|
||||
such modified license differs from this License).
|
||||
|
||||
10.4. Distributing Source Code Form that is Incompatible With Secondary
|
||||
Licenses
|
||||
|
||||
If You choose to distribute Source Code Form that is Incompatible With
|
||||
Secondary Licenses under the terms of this version of the License, the
|
||||
notice described in Exhibit B of this License must be attached.
|
||||
|
||||
Exhibit A - Source Code Form License Notice
|
||||
-------------------------------------------
|
||||
|
||||
This Source Code Form is subject to the terms of the Mozilla Public
|
||||
License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
|
||||
If it is not possible or desirable to put the notice in a particular
|
||||
file, then You may include the notice in a location (such as a LICENSE
|
||||
file in a relevant directory) where a recipient would be likely to look
|
||||
for such a notice.
|
||||
|
||||
You may add additional accurate notices of copyright ownership.
|
||||
|
||||
Exhibit B - "Incompatible With Secondary Licenses" Notice
|
||||
---------------------------------------------------------
|
||||
|
||||
This Source Code Form is "Incompatible With Secondary Licenses", as
|
||||
defined by the Mozilla Public License, v. 2.0.
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
This is the x86_64-unknown-linux-gnu build of lightningcss. See https://github.com/parcel-bundler/lightningcss for details.
|
||||
Generated
Vendored
BIN
Binary file not shown.
Generated
Vendored
+37
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"name": "lightningcss-linux-x64-gnu",
|
||||
"version": "1.33.0",
|
||||
"license": "MPL-2.0",
|
||||
"description": "A CSS parser, transformer, and minifier written in Rust",
|
||||
"main": "lightningcss.linux-x64-gnu.node",
|
||||
"browserslist": "last 2 versions, not dead",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/parcel"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/parcel-bundler/lightningcss.git"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 12.0.0"
|
||||
},
|
||||
"files": [
|
||||
"lightningcss.linux-x64-gnu.node"
|
||||
],
|
||||
"resolutions": {
|
||||
"lightningcss": "link:."
|
||||
},
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"libc": [
|
||||
"glibc"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,296 @@
|
||||
--
|
||||
-- PostgreSQL database dump
|
||||
--
|
||||
|
||||
\restrict tr7G1QPNTTXLQIe4Aor0iXBst7bCIMG3YrRi4W0ctLjYNYkTNMzg0a7p1PBiCQw
|
||||
|
||||
-- Dumped from database version 18.4 (Debian 18.4-1.pgdg13+1)
|
||||
-- Dumped by pg_dump version 18.4 (Debian 18.4-1.pgdg13+1)
|
||||
|
||||
SET statement_timeout = 0;
|
||||
SET lock_timeout = 0;
|
||||
SET idle_in_transaction_session_timeout = 0;
|
||||
SET transaction_timeout = 0;
|
||||
SET client_encoding = 'UTF8';
|
||||
SET standard_conforming_strings = on;
|
||||
SELECT pg_catalog.set_config('search_path', '', false);
|
||||
SET check_function_bodies = false;
|
||||
SET xmloption = content;
|
||||
SET client_min_messages = warning;
|
||||
SET row_security = off;
|
||||
|
||||
--
|
||||
-- Name: global_id_seq; Type: SEQUENCE; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
CREATE SEQUENCE public.global_id_seq
|
||||
START WITH 1000000
|
||||
INCREMENT BY 1
|
||||
NO MINVALUE
|
||||
NO MAXVALUE
|
||||
CACHE 1;
|
||||
|
||||
|
||||
ALTER SEQUENCE public.global_id_seq OWNER TO tsindt;
|
||||
|
||||
SET default_tablespace = '';
|
||||
|
||||
SET default_table_access_method = heap;
|
||||
|
||||
--
|
||||
-- Name: media; Type: TABLE; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
CREATE TABLE public.media (
|
||||
id bigint DEFAULT nextval('public.global_id_seq'::regclass) NOT NULL,
|
||||
label text,
|
||||
description text,
|
||||
media text,
|
||||
mediatype text,
|
||||
externalid bigint
|
||||
);
|
||||
|
||||
|
||||
ALTER TABLE public.media OWNER TO tsindt;
|
||||
|
||||
--
|
||||
-- Name: productgroups; Type: TABLE; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
CREATE TABLE public.productgroups (
|
||||
id bigint DEFAULT nextval('public.global_id_seq'::regclass) NOT NULL,
|
||||
label text,
|
||||
description text,
|
||||
parentgroupid bigint
|
||||
);
|
||||
|
||||
|
||||
ALTER TABLE public.productgroups OWNER TO tsindt;
|
||||
|
||||
--
|
||||
-- Name: products; Type: TABLE; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
CREATE TABLE public.products (
|
||||
id bigint DEFAULT nextval('public.global_id_seq'::regclass) NOT NULL,
|
||||
label text,
|
||||
externalid text,
|
||||
description text,
|
||||
productgroupid bigint
|
||||
);
|
||||
|
||||
|
||||
ALTER TABLE public.products OWNER TO tsindt;
|
||||
|
||||
--
|
||||
-- Name: properties; Type: TABLE; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
CREATE TABLE public.properties (
|
||||
id bigint DEFAULT nextval('public.global_id_seq'::regclass) CONSTRAINT propertys_id_not_null NOT NULL,
|
||||
label text,
|
||||
description text,
|
||||
propertytypeid bigint,
|
||||
productid bigint,
|
||||
productgroupid bigint
|
||||
);
|
||||
|
||||
|
||||
ALTER TABLE public.properties OWNER TO tsindt;
|
||||
|
||||
--
|
||||
-- Name: propertytypegroups; Type: TABLE; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
CREATE TABLE public.propertytypegroups (
|
||||
id bigint DEFAULT nextval('public.global_id_seq'::regclass) NOT NULL,
|
||||
label text,
|
||||
description text,
|
||||
parentgroupid bigint
|
||||
);
|
||||
|
||||
|
||||
ALTER TABLE public.propertytypegroups OWNER TO tsindt;
|
||||
|
||||
--
|
||||
-- Name: propertytypes; Type: TABLE; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
CREATE TABLE public.propertytypes (
|
||||
id bigint DEFAULT nextval('public.global_id_seq'::regclass) NOT NULL,
|
||||
label text,
|
||||
description text,
|
||||
propertytypegroupid bigint
|
||||
);
|
||||
|
||||
|
||||
ALTER TABLE public.propertytypes OWNER TO tsindt;
|
||||
|
||||
--
|
||||
-- Name: values; Type: TABLE; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
CREATE TABLE public."values" (
|
||||
id bigint DEFAULT nextval('public.global_id_seq'::regclass) NOT NULL,
|
||||
label text,
|
||||
description text,
|
||||
propertyid bigint
|
||||
);
|
||||
|
||||
|
||||
ALTER TABLE public."values" OWNER TO tsindt;
|
||||
|
||||
--
|
||||
-- Data for Name: media; Type: TABLE DATA; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
COPY public.media (id, label, description, media, mediatype, externalid) FROM stdin;
|
||||
\.
|
||||
|
||||
|
||||
--
|
||||
-- Data for Name: productgroups; Type: TABLE DATA; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
COPY public.productgroups (id, label, description, parentgroupid) FROM stdin;
|
||||
1000007 Simply CPQ Product catalog root 0
|
||||
1000008 Catalog Product catalog 1000007
|
||||
1000009 Components Components catalog 1000007
|
||||
1000028 Radio Radios for Home Stereo 1000008
|
||||
\.
|
||||
|
||||
|
||||
--
|
||||
-- Data for Name: products; Type: TABLE DATA; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
COPY public.products (id, label, externalid, description, productgroupid) FROM stdin;
|
||||
\.
|
||||
|
||||
|
||||
--
|
||||
-- Data for Name: properties; Type: TABLE DATA; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
COPY public.properties (id, label, description, propertytypeid, productid, productgroupid) FROM stdin;
|
||||
1000024 Colour System wide colors 1000003 0 1000008
|
||||
1000029 Colour System wide colors 1000003 0 1000028
|
||||
1000033 voltage Voltage for home usage 1000010 0 1000028
|
||||
\.
|
||||
|
||||
|
||||
--
|
||||
-- Data for Name: propertytypegroups; Type: TABLE DATA; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
COPY public.propertytypegroups (id, label, description, parentgroupid) FROM stdin;
|
||||
1000000 Simply CPQ Root Gruppe für den Merkmalspool 0
|
||||
1000001 System Property Types Systemweite Property-Typen werden hier abgelegt 1000000
|
||||
1000002 Product Property Types Produkt-relevante Property-Typen werden hier abgelegt 1000000
|
||||
\.
|
||||
|
||||
|
||||
--
|
||||
-- Data for Name: propertytypes; Type: TABLE DATA; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
COPY public.propertytypes (id, label, description, propertytypegroupid) FROM stdin;
|
||||
1000003 Colour System wide colors 1000002
|
||||
1000010 voltage Voltage for home usage 1000002
|
||||
\.
|
||||
|
||||
|
||||
--
|
||||
-- Data for Name: values; Type: TABLE DATA; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
COPY public."values" (id, label, description, propertyid) FROM stdin;
|
||||
1000004 Red Color Red 1000003
|
||||
1000005 Green Color Green 1000003
|
||||
1000006 Blue Color Blue 1000003
|
||||
1000011 12 V 1000010
|
||||
1000012 24 V 1000010
|
||||
1000013 110 V 1000010
|
||||
1000014 240 V 1000010
|
||||
1000015 440 V 1000010
|
||||
1000025 Red Color Red 1000024
|
||||
1000026 Green Color Green 1000024
|
||||
1000027 Blue Color Blue 1000024
|
||||
1000030 Red Color Red 1000029
|
||||
1000031 Green Color Green 1000029
|
||||
1000032 Blue Color Blue 1000029
|
||||
1000034 12 V 1000033
|
||||
1000035 24 V 1000033
|
||||
1000037 240 V 1000033
|
||||
\.
|
||||
|
||||
|
||||
--
|
||||
-- Name: global_id_seq; Type: SEQUENCE SET; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
SELECT pg_catalog.setval('public.global_id_seq', 1000038, true);
|
||||
|
||||
|
||||
--
|
||||
-- Name: media media_pkey; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.media
|
||||
ADD CONSTRAINT media_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: productgroups productgroups_pkey; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.productgroups
|
||||
ADD CONSTRAINT productgroups_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: products products_pkey; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.products
|
||||
ADD CONSTRAINT products_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: properties propertys_pkey; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.properties
|
||||
ADD CONSTRAINT propertys_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: propertytypegroups propertytypegroups_pkey; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.propertytypegroups
|
||||
ADD CONSTRAINT propertytypegroups_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: propertytypes propertytypes_pkey; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.propertytypes
|
||||
ADD CONSTRAINT propertytypes_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: values values_pkey; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public."values"
|
||||
ADD CONSTRAINT values_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- PostgreSQL database dump complete
|
||||
--
|
||||
|
||||
\unrestrict tr7G1QPNTTXLQIe4Aor0iXBst7bCIMG3YrRi4W0ctLjYNYkTNMzg0a7p1PBiCQw
|
||||
|
||||
@@ -0,0 +1,340 @@
|
||||
--
|
||||
-- PostgreSQL database dump
|
||||
--
|
||||
|
||||
\restrict qPYCKqc0gA0nEvolSKRPL74eJMR5SZBNcEw7S0IbNZuXEYe9ClpV3DwQtHZJYdY
|
||||
|
||||
-- Dumped from database version 18.4 (Debian 18.4-1.pgdg13+1)
|
||||
-- Dumped by pg_dump version 18.4 (Debian 18.4-1.pgdg13+1)
|
||||
|
||||
SET statement_timeout = 0;
|
||||
SET lock_timeout = 0;
|
||||
SET idle_in_transaction_session_timeout = 0;
|
||||
SET transaction_timeout = 0;
|
||||
SET client_encoding = 'UTF8';
|
||||
SET standard_conforming_strings = on;
|
||||
SELECT pg_catalog.set_config('search_path', '', false);
|
||||
SET check_function_bodies = false;
|
||||
SET xmloption = content;
|
||||
SET client_min_messages = warning;
|
||||
SET row_security = off;
|
||||
|
||||
--
|
||||
-- Name: global_id_seq; Type: SEQUENCE; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
CREATE SEQUENCE public.global_id_seq
|
||||
START WITH 1000000
|
||||
INCREMENT BY 1
|
||||
NO MINVALUE
|
||||
NO MAXVALUE
|
||||
CACHE 1;
|
||||
|
||||
|
||||
ALTER SEQUENCE public.global_id_seq OWNER TO tsindt;
|
||||
|
||||
SET default_tablespace = '';
|
||||
|
||||
SET default_table_access_method = heap;
|
||||
|
||||
--
|
||||
-- Name: media; Type: TABLE; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
CREATE TABLE public.media (
|
||||
id bigint DEFAULT nextval('public.global_id_seq'::regclass) NOT NULL,
|
||||
label text,
|
||||
description text,
|
||||
media text,
|
||||
mediatype text,
|
||||
externalid bigint
|
||||
);
|
||||
|
||||
|
||||
ALTER TABLE public.media OWNER TO tsindt;
|
||||
|
||||
--
|
||||
-- Name: productgroups; Type: TABLE; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
CREATE TABLE public.productgroups (
|
||||
id bigint DEFAULT nextval('public.global_id_seq'::regclass) NOT NULL,
|
||||
label text,
|
||||
description text,
|
||||
parentgroupid bigint
|
||||
);
|
||||
|
||||
|
||||
ALTER TABLE public.productgroups OWNER TO tsindt;
|
||||
|
||||
--
|
||||
-- Name: products; Type: TABLE; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
CREATE TABLE public.products (
|
||||
id bigint DEFAULT nextval('public.global_id_seq'::regclass) NOT NULL,
|
||||
label text,
|
||||
externalid text,
|
||||
description text,
|
||||
productgroupid bigint
|
||||
);
|
||||
|
||||
|
||||
ALTER TABLE public.products OWNER TO tsindt;
|
||||
|
||||
--
|
||||
-- Name: properties; Type: TABLE; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
CREATE TABLE public.properties (
|
||||
id bigint DEFAULT nextval('public.global_id_seq'::regclass) CONSTRAINT propertys_id_not_null NOT NULL,
|
||||
label text,
|
||||
description text,
|
||||
propertytypeid bigint,
|
||||
productid bigint,
|
||||
productgroupid bigint
|
||||
);
|
||||
|
||||
|
||||
ALTER TABLE public.properties OWNER TO tsindt;
|
||||
|
||||
--
|
||||
-- Name: propertytypegroups; Type: TABLE; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
CREATE TABLE public.propertytypegroups (
|
||||
id bigint DEFAULT nextval('public.global_id_seq'::regclass) NOT NULL,
|
||||
label text,
|
||||
description text,
|
||||
parentgroupid bigint
|
||||
);
|
||||
|
||||
|
||||
ALTER TABLE public.propertytypegroups OWNER TO tsindt;
|
||||
|
||||
--
|
||||
-- Name: propertytypes; Type: TABLE; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
CREATE TABLE public.propertytypes (
|
||||
id bigint DEFAULT nextval('public.global_id_seq'::regclass) NOT NULL,
|
||||
label text,
|
||||
description text,
|
||||
propertytypegroupid bigint
|
||||
);
|
||||
|
||||
|
||||
ALTER TABLE public.propertytypes OWNER TO tsindt;
|
||||
|
||||
--
|
||||
-- Name: values; Type: TABLE; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
CREATE TABLE public."values" (
|
||||
id bigint DEFAULT nextval('public.global_id_seq'::regclass) NOT NULL,
|
||||
label text,
|
||||
description text,
|
||||
propertyid bigint
|
||||
);
|
||||
|
||||
|
||||
ALTER TABLE public."values" OWNER TO tsindt;
|
||||
|
||||
--
|
||||
-- Data for Name: media; Type: TABLE DATA; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
COPY public.media (id, label, description, media, mediatype, externalid) FROM stdin;
|
||||
\.
|
||||
|
||||
|
||||
--
|
||||
-- Data for Name: productgroups; Type: TABLE DATA; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
COPY public.productgroups (id, label, description, parentgroupid) FROM stdin;
|
||||
1000007 Simply CPQ Product catalog root 0
|
||||
1000008 Catalog Product catalog 1000007
|
||||
1000009 Components Components catalog 1000007
|
||||
1000028 Radio Radios for Home Stereo 1000008
|
||||
\.
|
||||
|
||||
|
||||
--
|
||||
-- Data for Name: products; Type: TABLE DATA; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
COPY public.products (id, label, externalid, description, productgroupid) FROM stdin;
|
||||
1000040 Transitorradio AEG 4711 modern radio 1000028
|
||||
1000049 Röhrenradio Siemens 0815 Old radio 1000028
|
||||
1000058 Hifiradio Kennwood 5969 Hifi stereo radio 1000028
|
||||
\.
|
||||
|
||||
|
||||
--
|
||||
-- Data for Name: properties; Type: TABLE DATA; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
COPY public.properties (id, label, description, propertytypeid, productid, productgroupid) FROM stdin;
|
||||
1000024 Colour System wide colors 1000003 0 1000008
|
||||
1000029 Colour System wide colors 1000003 0 1000028
|
||||
1000033 voltage Voltage for home usage 1000010 0 1000028
|
||||
1000041 Colour System wide colors 1000003 1000040 1000028
|
||||
1000045 voltage Voltage for home usage 1000010 1000040 1000028
|
||||
1000050 Colour System wide colors 1000003 1000049 1000028
|
||||
1000054 voltage Voltage for home usage 1000010 1000049 1000028
|
||||
1000059 Colour System wide colors 1000003 1000058 1000028
|
||||
1000063 voltage Voltage for home usage 1000010 1000058 1000028
|
||||
1000067 Colour System wide colors 1000003 1000058 1000028
|
||||
1000071 voltage Voltage for home usage 1000010 1000058 1000028
|
||||
1000075 Colour System wide colors 1000003 1000058 1000028
|
||||
1000079 voltage Voltage for home usage 1000010 1000058 1000028
|
||||
\.
|
||||
|
||||
|
||||
--
|
||||
-- Data for Name: propertytypegroups; Type: TABLE DATA; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
COPY public.propertytypegroups (id, label, description, parentgroupid) FROM stdin;
|
||||
1000000 Simply CPQ Root Gruppe für den Merkmalspool 0
|
||||
1000001 System Property Types Systemweite Property-Typen werden hier abgelegt 1000000
|
||||
1000002 Product Property Types Produkt-relevante Property-Typen werden hier abgelegt 1000000
|
||||
\.
|
||||
|
||||
|
||||
--
|
||||
-- Data for Name: propertytypes; Type: TABLE DATA; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
COPY public.propertytypes (id, label, description, propertytypegroupid) FROM stdin;
|
||||
1000003 Colour System wide colors 1000002
|
||||
1000010 voltage Voltage for home usage 1000002
|
||||
\.
|
||||
|
||||
|
||||
--
|
||||
-- Data for Name: values; Type: TABLE DATA; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
COPY public."values" (id, label, description, propertyid) FROM stdin;
|
||||
1000004 Red Color Red 1000003
|
||||
1000005 Green Color Green 1000003
|
||||
1000006 Blue Color Blue 1000003
|
||||
1000011 12 V 1000010
|
||||
1000012 24 V 1000010
|
||||
1000013 110 V 1000010
|
||||
1000014 240 V 1000010
|
||||
1000015 440 V 1000010
|
||||
1000025 Red Color Red 1000024
|
||||
1000026 Green Color Green 1000024
|
||||
1000027 Blue Color Blue 1000024
|
||||
1000030 Red Color Red 1000029
|
||||
1000031 Green Color Green 1000029
|
||||
1000032 Blue Color Blue 1000029
|
||||
1000034 12 V 1000033
|
||||
1000035 24 V 1000033
|
||||
1000037 240 V 1000033
|
||||
1000039 Yellow Color Yellow 1000003
|
||||
1000042 Red Color Red 1000041
|
||||
1000043 Green Color Green 1000041
|
||||
1000044 Blue Color Blue 1000041
|
||||
1000046 12 V 1000045
|
||||
1000047 24 V 1000045
|
||||
1000048 240 V 1000045
|
||||
1000051 Red Color Red 1000050
|
||||
1000052 Green Color Green 1000050
|
||||
1000053 Blue Color Blue 1000050
|
||||
1000055 12 V 1000054
|
||||
1000056 24 V 1000054
|
||||
1000057 240 V 1000054
|
||||
1000060 Red Color Red 1000059
|
||||
1000061 Green Color Green 1000059
|
||||
1000062 Blue Color Blue 1000059
|
||||
1000064 12 V 1000063
|
||||
1000065 24 V 1000063
|
||||
1000066 240 V 1000063
|
||||
1000068 Red Color Red 1000067
|
||||
1000069 Green Color Green 1000067
|
||||
1000070 Blue Color Blue 1000067
|
||||
1000072 12 V 1000071
|
||||
1000073 24 V 1000071
|
||||
1000074 240 V 1000071
|
||||
1000076 Red Color Red 1000075
|
||||
1000077 Green Color Green 1000075
|
||||
1000078 Blue Color Blue 1000075
|
||||
1000080 12 V 1000079
|
||||
1000081 24 V 1000079
|
||||
1000082 240 V 1000079
|
||||
\.
|
||||
|
||||
|
||||
--
|
||||
-- Name: global_id_seq; Type: SEQUENCE SET; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
SELECT pg_catalog.setval('public.global_id_seq', 1000082, true);
|
||||
|
||||
|
||||
--
|
||||
-- Name: media media_pkey; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.media
|
||||
ADD CONSTRAINT media_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: productgroups productgroups_pkey; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.productgroups
|
||||
ADD CONSTRAINT productgroups_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: products products_pkey; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.products
|
||||
ADD CONSTRAINT products_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: properties propertys_pkey; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.properties
|
||||
ADD CONSTRAINT propertys_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: propertytypegroups propertytypegroups_pkey; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.propertytypegroups
|
||||
ADD CONSTRAINT propertytypegroups_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: propertytypes propertytypes_pkey; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.propertytypes
|
||||
ADD CONSTRAINT propertytypes_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: values values_pkey; Type: CONSTRAINT; Schema: public; Owner: tsindt
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public."values"
|
||||
ADD CONSTRAINT values_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- PostgreSQL database dump complete
|
||||
--
|
||||
|
||||
\unrestrict qPYCKqc0gA0nEvolSKRPL74eJMR5SZBNcEw7S0IbNZuXEYe9ClpV3DwQtHZJYdY
|
||||
|
||||
@@ -10,7 +10,7 @@ CREATE SEQUENCE global_id_seq
|
||||
-- Value Table
|
||||
CREATE TABLE IF NOT EXISTS values (
|
||||
id BIGINT PRIMARY KEY DEFAULT nextval('global_id_seq'),
|
||||
Label TEXT,
|
||||
label TEXT,
|
||||
description TEXT,
|
||||
propertyId BIGINT
|
||||
);
|
||||
@@ -18,7 +18,7 @@ CREATE TABLE IF NOT EXISTS values (
|
||||
-- Property Table
|
||||
CREATE TABLE IF NOT EXISTS properties (
|
||||
id BIGINT PRIMARY KEY DEFAULT nextval('global_id_seq'),
|
||||
Label TEXT,
|
||||
label TEXT,
|
||||
description TEXT,
|
||||
propertyTypeId BIGINT,
|
||||
productId BIGINT,
|
||||
@@ -28,7 +28,7 @@ CREATE TABLE IF NOT EXISTS properties (
|
||||
-- PropertyType Table
|
||||
CREATE TABLE IF NOT EXISTS propertyTypes(
|
||||
id BIGINT PRIMARY KEY DEFAULT nextval('global_id_seq'),
|
||||
Label TEXT,
|
||||
label TEXT,
|
||||
description TEXT,
|
||||
propertyGroupId BIGINT
|
||||
);
|
||||
@@ -36,7 +36,7 @@ CREATE TABLE IF NOT EXISTS propertyTypes(
|
||||
-- PropertyTypeGroupTable
|
||||
CREATE TABLE IF NOT EXISTS propertyTypeGroups (
|
||||
id BIGINT PRIMARY KEY DEFAULT nextval('global_id_seq'),
|
||||
Label TEXT,
|
||||
label TEXT,
|
||||
description TEXT,
|
||||
parentGroupId BIGINT
|
||||
);
|
||||
@@ -45,7 +45,7 @@ CREATE TABLE IF NOT EXISTS propertyTypeGroups (
|
||||
-- Product Table
|
||||
CREATE TABLE IF NOT EXISTS products (
|
||||
id BIGINT PRIMARY KEY DEFAULT nextval('global_id_seq'),
|
||||
Label TEXT,
|
||||
label TEXT,
|
||||
externalId TEXT,
|
||||
description TEXT,
|
||||
productGroupId BIGINT
|
||||
@@ -54,7 +54,7 @@ CREATE TABLE IF NOT EXISTS products (
|
||||
-- ProductGroup Table
|
||||
CREATE TABLE IF NOT EXISTS productGroups (
|
||||
id BIGINT PRIMARY KEY DEFAULT nextval('global_id_seq'),
|
||||
Label TEXT,
|
||||
label TEXT,
|
||||
description TEXT,
|
||||
parentGroupId BIGINT
|
||||
);
|
||||
@@ -62,7 +62,7 @@ CREATE TABLE IF NOT EXISTS productGroups (
|
||||
-- Media Table
|
||||
CREATE TABLE IF NOT EXISTS media (
|
||||
id BIGINT PRIMARY KEY DEFAULT nextval('global_id_seq'),
|
||||
Label TEXT,
|
||||
label TEXT,
|
||||
description TEXT,
|
||||
media TEXT,
|
||||
mediaType TEXT,
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"simplycpq/models"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
type ImportController struct {
|
||||
importService *ImportService
|
||||
}
|
||||
|
||||
func NewImportController(i *ImportService) *ImportController {
|
||||
return &ImportController{
|
||||
importService: i,
|
||||
}
|
||||
}
|
||||
|
||||
func (ic *ImportController) ImportPropertyTypeGroups(c *gin.Context) {
|
||||
// Implement the logic for importing PropertyTypeGroups here
|
||||
var importData []models.ImportPropertyTypeGroup
|
||||
if err := c.ShouldBindJSON(&importData); err != nil {
|
||||
c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
|
||||
return
|
||||
}
|
||||
serviceErr := ic.importService.ImportPropertyTypeGroups(importData)
|
||||
if serviceErr != nil {
|
||||
c.JSON(http.StatusInternalServerError, gin.H{"error": serviceErr.Error()})
|
||||
return
|
||||
}
|
||||
c.JSON(http.StatusOK, gin.H{"message": "Import PropertyTypeGroups endpoint"})
|
||||
}
|
||||
|
||||
func (ic *ImportController) ImportProductGroups(c *gin.Context) {
|
||||
// Implement the logic for importing ProductGroups here
|
||||
var importData []models.ImportProductGroup
|
||||
if err := c.ShouldBindJSON(&importData); err != nil {
|
||||
c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
|
||||
return
|
||||
}
|
||||
serviceErr := ic.importService.ImportProductGroups(importData)
|
||||
if serviceErr != nil {
|
||||
c.JSON(http.StatusInternalServerError, gin.H{"error": serviceErr.Error()})
|
||||
return
|
||||
}
|
||||
c.JSON(http.StatusOK, gin.H{"message": "Import ProductGroups endpoint"})
|
||||
}
|
||||
|
||||
func (ic *ImportController) ImportProducts(c *gin.Context) {
|
||||
// Implement the logic for importing Products here
|
||||
var importData []models.ImportProduct
|
||||
if err := c.ShouldBindJSON(&importData); err != nil {
|
||||
c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
|
||||
return
|
||||
}
|
||||
serviceErr := ic.importService.ImportProducts(importData)
|
||||
if serviceErr != nil {
|
||||
c.JSON(http.StatusInternalServerError, gin.H{"error": serviceErr.Error()})
|
||||
return
|
||||
}
|
||||
c.JSON(http.StatusOK, gin.H{"message": "Import Products endpoint"})
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user