import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
import _Box from "@alifd/next/es/box";
import _extends from "@babel/runtime/helpers/extends";
import React, { Component } from "react";
import "./index.less";
var BoxSlotComponent = function BoxSlotComponent(props) {
  var title = props.title,
    children = props.children,
    _props$labelAlign = props.labelAlign,
    labelAlign = _props$labelAlign === void 0 ? "left" : _props$labelAlign,
    titleStyle = props.titleStyle;
  return /*#__PURE__*/React.createElement("div", {
    className: "boxGroupItemChildren"
  }, labelAlign === "left" && /*#__PURE__*/React.createElement(_Box, {
    direction: "row",
    align: "center",
    className: "behavior-item"
  }, /*#__PURE__*/React.createElement(_Box, {
    style: _extends({
      width: 70
    }, titleStyle)
  }, title), /*#__PURE__*/React.createElement(_Box, {
    style: {
      flex: 1
    },
    className: "behavior-radio"
  }, children)), labelAlign === "top" && /*#__PURE__*/React.createElement("div", {
    className: "behavior-item"
  }, /*#__PURE__*/React.createElement(_Box, {
    style: _extends({
      marginBottom: 5
    }, titleStyle)
  }, title), /*#__PURE__*/React.createElement(_Box, {
    className: "behavior-radio"
  }, children)));
};
var _default = /*#__PURE__*/function (_Component) {
  function _default() {
    return _Component.apply(this, arguments) || this;
  }
  _inheritsLoose(_default, _Component);
  var _proto = _default.prototype;
  _proto.render = function render() {
    return /*#__PURE__*/React.createElement(BoxSlotComponent, this.props);
  };
  return _default;
}(Component);
export { _default as default };