Liferay.Loader.define("portal-workflow-metrics-web@2.0.42/js/components/performance-by-step-page/PerformanceByStepPageHeader.es", ['module', 'exports', 'require', '@frontend-taglib-clay$clayui/management-toolbar', 'frontend-js-react-web$react', '../../shared/components/results-bar/ResultsBar.es', '../../shared/components/search-field/SearchField.es', '../filter/TimeRangeFilter.es'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    Object.defineProperty(exports, "__esModule", {
      value: true
    });
    exports.Header = void 0;

    var _managementToolbar = _interopRequireDefault(require("@frontend-taglib-clay$clayui/management-toolbar"));

    var _react = _interopRequireDefault(require("frontend-js-react-web$react"));

    var _ResultsBar = _interopRequireDefault(require("../../shared/components/results-bar/ResultsBar.es"));

    var _SearchField = _interopRequireDefault(require("../../shared/components/search-field/SearchField.es"));

    var _TimeRangeFilter = _interopRequireDefault(require("../filter/TimeRangeFilter.es"));

    function _interopRequireDefault(obj) {
      return obj && obj.__esModule ? obj : { "default": obj };
    }

    function _extends() {
      _extends = Object.assign || function (target) {
        for (var i = 1; i < arguments.length; i++) {
          var source = arguments[i];for (var key in source) {
            if (Object.prototype.hasOwnProperty.call(source, key)) {
              target[key] = source[key];
            }
          }
        }return target;
      };return _extends.apply(this, arguments);
    }

    var Header = function Header(_ref) {
      var filterKeys = _ref.filterKeys,
          routeParams = _ref.routeParams,
          totalCount = _ref.totalCount;
      return _react["default"].createElement(_react["default"].Fragment, null, _react["default"].createElement(_managementToolbar["default"], {
        className: "mb-0"
      }, _react["default"].createElement(_managementToolbar["default"].ItemList, null, _react["default"].createElement(_managementToolbar["default"].Item, null, _react["default"].createElement("strong", {
        className: "ml-0 mr-0 navbar-text"
      }, Liferay.Language.get('filter-by')))), _react["default"].createElement(_SearchField["default"], {
        disabled: false,
        placeholder: Liferay.Language.get('search-for-step-name')
      }), _react["default"].createElement(_managementToolbar["default"].ItemList, null, _react["default"].createElement(_TimeRangeFilter["default"], {
        buttonClassName: "btn-flat btn-sm",
        options: {
          position: 'right'
        }
      }))), routeParams.search && _react["default"].createElement(_ResultsBar["default"], null, _react["default"].createElement(_react["default"].Fragment, null, _react["default"].createElement(_ResultsBar["default"].TotalCount, {
        search: routeParams.search,
        totalCount: totalCount
      }), _react["default"].createElement(_ResultsBar["default"].Clear, _extends({
        filterKeys: filterKeys
      }, routeParams)))));
    };

    exports.Header = Header;
    //# sourceMappingURL=PerformanceByStepPageHeader.es.js.map
  }
});
//# sourceMappingURL=PerformanceByStepPageHeader.es.js.map