Liferay.Loader.define("frontend-taglib-clay@6.3.12/management_toolbar/ManagementToolbar.soy", ['module', 'exports', 'require', 'frontend-js-metal-web$metal-component', 'frontend-js-metal-web$metal-soy'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    Object.defineProperty(exports, "__esModule", {
      value: true
    });
    exports.default = exports.templates = exports.comliferayfrontendtaglibclayManagementToolbar = void 0;

    var _metalComponent = _interopRequireDefault(require("frontend-js-metal-web$metal-component"));

    var _metalSoy = _interopRequireDefault(require("frontend-js-metal-web$metal-soy"));

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

    function _typeof(obj) {
      "@babel/helpers - typeof";
      if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
        _typeof = function _typeof(obj) {
          return typeof obj;
        };
      } else {
        _typeof = function _typeof(obj) {
          return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
        };
      }return _typeof(obj);
    }

    function _classCallCheck(instance, Constructor) {
      if (!(instance instanceof Constructor)) {
        throw new TypeError("Cannot call a class as a function");
      }
    }

    function _possibleConstructorReturn(self, call) {
      if (call && (_typeof(call) === "object" || typeof call === "function")) {
        return call;
      }return _assertThisInitialized(self);
    }

    function _assertThisInitialized(self) {
      if (self === void 0) {
        throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
      }return self;
    }

    function _getPrototypeOf(o) {
      _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
        return o.__proto__ || Object.getPrototypeOf(o);
      };return _getPrototypeOf(o);
    }

    function _inherits(subClass, superClass) {
      if (typeof superClass !== "function" && superClass !== null) {
        throw new TypeError("Super expression must either be null or a function");
      }subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });if (superClass) _setPrototypeOf(subClass, superClass);
    }

    function _setPrototypeOf(o, p) {
      _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
        o.__proto__ = p;return o;
      };return _setPrototypeOf(o, p);
    }

    var templates;
    exports.templates = templates;
    goog.loadModule(function (exports) {
      var soy = goog.require('soy');

      goog.require('soydata');

      // This file was automatically generated from ManagementToolbar.soy.
      // Please don't edit this file by hand.

      /**
       * @fileoverview Templates in namespace com.liferay.frontend.taglib.clay.ManagementToolbar.
       * @hassoydeltemplate {ClayManagementToolbar.SearchForm.idom}
       * @public
       */

      goog.module('com.liferay.frontend.taglib.clay.ManagementToolbar.incrementaldom');

      goog.require('goog.soy.data.SanitizedContent');

      var incrementalDom = goog.require('incrementaldom');

      goog.require('soy');

      goog.require('soy.asserts');

      var soyIdom = goog.require('soy.idom');

      var $templateAlias1 = _metalSoy.default.getTemplate('ClayManagementToolbar.incrementaldom', 'render');
      /**
       * @param {{
       *  spritemap: (!goog.soy.data.SanitizedContent|string),
       *  _handleClearSelectionButtonClicked: (*|null|undefined),
       *  _handleCreationMenuMoreButtonClicked: (*|null|undefined),
       *  _handleFilterLabelCloseClicked: (*|null|undefined),
       *  _handleSelectAllButtonClicked: (*|null|undefined),
       *  _handleSelectPageCheckboxChanged: (*|null|undefined),
       *  actionItems: (!Array<{disabled: boolean, href: (!goog.soy.data.SanitizedContent|string), icon: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), quickAction: boolean, separator: boolean, type: (!goog.soy.data.SanitizedContent|string)}>|null|undefined),
       *  active: (boolean|null|undefined),
       *  checkboxStatus: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  clearResultsURL: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  clearSelectionURL: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  contentRenderer: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  creationMenu: (null|undefined|{caption: (!goog.soy.data.SanitizedContent|string), helpText: (!goog.soy.data.SanitizedContent|string), itemsIconAlignment: (!goog.soy.data.SanitizedContent|string), maxPrimaryItems: number, maxSecondaryItems: number, maxTotalItems: number, primaryItems: !Array<{data: *, disabled: boolean, href: (!goog.soy.data.SanitizedContent|string), icon: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean}>, secondaryItems: !Array<{data: *, disabled: boolean, href: (!goog.soy.data.SanitizedContent|string), icon: (!goog.soy.data.SanitizedContent|string), items: !Array<{data: *, disabled: boolean, href: (!goog.soy.data.SanitizedContent|string), icon: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean}>, label: (!goog.soy.data.SanitizedContent|string), separator: boolean}>, viewMoreURL: (!goog.soy.data.SanitizedContent|string)}),
       *  defaultEventHandler: (?),
       *  disabled: (boolean|null|undefined),
       *  elementClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  filterItems: (!Array<{active: boolean, checked: boolean, disabled: boolean, inputName: (!goog.soy.data.SanitizedContent|string), inputValue: (!goog.soy.data.SanitizedContent|string), items: !Array<{active: boolean, checked: boolean, disabled: boolean, inputName: (!goog.soy.data.SanitizedContent|string), inputValue: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean, type: (!goog.soy.data.SanitizedContent|string)}>, label: (!goog.soy.data.SanitizedContent|string), separator: boolean, type: (!goog.soy.data.SanitizedContent|string)}>|null|undefined),
       *  filterLabels: (!Array<{closeable: boolean, label: (!goog.soy.data.SanitizedContent|function()|string)}>|null|undefined),
       *  id: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  searchActionURL: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  searchData: (?),
       *  searchFormMethod: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  searchFormName: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  searchInputName: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  searchValue: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  selectable: (boolean|null|undefined),
       *  selectAllURL: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  selectedItems: (null|number|undefined),
       *  showAdvancedSearch: (boolean|null|undefined),
       *  showCreationMenu: (boolean|null|undefined),
       *  showFiltersDoneButton: (boolean|null|undefined),
       *  showInfoButton: (boolean|null|undefined),
       *  showResultsBar: (boolean|null|undefined),
       *  showSearch: (boolean|null|undefined),
       *  showSelectAllButton: (boolean|null|undefined),
       *  sortingOrder: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  sortingURL: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  supportsBulkActions: (boolean|null|undefined),
       *  totalItems: (null|number|undefined),
       *  viewTypes: (!Array<{active: boolean, disabled: boolean, href: (!goog.soy.data.SanitizedContent|string), icon: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string)}>|null|undefined)
       * }} opt_data
       * @param {Object<string, *>=} opt_ijData
       * @param {Object<string, *>=} opt_ijData_deprecated
       * @return {void}
       * @suppress {checkTypes}
       */

      function $render(opt_data, opt_ijData, opt_ijData_deprecated) {
        opt_ijData = opt_ijData_deprecated || opt_ijData;
        /** @type {!goog.soy.data.SanitizedContent|string} */

        var spritemap = soy.asserts.assertType(goog.isString(opt_data.spritemap) || opt_data.spritemap instanceof goog.soy.data.SanitizedContent, 'spritemap', opt_data.spritemap, '!goog.soy.data.SanitizedContent|string');
        /** @type {*|null|undefined} */

        var _handleClearSelectionButtonClicked = opt_data._handleClearSelectionButtonClicked;
        /** @type {*|null|undefined} */

        var _handleCreationMenuMoreButtonClicked = opt_data._handleCreationMenuMoreButtonClicked;
        /** @type {*|null|undefined} */

        var _handleFilterLabelCloseClicked = opt_data._handleFilterLabelCloseClicked;
        /** @type {*|null|undefined} */

        var _handleSelectAllButtonClicked = opt_data._handleSelectAllButtonClicked;
        /** @type {*|null|undefined} */

        var _handleSelectPageCheckboxChanged = opt_data._handleSelectPageCheckboxChanged;
        /** @type {!Array<{disabled: boolean, href: (!goog.soy.data.SanitizedContent|string), icon: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), quickAction: boolean, separator: boolean, type: (!goog.soy.data.SanitizedContent|string)}>|null|undefined} */

        var actionItems = soy.asserts.assertType(opt_data.actionItems == null || goog.isArray(opt_data.actionItems), 'actionItems', opt_data.actionItems, '!Array<{disabled: boolean, href: (!goog.soy.data.SanitizedContent|string), icon: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), quickAction: boolean, separator: boolean, type: (!goog.soy.data.SanitizedContent|string)}>|null|undefined');
        /** @type {boolean|null|undefined} */

        var active = soy.asserts.assertType(opt_data.active == null || goog.isBoolean(opt_data.active) || opt_data.active === 1 || opt_data.active === 0, 'active', opt_data.active, 'boolean|null|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */

        var checkboxStatus = soy.asserts.assertType(opt_data.checkboxStatus == null || goog.isString(opt_data.checkboxStatus) || opt_data.checkboxStatus instanceof goog.soy.data.SanitizedContent, 'checkboxStatus', opt_data.checkboxStatus, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */

        var clearResultsURL = soy.asserts.assertType(opt_data.clearResultsURL == null || goog.isString(opt_data.clearResultsURL) || opt_data.clearResultsURL instanceof goog.soy.data.SanitizedContent, 'clearResultsURL', opt_data.clearResultsURL, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */

        var clearSelectionURL = soy.asserts.assertType(opt_data.clearSelectionURL == null || goog.isString(opt_data.clearSelectionURL) || opt_data.clearSelectionURL instanceof goog.soy.data.SanitizedContent, 'clearSelectionURL', opt_data.clearSelectionURL, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */

        var contentRenderer = soy.asserts.assertType(opt_data.contentRenderer == null || goog.isString(opt_data.contentRenderer) || opt_data.contentRenderer instanceof goog.soy.data.SanitizedContent, 'contentRenderer', opt_data.contentRenderer, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {null|undefined|{caption: (!goog.soy.data.SanitizedContent|string), helpText: (!goog.soy.data.SanitizedContent|string), itemsIconAlignment: (!goog.soy.data.SanitizedContent|string), maxPrimaryItems: number, maxSecondaryItems: number, maxTotalItems: number, primaryItems: !Array<{data: *, disabled: boolean, href: (!goog.soy.data.SanitizedContent|string), icon: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean}>, secondaryItems: !Array<{data: *, disabled: boolean, href: (!goog.soy.data.SanitizedContent|string), icon: (!goog.soy.data.SanitizedContent|string), items: !Array<{data: *, disabled: boolean, href: (!goog.soy.data.SanitizedContent|string), icon: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean}>, label: (!goog.soy.data.SanitizedContent|string), separator: boolean}>, viewMoreURL: (!goog.soy.data.SanitizedContent|string)}} */

        var creationMenu = soy.asserts.assertType(opt_data.creationMenu == null || goog.isObject(opt_data.creationMenu), 'creationMenu', opt_data.creationMenu, 'null|undefined|{caption: (!goog.soy.data.SanitizedContent|string), helpText: (!goog.soy.data.SanitizedContent|string), itemsIconAlignment: (!goog.soy.data.SanitizedContent|string), maxPrimaryItems: number, maxSecondaryItems: number, maxTotalItems: number, primaryItems: !Array<{data: *, disabled: boolean, href: (!goog.soy.data.SanitizedContent|string), icon: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean}>, secondaryItems: !Array<{data: *, disabled: boolean, href: (!goog.soy.data.SanitizedContent|string), icon: (!goog.soy.data.SanitizedContent|string), items: !Array<{data: *, disabled: boolean, href: (!goog.soy.data.SanitizedContent|string), icon: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean}>, label: (!goog.soy.data.SanitizedContent|string), separator: boolean}>, viewMoreURL: (!goog.soy.data.SanitizedContent|string)}');
        /** @type {?} */

        var defaultEventHandler = opt_data.defaultEventHandler;
        /** @type {boolean|null|undefined} */

        var disabled = soy.asserts.assertType(opt_data.disabled == null || goog.isBoolean(opt_data.disabled) || opt_data.disabled === 1 || opt_data.disabled === 0, 'disabled', opt_data.disabled, 'boolean|null|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */

        var elementClasses = soy.asserts.assertType(opt_data.elementClasses == null || goog.isString(opt_data.elementClasses) || opt_data.elementClasses instanceof goog.soy.data.SanitizedContent, 'elementClasses', opt_data.elementClasses, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!Array<{active: boolean, checked: boolean, disabled: boolean, inputName: (!goog.soy.data.SanitizedContent|string), inputValue: (!goog.soy.data.SanitizedContent|string), items: !Array<{active: boolean, checked: boolean, disabled: boolean, inputName: (!goog.soy.data.SanitizedContent|string), inputValue: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean, type: (!goog.soy.data.SanitizedContent|string)}>, label: (!goog.soy.data.SanitizedContent|string), separator: boolean, type: (!goog.soy.data.SanitizedContent|string)}>|null|undefined} */

        var filterItems = soy.asserts.assertType(opt_data.filterItems == null || goog.isArray(opt_data.filterItems), 'filterItems', opt_data.filterItems, '!Array<{active: boolean, checked: boolean, disabled: boolean, inputName: (!goog.soy.data.SanitizedContent|string), inputValue: (!goog.soy.data.SanitizedContent|string), items: !Array<{active: boolean, checked: boolean, disabled: boolean, inputName: (!goog.soy.data.SanitizedContent|string), inputValue: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean, type: (!goog.soy.data.SanitizedContent|string)}>, label: (!goog.soy.data.SanitizedContent|string), separator: boolean, type: (!goog.soy.data.SanitizedContent|string)}>|null|undefined');
        /** @type {!Array<{closeable: boolean, label: (!goog.soy.data.SanitizedContent|function()|string)}>|null|undefined} */

        var filterLabels = soy.asserts.assertType(opt_data.filterLabels == null || goog.isArray(opt_data.filterLabels), 'filterLabels', opt_data.filterLabels, '!Array<{closeable: boolean, label: (!goog.soy.data.SanitizedContent|function()|string)}>|null|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */

        var id = soy.asserts.assertType(opt_data.id == null || goog.isString(opt_data.id) || opt_data.id instanceof goog.soy.data.SanitizedContent, 'id', opt_data.id, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */

        var searchActionURL = soy.asserts.assertType(opt_data.searchActionURL == null || goog.isString(opt_data.searchActionURL) || opt_data.searchActionURL instanceof goog.soy.data.SanitizedContent, 'searchActionURL', opt_data.searchActionURL, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {?} */

        var searchData = opt_data.searchData;
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */

        var searchFormMethod = soy.asserts.assertType(opt_data.searchFormMethod == null || goog.isString(opt_data.searchFormMethod) || opt_data.searchFormMethod instanceof goog.soy.data.SanitizedContent, 'searchFormMethod', opt_data.searchFormMethod, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */

        var searchFormName = soy.asserts.assertType(opt_data.searchFormName == null || goog.isString(opt_data.searchFormName) || opt_data.searchFormName instanceof goog.soy.data.SanitizedContent, 'searchFormName', opt_data.searchFormName, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */

        var searchInputName = soy.asserts.assertType(opt_data.searchInputName == null || goog.isString(opt_data.searchInputName) || opt_data.searchInputName instanceof goog.soy.data.SanitizedContent, 'searchInputName', opt_data.searchInputName, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */

        var searchValue = soy.asserts.assertType(opt_data.searchValue == null || goog.isString(opt_data.searchValue) || opt_data.searchValue instanceof goog.soy.data.SanitizedContent, 'searchValue', opt_data.searchValue, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {boolean|null|undefined} */

        var selectable = soy.asserts.assertType(opt_data.selectable == null || goog.isBoolean(opt_data.selectable) || opt_data.selectable === 1 || opt_data.selectable === 0, 'selectable', opt_data.selectable, 'boolean|null|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */

        var selectAllURL = soy.asserts.assertType(opt_data.selectAllURL == null || goog.isString(opt_data.selectAllURL) || opt_data.selectAllURL instanceof goog.soy.data.SanitizedContent, 'selectAllURL', opt_data.selectAllURL, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {null|number|undefined} */

        var selectedItems = soy.asserts.assertType(opt_data.selectedItems == null || goog.isNumber(opt_data.selectedItems), 'selectedItems', opt_data.selectedItems, 'null|number|undefined');
        /** @type {boolean|null|undefined} */

        var showAdvancedSearch = soy.asserts.assertType(opt_data.showAdvancedSearch == null || goog.isBoolean(opt_data.showAdvancedSearch) || opt_data.showAdvancedSearch === 1 || opt_data.showAdvancedSearch === 0, 'showAdvancedSearch', opt_data.showAdvancedSearch, 'boolean|null|undefined');
        /** @type {boolean|null|undefined} */

        var showCreationMenu = soy.asserts.assertType(opt_data.showCreationMenu == null || goog.isBoolean(opt_data.showCreationMenu) || opt_data.showCreationMenu === 1 || opt_data.showCreationMenu === 0, 'showCreationMenu', opt_data.showCreationMenu, 'boolean|null|undefined');
        /** @type {boolean|null|undefined} */

        var showFiltersDoneButton = soy.asserts.assertType(opt_data.showFiltersDoneButton == null || goog.isBoolean(opt_data.showFiltersDoneButton) || opt_data.showFiltersDoneButton === 1 || opt_data.showFiltersDoneButton === 0, 'showFiltersDoneButton', opt_data.showFiltersDoneButton, 'boolean|null|undefined');
        /** @type {boolean|null|undefined} */

        var showInfoButton = soy.asserts.assertType(opt_data.showInfoButton == null || goog.isBoolean(opt_data.showInfoButton) || opt_data.showInfoButton === 1 || opt_data.showInfoButton === 0, 'showInfoButton', opt_data.showInfoButton, 'boolean|null|undefined');
        /** @type {boolean|null|undefined} */

        var showResultsBar = soy.asserts.assertType(opt_data.showResultsBar == null || goog.isBoolean(opt_data.showResultsBar) || opt_data.showResultsBar === 1 || opt_data.showResultsBar === 0, 'showResultsBar', opt_data.showResultsBar, 'boolean|null|undefined');
        /** @type {boolean|null|undefined} */

        var showSearch = soy.asserts.assertType(opt_data.showSearch == null || goog.isBoolean(opt_data.showSearch) || opt_data.showSearch === 1 || opt_data.showSearch === 0, 'showSearch', opt_data.showSearch, 'boolean|null|undefined');
        /** @type {boolean|null|undefined} */

        var showSelectAllButton = soy.asserts.assertType(opt_data.showSelectAllButton == null || goog.isBoolean(opt_data.showSelectAllButton) || opt_data.showSelectAllButton === 1 || opt_data.showSelectAllButton === 0, 'showSelectAllButton', opt_data.showSelectAllButton, 'boolean|null|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */

        var sortingOrder = soy.asserts.assertType(opt_data.sortingOrder == null || goog.isString(opt_data.sortingOrder) || opt_data.sortingOrder instanceof goog.soy.data.SanitizedContent, 'sortingOrder', opt_data.sortingOrder, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */

        var sortingURL = soy.asserts.assertType(opt_data.sortingURL == null || goog.isString(opt_data.sortingURL) || opt_data.sortingURL instanceof goog.soy.data.SanitizedContent, 'sortingURL', opt_data.sortingURL, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {boolean|null|undefined} */

        var supportsBulkActions = soy.asserts.assertType(opt_data.supportsBulkActions == null || goog.isBoolean(opt_data.supportsBulkActions) || opt_data.supportsBulkActions === 1 || opt_data.supportsBulkActions === 0, 'supportsBulkActions', opt_data.supportsBulkActions, 'boolean|null|undefined');
        /** @type {null|number|undefined} */

        var totalItems = soy.asserts.assertType(opt_data.totalItems == null || goog.isNumber(opt_data.totalItems), 'totalItems', opt_data.totalItems, 'null|number|undefined');
        /** @type {!Array<{active: boolean, disabled: boolean, href: (!goog.soy.data.SanitizedContent|string), icon: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string)}>|null|undefined} */

        var viewTypes = soy.asserts.assertType(opt_data.viewTypes == null || goog.isArray(opt_data.viewTypes), 'viewTypes', opt_data.viewTypes, '!Array<{active: boolean, disabled: boolean, href: (!goog.soy.data.SanitizedContent|string), icon: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string)}>|null|undefined');
        $templateAlias1({
          defaultEventHandler: defaultEventHandler,
          actionItems: actionItems,
          active: active,
          checkboxStatus: checkboxStatus,
          clearResultsURL: clearResultsURL,
          clearSelectionURL: clearSelectionURL,
          contentRenderer: contentRenderer,
          creationMenu: creationMenu,
          customData: {
            searchData: searchData
          },
          disabled: disabled,
          elementClasses: elementClasses,
          events: {
            clearSelectionButtonClicked: _handleClearSelectionButtonClicked,
            creationMenuMoreButtonClicked: _handleCreationMenuMoreButtonClicked,
            filterLabelCloseClicked: _handleFilterLabelCloseClicked,
            selectPageCheckboxChanged: _handleSelectPageCheckboxChanged,
            selectAllButtonClicked: _handleSelectAllButtonClicked
          },
          filterItems: filterItems,
          filterLabels: filterLabels,
          id: id,
          ref: 'managementToolbar',
          searchActionURL: searchActionURL,
          searchFormMethod: searchFormMethod,
          searchFormName: searchFormName,
          searchInputName: searchInputName,
          searchValue: searchValue,
          selectable: selectable,
          selectAllURL: selectAllURL,
          selectedItems: selectedItems,
          showAdvancedSearch: showAdvancedSearch,
          showCreationMenu: showCreationMenu,
          showFiltersDoneButton: showFiltersDoneButton,
          showInfoButton: showInfoButton,
          showResultsBar: showResultsBar,
          showSearch: showSearch,
          showSelectAllButton: showSelectAllButton,
          sortingOrder: sortingOrder,
          sortingURL: sortingURL,
          spritemap: spritemap,
          supportsBulkActions: supportsBulkActions,
          totalItems: totalItems,
          viewTypes: viewTypes
        }, null, opt_ijData);
      }

      exports.render = $render;
      /**
       * @typedef {{
       *  spritemap: (!goog.soy.data.SanitizedContent|string),
       *  _handleClearSelectionButtonClicked: (*|null|undefined),
       *  _handleCreationMenuMoreButtonClicked: (*|null|undefined),
       *  _handleFilterLabelCloseClicked: (*|null|undefined),
       *  _handleSelectAllButtonClicked: (*|null|undefined),
       *  _handleSelectPageCheckboxChanged: (*|null|undefined),
       *  actionItems: (!Array<{disabled: boolean, href: (!goog.soy.data.SanitizedContent|string), icon: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), quickAction: boolean, separator: boolean, type: (!goog.soy.data.SanitizedContent|string)}>|null|undefined),
       *  active: (boolean|null|undefined),
       *  checkboxStatus: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  clearResultsURL: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  clearSelectionURL: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  contentRenderer: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  creationMenu: (null|undefined|{caption: (!goog.soy.data.SanitizedContent|string), helpText: (!goog.soy.data.SanitizedContent|string), itemsIconAlignment: (!goog.soy.data.SanitizedContent|string), maxPrimaryItems: number, maxSecondaryItems: number, maxTotalItems: number, primaryItems: !Array<{data: *, disabled: boolean, href: (!goog.soy.data.SanitizedContent|string), icon: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean}>, secondaryItems: !Array<{data: *, disabled: boolean, href: (!goog.soy.data.SanitizedContent|string), icon: (!goog.soy.data.SanitizedContent|string), items: !Array<{data: *, disabled: boolean, href: (!goog.soy.data.SanitizedContent|string), icon: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean}>, label: (!goog.soy.data.SanitizedContent|string), separator: boolean}>, viewMoreURL: (!goog.soy.data.SanitizedContent|string)}),
       *  defaultEventHandler: (?),
       *  disabled: (boolean|null|undefined),
       *  elementClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  filterItems: (!Array<{active: boolean, checked: boolean, disabled: boolean, inputName: (!goog.soy.data.SanitizedContent|string), inputValue: (!goog.soy.data.SanitizedContent|string), items: !Array<{active: boolean, checked: boolean, disabled: boolean, inputName: (!goog.soy.data.SanitizedContent|string), inputValue: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean, type: (!goog.soy.data.SanitizedContent|string)}>, label: (!goog.soy.data.SanitizedContent|string), separator: boolean, type: (!goog.soy.data.SanitizedContent|string)}>|null|undefined),
       *  filterLabels: (!Array<{closeable: boolean, label: (!goog.soy.data.SanitizedContent|function()|string)}>|null|undefined),
       *  id: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  searchActionURL: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  searchData: (?),
       *  searchFormMethod: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  searchFormName: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  searchInputName: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  searchValue: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  selectable: (boolean|null|undefined),
       *  selectAllURL: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  selectedItems: (null|number|undefined),
       *  showAdvancedSearch: (boolean|null|undefined),
       *  showCreationMenu: (boolean|null|undefined),
       *  showFiltersDoneButton: (boolean|null|undefined),
       *  showInfoButton: (boolean|null|undefined),
       *  showResultsBar: (boolean|null|undefined),
       *  showSearch: (boolean|null|undefined),
       *  showSelectAllButton: (boolean|null|undefined),
       *  sortingOrder: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  sortingURL: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  supportsBulkActions: (boolean|null|undefined),
       *  totalItems: (null|number|undefined),
       *  viewTypes: (!Array<{active: boolean, disabled: boolean, href: (!goog.soy.data.SanitizedContent|string), icon: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string)}>|null|undefined)
       * }}
       */

      $render.Params;

      if (goog.DEBUG) {
        $render.soyTemplateName = 'com.liferay.frontend.taglib.clay.ManagementToolbar.render';
      }
      /**
       * @param {{
       *  spritemap: (!goog.soy.data.SanitizedContent|string),
       *  _handleCloseMobileSearchClick: (*|null|undefined),
       *  _handleSearchSearchClick: (*|null|undefined),
       *  customData: (?),
       *  disabled: (boolean|null|undefined),
       *  onlySearch: (boolean|null|undefined),
       *  searchActionURL: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  searchFormMethod: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  searchFormName: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  searchInput: (function()|null|undefined),
       *  searchInputName: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  searchValue: (!goog.soy.data.SanitizedContent|null|string|undefined)
       * }} opt_data
       * @param {Object<string, *>=} opt_ijData
       * @param {Object<string, *>=} opt_ijData_deprecated
       * @return {void}
       * @suppress {checkTypes}
       */

      function __deltemplate_s83_ed8b7085(opt_data, opt_ijData, opt_ijData_deprecated) {
        opt_ijData = opt_ijData_deprecated || opt_ijData;
        var $$temp;
        /** @type {!goog.soy.data.SanitizedContent|string} */

        soy.asserts.assertType(goog.isString(opt_data.spritemap) || opt_data.spritemap instanceof goog.soy.data.SanitizedContent, 'spritemap', opt_data.spritemap, '!goog.soy.data.SanitizedContent|string');
        opt_data._handleCloseMobileSearchClick;
        opt_data._handleSearchSearchClick;

        /** @type {?} */

        var customData = opt_data.customData;
        /** @type {boolean|null|undefined} */

        soy.asserts.assertType(opt_data.disabled == null || goog.isBoolean(opt_data.disabled) || opt_data.disabled === 1 || opt_data.disabled === 0, 'disabled', opt_data.disabled, 'boolean|null|undefined');

        /** @type {boolean|null|undefined} */

        var onlySearch = soy.asserts.assertType(opt_data.onlySearch == null || goog.isBoolean(opt_data.onlySearch) || opt_data.onlySearch === 1 || opt_data.onlySearch === 0, 'onlySearch', opt_data.onlySearch, 'boolean|null|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */

        var searchActionURL = soy.asserts.assertType(opt_data.searchActionURL == null || goog.isString(opt_data.searchActionURL) || opt_data.searchActionURL instanceof goog.soy.data.SanitizedContent, 'searchActionURL', opt_data.searchActionURL, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */

        var searchFormMethod = soy.asserts.assertType(opt_data.searchFormMethod == null || goog.isString(opt_data.searchFormMethod) || opt_data.searchFormMethod instanceof goog.soy.data.SanitizedContent, 'searchFormMethod', opt_data.searchFormMethod, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */

        var searchFormName = soy.asserts.assertType(opt_data.searchFormName == null || goog.isString(opt_data.searchFormName) || opt_data.searchFormName instanceof goog.soy.data.SanitizedContent, 'searchFormName', opt_data.searchFormName, '!goog.soy.data.SanitizedContent|null|string|undefined');
        /** @type {function()|null|undefined} */

        var searchInput = soy.asserts.assertType(opt_data.searchInput == null || goog.isFunction(opt_data.searchInput), 'searchInput', opt_data.searchInput, 'function()|null|undefined');
        /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */

        soy.asserts.assertType(opt_data.searchInputName == null || goog.isString(opt_data.searchInputName) || opt_data.searchInputName instanceof goog.soy.data.SanitizedContent, 'searchInputName', opt_data.searchInputName, '!goog.soy.data.SanitizedContent|null|string|undefined');
        soy.asserts.assertType(opt_data.searchValue == null || goog.isString(opt_data.searchValue) || opt_data.searchValue instanceof goog.soy.data.SanitizedContent, 'searchValue', opt_data.searchValue, '!goog.soy.data.SanitizedContent|null|string|undefined');


        var searchFormContent__soy97 = function searchFormContent__soy97() {
          var searchFormAttributes__soy99 = function searchFormAttributes__soy99() {
            if (searchActionURL) {
              incrementalDom.attr('action', searchActionURL);
            }

            incrementalDom.attr('method', ($$temp = searchFormMethod) == null ? 'GET' : $$temp);

            if (searchFormName) {
              incrementalDom.attr('name', searchFormName);
            }

            incrementalDom.attr('role', 'search');
          };

          incrementalDom.elementOpenStart('form');
          searchFormAttributes__soy99();
          incrementalDom.elementOpenEnd();
          soyIdom.print(searchInput);
          var searchData__soy120 = customData.searchData;
          var key127List = soy.$$getMapKeys(searchData__soy120);
          var key127ListLen = key127List.length;

          for (var key127Index = 0; key127Index < key127ListLen; key127Index++) {
            var key127Data = key127List[key127Index];
            incrementalDom.elementOpenStart('input');
            incrementalDom.attr('name', key127Data);
            incrementalDom.attr('type', 'hidden');
            incrementalDom.attr('value', searchData__soy120[key127Data]);
            incrementalDom.elementOpenEnd();
            incrementalDom.elementClose('input');
          }

          incrementalDom.elementClose('form');
        };

        if (onlySearch) {
          searchFormContent__soy97();
        } else {
          incrementalDom.elementOpenStart('div');
          incrementalDom.attr('class', 'container-fluid container-fluid-max-xl');
          incrementalDom.elementOpenEnd();
          searchFormContent__soy97();
          incrementalDom.elementClose('div');
        }
      }

      exports.__deltemplate_s83_ed8b7085 = __deltemplate_s83_ed8b7085;
      /**
       * @typedef {{
       *  spritemap: (!goog.soy.data.SanitizedContent|string),
       *  _handleCloseMobileSearchClick: (*|null|undefined),
       *  _handleSearchSearchClick: (*|null|undefined),
       *  customData: (?),
       *  disabled: (boolean|null|undefined),
       *  onlySearch: (boolean|null|undefined),
       *  searchActionURL: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  searchFormMethod: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  searchFormName: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  searchInput: (function()|null|undefined),
       *  searchInputName: (!goog.soy.data.SanitizedContent|null|string|undefined),
       *  searchValue: (!goog.soy.data.SanitizedContent|null|string|undefined)
       * }}
       */

      __deltemplate_s83_ed8b7085.Params;

      if (goog.DEBUG) {
        __deltemplate_s83_ed8b7085.soyTemplateName = 'com.liferay.frontend.taglib.clay.ManagementToolbar.__deltemplate_s83_ed8b7085';
      }

      soy.$$registerDelegateFn(soy.$$getDelTemplateId('ClayManagementToolbar.SearchForm.idom'), 'hiddenInputsForm', 0, __deltemplate_s83_ed8b7085);
      exports.render.params = ["spritemap", "_handleClearSelectionButtonClicked", "_handleCreationMenuMoreButtonClicked", "_handleFilterLabelCloseClicked", "_handleSelectAllButtonClicked", "_handleSelectPageCheckboxChanged", "actionItems", "active", "checkboxStatus", "clearResultsURL", "clearSelectionURL", "contentRenderer", "creationMenu", "defaultEventHandler", "disabled", "elementClasses", "filterItems", "filterLabels", "id", "searchActionURL", "searchData", "searchFormMethod", "searchFormName", "searchInputName", "searchValue", "selectable", "selectAllURL", "selectedItems", "showAdvancedSearch", "showCreationMenu", "showFiltersDoneButton", "showInfoButton", "showResultsBar", "showSearch", "showSelectAllButton", "sortingOrder", "sortingURL", "supportsBulkActions", "totalItems", "viewTypes"];
      exports.render.types = {
        "spritemap": "string",
        "_handleClearSelectionButtonClicked": "any",
        "_handleCreationMenuMoreButtonClicked": "any",
        "_handleFilterLabelCloseClicked": "any ",
        "_handleSelectAllButtonClicked": "any",
        "_handleSelectPageCheckboxChanged": "any",
        "actionItems": "list<[\n\t\tdisabled: bool,\n\t\thref: string,\n\t\ticon: string,\n\t\tlabel: string,\n\t\tquickAction: bool,\n\t\tseparator: bool,\n\t\ttype: string\n\t]>",
        "active": "bool",
        "checkboxStatus": "string",
        "clearResultsURL": "string",
        "clearSelectionURL": "string",
        "contentRenderer": "string",
        "creationMenu": "[\n\t\tcaption: string,\n\t\thelpText: string,\n\t\titemsIconAlignment: string,\n\t\tmaxPrimaryItems: int,\n\t\tmaxSecondaryItems: int,\n\t\tmaxTotalItems: int,\n\t\tprimaryItems: list<[\n\t\t\tdata: any,\n\t\t\tdisabled: bool,\n\t\t\thref: string,\n\t\t\ticon: string,\n\t\t\tlabel: string,\n\t\t\tseparator: bool\n\t\t]>,\n\t\tsecondaryItems: list<[\n\t\t\tdata: any,\n\t\t\tdisabled: bool,\n\t\t\thref: string,\n\t\t\ticon: string,\n\t\t\titems: list<[\n\t\t\t\tdata: any,\n\t\t\t\tdisabled: bool,\n\t\t\t\thref: string,\n\t\t\t\ticon: string,\n\t\t\t\tlabel: string,\n\t\t\t\tseparator: bool\n\t\t\t]>,\n\t\t\tlabel: string,\n\t\t\tseparator: bool\n\t\t]>,\n\t\tviewMoreURL: string\n\t]",
        "defaultEventHandler": "?",
        "disabled": "bool",
        "elementClasses": "string",
        "filterItems": "list<[\n\t\tactive: bool,\n\t\tchecked: bool,\n\t\tdisabled: bool,\n\t\tinputName: string,\n\t\tinputValue: string,\n\t\titems: list<[\n\t\t\tactive: bool,\n\t\t\tchecked: bool,\n\t\t\tdisabled: bool,\n\t\t\tinputName: string,\n\t\t\tinputValue: string,\n\t\t\tlabel: string,\n\t\t\tseparator: bool,\n\t\t\ttype: string\n\t\t]>,\n\t\tlabel: string,\n\t\tseparator: bool,\n\t\ttype: string\n\t]>",
        "filterLabels": "list<[\n\t\tcloseable: bool,\n\t\tlabel: html|string\n\t]>",
        "id": "string",
        "searchActionURL": "string",
        "searchData": "?",
        "searchFormMethod": "string",
        "searchFormName": "string",
        "searchInputName": "string",
        "searchValue": "string",
        "selectable": "bool",
        "selectAllURL": "string",
        "selectedItems": "number",
        "showAdvancedSearch": "bool",
        "showCreationMenu": "bool",
        "showFiltersDoneButton": "bool",
        "showInfoButton": "bool",
        "showResultsBar": "bool",
        "showSearch": "bool",
        "showSelectAllButton": "bool",
        "sortingOrder": "string",
        "sortingURL": "string",
        "supportsBulkActions": "bool",
        "totalItems": "number",
        "viewTypes": "list<[\n\t\tactive: bool,\n\t\tdisabled: bool,\n\t\thref: string,\n\t\ticon: string,\n\t\tlabel: string\n\t]>"
      };
      exports.templates = templates = exports;
      return exports;
    });

    var comliferayfrontendtaglibclayManagementToolbar = /*#__PURE__*/function (_Component) {
      _inherits(comliferayfrontendtaglibclayManagementToolbar, _Component);

      function comliferayfrontendtaglibclayManagementToolbar() {
        _classCallCheck(this, comliferayfrontendtaglibclayManagementToolbar);

        return _possibleConstructorReturn(this, _getPrototypeOf(comliferayfrontendtaglibclayManagementToolbar).apply(this, arguments));
      }

      return comliferayfrontendtaglibclayManagementToolbar;
    }(_metalComponent.default);

    exports.comliferayfrontendtaglibclayManagementToolbar = comliferayfrontendtaglibclayManagementToolbar;

    _metalSoy.default.register(comliferayfrontendtaglibclayManagementToolbar, templates);

    var _default = templates;
    /* jshint ignore:end */

    exports.default = _default;
    //# sourceMappingURL=ManagementToolbar.soy.js.map
  }
});
//# sourceMappingURL=ManagementToolbar.soy.js.map