"use strict";

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

function _defineProperty(e, r, a) {
  return r in e ? Object.defineProperty(e, r, {
    value: a,
    enumerable: !0,
    configurable: !0,
    writable: !0
  }) : e[r] = a, e
}
Object.defineProperty(exports, "__esModule", {
  value: !0
}), exports.default = void 0;
var _react = _interopRequireDefault(require("react")),
  _propTypes = _interopRequireDefault(require("prop-types")),
  _classnames = _interopRequireDefault(require("classnames")),
  Pane = function(e) {
    var r, a = e.prefixCls,
      t = e.isMainPane,
      p = e.vertical,
      n = e.size,
      o = void 0 === n ? 0 : n,
      l = e.percentage,
      i = e.children,
      u = l ? "%" : "px",
      s = (0, _classnames.default)((r = {}, _defineProperty(r, "".concat(a, "-panel"), !0), _defineProperty(r, "".concat(a, "-panel-main"), t), r)),
      c = {}; /*#__PURE__*/
    return t || (p ? c.height = "".concat(o).concat(u) : c.width = "".concat(o).concat(u)), _react.default.createElement("div", {
      className: s,
      style: c
    }, i)
  };
Pane.propTypes = {
  prefixCls: _propTypes.default.string,
  vertical: _propTypes.default.bool,
  isMainPane: _propTypes.default.bool,
  size: _propTypes.default.number,
  percentage: _propTypes.default.bool,
  children: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.node), _propTypes.default.node])
}, Pane.defaultProps = {
  vertical: !1,
  isMainPane: !1,
  size: 0,
  percentage: !1
};
var _default = Pane;
exports.default = _default, module.exports = exports.default;
