Liferay.Loader.define("@liferay/object-web@1.0.181/js/components/ModelBuilder/RightSidebar/RightSidebarObjectRelationshipDetails",["module","exports","require","@frontend-taglib-clay$clayui/button","frontend-js-web","liferay!frontend-js-react-web$react","./RightSidebarObjectRelationshipDetails.scss","@liferay/object-js-components-web","../../../utils/string","../objectFolderContext"],(function(e,t,a){window;Object.defineProperty(t,"__esModule",{value:!0}),t.RightSidebarObjectRelationshipDetails=function RightSidebarObjectRelationshipDetails({deletionTypes:e}){const[{selectedDefinitionNode:t,selectedObjectRelationship:a}]=(0,d.useFolderContext)(),s=!t.hasUpdateObjectDefinitionPermission||a.reverse;return r.default.createElement(r.default.Fragment,null,r.default.createElement("div",{className:"lfr-objects__model-builder-right-sidebar-relationship-title-container"},r.default.createElement("div",{className:"lfr-objects__model-builder-right-sidebar-relationship-title"},r.default.createElement("span",null,(0,l.sub)(Liferay.Language.get("x-details"),Liferay.Language.get("relationship")))),r.default.createElement(i.ClayButtonWithIcon,{"aria-label":Liferay.Language.get("delete-relationship"),displayType:"secondary",symbol:"trash",title:Liferay.Language.get("delete-relationship")})),r.default.createElement("div",{className:"lfr-objects__model-builder-right-sidebar-relationship-content"},r.default.createElement(n.InputLocalized,{disableFlag:s,disabled:s,error:"",label:Liferay.Language.get("label"),onChange:()=>{},required:!0,translations:a.label}),r.default.createElement(n.Input,{disabled:s,error:"",label:Liferay.Language.get("name"),onChange:()=>{},required:!0,value:a.name}),r.default.createElement(n.Input,{disabled:s,error:"",label:"manyToMany"===a.type?Liferay.Language.get("many-records-of"):Liferay.Language.get("one-record-of"),onChange:()=>{},required:!0,value:t.name}),r.default.createElement(n.Input,{disabled:s,error:"",label:Liferay.Language.get("many-records-of"),onChange:()=>{},required:!0,value:a.objectDefinitionName2}),r.default.createElement(n.SingleSelect,{disabled:s,label:Liferay.Language.get("deletion-type"),onChange:()=>{},options:e,required:!0,value:(0,o.firstLetterUppercase)(a.deletionType)})))};var i=a("@frontend-taglib-clay$clayui/button"),l=a("frontend-js-web"),r=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(a("liferay!frontend-js-react-web$react"));a("./RightSidebarObjectRelationshipDetails.scss");var n=a("@liferay/object-js-components-web"),o=a("../../../utils/string"),d=a("../objectFolderContext")}));
//# sourceMappingURL=RightSidebarObjectRelationshipDetails.js.map