Liferay.Loader.define("@liferay/analytics-settings-web@5.0.47/js/components/properties/PropertiesTable",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/form","@frontend-taglib-clay$clayui/table","liferay!frontend-js-react-web$react"],(function(e,t,l){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=_interopRequireDefault(l("@frontend-taglib-clay$clayui/button")),n=l("@frontend-taglib-clay$clayui/form"),r=_interopRequireDefault(l("@frontend-taglib-clay$clayui/table")),u=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var l={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=a?Object.getOwnPropertyDescriptor(e,n):null;r&&(r.get||r.set)?Object.defineProperty(l,n,r):l[n]=e[n]}l.default=e,t&&t.set(e,l);return l}(l("liferay!frontend-js-react-web$react"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _default=({onAssign:e,onCommerceSwitchChange:t,properties:l})=>u.default.createElement(r.default,{className:"mt-4"},u.default.createElement(r.default.Head,null,u.default.createElement(r.default.Row,null,u.default.createElement(r.default.Cell,{expanded:!0,headingCell:!0},Liferay.Language.get("available-properties")),u.default.createElement(r.default.Cell,{headingCell:!0},Liferay.Language.get("channel")),u.default.createElement(r.default.Cell,{headingCell:!0},Liferay.Language.get("sites")),u.default.createElement(r.default.Cell,{headingCell:!0},Liferay.Language.get("commerce")))),u.default.createElement(r.default.Body,null,l.map((({commerceSyncEnabled:l,dataSources:[{commerceChannelIds:d=[],siteIds:c=[]}={}],name:i},f)=>u.default.createElement(u.Fragment,{key:f},u.default.createElement(r.default.Row,null,u.default.createElement(r.default.Cell,{className:"table-cell-expand"},i),u.default.createElement(r.default.Cell,{className:"mr-2",columnTextAlignment:"end"},d.length),u.default.createElement(r.default.Cell,{className:"mr-2",columnTextAlignment:"end"},c.length),u.default.createElement(r.default.Cell,{className:"mr-2",columnTextAlignment:"end"},u.default.createElement(n.ClayToggle,{onToggle:()=>t(f),toggled:l,value:"toggle"})),u.default.createElement(r.default.Cell,{columnTextAlignment:"end"},u.default.createElement(a.default,{displayType:"secondary",onClick:()=>e(f)},Liferay.Language.get("assign")))))))));t.default=_default}}));
//# sourceMappingURL=PropertiesTable.js.map