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