"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EventMediaSkeleton = void 0;
const tslib_1 = require("tslib");
const jsx_runtime_1 = require("react/jsx-runtime");
const material_1 = require("@mui/material");
const Skeleton_1 = tslib_1.__importDefault(require("@mui/material/Skeleton"));
const styles_1 = require("@mui/material/styles");
const Widget_1 = tslib_1.__importDefault(require("../Widget"));
const constants_1 = require("./constants");
const classes = {
    root: `${constants_1.PREFIX}-skeleton-root`,
    grid: `${constants_1.PREFIX}-grid`,
    media: `${constants_1.PREFIX}-media`
};
const Root = (0, styles_1.styled)(Widget_1.default, {
    name: constants_1.PREFIX,
    slot: 'SkeletonRoot',
    overridesResolver: (_props, styles) => styles.skeletonRoot
})(() => ({}));
function EventMediaWidgetSkeleton() {
    return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: classes.root }, { children: [(0, jsx_runtime_1.jsx)(material_1.CardHeader, { title: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", width: "50px", height: "23px" }) }), (0, jsx_runtime_1.jsx)(material_1.Divider, {}), (0, jsx_runtime_1.jsx)(material_1.CardContent, { children: (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.grid }, { children: Array.from(Array(9)).map((_, i) => ((0, jsx_runtime_1.jsx)(EventMediaSkeleton, {}, i))) })) })] })));
}
exports.default = EventMediaWidgetSkeleton;
function EventMediaSkeleton() {
    return (0, jsx_runtime_1.jsx)(Skeleton_1.default, { variant: "rectangular", animation: "wave", width: "100%", className: classes.media });
}
exports.EventMediaSkeleton = EventMediaSkeleton;
