"use strict";

Liferay.Loader.define("@frontend-taglib-clay$clayui/button@3.136.0/lib/ButtonWithIcon", ['module', 'exports', 'require', '@frontend-taglib-clay$clayui/icon', 'frontend-js-react-web$react', './Button'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    Object.defineProperty(exports, "__esModule", {
      value: true
    });
    exports.default = void 0;
    var _icon = _interopRequireDefault(require("@frontend-taglib-clay$clayui/icon"));
    var _react = _interopRequireDefault(require("frontend-js-react-web$react"));
    var _Button = _interopRequireDefault(require("./Button"));
    var _excluded = ["monospaced", "spritemap", "symbol"];
    /**
     * 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 ClayButtonWithIcon = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
      var _ref$monospaced = _ref.monospaced,
          monospaced = _ref$monospaced === void 0 ? true : _ref$monospaced,
          spritemap = _ref.spritemap,
          symbol = _ref.symbol,
          otherProps = _objectWithoutProperties(_ref, _excluded);
      return (/*#__PURE__*/_react.default.createElement(_Button.default, _extends({}, otherProps, {
          monospaced: monospaced,
          ref: ref
        }), /*#__PURE__*/_react.default.createElement(_icon.default, {
          spritemap: spritemap,
          symbol: symbol
        }))
      );
    });
    ClayButtonWithIcon.displayName = 'ClayButtonWithIcon';
    var _default = exports.default = ClayButtonWithIcon;
  }
});
//# sourceMappingURL=ButtonWithIcon.js.map