Liferay.Loader.define("@liferay/analytics-settings-web@5.0.47/js/components/table/Content",["module","exports","require","@frontend-taglib-clay$clayui/form","@frontend-taglib-clay$clayui/icon","@frontend-taglib-clay$clayui/table","liferay!frontend-js-react-web$classnames","liferay!frontend-js-react-web$react","../../utils/filter","./Context"],(function(e,t,l){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=l("@frontend-taglib-clay$clayui/form"),n=_interopRequireDefault(l("@frontend-taglib-clay$clayui/icon")),r=_interopRequireDefault(l("@frontend-taglib-clay$clayui/table")),u=_interopRequireDefault(l("liferay!frontend-js-react-web$classnames")),d=_interopRequireDefault(l("liferay!frontend-js-react-web$react")),f=l("../../utils/filter"),o=l("./Context");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _default=({columns:e,disabled:t})=>{const{filter:l,formattedItems:c,rows:i}=(0,o.useData)(),s=(0,o.useDispatch)();return d.default.createElement(r.default,{hover:!t},d.default.createElement(r.default.Head,null,d.default.createElement(r.default.Row,null,d.default.createElement(r.default.Cell,null),e.map((({expanded:e=!1,label:t,show:a=!0,value:u})=>a&&d.default.createElement(r.default.Cell,{expanded:e,headingCell:!0,key:t},d.default.createElement("span",null,t),l.value===u&&d.default.createElement("span",null,d.default.createElement(n.default,{symbol:l.type===f.OrderBy.Asc?"order-arrow-up":"order-arrow-down"}))))))),d.default.createElement(r.default.Body,null,i.map((e=>{const{checked:l,columns:n,disabled:f=!1,id:i}=c[e];return d.default.createElement(r.default.Row,{className:(0,u.default)({"table-active":l,"text-muted":t}),key:i},d.default.createElement(r.default.Cell,null,d.default.createElement(a.ClayCheckbox,{checked:l,disabled:t||f,id:i,onChange:()=>{t||f||s({payload:i,type:o.Events.ChangeItems})}})),n.map((({label:e,show:t=!0},l)=>t&&d.default.createElement(r.default.Cell,{key:l},e))))}))))};t.default=_default}}));
//# sourceMappingURL=Content.js.map