Liferay.Loader.define("frontend-taglib-clay@9.1.10/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=o(l("@frontend-taglib-clay$clayui/label")),n=o(l("@frontend-taglib-clay$clayui/link")),r=l("@frontend-taglib-clay$clayui/management-toolbar"),u=l("frontend-js-web"),i=o(l("liferay!frontend-js-react-web$react"));function o(e){return e&&e.__esModule?e:{default:e}}var d=({clearResultsURL:e,filterLabelItems:a,itemsTotal:l,searchValue:o})=>i.default.createElement(i.default.Fragment,null,i.default.createElement(r.ClayResultsBar,null,i.default.createElement(r.ClayResultsBar.Item,{expand:!((null==a?void 0:a.length)>0)},i.default.createElement("span",{className:"component-text text-truncate-inline"},i.default.createElement("span",{className:"text-truncate"},Liferay.Util.sub(Liferay.Language.get("x-results-for-x"),l,o||"")))),null==a?void 0:a.map(((e,l)=>i.default.createElement(r.ClayResultsBar.Item,{expand:l===a.length-1,key:l},i.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)))),i.default.createElement(r.ClayResultsBar.Item,null,i.default.createElement(n.default,{className:"component-link tbar-link",href:e},Liferay.Language.get("clear")))));a.default=d}}));
//# sourceMappingURL=ResultsBar.js.map