diff --git a/buildtime/client/material-editor/node_modules/.vite/deps/Alert-CZ6-UJcL.js b/buildtime/client/material-editor/node_modules/.vite/deps/Alert-CZ6-UJcL.js new file mode 100644 index 000000000..9def11f5c --- /dev/null +++ b/buildtime/client/material-editor/node_modules/.vite/deps/Alert-CZ6-UJcL.js @@ -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 ``. + * 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 }; diff --git a/buildtime/client/material-editor/node_modules/.vite/deps/Alert-CZ6-UJcL.js.map b/buildtime/client/material-editor/node_modules/.vite/deps/Alert-CZ6-UJcL.js.map new file mode 100644 index 000000000..2cd3db3c3 --- /dev/null +++ b/buildtime/client/material-editor/node_modules/.vite/deps/Alert-CZ6-UJcL.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Alert-CZ6-UJcL.js","names":["useUtilityClasses","useForkRef","PropTypes","elementTypeAcceptingRef","capitalize","SuccessOutlinedIcon","ReportProblemOutlinedIcon","ErrorOutlineIcon","InfoOutlinedIcon","CloseIcon","PropTypes"],"sources":["../../@mui/material/Collapse/collapseClasses.mjs","../../@mui/material/Collapse/Collapse.mjs","../../@mui/material/Alert/alertClasses.mjs","../../@mui/material/internal/svg-icons/SuccessOutlined.mjs","../../@mui/material/internal/svg-icons/ReportProblemOutlined.mjs","../../@mui/material/internal/svg-icons/ErrorOutline.mjs","../../@mui/material/internal/svg-icons/InfoOutlined.mjs","../../@mui/material/Alert/Alert.mjs"],"sourcesContent":["import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getCollapseUtilityClass(slot) {\n return generateUtilityClass('MuiCollapse', slot);\n}\nconst collapseClasses = generateUtilityClasses('MuiCollapse', ['root', 'horizontal', 'vertical', 'entered', 'hidden', 'wrapper', 'wrapperInner']);\nexport default collapseClasses;","'use client';\n\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';\nimport composeClasses from '@mui/utils/composeClasses';\nimport Transition from \"../internal/Transition.mjs\";\nimport useReducedMotion from \"../transitions/useReducedMotion.mjs\";\nimport { styled, useTheme } from \"../zero-styled/index.mjs\";\nimport memoTheme from \"../utils/memoTheme.mjs\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.mjs\";\nimport { duration } from \"../styles/createTransitions.mjs\";\nimport { normalizedTransitionCallback, getTransitionProps } from \"../transitions/utils.mjs\";\nimport { useForkRef } from \"../utils/index.mjs\";\nimport useSlot from \"../utils/useSlot.mjs\";\nimport { getCollapseUtilityClass } from \"./collapseClasses.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst EMPTY_OBJECT = {};\nconst useUtilityClasses = ownerState => {\n const {\n orientation,\n classes\n } = ownerState;\n const slots = {\n root: ['root', orientation],\n entered: ['entered'],\n hidden: ['hidden'],\n wrapper: ['wrapper', orientation],\n wrapperInner: ['wrapperInner', orientation]\n };\n return composeClasses(slots, getCollapseUtilityClass, classes);\n};\nconst CollapseRoot = styled('div', {\n name: 'MuiCollapse',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[ownerState.orientation], ownerState.state === 'entered' && styles.entered, ownerState.state === 'exited' && !ownerState.in && ownerState.collapsedSize === '0px' && styles.hidden];\n }\n})(memoTheme(({\n theme\n}) => ({\n height: 0,\n overflow: 'hidden',\n transition: theme.transitions.create('height'),\n variants: [{\n props: {\n orientation: 'horizontal'\n },\n style: {\n height: 'auto',\n width: 0,\n transition: theme.transitions.create('width')\n }\n }, {\n props: {\n state: 'entered'\n },\n style: {\n height: 'auto',\n overflow: 'visible'\n }\n }, {\n props: {\n state: 'entered',\n orientation: 'horizontal'\n },\n style: {\n width: 'auto'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.state === 'exited' && !ownerState.in && ownerState.collapsedSize === '0px',\n style: {\n visibility: 'hidden'\n }\n }]\n})));\nconst CollapseWrapper = styled('div', {\n name: 'MuiCollapse',\n slot: 'Wrapper'\n})({\n // Prevent children with negative margins from making the measured size too small.\n display: 'flex',\n width: '100%',\n variants: [{\n props: {\n orientation: 'horizontal'\n },\n style: {\n width: 'auto',\n height: '100%'\n }\n }]\n});\nconst CollapseWrapperInner = styled('div', {\n name: 'MuiCollapse',\n slot: 'WrapperInner'\n})({\n width: '100%',\n variants: [{\n props: {\n orientation: 'horizontal'\n },\n style: {\n width: 'auto',\n height: '100%'\n }\n }]\n});\n\n/**\n * The Collapse transition is used by the\n * [Vertical Stepper](/material-ui/react-stepper/#vertical-stepper) StepContent component.\n */\nconst Collapse = /*#__PURE__*/React.forwardRef(function Collapse(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiCollapse'\n });\n const {\n addEndListener,\n children,\n className,\n collapsedSize: collapsedSizeProp = '0px',\n component,\n disablePrefersReducedMotion = false,\n easing,\n in: inProp,\n onEnter,\n onEntered,\n onEntering,\n onExit,\n onExited,\n onExiting,\n orientation = 'vertical',\n slots = EMPTY_OBJECT,\n slotProps = EMPTY_OBJECT,\n style,\n timeout = duration.standard,\n // eslint-disable-next-line react/prop-types\n TransitionComponent = Transition,\n ...other\n } = props;\n const ownerState = {\n ...props,\n orientation,\n collapsedSize: collapsedSizeProp\n };\n const classes = useUtilityClasses(ownerState);\n const theme = useTheme();\n const wrapperRef = React.useRef(null);\n const autoTransitionDuration = React.useRef(null);\n const collapsedSize = typeof collapsedSizeProp === 'number' ? `${collapsedSizeProp}px` : collapsedSizeProp;\n const isHorizontal = orientation === 'horizontal';\n const size = isHorizontal ? 'width' : 'height';\n const reducedMotion = useReducedMotion(theme.motion.reducedMotion, disablePrefersReducedMotion);\n const nodeRef = React.useRef(null);\n const handleRef = useForkRef(ref, nodeRef);\n const getWrapperSize = () => wrapperRef.current ? wrapperRef.current[isHorizontal ? 'clientWidth' : 'clientHeight'] : 0;\n const handleEnter = normalizedTransitionCallback(nodeRef, (node, isAppearing) => {\n if (wrapperRef.current && isHorizontal) {\n // Temporarily remove horizontal content from normal layout so we can\n // measure its natural width.\n wrapperRef.current.style.position = 'absolute';\n }\n node.style[size] = collapsedSize;\n if (onEnter) {\n onEnter(node, isAppearing);\n }\n });\n const handleEntering = normalizedTransitionCallback(nodeRef, (node, isAppearing) => {\n const wrapperSize = getWrapperSize();\n if (wrapperRef.current && isHorizontal) {\n // Restore normal layout after measuring the horizontal content.\n wrapperRef.current.style.position = '';\n }\n const {\n duration: transitionDuration,\n easing: transitionTimingFunction\n } = getTransitionProps({\n style,\n timeout,\n easing\n }, {\n mode: 'enter'\n });\n if (timeout === 'auto' && !reducedMotion.shouldReduceMotion) {\n const duration2 = theme.transitions.getAutoHeightDuration(wrapperSize);\n autoTransitionDuration.current = duration2;\n } else {\n autoTransitionDuration.current = null;\n }\n const transitionTiming = reducedMotion.getTransitionTiming({\n duration: autoTransitionDuration.current ?? transitionDuration,\n delay: undefined\n });\n node.style.transitionDuration = typeof transitionTiming.duration === 'string' ? transitionTiming.duration : `${transitionTiming.duration}ms`;\n node.style[size] = `${wrapperSize}px`;\n node.style.transitionTimingFunction = transitionTimingFunction;\n if (onEntering) {\n onEntering(node, isAppearing);\n }\n });\n const handleEntered = normalizedTransitionCallback(nodeRef, (node, isAppearing) => {\n node.style[size] = 'auto';\n if (onEntered) {\n onEntered(node, isAppearing);\n }\n });\n const handleExit = normalizedTransitionCallback(nodeRef, node => {\n node.style[size] = `${getWrapperSize()}px`;\n if (onExit) {\n onExit(node);\n }\n });\n const handleExited = normalizedTransitionCallback(nodeRef, onExited);\n const handleExiting = normalizedTransitionCallback(nodeRef, node => {\n const wrapperSize = getWrapperSize();\n const {\n duration: transitionDuration,\n easing: transitionTimingFunction\n } = getTransitionProps({\n style,\n timeout,\n easing\n }, {\n mode: 'exit'\n });\n if (timeout === 'auto' && !reducedMotion.shouldReduceMotion) {\n // getAutoHeightDuration also works for width; it calculates duration from size.\n const duration2 = theme.transitions.getAutoHeightDuration(wrapperSize);\n autoTransitionDuration.current = duration2;\n } else {\n autoTransitionDuration.current = null;\n }\n const transitionTiming = reducedMotion.getTransitionTiming({\n duration: autoTransitionDuration.current ?? transitionDuration,\n delay: undefined\n });\n node.style.transitionDuration = typeof transitionTiming.duration === 'string' ? transitionTiming.duration : `${transitionTiming.duration}ms`;\n node.style[size] = collapsedSize;\n node.style.transitionTimingFunction = transitionTimingFunction;\n if (onExiting) {\n onExiting(node);\n }\n });\n const handleAddEndListener = addEndListener ? next => {\n addEndListener(nodeRef.current, next);\n } : undefined;\n const externalForwardedProps = {\n slots,\n slotProps,\n component\n };\n const [RootSlot, rootSlotProps] = useSlot('root', {\n ref: handleRef,\n className: clsx(classes.root, className),\n elementType: CollapseRoot,\n externalForwardedProps,\n ownerState,\n additionalProps: {\n style: {\n [isHorizontal ? 'minWidth' : 'minHeight']: collapsedSize,\n ...style\n }\n }\n });\n const [WrapperSlot, wrapperSlotProps] = useSlot('wrapper', {\n ref: wrapperRef,\n className: classes.wrapper,\n elementType: CollapseWrapper,\n externalForwardedProps,\n ownerState\n });\n const [WrapperInnerSlot, wrapperInnerSlotProps] = useSlot('wrapperInner', {\n className: classes.wrapperInner,\n elementType: CollapseWrapperInner,\n externalForwardedProps,\n ownerState\n });\n return /*#__PURE__*/_jsx(TransitionComponent, {\n in: inProp,\n onEnter: handleEnter,\n onEntered: handleEntered,\n onEntering: handleEntering,\n onExit: handleExit,\n onExited: handleExited,\n onExiting: handleExiting,\n addEndListener: handleAddEndListener,\n getAutoTimeout: timeout === 'auto' ? () => autoTransitionDuration.current : undefined,\n reduceMotion: reducedMotion.shouldReduceMotion,\n nodeRef: nodeRef,\n timeout: timeout === 'auto' ? null : timeout,\n ...other,\n children: (state, {\n ownerState: incomingOwnerState,\n ...restChildProps\n }) => {\n const stateOwnerState = {\n ...ownerState,\n state\n };\n return /*#__PURE__*/_jsx(RootSlot, {\n ...rootSlotProps,\n className: clsx(rootSlotProps.className, {\n 'entered': classes.entered,\n 'exited': !inProp && collapsedSize === '0px' && classes.hidden\n }[state]),\n ownerState: stateOwnerState,\n ...restChildProps,\n children: /*#__PURE__*/_jsx(WrapperSlot, {\n ...wrapperSlotProps,\n ownerState: stateOwnerState,\n children: /*#__PURE__*/_jsx(WrapperInnerSlot, {\n ...wrapperInnerSlotProps,\n ownerState: stateOwnerState,\n children: children\n })\n })\n });\n }\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Collapse.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 * Add a custom transition end trigger.\n * Use it when you need custom logic to decide when the transition has ended.\n * Note: Timeouts are still used as a fallback if provided.\n *\n * @param {HTMLElement} node The transitioning DOM node.\n * @param {Function} done Call this when the transition has finished.\n */\n addEndListener: PropTypes.func,\n /**\n * The content node to be collapsed.\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 * The width (horizontal) or height (vertical) of the container when collapsed.\n * @default '0px'\n */\n collapsedSize: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: elementTypeAcceptingRef,\n /**\n * If `true`, the transition ignores `theme.motion.reducedMotion` and keeps its normal timing.\n * @default false\n */\n disablePrefersReducedMotion: PropTypes.bool,\n /**\n * The transition timing function.\n * You may specify a single easing or a object containing enter and exit values.\n */\n easing: PropTypes.oneOfType([PropTypes.shape({\n enter: PropTypes.string,\n exit: PropTypes.string\n }), PropTypes.string]),\n /**\n * If `true`, the component will transition in.\n */\n in: PropTypes.bool,\n /**\n * @ignore\n */\n onEnter: PropTypes.func,\n /**\n * @ignore\n */\n onEntered: PropTypes.func,\n /**\n * @ignore\n */\n onEntering: PropTypes.func,\n /**\n * @ignore\n */\n onExit: PropTypes.func,\n /**\n * @ignore\n */\n onExited: PropTypes.func,\n /**\n * @ignore\n */\n onExiting: PropTypes.func,\n /**\n * The transition orientation.\n * @default 'vertical'\n */\n orientation: PropTypes.oneOf(['horizontal', 'vertical']),\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n wrapper: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n wrapperInner: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n root: PropTypes.elementType,\n wrapper: PropTypes.elementType,\n wrapperInner: PropTypes.elementType\n }),\n /**\n * @ignore\n */\n style: PropTypes.object,\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 /**\n * The duration for the transition, in milliseconds.\n * You may specify a single timeout for all transitions, or individually with an object.\n *\n * Set to 'auto' to automatically calculate transition time based on height.\n * @default duration.standard\n */\n timeout: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })])\n} : void 0;\nif (Collapse) {\n Collapse.muiSupportAuto = true;\n}\nexport default Collapse;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getAlertUtilityClass(slot) {\n return generateUtilityClass('MuiAlert', slot);\n}\nconst alertClasses = generateUtilityClasses('MuiAlert', ['root', 'action', 'icon', 'message', 'filled', 'colorSuccess', 'colorInfo', 'colorWarning', 'colorError', 'outlined', 'standard']);\nexport default alertClasses;","'use client';\n\nimport createSvgIcon from \"../../utils/createSvgIcon.mjs\";\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n 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\"\n}), 'SuccessOutlined');","'use client';\n\nimport createSvgIcon from \"../../utils/createSvgIcon.mjs\";\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z\"\n}), 'ReportProblemOutlined');","'use client';\n\nimport createSvgIcon from \"../../utils/createSvgIcon.mjs\";\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n 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\"\n}), 'ErrorOutline');","'use client';\n\nimport createSvgIcon from \"../../utils/createSvgIcon.mjs\";\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n 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\"\n}), 'InfoOutlined');","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.mjs\";\nimport memoTheme from \"../utils/memoTheme.mjs\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.mjs\";\nimport useSlot from \"../utils/useSlot.mjs\";\nimport capitalize from \"../utils/capitalize.mjs\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.mjs\";\nimport Paper from \"../Paper/index.mjs\";\nimport alertClasses, { getAlertUtilityClass } from \"./alertClasses.mjs\";\nimport IconButton from \"../IconButton/index.mjs\";\nimport SuccessOutlinedIcon from \"../internal/svg-icons/SuccessOutlined.mjs\";\nimport ReportProblemOutlinedIcon from \"../internal/svg-icons/ReportProblemOutlined.mjs\";\nimport ErrorOutlineIcon from \"../internal/svg-icons/ErrorOutline.mjs\";\nimport InfoOutlinedIcon from \"../internal/svg-icons/InfoOutlined.mjs\";\nimport CloseIcon from \"../internal/svg-icons/Close.mjs\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n variant,\n color,\n severity,\n classes\n } = ownerState;\n const slots = {\n root: ['root', `color${capitalize(color || severity)}`, `${variant}`],\n icon: ['icon'],\n message: ['message'],\n action: ['action']\n };\n return composeClasses(slots, getAlertUtilityClass, classes);\n};\nconst AlertRoot = styled(Paper, {\n name: 'MuiAlert',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[ownerState.variant]];\n }\n})(memoTheme(({\n theme\n}) => {\n const getColor = theme.palette.mode === 'light' ? theme.darken : theme.lighten;\n const getBackgroundColor = theme.palette.mode === 'light' ? theme.lighten : theme.darken;\n return {\n ...theme.typography.body2,\n backgroundColor: 'transparent',\n display: 'flex',\n padding: '6px 16px',\n variants: [...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(['light'])).map(([color]) => ({\n props: {\n colorSeverity: color,\n variant: 'standard'\n },\n style: {\n color: theme.vars ? theme.vars.palette.Alert[`${color}Color`] : getColor(theme.palette[color].light, 0.6),\n backgroundColor: theme.vars ? theme.vars.palette.Alert[`${color}StandardBg`] : getBackgroundColor(theme.palette[color].light, 0.9),\n [`& .${alertClasses.icon}`]: theme.vars ? {\n color: theme.vars.palette.Alert[`${color}IconColor`]\n } : {\n color: theme.palette[color].main\n }\n }\n })), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(['light'])).map(([color]) => ({\n props: {\n colorSeverity: color,\n variant: 'outlined'\n },\n style: {\n color: theme.vars ? theme.vars.palette.Alert[`${color}Color`] : getColor(theme.palette[color].light, 0.6),\n border: `1px solid ${(theme.vars || theme).palette[color].light}`,\n [`& .${alertClasses.icon}`]: theme.vars ? {\n color: theme.vars.palette.Alert[`${color}IconColor`]\n } : {\n color: theme.palette[color].main\n }\n }\n })), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(['dark'])).map(([color]) => ({\n props: {\n colorSeverity: color,\n variant: 'filled'\n },\n style: {\n fontWeight: theme.typography.fontWeightMedium,\n ...(theme.vars ? {\n color: theme.vars.palette.Alert[`${color}FilledColor`],\n backgroundColor: theme.vars.palette.Alert[`${color}FilledBg`]\n } : {\n backgroundColor: theme.palette.mode === 'dark' ? theme.palette[color].dark : theme.palette[color].main,\n color: theme.palette.getContrastText(theme.palette[color].main)\n })\n }\n }))]\n };\n}));\nconst AlertIcon = styled('div', {\n name: 'MuiAlert',\n slot: 'Icon'\n})({\n marginRight: 12,\n padding: '7px 0',\n display: 'flex',\n fontSize: 22,\n opacity: 0.9\n});\nconst AlertMessage = styled('div', {\n name: 'MuiAlert',\n slot: 'Message'\n})({\n padding: '8px 0',\n minWidth: 0,\n overflow: 'auto'\n});\nconst AlertAction = styled('div', {\n name: 'MuiAlert',\n slot: 'Action'\n})({\n display: 'flex',\n alignItems: 'flex-start',\n padding: '4px 0 0 16px',\n marginLeft: 'auto',\n marginRight: -8\n});\nconst defaultIconMapping = {\n success: /*#__PURE__*/_jsx(SuccessOutlinedIcon, {\n fontSize: \"inherit\"\n }),\n warning: /*#__PURE__*/_jsx(ReportProblemOutlinedIcon, {\n fontSize: \"inherit\"\n }),\n error: /*#__PURE__*/_jsx(ErrorOutlineIcon, {\n fontSize: \"inherit\"\n }),\n info: /*#__PURE__*/_jsx(InfoOutlinedIcon, {\n fontSize: \"inherit\"\n })\n};\nconst Alert = /*#__PURE__*/React.forwardRef(function Alert(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiAlert'\n });\n const {\n action,\n children,\n className,\n closeText = 'Close',\n color,\n icon,\n iconMapping = defaultIconMapping,\n onClose,\n role = 'alert',\n severity = 'success',\n slotProps = {},\n slots = {},\n variant = 'standard',\n ...other\n } = props;\n const ownerState = {\n ...props,\n color,\n severity,\n variant,\n colorSeverity: color || severity\n };\n const classes = useUtilityClasses(ownerState);\n const externalForwardedProps = {\n slots,\n slotProps\n };\n const [RootSlot, rootSlotProps] = useSlot('root', {\n ref,\n shouldForwardComponentProp: true,\n className: clsx(classes.root, className),\n elementType: AlertRoot,\n externalForwardedProps: {\n ...externalForwardedProps,\n ...other\n },\n ownerState,\n additionalProps: {\n role,\n elevation: 0\n }\n });\n const [IconSlot, iconSlotProps] = useSlot('icon', {\n className: classes.icon,\n elementType: AlertIcon,\n externalForwardedProps,\n ownerState\n });\n const [MessageSlot, messageSlotProps] = useSlot('message', {\n className: classes.message,\n elementType: AlertMessage,\n externalForwardedProps,\n ownerState\n });\n const [ActionSlot, actionSlotProps] = useSlot('action', {\n className: classes.action,\n elementType: AlertAction,\n externalForwardedProps,\n ownerState\n });\n const [CloseButtonSlot, closeButtonProps] = useSlot('closeButton', {\n elementType: IconButton,\n externalForwardedProps,\n ownerState\n });\n const [CloseIconSlot, closeIconProps] = useSlot('closeIcon', {\n elementType: CloseIcon,\n externalForwardedProps,\n ownerState\n });\n return /*#__PURE__*/_jsxs(RootSlot, {\n ...rootSlotProps,\n children: [icon !== false ? /*#__PURE__*/_jsx(IconSlot, {\n ...iconSlotProps,\n children: icon || iconMapping[severity] || defaultIconMapping[severity]\n }) : null, /*#__PURE__*/_jsx(MessageSlot, {\n ...messageSlotProps,\n children: children\n }), action != null ? /*#__PURE__*/_jsx(ActionSlot, {\n ...actionSlotProps,\n children: action\n }) : null, action == null && onClose ? /*#__PURE__*/_jsx(ActionSlot, {\n ...actionSlotProps,\n children: /*#__PURE__*/_jsx(CloseButtonSlot, {\n size: \"small\",\n \"aria-label\": closeText,\n title: closeText,\n color: \"inherit\",\n onClick: onClose,\n ...closeButtonProps,\n children: /*#__PURE__*/_jsx(CloseIconSlot, {\n fontSize: \"small\",\n ...closeIconProps\n })\n })\n }) : null]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Alert.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 action to display. It renders after the message, at the end of the alert.\n */\n action: PropTypes.node,\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 * Override the default label for the *close popup* icon button.\n *\n * For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).\n * @default 'Close'\n */\n closeText: PropTypes.string,\n /**\n * The color of the component. Unless provided, the value is taken from the `severity` prop.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * Override the icon displayed before the children.\n * Unless provided, the icon is mapped to the value of the `severity` prop.\n * Set to `false` to remove the `icon`.\n */\n icon: PropTypes.node,\n /**\n * The component maps the `severity` prop to a range of different icons,\n * for instance success to ``.\n * If you wish to change this mapping, you can provide your own.\n * Alternatively, you can use the `icon` prop to override the icon displayed.\n */\n iconMapping: PropTypes.shape({\n error: PropTypes.node,\n info: PropTypes.node,\n success: PropTypes.node,\n warning: PropTypes.node\n }),\n /**\n * Callback fired when the component requests to be closed.\n * When provided and no `action` prop is set, a close icon button is displayed that triggers the callback when clicked.\n * @param {React.SyntheticEvent} event The event source of the callback.\n */\n onClose: PropTypes.func,\n /**\n * The ARIA role attribute of the element.\n * @default 'alert'\n */\n role: PropTypes.string,\n /**\n * The severity of the alert. This defines the color and icon used.\n * @default 'success'\n */\n severity: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n action: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n closeButton: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n closeIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n icon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n message: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n action: PropTypes.elementType,\n closeButton: PropTypes.elementType,\n closeIcon: PropTypes.elementType,\n icon: PropTypes.elementType,\n message: PropTypes.elementType,\n root: PropTypes.elementType\n }),\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 /**\n * The variant to use.\n * @default 'standard'\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['filled', 'outlined', 'standard']), PropTypes.string])\n} : void 0;\nexport default Alert;"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAEA,SAAgB,wBAAwB,MAAM;CAC5C,OAAO,qBAAqB,eAAe,IAAI;AACjD;AACA,IAAM,kBAAkB,uBAAuB,eAAe;CAAC;CAAQ;CAAc;CAAY;CAAW;CAAU;CAAW;AAAc,CAAC;;;;ACahJ,IAAM,eAAe,CAAC;AACtB,IAAMA,uBAAoB,eAAc;CACtC,MAAM,EACJ,aACA,YACE;CAQJ,OAAO,eAAe;EANpB,MAAM,CAAC,QAAQ,WAAW;EAC1B,SAAS,CAAC,SAAS;EACnB,QAAQ,CAAC,QAAQ;EACjB,SAAS,CAAC,WAAW,WAAW;EAChC,cAAc,CAAC,gBAAgB,WAAW;CAElB,GAAG,yBAAyB,OAAO;AAC/D;AACA,IAAM,eAAe,OAAO,OAAO;CACjC,MAAM;CACN,MAAM;CACN,oBAAoB,OAAO,WAAW;EACpC,MAAM,EACJ,eACE;EACJ,OAAO;GAAC,OAAO;GAAM,OAAO,WAAW;GAAc,WAAW,UAAU,aAAa,OAAO;GAAS,WAAW,UAAU,YAAY,CAAC,WAAW,MAAM,WAAW,kBAAkB,SAAS,OAAO;EAAM;CAC/M;AACF,CAAC,CAAC,CAAC,WAAW,EACZ,aACK;CACL,QAA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;;;;CAKtJ,SAASA,kBAAAA,QAAgD,UAAU,CAACA,kBAAAA,QAAU,MAAM;EAAC;EAAU;EAAY;CAAU,CAAC,GAAGA,kBAAAA,QAAU,MAAM,CAAC;AAC5I"} \ No newline at end of file diff --git a/buildtime/client/material-editor/node_modules/.vite/deps/AppBar-Bh40cLP3.js b/buildtime/client/material-editor/node_modules/.vite/deps/AppBar-Bh40cLP3.js new file mode 100644 index 000000000..9ba73b6e8 --- /dev/null +++ b/buildtime/client/material-editor/node_modules/.vite/deps/AppBar-Bh40cLP3.js @@ -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 }; diff --git a/buildtime/client/material-editor/node_modules/.vite/deps/AppBar-Bh40cLP3.js.map b/buildtime/client/material-editor/node_modules/.vite/deps/AppBar-Bh40cLP3.js.map new file mode 100644 index 000000000..f04246a05 --- /dev/null +++ b/buildtime/client/material-editor/node_modules/.vite/deps/AppBar-Bh40cLP3.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AppBar-Bh40cLP3.js","names":["capitalize","PropTypes"],"sources":["../../@mui/material/AppBar/appBarClasses.mjs","../../@mui/material/AppBar/AppBar.mjs"],"sourcesContent":["import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getAppBarUtilityClass(slot) {\n return generateUtilityClass('MuiAppBar', slot);\n}\nconst appBarClasses = generateUtilityClasses('MuiAppBar', ['root', 'positionFixed', 'positionAbsolute', 'positionSticky', 'positionStatic', 'positionRelative', 'colorDefault', 'colorPrimary', 'colorSecondary', 'colorInherit', 'colorTransparent', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning']);\nexport default appBarClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.mjs\";\nimport memoTheme from \"../utils/memoTheme.mjs\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.mjs\";\nimport capitalize from \"../utils/capitalize.mjs\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.mjs\";\nimport Paper from \"../Paper/index.mjs\";\nimport { getAppBarUtilityClass } from \"./appBarClasses.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n color,\n position,\n classes\n } = ownerState;\n const slots = {\n root: ['root', `color${capitalize(color)}`, `position${capitalize(position)}`]\n };\n return composeClasses(slots, getAppBarUtilityClass, classes);\n};\n\n// var2 is the fallback.\n// Ex. var1: 'var(--a)', var2: 'var(--b)'; return: 'var(--a, var(--b))'\nconst joinVars = (var1, var2) => var1 ? `${var1.replace(')', '')}, ${var2})` : var2;\nconst AppBarRoot = styled(Paper, {\n name: 'MuiAppBar',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[`position${capitalize(ownerState.position)}`], styles[`color${capitalize(ownerState.color)}`]];\n }\n})(memoTheme(({\n theme\n}) => ({\n display: 'flex',\n flexDirection: 'column',\n width: '100%',\n boxSizing: 'border-box',\n // Prevent padding issue with the Modal and fixed positioned AppBar.\n flexShrink: 0,\n variants: [{\n props: {\n position: 'fixed'\n },\n style: {\n position: 'fixed',\n zIndex: (theme.vars || theme).zIndex.appBar,\n top: 0,\n left: 'auto',\n right: 0,\n '@media print': {\n // Prevent the app bar to be visible on each printed page.\n position: 'absolute'\n }\n }\n }, {\n props: {\n position: 'absolute'\n },\n style: {\n position: 'absolute',\n zIndex: (theme.vars || theme).zIndex.appBar,\n top: 0,\n left: 'auto',\n right: 0\n }\n }, {\n props: {\n position: 'sticky'\n },\n style: {\n position: 'sticky',\n zIndex: (theme.vars || theme).zIndex.appBar,\n top: 0,\n left: 'auto',\n right: 0\n }\n }, {\n props: {\n position: 'static'\n },\n style: {\n position: 'static'\n }\n }, {\n props: {\n position: 'relative'\n },\n style: {\n position: 'relative'\n }\n }, {\n props: {\n color: 'inherit'\n },\n style: {\n '--AppBar-color': 'inherit',\n color: 'var(--AppBar-color)'\n }\n }, {\n props: {\n color: 'default'\n },\n style: {\n '--AppBar-background': theme.vars ? theme.vars.palette.AppBar.defaultBg : theme.palette.grey[100],\n '--AppBar-color': theme.vars ? theme.vars.palette.text.primary : theme.palette.getContrastText(theme.palette.grey[100]),\n ...theme.applyStyles('dark', {\n '--AppBar-background': theme.vars ? theme.vars.palette.AppBar.defaultBg : theme.palette.grey[900],\n '--AppBar-color': theme.vars ? theme.vars.palette.text.primary : theme.palette.getContrastText(theme.palette.grey[900])\n })\n }\n }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(['contrastText'])).map(([color]) => ({\n props: {\n color\n },\n style: {\n '--AppBar-background': (theme.vars ?? theme).palette[color].main,\n '--AppBar-color': (theme.vars ?? theme).palette[color].contrastText\n }\n })), {\n props: props => props.enableColorOnDark === true && !['inherit', 'transparent'].includes(props.color),\n style: {\n backgroundColor: 'var(--AppBar-background)',\n color: 'var(--AppBar-color)'\n }\n }, {\n props: props => props.enableColorOnDark === false && !['inherit', 'transparent'].includes(props.color),\n style: {\n backgroundColor: 'var(--AppBar-background)',\n color: 'var(--AppBar-color)',\n ...theme.applyStyles('dark', {\n backgroundColor: theme.vars ? joinVars(theme.vars.palette.AppBar.darkBg, 'var(--AppBar-background)') : null,\n color: theme.vars ? joinVars(theme.vars.palette.AppBar.darkColor, 'var(--AppBar-color)') : null\n })\n }\n }, {\n props: {\n color: 'transparent'\n },\n style: {\n '--AppBar-background': 'transparent',\n '--AppBar-color': 'inherit',\n backgroundColor: 'var(--AppBar-background)',\n color: 'var(--AppBar-color)',\n ...theme.applyStyles('dark', {\n backgroundImage: 'none'\n })\n }\n }]\n})));\nconst AppBar = /*#__PURE__*/React.forwardRef(function AppBar(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiAppBar'\n });\n const {\n className,\n color = 'primary',\n enableColorOnDark = false,\n position = 'fixed',\n ...other\n } = props;\n const ownerState = {\n ...props,\n color,\n position,\n enableColorOnDark\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(AppBarRoot, {\n square: true,\n component: \"header\",\n ownerState: ownerState,\n elevation: 4,\n className: clsx(classes.root, className, position === 'fixed' && 'mui-fixed'),\n ref: ref,\n ...other\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? AppBar.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 * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'primary'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'inherit', 'primary', 'secondary', 'transparent', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * Shadow depth, corresponds to `dp` in the spec.\n * It accepts values between 0 and 24 inclusive.\n * @default 4\n */\n elevation: PropTypes.number,\n /**\n * If true, the `color` prop is applied in dark mode.\n * @default false\n */\n enableColorOnDark: PropTypes.bool,\n /**\n * The positioning type. The behavior of the different options is described\n * [in the MDN web docs](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/position).\n * Note: `sticky` is not universally supported and will fall back to `static` when unavailable.\n * @default 'fixed'\n */\n position: PropTypes.oneOf(['absolute', 'fixed', 'relative', 'static', 'sticky']),\n /**\n * If `false`, rounded corners are enabled.\n * @default true\n */\n square: PropTypes.bool,\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 AppBar;"],"mappings":";;;;;;;;;;;;;;AAEA,SAAgB,sBAAsB,MAAM;CAC1C,OAAO,qBAAqB,aAAa,IAAI;AAC/C;AACA,IAAM,gBAAgB,uBAAuB,aAAa;CAAC;CAAQ;CAAiB;CAAoB;CAAkB;CAAkB;CAAoB;CAAgB;CAAgB;CAAkB;CAAgB;CAAoB;CAAc;CAAa;CAAgB;AAAc,CAAC;;;;ACShT,IAAM,qBAAoB,eAAc;CACtC,MAAM,EACJ,OACA,UACA,YACE;CACJ,MAAM,QAAQ,EACZ,MAAM;EAAC;EAAQ,QAAQA,mBAAW,KAAK;EAAK,WAAWA,mBAAW,QAAQ;CAAG,EAC/E;CACA,OAAO,eAAe,OAAO,uBAAuB,OAAO;AAC7D;AAIA,IAAM,YAAY,MAAM,SAAS,OAAO,GAAG,KAAK,QAAQ,KAAK,EAAE,EAAE,IAAI,KAAK,KAAK;AAC/E,IAAM,aAAa,OAAO,OAAO;CAC/B,MAAM;CACN,MAAM;CACN,oBAAoB,OAAO,WAAW;EACpC,MAAM,EACJ,eACE;EACJ,OAAO;GAAC,OAAO;GAAM,OAAO,WAAWA,mBAAW,WAAW,QAAQ;GAAM,OAAO,QAAQA,mBAAW,WAAW,KAAK;EAAI;CAC3H;AACF,CAAC,CAAC,CAAC,WAAW,EACZ,aACK;CACL,SAAS;CACT,eAAe;CACf,OAAO;CACP,WAAW;CAEX,YAAY;CACZ,UAAU;EAAC;GACT,OAAO,EACL,UAAU,QACZ;GACA,OAAO;IACL,UAAU;IACV,SAAS,MAA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ACH,CAAC;AACuC,OAAO,YAAmC;;;;CAQhF,UAAUC,kBAAAA,QAAU;;;;CAIpB,SAASA,kBAAAA,QAAU;;;;CAInB,WAAWA,kBAAAA,QAAU;;;;;;;CAOrB,OAAOA,kBAAAA,QAAgD,UAAU,CAACA,kBAAAA,QAAU,MAAM;EAAC;EAAW;EAAW;EAAW;EAAa;EAAe;EAAS;EAAQ;EAAW;CAAS,CAAC,GAAGA,kBAAAA,QAAU,MAAM,CAAC;;;;;;CAM1M,WAAWA,kBAAAA,QAAU;;;;;CAKrB,mBAAmBA,kBAAAA,QAAU;;;;;;;CAO7B,UAAUA,kBAAAA,QAAU,MAAM;EAAC;EAAY;EAAS;EAAY;EAAU;CAAQ,CAAC;;;;;CAK/E,QAAQA,kBAAAA,QAAU;;;;CAIlB,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"} \ No newline at end of file diff --git a/buildtime/client/material-editor/node_modules/.vite/deps/Box-B_dRI49O.js b/buildtime/client/material-editor/node_modules/.vite/deps/Box-B_dRI49O.js new file mode 100644 index 000000000..9f058a34d --- /dev/null +++ b/buildtime/client/material-editor/node_modules/.vite/deps/Box-B_dRI49O.js @@ -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 }; diff --git a/buildtime/client/material-editor/node_modules/.vite/deps/Box-B_dRI49O.js.map b/buildtime/client/material-editor/node_modules/.vite/deps/Box-B_dRI49O.js.map new file mode 100644 index 000000000..42db7e81a --- /dev/null +++ b/buildtime/client/material-editor/node_modules/.vite/deps/Box-B_dRI49O.js.map @@ -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"} \ No newline at end of file diff --git a/buildtime/client/material-editor/node_modules/.vite/deps/Button-A8lGDA7s.js b/buildtime/client/material-editor/node_modules/.vite/deps/Button-A8lGDA7s.js new file mode 100644 index 000000000..8c5cca3da --- /dev/null +++ b/buildtime/client/material-editor/node_modules/.vite/deps/Button-A8lGDA7s.js @@ -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 + */ + 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 }; diff --git a/buildtime/client/material-editor/node_modules/.vite/deps/Button-A8lGDA7s.js.map b/buildtime/client/material-editor/node_modules/.vite/deps/Button-A8lGDA7s.js.map new file mode 100644 index 000000000..749de44e0 --- /dev/null +++ b/buildtime/client/material-editor/node_modules/.vite/deps/Button-A8lGDA7s.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Button-A8lGDA7s.js","names":["capitalize","useId","PropTypes"],"sources":["../../@mui/material/Button/buttonClasses.mjs","../../@mui/material/ButtonGroup/ButtonGroupContext.mjs","../../@mui/material/ButtonGroup/ButtonGroupButtonContext.mjs","../../@mui/material/Button/Button.mjs"],"sourcesContent":["import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getButtonUtilityClass(slot) {\n return generateUtilityClass('MuiButton', slot);\n}\nconst 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']);\nexport default buttonClasses;","'use client';\n\nimport * as React from 'react';\n/**\n * @ignore - internal component.\n */\nconst ButtonGroupContext = /*#__PURE__*/React.createContext({});\nif (process.env.NODE_ENV !== 'production') {\n ButtonGroupContext.displayName = 'ButtonGroupContext';\n}\nexport default ButtonGroupContext;","'use client';\n\nimport * as React from 'react';\n/**\n * @ignore - internal component.\n */\nconst ButtonGroupButtonContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== 'production') {\n ButtonGroupButtonContext.displayName = 'ButtonGroupButtonContext';\n}\nexport default ButtonGroupButtonContext;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport resolveProps from '@mui/utils/resolveProps';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { unstable_useId as useId } from \"../utils/index.mjs\";\nimport rootShouldForwardProp from \"../styles/rootShouldForwardProp.mjs\";\nimport { styled } from \"../zero-styled/index.mjs\";\nimport memoTheme from \"../utils/memoTheme.mjs\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.mjs\";\nimport ButtonBase from \"../ButtonBase/index.mjs\";\nimport CircularProgress from \"../CircularProgress/index.mjs\";\nimport capitalize from \"../utils/capitalize.mjs\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.mjs\";\nimport buttonClasses, { getButtonUtilityClass } from \"./buttonClasses.mjs\";\nimport ButtonGroupContext from \"../ButtonGroup/ButtonGroupContext.mjs\";\nimport ButtonGroupButtonContext from \"../ButtonGroup/ButtonGroupButtonContext.mjs\";\nimport { getTransitionStyles } from \"../transitions/utils.mjs\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n color,\n disableElevation,\n fullWidth,\n size,\n variant,\n loading,\n loadingPosition,\n classes\n } = ownerState;\n const slots = {\n root: ['root', loading && 'loading', variant, `size${capitalize(size)}`, `color${capitalize(color)}`, disableElevation && 'disableElevation', fullWidth && 'fullWidth', loading && `loadingPosition${capitalize(loadingPosition)}`],\n startIcon: ['icon', 'startIcon'],\n endIcon: ['icon', 'endIcon'],\n loadingIndicator: ['loadingIndicator'],\n loadingWrapper: ['loadingWrapper']\n };\n const composedClasses = composeClasses(slots, getButtonUtilityClass, classes);\n return {\n ...classes,\n // forward the focused, disabled, etc. classes to the ButtonBase\n ...composedClasses\n };\n};\nconst commonIconStyles = [{\n props: {\n size: 'small'\n },\n style: {\n '& > *:nth-of-type(1)': {\n fontSize: 18\n }\n }\n}, {\n props: {\n size: 'medium'\n },\n style: {\n '& > *:nth-of-type(1)': {\n fontSize: 20\n }\n }\n}, {\n props: {\n size: 'large'\n },\n style: {\n '& > *:nth-of-type(1)': {\n fontSize: 22\n }\n }\n}];\nconst ButtonRoot = styled(ButtonBase, {\n shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',\n name: 'MuiButton',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[ownerState.variant], styles[`size${capitalize(ownerState.size)}`], ownerState.color === 'inherit' && styles.colorInherit, ownerState.disableElevation && styles.disableElevation, ownerState.fullWidth && styles.fullWidth, ownerState.loading && styles.loading];\n }\n})(memoTheme(({\n theme\n}) => {\n const inheritContainedBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey[300] : theme.palette.grey[800];\n const inheritContainedHoverBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey.A100 : theme.palette.grey[700];\n return {\n ...theme.typography.button,\n minWidth: 64,\n padding: '6px 16px',\n border: 0,\n borderRadius: (theme.vars || theme).shape.borderRadius,\n ...getTransitionStyles(theme, ['background-color', 'box-shadow', 'border-color', 'color'], {\n duration: theme.transitions.duration.short\n }),\n '&:hover': {\n textDecoration: 'none'\n },\n [`&.${buttonClasses.disabled}`]: {\n color: (theme.vars || theme).palette.action.disabled\n },\n variants: [{\n props: {\n variant: 'contained'\n },\n style: {\n color: `var(--variant-containedColor)`,\n backgroundColor: `var(--variant-containedBg)`,\n boxShadow: (theme.vars || theme).shadows[2],\n '&:hover': {\n boxShadow: (theme.vars || theme).shadows[4],\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n boxShadow: (theme.vars || theme).shadows[2]\n }\n },\n '&:active': {\n boxShadow: (theme.vars || theme).shadows[8]\n },\n [`&.${buttonClasses.focusVisible}`]: {\n boxShadow: (theme.vars || theme).shadows[6]\n },\n [`&.${buttonClasses.disabled}`]: {\n color: (theme.vars || theme).palette.action.disabled,\n boxShadow: (theme.vars || theme).shadows[0],\n backgroundColor: (theme.vars || theme).palette.action.disabledBackground\n }\n }\n }, {\n props: {\n variant: 'outlined'\n },\n style: {\n padding: '5px 15px',\n border: '1px solid currentColor',\n borderColor: `var(--variant-outlinedBorder, currentColor)`,\n backgroundColor: `var(--variant-outlinedBg)`,\n color: `var(--variant-outlinedColor)`,\n [`&.${buttonClasses.disabled}`]: {\n border: `1px solid ${(theme.vars || theme).palette.action.disabledBackground}`\n }\n }\n }, {\n props: {\n variant: 'text'\n },\n style: {\n padding: '6px 8px',\n color: `var(--variant-textColor)`,\n backgroundColor: `var(--variant-textBg)`\n }\n }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n props: {\n color\n },\n style: {\n '--variant-textColor': (theme.vars || theme).palette[color].main,\n '--variant-outlinedColor': (theme.vars || theme).palette[color].main,\n '--variant-outlinedBorder': theme.alpha((theme.vars || theme).palette[color].main, 0.5),\n '--variant-containedColor': (theme.vars || theme).palette[color].contrastText,\n '--variant-containedBg': (theme.vars || theme).palette[color].main,\n '@media (hover: hover)': {\n '&:hover': {\n '--variant-containedBg': (theme.vars || theme).palette[color].dark,\n '--variant-textBg': theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.hoverOpacity),\n '--variant-outlinedBorder': (theme.vars || theme).palette[color].main,\n '--variant-outlinedBg': theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.hoverOpacity)\n }\n }\n }\n })), {\n props: {\n color: 'inherit'\n },\n style: {\n color: 'inherit',\n borderColor: 'currentColor',\n '--variant-containedBg': theme.vars ? theme.vars.palette.Button.inheritContainedBg : inheritContainedBackgroundColor,\n '@media (hover: hover)': {\n '&:hover': {\n '--variant-containedBg': theme.vars ? theme.vars.palette.Button.inheritContainedHoverBg : inheritContainedHoverBackgroundColor,\n '--variant-textBg': theme.alpha((theme.vars || theme).palette.text.primary, (theme.vars || theme).palette.action.hoverOpacity),\n '--variant-outlinedBg': theme.alpha((theme.vars || theme).palette.text.primary, (theme.vars || theme).palette.action.hoverOpacity)\n }\n }\n }\n }, {\n props: {\n size: 'small',\n variant: 'text'\n },\n style: {\n padding: '4px 5px',\n fontSize: theme.typography.pxToRem(13)\n }\n }, {\n props: {\n size: 'large',\n variant: 'text'\n },\n style: {\n padding: '8px 11px',\n fontSize: theme.typography.pxToRem(15)\n }\n }, {\n props: {\n size: 'small',\n variant: 'outlined'\n },\n style: {\n padding: '3px 9px',\n fontSize: theme.typography.pxToRem(13)\n }\n }, {\n props: {\n size: 'large',\n variant: 'outlined'\n },\n style: {\n padding: '7px 21px',\n fontSize: theme.typography.pxToRem(15)\n }\n }, {\n props: {\n size: 'small',\n variant: 'contained'\n },\n style: {\n padding: '4px 10px',\n fontSize: theme.typography.pxToRem(13)\n }\n }, {\n props: {\n size: 'large',\n variant: 'contained'\n },\n style: {\n padding: '8px 22px',\n fontSize: theme.typography.pxToRem(15)\n }\n }, {\n props: {\n disableElevation: true\n },\n style: {\n boxShadow: 'none',\n '&:hover': {\n boxShadow: 'none'\n },\n [`&.${buttonClasses.focusVisible}`]: {\n boxShadow: 'none'\n },\n '&:active': {\n boxShadow: 'none'\n },\n [`&.${buttonClasses.disabled}`]: {\n boxShadow: 'none'\n }\n }\n }, {\n props: {\n fullWidth: true\n },\n style: {\n width: '100%'\n }\n }, {\n props: {\n loadingPosition: 'center'\n },\n style: {\n ...getTransitionStyles(theme, ['background-color', 'box-shadow', 'border-color'], {\n duration: theme.transitions.duration.short\n }),\n [`&.${buttonClasses.loading}`]: {\n color: 'transparent'\n }\n }\n }]\n };\n}));\nconst ButtonStartIcon = styled('span', {\n name: 'MuiButton',\n slot: 'StartIcon',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.startIcon, ownerState.loading && styles.startIconLoadingStart];\n }\n})(({\n theme\n}) => ({\n display: 'inherit',\n alignItems: 'center',\n marginRight: 8,\n marginLeft: -4,\n '&::before': {\n content: '\"\\\\200b\"',\n width: 0,\n overflow: 'hidden'\n },\n variants: [{\n props: {\n size: 'small'\n },\n style: {\n marginLeft: -2\n }\n }, {\n props: {\n loadingPosition: 'start',\n loading: true\n },\n style: {\n ...getTransitionStyles(theme, ['opacity'], {\n duration: theme.transitions.duration.short\n }),\n opacity: 0\n }\n }, {\n props: {\n loadingPosition: 'start',\n loading: true,\n fullWidth: true\n },\n style: {\n marginRight: -8\n }\n }, ...commonIconStyles]\n}));\nconst ButtonEndIcon = styled('span', {\n name: 'MuiButton',\n slot: 'EndIcon',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.endIcon, ownerState.loading && styles.endIconLoadingEnd];\n }\n})(({\n theme\n}) => ({\n display: 'inherit',\n marginRight: -4,\n marginLeft: 8,\n variants: [{\n props: {\n size: 'small'\n },\n style: {\n marginRight: -2\n }\n }, {\n props: {\n loadingPosition: 'end',\n loading: true\n },\n style: {\n ...getTransitionStyles(theme, ['opacity'], {\n duration: theme.transitions.duration.short\n }),\n opacity: 0\n }\n }, {\n props: {\n loadingPosition: 'end',\n loading: true,\n fullWidth: true\n },\n style: {\n marginLeft: -8\n }\n }, ...commonIconStyles]\n}));\nconst ButtonLoadingIndicator = styled('span', {\n name: 'MuiButton',\n slot: 'LoadingIndicator'\n})(({\n theme\n}) => ({\n display: 'none',\n position: 'absolute',\n visibility: 'visible',\n variants: [{\n props: {\n loading: true\n },\n style: {\n display: 'flex'\n }\n }, {\n props: {\n loadingPosition: 'start'\n },\n style: {\n left: 14\n }\n }, {\n props: {\n loadingPosition: 'start',\n size: 'small'\n },\n style: {\n left: 10\n }\n }, {\n props: {\n variant: 'text',\n loadingPosition: 'start'\n },\n style: {\n left: 6\n }\n }, {\n props: {\n loadingPosition: 'center'\n },\n style: {\n left: '50%',\n transform: 'translate(-50%)',\n color: (theme.vars || theme).palette.action.disabled\n }\n }, {\n props: {\n loadingPosition: 'end'\n },\n style: {\n right: 14\n }\n }, {\n props: {\n loadingPosition: 'end',\n size: 'small'\n },\n style: {\n right: 10\n }\n }, {\n props: {\n variant: 'text',\n loadingPosition: 'end'\n },\n style: {\n right: 6\n }\n }, {\n props: {\n loadingPosition: 'start',\n fullWidth: true\n },\n style: {\n position: 'relative',\n left: -10\n }\n }, {\n props: {\n loadingPosition: 'end',\n fullWidth: true\n },\n style: {\n position: 'relative',\n right: -10\n }\n }]\n}));\nconst ButtonLoadingIconPlaceholder = styled('span', {\n name: 'MuiButton',\n slot: 'LoadingIconPlaceholder'\n})({\n display: 'inline-block',\n width: '1em',\n height: '1em'\n});\nconst Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {\n // props priority: `inProps` > `contextProps` > `themeDefaultProps`\n const contextProps = React.useContext(ButtonGroupContext);\n const buttonGroupButtonContextPositionClassName = React.useContext(ButtonGroupButtonContext);\n const resolvedProps = resolveProps(contextProps, inProps);\n const props = useDefaultProps({\n props: resolvedProps,\n name: 'MuiButton'\n });\n const {\n children,\n color = 'primary',\n component = 'button',\n className,\n disabled = false,\n disableElevation = false,\n disableFocusRipple = false,\n endIcon: endIconProp,\n focusVisibleClassName,\n fullWidth = false,\n id: idProp,\n loading = null,\n loadingIndicator: loadingIndicatorProp,\n loadingPosition = 'center',\n size = 'medium',\n startIcon: startIconProp,\n type,\n variant = 'text',\n ...other\n } = props;\n const loadingId = useId(idProp);\n const loadingIndicator = loadingIndicatorProp ?? /*#__PURE__*/_jsx(CircularProgress, {\n \"aria-labelledby\": loadingId,\n color: \"inherit\",\n size: 16\n });\n const ownerState = {\n ...props,\n color,\n component,\n disabled,\n disableElevation,\n disableFocusRipple,\n fullWidth,\n loading,\n loadingIndicator,\n loadingPosition,\n size,\n type,\n variant\n };\n const classes = useUtilityClasses(ownerState);\n const startIcon = (startIconProp || loading && loadingPosition === 'start') && /*#__PURE__*/_jsx(ButtonStartIcon, {\n className: classes.startIcon,\n ownerState: ownerState,\n children: startIconProp || /*#__PURE__*/_jsx(ButtonLoadingIconPlaceholder, {\n className: classes.loadingIconPlaceholder,\n ownerState: ownerState\n })\n });\n const endIcon = (endIconProp || loading && loadingPosition === 'end') && /*#__PURE__*/_jsx(ButtonEndIcon, {\n className: classes.endIcon,\n ownerState: ownerState,\n children: endIconProp || /*#__PURE__*/_jsx(ButtonLoadingIconPlaceholder, {\n className: classes.loadingIconPlaceholder,\n ownerState: ownerState\n })\n });\n const positionClassName = buttonGroupButtonContextPositionClassName || '';\n const loader = typeof loading === 'boolean' ?\n /*#__PURE__*/\n // use plain HTML span to minimize the runtime overhead\n _jsx(\"span\", {\n className: classes.loadingWrapper,\n style: {\n display: 'contents'\n },\n children: loading && /*#__PURE__*/_jsx(ButtonLoadingIndicator, {\n className: classes.loadingIndicator,\n ownerState: ownerState,\n children: loadingIndicator\n })\n }) : null;\n\n // Don't forward the 'root' classes to the ButtonBase, as they will get duplicated with the one passed to the className prop.\n const {\n root,\n ...forwardedClasses\n } = classes;\n return /*#__PURE__*/_jsxs(ButtonRoot, {\n ownerState: ownerState,\n className: clsx(contextProps.className, classes.root, className, positionClassName),\n component: component,\n disabled: disabled || loading,\n focusRipple: !disableFocusRipple,\n focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),\n ref: ref,\n internalNativeButton: true,\n type: type,\n id: loading ? loadingId : idProp,\n ...other,\n classes: forwardedClasses,\n children: [startIcon, loadingPosition !== 'end' && loader, children, loadingPosition === 'end' && loader, endIcon]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Button.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 * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'primary'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary', 'success', 'error', 'info', 'warning']), PropTypes.string]),\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 * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, no elevation is used.\n * @default false\n */\n disableElevation: PropTypes.bool,\n /**\n * If `true`, the keyboard focus ripple is disabled.\n * @default false\n */\n disableFocusRipple: PropTypes.bool,\n /**\n * If `true`, the ripple effect is disabled.\n *\n * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure\n * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.\n * @default false\n */\n disableRipple: PropTypes.bool,\n /**\n * Element placed after the children.\n */\n endIcon: PropTypes.node,\n /**\n * @ignore\n */\n focusVisibleClassName: PropTypes.string,\n /**\n * If `true`, the button will take up the full width of its container.\n * @default false\n */\n fullWidth: PropTypes.bool,\n /**\n * The URL to link to when the button is clicked.\n * If defined, an `a` element will be used as the root node.\n */\n href: PropTypes.string,\n /**\n * @ignore\n */\n id: PropTypes.string,\n /**\n * If `true`, the loading indicator is visible and the button is disabled.\n * 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).\n * @default null\n */\n loading: PropTypes.bool,\n /**\n * Element placed before the children if the button is in loading state.\n * The node should contain an element with `role=\"progressbar\"` with an accessible name.\n * By default, it renders a `CircularProgress` that is labeled by the button itself.\n * @default \n */\n loadingIndicator: PropTypes.node,\n /**\n * The loading indicator can be positioned on the start, end, or the center of the button.\n * @default 'center'\n */\n loadingPosition: PropTypes.oneOf(['center', 'end', 'start']),\n /**\n * The size of the component.\n * `small` is equivalent to the dense button styling.\n * @default 'medium'\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['small', 'medium', 'large']), PropTypes.string]),\n /**\n * Element placed before the children.\n */\n startIcon: PropTypes.node,\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 /**\n * @ignore\n */\n type: PropTypes.string,\n /**\n * The variant to use.\n * @default 'text'\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['contained', 'outlined', 'text']), PropTypes.string])\n} : void 0;\nexport default Button;"],"mappings":";;;;;;;;;;;;;;;;;AAEA,SAAgB,sBAAsB,MAAM;CAC1C,OAAO,qBAAqB,aAAa,IAAI;AAC/C;AACA,IAAM,gBAAgB,uBAAuB,aAAa;CAAC;CAAQ;CAAQ;CAAY;CAAa;CAAoB;CAAgB;CAAY;CAAgB;CAAgB;CAAkB;CAAgB;CAAc;CAAa;CAAgB;CAAc;CAAa;CAAa;CAAa;CAAa;CAAW;CAAQ;CAAW;CAAkB;CAA0B;CAAoB;CAAyB;CAAwB;AAAoB,CAAC;;;;;;ACCve,IAAM,qBAAkC,2BAAM,cAAc,CAAC,CAAC;AAE5D,mBAAmB,cAAc;;;;;;ACFnC,IAAM,2BAAwC,2BAAM,cAAc,KAAA,CAAS;AAEzE,yBAAyB,cAAc;;;;ACazC,IAAM,qBAAoB,eAAc;CACtC,MAAM,EACJ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K5B,iBAAiBA,kBAAAA,QAAU,MAAM;EAAC;EAAU;EAAO;CAAO,CAAC;;;;;;CAM3D,MAAMA,kBAAAA,QAAgD,UAAU,CAACA,kBAAAA,QAAU,MAAM;EAAC;EAAS;EAAU;CAAO,CAAC,GAAGA,kBAAAA,QAAU,MAAM,CAAC;;;;CAIjI,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;;;;CAItJ,MAAMA,kBAAAA,QAAU;;;;;CAKhB,SAASA,kBAAAA,QAAgD,UAAU,CAACA,kBAAAA,QAAU,MAAM;EAAC;EAAa;EAAY;CAAM,CAAC,GAAGA,kBAAAA,QAAU,MAAM,CAAC;AAC3I"} \ No newline at end of file diff --git a/buildtime/client/material-editor/node_modules/.vite/deps/ButtonBase-Bsl8ZUTz.js b/buildtime/client/material-editor/node_modules/.vite/deps/ButtonBase-Bsl8ZUTz.js new file mode 100644 index 000000000..95ec9dd19 --- /dev/null +++ b/buildtime/client/material-editor/node_modules/.vite/deps/ButtonBase-Bsl8ZUTz.js @@ -0,0 +1,1058 @@ +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 { i as useReducedMotion, n as useForkRef_default, t as useLazyRef } from "./useLazyRef-BFAG-x_s.js"; +import { t as useDefaultProps } from "./DefaultPropsProvider-C8vOQ3_j.js"; +import { n as useTheme } from "./chainPropTypes-DS_z862G.js"; +import { a as refType, i as useEventCallback_default, n as useTimeout, r as useOnMount } from "./useTimeout-Bjk18o42.js"; +import { t as elementTypeAcceptingRef_default } from "./elementTypeAcceptingRef-soVrg9KC.js"; +import { t as isFocusVisible } from "./isFocusVisible-AAJ6xeny.js"; +//#region node_modules/@mui/material/utils/useFocusableWhenDisabled.mjs +var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types(), 1); +var import_react = /* @__PURE__ */ __toESM(require_react(), 1); +function useFocusableWhenDisabled(parameters) { + const { focusableWhenDisabled, disabled, composite = false, tabIndex: tabIndexProp = 0, isNativeButton } = parameters; + const isFocusableComposite = composite && focusableWhenDisabled !== false; + const isNonFocusableComposite = composite && focusableWhenDisabled === false; + return import_react.useMemo(() => { + const additionalProps = { onKeyDown(event) { + if (disabled && focusableWhenDisabled && event.key !== "Tab") event.preventDefault(); + } }; + if (!composite) { + additionalProps.tabIndex = tabIndexProp; + if (!isNativeButton && disabled) additionalProps.tabIndex = focusableWhenDisabled ? tabIndexProp : -1; + } + if (isNativeButton && (focusableWhenDisabled || isFocusableComposite) || !isNativeButton && disabled) additionalProps["aria-disabled"] = disabled; + if (isNativeButton && (!focusableWhenDisabled || isNonFocusableComposite)) additionalProps.disabled = disabled; + return additionalProps; + }, [ + composite, + disabled, + focusableWhenDisabled, + isFocusableComposite, + isNonFocusableComposite, + isNativeButton, + tabIndexProp + ]); +} +//#endregion +//#region node_modules/@mui/material/ButtonBase/useButtonBase.mjs +var EMPTY = {}; +function useButtonBase(parameters) { + const { nativeButton, nativeButtonProp, internalNativeButton = nativeButton, allowInferredHostMismatch = false, disabled, type, hasFormAction = false, tabIndex = 0, focusableWhenDisabled: focusableWhenDisabledParam, stopEventPropagation = false, onBeforeKeyDown, onBeforeKeyUp } = parameters; + const rootRef = import_react.useRef(null); + const focusableWhenDisabled = focusableWhenDisabledParam === true; + const focusableWhenDisabledProps = useFocusableWhenDisabled({ + focusableWhenDisabled, + disabled, + isNativeButton: nativeButton, + tabIndex + }); + import_react.useEffect(() => { + const root = rootRef.current; + if (root == null) return; + const isButtonTag = root.tagName === "BUTTON"; + if (nativeButtonProp !== void 0) { + if (nativeButtonProp && !isButtonTag) console.error("MUI: A component that acts as a button expected a native