Liferay.Loader.define("@liferay/object-web@1.0.153/js/components/ObjectDetails/ObjectDataContainer",["module","exports","require","@frontend-taglib-clay$clayui/form","@frontend-taglib-clay$clayui/panel","@liferay/object-js-components-web","liferay!frontend-js-react-web$react"],(function(e,a,t){window;{Object.defineProperty(a,"__esModule",{value:!0}),a.ObjectDataContainer=function ObjectDataContainer({dbTableName:a,errors:t,handleChange:o,hasUpdateObjectDefinitionPermission:c,isApproved:u,setValues:d,values:f}){const[s,b]=(0,i.useState)(e);return i.default.createElement(n.default,{displayTitle:Liferay.Language.get("object-definition-data"),displayType:"unstyled"},i.default.createElement(n.default.Body,null,i.default.createElement(r.Input,{disabled:u||!c,error:t.name,label:Liferay.Language.get("name"),name:"name",onChange:o,required:!0,value:f.name}),i.default.createElement(r.InputLocalized,{disabled:f.system||!c,error:t.label,label:Liferay.Language.get("label"),onChange:e=>d({label:e}),onSelectedLocaleChange:b,required:!0,selectedLocale:s,translations:f.label}),i.default.createElement(r.InputLocalized,{disabled:f.system||!c,error:t.pluralLabel,label:Liferay.Language.get("plural-label"),onChange:e=>d({pluralLabel:e}),onSelectedLocaleChange:b,required:!0,selectedLocale:s,translations:f.pluralLabel}),i.default.createElement(r.Input,{disabled:!0,label:Liferay.Language.get("object-definition-table-name"),name:"name",value:a}),i.default.createElement(l.ClayToggle,{disabled:!u||f.system||!c,label:Liferay.Language.get("active"),name:"active",onToggle:()=>d({active:!f.active}),toggled:f.active})))};var l=t("@frontend-taglib-clay$clayui/form"),n=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(t("@frontend-taglib-clay$clayui/panel")),r=t("@liferay/object-js-components-web"),i=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=_getRequireWildcardCache();if(a&&a.has(e))return a.get(e);var t={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=l?Object.getOwnPropertyDescriptor(e,n):null;r&&(r.get||r.set)?Object.defineProperty(t,n,r):t[n]=e[n]}t.default=e,a&&a.set(e,t);return t}(t("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}const e=Liferay.ThemeDisplay.getDefaultLanguageId()}}));
//# sourceMappingURL=ObjectDataContainer.js.map