"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MessageSkeleton = void 0;
const tslib_1 = require("tslib");
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = tslib_1.__importDefault(require("react"));
const material_1 = require("@mui/material");
const styles_1 = require("@mui/material/styles");
const Widget_1 = tslib_1.__importDefault(require("../Widget"));
const constants_1 = require("./constants");
const messageClasses = {
    root: `${constants_1.PREFIX}-message-skeleton-root`,
    header: `${constants_1.PREFIX}-header`,
    title: `${constants_1.PREFIX}-title`,
    media: `${constants_1.PREFIX}-media`,
    content: `${constants_1.PREFIX}-content`
};
const MessageSkeletonRoot = (0, styles_1.styled)(Widget_1.default, {
    name: constants_1.PREFIX,
    slot: 'MessageSkeletonRoot'
})(() => ({}));
/**
 * > API documentation for the Community-JS Broadcast Message Skeleton component. Learn about the available props and the CSS API.

 #### Import

 ```jsx
 import {MessageSkeleton} from '@selfcommunity/react-ui';
 ```

 #### Component Name

 The name `SCBroadcastMessages-message-skeleton-root` can be used when providing style overrides in the theme.

 #### CSS

 |Rule Name|Global class|Description|
 |---|---|---|
 |root|.SCBroadcastMessages-message-skeleton-root|Styles applied to the root element.|
 |header|.SCBroadcastMessages-header|Styles applied to the header element.|
 |title|.SCBroadcastMessages-title|Styles applied to the title element.|
 |media|.SCBroadcastMessages-media|Styles applied to the media element.|
 |content|.SCBroadcastMessages-content|Styles applied to the content section.|
 *
 */
function MessageSkeleton(props) {
    const theme = (0, material_1.useTheme)();
    return ((0, jsx_runtime_1.jsxs)(MessageSkeletonRoot, Object.assign({ className: messageClasses.root }, { children: [(0, jsx_runtime_1.jsx)(material_1.CardHeader, { className: messageClasses.header, avatar: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", variant: "circular", width: theme.selfcommunity.user.avatar.sizeMedium, height: theme.selfcommunity.user.avatar.sizeMedium }), title: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", variant: "rectangular", width: 60, height: 20 }) }), (0, jsx_runtime_1.jsx)(material_1.CardContent, Object.assign({ className: messageClasses.title }, { children: (0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", height: 10, width: "80%" }) }) })), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: messageClasses.media }, { children: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { height: 190, animation: "wave", variant: "rectangular" }) })), (0, jsx_runtime_1.jsx)(material_1.CardContent, Object.assign({ className: messageClasses.content }, { children: (0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", height: 10, width: "80%" }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", height: 10, width: 60 })] }) }))] })));
}
exports.MessageSkeleton = MessageSkeleton;
const classes = {
    root: `${constants_1.PREFIX}-skeleton-root`
};
const Root = (0, styles_1.styled)(material_1.Box, {
    name: constants_1.PREFIX,
    slot: 'SkeletonRoot'
})(() => ({}));
/**
 * > API documentation for the Community-JS Broadcast Messages Skeleton component. Learn about the available props and the CSS API.

 #### Import

 ```jsx
 import {BroadcastMessagesSkeleton} from '@selfcommunity/react-ui';
 ```

 #### Component Name

 The name `SCBroadcastMessages-skeleton-root` can be used when providing style overrides in the theme.

 #### CSS

 |Rule Name|Global class|Description|
 |---|---|---|
 |root|.SCBroadcastMessages-skeleton-root|Styles applied to the root element.|
 *
 */
function BroadcastMessagesSkeleton(props) {
    return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: classes.root }, props, { children: [(0, jsx_runtime_1.jsx)(MessageSkeleton, {}), (0, jsx_runtime_1.jsx)(MessageSkeleton, {}), (0, jsx_runtime_1.jsx)(MessageSkeleton, {})] })));
}
exports.default = BroadcastMessagesSkeleton;
