"use strict";

Liferay.Loader.define("@frontend-taglib-clay$clayui/button@3.136.0/lib/Group", ['module', 'exports', 'require', 'frontend-taglib-clay$classnames', 'frontend-js-react-web$react'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    Object.defineProperty(exports, "__esModule", {
      value: true
    });
    exports.default = void 0;
    var _classnames = _interopRequireDefault(require("frontend-taglib-clay$classnames"));
    var _react = _interopRequireDefault(require("frontend-js-react-web$react"));
    var _excluded = ["children", "className", "role", "spaced", "vertical"];
    /**
     * SPDX-FileCopyrightText: © 2019 Liferay, Inc. <https://liferay.com>
     * SPDX-License-Identifier: BSD-3-Clause
     */
    function _interopRequireDefault(e) {
      return e && e.__esModule ? e : { default: e };
    }
    function _extends() {
      return _extends = Object.assign ? Object.assign.bind() : function (n) {
        for (var e = 1; e < arguments.length; e++) {
          var t = arguments[e];for (var r in t) {
            ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
          }
        }return n;
      }, _extends.apply(null, arguments);
    }
    function _objectWithoutProperties(e, t) {
      if (null == e) return {};var o,
          r,
          i = _objectWithoutPropertiesLoose(e, t);if (Object.getOwnPropertySymbols) {
        var s = Object.getOwnPropertySymbols(e);for (r = 0; r < s.length; r++) {
          o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
        }
      }return i;
    }
    function _objectWithoutPropertiesLoose(r, e) {
      if (null == r) return {};var t = {};for (var n in r) {
        if ({}.hasOwnProperty.call(r, n)) {
          if (e.includes(n)) continue;t[n] = r[n];
        }
      }return t;
    }
    var Group = function Group(_ref) {
      var children = _ref.children,
          className = _ref.className,
          _ref$role = _ref.role,
          role = _ref$role === void 0 ? 'group' : _ref$role,
          spaced = _ref.spaced,
          vertical = _ref.vertical,
          otherProps = _objectWithoutProperties(_ref, _excluded);
      return (/*#__PURE__*/_react.default.createElement("div", _extends({}, otherProps, {
          className: (0, _classnames.default)(className, {
            'btn-group': !spaced && !vertical,
            'btn-group-spaced': spaced,
            'btn-group-vertical': vertical
          }),
          role: role
        }), children)
      );
    };
    Group.displayName = 'ClayButtonGroup';
    var _default = exports.default = Group;
  }
});
//# sourceMappingURL=Group.js.map