Liferay.Loader.define("portal-search-ranking-web@3.0.58/js/components/list/FilterDisplay.es",["module","exports","require","@frontend-taglib-clay$clayui/button","frontend-js-components-web","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","../../utils/language.es"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(r("@frontend-taglib-clay$clayui/button")),n=r("frontend-js-components-web"),l=(r("liferay!frontend-js-react-web$prop-types"),function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var l=a?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(r,n,l):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react"))),o=r("../../utils/language.es");function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}class FilterDisplay extends l.Component{render(){const{onClear:e,searchBarTerm:t,totalResultsCount:r}=this.props;return l.default.createElement(n.ManagementToolbar.ResultsBar,{title:Liferay.Language.get("filter")},l.default.createElement(n.ManagementToolbar.ResultsBarItem,{expand:!0},l.default.createElement("span",{className:"component-text text-truncate-inline"},l.default.createElement("span",{className:"text-truncate"},(0,o.sub)(1===r?Liferay.Language.get("x-result-for-x"):Liferay.Language.get("x-results-for-x"),[r,t])))),l.default.createElement(n.ManagementToolbar.ResultsBarItem,null,l.default.createElement(a.default,{className:"component-link tbar-link",displayType:"unstyled",onClick:e,small:!0,title:Liferay.Language.get("clear")},Liferay.Language.get("clear"))))}}var i=FilterDisplay;t.default=i}}));
//# sourceMappingURL=FilterDisplay.es.js.map