Liferay.Loader.define("@liferay/frontend-data-set-web@1.0.31/management_bar/components/ActiveFiltersBar",["module","exports","require","@frontend-taglib-clay$clayui/button","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","../../FrontendDataSetContext","./FilterResume"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=c(r("@frontend-taglib-clay$clayui/button")),n=(c(r("liferay!frontend-js-react-web$prop-types")),function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=o();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"))),l=c(r("../../FrontendDataSetContext")),i=c(r("./FilterResume"));function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function c(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var b=function({disabled:e}){const{filters:t,setFilters:r}=(0,n.useContext)(l.default),o=t.filter((e=>e.active));return o.length?n.default.createElement("div",{className:"management-bar management-bar-light navbar navbar-expand-md"},n.default.createElement("div",{className:"container-fluid container-fluid-max-xl"},n.default.createElement("nav",{className:"mb-0 py-3 subnav-tbar subnav-tbar-light subnav-tbar-primary w-100"},n.default.createElement("ul",{className:"tbar-nav"},n.default.createElement("li",{className:"p-0 tbar-item tbar-item-expand"},n.default.createElement("div",{className:"tbar-section"},o.map((t=>n.default.createElement(i.default,u({disabled:e,key:t.id},t)))))),n.default.createElement("li",{className:"tbar-item"},n.default.createElement("div",{className:"tbar-section"},n.default.createElement(a.default,{disabled:e,displayType:"unstyled",onClick:()=>{r((e=>e.map((e=>s(s({},e),{},{active:!1,odataFilterString:void 0,selectedData:void 0})))))}},Liferay.Language.get("reset-filters")))))))):null};t.default=b}}));
//# sourceMappingURL=ActiveFiltersBar.js.map