Liferay.Loader.define("@liferay/object-web@1.0.181/js/components/ModelBuilder/RightSidebar/RightSidebarObjectDefinitionDetails",["module","exports","require","@liferay/object-js-components-web","frontend-js-web","liferay!frontend-js-react-web$react","../objectFolderContext","./RightSidebarObjectDefinitionDetails.scss","../../ObjectDetails/AccountRestrictionContainer","../../ObjectDetails/ConfigurationContainer","../../ObjectDetails/EntryDisplayContainer","../../ObjectDetails/ObjectDataContainer","../../ObjectDetails/ScopeContainer"],(function(e,t,a){window;Object.defineProperty(t,"__esModule",{value:!0}),t.RightSidebarObjectDefinitionDetails=function RightSidebarObjectDefinitionDetails({companyKeyValuePair:e,siteKeyValuePair:t}){const[{selectedDefinitionNode:a}]=(0,r.useFolderContext)();return l.default.createElement(l.default.Fragment,null,l.default.createElement("div",{className:"lfr-objects__model-builder-right-sidebar-definition-node-title"},l.default.createElement("span",null,(0,n.sub)(Liferay.Language.get("x-details"),(0,i.getLocalizableLabel)(a.defaultLanguageId,a.label,a.name)))),l.default.createElement("div",{className:"lfr-objects__model-builder-right-sidebar-definition-node-content"},l.default.createElement(c.ObjectDataContainer,{dbTableName:a.dbTableName,errors:{},handleChange:()=>{},hasUpdateObjectDefinitionPermission:!0,isApproved:"approved"===a.status.label,setValues:()=>{},values:a})),l.default.createElement("div",{className:"lfr-objects__model-builder-right-sidebar-definition-node-content"},l.default.createElement(d.EntryDisplayContainer,{errors:{},nonRelationshipObjectFieldsInfo:[],objectFields:a.objectFields,setValues:()=>{},values:a}),l.default.createElement(b.ScopeContainer,{companyKeyValuePair:e,errors:{},hasUpdateObjectDefinitionPermission:!0,isApproved:"approved"===a.status.label,setValues:()=>{},siteKeyValuePair:t,values:a})),(Liferay.FeatureFlags["LPS-167253"]?a.modifiable:!a.system)&&l.default.createElement("div",{className:"lfr-objects__model-builder-right-sidebar-definition-node-content"},l.default.createElement(o.AccountRestrictionContainer,{errors:{},isApproved:"approved"===a.status.label,objectFields:a.objectFields,setValues:()=>{},values:a})),l.default.createElement("div",{className:"lfr-objects__model-builder-right-sidebar-definition-node-content"},l.default.createElement(s.ConfigurationContainer,{hasUpdateObjectDefinitionPermission:!0,setValues:()=>{},values:a})))};var i=a("@liferay/object-js-components-web"),n=a("frontend-js-web"),l=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(a("liferay!frontend-js-react-web$react")),r=a("../objectFolderContext");a("./RightSidebarObjectDefinitionDetails.scss");var o=a("../../ObjectDetails/AccountRestrictionContainer"),s=a("../../ObjectDetails/ConfigurationContainer"),d=a("../../ObjectDetails/EntryDisplayContainer"),c=a("../../ObjectDetails/ObjectDataContainer"),b=a("../../ObjectDetails/ScopeContainer")}));
//# sourceMappingURL=RightSidebarObjectDefinitionDetails.js.map