"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.SkeletonTopImageCard = void 0;
var _designSystem = require("@wix/design-system");
var _react = _interopRequireDefault(require("react"));
var _mobxReactLite = require("mobx-react-lite");
var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/cairo/dist/cjs/components/SkeletonGrid/SkeletonTopImageCard.tsx";
function _SkeletonTopImageCard(props) {
  const {
    state: {
      preset,
      calcGridProps: {
        cardTopImageHeight,
        cardFooterHeight
      }
    }
  } = props;
  return /*#__PURE__*/_react.default.createElement(_designSystem.SkeletonGroup, {
    skin: "light",
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 27,
      columnNumber: 5
    }
  }, /*#__PURE__*/_react.default.createElement(_designSystem.Box, {
    direction: "vertical",
    width: "100%",
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 28,
      columnNumber: 7
    }
  }, /*#__PURE__*/_react.default.createElement(_designSystem.SkeletonRectangle, {
    width: "100%",
    height: cardTopImageHeight,
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 29,
      columnNumber: 9
    }
  }), preset !== 'empty' && /*#__PURE__*/_react.default.createElement(_designSystem.Box, {
    width: "100%",
    height: cardFooterHeight,
    verticalAlign: "middle",
    direction: "vertical",
    gap: "12px",
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 31,
      columnNumber: 11
    }
  }, /*#__PURE__*/_react.default.createElement(_designSystem.SkeletonLine, {
    width: "75%",
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 38,
      columnNumber: 13
    }
  }), preset === 'full' && /*#__PURE__*/_react.default.createElement(_designSystem.SkeletonLine, {
    width: "60%",
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 39,
      columnNumber: 35
    }
  }), preset === 'footer' && /*#__PURE__*/_react.default.createElement(_designSystem.SkeletonLine, {
    width: "60%",
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 40,
      columnNumber: 37
    }
  }))));
}
const SkeletonTopImageCard = exports.SkeletonTopImageCard = (0, _mobxReactLite.observer)(_SkeletonTopImageCard);
//# sourceMappingURL=SkeletonTopImageCard.js.map