Liferay.Loader.define("@liferay/object-web@1.0.181/js/components/ObjectDetails/ObjectDataContainer",["module","exports","require","@liferay/object-js-components-web","frontend-js-web","liferay!frontend-js-react-web$react","../../utils/constants"],(function(e,a,t){window;{Object.defineProperty(a,"__esModule",{value:!0}),a.ObjectDataContainer=function ObjectDataContainer({dbTableName:e,errors:a,handleChange:t,hasUpdateObjectDefinitionPermission:o,isApproved:c,setValues:u,values:d}){const[s,f]=(0,l.useState)(i.defaultLanguageId),b=Liferay.FeatureFlags["LPS-167253"]?!d.modifiable&&d.system:d.system;return l.default.createElement(l.default.Fragment,null,l.default.createElement(r.Input,{disabled:c||!o,error:a.name,label:Liferay.Language.get("name"),name:"name",onChange:t,required:!0,value:d.name}),l.default.createElement(r.InputLocalized,{disabled:b||!o,error:a.label,label:Liferay.Language.get("label"),onChange:e=>u({label:e}),onSelectedLocaleChange:f,required:!0,selectedLocale:s,translations:d.label}),l.default.createElement(r.InputLocalized,{disabled:b||!o,error:a.pluralLabel,label:Liferay.Language.get("plural-label"),onChange:e=>u({pluralLabel:e}),onSelectedLocaleChange:f,required:!0,selectedLocale:s,translations:d.pluralLabel}),l.default.createElement(r.Input,{disabled:!0,label:Liferay.Language.get("object-definition-table-name"),name:"name",value:e}),l.default.createElement(r.Toggle,{disabled:!c||b||!o,label:(0,n.sub)(Liferay.Language.get("activate-x"),Liferay.Language.get("object")),name:"active",onToggle:()=>u({active:!d.active}),toggled:d.active}))};var r=t("@liferay/object-js-components-web"),n=t("frontend-js-web"),l=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={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(t,n,l):t[n]=e[n]}t.default=e,a&&a.set(e,t);return t}(t("liferay!frontend-js-react-web$react")),i=t("../../utils/constants");function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}}}));
//# sourceMappingURL=ObjectDataContainer.js.map