"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _ui = require("@mirai/ui");
var _react = _interopRequireDefault(require("react"));
var _shared__ = require("../../../__shared__");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const SPACE = 'var(--mirai-ui-space-M)';
const BORDER_COLOR = 'var(--mirai-ui-content-background)';
const BORDER_WIDTH = 'var(--mirai-ui-border-width)';
var _default = () => {
  const {
    isDesktop,
    isMobile,
    isTablet
  } = (0, _ui.useDevice)();
  return /*#__PURE__*/_react.default.createElement(_ui.View, {
    wide: true,
    style: {
      gap: SPACE
    }
  }, /*#__PURE__*/_react.default.createElement(_ui.View, {
    row: true,
    style: {
      justifyContent: 'space-between'
    }
  }, /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    headline: true,
    level: 2,
    words: 2
  }), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    button: true,
    small: true,
    words: 3
  })), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    headline: isMobile,
    words: 3
  }), /*#__PURE__*/_react.default.createElement(_ui.View, {
    row: !isMobile,
    style: {
      gap: SPACE,
      flexWrap: 'wrap'
    }
  }, Array.from({
    length: 9
  }).map((_, index) => /*#__PURE__*/_react.default.createElement(_ui.View, {
    key: index,
    style: {
      border: "solid ".concat(BORDER_WIDTH, " ").concat(BORDER_COLOR),
      flexBasis: isDesktop ? 'calc(33.33% - calc(calc(var(--mirai-ui-space-M) * 2) / 3)) !important' : isTablet ? 'calc(50% - calc(var(--mirai-ui-space-M) / 2))' : undefined
    }
  }, /*#__PURE__*/_react.default.createElement(_ui.View, {
    style: {
      padding: SPACE
    }
  }, /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    headline: true,
    words: 2
  }), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    small: true,
    words: 5
  }), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    small: true,
    words: 2
  }), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    small: true,
    words: 2
  })), /*#__PURE__*/_react.default.createElement(_ui.View, {
    style: {
      backgroundColor: BORDER_COLOR,
      height: BORDER_WIDTH
    }
  }), /*#__PURE__*/_react.default.createElement(_ui.View, {
    row: true,
    style: {
      justifyContent: 'space-between',
      padding: SPACE
    }
  }, /*#__PURE__*/_react.default.createElement(_ui.View, null, /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    headline: true,
    level: 2,
    words: 1
  }), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    small: true,
    words: 2
  })), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    button: true,
    words: 1
  }))))));
};
exports.default = _default;
//# sourceMappingURL=Bookings.Skeleton.js.map