"use strict";

exports.__esModule = true;
exports.default = ComposerSkeleton;

var _react = _interopRequireDefault(require("react"));

var _styles = require("@mui/material/styles");

var _Skeleton = _interopRequireDefault(require("@mui/material/Skeleton"));

var _material = require("@mui/material");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

const PREFIX = 'SCComposerSkeleton';
const classes = {
  root: `${PREFIX}-root`,
  title: `${PREFIX}-title`,
  avatar: `${PREFIX}-avatar`,
  content: `${PREFIX}-content`,
  actions: `${PREFIX}-actions`
};
const Root = (0, _styles.styled)(_material.Box, {
  name: PREFIX,
  slot: 'Root',
  overridesResolver: (props, styles) => styles.root
})(({
  theme
}) => ({
  [`& .${classes.title}`]: {
    borderBottom: '1px solid #D1D1D1',
    padding: theme.spacing(),
    paddingLeft: theme.spacing(2),
    paddingRight: theme.spacing(2),
    display: 'flex',
    flexDirection: 'row',
    flexWrap: 'nowrap',
    justifyContent: 'space-between',
    alignItems: 'center',
    '& > div': {
      flex: 1,
      textAlign: 'center'
    },
    '& > div:first-of-type': {
      textAlign: 'left'
    },
    '& > div:last-of-type': {
      textAlign: 'right',
      display: 'block'
    }
  },
  [`& .${classes.avatar}`]: {
    width: theme.spacing(4),
    height: theme.spacing(4),
    display: 'inline-block'
  },
  [`& .${classes.content}`]: {
    paddingLeft: 0,
    paddingRight: 0,
    paddingBottom: 0,
    position: 'relative',
    overflowY: 'visible'
  },
  [`& .${classes.actions}`]: {
    margin: 0,
    borderTop: '1px solid #D1D1D1',
    padding: theme.spacing(1),
    display: 'flex',
    flexDirection: 'row',
    flexWrap: 'nowrap',
    justifyContent: 'space-between',
    alignItems: 'center'
  }
}));
/**
 * > API documentation for the Community-UI Composer Skeleton component. Learn about the available props and the CSS API.

 #### Import

 ```jsx
 import {ComposerSkeleton} from '@selfcommunity/ui';
 ```

 #### Component Name

 The name `SCComposerSkeleton` can be used when providing style overrides in the theme.

 #### CSS

 |Rule Name|Global class|Description|
 |---|---|---|
 |root|.SCComposerSkeleton-root|Styles applied to the root element.|
 |title|.SCComposerSkeleton-title|Styles applied to the title element.|
 |avatar|.SCComposerSkeleton-avatar|Styles applied to the avatar element.|
 |content|.SCComposerSkeleton-content|Styles applied to the content element.|
 |actions|.SCComposerSkeleton-actions|Styles applied to the actions section.|
 *
 */

function ComposerSkeleton() {
  return /*#__PURE__*/_react.default.createElement(Root, {
    className: classes.root
  }, /*#__PURE__*/_react.default.createElement(_material.DialogTitle, {
    className: classes.title
  }, /*#__PURE__*/_react.default.createElement(_material.Box, null, /*#__PURE__*/_react.default.createElement(_Skeleton.default, {
    animation: "wave",
    height: 10,
    width: "100%"
  })), /*#__PURE__*/_react.default.createElement(_material.Box, null, /*#__PURE__*/_react.default.createElement(_Skeleton.default, {
    className: classes.avatar,
    animation: "wave",
    variant: "circular",
    width: 40,
    height: 40
  })), /*#__PURE__*/_react.default.createElement(_material.Box, null, /*#__PURE__*/_react.default.createElement(_Skeleton.default, {
    animation: "wave",
    height: 10,
    width: "100%"
  }))), /*#__PURE__*/_react.default.createElement(_material.DialogContent, {
    className: classes.content
  }, /*#__PURE__*/_react.default.createElement(_Skeleton.default, {
    sx: {
      height: 190
    },
    animation: "wave",
    variant: "rectangular"
  })), /*#__PURE__*/_react.default.createElement(_material.DialogActions, {
    className: classes.actions
  }, /*#__PURE__*/_react.default.createElement(_Skeleton.default, {
    animation: "wave",
    height: 10,
    width: "40%"
  }), /*#__PURE__*/_react.default.createElement(_Skeleton.default, {
    animation: "wave",
    height: 10,
    width: "40%"
  })));
}