"use strict";

exports.__esModule = true;
exports.default = void 0;

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

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

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

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

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

const PREFIX = 'SCUserProfileHeaderSkeleton';
const classes = {
  root: `${PREFIX}-root`,
  avatar: `${PREFIX}-avatar`,
  username: `${PREFIX}-username`
};
const Root = (0, _styles.styled)(_material.Box, {
  name: PREFIX,
  slot: 'Root',
  overridesResolver: (props, styles) => styles.root
})(() => ({
  position: 'relative',
  [`& .${classes.avatar}`]: {
    position: 'absolute',
    top: 190,
    width: '100%',
    [`& .MuiSkeleton-root`]: {
      border: '#FFF solid 5px',
      margin: '0 auto'
    }
  },
  [`& .${classes.username}`]: {
    marginTop: 50,
    textAlign: 'center'
  }
}));
/**
 * > API documentation for the Community-UI User Profile Header Skeleton component. Learn about the available props and the CSS API.

 #### Import

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

 #### Component Name

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

 #### CSS

 |Rule Name|Global class|Description|
 |---|---|---|
 |root|.SCUserProfileHeaderSkeleton-root|Styles applied to the root element.|
 |avatar|.SCUserProfileHeaderSkeleton-avatar|Styles applied to the avatar element.|
 |username|.SCUserProfileHeaderSkeleton-username|Styles applied to the username element.|
 *
 */

function UserProfileHeaderSkeleton() {
  return /*#__PURE__*/_react.default.createElement(Root, {
    className: classes.root
  }, /*#__PURE__*/_react.default.createElement(_Skeleton.default, {
    sx: {
      height: 350
    },
    animation: "wave",
    variant: "rectangular"
  }), /*#__PURE__*/_react.default.createElement(_material.Box, {
    className: classes.avatar
  }, /*#__PURE__*/_react.default.createElement(_Skeleton.default, {
    animation: "wave",
    variant: "circular",
    width: 200,
    height: 200
  })), /*#__PURE__*/_react.default.createElement(_material.Typography, {
    variant: "h5",
    className: classes.username
  }, /*#__PURE__*/_react.default.createElement(_Skeleton.default, {
    animation: "wave",
    sx: {
      height: 20,
      width: 100,
      margin: '0 auto'
    }
  })));
}

var _default = UserProfileHeaderSkeleton;
exports.default = _default;