"use strict";

exports.__esModule = true;
exports["default"] = void 0;
var React = _interopRequireWildcard(require("react"));
require("./index.scss");
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
var BorderBox = function BorderBox(_ref) {
  var boxSlot = _ref.boxSlot,
    width = _ref.width,
    skin = _ref.skin,
    skinColor = _ref.skinColor,
    _ref$title = _ref.title,
    title = _ref$title === void 0 ? '请设置标题' : _ref$title,
    font = _ref.font,
    fontColor = _ref.fontColor,
    fontSize = _ref.fontSize,
    direction = _ref.direction,
    justify = _ref.justify,
    align = _ref.align;
  return /*#__PURE__*/React.createElement("div", {
    className: "border-box " + skin[1],
    style: {
      width: width + "%",
      backgroundColor: skin[0] === 1 ? skinColor || '#0003' : null
    }
  }, /*#__PURE__*/React.createElement("div", {
    className: "box-title",
    style: {
      color: fontColor,
      fontFamily: font,
      fontSize: fontSize
    }
  }, /*#__PURE__*/React.createElement("div", {
    className: "box-title-content"
  }, title)), /*#__PURE__*/React.createElement("div", {
    className: "box-slot-container",
    style: {
      flexDirection: direction,
      alignContent: align,
      alignItems: align,
      justifyContent: justify
    }
  }, boxSlot));
};
var _default = BorderBox;
exports["default"] = _default;