"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 = {
  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'
  }
}));

function ComposerSkeleton() {
  return /*#__PURE__*/_react.default.createElement(Root, null, /*#__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%"
  })));
}