Liferay.Loader.define("frontend-taglib-clay@9.1.14/management_toolbar/ResultsBar",["module","exports","require","@frontend-taglib-clay$clayui/label","@frontend-taglib-clay$clayui/link","@frontend-taglib-clay$clayui/management-toolbar","frontend-js-web","liferay!frontend-js-react-web$react"],(function(e,a,l){window;{Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var t=c(l("@frontend-taglib-clay$clayui/label")),n=c(l("@frontend-taglib-clay$clayui/link")),r=l("@frontend-taglib-clay$clayui/management-toolbar"),u=l("frontend-js-web"),o=c(l("liferay!frontend-js-react-web$react"));function c(e){return e&&e.__esModule?e:{default:e}}var i=({clearResultsURL:e,filterLabelItems:a,itemsTotal:l,searchValue:c})=>o.default.createElement(o.default.Fragment,null,o.default.createElement(r.ClayResultsBar,null,o.default.createElement(r.ClayResultsBar.Item,{expand:!((null==a?void 0:a.length)>0)},o.default.createElement("span",{className:"component-text text-truncate-inline"},o.default.createElement("span",{className:"text-truncate"},Liferay.Util.sub(Liferay.Language.get("x-results-for"),l),c&&o.default.createElement("strong",null,' "'.concat(c,'"'))))),null==a?void 0:a.map(((e,l)=>o.default.createElement(r.ClayResultsBar.Item,{expand:l===a.length-1,key:l},o.default.createElement(t.default,{className:"component-label tbar-label",closeButtonProps:{onClick:()=>{var a;(0,u.navigate)(null===(a=e.data)||void 0===a?void 0:a.removeLabelURL)}},dismissible:!0,displayType:"unstyled",withClose:!0},e.label)))),o.default.createElement(r.ClayResultsBar.Item,null,o.default.createElement(n.default,{className:"component-link tbar-link",href:e},Liferay.Language.get("clear")))));a.default=i}}));
//# sourceMappingURL=ResultsBar.js.map